WO2021121083A1 - 电子设备间的通信控制方法、装置、电子设备以及介质 - Google Patents

电子设备间的通信控制方法、装置、电子设备以及介质 Download PDF

Info

Publication number
WO2021121083A1
WO2021121083A1 PCT/CN2020/134634 CN2020134634W WO2021121083A1 WO 2021121083 A1 WO2021121083 A1 WO 2021121083A1 CN 2020134634 W CN2020134634 W CN 2020134634W WO 2021121083 A1 WO2021121083 A1 WO 2021121083A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
lifi
module
connection
duration
Prior art date
Application number
PCT/CN2020/134634
Other languages
English (en)
French (fr)
Inventor
张秀生
Original Assignee
Oppo广东移动通信有限公司
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 Oppo广东移动通信有限公司 filed Critical Oppo广东移动通信有限公司
Publication of WO2021121083A1 publication Critical patent/WO2021121083A1/zh

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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0248Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal dependent on the time of the day, e.g. according to expected transmission activity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/28Discontinuous transmission [DTX]; Discontinuous reception [DRX]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Definitions

  • This application relates to the technical field of electronic devices, and in particular to a communication control method, device, electronic device, and medium between electronic devices.
  • This application aims to solve one of the technical problems in the related technology at least to a certain extent.
  • the embodiment of the first aspect of the present application proposes a communication control method between electronic devices, including:
  • the first electronic device is controlled to enter the scanning mode, wherein, in the scanning mode, the LiFi module is controlled to be the first Duty cycle to turn on;
  • the first electronic device is controlled to enter a connection mode, wherein, in the connection mode, the LiFi module is controlled to The second duty cycle is turned on and the first heartbeat packet is sent to the second electronic device, and at the same time the second heartbeat packet sent by the second electronic device is received.
  • An embodiment of the second aspect of the present application proposes a communication control device between electronic devices, including:
  • the judging module is used to judge whether the first electronic device establishes an optical fidelity LiFi connection with the second electronic device;
  • the first control module is configured to determine that the first electronic device has not established the LiFi connection with the second electronic device, and then control the first electronic device to enter a scanning mode, wherein, in the scanning mode, Control the LiFi module to turn on at the first duty cycle;
  • the second control module is configured to determine that the first electronic device has established the LiFi connection with the second electronic device, and then control the first electronic device to enter a connection mode, wherein, in the connection mode, Control the LiFi module to turn on at a second duty cycle and send a first heartbeat packet to the second electronic device, and at the same time receive a second heartbeat packet sent by the second electronic device.
  • the embodiment of the third aspect of the present application proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and capable of running on the processor.
  • the processor executes the program, the implementation is implemented as described above.
  • the communication control method described in the example is described above.
  • the embodiment of the fourth aspect of the present application proposes a non-transitory computer-readable storage medium, the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions are used to make a computer execute the above-mentioned embodiments. Communication control method.
  • FIG. 1 is a schematic flowchart of a communication control method between electronic devices according to an embodiment of the application
  • FIG. 2 is a schematic flowchart of another communication control method between electronic devices according to an embodiment of the application.
  • FIG. 3 is a schematic flowchart of another communication control method between electronic devices according to an embodiment of the application.
  • FIG. 4 is an exemplary diagram of a communication control method between electronic devices provided by an embodiment of the application.
  • FIG. 5 is a schematic structural diagram of a communication control device between electronic devices according to an embodiment of the application.
  • the current wireless transmission method not only has a low transmission rate, but also has a slow transmission rate and poor real-time performance due to the complex spectrum environment in the existing environment, which is susceptible to external interference.
  • the optical fidelity LiFi technology shares WiFi chips and WiFi protocols for data processing.
  • it also introduces some problems, such as how to sensitively detect the interruption of communication light, how to match the duty cycle of WiFi and LiFi module hardware to reduce power consumption; in addition, how to achieve interruption detection and accounting for two-way communication Space ratio setting, etc.
  • an embodiment of the present application proposes a communication control method between electronic devices, which determines whether the first electronic device establishes an optical fidelity LiFi connection with the second electronic device; it is determined that the first electronic device is not connected to the second electronic device.
  • the first electronic device is controlled to enter the scanning mode, where in the scanning mode, the LiFi module is controlled to turn on at the first duty cycle; and it is determined that the first electronic device has established LiFi with the second electronic device
  • the first electronic device is controlled to enter the connection mode, where in the connection mode, the LiFi module is controlled to turn on at the second duty cycle and send the first heartbeat packet to the second electronic device while receiving the second electronic device The second heartbeat packet sent.
  • This application provides a communication control method between electronic devices.
  • the method includes: determining whether the first electronic device establishes an optical fidelity LiFi connection with the second electronic device; determining that the first electronic device does not establish a LiFi connection with the second electronic device, then controlling the first electronic device to enter a scanning mode, wherein In the mode, the LiFi module is controlled to turn on at the first duty cycle; and it is determined that the first electronic device has established a LiFi connection with the second electronic device, then the first electronic device is controlled to enter the connection mode, wherein, in the connection mode , Controlling the LiFi module to turn on at the second duty cycle and sending the first heartbeat packet to the second electronic device, and at the same time receiving the second heartbeat packet sent by the second electronic device.
  • controlling the LiFi module to turn on at the first duty cycle includes: determining whether the first electronic device has established a LiFi connection with the second electronic device; determining that the first electronic device is not connected to the second electronic device Once a LiFi connection has been established, the first duty cycle includes the first duration for controlling the LiFi module to turn on and the second duration for controlling the LiFi module to turn off.
  • the second duration is the sum of the first duration and the random duration, and the random duration is less than Or equal to the first duration.
  • determining whether the first electronic device has established a LiFi connection with the second electronic device includes: judging whether the first electronic device has been connected to the second electronic device according to the opening time of the LiFi module in the first electronic device and the second electronic device. Second, the electronic device has established a LiFi connection; if the LiFi module in the first electronic device and the second electronic device have the same opening time, it is determined that the first electronic device and the second electronic device have established a connection; if the first electronic device and the second electronic device have established a connection If the LiFi module in the electronic device has a different opening time, it is determined that the first electronic device has not established a connection with the second electronic device.
  • the method further includes: determining that the first electronic device has established a LiFi connection with the second electronic device, then the first duty cycle includes controlling the first duration of the LiFi module being turned on and controlling the LiFi module being turned off The third duration of, where the third duration is equal to the first duration.
  • the method further includes: determining that the first electronic device has established a LiFi connection with the second electronic device, and when it is determined that the LiFi module is turned on or the connection is disconnected, controlling the LiFi module to turn on and maintain the first preset Set the duration.
  • the LiFi module before controlling the LiFi module to turn on at the first duty cycle, it further includes: controlling the LiFi module to turn off and maintain the first preset duration.
  • controlling the first electronic device to enter the connection mode includes: entering the connection mode when the first electronic device has established a LiFi connection with the second electronic device and has not sent information.
  • controlling the LiFi module to turn on at the second duty cycle and sending the first heartbeat packet to the second electronic device while receiving the second heartbeat packet sent by the second electronic device includes: Point sends the first heartbeat packet to the second electronic device through the first path, where the second electronic device receives the first heartbeat packet at the second time point; receives the first response packet sent by the second electronic device at the third time point , And turn off the LiFi module for the fourth time period when receiving the first response packet, and continue to send the first heartbeat packet after the fourth time period.
  • the fourth duration is: heartbeat duration-message transmission duration-LiFi module activation duration.
  • the application also provides a communication control device 500 between electronic devices.
  • the communication control device 500 includes a judgment module 510, a first control module 520, and a second control module.
  • the determining module 510 is used to determine whether the first electronic device establishes an optical fidelity LiFi connection with the second electronic device; the first control module 520 is used to determine whether the first electronic device does not establish a LiFi connection with the second electronic device, and then control the first electronic device
  • the device enters the scanning mode, where, in the scanning mode, the LiFi module is controlled to turn on at the first duty cycle; and the second control module is used to determine that the first electronic device has established a LiFi connection with the second electronic device, then control
  • the first electronic device enters the connection mode.
  • the LiFi module is controlled to turn on at the second duty cycle and sends the first heartbeat packet to the second electronic device, and at the same time receives the second sent by the second electronic device.
  • Heartbeat package is used to determine whether the first electronic device establishes an optical fidelity Li
  • the first control module 520 is configured to: determine whether the first electronic device has established a LiFi connection with the second electronic device; if it is determined that the first electronic device has not established a LiFi connection with the second electronic device, then the first electronic device has not established a LiFi connection with the second electronic device.
  • a duty cycle includes a first duration for controlling the LiFi module to turn on and a second duration for controlling the LiFi module to turn off. The second duration is the sum of the first duration and the random duration, and the random duration is less than or equal to the first duration.
  • the first control module 520 is further configured to: determine whether the first electronic device has established a LiFi connection with the second electronic device according to the opening time of the LiFi modules in the first electronic device and the second electronic device; if If the LiFi module in the first electronic device and the second electronic device have the same opening time, it is determined that the first electronic device and the second electronic device have established a connection; if the LiFi module in the first electronic device and the second electronic device have a different opening time If the same, it is determined that the first electronic device has not established a connection with the second electronic device.
  • the first control module 520 is further configured to: determine that the first electronic device has established a LiFi connection with the second electronic device, then the first duty cycle includes controlling the first duration of the LiFi module to be turned on and controlling The third time period when the LiFi module is closed, where the third time period is equal to the first time period.
  • the first control module 520 is further configured to: determine that the first electronic device has established a LiFi connection with the second electronic device, and when it is determined that the LiFi module is turned on or the connection is disconnected, control the LiFi module to turn on and Keep the first preset duration.
  • the communication control device 500 is used to control the LiFi module to turn off and maintain the LiFi module for a first preset period of time before controlling the LiFi module to turn on at the first duty cycle.
  • the second control module is used to enter the connection mode when the first electronic device has established a LiFi connection with the second electronic device and has not sent information.
  • the second control module is further configured to: send the first heartbeat packet to the second electronic device through the first path at the first time point, where the second electronic device receives the first heartbeat packet at the second time point.
  • Heartbeat packet ; at the third time point, the first response packet sent by the second electronic device is received, and when the first response packet is received, the LiFi module is turned off for the fourth time period, and the first heartbeat packet is continued to be sent after the fourth time period .
  • the fourth duration is: heartbeat duration-message transmission duration-LiFi module activation duration.
  • the application also provides an electronic device.
  • the electronic device includes a memory, a processor, and a computer program stored on the memory and running on the processor.
  • the processor executes the program, the communication control method of any one of the above is implemented.
  • This application also provides a non-transitory computer-readable storage medium.
  • the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions are used to make a computer execute any one of the communication control methods described above.
  • FIG. 1 is a schematic flowchart of a communication control method between electronic devices according to an embodiment of the application.
  • the electronic device may be a hardware device with various operating systems, such as a smart phone, a tablet computer, a personal digital assistant, and a wearable device.
  • the communication control method between electronic devices includes the following steps:
  • Step 101 Determine whether the first electronic device establishes an optical fidelity LiFi connection with the second electronic device.
  • LiFi Light Fidelity
  • the connection after successfully establishing a wireless communication connection using WiFi technology between electronic devices, in order to ensure the stability of the wireless communication connection, the connection will remain connected even if the radio frequency signal is interrupted for a period of time, and the delay is longer (more than 10s).
  • the communication state between the electronic devices will be abnormal. Therefore, it is necessary to detect the abnormal state of the LiFi connection immediately.
  • the first electronic device sends the first detection packet to the second electronic device, starts the timeout timer when sending the first detection packet, and the second electronic device receives the first detection sent by the first electronic device.
  • the second electronic device sends a response packet to the first electronic device, and the first electronic device receives the response packet sent by the second electronic device, indicating that a LiFi connection has been established between the first electronic device and the second electronic device, and the LiFi
  • the connection can enable normal communication between the first electronic device and the second electronic device.
  • the first electronic device may delete the timeout timer.
  • the first electronic device sends a first detection packet to the second electronic device, and starts a timeout timer when sending the first detection packet. If the timeout timer of the first electronic device exceeds the preset duration, The response packet sent by the second electronic device is not received. In this case, it is determined that the communication of the second electronic device is abnormal, and the first electronic device has not established a LiFi connection with the second electronic device.
  • the first electronic device does not send the first detection packet to the second electronic device for more than the preset time, indicating that there is an abnormality in the communication of the first electronic device.
  • the first electronic device has not communicated with the second electronic device.
  • the second electronic device establishes a LiFi connection.
  • the LiFi connection established between the first electronic device and the second electronic device can realize two-way communication between the first electronic device and the second electronic device.
  • the first electronic device can send data to the second electronic device, and at the same time, it can also receive data sent by the second electronic device.
  • the second electronic device can send data to the first electronic device, and at the same time, can also receive data sent by the first electronic device.
  • Step 102 It is determined that the first electronic device has not established a LiFi connection with the second electronic device, and then the first electronic device is controlled to enter a scanning mode, wherein, in the scanning mode, the LiFi module is controlled to be turned on at the first duty cycle.
  • the duty cycle refers to the ratio of the power-on time to the total time in a pulse cycle.
  • the pulse width is 1 ⁇ s
  • the duty cycle of a pulse sequence with a signal period of 4 ⁇ s is 0.25.
  • the first electronic device determines that the first electronic device has not established a LiFi connection with the second electronic device, and then the first electronic device is controlled to enter the scanning mode. And, in the scanning mode, the LiFi module is controlled to turn on with the first duty cycle.
  • the LiFi module is controlled to turn on with the first duty cycle.
  • the LiFi module may include an optical signal transmitting module and an optical signal receiving module.
  • the LiFi module can also include three parts.
  • the first part is the application processor and the WiFi chip part to provide radio frequency signals.
  • the second part is the radio frequency to baseband signal, which is used to convert the 2.4Ghz/5GHz radio frequency signal connected to the antenna to baseband through a mixer, and then the signal is separated into an uplink path and a downlink path.
  • the third part is that the baseband electrical signal is converted into an optical signal by the optical front end.
  • the signal is used to drive the optical signal transmitter, such as a VCSEL device; on the downstream path side, the visible light is received by the photodiode, low-noise amplified and redirected to Radio frequency and baseband interface.
  • the optical signal transmitter such as a VCSEL device
  • Step 103 It is determined that the first electronic device has established a LiFi connection with the second electronic device, and then the first electronic device is controlled to enter a connection mode.
  • the LiFi module in the connection mode, is controlled to turn on at the second duty cycle and send the first heartbeat packet to the second electronic device, and at the same time receive the second heartbeat packet sent by the second electronic device.
  • the first electronic device determines that the first electronic device has established a LiFi connection with the second electronic device, then the first electronic device is controlled to enter the connection mode, and the LiFi module is controlled to switch from the first duty cycle to the second duty cycle.
  • the first electronic device when it is determined that the first electronic device has established a LiFi connection with the second electronic device, and no information is sent between the first electronic device and the second electronic device, the first electronic device is controlled to enter the connection mode.
  • the heartbeat packet refers to a self-defined command word that periodically informs the other party of its own state between the first electronic device and the second electronic device, and is sent at a certain time interval, similar to a heartbeat, so it is called a heartbeat packet.
  • control the LiFi module after controlling the first electronic device to enter the connection mode, control the LiFi module to turn on at the second duty cycle and send the first heartbeat packet to the second electronic device, and at the same time receive the signal sent by the second electronic device The second heartbeat package.
  • steps 102 and 103 are not performed sequentially, and only step 102 may be performed, or only step 103 may be performed, which is not limited here.
  • the communication control method between electronic devices in the embodiment of this application determines whether the first electronic device establishes an optical fidelity LiFi connection with the second electronic device; it is determined that the first electronic device does not establish a LiFi connection with the second electronic device, and then the first electronic device is controlled to establish a LiFi connection with the second electronic device.
  • An electronic device enters a scanning mode, in which, in the scanning mode, the LiFi module is controlled to turn on at a first duty cycle; and it is determined that the first electronic device has established a LiFi connection with the second electronic device, then the first electronic device is controlled Enter the connection mode, where in the connection mode, the LiFi module is controlled to turn on at the second duty cycle and send the first heartbeat packet to the second electronic device, and at the same time receive the second heartbeat packet sent by the second electronic device. Therefore, by determining whether a LiFi connection is established between the first electronic device and the second electronic device, different duty cycles are used when the LiFi module is turned on, thereby reducing the power consumption of the two electronic devices.
  • FIG. 2 is a schematic flowchart of another communication control method between electronic devices according to an embodiment of the application.
  • the foregoing step 102 may further include:
  • Step 201 Determine whether the first electronic device has established a LiFi connection with the second electronic device.
  • the first electronic device when it is determined that the first electronic device has not established a LiFi connection with the second electronic device, it is further determined whether the first electronic device has established a LiFi connection with the second electronic device.
  • the first electronic device has established a LiFi connection with the second electronic device according to the opening time of the LiFi module in the first electronic device and the second electronic device. If the LiFi module in the first electronic device and the second electronic device have the same opening time, it is determined that the first electronic device and the second electronic device have established a connection. If the opening duration of the LiFi module in the first electronic device and the second electronic device are not the same, it is determined that the first electronic device has not established a connection with the second electronic device.
  • step 202 it is determined that the first electronic device has not established a connection with the second electronic device, and the first duty cycle includes a first time period for controlling the LiFi module to be turned on and a second time period for controlling the LiFi module to be turned off.
  • the second duration is the sum of the first duration and the random duration, and the random duration is less than or equal to the first duration.
  • the LiFi module switching duration of the first electronic device and the second electronic device are the same, for example, both are 500ms, there may be the LiFi module of the first electronic device being turned on and the LiFi module of the second electronic device.
  • the group is in a closed state. In this case, the first electronic device and the second electronic device can never establish a LiFi connection.
  • the first duty cycle that can be controlled to turn on the LiFi module includes the first time period that the LiFi module is turned on and the time that the LiFi module is turned off.
  • the second duration is the sum of the first duration and the random duration, and the random duration is less than or equal to the first duration.
  • the first time that the LiFi module is turned on is 500ms
  • the second time that the LiFi module is turned off may be the sum of 500ms and a random time.
  • the LiFi module when the first electronic device is just started, or when the LiFi connection between the first electronic device and the second electronic device is disconnected, the LiFi module is controlled to close and maintain the first preset duration.
  • the first preset duration is 20s. In this way, it can be ensured that a LiFi connection can be established between the first electronic device and the second electronic device.
  • Step 203 It is determined that the first electronic device has established a LiFi connection with the second electronic device, and the first duty cycle includes a first time period for controlling the LiFi module to turn on and a third time period for controlling the LiFi module to turn off.
  • the third duration is equal to the first duration.
  • the first duty cycle of the LiFi module can be controlled.
  • the ratio includes the first time period when the LiFi module is turned on and the third time period when the LiFi module is turned off.
  • the first electronic device has established a LiFi connection with the second electronic device.
  • the LiFi module is controlled to be turned on and maintained for the first preset time, so that the first electronic device
  • the LiFi modules of the device and the second electronic device are turned on and synchronized with the off time.
  • steps 202 and 203 are not performed sequentially, and it is necessary to determine whether only step 202 or only step 203 is performed according to the judgment result of step 201.
  • the first account includes the first time period for controlling the LiFi module to turn on and the second time period for controlling the LiFi module to turn off. If it is determined that the first electronic device has established a LiFi connection with the second electronic device, the first duty cycle includes controlling the LiFi module The first duration of turning on and the third duration of controlling the LiFi module to turn off.
  • the first duty cycle of the LiFi module is controlled, which avoids that when the first duty cycle of the LiFi module is the same among the electronic devices, the electronic The phenomenon that LiFi connection cannot be established between devices.
  • step 103 when the LiFi module is controlled to turn on at the second duty cycle and sends the first heartbeat packet to the second electronic device, while receiving the second heartbeat packet sent by the second electronic device Specifically, the first electronic device and the second electronic device can be controlled to use a bidirectional path to send heartbeat packets.
  • FIG. 3 is a schematic flowchart of another communication control method for an electronic device according to an embodiment of the application.
  • the communication control method may further include the following steps:
  • Step 301 Send a first heartbeat packet to a second electronic device through a first path at a first time point, where the second electronic device receives the first heartbeat packet at a second time point.
  • the first electronic device determines that the first electronic device has established a LiFi connection with the second electronic device, and the first electronic device is controlled to send the first heartbeat packet to the second electronic device through the first path at the first time point, so that the second electronic device The electronic device receives the first heartbeat packet sent by the first electronic device at the second time point.
  • the first electronic device sends the first heartbeat packet to the second electronic device at time T1, and the second electronic device receives the first heartbeat packet sent by the first electronic device at time T2.
  • Step 302 Receive the first response packet sent by the second electronic device at the third time point, and when the first response packet is received, turn off the LiFi module for a fourth period of time, and continue to send the first heartbeat packet after the fourth period of time .
  • the second electronic device after receiving the first heartbeat packet sent by the first electronic device, the second electronic device sends the first response packet to the first electronic device, so that the first electronic device receives the first heartbeat packet at the third time point. 2.
  • the first response packet sent by the electronic device After receiving the first response packet at the third time point, the first electronic device controls the LiFi module to turn off for a fourth period of time, and continues to send the first heartbeat packet after the fourth period of time.
  • the fourth duration is the heartbeat duration minus the message transmission duration and then the LiFi module activation duration.
  • first client A sends information on the first channel
  • client B replies to the information on the second channel.
  • the states of the first path and the second path can be synchronized to ensure dual-path synchronization in the long socket connection state.
  • the dual-channel heartbeat time is t3, and t3 is a fixed value.
  • client A because it is the active initiator, the time is fixed.
  • the message transmission time t0 has fluctuations, such as the toggle range of about 50ms to 500ms, the right t3 will actually fluctuate.
  • the remaining time t1 after subtracting t0 is the time that the LiFi module of client A is turned off.
  • the LiFi module needs to be turned on in advance, so the LiFi module of client A is actually turned off at t6.
  • the closing time of its LiFi module starts when the message of client A is replied, and the duration is t4, and t5 is the reserved time to ensure that the LiFi of client B is guaranteed before the message sent by client A arrives.
  • the module has been opened.
  • the first electronic device sends the first heartbeat packet to the second electronic device through the first path at the first time point, wherein the second electronic device receives the first heartbeat packet at the second time point Packet, the first electronic device receives the first response packet sent by the second electronic device at the third time point, and when receiving the first response packet, turns off the LiFi module for the fourth time period, and continues to send the first response packet after the fourth time period A heartbeat package. This ensures the integrity of the communication between the electronic devices after the LiFi connection is established between the electronic devices.
  • an embodiment of the present application also proposes a communication control device between electronic devices.
  • FIG. 5 is a schematic structural diagram of a communication control device between electronic devices according to an embodiment of the application.
  • the communication control apparatus 500 between electronic devices may include: a judgment module 510, a first control module 520, and a second control module 530.
  • the judging module 510 is used for judging whether the first electronic device establishes an optical fidelity LiFi connection with the second electronic device.
  • the first control module 520 is configured to determine that the first electronic device has not established a LiFi connection with the second electronic device, and then control the first electronic device to enter the scanning mode, wherein, in the scanning mode, the LiFi module is controlled to use the first duty cycle Than proceed to open. as well as
  • the second control module 530 is configured to determine that the first electronic device has established a LiFi connection with the second electronic device, and then control the first electronic device to enter the connection mode, wherein, in the connection mode, the LiFi module is controlled to use the second duty cycle The ratio is turned on and the first heartbeat packet is sent to the second electronic device, and at the same time the second heartbeat packet sent by the second electronic device is received.
  • the first control module 520 may also be used for:
  • the first duty cycle includes the first time period for controlling the LiFi module to be turned on and the second time period for controlling the LiFi module to be turned off, where the second time period is the first The sum of a duration and a random duration.
  • the random duration is less than or equal to the first duration.
  • the first control module 520 may also be used for:
  • the first duty cycle includes the first time period for controlling the LiFi module to be turned on and the third time period for controlling the LiFi module to be turned off, where the third time period is equal to the first time period. For a long time.
  • the communication control apparatus 500 between electronic devices may further include:
  • the third control module is used to control the LiFi module to shut down and maintain the first preset duration.
  • the second control module 530 may also be used for:
  • the second control module 530 may also be used for:
  • the fourth duration is: heartbeat duration-message transmission duration-LiFi module startup duration.
  • the communication control apparatus between electronic devices in the embodiment of the present application determines whether the first electronic device establishes an optical fidelity LiFi connection with the second electronic device; determines that the first electronic device does not establish a LiFi connection with the second electronic device, and then controls the first electronic device to establish a LiFi connection with the second electronic device.
  • An electronic device enters a scanning mode, in which, in the scanning mode, the LiFi module is controlled to turn on at a first duty cycle; and it is determined that the first electronic device has established a LiFi connection with the second electronic device, then the first electronic device is controlled Enter the connection mode, where, in the connection mode, the LiFi module is controlled to turn on with the second duty cycle and send the first heartbeat packet to the second electronic device, and at the same time receive the second heartbeat packet sent by the second electronic device. Therefore, by determining whether a LiFi connection is established between the first electronic device and the second electronic device, different duty cycles are used when the LiFi module is turned on, thereby reducing the power consumption of the two electronic devices.
  • an embodiment of the present application also proposes an electronic device, including: a memory, a processor, and a computer program stored in the memory and running on the processor.
  • the processor executes the program, The communication control method as described in the above embodiment.
  • the embodiments of the present application also propose a non-transitory computer-readable storage medium, the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions are used to make a computer execute the above-mentioned implementations.
  • the communication control method described in the example is not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to, but not limited to implement the above-mentioned embodiments.
  • the above-mentioned computer-readable medium in this application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two.
  • the computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or a combination of any of the above. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable removable Programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the above.
  • the computer-readable storage medium may be any tangible medium that contains or stores a program, and the program may be used by or in combination with an instruction execution system, apparatus, or device.
  • the computer-readable signal medium may include a data signal propagated in baseband or as a part of a carrier wave, and computer-readable program code is carried therein. This propagated data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer-readable signal medium may also be any computer-readable medium other than the computer-readable storage medium.
  • the computer-readable signal medium may send, propagate or transmit the program for use by or in combination with the instruction execution system, apparatus, or device .
  • the program code contained on the computer-readable medium can be transmitted by any suitable medium, including but not limited to: wire, optical cable, RF (Radio Frequency), etc., or any suitable combination of the above.
  • the above-mentioned computer-readable medium may be included in the above-mentioned electronic device; or it may exist alone without being assembled into the electronic device.
  • the above-mentioned computer-readable medium carries one or more programs.
  • the electronic device When the above-mentioned one or more programs are executed by the electronic device, the electronic device: obtains at least two Internet protocol addresses; A node evaluation request for an Internet Protocol address, wherein the node evaluation device selects an Internet Protocol address from the at least two Internet Protocol addresses and returns it; receives the Internet Protocol address returned by the node evaluation device; wherein, the obtained The Internet Protocol address indicates the edge node in the content distribution network.
  • the aforementioned computer-readable medium carries one or more programs, and when the aforementioned one or more programs are executed by the electronic device, the electronic device: receives a node evaluation request including at least two Internet Protocol addresses; Among the at least two Internet Protocol addresses, an Internet Protocol address is selected; the selected Internet Protocol address is returned; wherein the received Internet Protocol address indicates an edge node in the content distribution network.
  • the computer program code used to perform the operations of the present application can be written in one or more programming languages or a combination thereof.
  • the above-mentioned programming languages include object-oriented programming languages—such as Java, Smalltalk, C++, and also conventional Procedural programming language-such as "C" language or similar programming language.
  • the program code can be executed entirely on the user's computer, partly on the user's computer, executed as an independent software package, partly on the user's computer and partly executed on a remote computer, or entirely executed on the remote computer or server.
  • the remote computer can be connected to the user's computer through any kind of network including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, using an Internet service provider to pass Internet connection).
  • LAN local area network
  • WAN wide area network
  • each block in the flowchart or block diagram can represent a module, program segment, or part of code, and the module, program segment, or part of code contains one or more for realizing the specified logic function.
  • Executable instructions can also occur in a different order from the order marked in the drawings. For example, two blocks shown one after another can actually be executed substantially in parallel, and they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or operations Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments described in the present application can be implemented in software or hardware. Wherein, the name of the unit does not constitute a limitation on the unit itself under certain circumstances.
  • the first obtaining unit can also be described as "a unit for obtaining at least two Internet Protocol addresses.”

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种电子设备间的通信控制方法、装置、电子设备以及介质,其中,方法包括:(步骤101)通过判断第一电子设备是否与第二电子设备建立光保真LiFi连接;(步骤102)确定第一电子设备未与第二电子设备建立LiFi连接,则控制第一电子设备进入扫描模式,其中,在扫描模式之中,控制LiFi模组以第一占空比进行开启;以及(步骤103)确定第一电子设备已与第二电子设备建立LiFi连接,则控制第一电子设备进入连接模式,其中,在连接模式之中,控制LiFi模组以第二占空比进行开启并向第二电子设备发送第一心跳包,同时接收第二电子设备发送的第二心跳包。

Description

电子设备间的通信控制方法、装置、电子设备以及介质
优先权信息
本申请请求2019年12月19日向中国国家知识产权局提交的、专利申请号为201911315341.7的专利申请的优先权和权益,并且通过参照将其全文并入此处。
技术领域
本申请涉及电子设备技术领域,尤其涉及一种电子设备间的通信控制方法、装置、电子设备以及介质。
背景技术
随着电子设备之间的通信技术的发展,手机和平板电脑等移动终端已经成为人们日常生活中不可或缺的工具。对于移动终端而言,常见的无线传输一般依靠于蓝牙和无线局域网(Wireless-Fidelity,简称WiFi)。
发明内容
本申请旨在至少在一定程度上解决相关技术中的技术问题之一。
本申请第一方面实施例提出了一种电子设备间的通信控制方法,包括:
判断第一电子设备是否与第二电子设备建立光保真LiFi连接;
确定所述第一电子设备未与所述第二电子设备建立所述LiFi连接,则控制所述第一电子设备进入扫描模式,其中,在所述扫描模式之中,控制LiFi模组以第一占空比进行开启;以及
确定所述第一电子设备已与所述第二电子设备建立所述LiFi连接,则控制所述第一电子设备进入连接模式,其中,在所述连接模式之中,控制所述LiFi模组以第二占空比进行开启并向所述第二电子设备发送第一心跳包,同时接收所述第二电子设备发送的第二心跳包。
本申请第二方面实施例提出了一种电子设备间的通信控制装置,包括:
判断模块,用于判断第一电子设备是否与第二电子设备建立光保真LiFi连接;
第一控制模块,用于确定所述第一电子设备未与所述第二电子设备建立所述LiFi连接,则控制所述第一电子设备进入扫描模式,其中,在所述扫描模式之中,控制LiFi模组以第一占空比进行开启;以及
第二控制模块,用于确定所述第一电子设备已与所述第二电子设备建立所述LiFi连接,则控制所述第一电子设备进入连接模式,其中,在所述连接模式之中,控制所述LiFi模组以第二占空比进行开启并向所述第二电子设备发送第一心跳包,同时接收所述第二电子设备发送的第二心跳包。
本申请第三方面实施例提出了一种电子设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如上述实施例中所述的通信控制方 法。
本申请第四方面实施例提出了一种非暂态计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令用于使计算机执行上述实施例所述的通信控制方法。
本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。
附图说明
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:
图1为本申请实施例提供的一种电子设备间的通信控制方法的流程示意图;
图2为本申请实施例提供的另一种电子设备间的通信控制方法的流程示意图;
图3为本申请实施例提供的又一种电子设备间的通信控制方法的流程示意图;
图4为本申请实施例提供的一种电子设备间的通信控制方法的示例图;
图5为本申请实施例提供的一种电子设备间的通信控制装置的结构示意图。
具体实施方式
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。
目前的无线传输方式,不仅传输速率较低,而且由于现有环境中频谱环境复杂,很容易受到外干扰,其传输速率较慢,且实时性较差。
相关技术中,在终端设备的生产过程中,为了合理节省硬件空间,光保真LiFi技术共用了WiFi芯片以及WiFi协议进行数据处理。但是,因此也引入了部分问题,例如,如何灵敏的检测到通信光线中断、如何匹配WiFi和LiFi模块硬件的占空比以达到降功耗的目的;另外如何实现双向通信下的中断检测以及占空比设置,等等。
针对上述技术问题,本申请实施例提出了一种电子设备间的通信控制方法,通过判断第一电子设备是否与第二电子设备建立光保真LiFi连接;确定第一电子设备未与第二电子设备建立LiFi连接,则控制第一电子设备进入扫描模式,其中,在扫描模式之中,控制LiFi模组以第一占空比进行开启;以及确定第一电子设备已与第二电子设备建立LiFi连接,则控制第一电子设备进入连接模式,其中,在连接模式之中,控制LiFi模组以第二占空比进行开启并向第二电子设备发送第一心跳包,同时接收第二电子设备发送的第二心跳包。
本申请提供一种电子设备间的通信控制方法。方法包括:判断第一电子设备是否与第二电子设备建立光保真LiFi连接;确定第一电子设备未与第二电子设备建立LiFi连接,则控制第一电子设备进入扫描模式,其中,在扫描模式之中,控制LiFi模组以第一占空比进行开启;以及确定第一电子 设备已与第二电子设备建立LiFi连接,则控制第一电子设备进入连接模式,其中,在连接模式之中,控制LiFi模组以第二占空比进行开启并向第二电子设备发送第一心跳包,同时接收第二电子设备发送的第二心跳包。
在某些实施例中,控制LiFi模组以第一占空比进行开启,包括:判断第一电子设备是否已与第二电子设备建立过LiFi连接;确定第一电子设备未与第二电子设备建立过LiFi连接,则第一占空比包括控制LiFi模组开启的第一时长和控制LiFi模组关闭的第二时长,其中,第二时长为第一时长与随机时长之和,随机时长小于或等于第一时长。
在某些实施例中,判断第一电子设备是否已与第二电子设备建立过LiFi连接包括:根据第一电子设备和第二电子设备中LiFi模组开启时长判断第一电子设备是否已与第二电子设备建立过LiFi连接;若第一电子设备和第二电子设备中LiFi模组开启时长相同,则确定第一电子设备与第二电子设备已建立过连接;若第一电子设备和第二电子设备中LiFi模组开启时长不相同,则确定第一电子设备未与第二电子设备建立过连接。
在某些实施例中,方法,还包括:确定第一电子设备已与第二电子设备建立过LiFi连接,则第一占空比包括控制LiFi模组开启的第一时长和控制LiFi模组关闭的第三时长,其中,第三时长等于第一时长。
在某些实施例中,方法,还包括:确定第一电子设备已与第二电子设备建立过LiFi连接,在判断LiFi模组开启或连接断开时,控制LiFi模组开启并保持第一预设时长。
在某些实施例中,控制LiFi模组以第一占空比进行开启之前,还包括:控制LiFi模组关闭并保持第一预设时长。
在某些实施例中,控制第一电子设备进入连接模式,包括:在第一电子设备已与第二电子设备建立LiFi连接,且未发送信息时,进入连接模式。
在某些实施例中,控制LiFi模组以第二占空比进行开启并向第二电子设备发送第一心跳包,同时接收第二电子设备发送的第二心跳包,包括:在第一时间点以第一通路向第二电子设备发送第一心跳包,其中,第二电子设备在第二时间点接收到第一心跳包;在第三时间点接收第二电子设备发送的第一应答包,并在接收到第一应答包时将LiFi模组关闭第四时长,并在第四时长之后继续发送第一心跳包。
在某些实施例中,第四时长为:心跳时长-消息传送时长-LiFi模组启动时长。
本申请还提供一种电子设备间的通信控制装置500。通信控制装置500包括判断模块510、第一控制模块520和第二控制模块。判断模块510用于判断第一电子设备是否与第二电子设备建立光保真LiFi连接;第一控制模块520用于确定第一电子设备未与第二电子设备建立LiFi连接,则控制第一电子设备进入扫描模式,其中,在扫描模式之中,控制LiFi模组以第一占空比进行开启;以及第二控制模块用于确定第一电子设备已与第二电子设备建立LiFi连接,则控制第一电子设备进入连接模式,其中,在连接模式之中,控制LiFi模组以第二占空比进行开启并向第二电子设备发送第一心跳包,同时接收第二电子设备发送的第二心跳包。
在某些实施例中,第一控制模块520用于:判断第一电子设备是否已与第二电子设备建立过LiFi连接;确定第一电子设备未与第二电子设备建立过LiFi连接,则第一占空比包括控制LiFi模组开启的第一时长和控制LiFi模组关闭的第二时长,其中,第二时长为第一时长与随机时长之和,随机时长小于或等于第一时长。
在某些实施例中,第一控制模块520还用于:根据第一电子设备和第二电子设备中LiFi模组开启时长判断第一电子设备是否已与第二电子设备建立过LiFi连接;若第一电子设备和第二电子设备中LiFi模组开启时长相同,则确定第一电子设备与第二电子设备已建立过连接;若第一电子设备和第二电子设备中LiFi模组开启时长不相同,则确定第一电子设备未与第二电子设备建立过连接。
在某些实施例中,第一控制模块520还用于:确定第一电子设备已与第二电子设备建立过LiFi连接,则第一占空比包括控制LiFi模组开启的第一时长和控制LiFi模组关闭的第三时长,其中,第三时长等于第一时长。
在某些实施例中,第一控制模块520还用于:确定第一电子设备已与第二电子设备建立过LiFi连接,在判断LiFi模组开启或连接断开时,控制LiFi模组开启并保持第一预设时长。
在某些实施例中,通信控制装置500用于:在控制LiFi模组以第一占空比进行开启之前,控制LiFi模组关闭并保持第一预设时长。
在某些实施例中,第二控制模块用于:在第一电子设备已与第二电子设备建立LiFi连接,且未发送信息时,进入连接模式。
在某些实施例中,第二控制模块还用于:在第一时间点以第一通路向第二电子设备发送第一心跳包,其中,第二电子设备在第二时间点接收到第一心跳包;在第三时间点接收第二电子设备发送的第一应答包,并在接收到第一应答包时将LiFi模组关闭第四时长,并在第四时长之后继续发送第一心跳包。
在某些实施例中,第四时长为:心跳时长-消息传送时长-LiFi模组启动时长。
本申请还提供一种电子设备。电子设备包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行程序时,实现上述任意一项的通信控制方法。
本申请还提供非暂态计算机可读存储介质。计算机可读存储介质存储有计算机可读指令,计算机可读指令用于使计算机执行上述任意一项的通信控制方法。
下面参考附图描述本申请实施例的电子设备间的通信控制方法、装置、电子设备以及介质。
图1为本申请实施例提供的一种电子设备间的通信控制方法的流程示意图。
本申请实施例中,电子设备可以为智能手机、平板电脑、个人数字助理、穿戴式设备等具有各种操作系统的硬件设备。
如图1所示,该电子设备间的通信控制方法包括以下步骤:
步骤101,判断第一电子设备是否与第二电子设备建立光保真LiFi连接。
其中,光保真技术(Light Fidelity,简称LiFi),是一种利用可见光波谱(如灯泡发出的光)进行数据传输的全新无线传输技术。
相关技术中,电子设备之间采用WiFi技术建立无线通信连接成功后,为了保证无线通信连接的稳定性,即使射频信号中断一段时间也会保持连接状态,且延时较长(10s以上)。然而,电子设备之间建立LiFi连接后,当通信光发生中断或出现遮挡导致通信光未对准时,电子设备之间的通信状态就会出现异常,因此,需要立刻检测到LiFi连接的异常状态。
本申请实施例中,可以通过增加Socket心跳包机制的方法判断第一电子设备是否与第二电子设备建立LiFi连接。
在一种可能的情况下,第一电子设备向第二电子设备发送第一探测包,在发送第一探测包时启动超时定时器,第二电子设备接收到第一电子设备发送的第一探测包后,第二电子设备向第一电子设备发送应答包,第一电子设备接收到第二电子设备发送的应答包,说明第一电子设备与第二电子设备之间已经建立LiFi连接,并且LiFi连接可以使得第一电子设备与第二电子设备之间正常通信。这种情况下,第一电子设备可以删除超时定时器。
在另一种可能的情况下,第一电子设备向第二电子设备发送第一探测包,在发送第一探测包时启动超时定时器,若第一电子设备的超时定时器超过预设时长,没有接收到第二电子设备发送的应答包。这种情况下,确定第二电子设备的通信存在异常,并且第一电子设备未与第二电子设备建立LiFi连接。
在又一种可能的情况下,第一电子设备超过预设时长未向第二电子设备发送第一探测包,说明第一电子设备端的通信存在异常,这种情况下,第一电子设备未与第二电子设备建立LiFi连接。
需要说明的是,第一电子设备与第二电子设备建立的LiFi连接,能够实现第一电子设备和第二电子设备之间的双向通信。也就是说,第一电子设备能够向第二电子设备发送数据,同时,也能够接收到第二电子设备发送的数据。同样的,第二电子设备能够向第一电子设备发送数据,同时,也能够接收到第一电子设备发送的数据。
步骤102,确定第一电子设备未与第二电子设备建立LiFi连接,则控制第一电子设备进入扫描模式,其中,在扫描模式之中,控制LiFi模组以第一占空比进行开启。
其中,占空比,是指在一个脉冲循环内,通电时间相对于总时间所占的比例。例如,脉冲宽度为1μs,信号周期为4μs的脉冲序列占空比为0.25。
在一种可能的情况下,确定第一电子设备未与第二电子设备建立LiFi连接,则控制第一电子设备进入扫描模式。并且,在扫描模式之中,控制LiFi模组以第一占空比进行开启。
本申请实施例中,确定第一电子设备未与第二电子设备建立LiFi连接,仅需要考虑WiFi本身所需的连接时间,以及LiFi模组输入输出口开启和关闭的时间,在控制第一电子设备进入扫描模式后,控制LiFi模组以第一占空比进行开启。
本申请实施例中,LiFi模组,可以包括光信号发射模块和光信号接收模块。LiFi模组还可以包括三个部分,其中,第一部分为应用处理器及WiFi芯片部分,用来提供射频信号。第二部分为射频转基带信号,用于将连接到天线的2.4Ghz/5GHz射频信号通过混频器变频到基带,之后信号被分离为上行路径和下行路径。第三部分为基带电信号通过光学前端转换为光信号,在上行路径侧,信 号用于驱动光信号发射器,例如VCSEL器件;在下行路径侧,可见光由光电二极管接收,低噪声放大并转向到射频和基带接口。
步骤103,确定第一电子设备已与第二电子设备建立LiFi连接,则控制第一电子设备进入连接模式。
其中,在连接模式之中,控制LiFi模组以第二占空比进行开启并向第二电子设备发送第一心跳包,同时接收第二电子设备发送的第二心跳包。
本申请实施例中,确定第一电子设备已与第二电子设备建立LiFi连接,则控制第一电子设备进入连接模式,并控制LiFi模组由第一占空比切换至第二占空比。
在一种可能的情况下,确定第一电子设备已与第二电子设备建立LiFi连接,且第一电子设备与第二电子设备之间未发送信息时,控制第一电子设备进入连接模式。
本申请实施例中,确定第一电子设备已与第二电子设备建立LiFi连接之后,需要保证第一电子设备与第二电子设备能够双向通信,因此,需要设置双通路心跳包。其中,心跳包是指在第一电子设备与第二电子设备间定时通知对方自身状态的一个自己定义的命令字,按照一定的时间间隔发送,类似于心跳,所以叫做心跳包。
作为一种可能的实现方式,控制第一电子设备进入连接模式后,控制LiFi模组以第二占空比进行开启并向第二电子设备发送第一心跳包,同时接收第二电子设备发送的第二心跳包。
需要解释的是,上述步骤102和步骤103不是顺序执行的,可以仅执行步骤102,也可以仅执行步骤103,在此不做限制。
本申请实施例的电子设备间的通信控制方法,通过判断第一电子设备是否与第二电子设备建立光保真LiFi连接;确定第一电子设备未与第二电子设备建立LiFi连接,则控制第一电子设备进入扫描模式,其中,在扫描模式之中,控制LiFi模组以第一占空比进行开启;以及确定第一电子设备已与第二电子设备建立LiFi连接,则控制第一电子设备进入连接模式,其中,在连接模式之中,控制LiFi模组以第二占空比进行开启并向第二电子设备发送第一心跳包,同时接收第二电子设备发送的第二心跳包。由此,通过判断第一电子设备与第二电子设备之间是否建立LiFi连接,以控制LiFi模组开启时采用不同的占空比,从而降低了两电子设备的功耗。
在上述实施例的基础上,在上述步骤102中,控制LiFi模组以第一占空比进行开启时,还可以通过判断第一电子设备是否与第二电子设备建立过连接,以控制LiFi模组的第一占空比的值。下面结合图2对上述过程进行详细介绍,图2为本申请实施例提供的另一种电子设备间的通信控制方法的流程示意图。
如图2所示,上述步骤102还可以包括:
步骤201,判断第一电子设备是否已与第二电子设备建立过LiFi连接。
本申请实施例中,确定第一电子设备未与第二电子设备建立LiFi连接时,进一步判断第一电子设备是否已与第二电子设备建立过LiFi连接。
作为一种可能的实现方式,可以根据第一电子设备和第二电子设备中LiFi模组开启时长判断第 一电子设备是否已与第二电子设备建立过LiFi连接。若第一电子设备和第二电子设备中LiFi模组开启时长相同,则确定第一电子设备与第二电子设备已建立过连接。若第一电子设备和第二电子设备中LiFi模组开启时长不相同,则确定第一电子设备未与第二电子设备建立过连接。
步骤202,确定第一电子设备未与第二电子设备建立过连接,则第一占空比包括控制LiFi模组开启的第一时长和控制LiFi模组关闭的第二时长。
其中,第二时长为第一时长与随机时长之和,随机时长小于或等于第一时长。
需要说明的是,若第一电子设备和第二电子设备的LiFi模组开关时长相同,例如,均为500ms,可能存在第一电子设备的处于LiFi模组开启状态,第二电子设备的LiFi模组处于关闭状态情况,这种情况下,第一电子设备和第二电子设备永远无法建立LiFi连接。
因此,为了确保第一电子设备与第二电子设备之间能够成功建立LiFi连接,可以控制LiFi模组开启的第一占空比包括控制LiFi模组开启的第一时长和控制LiFi模组关闭的第二时长。其中,第二时长为第一时长与随机时长之和,随机时长小于或等于第一时长。
举例来说,LiFi模组开启的第一时长为500ms,LiFi模组关闭的第二时长可以为500ms与随机时长之和。由此,避免LiFi模组开启的第一时长和LiFi模组关闭的第二时长相同,导致第一电子设备与第二电子设备之间永远无法连接的问题。
本申请实施例中,在刚启动第一电子设备,或者,第一电子设备与第二电子设备的LiFi连接断开时,控制LiFi模组关闭并保持第一预设时长。例如,第一预设时长为20s。由此,能够确保第一电子设备与第二电子设备之间能够建立LiFi连接。
步骤203,确定第一电子设备已与第二电子设备建立过LiFi连接,则第一占空比包括控制LiFi模组开启的第一时长和控制LiFi模组关闭的第三时长。
其中,第三时长等于第一时长。
本申请实施例中,确定第一电子设备已与第二电子设备建立过LiFi连接,为了确保第一电子设备和第二电子设备可以继续建立LiFi连接,可以控制LiFi模组开启的第一占空比包括控制LiFi模组开启的第一时长和控制LiFi模组关闭的第三时长。
需要说明的是,第一电子设备已与第二电子设备建立过LiFi连接,在判断LiFi模组开启或连接断开时,控制LiFi模组开启并保持第一预设时长,以使得第一电子设备和第二电子设备的LiFi模组开启和与关闭时长同步。
需要说明的是,上述步骤202和步骤203并不是顺序执行的,需要根据步骤201的判断结果,确定仅执行步骤202,还是仅执行步骤203。
本申请实施例的电子设备间的通信控制方法,通过判断第一电子设备是否已与第二电子设备建立过LiFi连接,确定第一电子设备未与第二电子设备建立过连接,则第一占空比包括控制LiFi模组开启的第一时长和控制LiFi模组关闭的第二时长,确定第一电子设备已与第二电子设备建立过LiFi连接,则第一占空比包括控制LiFi模组开启的第一时长和控制LiFi模组关闭的第三时长。由此,在第一电子设备未与第二电子设备建立LiFi连接时,控制LiFi模组开启的第一占空比,避免了电子设 备间LiFi模组开启的第一占空比相同时,电子设备间无法建立LiFi连接的现象。
在上述实施例的基础上,在步骤103中,控制LiFi模组以第二占空比进行开启并向第二电子设备发送第一心跳包,同时接收第二电子设备发送的第二心跳包时,具体地,可以控制第一电子设备和第二电子设备使用双向通路发送心跳包。下面结合图3对上述过程进行详细介绍,图3为本申请实施例提供的又一种电子设备的通信控制方法的流程示意图。
如图3所示,该通信控制方法还可以包括以下步骤:
步骤301,在第一时间点以第一通路向第二电子设备发送第一心跳包,其中,第二电子设备在第二时间点接收到第一心跳包。
本申请实施例中,确定第一电子设备已与第二电子设备建立LiFi连接,控制第一电子设备在第一时间点以第一通路向第二电子设备发送第一心跳包,以使得第二电子设备在第二时间点接收到第一电子设备发送的第一心跳包。
例如,第一电子设备在T1时刻向第二电子设备发送第一心跳包,第二电子设备在T2时刻接收到第一电子设备发送的第一心跳包。
步骤302,在第三时间点接收第二电子设备发送的第一应答包,并在接收到第一应答包时将LiFi模组关闭第四时长,并在第四时间之后继续发送第一心跳包。
本申请实施例中,第二电子设备接收到第一电子设备发送的第一心跳包后,会向第一电子设备发送第一应答包,以使得第一电子设备在第三时间点接收到第二电子设备发送的第一应答包。第一电子设备在第三时间点接收到第一应答包后,控制LiFi模组关闭第四时长,并在第四时间之后继续发送第一心跳包。由此,保证了电子设备间的功耗最优化。
其中,第四时长为心跳时长减去消息传送时长之后,再减去LiFi模组启动时长。由此,确保了第二电子设备再次接收到第一电子设备发送的第一心跳包之前,第二电子设备的LiFi模组已经开启。
作为一种示例,如图4所示,首先客户端A在第一通路发送信息,客户端B接收到信息后,在第二通道回复信息。由此,可以同步第一通路和第二通路的状态,以保证socket长连接状态下的双通路同步。如图4所示,双通路心跳时间为t3,t3为固定值。对于客户端A来说因为是主动发起方,所以该时间固定。但是对于客户端B来说,因为消息传送时间t0存在波动,如拨动范围在50ms~500ms左右,所以右侧t3实际上会产生波动。
在一种可能的情况下,因为t3固定,所以减去t0后所剩时间t1即为客户端A的LiFi模组关闭时长。但是考虑到LiFi模组开关需要时间(大概100ms),所以需要LiFi模组提前开启,因此客户端A的LiFi模组关闭时间实际为t6。对于客户端B来说,其LiFi模组关闭时间为回复完客户端A消息开始,持续时间为t4,t5则是预留时间,保证在客户端A所发送消息到来前,客户端B的LiFi模组已经开启。
本申请实施例的通信控制方法,通过第一电子设备在第一时间点以第一通路向第二电子设备发送第一心跳包,其中,第二电子设备在第二时间点接收到第一心跳包,第一电子设备在第三时间点 接收第二电子设备发送的第一应答包,并在接收到第一应答包时将LiFi模组关闭第四时长,并在第四时长之后继续发送第一心跳包。由此,确保了电子设备间建立LiFi连接后,电子设备间通信的完整性。
为了实现上述实施例,本申请实施例还提出一种电子设备间的通信控制装置。
图5为本申请实施例提供的一种电子设备间的通信控制装置的结构示意图。
如图5所示,该电子设备间的通信控制装置500,可以包括:判断模块510、第一控制模块520以及第二控制模块530。
判断模块510,用于判断第一电子设备是否与第二电子设备建立光保真LiFi连接。
第一控制模块520,用于确定第一电子设备未与第二电子设备建立LiFi连接,则控制第一电子设备进入扫描模式,其中,在扫描模式之中,控制LiFi模组以第一占空比进行开启。以及
第二控制模块530,用于确定第一电子设备已与第二电子设备建立LiFi连接,则控制第一电子设备进入连接模式,其中,在连接模式之中,控制LiFi模组以第二占空比进行开启并向第二电子设备发送第一心跳包,同时接收第二电子设备发送的第二心跳包。
作为一种可能的情况,第一控制模块520,还可以用于:
判断第一电子设备是否已与第二电子设备建立过LiFi连接;
确定第一电子设备未与第二电子设备建立过LiFi连接,则第一占空比包括控制LiFi模组开启的第一时长和控制LiFi模组关闭的第二时长,其中,第二时长为第一时长与随机时长之和,随机时长小于或等于第一时长。
作为另一种可能的情况,第一控制模块520,还可以用于:
确定第一电子设备已与第二电子设备建立过LiFi连接,则第一占空比包括控制LiFi模组开启的第一时长和控制LiFi模组关闭的第三时长,其中,第三时长等于第一时长。
作为另一种可能的情况,该电子设备间的通信控制装置500,还可以包括:
第三控制模块,用于控制LiFi模组关闭并保持第一预设时长。
作为另一种可能的情况,第二控制模块530,还可以用于:
在所述第一电子设备已与所述第二电子设备建立所述LiFi连接,且未发送信息时,进入所述连接模式。
作为另一种可能的情况,第二控制模块530,还可以用于:
在第一时间点以第一通路向所述第二电子设备发送第一心跳包,其中,所述第二电子设备在第二时间点接收到所述第一心跳包;
在第三时间点接收所述第二电子设备发送的第一应答包,并在接收到所述第一应答包时将所述LiFi模组关闭第四时长,并在所述第四时长之后继续发送所述第一心跳包。
作为另一种可能的情况,第四时长为:心跳时长-消息传送时长-LiFi模组启动时长。
需要说明的是,前述对电子设备间的通信控制方法实施例的解释说明也适用于该实施例的电子设备间的通信控制装置,此处不再赘述。
本申请实施例的电子设备间的通信控制装置,通过判断第一电子设备是否与第二电子设备建立光保真LiFi连接;确定第一电子设备未与第二电子设备建立LiFi连接,则控制第一电子设备进入扫描模式,其中,在扫描模式之中,控制LiFi模组以第一占空比进行开启;以及确定第一电子设备已与第二电子设备建立LiFi连接,则控制第一电子设备进入连接模式,其中,在连接模式之中,控制LiFi模组以第二占空比进行开启并向第二电子设备发送第一心跳包,同时接收第二电子设备发送的第二心跳包。由此,通过判断第一电子设备与第二电子设备之间是否建立LiFi连接,以控制LiFi模组开启时采用不同的占空比,从而降低了两电子设备的功耗。
为了实现上述实施例,本申请实施例还提出一种电子设备,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如上述实施例中所述的通信控制方法。
为了实现上述实施例,本申请实施例还提出一种非暂态计算机可读存储介质,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令用于使计算机执行上述实施例所述的通信控制方法。
需要说明的是,本申请上述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读信号介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:电线、光缆、RF(射频)等等,或者上述的任意合适的组合。
上述计算机可读介质可以是上述电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。
上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:获取至少两个网际协议地址;向节点评价设备发送包括所述至少两个网际协议地址的节点评价请求,其中,所述节点评价设备从所述至少两个网际协议地址中,选取网际协议地址并返回;接收所述节点评价设备返回的网际协议地址;其中,所获取的网际协议地址指示内容分发网络中的边缘节点。
或者,上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该电子设备执行时,使得该电子设备:接收包括至少两个网际协议地址的节点评价请求;从所述至少两个网际协议地址中,选取网际协议地址;返回选取出的网际协议地址;其中,接收到的网际协议地址指示内容分发网络中的边缘节点。
可以以一种或多种程序设计语言或其组合来编写用于执行本申请的操作的计算机程序代码,上述程序设计语言包括面向对象的程序设计语言—诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)—连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,该模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。其中,单元的名称在某种情况下并不构成对该单元本身的限定,例如,第一获取单元还可以被描述为“获取至少两个网际协议地址的单元”。

