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

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

Info

Publication number
CN110191449B
CN110191449B CN201910460101.XA CN201910460101A CN110191449B CN 110191449 B CN110191449 B CN 110191449B CN 201910460101 A CN201910460101 A CN 201910460101A CN 110191449 B CN110191449 B CN 110191449B
Authority
CN
China
Prior art keywords
communication
indication information
component
mode
communication device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910460101.XA
Other languages
Chinese (zh)
Other versions
CN110191449A (en
Inventor
杨海波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Mxchip Information Technology Co Ltd
Original Assignee
Shanghai Mxchip Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Mxchip Information Technology Co Ltd filed Critical Shanghai Mxchip Information Technology Co Ltd
Priority to CN201910460101.XA priority Critical patent/CN110191449B/en
Priority to PCT/CN2019/089987 priority patent/WO2020237703A1/en
Publication of CN110191449A publication Critical patent/CN110191449A/en
Application granted granted Critical
Publication of CN110191449B publication Critical patent/CN110191449B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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

Abstract

The invention discloses a communication mode switching method, a communication mode switching device, a storage medium, a processor and a communication mode switching system. The method comprises the following steps: awakening a first communication component on first communication equipment according to a preset beacon interval; the method comprises the steps that a beacon frame from second communication equipment is intercepted through a first communication assembly, wherein the beacon frame at least carries first indication information, and the first indication information is used for indicating whether downlink data to be sent to the first communication equipment is stored on the second communication equipment or not; and switching between the first communication mode and the second communication mode according to the first indication information. The invention solves the technical problems that in the prior art, when the WiFi assembly and the BLE assembly are integrated on the same chip and work alternately in a time-sharing multiplexing mode, the cooperative control of the WiFi assembly and the BLE assembly is easy to cause higher operation complexity and higher packet loss rate.

Description

Communication mode switching method, device, storage medium, processor and system
Technical Field
The present invention relates to the field of communications, and in particular, to a method, an apparatus, a storage medium, a processor, and a system for switching a communication mode.
Background
Wireless fidelity (WiFi) is a wireless local area network technology created in the IEEE 802.11 standard that is networked by radio waves, typically configured as a wireless router. The wireless router can be networked by adopting a WiFi connection mode in an effective range covered by electric waves.
Bluetooth Low Energy (BLE) is a personal area network technology. BLE significantly reduces power consumption and cost compared to classical bluetooth while maintaining comparable communication range.
At present, the electronic device provided in the related art is generally provided with a WiFi component and a BLE component, and the configuration manner of the electronic device generally includes the following two types:
the mode I, the WiFi assembly and the BLE assembly are respectively arranged on two different chips, and each chip respectively corresponds to one antenna and works independently.
In this way, the WiFi component and the BLE component do not need to work in coordination and do not interfere with each other, and therefore, the communication performance is good. However, this approach has the drawbacks that: the hardware cost is higher with the dual-chip structure.
And the second mode, the WiFi assembly and the BLE assembly are integrated on the same chip and share the same antenna.
In this way, the WiFi component and the BLE component alternately operate in a time division multiplexing manner, and therefore, the hardware cost of a single integrated chip structure adopted in this manner is low. However, this approach has the drawbacks that: because the WiFi component and the BLE component work alternately in a time-sharing multiplexing mode, the requirement on cooperative control of the WiFi component and the BLE component is extremely high, otherwise, higher packet loss rate is caused.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
At least some embodiments of the present invention provide a method, an apparatus, a storage medium, a processor, and a system for switching communication modes, so as to solve at least the technical problems in the related art that when a WiFi component and a BLE component are integrated on the same chip and alternately operate in a time-division multiplexing manner, the complexity of operation of cooperative control of the WiFi component and the BLE component is high and a high packet loss rate is easily caused.
According to an embodiment of the present invention, a method for switching communication modes is provided, including:
awakening a first communication assembly on first communication equipment according to a preset beacon interval, wherein the first communication assembly is communicated with external communication equipment through second communication equipment in a first communication mode, and the second communication equipment is used for establishing a wireless local area network; the method comprises the steps that a beacon frame from second communication equipment is intercepted through a first communication assembly, wherein the beacon frame at least carries first indication information, and the first indication information is used for indicating whether downlink data to be sent to the first communication equipment is stored on the second communication equipment or not; and switching between a first communication mode and a second communication mode according to the first indication information, wherein the second communication assembly on the first communication equipment performs point-to-point communication with the third communication equipment in the second communication mode.
Optionally, switching between the first communication mode and the second communication mode according to the first indication information includes: determining that downlink data to be sent to the first communication equipment is not stored on the second communication equipment according to the first indication information; and controlling the first communication assembly to enter a dormant state and controlling the second communication assembly to enter a wakeup state so as to enable the first communication equipment to be in a second communication mode.
Optionally, switching between the first communication mode and the second communication mode according to the first indication information includes: determining that downlink data to be sent to the first communication equipment is stored on the second communication equipment according to the first indication information; the first communication assembly is controlled to keep a wake-up state, and the second communication assembly is controlled to enter a dormant state, so that the first communication equipment is in a first communication mode.
Optionally, after switching between the first communication mode and the second communication mode according to the first indication information, the method further includes: sending a first null data frame to a second communication device, wherein the first null data frame carries second indication information, the second indication information is identified as a first numerical value, and the first numerical value is used for indicating that a first communication component is in an awakening state; receiving downlink data from the second communication device through the first communication component; and executing corresponding control operation according to the downlink data.
Optionally, after sending the first null data frame to the second communication device, the method further includes: under the condition that the downlink data is determined to be received completely, controlling the first communication assembly to enter a dormant state, and controlling the second communication assembly to enter a wakeup state, so that the first communication equipment is in a second communication mode; and sending a second null data frame to the second communication device, wherein the second null data frame carries second indication information, the second indication information is identified as a second value, and the second value is used for indicating that the first communication component is in a dormant state.
Optionally, the method further includes: monitoring a broadcast frame from third communication equipment through a second communication assembly, wherein the broadcast frame carries a control instruction; and executing corresponding control operation according to the control instruction.
Optionally, listening to the broadcast frame by the second communicating component comprises: and intercepting the broadcast frame through a preset channel by the second communication assembly, wherein the preset channel is selected from a plurality of alternative channels and is determined by the first communication equipment and the third communication equipment through negotiation in advance.
Optionally, the beacon frame further carries an updated beacon interval, and after the first communication component listens for the beacon frame, the method further includes: and adjusting the preset beacon interval to be the updated beacon interval, and awakening the first communication assembly again according to the updated beacon interval.
According to an embodiment of the present invention, there is further provided a device for switching communication modes, including:
the wake-up module is used for waking up a first communication component on first communication equipment according to a preset beacon interval, wherein the first communication component communicates with external communication equipment through second communication equipment in a first communication mode, and the second communication equipment is used for establishing a wireless local area network; the monitoring module is used for monitoring a beacon frame from the second communication equipment through the first communication component, wherein the beacon frame at least carries first indication information, and the first indication information is used for indicating whether downlink data to be sent to the first communication equipment is stored on the second communication equipment or not; and the switching module is used for switching between a first communication mode and a second communication mode according to the first indication information, wherein the second communication assembly on the first communication equipment performs point-to-point communication with the third communication equipment in the second communication mode.
Optionally, the switching module includes: the first determining unit is used for determining that downlink data to be sent to the first communication equipment is not stored on the second communication equipment according to the first indication information; the first control unit is used for controlling the first communication assembly to enter a dormant state and controlling the second communication assembly to enter a wakeup state, so that the first communication equipment is in a second communication mode.
Optionally, the switching module includes: the second determining unit is used for determining that downlink data to be sent to the first communication equipment is stored in the second communication equipment according to the first indication information; and the second control unit is used for controlling the first communication assembly to keep a wakeup state and controlling the second communication assembly to enter a dormant state so as to enable the first communication equipment to be in a first communication mode.
Optionally, the apparatus further comprises: the first sending module is used for sending a first null data frame to the second communication device, wherein the first null data frame carries second indication information, the second indication information is identified as a first numerical value, and the first numerical value is used for indicating that the first communication component is in an awakening state; the receiving module is used for receiving downlink data from the second communication equipment through the first communication component; and the execution module is used for executing corresponding control operation according to the downlink data.
Optionally, the apparatus further comprises: the control module is used for controlling the first communication assembly to enter a dormant state and controlling the second communication assembly to enter a wakeup state under the condition that the downlink data is determined to be received completely, so that the first communication equipment is in a second communication mode; and the second sending module is used for sending a second empty data frame to the second communication device, wherein the second empty data frame carries second indication information, the second indication information is identified as a second numerical value, and the second numerical value is used for indicating that the first communication component is in a dormant state.
Optionally, the monitoring module is further configured to monitor a broadcast frame from the third communication device through the second communication component, where the broadcast frame carries a control instruction; and executing corresponding control operation according to the control instruction.
Optionally, the listening module is configured to listen to the broadcast frame through a preset channel by using the second communication component, where the preset channel is selected from the multiple candidate channels and is determined by negotiation between the first communication device and the third communication device in advance.
Optionally, the beacon frame further carries an updated beacon interval, and the apparatus further includes: and the processing module is used for adjusting the preset beacon interval to be the updated beacon interval and awakening the first communication assembly again according to the updated beacon interval.
According to an embodiment of the present invention, there is further provided a storage medium including a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute any one of the above-mentioned communication mode switching methods.
According to an embodiment of the present invention, there is further provided a processor, configured to execute a program, where the program executes any one of the above methods for switching communication modes.
According to an embodiment of the present invention, there is also provided a system for switching communication modes, including: the communication device comprises a first communication device, a second communication device and a third communication device, wherein the first communication device comprises the switching device of the communication mode.
In at least some embodiments of the present invention, a first communication component on a first communication device is awakened according to a preset beacon interval, the first communication component communicates with an external communication device through a second communication device in a first communication mode, the second communication device is used for establishing a wireless local area network, a beacon frame from the second communication device is intercepted through the first communication component, the beacon frame carries at least first indication information, the first indication information is used for indicating whether downlink data to be sent to the first communication device is stored on the second communication device, and switching is performed between the first communication mode and the second communication mode according to the first indication information, a second communication component on the first communication device performs point-to-point communication with a third communication device in the second communication mode, so as to achieve an objective of optimizing cooperative working logic of the first communication component (e.g., a WiFi component) and the second communication component (e.g., a BLE component) Therefore, the technical effects of improving the communication stability (especially the stability of WiFi) of the electronic equipment, reducing the operation complexity of cooperative control of the WiFi component and the BLE component and the packet loss rate caused by time-sharing multiplexing are achieved, and the technical problems that in the related art, the operation complexity of cooperative control of the WiFi component and the BLE component is high and the high packet loss rate is caused easily under the condition that the WiFi component and the BLE component are integrated on the same chip and work alternately in a time-sharing multiplexing mode are solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a schematic structural diagram of a communication mode switching system according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for switching communication modes according to an embodiment of the present invention;
figure 3 is a schematic timing control diagram of a WiFi device and a BLE device according to an alternative embodiment of the present invention;
fig. 4 is a flowchart of a method of processing a broadcast frame according to one embodiment of the present invention;
FIG. 5 is a flowchart of the operation of a system for switching communication modes according to an alternative embodiment of the present invention;
FIG. 6 is a block diagram of a switching device of communication modes according to an embodiment of the present invention;
FIG. 7 is a block diagram of a communication mode switching device according to an alternative embodiment of the present invention;
fig. 8 is a block diagram of a processing apparatus of a broadcast frame according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to an embodiment of the present invention, an embodiment of a system for switching communication modes is provided. The switching system of the communication mode comprises: the communication device comprises a first communication device, a second communication device and a third communication device. Be provided with the communication module on the first communications facilities, wherein, this communication module includes: a first communication component and a second communication component. The second communication device is used for establishing a wireless local area network. The first communication component communicates with external communication equipment (such as a mobile equipment control end of a smart phone and the like and a cloud server) through second communication equipment in a first communication mode. And the second communication assembly on the first communication equipment carries out point-to-point communication with the third communication equipment in the second communication mode. Namely, the first communication device and the third communication device form a wireless personal area network in the second communication mode.
In an alternative embodiment, fig. 1 is a schematic structural diagram of a communication mode switching system according to an embodiment of the present invention, as shown in fig. 1, a first communication device is a STATION (STATION), a second communication device is a WiFi Access Point (AP), and a third communication device is a BLE controller. The first communication mode is a WiFi operation mode, and the second communication mode is a BLE operation mode. The first communication component included in the communication module in the state is a WiFi component, and the second communication component included in the communication module in the state is a BLE component.
Taking an intelligent home application scenario as an example, the workstation may further be an intelligent household appliance, for example: smart televisions, smart refrigerators, smart table lamps, smart air conditioners and the like. The WiFi AP may further be a wireless router. The BLE controller may be a remote controller of an intelligent household appliance.
Taking the first communication device as an intelligent home appliance as an example, the intelligent home appliance may include one or more processors (the processors may include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a Digital Signal Processing (DSP) chip, a Microprocessor (MCU), or a programmable logic device (FPGA), etc.) and a memory for storing data. Optionally, the intelligent household appliance may further include a communication module for communication function and an input/output device. It will be understood by those skilled in the art that the foregoing structural description is only illustrative and not restrictive to the structure of the smart home appliance. For example, the smart home appliance may further include more or less components than the structural description above, or have a different configuration from the structural description above.
The memory may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the method for switching the communication mode in the embodiment of the present invention, and the processor executes various functional applications and data processing by running the computer program stored in the memory, that is, implements the method for switching the communication mode. The memory may include high speed random access memory, and may also include 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 memory remotely located from the processor, and the remote memory may be connected to the smart home appliance through a network. Examples of such networks include, but are not limited to, the internet, 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 for communicating with the internet in a wireless manner.
Similarly, taking the third communication device as the remote controller of the intelligent household appliance as an example, the remote controller may include one or more processors (the processors may include but are not limited to a Central Processing Unit (CPU), a Graphic Processing Unit (GPU), a Digital Signal Processing (DSP) chip, a processing unit such as a Microprocessor (MCU) or a programmable logic device (FPGA)), and a memory for storing data. Optionally, the remote controller may further include a communication component for peer-to-peer communication and an input/output device. It will be understood by those skilled in the art that the above structural description is only illustrative and not restrictive to the structure of the remote controller. For example, the remote control may also include more or fewer components than described above, or have a different configuration than described above.
The memory may be used to store computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the broadcast frame processing method in the embodiments of the present invention, and the processor executes various functional applications and data processing by running the computer programs stored in the memory, that is, implements the broadcast frame processing method described above. The memory may include high speed random access memory, and may also include 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 memory remotely located from the processor, and these remote memories may be connected to the remote controller through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
In accordance with one embodiment of the present invention, there is provided an embodiment of a method for switching communication modes, where the steps shown in the flowchart of the drawings can be executed in a computer system such as a set of computer executable instructions, and where a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from the order shown.
In this embodiment, a method for switching a communication mode of the workstation is provided, and fig. 2 is a flowchart of a method for switching a communication mode according to an embodiment of the present invention, as shown in fig. 2, the method includes the following steps:
step S20, waking up a first communication component on first communication equipment according to a preset beacon interval, wherein the first communication component communicates with external communication equipment through second communication equipment in a first communication mode, and the second communication equipment is used for establishing a wireless local area network;
step S21, a beacon frame from the second communication device is intercepted by the first communication component, where 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 the first communication device is stored on the second communication device;
step S22, switching between a first communication mode and a second communication mode according to the first indication information, wherein the second communication component of the first communication device performs peer-to-peer communication with the third communication device in the second communication mode.
Through the steps, a first communication component on a first communication device can be awakened according to a preset beacon interval, the first communication component communicates with an external communication device through a second communication device in a first communication mode, the second communication device is used for establishing a wireless local area network, a beacon frame from the second communication device is intercepted through the first communication component, at least first indication information is carried in the beacon frame, the first indication information is used for indicating whether downlink data to be sent to the first communication device is stored on the second communication device, switching is carried out between the first communication mode and the second communication mode according to the first indication information, the second communication component on the first communication device carries out point-to-point communication with a third communication device in the second communication mode, and the purpose of optimizing the cooperative working logic of the first communication component (such as a WiFi component) and the second communication component (such as a BLE component) is achieved, therefore, the technical effects of improving the communication stability (especially the stability of WiFi) of the electronic equipment, reducing the operation complexity of cooperative control of the WiFi assembly and the BLE assembly and reducing the packet loss rate caused by time-sharing multiplexing are achieved, and the technical problems that in the related art, the operation complexity of cooperative control of the WiFi assembly and the BLE assembly is high and the high packet loss rate is caused easily under the condition that the WiFi assembly and the BLE assembly are integrated on the same chip and work alternately in a time-sharing multiplexing mode are solved.
In the related art, in the process that the WiFi component and the BLE component alternately operate in a time division multiplexing mode, if the WiFi component is in an operating state, the BLE component is in a dormant state. Similarly, if the BLE component is in the active state, the WiFi component is in the sleep state. Therefore, the working method of time division multiplexing inevitably causes a high packet loss rate, and is also easy to cause a problem of disconnection. Taking the preset beacon interval as 100ms as an example, according to the time division multiplexing mode of the WiFi component and the BLE component adopted in the related art, in the first 100ms time range, the WiFi component is in a working state, and the BLE component is in a sleep state. In the second 100ms time frame, the BLE component is in an active state and the WiFi component is in a dormant state. The reciprocating and alternate execution is not repeated herein.
For this reason, with the power saving mode (power save mode) of IEEE 802.11, the WiFi component operating time is shortened as much as possible by the WiFi component low power consumption protocol, and most of the time is allocated to the BLE component for use.
IEEE 802.11power save mode is a standard WiFi low power protocol. Under the protocol, the WiFi state enters a power saving mode and turns off the RF module when there is no data to transmit or receive. The STATION is periodically woken up in a beacon interval (beacon interval) of the AP, thereby listening to beacon frames of the AP. The beacon frame of the AP is substantially a broadcast frame periodically transmitted by the AP, wherein the information carried in the broadcast frame may include, but is not limited to: the name of the AP (e.g., a Server Set Identifier (SSID)), the encryption method, and whether there is a flag (flag) for buffering data of each status associated with the AP on the AP, for example: a flag value (corresponding to first indication information) in a Traffic Indication Map (TIM).
Taking the status 1 in fig. 1 as an example, the status 1 wakes up the WiFi component on the status 1 at 100ms intervals. The WiFi assembly is communicated with external communication equipment (such as a mobile equipment control terminal such as a smart phone and a cloud server) through a WiFi AP in a WiFi working mode. STATION1 may listen for beacon frames from WiFi APs by the WiFi component. The beacon frame at least carries first indication information, and the first indication information is used for indicating whether downlink data to be sent to the state 1 is stored on the WiFi AP. And the state 1 switches between the WiFi operation mode and the BLE operation mode according to the first indication information. The BLE component on the STATION1 performs point-to-point communication with the BLE controller 1 in the BLE operating mode.
Fig. 3 is a schematic timing control diagram of a WiFi device and a BLE device according to an alternative embodiment of the present invention, and as shown in fig. 3, through an IEEE 802.11power save mode, the WiFi device on the state can be woken up once every 100ms, and the WiFi device set on the state is used to receive beacon frames and then immediately enters a sleep state, so as to achieve the purpose of saving power consumption of the WiFi device. Meanwhile, the downlink data sent to the state is cached on the AP, so the downlink data sent to the state is not lost. In addition, by utilizing the technical principle of the IEEE 802.11power save mode, the electronic device is switched to the BLE component operating mode at the timing of turning off the RF module of the WiFi component, thereby ensuring that the electronic device is in the BLE operating mode more than 90% of the time, and is in the WiFi operating mode only for a short time.
Optionally, in step S22, switching between the first communication mode and the second communication mode according to the first indication information may include the following steps:
step S220, determining that the downlink data to be sent to the first communication equipment is not stored on the second communication equipment according to the first indication information;
step S221, controlling the first communication component to enter a sleep state, and controlling the second communication component to enter a wake-up state, so that the first communication device is in the second communication mode.
Since all the downlink data to be sent to the status are cached in the AP in advance, when the AP does not store the cache data of the status, the TIM identifier representing the cache data in which the status does not exist may be set in the beacon frame. The TIM uses a Bitmap (Bitmap) structure to indicate whether or not downlink data of each state associated with an AP is cached on the AP. And each status checks the flag value at the corresponding position in the Bitmap through the Tim field in the beacon frame to determine whether corresponding downlink data is cached on the AP or not.
Table 1 is an optional example of using a Bitmap in the TIM to indicate whether downlink data addressed to the state is cached, as shown in table 1:
TABLE 1
STATION NO. Beacon Bitmap
STATION
1 TIM flag 1 0
STATION 2 TIM flag 2 1
STATION 3 TIM flag 3 1
STATION 4 TIM flag 4 0
…… …… ……
STATION n-1 TIM flag n-1 1
STATION n TIM flag n 0
Bitmaps in a TIM may typically be arranged in a matrix of M rows by N columns (M and N are positive integers). Each TIM flag corresponds to a different time. Taking table 1 as an example, state 1 corresponds to Tim flag 1 of the Tim field in the beacon frame, state 2 corresponds to Tim flag 2 of the Tim field in the beacon frame, state 3 corresponds to Tim flag 3 … of the Tim field in the beacon frame, and so on until state corresponds to Tim flag n of the Tim field in the beacon frame. If the value of the TIM flag is 1, indicating that downlink data corresponding to the TIME is cached on the AP; and if the value of the TIM flag is 0, indicating that the downlink data corresponding to the STATION is not cached on the AP. And when determining that downlink data corresponding to the status is not cached on the AP according to the value of the TIM flag, controlling the WiFi assembly to enter a dormant state, and controlling the BLE assembly to enter an awakening state so as to enable the status to be in a BLE working mode. For example: when determining that downlink data corresponding to the status 1 is not cached on the AP according to the value 0 of the TIM flag 1, the status 1 controls the WiFi component to enter a sleep state, and controls the BLE component to enter an awake state, so that the status 1 is in a BLE working mode.
Optionally, in step S22, switching between the first communication mode and the second communication mode according to the first indication information may include the following steps:
step S222, determining that downlink data to be sent to the first communication equipment is stored on the second communication equipment according to the first indication information;
step S223, controlling the first communication component to keep 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.
Still as shown in table 1, when it is determined that downlink data corresponding to the status is cached on the AP according to the value of the TIM flag, the WiFi component is controlled to keep an awake state, and the BLE component is controlled to enter a sleep state, so that the status is in a WiFi operating mode. For example: when determining that the downlink data corresponding to the status 2 is cached on the AP according to the value 1 of the TIM flag 2, the status 2 controls the WiFi component to keep an awake state, and controls the BLE component to enter a sleep state, so that the status 2 is in a WiFi working mode.
Optionally, in step S22, after switching between the first communication mode and the second communication mode according to the first indication information, the method may further include the following steps:
step S23, sending a first null data frame to the second communication device, where the first null data frame carries 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;
step S24, receiving downlink data from the second communication device through the first communication component;
and step S25, executing corresponding control operation according to the downlink data.
The null data (nulrdata) frame is responsible for transmitting power saving state change information of the STATION to the AP. The STA (corresponding to the second indication information) is a field in the Nulldata frame, and notifies the AP of a power save state change of the STATION. Table 2 is an alternative example of using the STA to indicate a power saving state change of the state, as shown in table 2:
TABLE 2
STATION NO. Nulldata No. STA
STATION
1 Nulldata 1 0-represents work
STATION 2 Nulldata 2 1-indicates sleep
STATION 3 Nulldata 3 1
STATION 4 Nulldata 4 0
…… …… ……
STATION n-1 Nulldata n-1 1
STATION n Nulldata n 0
Taking the state 1 as an example, firstly, the state 1 sends Nulldata1 to the AP, where a value of an STA field carried by the Nulldata1 is 0, which indicates that the state 1 is in the WiFi operating mode. Second, the status 1 receives downlink data from the AP through the WiFi component. And then the state 1 executes corresponding control operation according to the downlink data. The following describes, in conjunction with a plurality of application scenarios, the execution of corresponding control operations by the STATION1 according to downlink data:
in an application scenario I, it is assumed that the state 1 is an intelligent lamp, and the downlink data is control information that the intelligent lamp needs to be automatically turned on at 6 o 'clock at night through the cloud server, so that the state 1 can be automatically turned on at 6 o' clock at night according to the downlink data.
In an application scenario two, if the state 1 is an intelligent lamp, downlink data is control information that the intelligent lamp needs to be automatically turned on immediately when a user opens a door and enters a room, which is detected by other intelligent household equipment (such as an intelligent security door), the state 1 is automatically turned on immediately according to the downlink data to illuminate the user.
And in an application scene three, assuming that the state 1 is an intelligent lamp, and the downlink data is control information that a user needs to enter a reading mode or a cinema mode through the brightness adjustment of the intelligent lamp set by the smart phone, the state 1 adjusts the light brightness according to the reading mode or the cinema mode according to the downlink data.
Optionally, in step S23, after sending the first null data frame to the second communication device, the method may further include the following steps:
step S26, under the condition that the downlink data is determined to be received completely, controlling the first communication component to enter a dormant state and controlling the second communication component to enter a wake-up state, so that the first communication device is in a second communication mode;
step S27, sending a second null data frame to the second communication device, where the second null data frame carries second indication information, and the second indication information is identified as a second value, where the second value is used to indicate that the first communication component is in a dormant state.
Taking the status 2 as an example, in the case that the status 2 determines that the downlink data reception is completed, the status 2 controls the WiFi component to enter the sleep state, and controls the BLE component to enter the wake state, so that the status 2 is in the BLE operating mode. Then, the STATION2 sends Nulldata 2 to the AP, where a value of an STA field carried by the Nulldata 2 is 1, which indicates that the STATION2 is in a BLE operating mode.
Optionally, the method may further include the following steps:
step S28, a broadcast frame from the third communication device is intercepted through the second communication component, wherein the broadcast frame carries a control instruction;
and step S29, executing corresponding control operation according to the control instruction.
While the WiFi component remains connected, the BLE component on the STATION can still listen for broadcast frames from the BLE controller without having to establish a connection and synchronization. The broadcast frame carries control instructions. The state executes a corresponding control operation according to the control instruction.
Assuming that the state is an intelligent lamp, and the BLE controller is a remote controller matched with the intelligent lamp, a control instruction for turning on the lamp can be sent to the intelligent lamp through the remote controller, and then the intelligent lamp executes a corresponding operation for turning on the lamp according to the control instruction. Similarly, the remote controller can send a light-off control instruction to the intelligent electric lamp, and then the intelligent electric lamp executes corresponding light-off operation according to the control instruction.
Optionally, in step S28, listening for the broadcast frame by the second communicating component may include performing the following steps:
step S281, the second communication device listens to the broadcast frame via a predetermined channel, wherein the predetermined channel is selected from a plurality of candidate channels and is determined by a negotiation between the first communication device and the third communication device.
The broadcasting process of the BLE component may originally work on a plurality of different channels (channels), and therefore, in order to improve the success rate of the BLE component for receiving data, the broadcasting process of the BLE component may be fixed on any one of the channels. As to which channel is actually fixed, it needs to be determined by each STATION and the corresponding BLE controller through negotiation in advance, so that each STATION listens to the broadcast frame from the corresponding BLE controller via the fixed channel.
Optionally, the beacon frame further carries an updated beacon interval, and after listening to the beacon frame by the first communication component in step S21, the method may further include the following steps:
step S30, adjusting the preset beacon interval to the updated beacon interval, and waking up the first communication component again according to the updated beacon interval.
In general, the AP transmits a beacon frame once according to beacon interval (e.g., 100 ms). The preset duration can be self-defined and adjusted by a user to obtain an updated beacon interval. Then, the AP will carry the updated beacon interval in the beacon frame and send the beacon frame to the state, so that the state wakes up the WiFi component according to the updated beacon interval.
There is also provided, in accordance with an embodiment of the present invention, an embodiment of a method for processing a broadcast frame, including the steps illustrated in the flowchart of the figure as being executable by a computer system, such as a set of computer-executable instructions, and although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be executed in an order different than that illustrated or described herein.
In this embodiment, a method for processing a broadcast frame operating in the BLE controller is provided, and fig. 4 is a flowchart of a method for processing a broadcast frame according to an embodiment of the present invention, as shown in fig. 4, the method includes the following steps:
step S40, determining that the first communication device is switched from a first communication mode to a second communication mode, wherein the first communication device communicates with an external communication device through a second communication device in the first communication mode, the second communication device is used for establishing a wireless local area network, and the first communication device communicates with a third communication device point-to-point in the second communication mode;
step S41, responding to the control operation acted on the third communication equipment, and determining a control instruction to be sent;
step S42, repeatedly sending a broadcast frame to the first communication device within a preset time duration, where the broadcast frame carries a control instruction.
In order to reduce the packet loss probability of the BLE component, a retransmission mechanism is newly added at the end of the BLE controller, so that it is ensured that the control instruction of the BLE controller can be retransmitted for multiple times within a preset time period, and the probability that the BLE control instruction is received by the STATION is obviously improved. The control operation of the BLE controller can be completed by a physical control keyboard consisting of physical keys, a virtual control keyboard consisting of virtual keys on a touch display screen, and a physical touch panel matched with the display screen. When the BLE controller detects that a user performs pressing operation on a physical key, or touch operation performed on a touch display screen, or touch operation performed on a touch panel, the BLE controller determines a BLE control instruction (such as a light-on instruction) to be sent. Then, the BLE controller repeatedly sends the BLE control instruction to the STATION for a preset time length.
In an alternative embodiment, the predetermined duration is greater than the predetermined beacon interval.
In order to ensure that the STATION successfully receives the BLE controller transmission control instruction, the continuous retransmission time may be controlled to be greater than a preset beacon interval (e.g., 100 ms). Of course, the preset time length may also be set to be less than or equal to 100ms according to the actual application scenario.
Optionally, in step S42, the repeatedly sending the broadcast frame to the first communication device within the preset time period may include the following steps:
step S420, repeatedly sending a broadcast frame to the first communication device via a preset channel within a preset time period, where the preset channel is selected from a plurality of candidate channels and is determined by negotiation between the first communication device and the third communication device in advance.
The broadcasting process of the BLE component may originally work on a plurality of different channels, and therefore, in order to improve the success rate of the BLE component for receiving data, the broadcasting process of the BLE component may be fixed on any one of the channels. As to which channel is actually fixed, it needs to be determined by each STATION and the corresponding BLE controller through negotiation in advance, so that each STATION listens to the broadcast frame from the corresponding BLE controller via the fixed channel.
In an optional embodiment, the BLE controller may repeatedly send the broadcast frame to the corresponding STATION at equal time intervals via the fixed channel for a preset time period. For example, when the preset time duration is 100ms, the BLE controller repeatedly transmits 10 broadcast frames to the corresponding STATION at time intervals of 10 ms. Of course, the BLE controller may not repeatedly transmit the broadcast frame to the corresponding state at equal time intervals. For example, when the preset duration is 100ms, the BLE controller repeatedly transmits the broadcast frame to the corresponding STATION 4 times in 10ms, 30ms, 60ms, and 100ms, respectively.
Optionally, in step S42, after the broadcast frame is repeatedly sent to the first communication device within the preset time period, the method may further include the following steps:
in step S43, if a feedback message is received from the first communication device within the preset time period, the broadcast frame is stopped from being transmitted before the end time of the preset time period is reached, where the feedback message is used to indicate that the first communication device has successfully executed the control instruction.
In order to enable the first communication device to timely and accurately receive the control instruction carried in the broadcast frame, the third communication device repeatedly sends the broadcast frame to the first communication device within a preset time length. In order to effectively save or reduce the power consumption of the third communication device, a feedback mechanism may be added to the first communication device.
In an alternative 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 may send a feedback message to the third communication device so that the third communication device can determine that the first communication device has successfully executed the control instruction. Therefore, the third communication equipment does not need to repeatedly broadcast the frame to the first communication equipment, and the power consumption of the third communication equipment can be effectively saved or reduced.
In an alternative embodiment, the feedback message may also be used to indicate that the first communication device failed to 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 may still send a feedback message to the third communication device so that the third communication device can determine that the first communication device fails to execute the control instruction successfully. Thus, the third communication device can broadcast the frame to the first communication device again in a targeted manner.
Optionally, in step S42, after the broadcast frame is repeatedly sent to the first communication device within the preset time period, the method may further include the following steps:
in step S44, if a feedback message from the first communication device is not received when the end time of the preset duration is reached, the broadcast frame is stopped from being transmitted and the first communication device enters the sleep state, where the feedback message is used to indicate that the first communication device has successfully executed the control instruction.
In an alternative 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 is reached, the third communication device may stop repeatedly sending the broadcast frame and enter a sleep state (i.e., a low power consumption state), so that power consumption of the third communication device can be effectively saved or reduced.
The overall operation flow of the communication mode switching system will be described in further detail with reference to the alternative embodiment shown in fig. 5. Fig. 5 is a flowchart illustrating an operation of the system for switching communication modes according to an alternative embodiment of the present invention. As shown in fig. 5, the process may include the following process steps:
step S502, the WiFi AP sends a beacon frame to the STATION, wherein the beacon frame carries a beacon interval, a TIM field and an SSID field. And the value of the TIM flag corresponding to the STATION in the TIM field is 0, which indicates that the STATION enters a BLE working mode.
In step S504, the state receives a lighting control command from the BLE controller.
Step S506, the WiFi AP sends beacon frame to the STATION, where the beacon frame carries beacon interval, TIM field, and SSID field. And the value of the TIM flag corresponding to the STATION in the TIM field is 1, which indicates that the STATION enters the WiFi working mode.
Step S508, the STATION sends a Nulldata frame to the WiFi AP, where the Nulldata frame carries an STA field. And the attribute value of the STA field is 0, and the WiFi AP is informed that the STATION enters the WiFi working mode, so that the WiFi AP sends the content which is stored in the WiFi AP and is associated with the STATION to the STATION.
In step S510, the WiFi AP sends the content associated with the status stored in the WiFi AP to the status.
In step S512, the WiFi AP clears the content associated with the status stored in the WiFi AP.
Step S514, the STATION sends a Nulldata frame to the WiFi AP, wherein the Nulldata frame carries the STA field. And the attribute value of the STA field is 1, and the WiFi AP is informed that the STATION enters the BLE working mode.
Step S516, the WiFi AP sends beacon frame to the STATION, where the beacon frame carries beacon interval, TIM field, and SSID field. And the value of the TIM flag corresponding to the STATION in the TIM field is 0, which indicates that the STATION enters a BLE working mode.
In step S518, the state receives other control instructions (e.g., adjusting the light intensity, turning off the light) from the BLE controller.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device for switching a communication mode is further provided, and the device is used to implement the foregoing embodiments and preferred embodiments, and the description of the device is omitted for brevity. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a communication mode switching apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus includes: the wake-up module 100 is configured to wake up a first communication component on first communication equipment according to a preset beacon interval, where the first communication component communicates with external communication equipment through second communication equipment in a first communication mode, and the second communication equipment is used to establish a wireless local area network; the monitoring module 102 is configured to monitor a beacon frame from the second communication device through the first communication component, where the beacon frame at least carries first indication information, and the first indication information is used to indicate whether downlink data to be sent to the first communication device is stored on the second communication device; the switching module 104 is configured to switch between a first communication mode and a second communication mode according to the first indication information, where the second communication component on the first communication device performs peer-to-peer communication with the third communication device in the second communication mode.
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 downlink data to be sent to the first communication device is not stored on the second communication device; the first control unit (not shown in the figure) is configured to control the first communication component to enter a sleep state, and control the second communication component to enter a wake-up state, so that the first communication device is in the second communication mode.
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 downlink data to be sent to the first communication device is stored on the second communication device; and a second control unit (not shown in the figure) for controlling the first communication component to keep in the wake-up state and controlling the second communication component to enter the sleep state, so that the first communication device is in the first communication mode.
Optionally, fig. 7 is a block diagram of a switching device of communication modes according to an alternative embodiment of the present invention, and as shown in fig. 7, the switching device includes, in addition to all modules shown in fig. 6: a first sending module 106, configured to send a first null data frame to the second communication device, where the first null data frame carries 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; a receiving module 108, configured to receive downlink data from the second communication device through the first communication component; the executing module 110 is configured to execute a corresponding control operation according to the downlink data.
Optionally, as shown in fig. 7, the apparatus further includes: a control module 112, configured to control the first communication component to enter a dormant state and control the second communication component to enter a wake-up state under the condition that it is determined that downlink data is received completely, so that the first communication device is in a second communication mode; a second sending module 114, configured to send a second null data frame to the second communication device, where the second null data frame carries second indication information, and the second indication information is identified as a second value, where the second value is used to indicate that the first communication component is in a dormant state.
Optionally, the monitoring module 102 is further configured to monitor a broadcast frame from a third communication device through a second communication component, where the broadcast frame carries a control instruction; and executing corresponding control operation according to the control instruction.
Optionally, the listening module 102 is configured to listen to the broadcast frame through a preset channel by the second communication component, where the preset channel is selected from a plurality of candidate channels and is determined by a negotiation between the first communication device and the third communication device in advance.
Optionally, the beacon frame further carries an updated beacon interval, as shown in fig. 7, the apparatus further includes: the processing module 116 is 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, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
In this embodiment, a device for processing a broadcast frame is further provided, where the device is used to implement the foregoing embodiments and preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 8 is a block diagram of a processing apparatus of a broadcast frame according to an embodiment of the present invention, as shown in fig. 8, the apparatus including: a determining module 200, configured to determine that a first communication device is switched from a first communication mode to a second communication mode, where the first communication device communicates with an external communication device through a second communication device in the first communication mode, the second communication device is used to establish a wireless local area network, the first communication device performs peer-to-peer communication with a third communication device in the second communication mode, and determines a control instruction to be sent in response to a control operation applied to the third communication device; the processing module 202 is configured to repeatedly send a broadcast frame to the first communication device within a preset time duration, where the broadcast frame carries a control instruction.
Optionally, the preset duration is greater than the preset beacon interval.
Optionally, the processing module 202 is configured to repeatedly send the broadcast frame to the first communication device through a preset channel within a preset time duration, where the preset channel is selected from a plurality of candidate channels and is determined by negotiation between the first communication device and the third communication device in advance.
Optionally, the processing module 202 is further configured to stop sending the broadcast frame before the end time of the preset time duration is reached if a feedback message from the first communication device is received within the preset time duration, where the feedback message is used to indicate that the first communication device has successfully executed the control instruction.
Optionally, the processing module 202 is further configured to stop sending the broadcast frame and enter a sleep state if a feedback message from the first communication device is not received when the end time of the preset time duration is reached, where the feedback message is used to indicate that the first communication device has successfully executed the control instruction.
Optionally, the processing module 202 is further configured to repeatedly send the broadcast frame to the first communication device via the preset channel at equal time intervals within the preset time duration.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
Alternatively, in the present embodiment, the storage medium may be configured to store a computer program for executing the steps of:
s1, waking up a first communication component on first communication equipment according to a preset beacon interval, wherein the first communication component communicates with external communication equipment through second communication equipment in a first communication mode, and the second communication equipment is used for establishing a wireless local area network;
s2, a beacon frame from the second communication equipment is intercepted through the first communication component, wherein the beacon frame at least carries first indication information, and the first indication information is used for indicating whether downlink data to be sent to the first communication equipment is stored on the second communication equipment or not;
s3, switching between the first communication mode and the second communication mode according to the first indication information, wherein the second communication module of the first communication device performs peer-to-peer communication with the third communication device in the second communication mode.
Optionally, the storage medium is further arranged to store a computer program for performing the steps of:
s1, determining that the first communication equipment is switched from a first communication mode to a second communication mode, wherein the first communication equipment communicates with external communication equipment through second communication equipment in the first communication mode, the second communication equipment is used for building a wireless local area network, and the first communication equipment performs point-to-point communication with third communication equipment in the second communication mode;
s2, responding to the control operation acted on the third communication equipment, and determining a control instruction to be sent;
s3, repeatedly sending a broadcast frame to the first communication device within a preset time duration, where the broadcast frame carries a control command.
Optionally, in this embodiment, the storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide a processor arranged to run a computer program to perform the steps of any of the above method embodiments.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
s1, waking up a first communication component on first communication equipment according to a preset beacon interval, wherein the first communication component communicates with external communication equipment through second communication equipment in a first communication mode, and the second communication equipment is used for establishing a wireless local area network;
s2, a beacon frame from the second communication equipment is intercepted through the first communication component, wherein the beacon frame at least carries first indication information, and the first indication information is used for indicating whether downlink data to be sent to the first communication equipment is stored on the second communication equipment or not;
s3, switching between the first communication mode and the second communication mode according to the first indication information, wherein the second communication module of the first communication device performs peer-to-peer communication with the third communication device in the second communication mode.
Optionally, in this embodiment, the processor may be further configured to execute, by the computer program, the following steps:
s1, determining that the first communication equipment is switched from a first communication mode to a second communication mode, wherein the first communication equipment communicates with external communication equipment through second communication equipment in the first communication mode, the second communication equipment is used for building a wireless local area network, and the first communication equipment performs point-to-point communication with third communication equipment in the second communication mode;
s2, responding to the control operation acted on the third communication equipment, and determining a control instruction to be sent;
s3, repeatedly sending a broadcast frame to the first communication device within a preset time duration, where the broadcast frame carries a control command.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (11)

1. A method for switching communication modes, comprising:
awakening a first communication component on first communication equipment according to a preset beacon interval, wherein the first communication component communicates with external communication equipment through second communication equipment in a first communication mode, and the second communication equipment is used for establishing a wireless local area network;
monitoring a beacon frame from the second communication equipment through the first communication component, wherein the beacon frame at least carries first indication information, and the first indication information is used for indicating whether downlink data to be sent to the first communication equipment is stored on the second communication equipment;
switching between the first communication mode and a second communication mode according to the first indication information, wherein a second communication assembly on the first communication equipment performs point-to-point communication with third communication equipment in the second communication mode;
wherein switching between the first communication mode and the second communication mode according to the first indication information comprises: determining that downlink data to be sent to the first communication equipment is not stored on the second communication equipment according to the first indication information; and controlling the first communication assembly to enter a dormant state and controlling the second communication assembly to enter a wakeup state so as to enable the first communication equipment to be in the second communication mode.
2. The method of claim 1, wherein switching between the first communication mode and the second communication mode according to the first indication information comprises:
determining that downlink data to be sent to the first communication equipment is stored on the second communication equipment according to the first indication information;
and controlling the first communication assembly to keep a wakeup state, and controlling the second communication assembly to enter a dormant state, so that the first communication equipment is in the first communication mode.
3. The method according to claim 2, further comprising, after switching between the first communication mode and the second communication mode according to the first indication information:
sending a first null data frame to the second communication device, wherein the first null data frame carries second indication information, the second indication information is identified as a first numerical value, and the first numerical value is used for indicating that the first communication component is in the awakening state;
receiving the downlink data from the second communication device through the first communication component;
and executing corresponding control operation according to the downlink data.
4. The method of claim 3, further comprising, after transmitting the first null data frame to the second communication device:
under the condition that the downlink data is determined to be received completely, controlling the first communication assembly to enter a dormant state, and controlling the second communication assembly to enter a wakeup state, so that the first communication equipment is in the second communication mode;
and sending a second null data frame to the second communication device, wherein the second null data frame carries the second indication information, the second indication information is identified as a second value, and the second value is used for indicating that the first communication component is in the dormant state.
5. The method of claim 1, further comprising:
monitoring a broadcast frame from the third communication device through the second communication component, wherein the broadcast frame carries a control instruction;
and executing corresponding control operation according to the control instruction.
6. The method of claim 5, wherein listening, by the second communication component, for the broadcast frame comprises:
and intercepting the broadcast frame through a preset channel by the second communication assembly, wherein the preset channel is selected from a plurality of alternative channels and is determined by the pre-negotiation between the first communication equipment and the third communication equipment.
7. The method according to any one of claims 1 to 6, wherein the beacon frame further carries an updated beacon interval, and further comprising, after listening for the beacon frame by the first communication component:
and adjusting the preset beacon interval to the updated beacon interval, and awakening the first communication assembly again according to the updated beacon interval.
8. A device for switching communication modes, comprising:
the system comprises a wake-up module, a first communication module and a second communication module, wherein the wake-up module is used for waking up the first communication module on first communication equipment according to a preset beacon interval, the first communication module is communicated with external communication equipment through second communication equipment in a first communication mode, and the second communication equipment is used for establishing a wireless local area network;
the monitoring module is configured to monitor, by using the first communication component, 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 downlink data to be sent to the first communication device is stored on the second communication device;
the switching module is used for switching between the first communication mode and a second communication mode according to the first indication information, wherein a second communication assembly on the first communication equipment performs point-to-point communication with third communication equipment in the second communication mode;
the switching module is configured to determine, according to the first indication information, that downlink data to be sent to the first communication device is not stored on the second communication device; and controlling the first communication assembly to enter a dormant state and controlling the second communication assembly to enter a wakeup state so as to enable the first communication equipment to be in the second communication mode.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, a device where the storage medium is located is controlled to execute the switching method of the communication mode according to any one of claims 1 to 7.
10. A processor, characterized in that the processor is configured to execute a program, wherein the program executes the method for switching communication modes according to any one of claims 1 to 7.
11. A system for switching communication modes, comprising: a first communication device, a second communication device and a third communication device, wherein the first communication device comprises the switching apparatus of the communication mode of claim 8.
CN201910460101.XA 2019-05-29 2019-05-29 Communication mode switching method, device, storage medium, processor and system Active CN110191449B (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

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

Publications (2)

Publication Number Publication Date
CN110191449A CN110191449A (en) 2019-08-30
CN110191449B true CN110191449B (en) 2022-02-18

Family

ID=67718763

Family Applications (1)

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

Country Status (2)

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

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113395731A (en) * 2020-03-13 2021-09-14 华为技术有限公司 Method and device for determining data caching condition
CN114640978A (en) * 2020-12-16 2022-06-17 华为技术有限公司 Heartbeat synchronization method, electronic equipment and system
CN113811018A (en) * 2021-09-10 2021-12-17 广东博智林机器人有限公司 Mesh network communication method and device, electronic equipment and storage medium
CN115529579B (en) * 2022-04-12 2023-06-20 荣耀终端有限公司 Equipment discovery method and device
CN114826796B (en) * 2022-06-29 2022-10-28 京东方艺云(杭州)科技有限公司 Power supply switching circuit of dual-communication module

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101909347A (en) * 2009-06-05 2010-12-08 联发科技股份有限公司 Wireless local area network (WLAN) transmission system, system of coexistence of WLAN and another type of wireless transmission and methods thereof
CN107801222A (en) * 2016-09-06 2018-03-13 中兴通讯股份有限公司 Bluetooth and WiFi switching method and system, client and wireless access point equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8744356B2 (en) * 2008-03-27 2014-06-03 Mediatek Inc. Apparatuses and methods for coordination between plurality of co-located wireless communication modules via one wire
US10165516B2 (en) * 2016-06-29 2018-12-25 Silicon Laboratories Inc. Systems and methods for switched protocol wireless connection
CN107770881A (en) * 2017-10-27 2018-03-06 三星(中国)半导体有限公司 Transmit the method and device of data
CN109152057A (en) * 2018-08-14 2019-01-04 Oppo广东移动通信有限公司 Timeslice distribution method, device and electronic equipment
CN108901077B (en) * 2018-08-14 2020-07-21 深圳创维数字技术有限公司 Antenna ratio setting method and device, user equipment and storage medium
CN109526063A (en) * 2018-12-28 2019-03-26 Oppo广东移动通信有限公司 Communicating control method, electronic equipment and computer readable storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101909347A (en) * 2009-06-05 2010-12-08 联发科技股份有限公司 Wireless local area network (WLAN) transmission system, system of coexistence of WLAN and another type of wireless transmission and methods thereof
CN107801222A (en) * 2016-09-06 2018-03-13 中兴通讯股份有限公司 Bluetooth and WiFi switching method and system, client and wireless access point equipment

Also Published As

Publication number Publication date
CN110191449A (en) 2019-08-30
WO2020237703A1 (en) 2020-12-03

Similar Documents

Publication Publication Date Title
CN110191449B (en) Communication mode switching method, device, storage medium, processor and system
CN110831123B (en) Signal sending and receiving method, network equipment and terminal
US11044672B2 (en) Station wake-up method and station
EP3522613B1 (en) Wakeup method and apparatus
TW201838364A (en) Method and apparatus for sending information and channel monitoring processing
CN109314923B (en) Site awakening method, related equipment and system
CN104796971A (en) System and method for low power signaling in wireless local area network
US8243647B2 (en) Radio access control apparatus, mobile station and method
KR20150100205A (en) Method and apparatus for saving power of user equipment in wireless communication system supporing device to device communication
KR101498022B1 (en) Methods for transmitting and receiving paging messages in a communication system
CN111417135B (en) BWP adjusting method and device
CN110691430B (en) Awakening method and device of Internet of things terminal, storage medium and base station
CN111417182A (en) Data transmission method, device, storage medium, processor and system
CN110177343B (en) Broadcast frame processing method, device, storage medium, processor and system
CN110896558A (en) Working mode switching method, terminal and network equipment
CN110691399B (en) Internet of things terminal, awakening method and device thereof and storage medium
CN105636190B (en) A kind of micro power radio communication Low-power-consumptiocontrol control method, terminal and system
CN106231533B (en) Method and apparatus for short-range communication
US20220150831A1 (en) Wakeup Radio for Low Power Nodes in Bluetooth
CN112888050B (en) Equipment energy saving method and device and computer storage medium
EP3820203B1 (en) Interactive electronic label device communication system and method
KR100415579B1 (en) Power management methode of wlan card
JP2015149579A (en) Radio access point device, radio communication terminal, and radio communication system
CN220606092U (en) Dual-mode communication module and mobile robot
WO2023030083A1 (en) Discontinuous reception method, device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant