CN110492936B - Friend adding method and device based on visible light communication and mobile terminal - Google Patents
Friend adding method and device based on visible light communication and mobile terminal Download PDFInfo
- Publication number
- CN110492936B CN110492936B CN201910730346.XA CN201910730346A CN110492936B CN 110492936 B CN110492936 B CN 110492936B CN 201910730346 A CN201910730346 A CN 201910730346A CN 110492936 B CN110492936 B CN 110492936B
- Authority
- CN
- China
- Prior art keywords
- identification information
- communication
- optical signal
- communication identification
- friend
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B10/00—Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
- H04B10/11—Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
- H04B10/114—Indoor or close-range type systems
- H04B10/116—Visible light communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/04—Real-time or near real-time messaging, e.g. instant messaging [IM]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L51/00—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
- H04L51/52—User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail for supporting social networking services
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Physics & Mathematics (AREA)
- Electromagnetism (AREA)
- Optical Communication System (AREA)
- Telephone Function (AREA)
Abstract
The application provides a method, a device and a mobile terminal for adding friends based on visible light communication, wherein communication identification information is obtained; carrying out modulation coding on the communication identification information to generate a first optical signal; and sending the first optical signal to receiving equipment so that the receiving equipment demodulates and encodes the first optical signal to generate communication identification information, and adding friends according to the communication identification information. The method and the device solve the technical problems of single friend adding mode and complexity in the prior art, convert the communication identification information into the optical signal to be sent, and analyze the received optical signal to add friends through the communication identification information, so that the friends can be automatically and quickly added, a plurality of optical signals can be obtained at one time to be analyzed and added, the friend adding efficiency is improved, one-click friend making is realized, and the user experience is improved.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for adding a friend based on visible light communication, and a mobile terminal.
Background
With the continuous development of internet technology and terminal technology, a way of communicating by adding friends in communication applications has become a common way.
In the related art, when friends are added in making friends through a network, the friends need to be added in a mode of searching a user account or scanning a two-dimensional code, and if account information or two-dimensional code information of the other party is not obtained in advance, the friends cannot be added, so that the whole adding process is complicated; in addition, when a friend is added, the addition information can be sent to only one friend every time, and if the friend needs to be added to a plurality of people, the addition information needs to be added in sequence, so that the addition mode is single and tedious.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
The application provides a method, a device and a mobile terminal for adding friends based on visible light communication, and solves the technical problems that in the prior art, the friend adding mode is single and complicated, communication identification information is converted into optical signals to be sent, so that the received optical signals are analyzed, friends can be added through the communication identification information, the friends can be automatically and rapidly added, a plurality of optical signals can be obtained at one time to be analyzed and added, the friend adding efficiency is improved, one-click friend making is realized, and the user experience is improved.
An embodiment of a first aspect of the present application provides a method for adding a friend based on visible light communication, where the method is applied to a sending device, and the sending device and a receiving device are in a visible light communication range, and the method includes:
acquiring communication identification information;
carrying out modulation coding on the communication identification information to generate a first optical signal;
and sending the first optical signal to the receiving equipment so that the receiving equipment demodulates and encodes the first optical signal to generate the communication identification information, and adding a friend according to the communication identification information.
According to the method for adding the friends based on the visible light communication, the communication identification information is obtained; carrying out modulation coding on the communication identification information to generate a first optical signal; and sending the first optical signal to receiving equipment so that the receiving equipment demodulates and encodes the first optical signal to generate communication identification information, and adding friends according to the communication identification information. The method and the device solve the technical problems of single friend adding mode and complexity in the prior art, convert the communication identification information into the optical signal to be sent, and analyze the received optical signal to add friends through the communication identification information, so that the friends can be automatically and quickly added, a plurality of optical signals can be obtained at one time to be analyzed and added, the friend adding efficiency is improved, one-click friend making is realized, and the user experience is improved.
An embodiment of a second aspect of the present application provides another method for adding a friend based on visible light communication, where the method is applied to a receiving device, and a sending device and the receiving device are in a visible light communication range, and the method includes:
acquiring a first optical signal; acquiring communication identification information of a target application in the sending equipment; carrying out modulation coding on the communication identification information to generate the first optical signal;
and demodulating and encoding the first optical signal to generate the communication identification information, and adding a friend according to the communication identification information.
According to the method for adding the friends based on the visible light communication, the first optical signal is obtained; the method comprises the steps of obtaining communication identification information of a target application in sending equipment; and modulating and coding the communication identification information to generate a first optical signal, demodulating and coding the first optical signal to generate communication identification information, and adding friends according to the communication identification information. The method and the device solve the technical problems of single friend adding mode and complexity in the prior art, convert the communication identification information into the optical signal to be sent, and analyze the received optical signal to add friends through the communication identification information, so that the friends can be automatically and quickly added, a plurality of optical signals can be obtained at one time to be analyzed and added, the friend adding efficiency is improved, one-click friend making is realized, and the user experience is improved.
An embodiment of a third aspect of the present application provides a friend adding apparatus based on visible light communication, where the apparatus is applied to a sending device, and the sending device and a receiving device are in a visible light communication range, including:
acquiring a first optical signal; acquiring communication identification information of a target application in the sending equipment; carrying out modulation coding on the communication identification information to generate the first optical signal;
and demodulating and encoding the first optical signal to generate the communication identification information, and adding a friend according to the communication identification information.
The friend adding device based on visible light communication obtains communication identification information; carrying out modulation coding on the communication identification information to generate a first optical signal; and sending the first optical signal to receiving equipment so that the receiving equipment demodulates and encodes the first optical signal to generate communication identification information, and adding friends according to the communication identification information. The method and the device solve the technical problems of single friend adding mode and complexity in the prior art, convert the communication identification information into the optical signal to be sent, and analyze the received optical signal to add friends through the communication identification information, so that the friends can be automatically and quickly added, a plurality of optical signals can be obtained at one time to be analyzed and added, the friend adding efficiency is improved, one-click friend making is realized, and the user experience is improved.
An embodiment of a fourth aspect of the present application provides another friend adding apparatus based on visible light communication, where the apparatus is applied to a receiving device, and a sending device and the receiving device are in a visible light communication range, and the apparatus includes:
the first acquisition module is used for acquiring communication identification information;
the generating module is used for modulating and coding the communication identification information to generate a first optical signal;
and the sending module is used for sending the first optical signal to the receiving equipment so that the receiving equipment demodulates and encodes the first optical signal to generate the communication identification information, and adds a friend according to the communication identification information.
According to the friend adding device based on visible light communication, the first optical signal is obtained; the method comprises the steps of obtaining communication identification information of a target application in sending equipment; and modulating and coding the communication identification information to generate a first optical signal, demodulating and coding the first optical signal to generate communication identification information, and adding friends according to the communication identification information. The method and the device solve the technical problems of single friend adding mode and complexity in the prior art, convert the communication identification information into the optical signal to be sent, and analyze the received optical signal to add friends through the communication identification information, so that the friends can be automatically and quickly added, a plurality of optical signals can be obtained at one time to be analyzed and added, the friend adding efficiency is improved, one-click friend making is realized, and the user experience is improved.
An embodiment of a fifth aspect of the present application provides a mobile terminal, including: the friend adding method based on visible light communication comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein when the processor executes the program, the friend adding method based on visible light communication is realized.
A sixth aspect of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores computer-readable instructions, where the computer-readable instructions are used to cause a computer to execute the method for adding a friend based on visible light communication, which is provided in the first aspect of the present application.
An embodiment of a seventh aspect of the present application provides a mobile terminal, including: the friend adding method based on visible light communication comprises the following steps of storing a program, storing the program in a memory, and executing the program by a processor.
An eighth aspect of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores computer-readable instructions, where the computer-readable instructions are configured to cause a computer to execute the method for adding a friend based on visible light communication, which is provided in the second aspect of the present application.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a method for adding a friend based on visible light communication according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a method for adding a friend based on visible light communication according to a second embodiment of the present application;
fig. 3 is a schematic flowchart of a method for adding a friend based on visible light communication according to a third embodiment of the present application;
fig. 4 is a schematic transmission diagram based on visible light communication according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a friend adding device based on visible light communication according to a fourth embodiment of the present application;
fig. 6 is a schematic structural diagram of a friend adding device based on visible light communication according to a fourth embodiment of the present application;
fig. 7 is a schematic structural diagram of a friend adding device based on visible light communication according to a fifth embodiment of the present application;
fig. 8 is a schematic structural diagram of a friend adding device based on visible light communication according to a sixth embodiment of the present application;
fig. 9 is a schematic structural diagram of a friend adding device based on visible light communication according to a seventh embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A method, an apparatus, a mobile terminal, and a storage medium for adding a friend based on visible light communication according to embodiments of the present application are described below with reference to the accompanying drawings.
The method aims at the technical problems that the existing terminal is single in friend adding mode and complex to operate, which are described in the background art. Therefore, the present application provides a method for adding a friend for visible light communication, which is implemented by obtaining communication identification information; carrying out modulation coding on the communication identification information to generate a first optical signal; the first optical signal is sent to the receiving equipment, so that the receiving equipment demodulates and encodes the first optical signal to generate communication identification information, friends are added according to the communication identification information, the communication identification information is converted into the optical signal to be sent, the received optical signal is analyzed, the friends can be added through the communication identification information, therefore, the friends can be automatically and quickly added, a plurality of optical signals can be obtained at one time to be analyzed and added, the friend adding efficiency is improved, one-click friend making is realized, and the user experience is improved.
Fig. 1 is a flowchart illustrating a method for adding a friend based on visible light communication according to an embodiment of the present application. As shown in fig. 1, the method is applied to a transmitting device, the transmitting device and a receiving device are in a visible light communication range, and the method comprises the following steps:
Specifically, in the method for adding a friend based on visible light communication of the embodiment of the present application, both the sending device and the receiving device are within the visible light communication range, that is, the visible light communication has a range limitation, and only light can perform communication.
Visible Light Communication (VLC) technique in this application utilizes the high-speed Light and shade scintillation signal that fluorescent lamp or emitting diode etc. sent to transmit information, connect the electric wire means of high-speed internet on lighting device, insert power plug and can use, the system of making with this kind of technique can cover the scope that indoor Light reaches, the computer does not need the connection of electric wires, compare with traditional radio frequency Communication and other Light radio Communication, there is not electromagnetic radiation, and there is Light just can communicate, no Communication blind area, and is convenient and fast.
It can be understood that the communication identification information may be user account information such as a mobile phone number, or a user identification corresponding to a communication application, such as a micro signal corresponding to a micro-messaging application, or may also be two-dimensional code information corresponding to a communication application account, and may be selected according to actual application needs.
It can be understood that there are many ways to obtain the communication identification information, and as an example, the triggering operation of adding a friend button to the target application is obtained, and the communication identification information is obtained according to the triggering operation.
Further, the communication identification information is modulated and encoded to generate a first optical signal, that is, the communication identification information in the communication application (for example, an application account, a two-dimensional code corresponding to the application account) is modulated and encoded to the first optical signal.
Specifically, the sending device sends the first optical signal to the receiving device through the visible light communication module, the receiving device demodulates and encodes the first optical signal to obtain corresponding communication identification information, automatically identifies the communication identification information, determines a communication application (such as applications of WeChat, QQ, microblog and the like) corresponding to the communication identification information, automatically loads the communication identification information into the communication application, and automatically adds friends.
It is understood that there may be one or more receiving devices, and different manners of transmitting may be selected, and as an example, there are 1 receiving device to which the first optical signal is transmitted through one light emitting diode; as another example, the receiving device is plural, the relative position of each receiving device and the transmitting device is determined, the emission direction corresponding to each receiving device is determined according to each relative position, and the plurality of light emitting diodes are driven to synchronously transmit the first optical signal to each receiving device based on each emission direction.
According to the method for adding the friends based on the visible light communication, the communication identification information is obtained; carrying out modulation coding on the communication identification information to generate a first optical signal; and sending the first optical signal to receiving equipment so that the receiving equipment demodulates and encodes the first optical signal to generate communication identification information, and adding friends according to the communication identification information. The method and the device solve the technical problems of single friend adding mode and complexity in the prior art, convert the communication identification information into the optical signal to be sent, and analyze the received optical signal to add friends through the communication identification information, so that the friends can be automatically and quickly added, a plurality of optical signals can be obtained at one time to be analyzed and added, the friend adding efficiency is improved, one-click friend making is realized, and the user experience is improved.
Fig. 2 is a flowchart illustrating a method for adding a friend based on visible light communication according to a second embodiment of the present application. As shown in fig. 2, the method is applied to a transmitting device, the transmitting device and a receiving device are in a visible light communication range, and the method comprises the following steps:
Specifically, a one-key friend adding button is set in each communication application, and when the friend adding button is triggered, the sending device modulates and codes communication identification information (for example, a communication application account number and a two-dimensional code corresponding to the communication application account number) in the communication application into a first optical signal.
And 204, determining the relative position of each receiving device and the sending device, determining the corresponding emitting direction of each receiving device according to each relative position, and driving a plurality of light emitting diodes to synchronously send the first optical signal to each receiving device based on each emitting direction.
Specifically, obtaining friend information to be added, for example A, B and C, as friends to be added, and corresponding account two-dimensional codes, and determining at least one receiving device corresponding to the friend information to be added, where the receiving device is a receiving device of the friend to be added; transmitting the first optical signal to the receiving device through one LED when the number of receiving devices is single; when the number of the receiving devices is multiple, determining the relative position of each receiving device and the sending device, and determining the corresponding transmitting direction of each receiving device based on the relative position; the at least one LED corresponding to the receiving equipment in number is driven, the first optical signal is synchronously sent to each receiving equipment in the at least one receiving equipment based on the transmitting direction, a plurality of friends are synchronously added, and the defect that only one friend can be added in the prior art is overcome.
Specifically, a group button capable of being established by one key is further arranged in the communication application, when all devices in the range click the group button at the same time, the devices edit the key identification information input by each user into a second optical signal, and then the server adds the devices with consistent passwords in the second optical signal into a group chat to realize quick group establishment without data support.
It should be noted that, a plurality of devices initiate a group adding request through visible light communication, and when the server receives the group establishing request, a group is automatically created, and the plurality of devices are added to the group.
And step 208, acquiring the receiving equipment in the visible light communication range, and sending the optical signal containing the group joining information to the receiving equipment in the visible light communication range, so that the receiving equipment in the visible light communication range demodulates and encodes the optical signal containing the group joining information to generate corresponding confirmation information, and joins the target group.
Specifically, the sending device creates a group, determines the coverage range of visible light, determines the receiving device within the coverage range, can send a group adding message to the group of receiving devices, and can add to the group after the receiving device within the range clicks confirmation, so that fast group establishment can be realized.
In order to implement the above embodiments, the present application further provides a method for adding a friend based on visible light communication.
Fig. 3 is a flowchart illustrating a method for adding a friend based on visible light communication according to a third embodiment of the present application, where the method is applied to a receiving device, and a sending device and the receiving device are in a visible light communication range. As shown in fig. 3, the method for adding a friend based on visible light communication may include the following steps:
Step 302, demodulating and encoding the first optical signal to generate communication identification information, and adding a friend according to the communication identification information.
The method comprises the following steps that a plurality of ways of adding friends according to communication identification information are available, and as a possible implementation way, a target application is determined according to the communication identification information; and loading the communication identification into the target application, and determining and adding the target friend.
Specifically, the sending device sends the first optical signal to the receiving device through the visible light communication module, the receiving device demodulates and encodes the first optical signal to obtain corresponding communication identification information, automatically identifies the communication identification information, determines a communication application (such as applications of WeChat, QQ, microblog and the like) corresponding to the communication identification information, automatically loads the communication identification information into the communication application, and automatically adds friends.
It is understood that there may be one or more receiving devices, and different manners of transmitting may be selected, and as an example, there are 1 receiving device to which the first optical signal is transmitted through one light emitting diode; as another example, the receiving device is plural, the relative position of each receiving device and the transmitting device is determined, the emission direction corresponding to each receiving device is determined according to each relative position, and the plurality of light emitting diodes are driven to synchronously transmit the first optical signal to each receiving device based on each emission direction.
According to the method for adding the friends based on the visible light communication, the first optical signal is obtained; the method comprises the steps of obtaining communication identification information of a target application in sending equipment; and modulating and coding the communication identification information to generate a first optical signal, demodulating and coding the first optical signal to generate communication identification information, and adding friends according to the communication identification information. The method and the device solve the technical problems of single friend adding mode and complexity in the prior art, convert the communication identification information into the optical signal to be sent, and analyze the received optical signal to add friends through the communication identification information, so that the friends can be automatically and quickly added, a plurality of optical signals can be obtained at one time to be analyzed and added, the friend adding efficiency is improved, one-click friend making is realized, and the user experience is improved.
In order to make the above process more clear to those skilled in the art, the following is described in detail with reference to fig. 4 as a specific example:
specifically, as shown in fig. 4, in the visible light communication mode, a one-touch friend adding button is set in each communication application, when the friend adding button is triggered, the sending device modulates and codes communication identification information (for example, a communication application account number and a two-dimensional code corresponding to the communication application account number) in the communication application into a first optical signal, and sends the first optical signal to the receiving module of the receiving device through the sending module in fig. 4, so as to complete friend adding, thereby automatically and quickly adding friends, and obtaining a plurality of optical signals for analysis and adding friends at one time, so that friend adding efficiency is improved, one-touch friend making is realized, and user experience is improved.
In order to implement the above embodiments, the present application further provides a friend adding device based on visible light communication.
Fig. 5 is a schematic structural diagram of a friend adding device based on visible light communication according to a fourth embodiment of the present application.
As shown in fig. 5, the adding friend device based on visible light communication may include: a first obtaining module 501, a generating module 502 and a sending module 503.
The friend adding device based on visible light communication is applied to sending equipment, and the sending equipment and the receiving equipment are in a visible light communication range.
The first obtaining module 501 is configured to obtain communication identifier information.
A generating module 502, configured to perform modulation coding on the communication identification information to generate a first optical signal.
A sending module 503, configured to send the first optical signal to the receiving device, so that the receiving device demodulates and encodes the first optical signal to generate the communication identifier information, and adds a friend according to the communication identifier information.
Further, as a possible implementation manner of the embodiment of the present application, the first obtaining module 501 is specifically configured to obtain a trigger operation of adding a friend button to a target application; and acquiring the communication identification information according to the triggering operation.
Further, as a possible implementation manner of the embodiment of the present application, referring to fig. 6, on the basis of the embodiment shown in fig. 5, the device for adding a friend based on visible light communication may further include: a third acquisition module 504 and a determination module 505.
A third obtaining module 504, configured to obtain information of a friend to be added.
A determining module 505, configured to determine the receiving device according to the information of the to-be-added friend.
Further, as a possible implementation manner of the embodiment of the present application, the number of the receiving devices is 1, and the sending module 503 is specifically configured to: the first optical signal is transmitted to the receiving device by a light emitting diode.
Further, as a possible implementation manner of the embodiment of the present application, the number of the receiving devices is multiple, and the sending module 503 is specifically configured to: determining a relative position of each receiving device to the transmitting device; determining a transmitting direction corresponding to each receiving device according to each relative position; driving a plurality of light emitting diodes to synchronously transmit the first optical signal to each of the receiving devices based on each of the transmission directions.
Further, as a possible implementation manner of the embodiment of the present application, referring to fig. 7, on the basis of the embodiment shown in fig. 5, the device for adding a friend based on visible light communication may further include: a fourth acquisition module 506 and an acquisition generation module 507.
The fourth obtaining module 506 is configured to obtain a trigger operation of the group establishment button of the target application.
The obtaining and generating module 507 is configured to obtain key identification information, perform modulation and coding on the key identification information to generate a second optical signal, and send the second optical signal to a server, so that the server performs demodulation and coding on a plurality of second optical signals to generate a plurality of pieces of key information, and establish a group with a plurality of users in the target application according to the plurality of pieces of key information.
Further, as a possible implementation manner of the embodiment of the present application, referring to fig. 8, on the basis of the embodiment shown in fig. 5, the device for adding a friend based on visible light communication may further include: a fifth acquiring module 508, a generating module 509 and an acquiring and sending module 510.
The fifth obtaining module 508 is configured to obtain a trigger operation of a group establishment button of the target application.
A generating module 509, configured to generate a target group according to the triggering operation.
An acquiring and sending module 510, configured to acquire the receiving device in the visible light communication range, and send an optical signal including the group joining information to the receiving device in the visible light communication range, so that the receiving device in the visible light communication range demodulates and encodes the optical signal including the group joining information to generate corresponding confirmation information, and joins the target group.
It should be noted that the foregoing explanation of the embodiment of the method for adding a friend based on visible light communication is also applicable to the friend adding device based on visible light communication of the embodiment, and the implementation principle is similar, and is not described herein again.
The friend adding device based on visible light communication obtains communication identification information; carrying out modulation coding on the communication identification information to generate a first optical signal; and sending the first optical signal to receiving equipment so that the receiving equipment demodulates and encodes the first optical signal to generate communication identification information, and adding friends according to the communication identification information. The method and the device solve the technical problems of single friend adding mode and complexity in the prior art, convert the communication identification information into the optical signal to be sent, and analyze the received optical signal to add friends through the communication identification information, so that the friends can be automatically and quickly added, a plurality of optical signals can be obtained at one time to be analyzed and added, the friend adding efficiency is improved, one-click friend making is realized, and the user experience is improved.
In order to implement the above embodiments, the present application further provides a friend adding device based on visible light communication.
Fig. 9 is a schematic structural diagram of a friend adding device based on visible light communication according to an eighth embodiment of the present application.
As shown in fig. 9, the adding friend device based on visible light communication may include: a second obtaining module 901 and a processing module 902.
The friend adding device based on visible light communication is applied to receiving equipment, and the sending equipment and the receiving equipment are in a visible light communication range.
The second obtaining module 901 is configured to obtain the first optical signal; acquiring communication identification information of a target application in the sending equipment; and carrying out modulation coding on the communication identification information to generate the first optical signal.
A processing module 902, configured to demodulate and encode the first optical signal to generate the communication identifier information, and add a friend according to the communication identifier information.
Further, as a possible implementation manner of the embodiment of the present application, the processing module 902 is specifically configured to determine the target application according to the communication identifier information; and loading the communication identification into the target application, and determining and adding a target friend.
It should be noted that the foregoing explanation of the embodiment of the method for adding a friend based on visible light communication is also applicable to the friend adding device based on visible light communication of the embodiment, and the implementation principle is similar, and is not described herein again.
According to the friend adding device based on visible light communication, the first optical signal is obtained; the method comprises the steps of obtaining communication identification information of a target application in sending equipment; and modulating and coding the communication identification information to generate a first optical signal, demodulating and coding the first optical signal to generate communication identification information, and adding friends according to the communication identification information. The method and the device solve the technical problems of single friend adding mode and complexity in the prior art, convert the communication identification information into the optical signal to be sent, and analyze the received optical signal to add friends through the communication identification information, so that the friends can be automatically and quickly added, a plurality of optical signals can be obtained at one time to be analyzed and added, the friend adding efficiency is improved, one-click friend making is realized, and the user experience is improved.
In order to implement the foregoing embodiments, the present application further provides a mobile terminal, where the mobile terminal includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the method for adding a friend based on visible light communication as proposed in the foregoing embodiments of the present application is implemented
In order to implement the foregoing embodiments, a computer-readable storage medium is further provided in this application, where the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions are configured to cause a computer to execute the method for adding a friend based on visible light communication according to the foregoing embodiments.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.
Claims (12)
1. A friend adding method based on visible light communication is characterized in that the method is applied to a sending device, the sending device and a receiving device are in a visible light communication range, and the method comprises the following steps:
acquiring communication identification information, wherein the communication identification information comprises user account information or two-dimensional code information corresponding to a communication application account;
carrying out modulation coding on the communication identification information to generate a first optical signal;
the receiving devices are multiple, and the relative position of each receiving device and the sending device is determined;
determining a transmitting direction corresponding to each receiving device according to each relative position;
and driving a plurality of light emitting diodes to synchronously send the first optical signal to each receiving device based on each transmitting direction so that the receiving device demodulates and encodes the first optical signal to generate the communication identification information, determining the communication application corresponding to the communication identification information, automatically loading the communication identification information into the communication application, and automatically adding friends.
2. The method of claim 1, wherein said obtaining communication identification information comprises:
acquiring a trigger operation of adding a friend button of a target application;
and acquiring the communication identification information according to the triggering operation.
3. The method of claim 1, prior to transmitting the first optical signal to the receiving device, further comprising:
acquiring friend information to be added;
and determining the receiving equipment according to the friend information to be added.
4. The method of claim 1, further comprising:
acquiring a trigger operation of a group establishment button of a target application;
and acquiring key identification information, modulating and coding the key identification information to generate second optical signals, and sending the second optical signals to a server, so that the server demodulates and codes the second optical signals to generate a plurality of pieces of key information, and establishing a group for a plurality of users in the target application according to the plurality of pieces of key information.
5. The method of claim 1, further comprising:
acquiring a trigger operation of a group establishment button of a target application;
generating a target group according to the trigger operation;
and acquiring receiving equipment within the visible light communication range, and sending an optical signal containing group joining information to the receiving equipment within the visible light communication range, so that the receiving equipment within the visible light communication range demodulates and codes the optical signal containing the group joining information to generate corresponding confirmation information, and joins the confirmation information into the target group.
6. A friend adding method based on visible light communication is applied to receiving equipment, and sending equipment and the receiving equipment are in a visible light communication range, and the method comprises the following steps:
acquiring a first optical signal; acquiring communication identification information of a target application in the sending equipment; modulating and coding the communication identification information to generate the first optical signal, wherein the number of the receiving devices is multiple, the sending device determines the relative position of each receiving device and the sending device, determines the corresponding emitting direction of each receiving device according to each relative position, and drives a plurality of light emitting diodes to synchronously send the first optical signal to each receiving device based on each emitting direction;
demodulating and encoding the first optical signal to generate communication identification information, wherein the communication identification information comprises user account information or two-dimensional code information corresponding to a communication application account, and determining the target application according to the communication identification information;
and loading the communication identification information into the target application, determining a target friend and automatically adding the target friend.
7. A friend adding device based on visible light communication is characterized in that the device is applied to a sending device, the sending device and a receiving device are in a visible light communication range, and the device comprises:
the first acquisition module is used for acquiring communication identification information, wherein the communication identification information comprises user account information or two-dimensional code information corresponding to a communication application account;
the generating module is used for modulating and coding the communication identification information to generate a first optical signal;
the sending module is configured to determine a relative position between each receiving device and the sending device, determine a transmitting direction corresponding to each receiving device according to each relative position, drive a plurality of light emitting diodes to synchronously send the first optical signal to each receiving device based on each transmitting direction, where the number of receiving devices is multiple, so that the receiving devices demodulate and encode the first optical signal to generate the communication identification information, determine a communication application corresponding to the communication identification information, automatically load the communication identification information into the communication application, and automatically add a friend.
8. A friend adding device based on visible light communication is characterized in that the device is applied to a receiving device, a sending device and the receiving device are in a visible light communication range, and the device comprises:
the second acquisition module is used for acquiring the first optical signal; acquiring communication identification information of a target application in the sending equipment; modulating and coding the communication identification information to generate the first optical signal, wherein the number of the receiving devices is multiple, the sending device determines the relative position of each receiving device and the sending device, determines the corresponding emitting direction of each receiving device according to each relative position, and drives a plurality of light emitting diodes to synchronously send the first optical signal to each receiving device based on each emitting direction;
the processing module is used for demodulating and encoding the first optical signal to generate the communication identification information, the communication identification information comprises user account information or two-dimensional code information corresponding to a communication application account, and the target application is determined according to the communication identification information;
and loading the communication identification information into the target application, determining a target friend and automatically adding the target friend.
9. A mobile terminal, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for adding a buddy based on visible light communication according to any of claims 1-5 when executing the program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the buddy adding method based on visible light communication according to any of claims 1-5.
11. A mobile terminal, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method for adding a buddy based on visible light communication according to claim 6 when executing the program.
12. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing the visible light communication-based buddy adding method according to claim 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910730346.XA CN110492936B (en) | 2019-08-08 | 2019-08-08 | Friend adding method and device based on visible light communication and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910730346.XA CN110492936B (en) | 2019-08-08 | 2019-08-08 | Friend adding method and device based on visible light communication and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110492936A CN110492936A (en) | 2019-11-22 |
CN110492936B true CN110492936B (en) | 2021-08-20 |
Family
ID=68550292
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910730346.XA Active CN110492936B (en) | 2019-08-08 | 2019-08-08 | Friend adding method and device based on visible light communication and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110492936B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112838876B (en) * | 2019-11-25 | 2022-12-16 | 香港理工大学深圳研究院 | Wearable communication device and wearable device communication method |
CN111510214B (en) * | 2020-04-23 | 2021-11-12 | 京东方科技集团股份有限公司 | Optical communication device, optical communication system, and communication connection establishment method |
CN116095031B (en) * | 2023-04-10 | 2023-06-20 | 科讯嘉联信息技术有限公司 | RPA automatic micro-adding system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104660494A (en) * | 2015-02-11 | 2015-05-27 | 任宝刚 | Communication system |
CN108055079A (en) * | 2017-11-17 | 2018-05-18 | 北京智慧光达通信科技有限公司 | A kind of visible light communication barcode scanning device, system |
CN109450771A (en) * | 2018-09-26 | 2019-03-08 | 深圳壹账通智能科技有限公司 | Add method, apparatus, computer equipment and the storage medium of good friend |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CA2055198A1 (en) * | 1991-11-08 | 1993-05-09 | Raymond Carbonneau | Optical identification friend-or-foe |
CN103441922A (en) * | 2013-08-26 | 2013-12-11 | 广州网易计算机***有限公司 | Method and device for adding friends |
CN103795463A (en) * | 2014-02-24 | 2014-05-14 | 东莞市远峰科技有限公司 | Making-friend system |
CN107071131A (en) * | 2016-02-10 | 2017-08-18 | 贺湘 | Making friends method and supporting intelligence are wearable |
CN108521365B (en) * | 2018-03-19 | 2020-05-22 | 维沃移动通信有限公司 | Method for adding friends and mobile terminal |
CN109743245B (en) * | 2018-12-29 | 2022-03-01 | 上海掌门科技有限公司 | Method and device for creating group |
-
2019
- 2019-08-08 CN CN201910730346.XA patent/CN110492936B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104660494A (en) * | 2015-02-11 | 2015-05-27 | 任宝刚 | Communication system |
CN108055079A (en) * | 2017-11-17 | 2018-05-18 | 北京智慧光达通信科技有限公司 | A kind of visible light communication barcode scanning device, system |
CN109450771A (en) * | 2018-09-26 | 2019-03-08 | 深圳壹账通智能科技有限公司 | Add method, apparatus, computer equipment and the storage medium of good friend |
Also Published As
Publication number | Publication date |
---|---|
CN110492936A (en) | 2019-11-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110492936B (en) | Friend adding method and device based on visible light communication and mobile terminal | |
CN104144420B (en) | A kind of radio switch-in method and relevant device, system | |
CN104023416B (en) | A kind of transmission method of file, system send terminal and receive terminal | |
Li et al. | Two-way visible light communication and illumination with LEDs | |
CN106487454B (en) | Sound wave configuration method and configuration system of Internet of things intelligent equipment | |
WO2007045937A1 (en) | Security in wireless environments using out-of-band channel communication | |
CN104506594A (en) | Data communication method and system for social application system | |
CN106452602B (en) | A kind of modulator approach of visible light communication | |
US10425812B2 (en) | Method and apparatus for establishment of private communication between devices | |
CN104994595A (en) | Cell phone terminal and intelligent hardware networking control method thereof | |
CN103812536A (en) | Bluetooth equipment connecting method and Bluetooth equipment | |
CN103812535A (en) | Bluetooth equipment connecting method and Bluetooth equipment | |
CN112152887A (en) | Network distribution method and device of household appliance, electronic device and storage medium | |
CN108712482A (en) | Based on mobile terminal Quick Response Code rapid file sharing method | |
CN104754495A (en) | Smart household device connecting method and smart terminal | |
CN111954199A (en) | Wireless network access method, mobile terminal and readable storage medium | |
CN204392618U (en) | Based on the application system of the convenient control intelligent lighting terminal of Quick Response Code | |
CN104793508A (en) | Networking control method, device and system for household appliances | |
Jadhav et al. | Cell Phone Controlled Ground Combat Vehicle | |
CN107005917B (en) | Method, device, terminal and router for establishing communication | |
CN112396819B (en) | Infrared communication device, system, method, terminal device and storage medium | |
CN104754580A (en) | Smart household device connecting method and smart terminal | |
KR102301414B1 (en) | Method and apparatus for transmitting and receing information between devices in a wireless communictaion system | |
Salvi et al. | An Image Transmission Technique using Low-Cost Li-Fi Testbed | |
CN108075829A (en) | A kind of variable slot pulse position modulation device, method and laser communication system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |