WO2020237703A1 - Communication mode switching method and device, storage medium, processor, and system - Google Patents

Communication mode switching method and device, storage medium, processor, and system Download PDF

Info

Publication number
WO2020237703A1
WO2020237703A1 PCT/CN2019/089987 CN2019089987W WO2020237703A1 WO 2020237703 A1 WO2020237703 A1 WO 2020237703A1 CN 2019089987 W CN2019089987 W CN 2019089987W WO 2020237703 A1 WO2020237703 A1 WO 2020237703A1
Authority
WO
WIPO (PCT)
Prior art keywords
communication
communication device
component
communication mode
mode
Prior art date
Application number
PCT/CN2019/089987
Other languages
French (fr)
Chinese (zh)
Inventor
杨海波
Original Assignee
上海庆科信息技术有限公司
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 上海庆科信息技术有限公司 filed Critical 上海庆科信息技术有限公司
Publication of WO2020237703A1 publication Critical patent/WO2020237703A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]
    • 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

Definitions

  • the present disclosure relates to the field of communications, and in particular, to a method, device, storage medium, processor, and system for switching communication modes.
  • Wireless Fidelity is a wireless LAN technology created in the IEEE 802.11 standard. It connects to the Internet through radio waves and is usually set as a wireless router. The effective range of the radio wave coverage of the wireless router can be connected to the network by means of WiFi connection.
  • BLE Bluetooth Low Energy
  • electronic devices provided in related technologies usually have both WiFi components and BLE components, and their configuration methods usually include the following two:
  • Method 1 The WiFi component and the BLE component are respectively set on two different chips, and each chip corresponds to an antenna and works independently.
  • the WiFi component and the BLE component do not need to work together and do not interfere with each other, so the communication performance is good.
  • the disadvantage of this method is that the hardware cost of the dual-chip structure is relatively high.
  • Method 2 The WiFi component and the BLE component are integrated on the same chip and share the same antenna.
  • the WiFi component and the BLE component work alternately in a time-division multiplexing mode. Therefore, the hardware cost of the single integrated chip structure adopted in this mode is low.
  • the disadvantage of this method is that: since the WiFi component and the BLE component work alternately in a time-division multiplexing manner, the requirements for cooperative control of the WiFi component and the BLE component are extremely high, otherwise a higher packet loss rate will be caused.
  • At least some of the embodiments of the present disclosure provide a communication mode switching method, device, storage medium, processor, and system to at least solve the problem of integrating a WiFi component and a BLE component on the same chip in related technologies, using time-sharing multiplexing In the case of working alternately, it is easy to cause high operational complexity of the cooperative control of the WiFi component and the BLE component, and it is easy to cause technical problems of high packet loss rate.
  • a communication mode switching method including:
  • switching between the first communication mode and the second communication mode according to the first instruction information includes: determining, according to the first instruction information, that the second communication device does not store downlink data to be sent to the first communication device; controlling The first communication component enters the dormant state, and controls the second communication component to enter the wake-up state, so that the first communication device is in the second communication mode.
  • switching between the first communication mode and the second communication mode according to the first instruction information includes: determining, according to the first instruction information, that the second communication device stores downlink data to be sent to the first communication device; A communication component remains in the awake state, and controls the second communication component to enter the dormant state, so that the first communication device is in the first communication mode.
  • the method further includes: sending a first empty data frame to the second communication device, wherein the first empty data frame carries There is second indication information, the second indication information is identified as a first value, and the first value is used to indicate that the first communication component is in an awake state; the downlink data from the second communication device is received through the first communication component; according to the downlink data Perform the corresponding control operation.
  • the method further includes: controlling the first communication component to enter the dormant state and controlling the second communication component to enter the awake state when it is determined that the downlink data is received. So that the first communication device is in the second communication mode; sending a second empty data frame to the second communication device, wherein the second empty data frame carries second indication information, and the second indication information is identified as a second value, The second value is used to indicate that the first communication component is in a sleep state.
  • the above method further includes: listening to a broadcast frame from a third communication device through the second communication component, wherein the broadcast frame carries a control instruction; and executing corresponding control operations according to the control instruction.
  • listening to the broadcast frame through the second communication component includes: listening to the broadcast frame through the second communication component via a preset channel, wherein the preset channel is selected from a plurality of candidate channels and is connected by the first communication device and The third communication device is negotiated and determined in advance.
  • the beacon frame also carries an updated beacon interval.
  • the method further includes: adjusting the preset beacon interval to the updated beacon interval, and according to The updated beacon interval wakes up the first communication component again.
  • a communication mode switching device including:
  • the wake-up module is set to wake up the first communication component on the first communication device according to the preset beacon interval, wherein the first communication component communicates with the external communication device through the second communication device in the first communication mode, and the second communication
  • the device is used to build a wireless local area network;
  • the listening module is configured to listen to the beacon frame from the second communication device through the first communication component, wherein the beacon frame carries at least the first indication information, and the first indication information is used for Instructing the second communication device whether the downlink data to be sent to the first communication device is stored;
  • the switching module is configured to switch between the first communication mode and the second communication mode according to the first instruction information, wherein the first communication
  • the second communication component on the device performs point-to-point communication with the third communication device in the second communication mode.
  • the switching module includes: a first determining unit configured to determine, according to the first indication information, that there is no downlink data to be sent to the first communication device stored on the second communication device; the first control unit is configured to control the first communication device The component enters the dormant state and controls the second communication component to enter the wake-up state, so that the first communication device is in the second communication mode.
  • the switching module includes: a second determining unit configured to determine, according to the first indication information, that the second communication device stores downlink data to be sent to the first communication device; the second control unit is configured to control the first communication component Keep the awake state and control the second communication component to enter the sleep state so that the first communication device is in the first communication mode.
  • the above apparatus further includes: a first sending module configured to send a first empty data frame to the second communication device, wherein the first empty data frame carries second indication information, and the second indication information is identified as The first value, the first value is used to indicate that the first communication component is in an awake state; the receiving module is set to receive the downlink data from the second communication device through the first communication component; the execution module is set to execute the corresponding Control operation.
  • a first sending module configured to send a first empty data frame to the second communication device, wherein the first empty data frame carries second indication information, and the second indication information is identified as The first value, the first value is used to indicate that the first communication component is in an awake state
  • the receiving module is set to receive the downlink data from the second communication device through the first communication component
  • the execution module is set to execute the corresponding Control operation.
  • the above-mentioned device further includes: a control module configured to control the first communication component to enter the sleep state and control the second communication component to enter the wake-up state when it is determined that the downlink data reception is complete, so that the first communication device is The second communication mode; the second sending module is configured to send a second empty data frame to the second communication device, wherein the second empty data frame carries second indication information, and the second indication information is identified as a second value, The second value is used to indicate that the first communication component is in a sleep state.
  • a control module configured to control the first communication component to enter the sleep state and control the second communication component to enter the wake-up state when it is determined that the downlink data reception is complete, so that the first communication device is The second communication mode
  • the second sending module is configured to send a second empty data frame to the second communication device, wherein the second empty data frame carries second indication information, and the second indication information is identified as a second value, The second value is used to indicate that the first communication component is in a sleep state.
  • the listening module is further configured to listen to the broadcast frame from the third communication device through the second communication component, wherein the broadcast frame carries a control instruction; and the corresponding control operation is executed according to the control instruction.
  • the listening module is configured to listen to the broadcast frame via a preset channel through the second communication component, wherein the preset channel is selected from a plurality of candidate channels and pre-defined by the first communication device and the third communication device. Determined by negotiation.
  • the beacon frame also carries an updated beacon interval
  • the above-mentioned apparatus further includes: a processing module configured to adjust the preset beacon interval to the updated beacon interval, and according to the updated beacon interval Wake up the first communication component again at intervals.
  • a storage medium is further provided.
  • the storage medium includes a stored program, wherein the device where the storage medium is located is controlled to execute any one of the communication mode switching methods described above when the program is running.
  • a processor which is used to run a program, wherein any one of the communication mode switching methods described above is executed when the program is running.
  • a communication mode switching system including: a first communication device, a second communication device, and a third communication device, wherein the first communication device includes the above-mentioned communication mode switching device.
  • the first communication component on the first communication device is awakened at a preset beacon interval, and the first communication component communicates with the external communication device through the second communication device in the first communication mode ,
  • the second communication device is used to establish a wireless local area network, through the first communication component to listen to the beacon frame from the second communication device, the beacon frame carries at least the first indication information, the first indication information It is used to indicate whether downlink data to be sent to the first communication device is stored on the second communication device, and to switch between the first communication mode and the second communication mode according to the first indication information.
  • the second communication component performs point-to-point communication with the third communication device in the second communication mode, achieving the goal of optimizing the cooperative working logic of the first communication component (for example: WiFi component) and the second communication component (for example: BLE component).
  • This achieves the technical effect of improving the communication stability of electronic devices (especially the stability of WiFi), reducing the operational complexity of the cooperative control of WiFi components and BLE components, and the packet loss rate caused by time-division multiplexing, and then solving
  • the WiFi component and the BLE component are integrated on the same chip, and the time-sharing multiplexing method is used to alternately work, the operation complexity of the cooperative control of the WiFi component and the BLE component is likely to be high, and it is easy to cause The technical problem of higher packet loss rate.
  • Figure 1 is a schematic structural diagram of a communication mode switching system according to one of the embodiments of the present disclosure
  • Fig. 2 is a flowchart of a communication mode switching method according to one of the embodiments of the present disclosure
  • FIG. 3 is a schematic diagram of timing control of a WiFi component and a BLE component according to an optional embodiment of the present disclosure
  • Fig. 4 is a flowchart of a method for processing broadcast frames according to one of the embodiments of the present disclosure
  • Fig. 5 is a working flow chart of the communication mode switching system according to one of the alternative embodiments of the present disclosure.
  • Fig. 6 is a structural block diagram of a communication mode switching device according to one of the embodiments of the present disclosure.
  • Fig. 7 is a structural block diagram of a communication mode switching device according to one of the alternative embodiments of the present disclosure.
  • Fig. 8 is a structural block diagram of an apparatus for processing broadcast frames according to one of the embodiments of the present disclosure.
  • the communication mode switching system includes: a first communication device, a second communication device, and a third communication device.
  • the first communication device is provided with a communication module, where the communication module includes: a first communication component and a second communication component.
  • the second communication device is used to establish a wireless local area network.
  • the first communication component communicates with an external communication device (such as a mobile device control terminal such as a smart phone, a cloud server) through a second communication device.
  • the second communication component on the first communication device performs point-to-point communication with the third communication device in the second communication mode. That is, the first communication device and the third communication device form a wireless personal area network in the second communication mode.
  • FIG. 1 is a schematic structural diagram of a communication mode switching system according to one of the embodiments of the present disclosure.
  • the first communication device is a workstation (STATION)
  • the second communication device is WiFi.
  • the third communication device is a BLE controller.
  • the first communication mode is the WiFi working mode
  • the second communication mode is the BLE working mode.
  • the first communication component included in the communication module on the STATION is a WiFi component
  • the second communication component included in the communication module on the STATION is a BLE component.
  • the above-mentioned workstation may further be smart household appliances, such as smart TVs, smart refrigerators, smart desk lamps, smart air conditioners, and so on.
  • the aforementioned WiFi AP may further be a wireless router.
  • the above-mentioned BLE controller may further be a remote controller of a smart home appliance.
  • the smart home appliance may include one or more processors (the processor may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) ) Chip, microprocessor (MCU) or programmable logic device (FPGA) and other processing devices) and memory used to store data.
  • the above-mentioned smart home appliance may also include a communication module for communication functions and input and output devices.
  • the smart home appliance may also include more or fewer components than the foregoing structural description, or have a different configuration from the foregoing structural description.
  • the memory can be used to store computer programs, for example, software programs and modules of application software, such as the computer programs corresponding to the communication mode switching method in the embodiment of the present disclosure.
  • the processor executes various computer programs by running the computer programs stored in the memory. Function application and data processing, that is, realize the above-mentioned switching method of communication mode.
  • the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory may further include a memory remotely provided with respect to the processor, and these remote memories may be connected to the smart home appliance through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • the WiFi component in the communication module includes a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.
  • RF radio frequency
  • the remote controller may include one or more processors (the processor may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), Digital signal processing (DSP) chip, microprocessor (MCU) or programmable logic device (FPGA) and other processing devices) and memory for storing data.
  • the aforementioned remote controller may also include a communication component for point-to-point communication and an input and output device.
  • the remote controller may also include more or fewer components than the foregoing structural description, or have a configuration different from the foregoing structural description.
  • the memory can be used to store computer programs, for example, software programs and modules of application software, such as the computer programs corresponding to the broadcast frame processing method in the embodiments of the present disclosure.
  • the processor executes various computer programs by running the computer programs stored in the memory. Functional application and data processing, that is, the above-mentioned broadcast frame processing method.
  • the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory.
  • the memory may further include a memory remotely provided with respect to the processor, and these remote memories may be connected to the remote controller through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
  • an embodiment of a communication mode switching method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions And, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.
  • FIG. 2 is a flowchart of the communication mode switching method according to one of the embodiments of the present disclosure. As shown in FIG. 2, the method includes the following step:
  • Step S20 wake up the first communication component on the first communication device according to the preset beacon interval, wherein the first communication component communicates with the external communication device through the second communication device in the first communication mode, and the second communication device uses To build a wireless local area network;
  • Step S21 Listen to the beacon frame from the second communication device through the first communication component, where the beacon frame carries at least first indication information, and the first indication information is used to indicate whether the second communication device is Downlink data sent to the first communication device;
  • Step S22 switching between the first communication mode and the second communication mode according to the first instruction information, wherein the second communication component on the first communication device performs point-to-point communication with the third communication device in the second communication mode communication.
  • the first communication component on the first communication device can be awakened according to the preset beacon interval.
  • the first communication component communicates with the external communication device through the second communication device in the first communication mode.
  • the communication device is used to establish a wireless local area network.
  • the first communication component listens to a beacon frame from a second communication device.
  • the beacon frame carries at least first indication information, and the first indication information is used to indicate 2.
  • the second communication component on the first communication device is The point-to-point communication with the third communication device in the second communication mode achieves the goal of optimizing the cooperative working logic of the first communication component (for example: WiFi component) and the second communication component (for example: BLE component), thereby achieving improvement
  • the communication stability of electronic devices especially the stability of WiFi
  • the WiFi component and the BLE component are integrated on the same chip and work alternately by time-division multiplexing, the cooperative control of the WiFi component and the BLE component is likely to have high operational complexity and cause high loss.
  • the technical problem of packet rate is possible to have high operational complexity and cause high loss.
  • the WiFi component and the BLE component alternately work in a time-division multiplexing manner
  • the WiFi component is in a working state
  • the BLE component is in a sleep state
  • the WiFi component is in a sleep state. Therefore, the use of time-division multiplexing will inevitably lead to a higher packet loss rate, and it is also easy to cause disconnection.
  • the preset beacon interval of 100ms as an example, according to the time-sharing multiplexing method of WiFi components and BLE components used in related technologies, within the first 100ms time range, the WiFi components are in working state and the BLE components are in sleep mode status. In the second 100ms time range, the BLE component is in the working state, and the WiFi component is in the dormant state. Such reciprocating and alternate execution will not be repeated here.
  • the power save mode of IEEE 802.11 is used and the low power consumption protocol of the WiFi component is used to shorten the working time of the WiFi component as much as possible, and most of the time is allocated to the BLE component.
  • IEEE 802.11 power save mode is a standard WiFi low-power protocol. Under this agreement, WiFi STATION enters the power saving mode and turns off the RF module when there is no data transmission and reception. STATION is periodically woken up according to the AP's beacon interval (beacon interval) to listen to the AP's beacon frame.
  • the AP's beacon frame is essentially a broadcast frame periodically sent by the AP, where the information carried in the broadcast frame may include, but is not limited to: the name of the AP (for example: Service Set Identifier (SSID for short)), Encryption method, whether there is a flag (flag) of each STATION cache data associated with the AP on the AP, for example: the flag value in the traffic indication map (TIM for short) (equivalent to the first indication information) .
  • SSID Service Set Identifier
  • Encryption method whether there is a flag (flag) of each STATION cache data associated with the AP on the AP, for example: the flag value in the traffic indication map (TIM for short) (equivalent to the first indication information) .
  • STATION1 wakes up the WiFi components on STATION1 at an interval of 100ms.
  • the WiFi component communicates with external communication devices (such as mobile device control terminals such as smart phones, cloud servers) through WiFi AP in WiFi working mode.
  • STATION 1 can listen to beacon frames from WiFi AP through WiFi components.
  • the beacon frame carries at least first indication information, and the first indication information is used to indicate whether downlink data to be sent to STATION 1 is stored on the WiFi AP.
  • STATION 1 switches between the WiFi working mode and the BLE working mode according to the first instruction information.
  • the BLE component on STATION 1 performs point-to-point communication with the BLE controller 1 in the BLE working mode.
  • FIG 3 is a schematic diagram of the timing control of the WiFi component and the BLE component according to one of the optional embodiments of the present disclosure.
  • the WiFi component on the STATION can be awakened every 100 ms.
  • the WiFi component set on the STATION receives the beacon frame, and then immediately enters the sleep state, so as to achieve the purpose of saving power consumption by the WiFi component.
  • the AP since the AP will buffer the downlink data sent to STATION, the downlink data sent to STATION will not be lost.
  • IEEE 802.11 power save mode when the RF module of the WiFi component is turned off, it is switched to the BLE component working mode, thereby ensuring that the electronic device is in the BLE working mode more than 90% of the time, and only in It is in WiFi working mode within a short period of time.
  • Step S220 Determine according to the first instruction information that there is no downlink data to be sent to the first communication device stored on the second communication device;
  • Step S221 controlling the first communication component to enter the dormant state, and controlling the second communication component to enter the awake state, so that the first communication device is in the second communication mode.
  • TIM adopts a bitmap (Bitmap) structure to indicate whether there is any downlink data of each STATION associated with the AP cached on the AP.
  • Each STATION uses the Tim field in the beacon frame to check the flag value at the corresponding position in the Bitmap to determine whether the corresponding downlink data is buffered on the AP.
  • Table 1 is an optional example of using the Bitmap in the TIM to indicate whether there is downlink data sent to the STATION buffer, as shown in Table 1:
  • the Bitmap in the TIM can usually be set to a matrix of M rows ⁇ N columns (M and N are positive integers). Each TIM flag corresponds to a different STATION. Taking Table 1 as an example, STATION 1 corresponds to the TIM flag 1 of the Tim field in the beacon frame, STATION 2 corresponds to the TIM flag 2 of the Tim field in the beacon frame, and STATION 3 corresponds to the TIM flag 3 of the Tim field in the beacon frame... and so on until STATION n corresponds to the TIM flag n of the Tim field in the beacon frame.
  • the WiFi component is controlled to enter the dormant state, and the BLE component is controlled to enter the awake state, so that the STATION is in the BLE working mode.
  • STATION 1 when it is determined that the downlink data corresponding to STATION1 is not cached on the AP, STATION 1 will control the WiFi component to enter the sleep state and control the BLE component to enter the wake-up state, so that STATION 1 is in BLE Operating mode.
  • switching between the first communication mode and the second communication mode according to the first instruction information may include the following execution steps:
  • Step S222 Determine, according to the first instruction information, that the second communication device stores downlink data to be sent to the first communication device;
  • Step S223 controlling the first communication component to maintain the awake state, and controlling the second communication component to enter the sleep state, so that the first communication device is in the first communication mode.
  • the WiFi component when it is determined that there is downlink data corresponding to the STATION cached on the AP according to the value of the TIM flag, the WiFi component is controlled to stay in the awake state, and the BLE component is controlled to enter the sleep state, so that the STATION is in the WiFi working mode.
  • the WiFi component when it is determined that the downlink data corresponding to the STATION 2 is cached on the AP, STATION 2 will control the WiFi component to stay awake and control the BLE component to enter the sleep state so that STATION 2 is in WiFi Operating mode.
  • step S22 after switching between the first communication mode and the second communication mode according to the first instruction information, the following steps may be further included:
  • Step S23 Send a first empty data frame to the second communication device, where the first empty data frame carries second indication information, the second indication information is identified as a first value, and the first value is used to indicate the first communication The component is in the awake state;
  • Step S24 receiving downlink data from the second communication device through the first communication component
  • Step S25 Perform corresponding control operations according to the downlink data.
  • the Nulldata frame is responsible for transmitting the power saving status change information of STATION to the AP.
  • STA (equivalent to the second indication information) is a field in the Nulldata frame, used to notify the AP of the power saving status change of STATION.
  • Table 2 is an optional example of using STA to indicate the power saving state change of STATION, as shown in Table 2:
  • STATION 1 sends Nulldata 1 to the AP, where the value of the STA field carried by Nulldata 1 is 0, which means that STATION 1 is in WiFi working mode.
  • STATION1 receives downlink data from AP through WiFi component. Then STATION 1 performs corresponding control operations according to the downlink data.
  • the following describes how STATION 1 performs corresponding control operations based on downlink data in combination with multiple application scenarios:
  • Application Scenario 2 Assuming that STATION 1 is a smart electric light, the downstream data is the user opening the door and entering the room detected by other smart home devices (such as smart anti-theft door), and the smart electric light needs to automatically turn on the control information immediately, then STATION 1 is based on Downlink data will automatically turn on the lights immediately to illuminate the user.
  • step S23 after sending the first null data frame to the second communication device, the following execution steps may be further included:
  • Step S26 when it is determined that the downlink data is received, control the first communication component to enter the dormant state, and control the second communication component to enter the wake-up state, so that the first communication device is in the second communication mode;
  • Step S27 Send a second empty data frame to the second communication device, where the second empty data frame carries second indication information, the second indication information is identified as a second value, and the second value is used to indicate the first communication The component is sleeping.
  • STATION2 when STATION2 determines that the downlink data has been received, STATION2 controls the WiFi component to enter the sleep state, and controls the BLE component to enter the wake-up state, so that STATION2 is in the BLE working mode. Then, STATION 2 sends Nulldata 2 to the AP, where the value of the STA field carried by Nulldata 2 is 1, which means that STATION 2 is in the BLE working mode.
  • the foregoing method may further include the following execution steps:
  • Step S28 listening to the broadcast frame from the third communication device through the second communication component, wherein the broadcast frame carries a control instruction
  • Step S29 Perform a corresponding control operation according to the control instruction.
  • the BLE component on the STATION can still listen to the broadcast frame from the BLE controller without establishing a connection and synchronization.
  • the broadcast frame carries a control command.
  • STATION will execute the corresponding control operation according to the control instruction.
  • the remote control can send a light-on control instruction to the smart light, and then the smart light will perform the corresponding light-on operation according to the control instruction.
  • the remote control can also be used to send a light-off control instruction to the smart light, and then the smart light will perform the corresponding light-off operation according to the control instruction.
  • listening to the broadcast frame through the second communication component may include the following execution steps:
  • Step S281 the second communication component listens to the broadcast frame via the preset channel, wherein the preset channel is selected from a plurality of candidate channels and determined by the first communication device and the third communication device in advance through negotiation.
  • the broadcast process of the BLE component may originally work in multiple different channels. Therefore, in order to improve the success rate of the BLE component receiving data, the broadcast process of the BLE component can be fixed in any of the channels. As for the actual fixed channel, it needs to be negotiated and determined by each STATION and the corresponding BLE controller in advance, so that each STATION listens to the broadcast frame from the corresponding BLE controller via the fixed channel.
  • the beacon frame also carries the updated beacon interval.
  • step S21 after the beacon frame is intercepted by the first communication component, the following execution steps may be further included:
  • Step S30 Adjust the preset beacon interval to the updated beacon interval, and wake up the first communication component again according to the updated beacon interval.
  • the AP sends a beacon frame once according to the beacon interval (for example, 100 ms).
  • the preset duration can be customized by the user to obtain the updated beacon interval. Then, the AP will carry the updated beacon interval in the beacon frame and send the beacon frame to the STATION, so that the STATION wakes up the WiFi component according to the updated beacon interval.
  • an embodiment of a method for processing broadcast frames is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be implemented in a computer system such as a set of computer-executable instructions. Execution, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than here.
  • FIG. 4 is a flowchart of a method for processing broadcast frames according to one of the embodiments of the present disclosure. As shown in FIG. 4, the method is Including the following steps:
  • Step S40 It is determined that the first communication device is switched from the first communication mode to the second communication mode, wherein the first communication device communicates with the external communication device through the second communication device in the first communication mode, and the second communication device is used for Establish a wireless local area network, and the first communication device performs point-to-point communication with the third communication device in the second communication mode;
  • Step S41 in response to the control operation acting on the third communication device, determine the control instruction to be sent;
  • Step S42 repeatedly sending a broadcast frame to the first communication device within a preset time period, wherein the broadcast frame carries a control instruction.
  • a retransmission mechanism is added to the BLE controller to ensure that the control commands of the BLE controller can be retransmitted multiple times within the preset time period. Then the probability of STATION receiving the BLE control commands will be Will be significantly improved.
  • the control operation of the BLE controller it can be completed by a physical control keyboard composed of physical keys, or a virtual control keyboard composed of virtual keys on the touch screen, or a physical touch panel with the display screen. carry out.
  • the BLE controller detects that the user performs a pressing operation on a physical button, or a touch operation performed on the touch screen, or a touch operation performed on the touch panel, it determines the BLE control to be sent Command (for example: turn on the light command). Then, the BLE controller will repeatedly send the BLE control command to the STATION within a preset time period.
  • the foregoing preset duration is greater than the preset beacon interval.
  • the continuous retransmission time can be controlled to be longer than the preset beacon interval (for example: 100ms).
  • the preset duration can also be set to be less than or equal to 100 ms according to actual application scenarios.
  • step S42 repeatedly sending a broadcast frame to the first communication device within a preset time period may include the following execution steps:
  • Step S420 within a preset time period, repeatedly send broadcast frames to the first communication device via the preset channel, wherein the preset channel is selected from a plurality of candidate channels and determined by the first communication device and the third communication device in advance through negotiation .
  • the broadcast process of the BLE component may originally work in multiple different channels. Therefore, in order to improve the success rate of the BLE component receiving data, the broadcast process of the BLE component can be fixed in any of the channels. As for the actual fixed channel, it needs to be negotiated and determined by each STATION and the corresponding BLE controller in advance, so that each STATION listens to the broadcast frame from the corresponding BLE controller via the fixed channel.
  • the BLE controller can repeatedly send broadcast frames to the corresponding STATION at equal time intervals via the above fixed channel within a preset time period. For example, when the preset duration is 100 ms, the BLE controller repeatedly sends the broadcast frame to the corresponding STATION 10 times at a time interval of 10 ms. Of course, the BLE controller may not repeatedly send broadcast frames to the corresponding STATION at an equal time interval. For example, when the preset duration is 100ms, the BLE controller repeatedly sends broadcast frames to the corresponding STATION 4 times at 10ms, 30ms, 60ms, and 100ms.
  • step S42 after repeatedly sending the broadcast frame to the first communication device within a preset time period, the following steps may be further included:
  • Step S43 If the feedback message from the first communication device is received within the preset time period, stop sending the broadcast frame before reaching the end of the preset time period, where the feedback message is used to indicate that the first communication device has successfully executed Control instruction.
  • the third communication device In order to enable the first communication device to receive the control instructions carried in the broadcast frame in a timely and accurate manner, the third communication device repeatedly sends the broadcast frame to the first communication device within a preset time period. In order to effectively save or reduce the power consumption of the third communication device, a feedback mechanism can be added to the first communication device.
  • the feedback message may be used to indicate that the first communication device has successfully executed the control instruction. If the first communication device has received the control instruction from the third communication device and the first communication device successfully executes the control instruction, the first communication device can send a feedback message to the third communication device so that the third communication device can determine the first The communication device has successfully executed the control command. Therefore, the third communication device does not need to repeatedly broadcast frames to the first communication device, thereby effectively saving or reducing the power consumption of the third communication device.
  • the feedback message may also be used to indicate that the first communication device failed to successfully execute the control instruction. If the first communication device has received the control instruction from the third communication device but the first communication device fails to execute the control instruction successfully, the first communication device can still send a feedback message to the third communication device so that the third communication device can It is determined that the first communication device failed to successfully execute the control instruction. Therefore, the third communication device can repeatedly broadcast the frame to the first communication device in a targeted manner.
  • step S42 after repeatedly sending the broadcast frame to the first communication device within a preset time period, the following steps may be further included:
  • Step S44 If the feedback message from the first communication device is not received when the end time of the preset duration arrives, stop sending the broadcast frame and enter the sleep state, where the feedback message is used to indicate that the first communication device has succeeded Execute control instructions.
  • the feedback message may be used to indicate that the first communication device has successfully executed the control instruction. If the third communication device does not receive the feedback message from the first communication device when the end time of the preset duration arrives, the third communication device can stop repeatedly sending broadcast frames and enter the sleep state (ie, low power consumption state) Therefore, the power consumption of the third communication device can be effectively saved or reduced.
  • FIG. 5 is a working flow chart of a communication mode switching system according to an alternative embodiment of the present disclosure. As shown in Figure 5, the process may include the following processing steps:
  • Step S502 The WiFi AP sends a beacon frame to the STATION, where the beacon frame carries a beacon interval, a TIM field, and an SSID field.
  • the value of the TIM flag corresponding to the STATION in the TIM field is 0, indicating that the STATION enters the BLE working mode.
  • Step S504 STATION receives a light-on control instruction from the BLE controller.
  • Step S506 The WiFi AP sends a beacon frame to the STATION, where the beacon frame carries a beacon interval, a TIM field, and an SSID field.
  • the value of the TIM flag corresponding to the STATION in the TIM field is 1, indicating that the STATION enters the WiFi working mode.
  • Step S508 STATION sends a Nulldata frame to the WiFi AP, where the Nulldata frame carries an STA field.
  • the attribute value of the STA field is 0, and the WiFi AP is notified that STATION enters the WiFi working mode, so that the WiFi AP sends the content associated with STATION stored in the WiFi AP to STATION.
  • step S510 the WiFi AP sends the content associated with the STATION stored in the WiFi AP to the STATION.
  • Step S512 The WiFi AP clears the content associated with the STATION stored in the WiFi AP.
  • Step S514 STATION sends a Nulldata frame to the WiFi AP, where the Nulldata frame carries an STA field.
  • the attribute value of the STA field is 1, and the WiFi AP is notified that STATION enters the BLE working mode.
  • Step S516 The WiFi AP sends a beacon frame to the STATION, where the beacon frame carries a beacon interval, a TIM field, and an SSID field.
  • the value of the TIM flag corresponding to the STATION in the TIM field is 0, indicating that the STATION enters the BLE working mode.
  • step S528 STATION receives other control instructions from the BLE controller (for example: adjusting the brightness of the light, turning off the light).
  • the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is Better implementation.
  • the technical solution of the present disclosure essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the method described in each embodiment of the present disclosure.
  • a communication mode switching device is also provided.
  • the device is used to implement the above-mentioned embodiments and preferred implementations, and those that have been described will not be repeated.
  • the term "module” can implement a combination of software and/or hardware with predetermined functions.
  • the devices described in the following embodiments are preferably implemented by software, hardware or a combination of software and hardware is also possible and conceived.
  • Fig. 6 is a structural block diagram of a communication mode switching device according to one of the embodiments of the present disclosure.
  • the device includes: a wake-up module 100 configured to wake up the first communication device at a preset beacon interval A communication component, wherein the first communication component communicates with an external communication device through a second communication device in the first communication mode, and the second communication device is used to establish a wireless local area network;
  • the listening module 102 is configured to pass through the first communication component Listen to the beacon frame from the second communication device, where the beacon frame carries at least first indication information, and the first indication information is used to indicate whether the second communication device stores a downlink to be sent to the first communication device Data;
  • the switching module 104 is configured to switch between the first communication mode and the second communication mode according to the first instruction information, wherein the second communication component on the first communication device communicates with the third communication mode in the second communication mode Point-to-point communication between devices.
  • the switching module 104 includes: a first determining unit (not shown in the figure), configured to determine, according to the first indication information, that there is no downlink data to be sent to the first communication device stored on the second communication device;
  • the unit (not shown in the figure) is set to control the first communication component to enter the dormant state and control the second communication component to enter the awake state, so that the first communication device is in the second communication mode.
  • the switching module 104 includes: a second determining unit (not shown in the figure), configured to determine, according to the first indication information, that the second communication device stores downlink data to be sent to the first communication device; a second control unit (Not shown in the figure), it is set to control the first communication component to stay in the awake state and control the second communication component to enter the dormant state, so that the first communication device is in the first communication mode.
  • a second determining unit not shown in the figure
  • the switching module 104 includes: a second determining unit (not shown in the figure), configured to determine, according to the first indication information, that the second communication device stores downlink data to be sent to the first communication device; a second control unit (Not shown in the figure), it is set to control the first communication component to stay in the awake state and control the second communication component to enter the dormant state, so that the first communication device is in the first communication mode.
  • FIG. 7 is a structural block diagram of a communication mode switching device according to one of the optional embodiments of the present disclosure.
  • the device includes all the modules shown in FIG. 6, and the above-mentioned device also includes:
  • the first sending module 106 is configured to send a first empty data frame to the second communication device, wherein the first empty data frame carries second indication information, the second indication information is identified as a first value, and the first value is used for To indicate that the first communication component is in an awake state;
  • the receiving module 108 is configured to receive downlink data from the second communication device through the first communication component;
  • the execution module 110 is configured to perform corresponding control operations according to the downlink data.
  • the above-mentioned device further includes: a control module 112, which is configured to control the first communication component to enter the sleep state and control the second communication component to enter the wake-up state when it is determined that the downlink data reception is completed, So that the first communication device is in the second communication mode; the second sending module 114 is configured to send a second empty data frame to the second communication device, wherein the second empty data frame carries second indication information, and the second indication The information is identified as a second value, and the second value is used to indicate that the first communication component is in a sleep state.
  • the listening module 102 is further configured to listen to the broadcast frame from the third communication device through the second communication component, wherein the broadcast frame carries a control instruction; and executes the corresponding control operation according to the control instruction.
  • the listening module 102 is configured to listen to broadcast frames via a preset channel through the second communication component, wherein the preset channel is selected from a plurality of candidate channels and used by the first communication device and the third communication device Determined by negotiation in advance.
  • the beacon frame also carries an updated beacon interval.
  • the above-mentioned apparatus further includes: a processing module 116, configured to adjust the preset beacon interval to the updated beacon interval, And wake up the first communication component again according to the updated beacon interval.
  • each of the above modules can be implemented by software or hardware.
  • it can be implemented in the following manner, but not limited to this: the above modules are all located in the same processor; or, the above modules are combined in any combination The forms are located in different processors.
  • a device for processing broadcast frames is also provided, which is used to implement the above-mentioned embodiments and preferred implementations, and those that have been described will not be repeated.
  • the term "module” can implement a combination of software and/or hardware with predetermined functions.
  • the devices described in the following embodiments are preferably implemented by software, hardware or a combination of software and hardware is also possible and conceived.
  • Fig. 8 is a structural block diagram of an apparatus for processing broadcast frames according to one of the embodiments of the present disclosure.
  • the apparatus includes: a determining module 200 configured to determine that the first communication device switches from the first communication mode to the second communication mode. Communication mode, wherein the first communication device communicates with the external communication device through the second communication device in the first communication mode, the second communication device is used to establish a wireless local area network, and the first communication device communicates with the third communication device in the second communication mode.
  • the communication devices perform point-to-point communication, and in response to a control operation acting on the third communication device, determine the control instruction to be sent; the processing module 202 is configured to repeatedly send broadcast frames to the first communication device within a preset time period, where the broadcast Control instructions are carried in the frame.
  • the processing module 202 is configured to repeatedly send broadcast frames to the first communication device via a preset channel within a preset time period, wherein the preset channel is selected from a plurality of candidate channels and the first communication device and The third communication device is negotiated and determined in advance.
  • the processing module 202 is further configured to stop sending the broadcast frame before reaching the end time of the preset duration if the feedback message from the first communication device is received within the preset duration, wherein the feedback message is used for Indicates that the first communication device has successfully executed the control command.
  • the processing module 202 is further configured to stop sending the broadcast frame and enter a sleep state if the feedback message from the first communication device is not received when the end time of the preset duration arrives, wherein the feedback message is used Yu indicates that the first communication device has successfully executed the control command.
  • the processing module 202 is further configured to repeatedly send broadcast frames to the first communication device at equal time intervals via a preset channel within a preset time period.
  • the embodiment of the present disclosure also provides a storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any of the foregoing method embodiments when running.
  • the foregoing storage medium may be configured to store a computer program for executing the following steps:
  • S2 Use the first communication component to listen to a beacon frame from the second communication device, where the beacon frame carries at least first indication information, and the first indication information is used to indicate whether the second communication device is stored to be sent Downlink data to the first communication device;
  • the storage medium is also configured to store a computer program for executing the following steps:
  • the foregoing storage medium may include, but is not limited to: U disk, Read-Only Memory (Read-Only Memory, ROM for short), Random Access Memory (Random Access Memory, RAM for short), Various media that can store computer programs, such as mobile hard disks, magnetic disks, or optical disks.
  • the embodiment of the present disclosure also provides a processor, which is configured to run a computer program to execute the steps in any one of the foregoing method embodiments.
  • the foregoing processor may be configured to execute the following steps through a computer program:
  • S2 Use the first communication component to listen to a beacon frame from the second communication device, where the beacon frame carries at least first indication information, and the first indication information is used to indicate whether the second communication device is stored to be sent Downlink data to the first communication device;
  • the foregoing processor may also be configured to execute the following steps through a computer program:
  • the disclosed technical content can be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the units may be a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present disclosure essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present disclosure.
  • the aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