Claims (20)

  1. 一种电子设备间的通信控制方法,其特征在于,包括:
    判断第一电子设备是否与第二电子设备建立光保真LiFi连接;
    确定所述第一电子设备未与所述第二电子设备建立所述LiFi连接,则控制所述第一电子设备进入扫描模式,其中,在所述扫描模式之中,控制LiFi模组以第一占空比进行开启;以及
    确定所述第一电子设备已与所述第二电子设备建立所述LiFi连接,则控制所述第一电子设备进入连接模式,其中,在所述连接模式之中,控制所述LiFi模组以第二占空比进行开启并向所述第二电子设备发送第一心跳包,同时接收所述第二电子设备发送的第二心跳包。
  2. 如权利要求1所述的通信控制方法,其特征在于,所述控制LiFi模组以第一占空比进行开启,包括:
    判断所述第一电子设备是否已与所述第二电子设备建立过LiFi连接;
    确定所述第一电子设备未与所述第二电子设备建立过LiFi连接,则所述第一占空比包括控制所述LiFi模组开启的第一时长和控制所述LiFi模组关闭的第二时长,其中,所述第二时长为所述第一时长与随机时长之和,所述随机时长小于或等于所述第一时长。
  3. 如权利要求2所述的通信控制方法,其特征在于,所述判断所述第一电子设备是否已与所述第二电子设备建立过LiFi连接包括:
    根据所述第一电子设备和所述第二电子设备中所述LiFi模组开启时长判断所述第一电子设备是否已与所述第二电子设备建立过LiFi连接;
    若所述第一电子设备和所述第二电子设备中所述LiFi模组开启时长相同,则确定所述第一电子设备与所述第二电子设备已建立过连接;
    若所述第一电子设备和所述第二电子设备中所述LiFi模组开启时长不相同,则确定所述第一电子设备未与所述第二电子设备建立过连接。
  4. 如权利要求2所述的通信控制方法,其特征在于,所述方法,还包括:
    确定所述第一电子设备已与所述第二电子设备建立过LiFi连接,则所述第一占空比包括控制所述LiFi模组开启的第一时长和控制所述LiFi模组关闭的第三时长,其中,所述第三时长等于所述第一时长。
  5. 如权利要求4所述的通信控制方法,其特征在于,所述方法,还包括:
    确定所述第一电子设备已与所述第二电子设备建立过LiFi连接,在判断所述LiFi模组开启或连接断开时,控制所述LiFi模组开启并保持第一预设时长。
  6. 如权利要求1所述的通信控制方法,其特征在于,所述控制LiFi模组以第一占空比进行开启之前,还包括:
    控制所述LiFi模组关闭并保持第一预设时长。
  7. 如权利要求1所述的通信控制方法,其特征在于,所述控制所述第一电子设备进入连接模式,包括:
    在所述第一电子设备已与所述第二电子设备建立所述LiFi连接,且未发送信息时,进入所述连接模式。
  8. 如权利要求7所述的通信控制方法,其特征在于,所述控制所述LiFi模组以第二占空比进行开启并向所述第二电子设备发送第一心跳包,同时接收所述第二电子设备发送的第二心跳包,包括:
    在第一时间点以第一通路向所述第二电子设备发送第一心跳包,其中,所述第二电子设备在第二时间点接收到所述第一心跳包;
    在第三时间点接收所述第二电子设备发送的第一应答包,并在接收到所述第一应答包时将所述LiFi模组关闭第四时长,并在所述第四时长之后继续发送所述第一心跳包。
  9. 如权利要求8所述的通信控制方法,其特征在于,所述第四时长为:心跳时长-消息传送时长-LiFi模组启动时长。
  10. 一种电子设备间的通信控制装置,其特征在于,包括:
    判断模块,用于判断第一电子设备是否与第二电子设备建立光保真LiFi连接;
    第一控制模块,用于确定所述第一电子设备未与所述第二电子设备建立所述LiFi连接,则控制所述第一电子设备进入扫描模式,其中,在所述扫描模式之中,控制所述LiFi模组以第一占空比进行开启;以及
    第二控制模块,用于确定所述第一电子设备已与所述第二电子设备建立所述LiFi连接,则控制所述第一电子设备进入连接模式,其中,在所述连接模式之中,控制所述LiFi模组以第二占空比进行开启并向所述第二电子设备发送第一心跳包,同时接收所述第二电子设备发送的第二心跳包。
  11. 如权利要求10所述的通信控制装置,其特征在于,所述第一控制模块用于:
    判断所述第一电子设备是否已与所述第二电子设备建立过LiFi连接;
    确定所述第一电子设备未与所述第二电子设备建立过LiFi连接,则所述第一占空比包括控制所述LiFi模组开启的第一时长和控制所述LiFi模组关闭的第二时长,其中,所述第二时长为所述第一时长与随机时长之和,所述随机时长小于或等于所述第一时长。
  12. 如权利要求11所述的通信控制装置,其特征在于,所述第一控制模块还用于:
    根据所述第一电子设备和所述第二电子设备中所述LiFi模组开启时长判断所述第一电子设备是否已与所述第二电子设备建立过LiFi连接;
    若所述第一电子设备和所述第二电子设备中所述LiFi模组开启时长相同,则确定所述第一电子设备与所述第二电子设备已建立过连接;
    若所述第一电子设备和所述第二电子设备中所述LiFi模组开启时长不相同,则确定所述第一电子设备未与所述第二电子设备建立过连接。
  13. 如权利要求11所述的通信控制装置,其特征在于,所述第一控制模块还用于:
    确定所述第一电子设备已与所述第二电子设备建立过LiFi连接,则所述第一占空比包括控制 所述LiFi模组开启的第一时长和控制所述LiFi模组关闭的第三时长,其中,所述第三时长等于所述第一时长。
  14. 如权利要求13所述的通信控制装置,其特征在于,所述第一控制模块还用于:
    确定所述第一电子设备已与所述第二电子设备建立过LiFi连接,在判断所述LiFi模组开启或连接断开时,控制所述LiFi模组开启并保持第一预设时长。
  15. 如权利要求10所述的通信控制装置,其特征在于,所述通信控制装置用于:
    在所述控制LiFi模组以第一占空比进行开启之前,控制所述LiFi模组关闭并保持第一预设时长。
  16. 如权利要求10所述的通信控制装置,其特征在于,所述第二控制模块用于:
    在所述第一电子设备已与所述第二电子设备建立所述LiFi连接,且未发送信息时,进入所述连接模式。
  17. 如权利要求16所述的通信控制装置,其特征在于,所述第二控制模块还用于:
    在第一时间点以第一通路向所述第二电子设备发送第一心跳包,其中,所述第二电子设备在第二时间点接收到所述第一心跳包;
    在第三时间点接收所述第二电子设备发送的第一应答包,并在接收到所述第一应答包时将所述LiFi模组关闭第四时长,并在所述第四时长之后继续发送所述第一心跳包。
  18. 如权利要求17所述的通信控制装置,其特征在于,所述第四时长为:心跳时长-消息传送时长-LiFi模组启动时长。
  19. 一种电子设备,其特征在于,包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时,实现如权利要求1-9任一项所述的通信控制方法。
  20. 一种非暂态计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机可读指令,所述计算机可读指令用于使所述计算机执行权利要求1-9任一项所述的通信控制方法。
