CN110177343B - Broadcast frame processing method, device, storage medium, processor and system - Google Patents

Broadcast frame processing method, device, storage medium, processor and system Download PDF

Info

Publication number
CN110177343B
CN110177343B CN201910459730.0A CN201910459730A CN110177343B CN 110177343 B CN110177343 B CN 110177343B CN 201910459730 A CN201910459730 A CN 201910459730A CN 110177343 B CN110177343 B CN 110177343B
Authority
CN
China
Prior art keywords
communication
communication device
broadcast frame
preset
mode
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
CN201910459730.0A
Other languages
Chinese (zh)
Other versions
CN110177343A (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 CN201910459730.0A priority Critical patent/CN110177343B/en
Publication of CN110177343A publication Critical patent/CN110177343A/en
Application granted granted Critical
Publication of CN110177343B publication Critical patent/CN110177343B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C17/00Arrangements for transmitting signals characterised by the use of a wireless electrical link
    • G08C17/02Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/70Services for machine-to-machine communication [M2M] or machine type communication [MTC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0212Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave
    • H04W52/0216Power saving arrangements in terminal devices managed by the network, e.g. network or access point is master and terminal is slave using a pre-established activity schedule, e.g. traffic indication frame
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05BELECTRIC HEATING; ELECTRIC LIGHT SOURCES NOT OTHERWISE PROVIDED FOR; CIRCUIT ARRANGEMENTS FOR ELECTRIC LIGHT SOURCES, IN GENERAL
    • H05B47/00Circuit arrangements for operating light sources in general, i.e. where the type of light source is not relevant
    • H05B47/10Controlling the light source
    • H05B47/175Controlling the light source by remote control
    • H05B47/19Controlling the light source by remote control via wireless transmission
    • GPHYSICS
    • G08SIGNALLING
    • G08CTRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
    • G08C2201/00Transmission systems of control signals via wireless link
    • G08C2201/10Power supply of remote control devices
    • G08C2201/12Power saving techniques of remote control or controlled devices
    • 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/04Terminal devices adapted for relaying to or from another terminal or user
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02BCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO BUILDINGS, e.g. HOUSING, HOUSE APPLIANCES OR RELATED END-USER APPLICATIONS
    • Y02B20/00Energy efficient lighting technologies, e.g. halogen lamps or gas discharge lamps
    • Y02B20/40Control techniques providing energy savings, e.g. smart controller or presence detection
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The invention discloses a method, a device, a storage medium, a processor and a system for processing a broadcast frame. The method comprises the following steps: determining that the first communication equipment is switched from a first communication mode to a second communication mode; determining a control instruction to be sent in response to a control operation acting on the third communication device; and repeatedly sending a broadcast frame to the first communication equipment within a preset time length, wherein the broadcast frame carries a control instruction. The invention solves the technical problem that in the process of communication interaction between the electronic equipment and the adaptive BLE controller, if the BLE controller sends the control instruction to the electronic equipment in a broadcasting mode, the packet loss probability is increased to a greater extent, so that the electronic equipment cannot normally receive the control instruction.

Description

Broadcast frame processing 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 processing a broadcast frame.
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 addition, in the process of communication and interaction between the electronic device (for example, a home appliance used in a smart home) provided in the related art and the adapted BLE controller (for example, a remote controller adapted to the home appliance), if the BLE controller sends a control instruction to the electronic device in a broadcast manner, the packet loss probability is increased to a greater extent, so that the electronic device cannot normally receive the control instruction.
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 processing a broadcast frame, so as to at least solve the technical problem that, in a process of performing communication interaction between an electronic device and an adaptive BLE controller, if the BLE controller sends a control instruction to the electronic device in a broadcast manner, packet loss probability is increased to a greater extent, so that the electronic device cannot normally receive the control instruction.
According to an embodiment of the present invention, there is also provided a method for processing a broadcast frame, including:
determining that the first communication equipment is switched from a first communication mode to a second communication mode, wherein the first communication equipment is communicated 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 is in point-to-point communication with third communication equipment in the second communication mode; determining a control instruction to be sent in response to a control operation acting on the third communication device; and repeatedly sending a broadcast frame to the first communication equipment within a preset time length, wherein the broadcast frame carries a control instruction.
Optionally, the preset duration is greater than the preset beacon interval.
Optionally, the repeatedly sending the broadcast frame to the first communication device within the preset time includes: and repeatedly sending the broadcast frame to the first communication equipment through a preset channel within a preset time length, 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, after repeatedly sending the broadcast frame to the first communication device within the preset time duration, the method further includes: and if a feedback message from the first communication equipment is received within the preset time length, stopping sending the broadcast frame before the end time of the preset time length is reached, wherein the feedback message is used for indicating that the first communication equipment successfully executes the control instruction.
Optionally, after repeatedly sending the broadcast frame to the first communication device within the preset time duration, the method further includes: and if the feedback message from the first communication equipment is not received when the end time of the preset time length is reached, stopping sending the broadcast frame and entering a dormant state, wherein the feedback message is used for indicating that the first communication equipment has successfully executed the control command.
Optionally, repeatedly sending the broadcast frame to the first communication device via the preset channel within the preset duration includes: and repeatedly sending the broadcast frame to the first communication equipment through a preset channel at equal time intervals within a preset time length.
According to an embodiment of the present invention, there is also provided a broadcast frame processing apparatus, including:
the device comprises a determining module, a sending module and a receiving module, wherein the determining module is used for determining that first communication equipment is switched from a first communication mode to a second communication mode, the first communication equipment is communicated with external communication equipment through second communication equipment in the first communication mode, the second communication equipment is used for establishing a wireless local area network, the first communication equipment is in point-to-point communication with third communication equipment in the second communication mode, and a control instruction to be sent is determined in response to control operation acting on the third communication equipment; and the processing module is used for repeatedly sending the broadcast frame to the first communication equipment within a preset time length, wherein the broadcast frame carries the control instruction.
Optionally, the preset duration is greater than the preset beacon interval.
Optionally, the processing module 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 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 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 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 is further configured to repeatedly send the broadcast frame to the first communication device via a preset channel at equal time intervals within a preset time duration.
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 on which the storage medium is located is controlled to execute the method for processing the broadcast frame according to any one of the above.
According to an embodiment of the present invention, there is further provided a processor configured to execute a program, where the program executes a processing method of a broadcast frame according to any one of the foregoing methods.
According to an embodiment of the present invention, there is also provided a system for switching communication modes, including: the first communication device, the second communication device and the third communication device, wherein the third communication device includes the processing apparatus of the broadcast frame.
In at least some embodiments of the present invention, by determining that the first communication device switches from the first communication mode to the second communication mode, 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 the wireless local area network, and the first communication device performs peer-to-peer communication with the third communication device in the second communication mode, and by responding to the control operation performed on the third communication device, determining the control command to be sent, and repeatedly sending the broadcast frame carrying the control command to the first communication device within a preset time period, the purpose of increasing the probability that the first communication device successfully receives the control command by repeatedly sending the broadcast frame to the first communication device within the preset time period is achieved, thereby increasing the communication stability (especially the stability of BLE) of the electronic device, the technical effect of reducing the packet loss probability of the electronic equipment in the communication interaction process with the adaptive BLE controller is achieved, and therefore the technical problem that in the communication interaction process of the electronic equipment with the adaptive BLE controller, if the BLE controller sends a control instruction to the electronic equipment in a broadcasting mode, the packet loss probability is increased to a greater extent, and the electronic equipment cannot normally receive the control instruction in the related art is 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 equipment 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, awakening a first communication component on first communication equipment according to a preset beacon interval, wherein the first communication equipment 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 device 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 component and the BLE component and reducing the packet loss rate caused by time division multiplexing are achieved, and the technical problem that in the process of communication interaction of the electronic equipment and the adaptive BLE controller in the related technology, if the BLE controller sends a control instruction to the electronic equipment in a broadcasting mode, the packet loss probability can be increased to a greater extent, and the electronic equipment cannot normally receive the control instruction is 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 status 1 as an example, firstly, the status 1 sends Nulldata 1 to the AP, where a value of an STA field carried by the Nulldata 1 is 0, which indicates that the status 1 is in the WiFi operating mode. Second, state 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 equipment 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 equipment 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 equipment 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 (9)

1. A method for processing broadcast frames, comprising:
determining that a 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 performs point-to-point communication with a third communication device in the second communication mode;
determining a control instruction to be sent in response to a control operation acting on the third communication device;
repeatedly sending a broadcast frame to the first communication equipment within a preset time length, wherein the broadcast frame carries the control instruction;
the preset duration is greater than a preset beacon interval, wherein the preset beacon interval is a time interval for awakening a first communication assembly on the first communication equipment, and the first communication assembly is used for communicating with external communication equipment through the second communication equipment in the first communication mode.
2. The method of claim 1, wherein repeatedly transmitting the broadcast frame to the first communication device within the preset time duration comprises:
and repeatedly sending the broadcast frame to the first communication equipment through a preset channel within the preset time length, wherein the preset channel is selected from a plurality of alternative channels and is determined by the negotiation between the first communication equipment and the third communication equipment in advance.
3. The method of claim 1, wherein after repeatedly transmitting the broadcast frame to the first communication device within the preset time period, the method further comprises:
and if a feedback message from the first communication equipment is received within the preset time length, stopping sending the broadcast frame before the end time of the preset time length is reached, wherein the feedback message is used for indicating that the first communication equipment has successfully executed the control instruction.
4. The method of claim 1, wherein after repeatedly transmitting the broadcast frame to the first communication device within the preset time period, the method further comprises:
and if the feedback message from the first communication equipment is not received when the ending time of the preset duration is reached, stopping sending the broadcast frame and entering a dormant state, wherein the feedback message is used for indicating that the first communication equipment has successfully executed the control instruction.
5. The method of claim 2, wherein repeatedly transmitting the broadcast frame to the first communication device via the predetermined channel within the predetermined duration comprises:
and repeatedly sending the broadcast frame to the first communication equipment through the preset channel according to the equal time interval within the preset time length.
6. An apparatus for processing a broadcast frame, comprising:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining that a first communication device is switched from a first communication mode to a second communication mode, the first communication device is communicated with external communication devices 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 is communicated with a third communication device point to point in the second communication mode; responding to the control operation acted on the third communication equipment, and determining a control instruction to be sent;
the processing module is used for repeatedly sending a broadcast frame to the first communication equipment within a preset time length, wherein the broadcast frame carries the control instruction;
the preset duration is greater than a preset beacon interval, wherein the preset beacon interval is a time interval for awakening a first communication assembly on the first communication equipment, and the first communication assembly is used for communicating with external communication equipment through the second communication equipment in the first communication mode.
7. A storage medium, characterized in that the storage medium includes a stored program, wherein when the program runs, a device in which the storage medium is located is controlled to execute the processing method of the broadcast frame according to any one of claims 1 to 5.
8. A processor, characterized in that the processor is configured to execute a program, wherein the program executes the method for processing a broadcast frame according to any one of claims 1 to 5.
9. A system for processing broadcast frames, comprising: first communication device, second communication device and third communication device, wherein the third communication device comprises the processing apparatus of the broadcast frame of claim 6.
CN201910459730.0A 2019-05-29 2019-05-29 Broadcast frame processing method, device, storage medium, processor and system Active CN110177343B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910459730.0A CN110177343B (en) 2019-05-29 2019-05-29 Broadcast frame processing method, device, storage medium, processor and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910459730.0A CN110177343B (en) 2019-05-29 2019-05-29 Broadcast frame processing method, device, storage medium, processor and system

Publications (2)

Publication Number Publication Date
CN110177343A CN110177343A (en) 2019-08-27
CN110177343B true CN110177343B (en) 2022-02-18

Family

ID=67695985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910459730.0A Active CN110177343B (en) 2019-05-29 2019-05-29 Broadcast frame processing method, device, storage medium, processor and system

Country Status (1)

Country Link
CN (1) CN110177343B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586917B (en) * 2020-06-23 2022-12-20 台州市椒江萤星电子电器有限公司 LED lamp string system and control method thereof
CN112350901B (en) * 2020-10-19 2022-01-21 珠海格力电器股份有限公司 Device control method, storage medium, mobile terminal, and electronic device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203325449U (en) * 2013-07-05 2013-12-04 中国华录集团有限公司 Blue ray player controlled by using smart terminal
CN104574899A (en) * 2014-12-15 2015-04-29 惠州Tcl移动通信有限公司 Intelligent control method and terminal therefor
CN104731066A (en) * 2015-02-11 2015-06-24 珠海格力电器股份有限公司 Intelligent housing system and control method thereof
CN104955137A (en) * 2015-05-21 2015-09-30 北京深思数盾科技有限公司 Wireless device and broadcasting method thereof
CN105068432A (en) * 2015-07-03 2015-11-18 上海理工大学 Extensible intelligent home network control system
CN105910238A (en) * 2016-05-13 2016-08-31 广东美的暖通设备有限公司 Multi-online air-conditioning system and communication method and device thereof
CN107450332A (en) * 2017-07-31 2017-12-08 广东美的制冷设备有限公司 Information transferring method, system, intelligent appliance, control terminal and storage medium
CN108566687A (en) * 2018-04-25 2018-09-21 成都西谷曙光数字技术有限公司 LDSW ultra-low power consumption wireless self-organizing network system and communication means
CN108694823A (en) * 2018-04-11 2018-10-23 苏州浩瀚集成电路有限公司 Synchronisation control means in wireless network and intelligent domestic system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6456794B2 (en) * 2015-03-31 2019-01-23 シャープ株式会社 Terminal and control method thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN203325449U (en) * 2013-07-05 2013-12-04 中国华录集团有限公司 Blue ray player controlled by using smart terminal
CN104574899A (en) * 2014-12-15 2015-04-29 惠州Tcl移动通信有限公司 Intelligent control method and terminal therefor
CN104731066A (en) * 2015-02-11 2015-06-24 珠海格力电器股份有限公司 Intelligent housing system and control method thereof
CN104955137A (en) * 2015-05-21 2015-09-30 北京深思数盾科技有限公司 Wireless device and broadcasting method thereof
CN105068432A (en) * 2015-07-03 2015-11-18 上海理工大学 Extensible intelligent home network control system
CN105910238A (en) * 2016-05-13 2016-08-31 广东美的暖通设备有限公司 Multi-online air-conditioning system and communication method and device thereof
CN107450332A (en) * 2017-07-31 2017-12-08 广东美的制冷设备有限公司 Information transferring method, system, intelligent appliance, control terminal and storage medium
CN108694823A (en) * 2018-04-11 2018-10-23 苏州浩瀚集成电路有限公司 Synchronisation control means in wireless network and intelligent domestic system
CN108566687A (en) * 2018-04-25 2018-09-21 成都西谷曙光数字技术有限公司 LDSW ultra-low power consumption wireless self-organizing network system and communication means

Also Published As

Publication number Publication date
CN110177343A (en) 2019-08-27

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
CN108738109B (en) Site awakening method and site
US11743819B2 (en) Low-power activation of accessory in sleep state
EP3522613B1 (en) Wakeup method and apparatus
CN109314923B (en) Site awakening method, related equipment and system
CN104796971A (en) System and method for low power signaling in wireless local area network
US20170201940A1 (en) Dynamic delivery traffic indication message implementations
KR20150100205A (en) Method and apparatus for saving power of user equipment in wireless communication system supporing device to device communication
US8243647B2 (en) Radio access control apparatus, mobile station and method
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
CN110177343B (en) Broadcast frame processing method, device, storage medium, processor and system
CN111417182A (en) Data transmission 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
CN106231533B (en) Method and apparatus for short-range communication
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
WO2023169397A1 (en) Discontinuous reception (drx) parameter configuration method, device, terminal, and network side device

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