Provided by the present disclosure are a communication mode switching method and device, a storage medium, a processor and a system. The method comprises: waking up a first communication component on a first communication device according to a preset beacon interval; monitoring a beacon frame from a second communication device through a first communication component, wherein the beacon frame at least carries a first indication information, and the first indication information is used for indicating whether downlink data to be sent to the first communication device is stored in the second communication device; and switching between a first communication mode and a second communication mode according to the first indication information. The present disclosure solves the technical problem in the correlation technique that the WiFi component and the BLE component are integrated on a same chip and work alternately in a time division multiplexing manner, in this case, the operation complexity of cooperative control of a WiFi component and a BLE component is relatively high and a relatively high packet loss rate is easily caused.

Description

通讯模式的切换方法、装置、存储介质、处理器及系统Communication mode switching method, device, storage medium, processor and system
交叉援引Cross reference
本公开基于申请号为201910460101.X、申请日为2019-05-29的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本公开作为参考。This disclosure is filed based on a Chinese patent application with an application number of 201910460101.X and an application date of 2019-05-29, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated by reference into this disclosure.
技术领域Technical field
本公开涉及通信领域,具体而言,涉及一种通讯模式的切换方法、装置、存储介质、处理器及系统。The present disclosure relates to the field of communications, and in particular, to a method, device, storage medium, processor, and system for switching communication modes.
背景技术Background technique
无线保真(WiFi)是一个创建于IEEE 802.11标准的无限局域网技术,其通过无线电波来联网,通常设置为无线路由器。在该无线路由器的电波覆盖的有效范围均可以采用WiFi连接方式进行联网。Wireless Fidelity (WiFi) is a wireless LAN technology created in the IEEE 802.11 standard. It connects to the Internet through radio waves and is usually set as a wireless router. The effective range of the radio wave coverage of the wireless router can be connected to the network by means of WiFi connection.
蓝牙低功耗(BLE)是一种个人局域网技术。与经典蓝牙相比,BLE在保持同等通信范围的同时显著地降低功耗和成本。Bluetooth Low Energy (BLE) is a personal area network technology. Compared with classic Bluetooth, BLE significantly reduces power consumption and cost while maintaining the same communication range.
目前,相关技术中所提供的电子设备上通常同时具备WiFi组件和BLE组件,其配置方式通常包括以下两种:At present, electronic devices provided in related technologies usually have both WiFi components and BLE components, and their configuration methods usually include the following two:
方式一、WiFi组件和BLE组件分别设置于两个不同芯片,并且每个芯片分别对应一个天线,单独工作。Method 1: The WiFi component and the BLE component are respectively set on two different chips, and each chip corresponds to an antenna and works independently.
在该方式下,WiFi组件和BLE组件无需协同工作、互不干扰,因此,通信性能良好。然而,该方式的缺陷在于:采用双芯片结构的硬件成本较高。In this way, the WiFi component and the BLE component do not need to work together and do not interfere with each other, so the communication performance is good. However, the disadvantage of this method is that the hardware cost of the dual-chip structure is relatively high.
方式二、WiFi组件和BLE组件集成于同一个芯片上,共用同一根天线。Method 2: The WiFi component and the BLE component are integrated on the same chip and share the same antenna.
在该方式下,WiFi组件和BLE组件采用分时复用的方式交替进行工作,因此,该方式所采用的单个集成芯片结构的硬件成本较低。然而,该方式的缺陷在于:由于WiFi组件和BLE组件采用分时复用的方式交替进行工作,对WiFi组件和BLE组件的协同控制要求极高,否则将会引发较高的丢包率。In this mode, the WiFi component and the BLE component work alternately in a time-division multiplexing mode. Therefore, the hardware cost of the single integrated chip structure adopted in this mode is low. However, the disadvantage of this method is that: since the WiFi component and the BLE component work alternately in a time-division multiplexing manner, the requirements for cooperative control of the WiFi component and the BLE component are extremely high, otherwise a higher packet loss rate will be caused.
针对上述的问题,目前尚未提出有效的解决方案。In view of the above-mentioned problems, no effective solutions have yet been proposed.
发明内容Summary of the invention
本公开至少部分实施例提供了一种通讯模式的切换方法、装置、存储介质、处理器及系统,以至少解决相关技术中在WiFi组件和BLE组件集成于同一个芯片上,采用分时复用的方式交替进行工作的情况下,易造成WiFi组件和BLE组件的协同控制的操作复杂度较高、容易引发较高的丢包率的技术问题。At least some of the embodiments of the present disclosure provide a communication mode switching method, device, storage medium, processor, and system to at least solve the problem of integrating a WiFi component and a BLE component on the same chip in related technologies, using time-sharing multiplexing In the case of working alternately, it is easy to cause high operational complexity of the cooperative control of the WiFi component and the BLE component, and it is easy to cause technical problems of high packet loss rate.
根据本公开其中一实施例,提供了一种通讯模式的切换方法,包括:According to one of the embodiments of the present disclosure, a communication mode switching method is provided, including:
按照预设信标间隔唤醒第一通讯设备上的第一通讯组件,其中,第一通讯组件在第一通讯模式下通过第二通讯设备与外界通讯设备进行通讯,第二通讯设备用于组建无线局域网;通过第一通讯组件侦听来自于第二通讯设备的信标帧,其中,信标帧中至少携带有第一指示信息,第一指示信息用于指示第二通讯设备上是否存储有待发送至第一通讯设备的下行数据;根据第一指示信息在第一通讯模式与第二通讯模式之间进行切换,其中,第一通讯设备上的第二通讯组件在第二通讯模式下与第三通讯设备之间进行点对点通讯。Wake up the first communication component on the first communication device according to the preset beacon interval, wherein the first communication component communicates with the external communication device through the second communication device in the first communication mode, and the second communication device is used to establish a wireless Local area network; listen to the beacon frame from the second communication device through the first communication component, wherein the beacon frame carries at least first indication information, and the first indication information is used to indicate whether the second communication device is stored to be sent Downlink data to the first communication device; switch between the first communication mode and the second communication mode according to the first instruction information, wherein the second communication component on the first communication device is in the second communication mode with the third communication mode Point-to-point communication between communication devices.
可选地,根据第一指示信息在第一通讯模式与第二通讯模式之间进行切换包括:根据第一指示信息确定第二通讯设备上未存储有待发送至第一通讯设备的下行数据;控制第一通讯组件进入休眠状态,并控制第二通讯组件进入唤醒状态,以使第一通讯设备处于第二通讯模式。Optionally, switching between the first communication mode and the second communication mode according to the first instruction information includes: determining, according to the first instruction information, that the second communication device does not store downlink data to be sent to the first communication device; controlling The first communication component enters the dormant state, and controls the second communication component to enter the wake-up state, so that the first communication device is in the second communication mode.
可选地,根据第一指示信息在第一通讯模式与第二通讯模式之间进行切换包括:根据第一指示信息确定第二通讯设备上存储有待发送至第一通讯设备的下行数据;控制第一通讯组件保持唤醒状态,并控制第二通讯组件进入休眠状态,以使第一通讯设备处于第一通讯模式。Optionally, switching between the first communication mode and the second communication mode according to the first instruction information includes: determining, according to the first instruction information, that the second communication device stores downlink data to be sent to the first communication device; A communication component remains in the awake state, and controls the second communication component to enter the dormant state, so that the first communication device is in the first communication mode.
可选地,在根据第一指示信息在第一通讯模式与第二通讯模式之间进行切换之后,还包括:向第二通讯设备发送第一空数据帧,其中,第一空数据帧中携带有第二指示信息,第二指示信息被标识为第一数值,第一数值用于指示第一通讯组件处于唤醒状态;通过第一通讯组件接收来自于第二通讯设备的下行数据;根据下行数据执行对应的控制操作。Optionally, after switching between the first communication mode and the second communication mode according to the first instruction information, the method further includes: sending a first empty data frame to the second communication device, wherein the first empty data frame carries There is second indication information, the second indication information is identified as a first value, and the first value is used to indicate that the first communication component is in an awake state; the downlink data from the second communication device is received through the first communication component; according to the downlink data Perform the corresponding control operation.
可选地,在向第二通讯设备发送第一空数据帧之后,还包括:在确定下行数据接收完毕的情况下,控制第一通讯组件进入休眠状态,并控制第二通讯组件进入唤醒状态,以使第一通讯设备处于第二通讯模式;向第二通讯设备发送第二空数据帧,其中,第二空数据帧中携带有第二指示信息,第二指示信息被标识为第二数值,第二数值用 于指示第一通讯组件处于休眠状态。Optionally, after sending the first empty data frame to the second communication device, the method further includes: controlling the first communication component to enter the dormant state and controlling the second communication component to enter the awake state when it is determined that the downlink data is received. So that the first communication device is in the second communication mode; sending a second empty data frame to the second communication device, wherein the second empty data frame carries second indication information, and the second indication information is identified as a second value, The second value is used to indicate that the first communication component is in a sleep state.
可选地,上述方法还包括:通过第二通讯组件侦听来自于第三通讯设备的广播帧,其中,广播帧中携带有控制指令;根据控制指令执行对应的控制操作。Optionally, the above method further includes: listening to a broadcast frame from a third communication device through the second communication component, wherein the broadcast frame carries a control instruction; and executing corresponding control operations according to the control instruction.
可选地,通过第二通讯组件侦听广播帧包括:通过第二通讯组件,经由预设通道侦听广播帧,其中,预设通道从多个备选通道中选取并由第一通讯设备与第三通讯设备预先协商确定。Optionally, listening to the broadcast frame through the second communication component includes: listening to the broadcast frame through the second communication component via a preset channel, wherein the preset channel is selected from a plurality of candidate channels and is connected by the first communication device and The third communication device is negotiated and determined in advance.
可选地,信标帧中还携带有更新后的信标间隔,在通过第一通讯组件侦听信标帧之后,还包括:将预设信标间隔调整为更新后的信标间隔,并按照更新后的信标间隔再次唤醒第一通讯组件。Optionally, the beacon frame also carries an updated beacon interval. After listening to the beacon frame through the first communication component, the method further includes: adjusting the preset beacon interval to the updated beacon interval, and according to The updated beacon interval wakes up the first communication component again.
根据本公开其中一实施例,还提供了一种通讯模式的切换装置,包括:According to one of the embodiments of the present disclosure, there is also provided a communication mode switching device, including:
唤醒模块,设置为按照预设信标间隔唤醒第一通讯设备上的第一通讯组件,其中,第一通讯组件在第一通讯模式下通过第二通讯设备与外界通讯设备进行通讯,第二通讯设备用于组建无线局域网;侦听模块,设置为通过第一通讯组件侦听来自于第二通讯设备的信标帧,其中,信标帧中至少携带有第一指示信息,第一指示信息用于指示第二通讯设备上是否存储有待发送至第一通讯设备的下行数据;切换模块,设置为根据第一指示信息在第一通讯模式与第二通讯模式之间进行切换,其中,第一通讯设备上的第二通讯组件在第二通讯模式下与第三通讯设备之间进行点对点通讯。The wake-up module is set to wake up the first communication component on the first communication device according to the preset beacon interval, wherein the first communication component communicates with the external communication device through the second communication device in the first communication mode, and the second communication The device is used to build a wireless local area network; the listening module is configured to listen to the beacon frame from the second communication device through the first communication component, wherein the beacon frame carries at least the first indication information, and the first indication information is used for Instructing the second communication device whether the downlink data to be sent to the first communication device is stored; the switching module is configured to switch between the first communication mode and the second communication mode according to the first instruction information, wherein the first communication The second communication component on the device performs point-to-point communication with the third communication device in the second communication mode.
可选地,切换模块包括:第一确定单元,设置为根据第一指示信息确定第二通讯设备上未存储有待发送至第一通讯设备的下行数据;第一控制单元,设置为控制第一通讯组件进入休眠状态,并控制第二通讯组件进入唤醒状态,以使第一通讯设备处于第二通讯模式。Optionally, the switching module includes: a first determining unit configured to determine, according to the first indication information, that there is no downlink data to be sent to the first communication device stored on the second communication device; the first control unit is configured to control the first communication device The component enters the dormant state and controls the second communication component to enter the wake-up state, so that the first communication device is in the second communication mode.
可选地,切换模块包括:第二确定单元,设置为根据第一指示信息确定第二通讯设备上存储有待发送至第一通讯设备的下行数据;第二控制单元,设置为控制第一通讯组件保持唤醒状态,并控制第二通讯组件进入休眠状态,以使第一通讯设备处于第一通讯模式。Optionally, the switching module includes: a second determining unit configured to determine, according to the first indication information, that the second communication device stores downlink data to be sent to the first communication device; the second control unit is configured to control the first communication component Keep the awake state and control the second communication component to enter the sleep state so that the first communication device is in the first communication mode.
可选地,上述装置还包括:第一发送模块,设置为向第二通讯设备发送第一空数据帧,其中,第一空数据帧中携带有第二指示信息,第二指示信息被标识为第一数值,第一数值用于指示第一通讯组件处于唤醒状态;接收模块,设置为通过第一通讯组件接收来自于第二通讯设备的下行数据;执行模块,设置为根据下行数据执行对应的控制操作。Optionally, the above apparatus further includes: a first sending module configured to send a first empty data frame to the second communication device, wherein the first empty data frame carries second indication information, and the second indication information is identified as The first value, the first value is used to indicate that the first communication component is in an awake state; the receiving module is set to receive the downlink data from the second communication device through the first communication component; the execution module is set to execute the corresponding Control operation.
可选地,上述装置还包括:控制模块,设置为在确定下行数据接收完毕的情况下,控制第一通讯组件进入休眠状态,并控制第二通讯组件进入唤醒状态,以使第一通讯设备处于第二通讯模式;第二发送模块,设置为向第二通讯设备发送第二空数据帧,其中,第二空数据帧中携带有第二指示信息,第二指示信息被标识为第二数值,第二数值用于指示第一通讯组件处于休眠状态。Optionally, the above-mentioned device further includes: a control module configured to control the first communication component to enter the sleep state and control the second communication component to enter the wake-up state when it is determined that the downlink data reception is complete, so that the first communication device is The second communication mode; the second sending module is configured to send a second empty data frame to the second communication device, wherein the second empty data frame carries second indication information, and the second indication information is identified as a second value, The second value is used to indicate that the first communication component is in a sleep state.
可选地,侦听模块,还设置为通过第二通讯组件侦听来自于第三通讯设备的广播帧,其中,广播帧中携带有控制指令;根据控制指令执行对应的控制操作。Optionally, the listening module is further configured to listen to the broadcast frame from the third communication device through the second communication component, wherein the broadcast frame carries a control instruction; and the corresponding control operation is executed according to the control instruction.
可选地,侦听模块,设置为通过第二通讯组件,经由预设通道侦听广播帧,其中,预设通道从多个备选通道中选取并由第一通讯设备与第三通讯设备预先协商确定。Optionally, the listening module is configured to listen to the broadcast frame via a preset channel through the second communication component, wherein the preset channel is selected from a plurality of candidate channels and pre-defined by the first communication device and the third communication device. Determined by negotiation.
可选地,信标帧中还携带有更新后的信标间隔,上述装置还包括:处理模块,设置为将预设信标间隔调整为更新后的信标间隔,并按照更新后的信标间隔再次唤醒第一通讯组件。Optionally, the beacon frame also carries an updated beacon interval, and the above-mentioned apparatus further includes: a processing module configured to adjust the preset beacon interval to the updated beacon interval, and according to the updated beacon interval Wake up the first communication component again at intervals.
根据本公开其中一实施例,还提供了一种存储介质,存储介质包括存储的程序,其中,在程序运行时控制存储介质所在设备执行上述任意一项的通讯模式的切换方法。According to one of the embodiments of the present disclosure, a storage medium is further provided. The storage medium includes a stored program, wherein the device where the storage medium is located is controlled to execute any one of the communication mode switching methods described above when the program is running.
根据本公开其中一实施例,还提供了一种处理器,处理器用于运行程序,其中,程序运行时执行上述任意一项的通讯模式的切换方法。According to one of the embodiments of the present disclosure, there is also provided a processor, which is used to run a program, wherein any one of the communication mode switching methods described above is executed when the program is running.
根据本公开其中一实施例,还提供了一种通讯模式的切换系统,包括:第一通讯设备、第二通讯设备以及第三通讯设备,其中,第一通讯设备包括上述通讯模式的切换装置。According to one of the embodiments of the present disclosure, there is also provided a communication mode switching system, including: a first communication device, a second communication device, and a third communication device, wherein the first communication device includes the above-mentioned communication mode switching device.
在本公开至少部分实施例中,采用按照预设信标间隔唤醒第一通讯设备上的第一通讯组件,该第一通讯组件在第一通讯模式下通过第二通讯设备与外界通讯设备进行通讯,该第二通讯设备用于组建无线局域网的方式,通过第一通讯组件侦听来自于第二通讯设备的信标帧,该信标帧中至少携带有第一指示信息,该第一指示信息用于指示第二通讯设备上是否存储有待发送至第一通讯设备的下行数据,以及根据第一指示信息在第一通讯模式与第二通讯模式之间进行切换,该第一通讯设备上的第二通讯组件在第二通讯模式下与第三通讯设备之间进行点对点通讯,达到了优化第一通讯组件(例如:WiFi组件)和第二通讯组件(例如:BLE组件)协同工作逻辑的目的,从而实现了提高电子设备的通信稳定性(尤其是WiFi的稳定性),降低WiFi组件和BLE组件的协同控制的操作复杂度以及由分时复用所引发的丢包率的技术效果,进而解决了相关技术中在WiFi组件和BLE组件集成于同一个芯片上,采用分时复用的方式交替进行工作的情况下,易造成WiFi组件和BLE组件的协同控制的操作复杂度较高、 容易引发较高的丢包率的技术问题。In at least some of the embodiments of the present disclosure, the first communication component on the first communication device is awakened at a preset beacon interval, and the first communication component communicates with the external communication device through the second communication device in the first communication mode , The second communication device is used to establish a wireless local area network, through the first communication component to listen to the beacon frame from the second communication device, the beacon frame carries at least the first indication information, the first indication information It is used to indicate whether downlink data to be sent to the first communication device is stored on the second communication device, and to switch between the first communication mode and the second communication mode according to the first indication information. The second communication component performs point-to-point communication with the third communication device in the second communication mode, achieving the goal of optimizing the cooperative working logic of the first communication component (for example: WiFi component) and the second communication component (for example: BLE component). This achieves the technical effect of improving the communication stability of electronic devices (especially the stability of WiFi), reducing the operational complexity of the cooperative control of WiFi components and BLE components, and the packet loss rate caused by time-division multiplexing, and then solving In related technologies, when the WiFi component and the BLE component are integrated on the same chip, and the time-sharing multiplexing method is used to alternately work, the operation complexity of the cooperative control of the WiFi component and the BLE component is likely to be high, and it is easy to cause The technical problem of higher packet loss rate.
附图说明Description of the drawings
此处所说明的附图用来提供对本公开的进一步理解,构成本申请的一部分,本公开的示意性实施例及其说明用于解释本公开,并不构成对本公开的不当限定。在附图中:The drawings described here are used to provide a further understanding of the present disclosure and constitute a part of the present application. The exemplary embodiments of the present disclosure and their descriptions are used to explain the present disclosure, and do not constitute an improper limitation of the present disclosure. In the attached picture:
图1是根据本公开其中一实施例的通讯模式的切换系统的结构示意图;Figure 1 is a schematic structural diagram of a communication mode switching system according to one of the embodiments of the present disclosure;
图2是根据本公开其中一实施例的通讯模式的切换方法的流程图;Fig. 2 is a flowchart of a communication mode switching method according to one of the embodiments of the present disclosure;
图3是根据本公开其中一可选实施例的WiFi组件与BLE组件的时序控制示意图;FIG. 3 is a schematic diagram of timing control of a WiFi component and a BLE component according to an optional embodiment of the present disclosure;
图4是根据本公开其中一实施例的广播帧的处理方法的流程图;Fig. 4 is a flowchart of a method for processing broadcast frames according to one of the embodiments of the present disclosure;
图5是根据本公开其中一可选实施例的通讯模式的切换系统的工作流程图;Fig. 5 is a working flow chart of the communication mode switching system according to one of the alternative embodiments of the present disclosure;
图6是根据本公开其中一实施例的通讯模式的切换装置的结构框图;Fig. 6 is a structural block diagram of a communication mode switching device according to one of the embodiments of the present disclosure;
图7是根据本公开其中一可选实施例的通讯模式的切换装置的结构框图;Fig. 7 is a structural block diagram of a communication mode switching device according to one of the alternative embodiments of the present disclosure;
图8是根据本公开其中一实施例的广播帧的处理装置的结构框图。Fig. 8 is a structural block diagram of an apparatus for processing broadcast frames according to one of the embodiments of the present disclosure.
具体实施方式Detailed ways
为了使本技术领域的人员更好地理解本公开方案,下面将结合本公开实施例中的附图,对本公开实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分的实施例,而不是全部的实施例。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本公开保护的范围。In order to enable those skilled in the art to better understand the solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only They are a part of the embodiments of the present disclosure, but not all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative work should fall within the protection scope of the present disclosure.
需要说明的是,本公开的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的本公开的实施例能够以除了在这里图示或描述的那些以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。It should be noted that the terms "first" and "second" in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific sequence or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of the present disclosure described herein can be implemented in a sequence other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations of them are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to the clearly listed Those steps or units may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or equipment.
根据本公开其中一实施例,提供了一种通讯模式的切换系统的实施例。该通讯模 式的切换系统包括:第一通讯设备、第二通讯设备以及第三通讯设备。第一通讯设备上设置有通讯模组,其中,该通讯模组包括:第一通讯组件和第二通讯组件。第二通讯设备用于组建无线局域网。第一通讯组件在第一通讯模式下通过第二通讯设备与外界通讯设备(例如:智能手机等移动设备控制端,云端服务器)进行通讯。第一通讯设备上的第二通讯组件在第二通讯模式下与第三通讯设备之间进行点对点通讯。即,第一通讯设备在第二通讯模式下与第三通讯设备组成无线个域网。According to one of the embodiments of the present disclosure, an embodiment of a communication mode switching system is provided. The communication mode switching system includes: a first communication device, a second communication device, and a third communication device. The first communication device is provided with a communication module, where the communication module includes: a first communication component and a second communication component. The second communication device is used to establish a wireless local area network. In the first communication mode, the first communication component communicates with an external communication device (such as a mobile device control terminal such as a smart phone, a cloud server) through a second communication device. The second communication component on the first communication device performs point-to-point communication with the third communication device in the second communication mode. That is, the first communication device and the third communication device form a wireless personal area network in the second communication mode.
在一个可选实施例中,图1是根据本公开其中一实施例的通讯模式的切换系统的结构示意图,如图1所示,第一通讯设备为工作站(STATION),第二通讯设备为WiFi接入点(AP),第三通讯设备为BLE控制器。第一通讯模式为WiFi工作模式,第二通讯模式为BLE工作模式。STATION上的通讯模组中所包含的第一通讯组件为WiFi组件,STATION上的通讯模组中所包含的第二通讯组件为BLE组件。In an alternative embodiment, FIG. 1 is a schematic structural diagram of a communication mode switching system according to one of the embodiments of the present disclosure. As shown in FIG. 1, the first communication device is a workstation (STATION), and the second communication device is WiFi. The access point (AP), and the third communication device is a BLE controller. The first communication mode is the WiFi working mode, and the second communication mode is the BLE working mode. The first communication component included in the communication module on the STATION is a WiFi component, and the second communication component included in the communication module on the STATION is a BLE component.
以智能家居应用场景为例,上述工作站可以进一步为智能家用电器,例如:智能电视、智能冰箱、智能台灯、智能空调等。上述WiFi AP可以进一步为无线路由器。上述BLE控制器可以进一步为智能家用电器的遥控器。Taking the smart home application scenario as an example, the above-mentioned workstation may further be smart household appliances, such as smart TVs, smart refrigerators, smart desk lamps, smart air conditioners, and so on. The aforementioned WiFi AP may further be a wireless router. The above-mentioned BLE controller may further be a remote controller of a smart home appliance.
以第一通讯设备为智能家用电器为例,智能家用电器可以包括一个或多个处理器(处理器可以包括但不限于中央处理器(CPU)、图形处理器(GPU)、数字信号处理(DSP)芯片、微处理器(MCU)或可编程逻辑器件(FPGA)等的处理装置)和用于存储数据的存储器。可选地,上述智能家用电器还可以包括用于通信功能的通讯模组以及输入输出设备。本领域普通技术人员可以理解,上述结构描述仅为示意,其并不对上述智能家用电器的结构造成限定。例如,智能家用电器还可包括比上述结构描述更多或者更少的组件,或者具有与上述结构描述不同的配置。Taking the first communication device as a smart home appliance as an example, the smart home appliance may include one or more processors (the processor may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) ) Chip, microprocessor (MCU) or programmable logic device (FPGA) and other processing devices) and memory used to store data. Optionally, the above-mentioned smart home appliance may also include a communication module for communication functions and input and output devices. A person of ordinary skill in the art can understand that the foregoing description of the structure is merely illustrative, and does not limit the structure of the foregoing smart home appliance. For example, the smart home appliance may also include more or fewer components than the foregoing structural description, or have a different configuration from the foregoing structural description.
存储器可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的通讯模式的切换方法对应的计算机程序,处理器通过运行存储在存储器内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的通讯模式的切换方法。存储器可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至智能家用电器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory can be used to store computer programs, for example, software programs and modules of application software, such as the computer programs corresponding to the communication mode switching method in the embodiment of the present disclosure. The processor executes various computer programs by running the computer programs stored in the memory. Function application and data processing, that is, realize the above-mentioned switching method of communication mode. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include a memory remotely provided with respect to the processor, and these remote memories may be connected to the smart home appliance through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
通讯模组中的WiFi组件包括射频(Radio Frequency,简称为RF)模块,其用于通过无线方式与互联网进行通讯。The WiFi component in the communication module includes a radio frequency (RF) module, which is used to communicate with the Internet in a wireless manner.
同理,以第三通讯设备为智能家用电器的遥控器为例,遥控器可以包括一个或多 个处理器(处理器可以包括但不限于中央处理器(CPU)、图形处理器(GPU)、数字信号处理(DSP)芯片、微处理器(MCU)或可编程逻辑器件(FPGA)等的处理装置)和用于存储数据的存储器。可选地,上述遥控器还可以包括用于点对点通信的通讯组件以及输入输出设备。本领域普通技术人员可以理解,上述结构描述仅为示意,其并不对上述遥控器的结构造成限定。例如,遥控器还可包括比上述结构描述更多或者更少的组件,或者具有与上述结构描述不同的配置。Similarly, taking the third communication device as the remote controller of a smart home appliance as an example, the remote controller may include one or more processors (the processor may include but is not limited to a central processing unit (CPU), a graphics processing unit (GPU), Digital signal processing (DSP) chip, microprocessor (MCU) or programmable logic device (FPGA) and other processing devices) and memory for storing data. Optionally, the aforementioned remote controller may also include a communication component for point-to-point communication and an input and output device. A person of ordinary skill in the art can understand that the foregoing description of the structure is merely illustrative, and does not limit the structure of the foregoing remote control. For example, the remote controller may also include more or fewer components than the foregoing structural description, or have a configuration different from the foregoing structural description.
存储器可用于存储计算机程序,例如,应用软件的软件程序以及模块,如本公开实施例中的广播帧的处理方法对应的计算机程序,处理器通过运行存储在存储器内的计算机程序,从而执行各种功能应用以及数据处理,即实现上述的广播帧的处理方法。存储器可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器可进一步包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至遥控器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory can be used to store computer programs, for example, software programs and modules of application software, such as the computer programs corresponding to the broadcast frame processing method in the embodiments of the present disclosure. The processor executes various computer programs by running the computer programs stored in the memory. Functional application and data processing, that is, the above-mentioned broadcast frame processing method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include a memory remotely provided with respect to the processor, and these remote memories may be connected to the remote controller through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
根据本公开其中一实施例,提供了一种通讯模式的切换方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to one of the embodiments of the present disclosure, an embodiment of a communication mode switching method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions And, although a logical sequence is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than here.
在本实施例中提供了一种运行于上述工作站的通讯模式的切换方法,图2是根据本公开其中一实施例的通讯模式的切换方法的流程图,如图2所示,该方法包括如下步骤:In this embodiment, a communication mode switching method running on the above-mentioned workstation is provided. FIG. 2 is a flowchart of the communication mode switching method according to one of the embodiments of the present disclosure. As shown in FIG. 2, the method includes the following step:
步骤S20,按照预设信标间隔唤醒第一通讯设备上的第一通讯组件,其中,第一通讯组件在第一通讯模式下通过第二通讯设备与外界通讯设备进行通讯,第二通讯设备用于组建无线局域网;Step S20, wake up the first communication component on the first communication device according to the preset beacon interval, wherein the first communication component communicates with the external communication device through the second communication device in the first communication mode, and the second communication device uses To build a wireless local area network;
步骤S21,通过第一通讯组件侦听来自于第二通讯设备的信标帧,其中,信标帧中至少携带有第一指示信息,第一指示信息用于指示第二通讯设备上是否存储有待发送至第一通讯设备的下行数据;Step S21: Listen to the beacon frame from the second communication device through the first communication component, where the beacon frame carries at least first indication information, and the first indication information is used to indicate whether the second communication device is Downlink data sent to the first communication device;
步骤S22,根据第一指示信息在第一通讯模式与第二通讯模式之间进行切换,其中,第一通讯设备上的第二通讯组件在第二通讯模式下与第三通讯设备之间进行点对点通讯。Step S22, switching between the first communication mode and the second communication mode according to the first instruction information, wherein the second communication component on the first communication device performs point-to-point communication with the third communication device in the second communication mode communication.
通过上述步骤,可以采用按照预设信标间隔唤醒第一通讯设备上的第一通讯组件, 该第一通讯组件在第一通讯模式下通过第二通讯设备与外界通讯设备进行通讯,该第二通讯设备用于组建无线局域网的方式,通过第一通讯组件侦听来自于第二通讯设备的信标帧,该信标帧中至少携带有第一指示信息,该第一指示信息用于指示第二通讯设备上是否存储有待发送至第一通讯设备的下行数据,以及根据第一指示信息在第一通讯模式与第二通讯模式之间进行切换,该第一通讯设备上的第二通讯组件在第二通讯模式下与第三通讯设备之间进行点对点通讯,达到了优化第一通讯组件(例如:WiFi组件)和第二通讯组件(例如:BLE组件)协同工作逻辑的目的,从而实现了提高电子设备的通信稳定性(尤其是WiFi的稳定性),降低WiFi组件和BLE组件的协同控制的操作复杂度以及由分时复用所引发的丢包率的技术效果,进而解决了相关技术中在WiFi组件和BLE组件集成于同一个芯片上,采用分时复用的方式交替进行工作的情况下,易造成WiFi组件和BLE组件的协同控制的操作复杂度较高、容易引发较高的丢包率的技术问题。Through the above steps, the first communication component on the first communication device can be awakened according to the preset beacon interval. The first communication component communicates with the external communication device through the second communication device in the first communication mode. The communication device is used to establish a wireless local area network. The first communication component listens to a beacon frame from a second communication device. The beacon frame carries at least first indication information, and the first indication information is used to indicate 2. Whether downlink data to be sent to the first communication device is stored on the communication device, and switching between the first communication mode and the second communication mode according to the first instruction information, the second communication component on the first communication device is The point-to-point communication with the third communication device in the second communication mode achieves the goal of optimizing the cooperative working logic of the first communication component (for example: WiFi component) and the second communication component (for example: BLE component), thereby achieving improvement The communication stability of electronic devices (especially the stability of WiFi), reduces the operational complexity of the cooperative control of WiFi components and BLE components, and the technical effect of packet loss rate caused by time-division multiplexing, thereby solving related technologies. When the WiFi component and the BLE component are integrated on the same chip and work alternately by time-division multiplexing, the cooperative control of the WiFi component and the BLE component is likely to have high operational complexity and cause high loss. The technical problem of packet rate.
考虑到相关技术在WiFi组件和BLE组件采用分时复用的方式交替进行工作的过程中,如果WiFi组件处于工作状态,则BLE组件处于休眠状态。同理,如果BLE组件处于工作状态,则WiFi组件处于休眠状态。因此,采用分时复用的工作方式势必会引发较高的丢包率,此外还容易引起断线的问题。以上述预设信标间隔为100ms为例,按照相关技术所采用的WiFi组件和BLE组件分时复用方式,在第一个100ms的时间范围内,WiFi组件处于工作状态,而BLE组件处于休眠状态。在第二个100ms的时间范围内,BLE组件处于工作状态,而WiFi组件处于休眠状态。如此往复交替执行,此处不再赘述。Considering that in the related technology, when the WiFi component and the BLE component alternately work in a time-division multiplexing manner, if the WiFi component is in a working state, the BLE component is in a sleep state. Similarly, if the BLE component is in a working state, the WiFi component is in a sleep state. Therefore, the use of time-division multiplexing will inevitably lead to a higher packet loss rate, and it is also easy to cause disconnection. Taking the above-mentioned preset beacon interval of 100ms as an example, according to the time-sharing multiplexing method of WiFi components and BLE components used in related technologies, within the first 100ms time range, the WiFi components are in working state and the BLE components are in sleep mode status. In the second 100ms time range, the BLE component is in the working state, and the WiFi component is in the dormant state. Such reciprocating and alternate execution will not be repeated here.
为此,利用IEEE 802.11的省电模式(power save mode),通过WiFi组件低功耗协议,使得WiFi组件工作时间被尽量缩短,而将大部分时间分配给BLE组件使用。For this reason, the power save mode of IEEE 802.11 is used and the low power consumption protocol of the WiFi component is used to shorten the working time of the WiFi component as much as possible, and most of the time is allocated to the BLE component.
IEEE 802.11 power save mode是一个标准的WiFi低功耗协议。在该协议下,WiFi STATION在没有数据收发的情况下,进入省电模式,关闭RF模块。STATION按照AP的信标间隔(beacon interval)被周期性地唤醒,以此侦听AP的beacon帧。AP的beacon帧实质上是AP周期性发送的一个广播帧,其中,该广播帧中携带的信息可以包括但不限于:AP的名称(例如:服务器标识(Service Set Identifier,简称为SSID))、加密方式、AP上是否存在与该AP关联的每个STATION的缓存数据的标记(flag),例如:流量指示图(Traffic indication map,简称为TIM)中的flag值(相当于第一指示信息)。IEEE 802.11 power save mode is a standard WiFi low-power protocol. Under this agreement, WiFi STATION enters the power saving mode and turns off the RF module when there is no data transmission and reception. STATION is periodically woken up according to the AP's beacon interval (beacon interval) to listen to the AP's beacon frame. The AP's beacon frame is essentially a broadcast frame periodically sent by the AP, where the information carried in the broadcast frame may include, but is not limited to: the name of the AP (for example: Service Set Identifier (SSID for short)), Encryption method, whether there is a flag (flag) of each STATION cache data associated with the AP on the AP, for example: the flag value in the traffic indication map (TIM for short) (equivalent to the first indication information) .
以图1中的STATION1为例,STATION 1按照每间隔100ms唤醒STATION1上的WiFi组件。该WiFi组件在WiFi工作模式下通过WiFi AP与外界通讯设备(例如:智 能手机等移动设备控制端,云端服务器)进行通讯。STATION 1可以通过WiFi组件侦听来自于WiFi AP的beacon帧。该beacon帧中至少携带有第一指示信息,第一指示信息用于指示WiFi AP上是否存储有待发送至STATION 1的下行数据。STATION 1根据第一指示信息在WiFi工作模式与BLE工作模式之间进行切换。STATION 1上的BLE组件在BLE工作模式下与BLE控制器1之间进行点对点通讯。Taking STATION1 in Figure 1 as an example, STATION1 wakes up the WiFi components on STATION1 at an interval of 100ms. The WiFi component communicates with external communication devices (such as mobile device control terminals such as smart phones, cloud servers) through WiFi AP in WiFi working mode. STATION 1 can listen to beacon frames from WiFi AP through WiFi components. The beacon frame carries at least first indication information, and the first indication information is used to indicate whether downlink data to be sent to STATION 1 is stored on the WiFi AP. STATION 1 switches between the WiFi working mode and the BLE working mode according to the first instruction information. The BLE component on STATION 1 performs point-to-point communication with the BLE controller 1 in the BLE working mode.
图3是根据本公开其中一可选实施例的WiFi组件与BLE组件的时序控制示意图,如图3所示,通过IEEE 802.11 power save mode,STATION上的WiFi组件可以每间隔100ms被唤醒一次,利用STATION上设置的WiFi组件接收beacon帧,然后再立即进入休眠状态,以此达到WiFi组件节省功耗的目的。同时,由于AP上会对发往STATION的下行数据进行缓存,因此,发往STATION的下行数据并不会丢失。另外,通过利用IEEE 802.11 power save mode的技术原理,在关闭WiFi组件的RF模块的时机,切换到BLE组件工作模式,由此确保电子设备在90%以上的时间都处于BLE工作模式,而只在很短的时间范围内处于WiFi工作模式。Figure 3 is a schematic diagram of the timing control of the WiFi component and the BLE component according to one of the optional embodiments of the present disclosure. As shown in Figure 3, through the IEEE 802.11 power save mode, the WiFi component on the STATION can be awakened every 100 ms. The WiFi component set on the STATION receives the beacon frame, and then immediately enters the sleep state, so as to achieve the purpose of saving power consumption by the WiFi component. At the same time, since the AP will buffer the downlink data sent to STATION, the downlink data sent to STATION will not be lost. In addition, by using the technical principles of IEEE 802.11 power save mode, when the RF module of the WiFi component is turned off, it is switched to the BLE component working mode, thereby ensuring that the electronic device is in the BLE working mode more than 90% of the time, and only in It is in WiFi working mode within a short period of time.
可选地,在步骤S22中,根据第一指示信息在第一通讯模式与第二通讯模式之间进行切换可以包括以下执行步骤:Optionally, in step S22, switching between the first communication mode and the second communication mode according to the first instruction information may include the following execution steps:
步骤S220,根据第一指示信息确定第二通讯设备上未存储有待发送至第一通讯设备的下行数据;Step S220: Determine according to the first instruction information that there is no downlink data to be sent to the first communication device stored on the second communication device;
步骤S221,控制第一通讯组件进入休眠状态,并控制第二通讯组件进入唤醒状态,以使第一通讯设备处于第二通讯模式。Step S221, controlling the first communication component to enter the dormant state, and controlling the second communication component to enter the awake state, so that the first communication device is in the second communication mode.
由于将要被发送至STATION的下行数据均会预先缓存在AP中,因此,当AP中未存储有该STATION的缓存数据时,便可以在beacon帧中设置代表未存在该STATION的缓存数据的TIM标识。TIM采用位图(Bitmap)结构,用以表示AP上是否缓存有与该AP关联的每个STATION的下行数据。每个STATION通过beacon帧中的Tim字段来查看Bitmap中对应位置上的flag值来确定AP上是否缓存有对应的下行数据。Since the downlink data to be sent to the STATION will be cached in the AP in advance, when the AP does not store the cached data of the STATION, you can set the TIM flag in the beacon frame to indicate that there is no cached data for the STATION. . TIM adopts a bitmap (Bitmap) structure to indicate whether there is any downlink data of each STATION associated with the AP cached on the AP. Each STATION uses the Tim field in the beacon frame to check the flag value at the corresponding position in the Bitmap to determine whether the corresponding downlink data is buffered on the AP.
表1为采用TIM中Bitmap指示是否缓存有发往STATION的下行数据的可选示例,如表1所示:Table 1 is an optional example of using the Bitmap in the TIM to indicate whether there is downlink data sent to the STATION buffer, as shown in Table 1:
表1Table 1
STATION NO.STATION NO. Beacon Beacon BitmapBitmap
STATION 1STATION 1 TIM flag 1 TIM flag 1 00
STATION 2STATION 2 TIM flag 2TIM flag 2 11
STATION 3STATION 3 TIM flag 3TIM flag 3 11
STATION 4STATION 4 TIM flag 4TIM flag 4 00
……... ……... ……...
STATION n-1STATION n-1 TIM flag n-1TIM flag n-1 11
STATION nSTATION n TIM flag nTIM flag n 00
TIM中的Bitmap通常可以设置为M行×N列的矩阵(M和N为正整数)。每一位TIM flag分别对应不同的STATION。以表1为例,STATION 1对应beacon帧中Tim字段的TIM flag 1,STATION 2对应beacon帧中Tim字段的TIM flag 2,STATION3对应beacon帧中Tim字段的TIM flag 3…以此类推,直至STATION n对应beacon帧中Tim字段的TIM flag n。如果TIM flag的取值为1,则表示AP上缓存有该STATION对应的下行数据;如果TIM flag的取值为0,则表示AP上未缓存有该STATION对应的下行数据。当根据TIM flag的取值确定AP上未缓存有该STATION对应的下行数据时,控制WiFi组件进入休眠状态,并控制BLE组件进入唤醒状态,以使STATION处于BLE工作模式。例如:当根据TIM flag 1的取值0确定AP上未缓存有该STATION1对应的下行数据时,STATION 1将会控制WiFi组件进入休眠状态,并控制BLE组件进入唤醒状态,以使STATION 1处于BLE工作模式。The Bitmap in the TIM can usually be set to a matrix of M rows×N columns (M and N are positive integers). Each TIM flag corresponds to a different STATION. Taking Table 1 as an example, STATION 1 corresponds to the TIM flag 1 of the Tim field in the beacon frame, STATION 2 corresponds to the TIM flag 2 of the Tim field in the beacon frame, and STATION 3 corresponds to the TIM flag 3 of the Tim field in the beacon frame... and so on until STATION n corresponds to the TIM flag n of the Tim field in the beacon frame. If the value of the TIM flag is 1, it means that the downlink data corresponding to the STATION is buffered on the AP; if the value of the TIM flag is 0, it means that the downlink data corresponding to the STATION is not buffered on the AP. When it is determined according to the value of TIM flag that the downlink data corresponding to the STATION is not buffered on the AP, the WiFi component is controlled to enter the dormant state, and the BLE component is controlled to enter the awake state, so that the STATION is in the BLE working mode. For example: according to the value 0 of TIM flag 1, when it is determined that the downlink data corresponding to STATION1 is not cached on the AP, STATION 1 will control the WiFi component to enter the sleep state and control the BLE component to enter the wake-up state, so that STATION 1 is in BLE Operating mode.
可选地,在步骤S22中,根据第一指示信息在第一通讯模式与第二通讯模式之间进行切换可以包括以下执行步骤:Optionally, in step S22, switching between the first communication mode and the second communication mode according to the first instruction information may include the following execution steps:
步骤S222,根据第一指示信息确定第二通讯设备上存储有待发送至第一通讯设备的下行数据;Step S222: Determine, according to the first instruction information, that the second communication device stores downlink data to be sent to the first communication device;
步骤S223,控制第一通讯组件保持唤醒状态,并控制第二通讯组件进入休眠状态,以使第一通讯设备处于第一通讯模式。Step S223, controlling the first communication component to maintain the awake state, and controlling the second communication component to enter the sleep state, so that the first communication device is in the first communication mode.
仍然如表1所示,当根据TIM flag的取值确定AP上缓存有该STATION对应的下行数据时,控制WiFi组件保持唤醒状态,并控制BLE组件进入休眠状态,以使STATION处于WiFi工作模式。例如:当根据TIM flag 2的取值1确定AP上缓存有该STATION 2对应的下行数据时,STATION 2将会控制WiFi组件保持唤醒状态,并控制BLE组件进入休眠状态,以使STATION 2处于WiFi工作模式。Still as shown in Table 1, when it is determined that there is downlink data corresponding to the STATION cached on the AP according to the value of the TIM flag, the WiFi component is controlled to stay in the awake state, and the BLE component is controlled to enter the sleep state, so that the STATION is in the WiFi working mode. For example: according to the value 1 of TIM flag 2, when it is determined that the downlink data corresponding to the STATION 2 is cached on the AP, STATION 2 will control the WiFi component to stay awake and control the BLE component to enter the sleep state so that STATION 2 is in WiFi Operating mode.
可选地,在步骤S22,根据第一指示信息在第一通讯模式与第二通讯模式之间进行切换之后,还可以包括以下执行步骤:Optionally, in step S22, after switching between the first communication mode and the second communication mode according to the first instruction information, the following steps may be further included:
步骤S23,向第二通讯设备发送第一空数据帧,其中,第一空数据帧中携带有第 二指示信息,第二指示信息被标识为第一数值,第一数值用于指示第一通讯组件处于唤醒状态;Step S23: Send a first empty data frame to the second communication device, where the first empty data frame carries second indication information, the second indication information is identified as a first value, and the first value is used to indicate the first communication The component is in the awake state;
步骤S24,通过第一通讯组件接收来自于第二通讯设备的下行数据;Step S24, receiving downlink data from the second communication device through the first communication component;
步骤S25,根据下行数据执行对应的控制操作。Step S25: Perform corresponding control operations according to the downlink data.
空数据(Nulldata)帧负责将STATION的省电状态变化信息传输至AP。STA(相当于第二指示信息)是Nulldata帧中的一个字段,用于将STATION的省电状态变化通知给AP。表2为采用STA指示STATION的省电状态变化的可选示例,如表2所示:The Nulldata frame is responsible for transmitting the power saving status change information of STATION to the AP. STA (equivalent to the second indication information) is a field in the Nulldata frame, used to notify the AP of the power saving status change of STATION. Table 2 is an optional example of using STA to indicate the power saving state change of STATION, as shown in Table 2:
表2Table 2
STATION NO.STATION NO. Nulldata No.Nulldata No. STA STA
STATION 1STATION 1 Nulldata 1 Nulldata 1 0-表示工作0- means work
STATION 2STATION 2 Nulldata 2Nulldata 2 1-表示休眠1- means sleep
STATION 3STATION 3 Nulldata 3Nulldata 3 11
STATION 4STATION 4 Nulldata 4Nulldata 4 00
……... ……... ……...
STATION n-1STATION n-1 Nulldata n-1Nulldata n-1 11
STATION nSTATION n Nulldata nNulldata n 00
以STATION 1为例,首先,STATION 1向AP发送Nulldata 1,其中,该Nulldata1携带的STA字段的取值为0,表示STATION 1处于WiFi工作模式。其次,STATION1通过WiFi组件接收来自于AP的下行数据。然后STATION 1根据下行数据执行对应的控制操作。下面将结合多个应用场景对STATION 1根据下行数据执行对应的控制操作进行说明:Taking STATION 1 as an example, first, STATION 1 sends Nulldata 1 to the AP, where the value of the STA field carried by Nulldata 1 is 0, which means that STATION 1 is in WiFi working mode. Secondly, STATION1 receives downlink data from AP through WiFi component. Then STATION 1 performs corresponding control operations according to the downlink data. The following describes how STATION 1 performs corresponding control operations based on downlink data in combination with multiple application scenarios:
应用场景一、假设STATION 1为智能电灯,下行数据为通过云端服务器所设置的智能电灯需要在晚上6点准时自动开灯的控制信息,则STATION 1根据下行数据将会在晚上6点准时自动开灯。 Application scenario 1. Assuming that STATION 1 is a smart light, and the downstream data is the control information that the smart light set through the cloud server needs to automatically turn on at 6 pm, then STATION 1 will automatically turn on at 6 pm based on the downlink data light.
应用场景二、假设STATION 1为智能电灯,下行数据为通过其他智能家居设备(例如:智能防盗门)所侦测的用户开门进入室内,智能电灯需要立即自动开灯的控制信息,则STATION 1根据下行数据将会立即自动开灯为用户照明。Application Scenario 2: Assuming that STATION 1 is a smart electric light, the downstream data is the user opening the door and entering the room detected by other smart home devices (such as smart anti-theft door), and the smart electric light needs to automatically turn on the control information immediately, then STATION 1 is based on Downlink data will automatically turn on the lights immediately to illuminate the user.
应用场景三、假设STATION 1为智能电灯,下行数据为用户通过智能手机所设置的智能电灯的亮度调节需要进入阅读模式或影院模式的控制信息,则STATION 1根据下行数据将会按照阅读模式或影院模式调节灯光亮度。Application scenario 3. Assuming that STATION 1 is a smart light, the downstream data is the control information that the user needs to enter the reading mode or theater mode to adjust the brightness of the smart light set by the smart phone, then STATION 1 will follow the reading mode or theater according to the downstream data Mode adjusts the brightness of the light.
可选地,在步骤S23,向第二通讯设备发送第一空数据帧之后,还可以包括以下执行步骤:Optionally, in step S23, after sending the first null data frame to the second communication device, the following execution steps may be further included:
步骤S26,在确定下行数据接收完毕的情况下,控制第一通讯组件进入休眠状态,并控制第二通讯组件进入唤醒状态,以使第一通讯设备处于第二通讯模式;Step S26, when it is determined that the downlink data is received, control the first communication component to enter the dormant state, and control the second communication component to enter the wake-up state, so that the first communication device is in the second communication mode;
步骤S27,向第二通讯设备发送第二空数据帧,其中,第二空数据帧中携带有第二指示信息,第二指示信息被标识为第二数值,第二数值用于指示第一通讯组件处于休眠状态。Step S27: Send a second empty data frame to the second communication device, where the second empty data frame carries second indication information, the second indication information is identified as a second value, and the second value is used to indicate the first communication The component is sleeping.
以STATION2为例,在STATION2确定下行数据接收完毕的情况下,STATION2控制WiFi组件进入休眠状态,并控制BLE组件进入唤醒状态,以使STATION2处于BLE工作模式。然后,STATION 2向AP发送Nulldata 2,其中,该Nulldata 2携带的STA字段的取值为1,表示STATION 2处于BLE工作模式。Taking STATION2 as an example, when STATION2 determines that the downlink data has been received, STATION2 controls the WiFi component to enter the sleep state, and controls the BLE component to enter the wake-up state, so that STATION2 is in the BLE working mode. Then, STATION 2 sends Nulldata 2 to the AP, where the value of the STA field carried by Nulldata 2 is 1, which means that STATION 2 is in the BLE working mode.
可选地,上述方法还可以包括以下执行步骤:Optionally, the foregoing method may further include the following execution steps:
步骤S28,通过第二通讯组件侦听来自于第三通讯设备的广播帧,其中,广播帧中携带有控制指令;Step S28, listening to the broadcast frame from the third communication device through the second communication component, wherein the broadcast frame carries a control instruction;
步骤S29,根据控制指令执行对应的控制操作。Step S29: Perform a corresponding control operation according to the control instruction.
在WiFi组件保持连接的同时,STATION上的BLE组件在无需建立连接和同步的情况下,仍然可以侦听来自于BLE控制器的广播帧。该广播帧中携带有控制指令。STATION将会根据控制指令执行对应的控制操作。While the WiFi component remains connected, the BLE component on the STATION can still listen to the broadcast frame from the BLE controller without establishing a connection and synchronization. The broadcast frame carries a control command. STATION will execute the corresponding control operation according to the control instruction.
假设STATION为智能电灯,BLE控制器是与该智能电灯匹配的遥控器,则通过该遥控器可以向智能电灯发送开灯的控制指令,然后智能电灯将会根据控制指令执行对应的开灯操作。同理,还可以通过该遥控器可以向智能电灯发送关灯的控制指令,然后智能电灯将会根据控制指令执行对应的关灯操作。Assuming that the STATION is a smart light, and the BLE controller is a remote control that matches the smart light, the remote control can send a light-on control instruction to the smart light, and then the smart light will perform the corresponding light-on operation according to the control instruction. In the same way, the remote control can also be used to send a light-off control instruction to the smart light, and then the smart light will perform the corresponding light-off operation according to the control instruction.
可选地,在步骤S28中,通过第二通讯组件侦听广播帧可以包括以下执行步骤:Optionally, in step S28, listening to the broadcast frame through the second communication component may include the following execution steps:
步骤S281,通过第二通讯组件,经由预设通道侦听广播帧,其中,预设通道从多个备选通道中选取并由第一通讯设备与第三通讯设备预先协商确定。Step S281, the second communication component listens to the broadcast frame via the preset channel, wherein the preset channel is selected from a plurality of candidate channels and determined by the first communication device and the third communication device in advance through negotiation.
BLE组件的广播过程原本可能工作在多个不同的通道(channel),因此,为了提高BLE组件接收数据的成功率,可以将BLE组件的广播过程固定在其中任一channel。至于实际固定在哪个channel,则需要由每个STATION与对应的BLE控制器预先协商确定,以便每个STATION经由该固定channel侦听来自于对应BLE控制器的广播帧。The broadcast process of the BLE component may originally work in multiple different channels. Therefore, in order to improve the success rate of the BLE component receiving data, the broadcast process of the BLE component can be fixed in any of the channels. As for the actual fixed channel, it needs to be negotiated and determined by each STATION and the corresponding BLE controller in advance, so that each STATION listens to the broadcast frame from the corresponding BLE controller via the fixed channel.
可选地,信标帧中还携带有更新后的信标间隔,在步骤S21,通过第一通讯组件侦听信标帧之后,还可以包括以下执行步骤:Optionally, the beacon frame also carries the updated beacon interval. In step S21, after the beacon frame is intercepted by the first communication component, the following execution steps may be further included:
步骤S30,将预设信标间隔调整为更新后的信标间隔,并按照更新后的信标间隔再次唤醒第一通讯组件。Step S30: Adjust the preset beacon interval to the updated beacon interval, and wake up the first communication component again according to the updated beacon interval.
在通常情况下,AP按照beacon interval(例如:100ms)发送一次beacon帧。而该预设时长可以由用户进行自定义调整,得到更新后的信标间隔。然后,AP会在beacon帧中携带该更新后的信标间隔并将beacon帧发送至STATION,以使STATION按照更新后的信标间隔唤醒WiFi组件。Under normal circumstances, the AP sends a beacon frame once according to the beacon interval (for example, 100 ms). The preset duration can be customized by the user to obtain the updated beacon interval. Then, the AP will carry the updated beacon interval in the beacon frame and send the beacon frame to the STATION, so that the STATION wakes up the WiFi component according to the updated beacon interval.
根据本公开其中一实施例,还提供了一种广播帧的处理方法的实施例,需要说明的是,在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行,并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。According to one of the embodiments of the present disclosure, an embodiment of a method for processing broadcast frames is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be implemented in a computer system such as a set of computer-executable instructions. Execution, and although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than here.
在本实施例中提供了一种运行于上述BLE控制器的广播帧的处理方法,图4是根据本公开其中一实施例的广播帧的处理方法的流程图,如图4所示,该方法包括如下步骤:In this embodiment, a method for processing broadcast frames running on the aforementioned BLE controller is provided. FIG. 4 is a flowchart of a method for processing broadcast frames according to one of the embodiments of the present disclosure. As shown in FIG. 4, the method is Including the following steps:
步骤S40,确定第一通讯设备从第一通讯模式切换至第二通讯模式,其中,第一通讯设备在第一通讯模式下通过第二通讯设备与外界通讯设备进行通讯,第二通讯设备用于组建无线局域网,第一通讯设备在第二通讯模式下与第三通讯设备之间进行点对点通讯;Step S40: It is determined that the first communication device is switched from the first communication mode to the second communication mode, wherein the first communication device communicates with the external communication device through the second communication device in the first communication mode, and the second communication device is used for Establish a wireless local area network, and the first communication device performs point-to-point communication with the third communication device in the second communication mode;
步骤S41,响应作用于第三通讯设备的控制操作,确定待发送的控制指令;Step S41, in response to the control operation acting on the third communication device, determine the control instruction to be sent;
步骤S42,在预设时长内向第一通讯设备重复发送广播帧,其中,广播帧中携带有控制指令。Step S42, repeatedly sending a broadcast frame to the first communication device within a preset time period, wherein the broadcast frame carries a control instruction.
为了减少BLE组件的丢包概率,在BLE控制器端新增重发机制,由此确保在预设时长内能够多次重发BLE控制器的控制指令,则STATION接收到BLE控制指令的概率将会显著提高。针对BLE控制器的控制操作,既可以由物理按键组成的物理控制键盘来完成,也可以由触控显示屏上虚拟按键组成的虚拟控制键盘来完成,还可以由物理触控面板配合显示屏来完成。当BLE控制器侦测到用户在物理按键上执行按压操作,或者,在触控显示屏上执行的触控操作,或者,在触控面板上执行的触控操作时,确定待发送的BLE控制指令(例如:开灯指令)。然后,BLE控制器会在预设时长内将该BLE控制指令多次重复发送给STATION。In order to reduce the packet loss probability of BLE components, a retransmission mechanism is added to the BLE controller to ensure that the control commands of the BLE controller can be retransmitted multiple times within the preset time period. Then the probability of STATION receiving the BLE control commands will be Will be significantly improved. For the control operation of the BLE controller, it can be completed by a physical control keyboard composed of physical keys, or a virtual control keyboard composed of virtual keys on the touch screen, or a physical touch panel with the display screen. carry out. When the BLE controller detects that the user performs a pressing operation on a physical button, or a touch operation performed on the touch screen, or a touch operation performed on the touch panel, it determines the BLE control to be sent Command (for example: turn on the light command). Then, the BLE controller will repeatedly send the BLE control command to the STATION within a preset time period.
在一个可选实施例中,上述预设时长大于预设信标间隔。In an optional embodiment, the foregoing preset duration is greater than the preset beacon interval.
为了能够确保STATION成功接收到BLE控制器发送控制指令,可以控制持续重发时间大于预设信标间隔(例如:100ms)。当然,该预设时长也可以根据实际应用场景设置为小于或等于100ms。In order to ensure that the STATION successfully receives the control command sent by the BLE controller, the continuous retransmission time can be controlled to be longer than the preset beacon interval (for example: 100ms). Of course, the preset duration can also be set to be less than or equal to 100 ms according to actual application scenarios.
可选地,在步骤S42中,在预设时长内向第一通讯设备重复发送广播帧可以包括以下执行步骤:Optionally, in step S42, repeatedly sending a broadcast frame to the first communication device within a preset time period may include the following execution steps:
步骤S420,在预设时长内,经由预设通道向第一通讯设备重复发送广播帧,其中,预设通道从多个备选通道中选取并由第一通讯设备与第三通讯设备预先协商确定。Step S420, within a preset time period, repeatedly send broadcast frames to the first communication device via the preset channel, wherein the preset channel is selected from a plurality of candidate channels and determined by the first communication device and the third communication device in advance through negotiation .
BLE组件的广播过程原本可能工作在多个不同的channel,因此,为了提高BLE组件接收数据的成功率,可以将BLE组件的广播过程固定在其中任一channel。至于实际固定在哪个channel,则需要由每个STATION与对应的BLE控制器预先协商确定,以便每个STATION经由该固定channel侦听来自于对应BLE控制器的广播帧。The broadcast process of the BLE component may originally work in multiple different channels. Therefore, in order to improve the success rate of the BLE component receiving data, the broadcast process of the BLE component can be fixed in any of the channels. As for the actual fixed channel, it needs to be negotiated and determined by each STATION and the corresponding BLE controller in advance, so that each STATION listens to the broadcast frame from the corresponding BLE controller via the fixed channel.
在一个可选实施例中,BLE控制器在预设时长内,经由上述固定channel可以按照相等的时间间隔向对应的STATION重复发送广播帧。例如,当预设时长为100ms时,BLE控制器以10ms的时间间隔向对应的STATION重复发送10次广播帧。当然,BLE控制器也可以不按照相等的时间间隔向对应的STATION重复发送广播帧。例如,当预设时长为100ms时,BLE控制器分别在10ms、30ms、60ms、100ms向对应的STATION重复发送4次广播帧。In an optional embodiment, the BLE controller can repeatedly send broadcast frames to the corresponding STATION at equal time intervals via the above fixed channel within a preset time period. For example, when the preset duration is 100 ms, the BLE controller repeatedly sends the broadcast frame to the corresponding STATION 10 times at a time interval of 10 ms. Of course, the BLE controller may not repeatedly send broadcast frames to the corresponding STATION at an equal time interval. For example, when the preset duration is 100ms, the BLE controller repeatedly sends broadcast frames to the corresponding STATION 4 times at 10ms, 30ms, 60ms, and 100ms.
可选地,在步骤S42,预设时长内向第一通讯设备重复发送广播帧之后,还可以包括以下执行步骤:Optionally, in step S42, after repeatedly sending the broadcast frame to the first communication device within a preset time period, the following steps may be further included:
步骤S43,如果在预设时长内接收到来自于第一通讯设备的反馈消息,则在到达预设时长的结束时刻之前停止发送广播帧,其中,反馈消息用于表示第一通讯设备已成功执行控制指令。Step S43: If the feedback message from the first communication device is received within the preset time period, stop sending the broadcast frame before reaching the end of the preset time period, where the feedback message is used to indicate that the first communication device has successfully executed Control instruction.
为了使得第一通讯设备能够及时、准确地接收到广播帧中所携带的控制指令,第三通讯设备在预设时长内向第一通讯设备重复发送广播帧。为了能够有效地节省或降低第三通讯设备的功耗,可以在第一通讯设备上增设反馈机制。In order to enable the first communication device to receive the control instructions carried in the broadcast frame in a timely and accurate manner, the third communication device repeatedly sends the broadcast frame to the first communication device within a preset time period. In order to effectively save or reduce the power consumption of the third communication device, a feedback mechanism can be added to the first communication device.
在一个可选实施例中,反馈消息可以用于表示第一通讯设备已成功执行控制指令。如果第一通讯设备已经从第三通讯设备接收到控制指令并且第一通讯设备成功执行该控制指令,则第一通讯设备可以向第三通讯设备发送反馈消息,以便第三通讯设备能够确定第一通讯设备已成功执行控制指令。由此,第三通讯设备无需再重复向第一通讯设备广播帧,从而能够有效地节省或降低第三通讯设备的功耗。In an optional embodiment, the feedback message may be used to indicate that the first communication device has successfully executed the control instruction. If the first communication device has received the control instruction from the third communication device and the first communication device successfully executes the control instruction, the first communication device can send a feedback message to the third communication device so that the third communication device can determine the first The communication device has successfully executed the control command. Therefore, the third communication device does not need to repeatedly broadcast frames to the first communication device, thereby effectively saving or reducing the power consumption of the third communication device.
在一个可选实施例中,反馈消息还可以用于表示第一通讯设备未能成功执行控制指令。如果第一通讯设备已经从第三通讯设备接收到控制指令但是第一通讯设备未能成功执行该控制指令,则第一通讯设备仍然可以向第三通讯设备发送反馈消息,以便第三通讯设备能够确定第一通讯设备未能成功执行控制指令。由此,第三通讯设备可以有针对性地再重复向第一通讯设备广播帧。In an optional embodiment, the feedback message may also be used to indicate that the first communication device failed to successfully execute the control instruction. If the first communication device has received the control instruction from the third communication device but the first communication device fails to execute the control instruction successfully, the first communication device can still send a feedback message to the third communication device so that the third communication device can It is determined that the first communication device failed to successfully execute the control instruction. Therefore, the third communication device can repeatedly broadcast the frame to the first communication device in a targeted manner.
可选地,在步骤S42,预设时长内向第一通讯设备重复发送广播帧之后,还可以包括以下执行步骤:Optionally, in step S42, after repeatedly sending the broadcast frame to the first communication device within a preset time period, the following steps may be further included:
步骤S44,如果在预设时长的结束时刻到达时仍未接收到来自于第一通讯设备的反馈消息,则停止发送广播帧并进入休眠状态,其中,反馈消息用于表示第一通讯设备已成功执行控制指令。Step S44: If the feedback message from the first communication device is not received when the end time of the preset duration arrives, stop sending the broadcast frame and enter the sleep state, where the feedback message is used to indicate that the first communication device has succeeded Execute control instructions.
在一个可选实施例中,反馈消息可以用于表示第一通讯设备已成功执行控制指令。如果第三通讯设备在预设时长的结束时刻到达时仍未接收到来自于第一通讯设备的反馈消息,则第三通讯设备可以停止重复发送广播帧并进入休眠状态(即低功耗状态),从而能够有效地节省或降低第三通讯设备的功耗。In an optional embodiment, the feedback message may be used to indicate that the first communication device has successfully executed the control instruction. If the third communication device does not receive the feedback message from the first communication device when the end time of the preset duration arrives, the third communication device can stop repeatedly sending broadcast frames and enter the sleep state (ie, low power consumption state) Therefore, the power consumption of the third communication device can be effectively saved or reduced.
下面将结合图5所示的可选实施方式对通讯模式的切换系统的整体工作流程做进一步地详细描述。图5是根据本公开其中一可选实施例的通讯模式的切换系统的工作流程图。如图5所示,该流程可以包括以下处理步骤:The overall work flow of the communication mode switching system will be described in further detail below in conjunction with the optional implementation shown in FIG. 5. Fig. 5 is a working flow chart of a communication mode switching system according to an alternative embodiment of the present disclosure. As shown in Figure 5, the process may include the following processing steps:
步骤S502,WiFi AP向STATION发送beacon帧,其中,该beacon帧中携带有信标间隔、TIM字段、SSID字段。TIM字段中与该STATION对应的TIM flag的取值为0,表示STATION进入BLE工作模式。Step S502: The WiFi AP sends a beacon frame to the STATION, where the beacon frame carries a beacon interval, a TIM field, and an SSID field. The value of the TIM flag corresponding to the STATION in the TIM field is 0, indicating that the STATION enters the BLE working mode.
步骤S504,STATION接收来自于BLE控制器的开灯控制指令。Step S504, STATION receives a light-on control instruction from the BLE controller.
步骤S506,WiFi AP向STATION发送beacon帧,其中,该beacon帧中携带有信标间隔、TIM字段、SSID字段。TIM字段中与该STATION对应的TIM flag的取值为1,表示STATION进入WiFi工作模式。Step S506: The WiFi AP sends a beacon frame to the STATION, where the beacon frame carries a beacon interval, a TIM field, and an SSID field. The value of the TIM flag corresponding to the STATION in the TIM field is 1, indicating that the STATION enters the WiFi working mode.
步骤S508,STATION向WiFi AP发送Nulldata帧,其中,该Nulldata帧中携带有STA字段。STA字段的属性值为0,将STATION进入WiFi工作模式通知给WiFi AP,以使WiFi AP将WiFi AP中存储的与STATION关联的内容发送至STATION。Step S508: STATION sends a Nulldata frame to the WiFi AP, where the Nulldata frame carries an STA field. The attribute value of the STA field is 0, and the WiFi AP is notified that STATION enters the WiFi working mode, so that the WiFi AP sends the content associated with STATION stored in the WiFi AP to STATION.
步骤S510,WiFi AP将WiFi AP中存储的与STATION关联的内容发送至STATION。In step S510, the WiFi AP sends the content associated with the STATION stored in the WiFi AP to the STATION.
步骤S512,WiFi AP将WiFi AP中存储的与STATION关联的内容清空。Step S512: The WiFi AP clears the content associated with the STATION stored in the WiFi AP.
步骤S514,STATION向WiFi AP发送Nulldata帧,其中,该Nulldata帧中携带有 STA字段。STA字段的属性值为1,将STATION进入BLE工作模式通知给WiFi AP。Step S514: STATION sends a Nulldata frame to the WiFi AP, where the Nulldata frame carries an STA field. The attribute value of the STA field is 1, and the WiFi AP is notified that STATION enters the BLE working mode.
步骤S516,WiFi AP向STATION发送beacon帧,其中,该beacon帧中携带有信标间隔、TIM字段、SSID字段。TIM字段中与该STATION对应的TIM flag的取值为0,表示STATION进入BLE工作模式。Step S516: The WiFi AP sends a beacon frame to the STATION, where the beacon frame carries a beacon interval, a TIM field, and an SSID field. The value of the TIM flag corresponding to the STATION in the TIM field is 0, indicating that the STATION enters the BLE working mode.
步骤S518,STATION接收来自于BLE控制器的其他控制指令(例如:调节灯光亮度、关灯)。In step S518, STATION receives other control instructions from the BLE controller (for example: adjusting the brightness of the light, turning off the light).
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is Better implementation. Based on this understanding, the technical solution of the present disclosure essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the method described in each embodiment of the present disclosure.
在本实施例中还提供了一种通讯模式的切换装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a communication mode switching device is also provided. The device is used to implement the above-mentioned embodiments and preferred implementations, and those that have been described will not be repeated. As used below, the term "module" can implement a combination of software and/or hardware with predetermined functions. Although the devices described in the following embodiments are preferably implemented by software, hardware or a combination of software and hardware is also possible and conceived.
图6是根据本公开其中一实施例的通讯模式的切换装置的结构框图,如图6所示,该装置包括:唤醒模块100,设置为按照预设信标间隔唤醒第一通讯设备上的第一通讯组件,其中,第一通讯组件在第一通讯模式下通过第二通讯设备与外界通讯设备进行通讯,第二通讯设备用于组建无线局域网;侦听模块102,设置为通过第一通讯组件侦听来自于第二通讯设备的信标帧,其中,信标帧中至少携带有第一指示信息,第一指示信息用于指示第二通讯设备上是否存储有待发送至第一通讯设备的下行数据;切换模块104,设置为根据第一指示信息在第一通讯模式与第二通讯模式之间进行切换,其中,第一通讯设备上的第二通讯组件在第二通讯模式下与第三通讯设备之间进行点对点通讯。Fig. 6 is a structural block diagram of a communication mode switching device according to one of the embodiments of the present disclosure. As shown in Fig. 6, the device includes: a wake-up module 100 configured to wake up the first communication device at a preset beacon interval A communication component, wherein the first communication component communicates with an external communication device through a second communication device in the first communication mode, and the second communication device is used to establish a wireless local area network; the listening module 102 is configured to pass through the first communication component Listen to the beacon frame from the second communication device, where the beacon frame carries at least first indication information, and the first indication information is used to indicate whether the second communication device stores a downlink to be sent to the first communication device Data; the switching module 104 is configured to switch between the first communication mode and the second communication mode according to the first instruction information, wherein the second communication component on the first communication device communicates with the third communication mode in the second communication mode Point-to-point communication between devices.
可选地,切换模块104包括:第一确定单元(图中未示出),设置为根据第一指示信息确定第二通讯设备上未存储有待发送至第一通讯设备的下行数据;第一控制单元(图中未示出),设置为控制第一通讯组件进入休眠状态,并控制第二通讯组件进入唤醒状态,以使第一通讯设备处于第二通讯模式。Optionally, the switching module 104 includes: a first determining unit (not shown in the figure), configured to determine, according to the first indication information, that there is no downlink data to be sent to the first communication device stored on the second communication device; The unit (not shown in the figure) is set to control the first communication component to enter the dormant state and control the second communication component to enter the awake state, so that the first communication device is in the second communication mode.
可选地,切换模块104包括:第二确定单元(图中未示出),设置为根据第一指示信息确定第二通讯设备上存储有待发送至第一通讯设备的下行数据;第二控制单元(图中未示出),设置为控制第一通讯组件保持唤醒状态,并控制第二通讯组件进入休眠状态,以使第一通讯设备处于第一通讯模式。Optionally, the switching module 104 includes: a second determining unit (not shown in the figure), configured to determine, according to the first indication information, that the second communication device stores downlink data to be sent to the first communication device; a second control unit (Not shown in the figure), it is set to control the first communication component to stay in the awake state and control the second communication component to enter the dormant state, so that the first communication device is in the first communication mode.
可选地,图7是根据本公开其中一可选实施例的通讯模式的切换装置的结构框图,如图7所示,该装置除包括图6所示的所有模块外,上述装置还包括:第一发送模块106,设置为向第二通讯设备发送第一空数据帧,其中,第一空数据帧中携带有第二指示信息,第二指示信息被标识为第一数值,第一数值用于指示第一通讯组件处于唤醒状态;接收模块108,设置为通过第一通讯组件接收来自于第二通讯设备的下行数据;执行模块110,设置为根据下行数据执行对应的控制操作。Optionally, FIG. 7 is a structural block diagram of a communication mode switching device according to one of the optional embodiments of the present disclosure. As shown in FIG. 7, the device includes all the modules shown in FIG. 6, and the above-mentioned device also includes: The first sending module 106 is configured to send a first empty data frame to the second communication device, wherein the first empty data frame carries second indication information, the second indication information is identified as a first value, and the first value is used for To indicate that the first communication component is in an awake state; the receiving module 108 is configured to receive downlink data from the second communication device through the first communication component; the execution module 110 is configured to perform corresponding control operations according to the downlink data.
可选地,如图7所示,上述装置还包括:控制模块112,设置为在确定下行数据接收完毕的情况下,控制第一通讯组件进入休眠状态,并控制第二通讯组件进入唤醒状态,以使第一通讯设备处于第二通讯模式;第二发送模块114,设置为向第二通讯设备发送第二空数据帧,其中,第二空数据帧中携带有第二指示信息,第二指示信息被标识为第二数值,第二数值用于指示第一通讯组件处于休眠状态。Optionally, as shown in FIG. 7, the above-mentioned device further includes: a control module 112, which is configured to control the first communication component to enter the sleep state and control the second communication component to enter the wake-up state when it is determined that the downlink data reception is completed, So that the first communication device is in the second communication mode; the second sending module 114 is configured to send a second empty data frame to the second communication device, wherein the second empty data frame carries second indication information, and the second indication The information is identified as a second value, and the second value is used to indicate that the first communication component is in a sleep state.
可选地,侦听模块102,还设置为通过第二通讯组件侦听来自于第三通讯设备的广播帧,其中,广播帧中携带有控制指令;根据控制指令执行对应的控制操作。Optionally, the listening module 102 is further configured to listen to the broadcast frame from the third communication device through the second communication component, wherein the broadcast frame carries a control instruction; and executes the corresponding control operation according to the control instruction.
可选地,侦听模块102,设置为通过第二通讯组件,经由预设通道侦听广播帧,其中,预设通道从多个备选通道中选取并由第一通讯设备与第三通讯设备预先协商确定。Optionally, the listening module 102 is configured to listen to broadcast frames via a preset channel through the second communication component, wherein the preset channel is selected from a plurality of candidate channels and used by the first communication device and the third communication device Determined by negotiation in advance.
可选地,信标帧中还携带有更新后的信标间隔,如图7所示,上述装置还包括:处理模块116,设置为将预设信标间隔调整为更新后的信标间隔,并按照更新后的信标间隔再次唤醒第一通讯组件。Optionally, the beacon frame also carries an updated beacon interval. As shown in FIG. 7, the above-mentioned apparatus further includes: a processing module 116, configured to adjust the preset beacon interval to the updated beacon interval, And wake up the first communication component again according to the updated beacon interval.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following manner, but not limited to this: the above modules are all located in the same processor; or, the above modules are combined in any combination The forms are located in different processors.
在本实施例中还提供了一种广播帧的处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a device for processing broadcast frames is also provided, which is used to implement the above-mentioned embodiments and preferred implementations, and those that have been described will not be repeated. As used below, the term "module" can implement a combination of software and/or hardware with predetermined functions. Although the devices described in the following embodiments are preferably implemented by software, hardware or a combination of software and hardware is also possible and conceived.
图8是根据本公开其中一实施例的广播帧的处理装置的结构框图,如图8所示,该装置包括:确定模块200,设置为确定第一通讯设备从第一通讯模式切换至第二通讯模式,其中,第一通讯设备在第一通讯模式下通过第二通讯设备与外界通讯设备进行通讯,第二通讯设备用于组建无线局域网,第一通讯设备在第二通讯模式下与第三通讯设备之间进行点对点通讯,以及响应作用于第三通讯设备的控制操作,确定待发送的控制指令;处理模块202,设置为在预设时长内向第一通讯设备重复发送广播帧,其中,广播帧中携带有控制指令。Fig. 8 is a structural block diagram of an apparatus for processing broadcast frames according to one of the embodiments of the present disclosure. As shown in Fig. 8, the apparatus includes: a determining module 200 configured to determine that the first communication device switches from the first communication mode to the second communication mode. Communication mode, wherein the first communication device communicates with the external communication device through the second communication device in the first communication mode, the second communication device is used to establish a wireless local area network, and the first communication device communicates with the third communication device in the second communication mode. The communication devices perform point-to-point communication, and in response to a control operation acting on the third communication device, determine the control instruction to be sent; the processing module 202 is configured to repeatedly send broadcast frames to the first communication device within a preset time period, where the broadcast Control instructions are carried in the frame.
可选地,预设时长大于预设信标间隔。Optionally, the preset duration is greater than the preset beacon interval.
可选地,处理模块202,设置为在预设时长内,经由预设通道向第一通讯设备重复发送广播帧,其中,预设通道从多个备选通道中选取并由第一通讯设备与第三通讯设备预先协商确定。Optionally, the processing module 202 is configured to repeatedly send broadcast frames to the first communication device via a preset channel within a preset time period, wherein the preset channel is selected from a plurality of candidate channels and the first communication device and The third communication device is negotiated and determined in advance.
可选地,处理模块202,还设置为如果在预设时长内接收到来自于第一通讯设备的反馈消息,则在到达预设时长的结束时刻之前停止发送广播帧,其中,反馈消息用于表示第一通讯设备已成功执行控制指令。Optionally, the processing module 202 is further configured to stop sending the broadcast frame before reaching the end time of the preset duration if the feedback message from the first communication device is received within the preset duration, wherein the feedback message is used for Indicates that the first communication device has successfully executed the control command.
可选地,处理模块202,还设置为如果在预设时长的结束时刻到达时仍未接收到来自于第一通讯设备的反馈消息,则停止发送广播帧并进入休眠状态,其中,反馈消息用于表示第一通讯设备已成功执行控制指令。Optionally, the processing module 202 is further configured to stop sending the broadcast frame and enter a sleep state if the feedback message from the first communication device is not received when the end time of the preset duration arrives, wherein the feedback message is used Yu indicates that the first communication device has successfully executed the control command.
可选地,处理模块202,还设置为在预设时长内,经由预设通道按照相等的时间间隔向第一通讯设备重复发送广播帧。Optionally, the processing module 202 is further configured to repeatedly send broadcast frames to the first communication device at equal time intervals via a preset channel within a preset time period.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。It should be noted that each of the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following manner, but not limited to this: the above modules are all located in the same processor; or, the above modules are combined in any combination The forms are located in different processors.
本公开的实施例还提供了一种存储介质,该存储介质中存储有计算机程序,其中,该计算机程序被设置为运行时执行上述任一项方法实施例中的步骤。The embodiment of the present disclosure also provides a storage medium in which a computer program is stored, wherein the computer program is configured to execute the steps in any of the foregoing method embodiments when running.
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的计算机程序:Optionally, in this embodiment, the foregoing storage medium may be configured to store a computer program for executing the following steps:
S1,按照预设信标间隔唤醒第一通讯设备上的第一通讯组件,其中,第一通讯组件在第一通讯模式下通过第二通讯设备与外界通讯设备进行通讯,第二通讯设备用于组建无线局域网;S1. Wake up the first communication component on the first communication device according to the preset beacon interval, wherein the first communication component communicates with the external communication device through the second communication device in the first communication mode, and the second communication device is used for Establish a wireless local area network;
S2,通过第一通讯组件侦听来自于第二通讯设备的信标帧,其中,信标帧中至少携带有第一指示信息,第一指示信息用于指示第二通讯设备上是否存储有待发送至第一通讯设备的下行数据;S2: Use the first communication component to listen to a beacon frame from the second communication device, where the beacon frame carries at least first indication information, and the first indication information is used to indicate whether the second communication device is stored to be sent Downlink data to the first communication device;
S3,根据第一指示信息在第一通讯模式与第二通讯模式之间进行切换,其中,第一通讯设备上的第二通讯组件在第二通讯模式下与第三通讯设备之间进行点对点通讯。S3, switching between the first communication mode and the second communication mode according to the first instruction information, wherein the second communication component on the first communication device performs point-to-point communication with the third communication device in the second communication mode .
可选地,存储介质还被设置为存储用于执行以下步骤的计算机程序:Optionally, the storage medium is also configured to store a computer program for executing the following steps:
S1,确定第一通讯设备从第一通讯模式切换至第二通讯模式,其中,第一通讯设备在第一通讯模式下通过第二通讯设备与外界通讯设备进行通讯,第二通讯设备用于组建无线局域网,第一通讯设备在第二通讯模式下与第三通讯设备之间进行点对点通讯;S1, determining that the first communication device switches from the first communication mode to the second communication mode, wherein the first communication device communicates with the external communication device through the second communication device in the first communication mode, and the second communication device is used to establish In a wireless local area network, the first communication device performs point-to-point communication with the third communication device in the second communication mode;
S2,响应作用于第三通讯设备的控制操作,确定待发送的控制指令;S2, in response to the control operation acting on the third communication device, determine the control instruction to be sent;
S3,在预设时长内向第一通讯设备重复发送广播帧,其中,广播帧中携带有控制指令。S3: Repeatedly sending a broadcast frame to the first communication device within a preset time period, where the broadcast frame carries a control instruction.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储计算机程序的介质。Optionally, in this embodiment, the foregoing storage medium may include, but is not limited to: U disk, Read-Only Memory (Read-Only Memory, ROM for short), Random Access Memory (Random Access Memory, RAM for short), Various media that can store computer programs, such as mobile hard disks, magnetic disks, or optical disks.
本公开的实施例还提供了一种处理器,该处理器被设置为运行计算机程序以执行上述任一项方法实施例中的步骤。The embodiment of the present disclosure also provides a processor, which is configured to run a computer program to execute the steps in any one of the foregoing method embodiments.
可选地,在本实施例中,上述处理器可以被设置为通过计算机程序执行以下步骤:Optionally, in this embodiment, the foregoing processor may be configured to execute the following steps through a computer program:
S1,按照预设信标间隔唤醒第一通讯设备上的第一通讯组件,其中,第一通讯组件在第一通讯模式下通过第二通讯设备与外界通讯设备进行通讯,第二通讯设备用于组建无线局域网;S1. Wake up the first communication component on the first communication device according to the preset beacon interval, wherein the first communication component communicates with the external communication device through the second communication device in the first communication mode, and the second communication device is used for Establish a wireless local area network;
S2,通过第一通讯组件侦听来自于第二通讯设备的信标帧,其中,信标帧中至少携带有第一指示信息,第一指示信息用于指示第二通讯设备上是否存储有待发送至第一通讯设备的下行数据;S2: Use the first communication component to listen to a beacon frame from the second communication device, where the beacon frame carries at least first indication information, and the first indication information is used to indicate whether the second communication device is stored to be sent Downlink data to the first communication device;
S3,根据第一指示信息在第一通讯模式与第二通讯模式之间进行切换,其中,第一通讯设备上的第二通讯组件在第二通讯模式下与第三通讯设备之间进行点对点通讯。S3, switching between the first communication mode and the second communication mode according to the first instruction information, wherein the second communication component on the first communication device performs point-to-point communication with the third communication device in the second communication mode .
可选地,在本实施例中,上述处理器还可以被设置为通过计算机程序执行以下步 骤:Optionally, in this embodiment, the foregoing processor may also be configured to execute the following steps through a computer program:
S1,确定第一通讯设备从第一通讯模式切换至第二通讯模式,其中,第一通讯设备在第一通讯模式下通过第二通讯设备与外界通讯设备进行通讯,第二通讯设备用于组建无线局域网,第一通讯设备在第二通讯模式下与第三通讯设备之间进行点对点通讯;S1, determining that the first communication device switches from the first communication mode to the second communication mode, wherein the first communication device communicates with the external communication device through the second communication device in the first communication mode, and the second communication device is used to establish In a wireless local area network, the first communication device performs point-to-point communication with the third communication device in the second communication mode;
S2,响应作用于第三通讯设备的控制操作,确定待发送的控制指令;S2, in response to the control operation acting on the third communication device, determine the control instruction to be sent;
S3,在预设时长内向第一通讯设备重复发送广播帧,其中,广播帧中携带有控制指令。S3: Repeatedly sending a broadcast frame to the first communication device within a preset time period, where the broadcast frame carries a control instruction.
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。Optionally, for specific examples in this embodiment, reference may be made to the examples described in the above-mentioned embodiments and optional implementation manners, and details are not described herein again in this embodiment.
上述本公开实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above-mentioned embodiments of the present disclosure are only for description, and do not represent the superiority of the embodiments.
在本公开的上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments of the present disclosure, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
在本申请所提供的几个实施例中,应该理解到,所揭露的技术内容,可通过其它的方式实现。其中,以上所描述的装置实施例仅仅是示意性的,例如所述单元的划分,可以为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元或模块的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the units may be a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components may be combined or may be Integrate into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of units or modules, and may be in electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本公开各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present disclosure may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本公开的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的 形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可为个人计算机、服务器或者网络设备等)执行本公开各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present disclosure essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present disclosure. The aforementioned storage media include: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program code .
以上所述仅是本公开的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本公开原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本公开的保护范围。The above are only the preferred embodiments of the present disclosure. It should be pointed out that for those of ordinary skill in the art, without departing from the principles of the present disclosure, several improvements and modifications can be made, and these improvements and modifications are also Should be regarded as the protection scope of the present disclosure.

