CN112821947B - Light fidelity LiFi communication control method, device, equipment and medium of electronic equipment - Google Patents

Light fidelity LiFi communication control method, device, equipment and medium of electronic equipment Download PDF

Info

Publication number
CN112821947B
CN112821947B CN201911126292.2A CN201911126292A CN112821947B CN 112821947 B CN112821947 B CN 112821947B CN 201911126292 A CN201911126292 A CN 201911126292A CN 112821947 B CN112821947 B CN 112821947B
Authority
CN
China
Prior art keywords
electronic device
master
slave
ith
lifi
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
Application number
CN201911126292.2A
Other languages
Chinese (zh)
Other versions
CN112821947A (en
Inventor
张秀生
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201911126292.2A priority Critical patent/CN112821947B/en
Publication of CN112821947A publication Critical patent/CN112821947A/en
Application granted granted Critical
Publication of CN112821947B publication Critical patent/CN112821947B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/11Arrangements specific to free-space transmission, i.e. transmission through air or vacuum
    • H04B10/114Indoor or close-range type systems
    • H04B10/116Visible light communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/15Setup of multiple wireless link connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Optical Communication System (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application provides a LiFi communication control method and device of electronic equipment, the electronic equipment and a computer readable storage medium, wherein the LiFi communication control method of the electronic equipment comprises the following steps: the method comprises the steps that connection is established between a master electronic device and first to Nth slave electronic devices, wherein N is a positive integer; and the master electronic device divides a communication cycle into N time periods, wherein the master electronic device communicates with the first to Nth slave electronic devices in the first to Nth time periods respectively, and switches other slave electronic devices into a search discovery state when the master electronic device communicates with the ith slave electronic device, wherein i is a positive integer less than or equal to N. On the basis of not increasing hardware, one-to-many LiFi communication is guaranteed.

Description

Light fidelity LiFi communication control method, device, equipment and medium of electronic equipment
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, an apparatus, a device, and a medium for controlling an optical fidelity LiFi communication of an electronic device.
Background
As the number of people using network information and the amount of information are rapidly increasing, the way of information transfer becomes more and more important for human beings. Common wireless transmissions typically rely on bluetooth and WiFI. At present, the WiFi technology has become more and more popular, but the problems of unstable signal and slow internet access speed are troubling people.
Light Fidelity (LiFi) technology is a brand new wireless transmission technology for data transmission by using visible Light spectrum, such as Light emitted by a bulb, and can transmit information by using electric signals to control high-speed flickering signals emitted by a Light emitting diode and invisible to naked eyes. LiFi has the characteristics of high data transmission speed, low radiation, low energy consumption, low carbon and environmental protection, and gradually becomes a research hotspot in the field of communication.
In the related art, in order to implement communication between two electronic devices through LiFi, an optical front end module may be respectively configured in the two electronic devices, and the optical front end module is respectively configured with two parts, namely, a light emitting module and a light receiving module, so that reception of an optical signal to an electrical signal and transmission of an electrical signal to an optical signal may be implemented, thereby implementing LiFi communication between the two electronic devices.
Disclosure of Invention
The embodiment of the application provides a method and a device for controlling light fidelity (LIFi) communication of electronic equipment, the electronic equipment and a computer-readable storage medium, which are used for solving the technical problem that one-to-many LiFi communication cannot be realized when LIFI communication is performed between the electronic equipment in the related art.
To this end, an embodiment of an aspect of the present application provides a method for controlling an optical fidelity LiFi communication of an electronic device, including: the method comprises the steps that connection is established between a master electronic device and first to Nth slave electronic devices, wherein N is a positive integer; and the master electronic device divides a communication cycle into N time periods, wherein the master electronic device communicates with the first to Nth slave electronic devices in the first to Nth time periods respectively, and when the master electronic device communicates with the ith slave electronic device, the other slave electronic devices are switched to a search discovery state, wherein i is a positive integer less than or equal to N.
Another embodiment of the present application provides an optical fidelity LiFi communication control apparatus for an electronic device, including: the device comprises an establishing module, a judging module and a judging module, wherein the establishing module is used for establishing connection between a master electronic device and first to Nth slave electronic devices, and N is a positive integer; and the processing module is used for dividing a communication cycle into N time periods by the master electronic equipment, wherein the master electronic equipment is respectively communicated with the first to the Nth slave electronic equipment in the first time period to the Nth time period, and when the master electronic equipment is communicated with the ith slave electronic equipment, other slave electronic equipment is switched to a search discovery state, wherein i is a positive integer less than or equal to N.
In another embodiment of the present application, an electronic device is provided, which 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 optical fidelity LiFi communication control method of the electronic device according to the first embodiment is implemented.
Another embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the LiFi communication control method of an electronic device according to the first embodiment.
The technical scheme disclosed in the application has the following beneficial effects:
after the master electronic device is connected with the first to Nth slave electronic devices, the master electronic device divides a communication cycle into N time periods, wherein the master electronic device is respectively communicated with the first to Nth slave electronic devices in the first time period to the Nth time period, and when the master electronic device is communicated with the ith slave electronic device, other slave electronic devices are switched to a searching and finding state, wherein N is a positive integer, and i is a positive integer smaller than or equal to N, so that one-to-many LiFi communication is realized on the basis of not increasing LiFi hardware.
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 LiFi communication control method for an electronic device according to an embodiment of the present disclosure;
FIG. 2 is a block diagram of a hardware implementation of an embodiment of the present application;
fig. 3 is an exemplary diagram of a communication control method according to an embodiment of the present application;
fig. 4 is a flowchart illustrating a LiFi communication control method for an electronic device according to another embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a communication control apparatus according to an 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.
The embodiments of the present application provide a light fidelity LIFI communication control method for an electronic device, which is directed to the technical problem that when LIFI communication is performed between electronic devices in related technologies, one-to-many LIFI communication cannot be achieved, and the method divides a communication cycle into N time periods, after a connection is established between a master electronic device and first to nth slave electronic devices, the master electronic device communicates with the first to nth slave electronic devices respectively in the first to nth time periods, and when the master electronic device communicates with the ith slave electronic device, other slave electronic devices are switched to a search discovery state, so that one-to-many LIFI communication is achieved on the basis that LIFI hardware does not need to be added.
The following describes a method for controlling an optical fidelity LiFi communication of an electronic device according to an embodiment of the present application with reference to fig. 1.
Fig. 1 is a flowchart illustrating a LiFi communication control method for an electronic device according to an embodiment of the present disclosure.
As shown in fig. 1, a method for controlling an optical fidelity LiFi communication of an electronic device according to an embodiment of the present application includes:
step 101, a master electronic device establishes connection with first to nth slave electronic devices, wherein N is a positive integer.
And 102, dividing a communication cycle into N time periods by the master electronic device, wherein the master electronic device communicates with the first to Nth slave electronic devices in the first to Nth time periods respectively, and when the master electronic device communicates with the ith slave electronic device, switching other slave electronic devices into a search discovery state.
Wherein i is a positive integer less than or equal to N.
Specifically, the LiFi communication control method for the electronic device according to the embodiment of the present application, hereinafter referred to as a communication control method for short, may be executed by the LiFi communication control device for the electronic device according to the embodiment of the present application, hereinafter referred to as a communication control device for short, so as to implement LiFi communication between the electronic device and a plurality of other electronic devices.
The electronic device may be any type of electronic device such as a smartphone, a tablet computer, and a wearable device, which is not limited in this application.
For clearly explaining the optical fidelity LiFi communication control method of the electronic device, first, a hardware implementation logic according to the optical fidelity LiFi communication control method of the embodiment of the present application is explained with reference to fig. 2.
As shown in fig. 2, because the LiFi communication works in the same infrared frequency band, in the Emitting system, the present application may use a Vertical Cavity Surface Emitting Laser (Vcsel) and a driving Driver, in the embodiment of the present application, the driving signal of the LiFi Emitting mode comes from the RF coaxial connector (RF switch in fig. 2) path shown in fig. 2.
In the LiFi communication, optical information is received mainly by an avalanche diode (APD shown in fig. 2), and the APD converts the received optical signal into an electric signal and needs to further perform amplification processing in an operational Amplifier (Amplifier in fig. 2).
Thus, in the present example, the entire LiFi module consists of three parts. The first part is an application processor and a WiFi chip part and is used for providing radio frequency signals. The second part is the radio frequency to baseband signal part where the 2.4Ghz or 5Ghz radio frequency signal connected to the antenna is frequency converted to baseband by a mixer, after which the signal is separated into receive and transmit paths. The third part is a part that baseband electric signals are converted into optical signals through an optical front-end module, the signals are used for driving an infrared transmitter, such as a Vcsel device in the embodiment of the application, on the side of a transmitting path, light is received by a photodiode, and then the light is amplified through low noise and is turned to a radio frequency baseband interface.
According to the hardware basis based on the application, in order to realize one-to-many communication between the master electronic device and other slave electronic devices, three parts of assemblies need to be configured in the master electronic device, the first part is an application processor and a WiFi chip part and is used for providing radio frequency signals, the second part is used for converting radio frequency into baseband, and the third part is used for converting baseband electric signals into optical signals.
Therefore, in the embodiment of the present application, the main electronic device may include: the device comprises a LiFi communication assembly, a wireless fidelity WiFi/LiFi converter and a WiFi chip.
Wherein, the WiFi/LiFi converter is used for converting the LiFi signal into the WiFi signal.
The WiFi chip is used for processing the WiFi signals.
And the LiFi communication assembly is used for converting the optical signal into a LiFi electric signal or converting the LiFi electric signal into the optical signal.
It can be understood that when the main electronic device is used as a receiving end of the LiFi communication, the LiFi communication assembly can receive the optical signal and convert the optical signal into the LiFi electrical signal, and then the WiFi/LiFi converter can convert the LiFi electrical signal into the WiFi signal, so that the WiFi chip processes the WiFi signal; when main electronic equipment was as the transmission end of liFi communication, the data that will transmit can be handled to the wiFi chip, obtain the wiFi signal, then wiFi/liFi converter can be with wiFi signal conversion LiFi signal of telecommunication to convert the light signal into and send away through liFi communication assembly with the liFi signal of telecommunication. Therefore, the WiFi chip is used for processing the WiFi signals converted by the wireless fidelity WiFi/LiFi converter, and LiFi communication can be achieved.
Based on the hardware basis, in the embodiment of the application, the connection established between the master electronic device and the first to nth slave electronic devices is WiFi direct connection.
It can be understood that, on the basis of the above hardware, considering that the communication scheme is performed based on WiFi direct connection, the number of the connected devices can only be 1, and therefore, in order to implement one-to-many communication, a WiFi direct connection communication mechanism needs to be reasonably utilized.
In a specific implementation, the states after the master electronic device establishes connections with the first to nth slave electronic devices may be divided into a communication state and a search discovery state. When the two electronic devices are in a communication state, the two electronic devices are in a normal connection state and can perform data transmission; when the two electronic devices are in the search discovery state, the two electronic devices are in a state of being discoverable by each other.
In this embodiment, since the master electronic device can only be connected to one slave electronic device at the same time, in this embodiment, the master electronic device may be configured to divide the communication cycle into N time periods, the master electronic device communicates with the first to nth slave electronic devices in the first to nth time periods, respectively, and when the master electronic device communicates with the ith slave electronic device, the other slave electronic devices are switched to a search discovery state, where i is a positive integer less than or equal to N, so that after the master electronic device establishes a connection with the first to nth slave electronic devices, the master electronic device continuously switches the connection state with each slave electronic device, so as to implement LiFi communication between the master electronic device and the N slave electronic devices.
Taking fig. 3 as an example, assuming that N is 2, that is, the master electronic device needs to perform LiFi communication with two slave electronic devices at the same time, assuming that the two slave electronic devices are device 1 and device 2, the communication cycle may be divided into two time periods (T1 and T2 in fig. 3), after entering the T1 time period, the master electronic device starts to communicate with device 1 quickly, at this time, device 2 switches to the search discovery state, after entering the T2 time period, the master electronic device starts to communicate with device 2 quickly, at this time, device 1 switches to the search discovery state.
Therefore, LiFi communication between the master electronic device and the plurality of slave electronic devices can be realized without increasing hardware.
It can be understood that, because the master electronic device continuously switches the connection states with the N slave electronic devices when performing LIFI communication with the N slave electronic devices, in one communication cycle, there may be a case where data transmission between the master electronic device and a certain slave electronic device is not completed, and with reference to fig. 4, the communication control method provided in this embodiment of the present application is further described below.
Fig. 4 is a flowchart illustrating a LiFi communication control method for an electronic device according to another embodiment of the present disclosure.
As shown in fig. 4, the communication control method provided in the embodiment of the present application may further include:
step 201, judging whether data transmission between the master electronic device and the ith slave electronic device is completed in the ith time period of the current communication cycle;
and step 202, if not, recording the data transmission state, so that the master electronic device and the ith slave electronic device continue to perform data transmission according to the data transmission state in the ith time period of the next communication cycle.
Specifically, since the ith slave electronic device communicates with the master electronic device in the ith time period in each communication cycle, if data transmission between the master electronic device and the ith slave electronic device is not completed in the ith time period of the current communication cycle, the state of the data transmission, for example, how much data has been transmitted, how much data is not transmitted, or to which position of the file the data is transmitted, may be recorded, so that when the master electronic device and the ith slave electronic device switch to the communication state again in the ith time period of the next communication cycle, data transmission is continued according to the recorded data transmission state. Therefore, the breakpoint continuous transmission function of the data is realized.
It will be appreciated that normally, when the master electronic device communicates with the ith slave electronic device, the other slave electronic devices are in the search for discovery state, so that at the end of the ith time period, it is possible to switch to the other slave electronic devices being in communication with the master electronic device. In practical applications, in the process of communicating between the master electronic device and the ith electronic device, a situation that a search of a slave electronic device to be switched to a communication state next finds that the state is abnormal may occur, so that the slave electronic device cannot be switched to be in the communication state with the master electronic device. In the embodiment of the present application, when the master electronic device communicates with the ith slave electronic device, it may be determined whether the search discovery state of the other slave electronic devices is abnormal, so as to determine whether to switch the connection state according to the determination result.
That is, in this embodiment of the present application, the communication control method may further include:
when the master electronic device communicates with the ith slave electronic device, judging whether the search discovery states of other slave electronic devices are abnormal;
if yes, the master electronic device continues to communicate with the ith slave electronic device in the (i + 1) th time period.
Here, the other slave electronic device may refer to a slave electronic device to be switched into a communication state with the master electronic device.
Specifically, if it is not easy to search for the other slave electronic device from the master electronic device, or if it is not possible to search for the other slave electronic device, it may be considered that the search finding state of the other slave electronic device is abnormal.
In a specific implementation, when the master electronic device communicates with the ith slave electronic device, if the search of other slave electronic devices finds that the state is abnormal, the slave electronic device communicating with the master electronic device may not be switched, that is, the master electronic device may be continuously controlled to communicate with the ith slave electronic device in the (i + 1) th time period.
It can be understood that, when the search discovery state of the other slave electronic devices is abnormal, in order to avoid that the communication time between the master electronic device and the ith slave electronic device is too long, and the other slave electronic devices cannot communicate with the master electronic device, in this embodiment of the present application, a communication cycle of the master electronic device and the ith slave electronic device in continuous communication may be recorded, and a communication cycle threshold n may be set, and then the communication cycle of the master electronic device and the ith slave electronic device in continuous communication may be compared with the communication cycle threshold n, and if the communication cycle of the master electronic device and the ith slave electronic device in continuous communication does not reach the communication cycle threshold n, for example, n-1, and it is detected that the search discovery state of the other slave electronic devices returns to normal, the master electronic device may be switched to communicate with the other slave electronic devices, and after the master electronic device and the slave electronic devices continuously communicate for n-1 communication cycles, and then switching the slave electronic device which communicates with the master electronic device.
If the communication cycle of the continuous communication between the master electronic device and the ith slave electronic device reaches the communication cycle threshold n and the search discovery state of other slave electronic devices is detected not to be recovered to normal, the user can be prompted to search for the slave electronic device with the abnormal state to be in the abnormal connection state, so that the user can adjust the abnormal slave electronic device.
It is understood that when the master electronic device communicates with the ith slave electronic device, the communication state of the master electronic device and the ith slave electronic device may also be abnormal, for example, the communication between the master electronic device and the ith slave electronic device is difficult, and in the embodiment of the present application, when the master electronic device communicates with the ith slave electronic device, if it is determined that the communication state of the master electronic device and the ith slave electronic device is abnormal, the master electronic device may be immediately switched to communicate with other slave electronic devices.
For example, continuing with the example shown in fig. 3, assuming that T1+ T2 is a communication cycle, the communication cycle threshold is n, and when the T1 time period ends, the main electronic device needs to switch to communicate with the device 2, however, in the T1 time period, it is detected that the main electronic device and the device 2 cannot search for the other party, the communication object of the main electronic device may not be switched, and the main electronic device and the device 1 may continue to be controlled to communicate in the T2 time period. If the search discovery state of the device 2 is detected to be recovered to normal in n communication cycles, and at this time, the device 1 and the main electronic device continuously communicate for n-2 communication cycles, the main electronic device and the device 2 may be switched to communicate, and the main electronic device and the device 2 are controlled to continuously communicate for n-2 communication cycles. If it is detected that the master electronic device is difficult to communicate with device 1 within the time period T1, it may be possible to immediately switch to the master electronic device to communicate with device 2 and update the cycle schedule.
In an exemplary embodiment, after the master electronic device and the N slave electronic devices are all connected, the communication control apparatus may detect, in real time, a data transmission state between the master electronic device and the first to nth slave electronic devices, and if one of the slave electronic devices has completed data transmission with the master electronic device, may not perform cycle detection, that is, may not switch to communication between the slave electronic device and the master electronic device until the slave electronic device adds a transmission task again, and then restart cycle switching.
In an exemplary embodiment, in order to make the user know which slave electronic device the master electronic device is currently communicating with, and the magnitude of the data transmission speed, in the embodiment of the present application, the connection state and the transmission speed of the master electronic device and the first to nth slave electronic devices may also be displayed on the master electronic device. Of course, the connection state between the slave electronic device and the master electronic device and the data transmission rate when the slave electronic device and the master electronic device are in the communication state may also be displayed in the slave electronic device, which is not limited in this application.
It should be noted that the connection state herein may include not only a communication state and a search discovery state after the connection between the master electronic device and a certain slave electronic device is established, but also whether a connection state is established. In the embodiment of the present application, the refresh period of the connection states of the master electronic device and the first to nth slave electronic devices may be set to be one communication period, that is, the connection states of the master electronic device and the first to nth slave electronic devices displayed on the master electronic device or the slave electronic devices are not changed in one communication period. For example, assuming that the example shown in fig. 3 is continuously used, in one communication cycle, since the device 1 and the device 2 have established connection, it may be displayed in the main electronic device that the connection states with the device 1 and the device 2 are both connected. In addition, the data transmission rate between the master electronic device and a certain slave electronic device may be a data transmission rate in one communication cycle, or may also be a data transmission rate in other time periods, which is not limited in this application.
The light fidelity LiFi communication control method for the electronic equipment provided by the embodiment of the application ensures one-to-many LiFi communication through reasonably utilizing the switching of the working cycle on the basis of not increasing hardware.
In order to implement the above embodiments, the present application further provides a light fidelity LiFi communication control device of an electronic device.
Fig. 5 is a schematic structural diagram of a LiFi communication control apparatus of an electronic device according to an embodiment of the present disclosure.
As shown in fig. 5, the optical fidelity LiFi communication control device of the electronic device, hereinafter referred to as a communication control device, includes:
the establishing module 31 is configured to establish a connection between the master electronic device and the first to nth slave electronic devices, where N is a positive integer; and
and the processing module 32 is configured to divide the communication cycle into N time periods by the master electronic device, where the master electronic device communicates with the first to nth slave electronic devices in the first to nth time periods, respectively, and when the master electronic device communicates with the ith slave electronic device, the other slave electronic devices are switched to a search discovery state, where i is a positive integer less than or equal to N.
Specifically, the communication control device provided in the embodiment of the present application may execute the LiFi communication control method in the embodiment of the first aspect, so as to implement LiFi communication between an electronic device and a plurality of other electronic devices.
The electronic device may be any type of electronic device such as a smartphone, a tablet computer, and a wearable device, which is not limited in this application.
In an exemplary embodiment, the establishing module 31 is configured to establish a WiFi direct connection between the master electronic device and the first to nth slave electronic devices.
In an exemplary embodiment, the communication control apparatus further includes: the first judgment module is used for judging whether data transmission between the master electronic equipment and the ith slave electronic equipment is finished in the ith time period of the current communication cycle;
the recording module is used for recording the data transmission state when the data transmission between the master electronic device and the ith slave electronic device is not completed in the ith time period of the current communication cycle, so that the master electronic device and the ith slave electronic device continue to perform the data transmission in the ith time period of the next communication cycle according to the data transmission state.
In an exemplary embodiment, the communication control apparatus further includes: the second judging module is used for judging whether the searching discovery states of other slave electronic equipment are abnormal or not when the master electronic equipment is communicated with the ith slave electronic equipment;
and the processing module is also used for the master electronic equipment to continue to communicate with the ith slave electronic equipment in the (i + 1) th time period.
In an exemplary embodiment, the processing module is further configured to:
recording a communication cycle of continuous communication between the master electronic equipment and the ith slave electronic equipment;
judging whether a communication cycle of continuous communication between the master electronic device and the ith slave electronic device reaches a communication cycle threshold value or not;
and if so, prompting that the slave electronic equipment with the abnormal searching state is in the abnormal connection state.
In an exemplary embodiment, the communication control apparatus further includes:
the third judging module is used for judging whether the communication state of the master electronic device and the ith slave electronic device is abnormal or not when the master electronic device communicates with the ith slave electronic device;
and the processing module is also used for immediately switching the master electronic device to communicate with other slave electronic devices when the communication state of the master electronic device and the ith slave electronic device is abnormal.
In an exemplary embodiment, the communication control apparatus further includes:
and the display module is used for displaying the connection state and the transmission speed of the master electronic equipment and the first to Nth slave electronic equipment by the master electronic equipment.
It should be noted that, the implementation process and principle of the communication control apparatus provided in the embodiment of the present application are the same as those of the communication control method described in the foregoing embodiment, and are not described herein again.
The light fidelity LiFi communication control device of the electronic equipment comprises an establishing module, a judging module and a control module, wherein the establishing module is used for establishing connection between the master electronic equipment and the first to Nth slave electronic equipment, and N is a positive integer; and the processing module is used for dividing a communication cycle into N time periods by the main electronic equipment, wherein the main electronic equipment is respectively communicated with the first to the Nth slave electronic equipment in the first time period to the Nth time period, and when the main electronic equipment is communicated with the ith slave electronic equipment, other slave electronic equipment is switched to a searching and finding state, wherein i is a positive integer less than or equal to N, so that one-to-many LiFi communication can be realized without increasing LiFi hardware.
In order to implement the foregoing embodiments, the present application further provides an electronic device, where the electronic device 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 electronic device implements the communication control method according to the first aspect.
It should be noted that the foregoing explanation on the embodiment of the communication control method is also applicable to the electronic device of the embodiment, and the implementation principle is similar, and is not described herein again.
The electronic device may be a smart phone, a tablet computer, a personal digital assistant, and the like, which is not limited in this application.
To achieve the above embodiments, the present application also proposes a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the communication control method according to the embodiment of the first aspect.
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.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature.
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 specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations 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.
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. For example, 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 out in the method of 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 the program, when executed, includes one or a combination of the steps of the method embodiments.
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 (10)

1. An optical fidelity LiFi communication control method of an electronic device, comprising:
the method comprises the steps that connection is established between a master electronic device and first to Nth slave electronic devices, wherein N is a positive integer; and
the master electronic device divides a communication cycle into N time periods, wherein the master electronic device communicates with the first to Nth slave electronic devices in the first to Nth time periods respectively, and when the master electronic device communicates with the ith slave electronic device, the other slave electronic devices are switched to a search discovery state, wherein i is a positive integer less than or equal to N;
judging whether data transmission between the master electronic equipment and the ith slave electronic equipment is finished within the ith time period of the current communication cycle;
if not, recording the data transmission state, so that the master electronic device and the ith slave electronic device continue to perform data transmission according to the data transmission state in the ith time period of the next communication cycle.
2. The LiFi communication control method of an electronic device according to claim 1, wherein the main electronic device comprises:
a LiFi communication component;
the WiFi/LiFi converter converts a LiFi signal into a WiFi signal; and
and the WiFi chip is used for processing the WiFi signals.
3. The LiFi communication control method of an electronic device according to claim 2, wherein the master electronic device establishes WiFi direct connection with the first to nth slave electronic devices.
4. The LiFi communication control method of an electronic device according to claim 1, further comprising:
when the master electronic device communicates with the ith slave electronic device, judging whether the search discovery states of other slave electronic devices are abnormal or not;
if yes, the master electronic device continues to communicate with the ith slave electronic device in the (i + 1) th time period.
5. The LiFi communication control method of an electronic device, according to claim 4, wherein after the master electronic device continues to communicate with the ith slave electronic device for an i +1 th time period, the method further comprises:
recording a communication period of the master electronic device continuously communicating with the ith slave electronic device;
judging whether the communication cycle of the continuous communication between the master electronic equipment and the ith slave electronic equipment reaches a communication cycle threshold value or not;
and if so, prompting that the slave electronic equipment with the abnormal searching state is in the abnormal connection state.
6. The LiFi communication control method of an electronic device according to claim 1, further comprising:
when the master electronic equipment is communicated with the ith slave electronic equipment, judging whether the communication state of the master electronic equipment and the ith slave electronic equipment is abnormal or not;
and if so, immediately switching the master electronic equipment to communicate with other slave electronic equipment.
7. The LiFi communication control method for electronic devices according to claim 1, wherein the connection status and transmission speed of the master electronic device and the first to nth slave electronic devices are displayed on the master electronic device.
8. An optical fidelity, LiFi, communication control apparatus of an electronic device, comprising:
the device comprises an establishing module, a judging module and a judging module, wherein the establishing module is used for establishing connection between a master electronic device and first to Nth slave electronic devices, and N is a positive integer; and
the processing module is used for dividing a communication cycle into N time periods by the master electronic device, wherein the master electronic device is respectively communicated with the first to the Nth slave electronic devices in the first time period to the Nth time period, and when the master electronic device is communicated with the ith slave electronic device, other slave electronic devices are switched to a search discovery state, wherein i is a positive integer less than or equal to N;
the first judgment module is used for judging whether data transmission between the master electronic equipment and the ith slave electronic equipment is finished in the ith time period of the current communication cycle;
the recording module is used for recording the data transmission state when data transmission between the master electronic device and the ith slave electronic device is not completed in the ith time period of the current communication cycle, so that the master electronic device and the ith slave electronic device continue to perform data transmission in the ith time period of the next communication cycle according to the data transmission state.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor, when executing the computer program, implements the LiFi communication control method of the electronic device according to any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements a LiFi communication control method of an electronic device according to any one of claims 1 to 7.
CN201911126292.2A 2019-11-18 2019-11-18 Light fidelity LiFi communication control method, device, equipment and medium of electronic equipment Active CN112821947B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911126292.2A CN112821947B (en) 2019-11-18 2019-11-18 Light fidelity LiFi communication control method, device, equipment and medium of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911126292.2A CN112821947B (en) 2019-11-18 2019-11-18 Light fidelity LiFi communication control method, device, equipment and medium of electronic equipment

Publications (2)

Publication Number Publication Date
CN112821947A CN112821947A (en) 2021-05-18
CN112821947B true CN112821947B (en) 2022-05-20

Family

ID=75852262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911126292.2A Active CN112821947B (en) 2019-11-18 2019-11-18 Light fidelity LiFi communication control method, device, equipment and medium of electronic equipment

Country Status (1)

Country Link
CN (1) CN112821947B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117897916A (en) * 2021-08-27 2024-04-16 昕诺飞控股有限公司 LiFi module, mobile device comprising LiFi module, and method of initiating handover of user equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662312A (en) * 2009-04-03 2010-03-03 东南大学 Short-distance wireless data transmission system
WO2015059914A1 (en) * 2013-10-22 2015-04-30 パナソニックIpマネジメント株式会社 Radio communication system
CN105517185A (en) * 2014-08-12 2016-04-20 原相科技股份有限公司 First electronic device and method for wireless communication pairing with second electronic device
CN105743828A (en) * 2015-09-23 2016-07-06 北京邮电大学 Time slot interleaving-based optical amplitude phase modulation method
CN108092716A (en) * 2017-12-25 2018-05-29 中科稀土(长春)有限责任公司 A kind of communication means and communicator of stroboscopic information
JP2019036859A (en) * 2017-08-17 2019-03-07 三菱電機株式会社 Optical communication device, optical communication method, optical communication program, and optical communication system
CN110243580A (en) * 2019-06-04 2019-09-17 Oppo广东移动通信有限公司 Detection method, device, electronic equipment and the storage medium of electronic equipment
CN110417470A (en) * 2019-09-03 2019-11-05 Oppo广东移动通信有限公司 Method for switching network and Related product based on visible light communication

Family Cites Families (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101369852A (en) * 2003-03-10 2009-02-18 松下电器产业株式会社 Pulse train optical transmission system and transmitter and receiver apparatuses used therein
JP2008301153A (en) * 2007-05-31 2008-12-11 Oki Electric Ind Co Ltd Passive optical network communication method and system
CN101515941B (en) * 2008-02-22 2012-02-15 北京北科驿唐科技有限公司 System and method for wireless-sensor communication
US8380127B2 (en) * 2008-10-29 2013-02-19 National Semiconductor Corporation Plurality of mobile communication devices for performing locally collaborative operations
CN101783973B (en) * 2009-01-16 2012-10-10 北京邮电大学 All-optical packet switching method, edge node and core nodes
JP5027955B2 (en) * 2010-09-15 2012-09-19 株式会社ソニー・コンピュータエンタテインメント Wireless communication apparatus, wireless communication system, and channel switching method
CN102075825A (en) * 2011-01-27 2011-05-25 华为技术有限公司 Uplink bandwidth management method and device in optical communication system
EP2615748B1 (en) * 2011-12-20 2017-11-08 Thales Alenia Space Schweiz AG Optical downlink system
WO2013187474A1 (en) * 2012-06-13 2013-12-19 日本電信電話株式会社 Optical network system, optical switch node, master node, and node
CN203827349U (en) * 2014-05-08 2014-09-10 长春理工大学 Optics antenna of one-to-many laser communication terminal
AU2015413926A1 (en) * 2015-11-05 2018-06-21 Swag Technologies Sdn Bhd A way of configuring a device for concealed connection merging through coordinated and dynamic virtual proxy allocation
CN106253981A (en) * 2016-07-26 2016-12-21 维沃移动通信有限公司 A kind of data transmission method and the first electronic equipment
CN106549710B (en) * 2016-12-09 2019-04-09 东华大学 A kind of wireless sensor network time service and positioning system based on visible light
CN106888051B (en) * 2017-02-16 2019-07-30 西安电子科技大学 Dynamic, multi-user cut-in method in indoor visible light communication system
CN108628178A (en) * 2017-03-17 2018-10-09 佛山市顺德区美的电热电器制造有限公司 A kind of control method and device
CN108834223B (en) * 2018-06-22 2020-12-08 中国联合网络通信集团有限公司 Method for switching WiFi frequency band and electronic equipment
CN109618220B (en) * 2018-12-25 2021-03-19 三星电子(中国)研发中心 Wireless screen projection method and wireless screen projection system
CN110350971B (en) * 2019-05-14 2021-06-18 武文静 Optical networking method, optical communication equipment and optical networking system
CN110266385A (en) * 2019-07-05 2019-09-20 南方科技大学 A kind of visible light communication method and system
CN110417467A (en) * 2019-07-12 2019-11-05 深圳抟翼科技有限公司 Visible light communication transmitting terminal, receiving end and system is imaged in MIMO

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101662312A (en) * 2009-04-03 2010-03-03 东南大学 Short-distance wireless data transmission system
WO2015059914A1 (en) * 2013-10-22 2015-04-30 パナソニックIpマネジメント株式会社 Radio communication system
CN105517185A (en) * 2014-08-12 2016-04-20 原相科技股份有限公司 First electronic device and method for wireless communication pairing with second electronic device
CN105743828A (en) * 2015-09-23 2016-07-06 北京邮电大学 Time slot interleaving-based optical amplitude phase modulation method
JP2019036859A (en) * 2017-08-17 2019-03-07 三菱電機株式会社 Optical communication device, optical communication method, optical communication program, and optical communication system
CN108092716A (en) * 2017-12-25 2018-05-29 中科稀土(长春)有限责任公司 A kind of communication means and communicator of stroboscopic information
CN110243580A (en) * 2019-06-04 2019-09-17 Oppo广东移动通信有限公司 Detection method, device, electronic equipment and the storage medium of electronic equipment
CN110417470A (en) * 2019-09-03 2019-11-05 Oppo广东移动通信有限公司 Method for switching network and Related product based on visible light communication

Also Published As

Publication number Publication date
CN112821947A (en) 2021-05-18

Similar Documents

Publication Publication Date Title
CN108768434B (en) Radio frequency circuit, terminal and signal transmission control method
US9900133B2 (en) Method and communication device for controlling beam-forming tracking
CN104980987A (en) Method, apparatus, and computer program product for seamless switching of communication connection
CN110073696B (en) Wake-up radio unit, method thereof and computer readable medium
EP3567963B1 (en) Data transmission method and device
WO2022052879A1 (en) Modulation method and apparatus, communication device, and readable storage medium
EP4064760A1 (en) Device control method and apparatus, storage medium and electronic device
CN111970639A (en) Method, device, terminal equipment and storage medium for keeping safe distance
CN112821947B (en) Light fidelity LiFi communication control method, device, equipment and medium of electronic equipment
WO2023066318A1 (en) Bsc terminal capability reporting method and apparatus, terminal, and network side device
CN112152709B (en) Light fidelity LiFi control method and device of mobile terminal, mobile terminal and medium
US9408191B2 (en) Communication terminal and method for controlling data communication
EP3817396A1 (en) Communicational connection establishment method and related device
CN104039001A (en) Power control method and device
CN112262532A (en) Method for improving MIMO throughput direction by increasing radio frequency path and terminal equipment
JP2016012827A (en) Optical transmitting/receiving device
CN111786725B (en) Wireless communication device, method and electronic equipment
CN112152891B (en) Control system of household appliance, mobile terminal and method
CN112751617B (en) Electronic setting, control method and device thereof, and storage medium
CN105468415A (en) Radio-frequency link control method and apparatus
WO2022148365A1 (en) Determination method and acquisition method for quasi co-location information, and communication device
CN212543773U (en) Radio frequency device and communication terminal
CN214756948U (en) Anti-interference PON gateway
CN111065149B (en) System message acquisition method, device, user equipment and storage medium
WO2024022252A1 (en) Receiving methods, terminal, network side device and medium

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