PCT/CN2020/134634 2019-12-19 2020-12-08 电子设备间的通信控制方法、装置、电子设备以及介质 WO2021121083A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911315341.7 2019-12-19
CN201911315341.7A CN113014319B (zh) 2019-12-19 2019-12-19 电子设备间的通信控制方法、装置、电子设备及介质

Publications (1)

Publication Number Publication Date
WO2021121083A1 true WO2021121083A1 (zh) 2021-06-24

Family

ID=76382560

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/134634 WO2021121083A1 (zh) 2019-12-19 2020-12-08 电子设备间的通信控制方法、装置、电子设备以及介质

Country Status (2)

Country Link
CN (1) CN113014319B (zh)
WO (1) WO2021121083A1 (zh)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040946A (zh) * 2017-04-28 2017-08-11 苏州商信宝信息科技有限公司 一种基于lifi通信技术的转换方法及其系统
US20180367524A1 (en) * 2017-06-16 2018-12-20 International Business Machines Corporation Token-based access control
CN109698720A (zh) * 2018-12-25 2019-04-30 努比亚技术有限公司 与监控设备通信的方法、装置、移动终端及可读存储介质
CN110440808A (zh) * 2019-08-13 2019-11-12 Oppo(重庆)智能科技有限公司 基于可见光通信的室内定位方法、系统及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8620154B2 (en) * 2009-07-31 2013-12-31 Samsung Electronics Co., Ltd. Methods and apparatus for fast and energy-efficient light recovery in a visible light communication (VLC) system
CN102412953B (zh) * 2011-11-03 2015-01-07 北京邮电大学 可见光局域网双工通信方法
US10679448B2 (en) * 2012-07-26 2020-06-09 John C. S. Koo Light-based commercial messaging systems
US10771155B2 (en) * 2017-09-28 2020-09-08 Soraa Laser Diode, Inc. Intelligent visible light with a gallium and nitrogen containing laser source
CN109889265B (zh) * 2019-01-23 2021-08-06 西安电子科技大学 基于可见光和红外通信的室内全覆盖通信定位方法和系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107040946A (zh) * 2017-04-28 2017-08-11 苏州商信宝信息科技有限公司 一种基于lifi通信技术的转换方法及其系统
US20180367524A1 (en) * 2017-06-16 2018-12-20 International Business Machines Corporation Token-based access control
CN109698720A (zh) * 2018-12-25 2019-04-30 努比亚技术有限公司 与监控设备通信的方法、装置、移动终端及可读存储介质
CN110440808A (zh) * 2019-08-13 2019-11-12 Oppo(重庆)智能科技有限公司 基于可见光通信的室内定位方法、系统及装置