Claims (12)

  1. 一种通讯模式的切换方法,包括:A method for switching communication modes, including:
    按照预设信标间隔唤醒第一通讯设备上的第一通讯组件,其中,所述第一通讯组件在第一通讯模式下通过第二通讯设备与外界通讯设备进行通讯,所述第二通讯设备用于组建无线局域网;Wake up the first communication component on the first communication device according to the preset beacon interval, wherein the first communication component communicates with the external communication device through the second communication device in the first communication mode, and the second communication device Used to build a wireless local area network;
    通过所述第一通讯组件侦听来自于所述第二通讯设备的信标帧,其中,所述信标帧中至少携带有第一指示信息,所述第一指示信息用于指示所述第二通讯设备上是否存储有待发送至所述第一通讯设备的下行数据;The first communication component listens to a beacon frame from the second communication device, wherein the beacon frame carries at least first indication information, and the first indication information is used to indicate the first 2. Whether downlink data to be sent to the first communication device is stored on the communication device;
    根据所述第一指示信息在所述第一通讯模式与第二通讯模式之间进行切换,其中,所述第一通讯设备上的第二通讯组件在所述第二通讯模式下与第三通讯设备之间进行点对点通讯。Switching between the first communication mode and the second communication mode according to the first instruction information, wherein the second communication component on the first communication device communicates with the third communication mode in the second communication mode Point-to-point communication between devices.
  2. 根据权利要求1所述的方法,其中,根据所述第一指示信息在所述第一通讯模式与所述第二通讯模式之间进行切换包括:The method according to claim 1, wherein switching between the first communication mode and the second communication mode according to the first instruction information comprises:
    根据所述第一指示信息确定所述第二通讯设备上未存储有待发送至所述第一通讯设备的下行数据;Determining, according to the first instruction information, that no downlink data to be sent to the first communication device is stored on the second communication device;
    控制所述第一通讯组件进入休眠状态,并控制所述第二通讯组件进入唤醒状态,以使所述第一通讯设备处于所述第二通讯模式。Control the first communication component to enter a sleep state, and control the second communication component to enter an awake state, so that the first communication device is in the second communication mode.
  3. 根据权利要求1所述的方法,其中,根据所述第一指示信息在所述第一通讯模式与所述第二通讯模式之间进行切换包括:The method according to claim 1, wherein switching between the first communication mode and the second communication mode according to the first instruction information comprises:
    根据所述第一指示信息确定所述第二通讯设备上存储有待发送至所述第一通讯设备的下行数据;Determining, according to the first instruction information, that the second communication device stores downlink data to be sent to the first communication device;
    控制所述第一通讯组件保持唤醒状态,并控制所述第二通讯组件进入休眠状态,以使所述第一通讯设备处于所述第一通讯模式。Control the first communication component to maintain the awake state, and control the second communication component to enter the dormant state, so that the first communication device is in the first communication mode.
  4. 根据权利要求3所述的方法,其中,在根据所述第一指示信息在所述第一通讯模式与所述第二通讯模式之间进行切换之后,还包括:The method according to claim 3, wherein after switching between the first communication mode and the second communication mode according to the first instruction information, the method further comprises:
    向所述第二通讯设备发送第一空数据帧,其中,所述第一空数据帧中携带有第二指示信息,所述第二指示信息被标识为第一数值,所述第一数值用于指示所述第一通讯组件处于所述唤醒状态;Send a first empty data frame to the second communication device, wherein the first empty data frame carries second indication information, the second indication information is identified as a first value, and the first value is used Indicating that the first communication component is in the awake state;
    通过所述第一通讯组件接收来自于所述第二通讯设备的所述下行数据;Receiving the downlink data from the second communication device through the first communication component;
    根据所述下行数据执行对应的控制操作。Perform corresponding control operations according to the downlink data.
  5. 根据权利要求4所述的方法,其中,在向所述第二通讯设备发送所述第一空数据帧之后,还包括:The method according to claim 4, wherein after sending the first null data frame to the second communication device, the method further comprises:
    在确定所述下行数据接收完毕的情况下,控制所述第一通讯组件进入休眠状态,并控制所述第二通讯组件进入唤醒状态,以使所述第一通讯设备处于所述第二通讯模式;When it is determined that the downlink data is received, the first communication component is controlled to enter the dormant state, and the second communication component is controlled to enter the awake state, so that the first communication device is in the second communication mode ;
    向所述第二通讯设备发送第二空数据帧,其中,所述第二空数据帧中携带有所述第二指示信息,所述第二指示信息被标识为第二数值,所述第二数值用于指示所述第一通讯组件处于所述休眠状态。Send a second empty data frame to the second communication device, where the second empty data frame carries the second indication information, the second indication information is identified as a second value, and the second The numerical value is used to indicate that the first communication component is in the sleep state.
  6. 根据权利要求2所述的方法,其中,所述方法还包括:The method according to claim 2, wherein the method further comprises:
    通过所述第二通讯组件侦听来自于所述第三通讯设备的广播帧,其中,所述广播帧中携带有控制指令;Listening to the broadcast frame from the third communication device through the second communication component, wherein the broadcast frame carries a control instruction;
    根据所述控制指令执行对应的控制操作。Perform corresponding control operations according to the control instructions.
  7. 根据权利要求6所述的方法,其中,通过所述第二通讯组件侦听所述广播帧包括:The method according to claim 6, wherein listening to the broadcast frame through the second communication component comprises:
    通过所述第二通讯组件,经由预设通道侦听所述广播帧,其中,所述预设通道从多个备选通道中选取并由所述第一通讯设备与所述第三通讯设备预先协商确定。Through the second communication component, the broadcast frame is listened to via a preset channel, wherein the preset channel is selected from a plurality of candidate channels and pre-defined by the first communication device and the third communication device Determined by negotiation.
  8. 根据权利要求1至7中任一项所述的方法,其中,所述信标帧中还携带有更新后的信标间隔,在通过所述第一通讯组件侦听所述信标帧之后,还包括:The method according to any one of claims 1 to 7, wherein the beacon frame also carries an updated beacon interval, and after listening to the beacon frame through the first communication component, Also includes:
    将所述预设信标间隔调整为所述更新后的信标间隔,并按照所述更新后的信标间隔再次唤醒所述第一通讯组件。Adjust the preset beacon interval to the updated beacon interval, and wake up the first communication component again according to the updated beacon interval.
  9. 一种通讯模式的切换装置,包括:A communication mode switching device, including:
    唤醒模块,设置为按照预设信标间隔唤醒第一通讯设备上的第一通讯组件,其中,所述第一通讯组件在第一通讯模式下通过第二通讯设备与外界通讯设备进行通讯,所述第二通讯设备用于组建无线局域网;The wake-up module is set to wake up the first communication component on the first communication device according to the preset beacon interval, wherein the first communication component communicates with the external communication device through the second communication device in the first communication mode, so The second communication device is used to establish a wireless local area network;
    侦听模块,设置为通过所述第一通讯组件侦听来自于所述第二通讯设备的信标帧,其中,所述信标帧中至少携带有第一指示信息,所述第一指示信息用于指示所述第二通讯设备上是否存储有待发送至所述第一通讯设备的下行数据;The listening module is configured to listen to a beacon frame from the second communication device through the first communication component, wherein the beacon frame carries at least first indication information, and the first indication information Used to indicate whether downlink data to be sent to the first communication device is stored on the second communication device;
    切换模块,设置为根据所述第一指示信息在所述第一通讯模式与第二通讯模式之间进行切换,其中,所述第一通讯设备上的第二通讯组件在所述第二通讯模式下与第三通讯设备之间进行点对点通讯。The switching module is configured to switch between the first communication mode and the second communication mode according to the first instruction information, wherein the second communication component on the first communication device is in the second communication mode Perform point-to-point communication with the third communication device.
  10. 一种存储介质,所述存储介质包括存储的程序,其中,在所述程序运行时控制所述存储介质所在设备执行权利要求1至8中任意一项所述的通讯模式的切换方法。A storage medium, the storage medium including a stored program, wherein the device where the storage medium is located is controlled to execute the communication mode switching method according to any one of claims 1 to 8 when the program is running.
  11. 一种处理器,所述处理器用于运行程序,其中,所述程序运行时执行权利要求1至8中任意一项所述的通讯模式的切换方法。A processor for running a program, wherein the method for switching communication modes according to any one of claims 1 to 8 is executed when the program is running.
  12. 一种通讯模式的切换系统,包括:第一通讯设备、第二通讯设备以及第三通讯设备,其中,所述第一通讯设备包括权利要求9所述的通讯模式的切换装置。A communication mode switching system, comprising: a first communication device, a second communication device, and a third communication device, wherein the first communication device includes the communication mode switching device according to claim 9.
PCT/CN2019/089987 2019-05-29 2019-06-04 Communication mode switching method and device, storage medium, processor, and system WO2020237703A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910460101.X 2019-05-29
CN201910460101.XA CN110191449B (en) 2019-05-29 2019-05-29 Communication mode switching method, device, storage medium, processor and system

Publications (1)

Publication Number Publication Date
WO2020237703A1 true WO2020237703A1 (en) 2020-12-03

Family

ID=67718763

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/089987 WO2020237703A1 (en) 2019-05-29 2019-06-04 Communication mode switching method and device, storage medium, processor, and system

Country Status (2)

Country Link
CN (1) CN110191449B (en)
WO (1) WO2020237703A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113811018A (en) * 2021-09-10 2021-12-17 广东博智林机器人有限公司 Mesh network communication method and device, electronic equipment and storage medium
CN114826796A (en) * 2022-06-29 2022-07-29 京东方艺云(杭州)科技有限公司 Power supply switching circuit of dual-communication module
CN115529579A (en) * 2022-04-12 2022-12-27 荣耀终端有限公司 Device discovery method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115567972A (en) * 2020-03-13 2023-01-03 华为技术有限公司 Method and device for determining data caching condition
CN114640978A (en) * 2020-12-16 2022-06-17 华为技术有限公司 Heartbeat synchronization method, electronic equipment and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581909A (en) * 2010-08-27 2015-04-29 联发科技股份有限公司 Apparatuses for coordination between plurality of wireless communication modules and wireless communication device
US20180007634A1 (en) * 2016-06-29 2018-01-04 Silicon Laboratories Inc. Systems And Methods For Switched Protocol Wireless Connection
CN108901077A (en) * 2018-08-14 2018-11-27 深圳创维数字技术有限公司 Antenna accounting setting method, device, user equipment and storage medium
CN109152057A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Timeslice distribution method, device and electronic equipment
CN109526063A (en) * 2018-12-28 2019-03-26 Oppo广东移动通信有限公司 Communicating control method, electronic equipment and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8184566B2 (en) * 2009-06-05 2012-05-22 Mediatek Inc. Systems for wireless local area network (WLAN) transmission and for coexistence of WLAN and another type of wireless transmission and methods thereof
CN107801222B (en) * 2016-09-06 2022-05-13 中兴通讯股份有限公司 Bluetooth and WiFi switching method and system, client and wireless access point equipment
CN107770881A (en) * 2017-10-27 2018-03-06 三星(中国)半导体有限公司 Transmit the method and device of data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581909A (en) * 2010-08-27 2015-04-29 联发科技股份有限公司 Apparatuses for coordination between plurality of wireless communication modules and wireless communication device
US20180007634A1 (en) * 2016-06-29 2018-01-04 Silicon Laboratories Inc. Systems And Methods For Switched Protocol Wireless Connection
CN108901077A (en) * 2018-08-14 2018-11-27 深圳创维数字技术有限公司 Antenna accounting setting method, device, user equipment and storage medium
CN109152057A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Timeslice distribution method, device and electronic equipment
CN109526063A (en) * 2018-12-28 2019-03-26 Oppo广东移动通信有限公司 Communicating control method, electronic equipment and computer readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LING, YUESHI: "Non-official translation: 802.11 power save mechanism", HTTPS://ZHUANLAN.ZHIHU.COM/P/54820733 (ZHIHU HTTPS://ZHUANLAN.ZHIHU.COM/P/54820733), 18 January 2019 (2019-01-18), DOI: 20200216195929Y *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113811018A (en) * 2021-09-10 2021-12-17 广东博智林机器人有限公司 Mesh network communication method and device, electronic equipment and storage medium
CN115529579A (en) * 2022-04-12 2022-12-27 荣耀终端有限公司 Device discovery method and device
CN115529579B (en) * 2022-04-12 2023-06-20 荣耀终端有限公司 Equipment discovery method and device
CN114826796A (en) * 2022-06-29 2022-07-29 京东方艺云(杭州)科技有限公司 Power supply switching circuit of dual-communication module