Also Published As

Publication number Publication date
CN113014319B (zh) 2022-05-20
CN113014319A (zh) 2021-06-22

Similar Documents

Publication Publication Date Title
US11743695B2 (en) Distributed multi-band wireless networking system
EP3468068B1 (en) Method for establishing classic bluetooth connection between dual-mode bluetooth devices, and dual-mode bluetooth device
CN108476456B (zh) 一种数据发送方法、接收方法和发送端以及接收端
WO2020182009A1 (zh) 网络连接方法、终端、基站及计算机存储介质
KR101830940B1 (ko) Wifi 설정 포팅
US20200169774A1 (en) Control method and device
EP4258710A1 (en) Method for transmitting data in near field, device and system
EP3024160B1 (en) Control method, device and optical transceiver
US20190114183A1 (en) Terminal Configuration Method and Terminal Based on Provision Protocol for Transmission
WO2021121083A1 (zh) 电子设备间的通信控制方法、装置、电子设备以及介质
WO2017211253A1 (zh) 一种串口通信方法、控制终端及单板
US20230269791A1 (en) Networking Method, Networking System, and Electronic Device
US20220167272A1 (en) Wake-up by a network device
WO2019120188A1 (zh) 一种自动切换通信方式的方法、终端及智能设备
US11917543B2 (en) Bluetooth-based data transmission method and data receiving method, communicating apparatus and computer storage medium
WO2022179284A1 (zh) WiFi热点的切换方法、终端设备及存储介质
WO2019034055A1 (zh) 网络连接方法及装置
TWI795619B (zh) 內建伺服模組的閘道裝置與通信系統
TWI689183B (zh) 適用於網狀網路之中繼器
CN104506908A (zh) 遥控数据处理方法、装置以及系统
WO2023185841A1 (zh) 中继终端的选择方法、装置、终端及存储介质
US10206124B1 (en) Method and apparatus for bidirectional modem
US20190141548A1 (en) Mechanism for determining if a server pod malfunctions and electing a new server pod
TW201813325A (zh) 無線通訊方法及其系統
WO2023159410A1 (zh) 通信方法、设备、存储介质和计算机程序产品

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20903479

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20903479

Country of ref document: EP

Kind code of ref document: A1