Also Published As

Publication number Publication date
CN110191449A (en) 2019-08-30
CN110191449B (en) 2022-02-18

Similar Documents

Publication Publication Date Title
WO2020237703A1 (en) Communication mode switching method and device, storage medium, processor, and system
US20210272566A1 (en) Communication Method, Server, and Device
WO2020228831A1 (en) Network connection control method, terminal, and storage medium
TWI676368B (en) Information transmission and channel monitoring processing method and device
KR100725406B1 (en) Method and apparatus for saving power by controlling listening periods in wireless network communication system which has plural power saving mode
WO2018192374A1 (en) Site wake-up method and site
WO2014161472A1 (en) Paging method, apparatus, and system
EP1834492A2 (en) Method of operating a wlan mobile station
CN110691430B (en) Awakening method and device of Internet of things terminal, storage medium and base station
US9069601B2 (en) Method and apparatus for controlling task execution
WO2020143479A1 (en) Bwp adjustment method and apparatus
US20210076450A1 (en) Data service processing method, network side device, terminal device, and storage medium
CN111417182A (en) Data transmission method, device, storage medium, processor and system
WO2014005477A1 (en) Method for transmitting information in wireless local area network, terminal, and access device
CN110691399B (en) Internet of things terminal, awakening method and device thereof and storage medium
CN110896558A (en) Working mode switching method, terminal and network equipment
JP2013186904A (en) Wireless access point, wireless station and operation method thereof
CN115209513A (en) Apparatus and method for mobile access point station
CN110177343B (en) Broadcast frame processing method, device, storage medium, processor and system
CN106231533B (en) Method and apparatus for short-range communication
US20190215771A1 (en) Beacon signal processing system and filtering method of reducing wake-up frequency
CN113596964A (en) Downlink receiving triggering method, terminal and network side equipment
WO2023030189A1 (en) Monitoring method and apparatus, wake-up signal transmission method and apparatus, terminal, and network-side device
WO2022083418A1 (en) Energy saving signal transmission method and apparatus
CN114765837B (en) Power saving processing method, device and equipment

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: 19930432

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: 19930432

Country of ref document: EP

Kind code of ref document: A1