CN110191449A - Switching method, device, storage medium, processor and the system of communication mode - Google Patents
Switching method, device, storage medium, processor and the system of communication mode Download PDFInfo
- Publication number
- CN110191449A CN110191449A CN201910460101.XA CN201910460101A CN110191449A CN 110191449 A CN110191449 A CN 110191449A CN 201910460101 A CN201910460101 A CN 201910460101A CN 110191449 A CN110191449 A CN 110191449A
- Authority
- CN
- China
- Prior art keywords
- communication
- communication apparatus
- mode
- communication mode
- frame
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W36/00—Hand-off or reselection arrangements
- H04W36/0005—Control or signalling for completing the hand-off
- H04W36/0011—Control or signalling for completing the hand-off for data sessions of end-to-end connection
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/06—Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephone Function (AREA)
Abstract
The invention discloses a kind of switching method of communication mode, device, storage medium, processor and systems.This method comprises: waking up the first communication part on the first communication apparatus according to actual beacon interval;The beacon frame from the second communication apparatus is listened to by the first communication part, wherein the first instruction information is at least carried in beacon frame, the first instruction information is used to indicate the downlink data for whether being stored on the second communication apparatus and being sent to the first communication apparatus;It is switched between the first communication mode and the second communication mode according to the first instruction information.The present invention solves to be integrated on the same chip in WiFi component and BLE component in the related technology, in the case where alternately being worked by the way of time-sharing multiplex, easily cause the operation complexity of the Collaborative Control of WiFi component and BLE component it is higher, be easy cause higher packet loss the technical issues of.
Description
Technical field
The present invention relates to the communications field, in particular to a kind of switching method of communication mode, device, storage medium,
Processor and system.
Background technique
Wireless Fidelity (WiFi) is the Wireless Local Area network technology for being created in 802.11 standard of IEEE, by wireless
Electric wave is networked, and is usually arranged as wireless router.It can be used in the effective range that the electric wave of the wireless router covers
WiFi connection type is networked.
Bluetooth Low Energy (BLE) is a kind of personal area network technology.Compared with classical bluetooth, BLE is keeping equivalent communication
Power consumption and cost are reduced while range significantly.
Currently, being usually provided simultaneously with WiFi component and BLE component on electronic equipment provided by the related technology, configure
Mode generally includes following two:
Mode one, WiFi component and BLE component are respectively arranged at two different chips, and each chip respectively corresponds one
A antenna, works independently.
In this mode, WiFi component and BLE component are without cooperating, not interfereing with each other, and therefore, communication performance is good.
However, the defect of which is: higher using the hardware cost of double-chip structure.
Mode two, WiFi component and BLE component are integrated on the same chip, share same root antenna.
In this mode, WiFi component and BLE component are alternately worked by the way of time-sharing multiplex, therefore, the party
The hardware cost of single integrated chip structure used by formula is lower.However, the defect of which is: due to WiFi component and
BLE component is alternately worked by the way of time-sharing multiplex, high to the Collaborative Control requirement of WiFi component and BLE component,
Otherwise it will cause higher packet loss.
For above-mentioned problem, currently no effective solution has been proposed.
Summary of the invention
The present invention at least partly embodiment provides switching method, device, storage medium, the processor of a kind of communication mode
And system, at least to solve to be integrated on the same chip in WiFi component and BLE component in the related technology, using time-sharing multiplex
Mode alternately work in the case where, easily cause the operation complexity of the Collaborative Control of WiFi component and BLE component it is higher,
It is easy the technical issues of causing higher packet loss.
A wherein embodiment according to the present invention, provides a kind of switching method of communication mode, comprising:
The first communication part on the first communication apparatus is waken up according to actual beacon interval, wherein the first communication part exists
It is communicated under first communication mode by the second communication apparatus and extraneous communication apparatus, the second communication apparatus is wireless for setting up
Local area network;The beacon frame from the second communication apparatus is listened to by the first communication part, wherein is at least carried in beacon frame
First instruction information, whether the first instruction information, which is used to indicate to be stored on the second communication apparatus, is sent to the first communication apparatus
Downlink data;It is switched between the first communication mode and the second communication mode according to the first instruction information, wherein first
The second communication part on communication apparatus is carrying out point-to- point communication between third communication apparatus under the second communication mode.
Optionally, it is switched between the first communication mode and the second communication mode according to the first instruction information and includes:
Determine not stored on the second communication apparatus there is the downlink data for being sent to the first communication apparatus according to the first instruction information;Control
First communication part enters dormant state, and controls the second communication part and enter wake-up states, so that the first communication apparatus is in
Second communication mode.
Optionally, it is switched between the first communication mode and the second communication mode according to the first instruction information and includes:
It is determined according to the first instruction information and is stored with the downlink data for being sent to the first communication apparatus on the second communication apparatus;Control the
One communication part stays awake for, and controls the second communication part and enter dormant state, so that the first communication apparatus is in the
One communication mode.
Optionally, it is being switched between the first communication mode and the second communication mode according to the first instruction information
Afterwards, further includes: send the first empty data frame to the second communication apparatus, wherein carry the second instruction letter in the first empty data frame
Breath, second indication information are identified as the first numerical value, and the first numerical value is used to indicate the first communication part and is in wake-up states;Pass through
First communication part receives the downlink data from the second communication apparatus;Corresponding control operation is executed according to downlink data.
Optionally, after sending the first empty data frame to the second communication apparatus, further includes: determining downlink data reception
In the case where finishing, the first communication part of control enters dormant state, and controls the second communication part and enter wake-up states, so that
First communication apparatus is in the second communication mode;The second empty data frame is sent to the second communication apparatus, wherein the second empty data frame
In carry second indication information, second indication information is identified as second value, and second value is used to indicate the first communication group
Part is in a dormant state.
Optionally, the above method further include: the broadcast frame from third communication apparatus is listened to by the second communication part,
Wherein, control instruction is carried in broadcast frame;Corresponding control operation is executed according to control instruction.
Optionally, listening to broadcast frame by the second communication part includes: to be detectd by the second communication part via default channel
It listens to the radio programme frame, wherein default channel is chosen and preparatory by the first communication apparatus and third communication apparatus from multiple alternative channels
Negotiate to determine.
Optionally, updated beacon interval is also carried in beacon frame, and beacon frame is being listened to by the first communication part
Later, further includes: actual beacon interval is adjusted to updated beacon interval, and is called out again according to updated beacon interval
Awake first communication part.
A wherein embodiment according to the present invention, additionally provides a kind of switching device of communication mode, comprising:
Wake-up module, for waking up the first communication part on the first communication apparatus according to actual beacon interval, wherein the
One communication part is communicated under the first communication mode by the second communication apparatus and extraneous communication apparatus, the second communication apparatus
For setting up WLAN;Module is listened to, for listening to the beacon from the second communication apparatus by the first communication part
Frame, wherein at least carry the first instruction information in beacon frame, the first instruction information be used to indicate on the second communication apparatus whether
It is stored with the downlink data for being sent to the first communication apparatus;Switching module, for being communicated according to the first instruction information first
It is switched between mode and the second communication mode, wherein the second communication part on the first communication apparatus communicates mould second
Point-to- point communication is carried out under formula between third communication apparatus.
Optionally, switching module includes: the first determination unit, for determining the second communication apparatus according to the first instruction information
It is above not stored to have the downlink data for being sent to the first communication apparatus;First control unit, for control the first communication part into
Enter dormant state, and control the second communication part and enter wake-up states, so that the first communication apparatus is in the second communication mode.
Optionally, switching module includes: the second determination unit, for determining the second communication apparatus according to the first instruction information
On be stored with the downlink data for being sent to the first communication apparatus;Second control unit is kept for controlling the first communication part
Wake-up states, and control the second communication part and enter dormant state, so that the first communication apparatus is in the first communication mode.
Optionally, above-mentioned apparatus further include: the first sending module, for sending the first empty data to the second communication apparatus
Frame, wherein second indication information is carried in the first empty data frame, second indication information is identified as the first numerical value, the first number
Value is used to indicate the first communication part and is in wake-up states;Receiving module, for being received by the first communication part from the
The downlink data of two communication apparatus;Execution module is operated for executing corresponding control according to downlink data.
Optionally, above-mentioned apparatus further include: control module, for controlling in the case where determining that downlink data receives
It makes the first communication part and enters dormant state, and control the second communication part and enter wake-up states, so that at the first communication apparatus
In the second communication mode;Second sending module, for sending the second empty data frame to the second communication apparatus, wherein the second empty number
According to second indication information is carried in frame, second indication information is identified as second value, and it is logical that second value is used to indicate first
Interrogate component in a dormant state.
Optionally, module is listened to, is also used to listen to the broadcast frame from third communication apparatus by the second communication part,
Wherein, control instruction is carried in broadcast frame;Corresponding control operation is executed according to control instruction.
Optionally, module is listened to, for listening to broadcast frame via default channel by the second communication part, wherein default
It is chosen from multiple alternative channels and negotiates to determine in advance by the first communication apparatus and third communication apparatus in channel.
Optionally, updated beacon interval, above-mentioned apparatus are also carried in beacon frame further include: processing module is used for
Actual beacon interval is adjusted to updated beacon interval, and wakes up the first communication group again according to updated beacon interval
Part.
A wherein embodiment according to the present invention additionally provides a kind of storage medium, and storage medium includes the program of storage,
In, in program operation, equipment where control storage medium executes the switching method of the communication mode of above-mentioned any one.
A wherein embodiment according to the present invention additionally provides a kind of processor, and processor is for running program, wherein journey
The switching method of the communication mode of above-mentioned any one is executed when sort run.
A wherein embodiment according to the present invention, additionally provides a kind of switching system of communication mode, comprising: the first communication is set
Standby, the second communication apparatus and third communication apparatus, wherein the first communication apparatus includes the switching device of above-mentioned communication mode.
In the present invention at least partly embodiment, using according to first on the first communication apparatus of actual beacon interval wake-up
Communication part, first communication part are led under the first communication mode by the second communication apparatus and extraneous communication apparatus
News, second communication apparatus are used to set up the mode of WLAN, are listened to by the first communication part from the second communication
The beacon frame of equipment at least carries the first instruction information in the beacon frame, which is used to indicate the second communication
Whether the downlink data that is sent to first communication apparatus is stored in equipment, and according to the first instruction information in the first communication
It is switched between mode and the second communication mode, the second communication part on first communication apparatus is under the second communication mode
Point-to- point communication is carried out between third communication apparatus, has reached the first communication part of optimization (such as: WiFi component) and second
The purpose of communication part (such as: BLE component) collaborative work logic, to realize the communication stability for improving electronic equipment
(the especially stability of WiFi) reduces the operation complexity of the Collaborative Control of WiFi component and BLE component and is answered by timesharing
With the technical effect of the packet loss caused, so solve be integrated in the related technology in WiFi component and BLE component it is same
On a chip, in the case where alternately working by the way of time-sharing multiplex, the collaboration of WiFi component and BLE component is easily caused
The operation complexity of control is higher, is easy the technical issues of causing higher packet loss.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the wherein structural schematic diagram of the switching system of the communication mode of an embodiment according to the present invention;
Fig. 2 is the wherein flow chart of the switching method of the communication mode of an embodiment according to the present invention;
Fig. 3 is the WiFi component of a wherein alternative embodiment according to the present invention and the timing control schematic diagram of BLE component;
Fig. 4 is the wherein flow chart of the processing method of the broadcast frame of an embodiment according to the present invention;
Fig. 5 is the wherein work flow diagram of the switching system of the communication mode of an alternative embodiment according to the present invention;
Fig. 6 is the wherein structural block diagram of the switching device of the communication mode of an embodiment according to the present invention;
Fig. 7 is the wherein structural block diagram of the switching device of the communication mode of an alternative embodiment according to the present invention;
Fig. 8 is the wherein structural block diagram of the processing unit of the broadcast frame of an embodiment according to the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only
The embodiment of a part of the invention, instead of all the embodiments.Based on the embodiments of the present invention, ordinary skill people
The model that the present invention protects all should belong in member's every other embodiment obtained without making creative work
It encloses.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should be understood that using in this way
Data be interchangeable under appropriate circumstances, so as to the embodiment of the present invention described herein can in addition to illustrating herein or
Sequence other than those of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that cover
Cover it is non-exclusive include, for example, the process, method, system, product or equipment for containing a series of steps or units are not necessarily limited to
Step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, product
Or other step or units that equipment is intrinsic.
A wherein embodiment according to the present invention, provides a kind of embodiment of the switching system of communication mode.The communication mould
The switching system of formula includes: the first communication apparatus, the second communication apparatus and third communication apparatus.It is arranged on first communication apparatus
There is communication module group, wherein the communication module group includes: the first communication part and the second communication part.Second communication apparatus is used for group
Build WLAN.First communication part under the first communication mode by the second communication apparatus and extraneous communication apparatus (such as:
The mobile devices control terminal such as smart phone, cloud server) it is communicated.The second communication part on first communication apparatus is
Point-to- point communication is carried out under two communication modes between third communication apparatus.That is, the first communication apparatus is under the second communication mode
Wireless personal area network is formed with third communication apparatus.
In one alternate embodiment, Fig. 1 is the wherein switching system of the communication mode of an embodiment according to the present invention
Structural schematic diagram, as shown in Figure 1, the first communication apparatus is work station (STATION), the second communication apparatus is WiFi access point
(AP), third communication apparatus is BLE controller.First communication mode is WiFi operating mode, and the second communication mode is BLE work
Mode.First communication part included in communication module group on STATION is WiFi component, the communication module group on STATION
Included in the second communication part be BLE component.
By taking smart home application scenarios as an example, above-mentioned work station can further be controlling intelligent household appliances, such as: intelligence electricity
Depending on, intelligent refrigerator, intelligent desk lamp, intelligent air condition etc..Above-mentioned WiFi AP can further be wireless router.Above-mentioned BLE control
Device can further be the remote controler of controlling intelligent household appliances.
By taking the first communication apparatus is controlling intelligent household appliances as an example, controlling intelligent household appliances may include one or more processors
(processor can include but is not limited to central processing unit (CPU), graphics processor (GPU), Digital Signal Processing (DSP) chip,
The processing unit of microprocessor (MCU) or programmable logic device (FPGA) etc.) and memory for storing data.It is optional
Ground, above-mentioned controlling intelligent household appliances can also include the communication module group and input-output equipment for communication function.This field is general
Logical technical staff is appreciated that above structure description is only to illustrate, and does not cause to limit to the structure of above-mentioned controlling intelligent household appliances
It is fixed.More perhaps less component is described than above structure or is had and above-mentioned knot for example, controlling intelligent household appliances may also include
Structure describes different configurations.
Memory can be used for storing computer program, for example, the software program and module of application software, such as present invention are real
Apply the corresponding computer program of switching method of the communication mode in example, the calculating that processor is stored in memory by operation
Machine program realizes the switching method of above-mentioned communication mode thereby executing various function application and data processing.Memory
May include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory,
Or other non-volatile solid state memories.In some instances, memory can further comprise remotely setting relative to processor
The memory set, these remote memories can pass through network connection to controlling intelligent household appliances.The example of above-mentioned network include but
It is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
WiFi component in communication module group includes radio frequency (Radio Frequency, referred to as RF) module, is used to pass through
Wireless mode is communicated with internet.
Similarly, by taking third communication apparatus is the remote controler of controlling intelligent household appliances as an example, remote controler may include one or more
(processor can include but is not limited to central processing unit (CPU), graphics processor (GPU), Digital Signal Processing to a processor
(DSP) processing unit of chip, microprocessor (MCU) or programmable logic device (FPGA) etc.) and depositing for storing data
Reservoir.Optionally, above-mentioned remote controler can also include the communication part and input-output equipment for point-to-point communication.Ability
Domain those of ordinary skill is appreciated that above structure description is only to illustrate, and does not cause to limit to the structure of above-mentioned remote controler.
More perhaps less component is described than above structure or is had with above structure description not for example, remote controler may also include
Same configuration.
Memory can be used for storing computer program, for example, the software program and module of application software, such as present invention are real
Apply the corresponding computer program of processing method of the broadcast frame in example, the computer that processor is stored in memory by operation
Program realizes the processing method of above-mentioned broadcast frame thereby executing various function application and data processing.Memory can wrap
Include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or
Other non-volatile solid state memories.In some instances, memory can further comprise remotely located relative to processor
Memory, these remote memories can pass through network connection to remote controler.The example of above-mentioned network includes but is not limited to interconnect
Net, intranet, local area network, mobile radio communication and combinations thereof.
A wherein embodiment according to the present invention, provides a kind of embodiment of the switching method of communication mode, needs to illustrate
, step shown in the flowchart of the accompanying drawings can hold in a computer system such as a set of computer executable instructions
Row, although also, logical order is shown in flow charts, and it in some cases, can be to be different from sequence herein
Execute shown or described step.
A kind of switching method of communication mode for running on above-mentioned work station is provided in the present embodiment, and Fig. 2 is basis
The flow chart of the present invention wherein switching method of the communication mode of an embodiment, as shown in Fig. 2, this method comprises the following steps:
Step S20 wakes up the first communication part on the first communication apparatus according to actual beacon interval, wherein first is logical
It interrogates component to be communicated under the first communication mode by the second communication apparatus and extraneous communication apparatus, the second communication apparatus is used for
Set up WLAN;
Step S21 listens to the beacon frame from the second communication apparatus by the first communication part, wherein in beacon frame
At least carry the first instruction information, the first instruction information, which is used to indicate on the second communication apparatus whether to be stored with, is sent to the
The downlink data of one communication apparatus;
Step S22 is switched between the first communication mode and the second communication mode according to the first instruction information,
In, the second communication part on the first communication apparatus is carrying out point-to-point lead between third communication apparatus under the second communication mode
News.
It through the above steps, can be using the first communication group waken up according to actual beacon interval on the first communication apparatus
Part, first communication part are communicated under the first communication mode by the second communication apparatus and extraneous communication apparatus, this
Two communication apparatus are used to set up the mode of WLAN, listen to the letter from the second communication apparatus by the first communication part
Frame is marked, at least carries the first instruction information in the beacon frame, which, which is used to indicate on the second communication apparatus, is
It is no to be stored with the downlink data for being sent to the first communication apparatus, and according to the first instruction information in the first communication mode and the
It is switched between two communication modes, the second communication part on first communication apparatus is logical with third under the second communication mode
Point-to- point communication is carried out between news equipment, has reached the first communication part of optimization (such as: WiFi component) and the second communication part
The purpose of (such as: BLE component) collaborative work logic improves the communication stability of electronic equipment (especially to realize
The stability of WiFi), it reduces the operation complexity of the Collaborative Control of WiFi component and BLE component and is caused by time-sharing multiplex
Packet loss technical effect, and then solve and be integrated on the same chip in WiFi component and BLE component in the related technology,
In the case where alternately working by the way of time-sharing multiplex, the behaviour of the Collaborative Control of WiFi component and BLE component is easily caused
The technical issues of making higher complexity, easy initiation higher packet loss.
The process alternately to be worked by the way of time-sharing multiplex in view of the relevant technologies in WiFi component and BLE component
In, if WiFi component is in running order, BLE component is in a dormant state.Similarly, if BLE component is in work shape
State, then WiFi component is in a dormant state.Therefore, higher packet loss will certainly be caused using the working method of time-sharing multiplex,
The problem of additionally easily causing broken string.For being divided into 100ms between above-mentioned actual beacon, according to used by the relevant technologies
WiFi component and BLE component time-sharing multiplex mode, in the time range of first 100ms, WiFi component is in running order,
And BLE component is in a dormant state.In the time range of second 100ms, BLE component is in running order, and WiFi group
Part is in a dormant state.It is and so on alternately performed, details are not described herein again.
For this purpose, being assisted using the battery saving mode (power save mode) of IEEE 802.11 by WiFi component low-power consumption
View so that the WiFi component operation time is shortened as far as possible, and will distribute to the use of BLE component the most of the time.
IEEE 802.11power save mode is the WiFi low power consumption protocol an of standard.Under such an arrangement, WiFi
STATION, into battery saving mode, closes RF module in the case where no data transmit-receive.STATION according to AP beacon interval
(beacon interval) is devices may wake up periodically, and the beacon frame of AP is listened to this.The beacon frame of AP is substantially AP weeks
The broadcast frame that phase property is sent, wherein the information carried in the broadcast frame can include but is not limited to: the title of AP (such as:
Server identification (Service Set Identifier, referred to as SSID)), cipher mode, whether there is on AP and the AP is closed
The data cached label (flag) of each STATION of connection, such as: Traffic Indication Map (Traffic indication map,
Referred to as TIM) in flag value (being equivalent to the first instruction information).
By taking the STATION1 in Fig. 1 as an example, STATION 1 is according to the WiFi group waken up on STATION1 at interval of 100ms
Part.The WiFi component under WiFi operating mode by WiFi AP and extraneous communication apparatus (such as: the movement such as smart phone is set
Standby control terminal, cloud server) it is communicated.STATION 1 can be listened to by WiFi component from WiFi AP's
Beacon frame.At least carry the first instruction information in the beacon frame, the first instruction information be used to indicate on WiFi AP whether
It is stored with the downlink data for being sent to STATION 1.STATION 1 according to first instruction information WiFi operating mode with
It is switched between BLE operating mode.BLE component on STATION 1 under BLE operating mode between BLE controller 1 into
Row point-to- point communication.
Fig. 3 is the WiFi component of a wherein alternative embodiment according to the present invention and the timing control schematic diagram of BLE component, such as
Shown in Fig. 3, it can be called out at interval of 100ms by the WiFi component on IEEE 802.11power save mode, STATION
It wakes up primary, receives beacon frame using the WiFi component being arranged on STATION, then immediately enter dormant state again, reached with this
The purpose of power consumption is saved to WiFi component.Simultaneously as the downlink data for being sent to STATION can be cached on AP, therefore,
The downlink data for being sent to STATION can't be lost.In addition, the technology by utilizing IEEE 802.11power save mode
Principle is switched to BLE component operation mode, therefore ensures that electronic equipment exists on the opportunity for the RF module for closing WiFi component
90% or more time is only in WiFi operating mode all in BLE operating mode in very short time range.
Optionally, in step S22, according to first instruction information between the first communication mode and the second communication mode into
Row switching may include step performed below:
Step S220 is determined according to the first instruction information and not stored on the second communication apparatus be sent to the first communication and set
Standby downlink data;
Step S221, the first communication part of control enter dormant state, and control the second communication part and enter wake-up states,
So that the first communication apparatus is in the second communication mode.
Downlink data due to that will be sent to STATION can be buffered in AP in advance, when not stored in AP
Have the STATION it is data cached when, can be arranged in beacon frame represent it is data cached not in the presence of the STATION
TIM mark.TIM uses bitmap (Bitmap) structure, to indicate whether be cached on AP and the associated each STATION of the AP
Downlink data.Each STATION checks the flag value in Bitmap on corresponding position by the Tim field in beacon frame
To determine whether be cached with corresponding downlink data on AP.
Table 1 is to indicate whether the optional example for being cached with the downlink data for being sent to STATION using Bitmap in TIM, such 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 |
Bitmap in TIM usually can be set to the matrix (M be positive integer with N) of M row × N column.Each TIM
Flag respectively corresponds different STATION.It is exemplified by Table 1, the TIM flag of Tim field in the corresponding beacon frame of STATION 1
The TIM flag 2 of Tim field, STATION3 correspond to Tim field in beacon frame in 1, STATION 2 corresponding beacon frame
TIM flag 3 ... and so on, until STATION n corresponds to the TIM flag n of Tim field in beacon frame.If TIM
The value of flag is 1, then it represents that the corresponding downlink data of the STATION is cached on AP;If the value of TIM flag is 0,
Then indicating uncached on AP has the corresponding downlink data of the STATION.It is uncached on AP when being determined according to the value of TIM flag
When having the corresponding downlink data of the STATION, control WiFi component enters dormant state, and controls BLE component and enter wake-up shape
State, so that STATION is in BLE operating mode.Such as: when determining on AP uncached there is this according to the value 0 of TIM flag 1
When the corresponding downlink data of STATION1, STATION 1 will control WiFi component and enter dormant state, and control BLE component
Into wake-up states, so that STATION 1 is in BLE operating mode.
Optionally, in step S22, according to first instruction information between the first communication mode and the second communication mode into
Row switching may include step performed below:
Step S222 indicates that information determines to be stored on the second communication apparatus according to first and is sent to the first communication apparatus
Downlink data;
Step S223, the first communication part of control stay awake for, and control the second communication part and enter dormant state,
So that the first communication apparatus is in the first communication mode.
Still as shown in table 1, the corresponding lower line number of the STATION is cached on AP when determining according to the value of TIM flag
According to when, control WiFi component stays awake for, and controls BLE component and enters dormant state, so that STATION is in WiFi work
Operation mode.Such as: when according to the 2 corresponding downlink data of STATION is cached on the determining AP of the value 1 of TIM flag 2,
STATION 2 will control WiFi component and stay awake for, and controls BLE component and enter dormant state, so that STATION 2
In WiFi operating mode.
Optionally, it in step S22, is carried out between the first communication mode and the second communication mode according to the first instruction information
Can also include step performed below after switching:
Step S23 sends the first empty data frame to the second communication apparatus, wherein carry second in the first empty data frame
Indicate that information, second indication information are identified as the first numerical value, the first numerical value is used to indicate the first communication part and is in wake-up shape
State;
Step S24 receives the downlink data from the second communication apparatus by the first communication part;
Step S25 executes corresponding control according to downlink data and operates.
Empty data (Nulldata) frame is responsible for the power down mode change information of STATION being transmitted to AP.STA (is equivalent to
Second indication information) be a field in Nulldata frame, for by the power down mode change notification of STATION to AP.Table 2
It is as shown in table 2 for the optional example changed using the power down mode of STA instruction STATION:
Table 2
STATION NO. | Nulldata No. | STA |
STATION 1 | Nulldata 1 | 0- indicates work |
STATION 2 | Nulldata 2 | 1- indicates suspend mode |
STATION 3 | Nulldata 3 | 1 |
STATION 4 | Nulldata 4 | 0 |
…… | …… | …… |
STATION n-1 | Nulldata n-1 | 1 |
STATION n | Nulldata n | 0 |
By taking STATION 1 as an example, firstly, STATION 1 sends Nulldata 1 to AP, wherein the Nulldata1 is carried
STA field value be 0, indicate STATION 1 be in WiFi operating mode.Secondly, STATION1 is connect by WiFi component
Receive the downlink data from AP.Then STATION 1 executes corresponding control according to downlink data and operates.Below in conjunction with more
A application scenarios execute corresponding control operation according to downlink data to STATION 1 and are illustrated:
Application scenarios one, hypothesis STATION 1 are intelligent electric lamp, and downlink data is to pass through intelligence set by cloud server
Can electric light need 6 points of control information turned on light automatically on time at night, then STATION 1 will at night 6 according to downlink data
Point is turned on light automatically on time.
Application scenarios two, hypothesis STATION 1 are intelligent electric lamp, and downlink data is to pass through other smart home device (examples
Such as intelligent anti-theft door) user that is detected opens the door and enters the room, and intelligent electric lamp needs the control information turned on light automatically immediately, then
STATION 1 will turn on light according to downlink data as user's illumination automatically immediately.
Application scenarios three, hypothesis STATION 1 are intelligent electric lamp, and downlink data is that user passes through set by smart phone
The brightness regulation of intelligent electric lamp needs to enter the control information of reading model or theater mode, then STATION 1 is according to lower line number
According to lamplight brightness will be adjusted according to reading model or theater mode.
It optionally, can also include following hold after sending the first empty data frame to the second communication apparatus in step S23
Row step:
Step S26, in the case where determining that downlink data receives, the first communication part of control enters dormant state,
And control the second communication part and enter wake-up states, so that the first communication apparatus is in the second communication mode;
Step S27 sends the second empty data frame to the second communication apparatus, wherein carry second in the second empty data frame
Indicate that information, second indication information are identified as second value, second value is used to indicate the first communication part and is in suspend mode shape
State.
By taking STATION2 as an example, in the case where STATION2 determines that downlink data receives, STATION2 control
WiFi component enters dormant state, and controls BLE component and enter wake-up states, so that STATION2 is in BLE operating mode.So
Afterwards, STATION 2 sends Nulldata 2 to AP, wherein the value for the STA field that the Nulldata 2 is carried is 1, is indicated
STATION 2 is in BLE operating mode.
Optionally, the above method can also include step performed below:
Step S28 listens to the broadcast frame from third communication apparatus by the second communication part, wherein in broadcast frame
Carry control instruction;
Step S29 executes corresponding control according to control instruction and operates.
While WiFi component keeps connecting, the BLE component on STATION is without establishing connection and synchronous situation
Under, it still can listen to the broadcast frame from BLE controller.Control instruction is carried in the broadcast frame.STATION will root
Corresponding control operation is executed according to control instruction.
Assuming that STATION is intelligent electric lamp, BLE controller be with the matched remote controler of the intelligent electric lamp, then by the way that this is distant
Control device can send the control instruction turned on light to intelligent electric lamp, and then intelligent electric lamp will execute corresponding open according to control instruction
Lamp operation.Similarly, the control instruction turned off the light can also be sent to intelligent electric lamp by the remote controler, then intelligent electric lamp will
Corresponding operation of turning off the light can be executed according to control instruction.
Optionally, in step S28, listening to broadcast frame by the second communication part may include step performed below:
Step S281 listens to broadcast frame via default channel by the second communication part, wherein default channel is from multiple
It is chosen in alternative channel and negotiates to determine in advance by the first communication apparatus and third communication apparatus.
The broadcasting process of BLE component may work in multiple and different channels (channel), therefore, in order to improve originally
BLE component receives the success rate of data, the broadcasting process of BLE component can be fixed therein any channel.As for reality
It is fixed on which channel, then needs to negotiate to determine in advance with corresponding BLE controller by each STATION, so as to each
STATION listens to the broadcast frame from corresponding BLE controller via fixation channel.
Optionally, updated beacon interval is also carried in beacon frame, in step S21, is detectd by the first communication part
Can also include step performed below after listening beacon frame:
Actual beacon interval is adjusted to updated beacon interval by step S30, and again according to updated beacon interval
The first communication part of secondary wake-up.
In general, AP according to beacon interval (such as: 100ms) send a beacon frame.And this is pre-
If duration can carry out customized adjustment by user, updated beacon interval is obtained.Then, AP can be carried in beacon frame
Beacon frame is simultaneously sent to STATION by the updated beacon interval, so that STATION is called out according to updated beacon interval
Awake WiFi component.
A wherein embodiment according to the present invention, additionally provides a kind of embodiment of the processing method of broadcast frame, needs to illustrate
, step shown in the flowchart of the accompanying drawings can hold in a computer system such as a set of computer executable instructions
Row, although also, logical order is shown in flow charts, and it in some cases, can be to be different from sequence herein
Execute shown or described step.
A kind of processing method of broadcast frame for running on above-mentioned BLE controller is provided in the present embodiment, and Fig. 4 is basis
The flow chart of the present invention wherein processing method of the broadcast frame of an embodiment, as shown in figure 4, this method comprises the following steps:
Step S40 determines that the first communication apparatus switches to the second communication mode from the first communication mode, wherein first is logical
It interrogates equipment to be communicated under the first communication mode by the second communication apparatus and extraneous communication apparatus, the second communication apparatus is used for
WLAN is set up, the first communication apparatus is carrying out point-to- point communication between third communication apparatus under the second communication mode;
Step S41, response act on the control operation of third communication apparatus, determine control instruction to be sent;
Step S42 repeats to send broadcast frame to the first communication apparatus in preset duration, wherein carry in broadcast frame
Control instruction.
In order to reduce the drop probabilities of BLE component, retransmission mechanism is increased newly in BLE controller end, is therefore ensured that when default
The control instruction of BLE controller can be repeatedly retransmitted in length, then the probability that STATION receives BLE control instruction will be significant
It improves.For the control operation of BLE controller, can both be completed by physical control keyboard that physical button forms, it can also be with
The virtual controlling keyboard that is made of virtual key on touching display screen is completed, can also with physics touch panel display screen
To complete.Pressing operation is executed in physical button when BLE controller detects user, alternatively, executing on touching display screen
Touch control operation, alternatively, in the touch control operation executed on touch panel, determine BLE control instruction to be sent (such as: open
Lamp instruction).Then, BLE control instruction multiplicating can be sent to STATION in preset duration by BLE controller.
In one alternate embodiment, above-mentioned preset duration is greater than actual beacon interval.
Control instruction is sent in order to ensure that STATION is successfully received BLE controller, when can control lasting repeating transmission
Between be greater than actual beacon interval (such as: 100ms).Certainly, which can also be set as small according to practical application scene
In or equal to 100ms.
Optionally, in step S42, in preset duration to the first communication apparatus repeat send broadcast frame may include with
Lower execution step:
Step S420 repeats to send broadcast frame to the first communication apparatus via default channel in preset duration, wherein
It is chosen from multiple alternative channels and negotiates to determine in advance by the first communication apparatus and third communication apparatus in default channel.
The broadcasting process of BLE component may work in multiple and different channel originally, therefore, in order to improve BLE component
The success rate for receiving data, can be fixed therein any channel for the broadcasting process of BLE component.As for being actually fixed on
Which channel then needs to negotiate to determine in advance with corresponding BLE controller by each STATION, so as to each STATION
The broadcast frame from corresponding BLE controller is listened to via fixation channel.
In one alternate embodiment, BLE controller is in preset duration, can be according to via above-mentioned fixed channel
Equal time interval repeats to send broadcast frame to corresponding STATION.For example, when preset duration is 100ms, BLE control
Device repeats to send 10 broadcast frames to corresponding STATION with the time interval of 10ms.Certainly, BLE controller can not also be pressed
The time interval of photograph etc. repeats to send broadcast frame to corresponding STATION.For example, when preset duration is 100ms, BLE control
Device processed repeats to send 4 broadcast frames respectively to corresponding STATION in 10ms, 30ms, 60ms, 100ms.
Optionally, it repeats after sending broadcast frame, can also be wrapped to the first communication apparatus in step S42, preset duration
Include step performed below:
Step S43, it is pre- reaching if receiving the feedback message from the first communication apparatus in preset duration
If stopping sending broadcast frame before the finish time of duration, wherein feedback message is for indicating that the first communication apparatus is successfully held
Row control instruction.
In order to enable the first communication apparatus can receive control instruction entrained in broadcast frame accurately and in time, the
Three communication apparatus repeat to send broadcast frame to the first communication apparatus in preset duration.In order to be effectively saved or reduce by
The power consumption of three communication apparatus can add feedback mechanism on the first communication apparatus.
In one alternate embodiment, feedback message can be used to indicate that the successful execution control of the first communication apparatus refers to
It enables.If the first communication apparatus receives control instruction from third communication apparatus and the first communication apparatus successful execution should
Control instruction, then the first communication apparatus can send feedback message to third communication apparatus, so that third communication apparatus can be true
Determine the first communication apparatus successful execution control instruction.Third communication apparatus is wide to the first communication apparatus without repeating as a result,
Frame is broadcast, so as to be effectively saved or reduce the power consumption of third communication apparatus.
In one alternate embodiment, feedback message can be also used for indicating that the first communication apparatus fails and executes control
Instruction.If the first communication apparatus receives control instruction from third communication apparatus but the first communication apparatus fails
The control instruction is executed, then the first communication apparatus still can send feedback message to third communication apparatus, so as to third communication
Equipment can determine that the first communication apparatus fails and execute control instruction.Third communication apparatus can be targetedly as a result,
It repeats to the first communication apparatus broadcast frame.
Optionally, it repeats after sending broadcast frame, can also be wrapped to the first communication apparatus in step S42, preset duration
Include step performed below:
Step S44, if do not received yet when reaching the finish time of preset duration from the first communication apparatus
Feedback message then stops sending broadcast frame and enters dormant state, wherein feedback message is for indicating that the first communication apparatus has become
Function executes control instruction.
In one alternate embodiment, feedback message can be used to indicate that the successful execution control of the first communication apparatus refers to
It enables.If third communication apparatus is not received yet when reaching the finish time of preset duration from the anti-of the first communication apparatus
Present message, then third communication apparatus can stop repeating to send broadcast frame and enter dormant state (i.e. low power consumpting state), thus
It can be effectively saved or reduce the power consumption of third communication apparatus.
Below in conjunction with overall workflow of the optional embodiment shown in fig. 5 to the switching system of communication mode do into
One step it is described in detail.Fig. 5 is the wherein workflow of the switching system of the communication mode of an alternative embodiment according to the present invention
Figure.As shown in figure 5, the process may include following processing step:
Step S502, WiFi AP sends beacon frame to STATION, wherein is carried between beacon in the beacon frame
Every, TIM field, ssid field.In TIM field the value of TIM flag corresponding with the STATION be 0, indicate STATION into
Enter BLE operating mode.
Step S504, STATION receive the control instruction of turning on light from BLE controller.
Step S506, WiFi AP sends beacon frame to STATION, wherein is carried between beacon in the beacon frame
Every, TIM field, ssid field.In TIM field the value of TIM flag corresponding with the STATION be 1, indicate STATION into
Enter WiFi operating mode.
Step S508, STATION send Nulldata frame to WiFi AP, wherein carry STA in the Nulldata frame
Field.The attribute value of STA field is 0, and STATION is entered WiFi operating mode and notifies to give WiFi AP, so that WiFi AP will
What is stored in WiFi AP is sent to STATION with the associated content of STATION.
Step S510, WiFi AP is sent to STATION with the associated content of STATION for what is stored in WiFi AP.
Step S512, WiFi AP is emptied what is stored in WiFi AP with the associated content of STATION.
Step S514, STATION send Nulldata frame to WiFi AP, wherein carry STA in the Nulldata frame
Field.The attribute value of STA field is 1, and STATION is entered BLE operating mode and notifies to give WiFi AP.
Step S516, WiFi AP sends beacon frame to STATION, wherein is carried between beacon in the beacon frame
Every, TIM field, ssid field.In TIM field the value of TIM flag corresponding with the STATION be 0, indicate STATION into
Enter BLE operating mode.
Step S518, STATION receive from BLE controller other control instructions (such as: adjust lamplight brightness,
It turns off the light).
Through the above description of the embodiments, those skilled in the art can be understood that according to above-mentioned implementation
The method of example can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but it is very much
In the case of the former be more preferably embodiment.Based on this understanding, technical solution of the present invention is substantially in other words to existing
The part that technology contributes can be embodied in the form of software products, which is stored in a storage
In medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, calculate
Machine, server or network equipment etc.) execute method described in each embodiment of the present invention.
Additionally provide a kind of switching device of communication mode in the present embodiment, the device for realizing above-described embodiment and
Preferred embodiment, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module "
The combination of the software and/or hardware of energy.It is hard although device described in following embodiment is preferably realized with software
The realization of the combination of part or software and hardware is also that may and be contemplated.
Fig. 6 is the wherein structural block diagram of the switching device of the communication mode of an embodiment according to the present invention, as shown in fig. 6,
The device includes: wake-up module 100, for waking up the first communication part on the first communication apparatus according to actual beacon interval,
Wherein, the first communication part is communicated under the first communication mode by the second communication apparatus and extraneous communication apparatus, and second
Communication apparatus is for setting up WLAN;Module 102 is listened to, for listening to by the first communication part from the second communication
The beacon frame of equipment, wherein the first instruction information is at least carried in beacon frame, the first instruction information is used to indicate the second communication
Whether the downlink data that is sent to first communication apparatus is stored in equipment;Switching module 104, for being believed according to the first instruction
Breath switches between the first communication mode and the second communication mode, wherein the second communication part on the first communication apparatus
Point-to- point communication is being carried out under second communication mode between third communication apparatus.
Optionally, switching module 104 includes: the first determination unit (not shown), for according to the first instruction information
Determining not stored on the second communication apparatus has the downlink data for being sent to the first communication apparatus;First control unit is (in figure not
Show), enter dormant state for controlling the first communication part, and control the second communication part and enter wake-up states, so that the
One communication apparatus is in the second communication mode.
Optionally, switching module 104 includes: the second determination unit (not shown), for according to the first instruction information
Determine the downlink data for being stored on the second communication apparatus and being sent to the first communication apparatus;Second control unit (is not shown in figure
Out), it is stayed awake for for controlling the first communication part, and controls the second communication part and enter dormant state, so that first
Communication apparatus is in the first communication mode.
Optionally, Fig. 7 is the wherein structural block diagram of the switching device of the communication mode of an alternative embodiment according to the present invention,
As shown in fig. 7, the device except include all modules shown in fig. 6 in addition to, above-mentioned apparatus further include: the first sending module 106 is used for
The first empty data frame is sent to the second communication apparatus, wherein second indication information, the second instruction are carried in the first empty data frame
Information is identified as the first numerical value, and the first numerical value is used to indicate the first communication part and is in wake-up states;Receiving module 108 is used
In the downlink data by the reception of the first communication part from the second communication apparatus;Execution module 110, for according to lower line number
It is operated according to corresponding control is executed.
Optionally, as shown in fig. 7, above-mentioned apparatus further include: control module 112, for determining that downlink data received
In the case where finishing, the first communication part of control enters dormant state, and controls the second communication part and enter wake-up states, so that the
One communication apparatus is in the second communication mode;Second sending module 114, for sending the second empty data to the second communication apparatus
Frame, wherein second indication information is carried in the second empty data frame, second indication information is identified as second value, the second number
Value is used to indicate the first communication part in a dormant state.
Optionally, module 102 is listened to, is also used to listen to the broadcast from third communication apparatus by the second communication part
Frame, wherein control instruction is carried in broadcast frame;Corresponding control operation is executed according to control instruction.
Optionally, module 102 is listened to, for listening to broadcast frame via default channel by the second communication part, wherein
It is chosen from multiple alternative channels and negotiates to determine in advance by the first communication apparatus and third communication apparatus in default channel.
Optionally, updated beacon interval is also carried in beacon frame, as shown in fig. 7, above-mentioned apparatus further include: processing
Module 116 for actual beacon interval to be adjusted to updated beacon interval, and is called out again according to updated beacon interval
Awake first communication part.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
A kind of processing unit of broadcast frame is additionally provided in the present embodiment, and the device is for realizing above-described embodiment and excellent
Embodiment is selected, the descriptions that have already been made will not be repeated.As used below, predetermined function may be implemented in term " module "
Software and/or hardware combination.Although device described in following embodiment is preferably realized with software, hardware,
Or the realization of the combination of software and hardware is also that may and be contemplated.
Fig. 8 is the wherein structural block diagram of the processing unit of the broadcast frame of an embodiment according to the present invention, as shown in figure 8, should
Device comprises determining that module 200, for determining that the first communication apparatus switches to the second communication mode from the first communication mode,
In, the first communication apparatus is communicated under the first communication mode by the second communication apparatus and extraneous communication apparatus, and second is logical
For setting up WLAN, the first communication apparatus is carrying out a little between third communication apparatus news equipment under the second communication mode
The control operation of third communication apparatus is acted on to a communication, and response, determines control instruction to be sent;Processing module
202, broadcast frame is sent for repeating in preset duration to the first communication apparatus, wherein control instruction is carried in broadcast frame.
Optionally, preset duration is greater than actual beacon interval.
Optionally, processing module 202, for repeating to send out to the first communication apparatus via default channel in preset duration
Send broadcast frame, wherein default channel is chosen and preparatory by the first communication apparatus and third communication apparatus from multiple alternative channels
Negotiate to determine.
Optionally, processing module 202, if being also used to be received in preset duration from the anti-of the first communication apparatus
Message is presented, then stops sending broadcast frame before the finish time for reaching preset duration, wherein feedback message is for indicating first
Communication apparatus successful execution control instruction.
Optionally, processing module 202 come from if being also used to not receive yet when reaching the finish time of preset duration
In the feedback message of the first communication apparatus, then stops sending broadcast frame and enter dormant state, wherein feedback message is for indicating
First communication apparatus successful execution control instruction.
Optionally, processing module 202 are also used in preset duration, at regular intervals via default channel
It repeats to send broadcast frame to the first communication apparatus.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein
The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps
Calculation machine program:
S1 wakes up the first communication part on the first communication apparatus according to actual beacon interval, wherein the first communication part
It is communicated under the first communication mode by the second communication apparatus and extraneous communication apparatus, the second communication apparatus is for setting up nothing
Line local area network;
S2 listens to the beacon frame from the second communication apparatus by the first communication part, wherein at least take in beacon frame
With the first instruction information, whether the first instruction information, which is used to indicate to be stored on the second communication apparatus, is sent to the first communication
The downlink data of equipment;
S3 is switched between the first communication mode and the second communication mode, wherein first according to the first instruction information
The second communication part on communication apparatus is carrying out point-to- point communication between third communication apparatus under the second communication mode.
Optionally, storage medium is also configured to store the computer program for executing following steps:
S1 determines that the first communication apparatus switches to the second communication mode from the first communication mode, wherein the first communication apparatus
It is communicated under the first communication mode by the second communication apparatus and extraneous communication apparatus, the second communication apparatus is for setting up nothing
Line local area network, the first communication apparatus are carrying out point-to- point communication between third communication apparatus under the second communication mode;
S2, response act on the control operation of third communication apparatus, determine control instruction to be sent;
S3 repeats to send broadcast frame to the first communication apparatus in preset duration, wherein carry control in broadcast frame and refer to
It enables.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store computer program such as disk, magnetic or disk.
The embodiments of the present invention also provide a kind of processor, which is arranged to run computer program to execute
Step in any of the above-described embodiment of the method.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S1 wakes up the first communication part on the first communication apparatus according to actual beacon interval, wherein the first communication part
It is communicated under the first communication mode by the second communication apparatus and extraneous communication apparatus, the second communication apparatus is for setting up nothing
Line local area network;
S2 listens to the beacon frame from the second communication apparatus by the first communication part, wherein at least take in beacon frame
With the first instruction information, whether the first instruction information, which is used to indicate to be stored on the second communication apparatus, is sent to the first communication
The downlink data of equipment;
S3 is switched between the first communication mode and the second communication mode, wherein first according to the first instruction information
The second communication part on communication apparatus is carrying out point-to- point communication between third communication apparatus under the second communication mode.
Optionally, in the present embodiment, above-mentioned processor may be also configured to execute following step by computer program
It is rapid:
S1 determines that the first communication apparatus switches to the second communication mode from the first communication mode, wherein the first communication apparatus
It is communicated under the first communication mode by the second communication apparatus and extraneous communication apparatus, the second communication apparatus is for setting up nothing
Line local area network, the first communication apparatus are carrying out point-to- point communication between third communication apparatus under the second communication mode;
S2, response act on the control operation of third communication apparatus, determine control instruction to be sent;
S3 repeats to send broadcast frame to the first communication apparatus in preset duration, wherein carry control in broadcast frame and refer to
It enables.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
In the above embodiment of the invention, it all emphasizes particularly on different fields to the description of each embodiment, does not have in some embodiment
The part of detailed description, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed technology contents can pass through others
Mode is realized.Wherein, the apparatus embodiments described above are merely exemplary, such as the division of the unit, Ke Yiwei
A kind of logical function partition, there may be another division manner in actual implementation, for example, multiple units or components can combine or
Person is desirably integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Between coupling, direct-coupling or communication connection can be through some interfaces, the INDIRECT COUPLING or communication link of unit or module
It connects, can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
On unit.It can some or all of the units may be selected to achieve the purpose of the solution of this embodiment according to the actual needs.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or
Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code
Medium.
The above is only a preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered
It is considered as protection scope of the present invention.
Claims (12)
1. a kind of switching method of communication mode characterized by comprising
The first communication part on the first communication apparatus is waken up according to actual beacon interval, wherein first communication part exists
It is communicated under first communication mode by the second communication apparatus and extraneous communication apparatus, second communication apparatus is for setting up
WLAN;
The beacon frame from second communication apparatus is listened to by first communication part, wherein in the beacon frame
At least carry the first instruction information, the first instruction information be used to indicate on second communication apparatus whether be stored with to
It is sent to the downlink data of first communication apparatus;
It is switched between first communication mode and the second communication mode according to the first instruction information, wherein institute
The second communication part on the first communication apparatus is stated to carry out between third communication apparatus under second communication mode a little pair
Point communication.
2. the method according to claim 1, wherein according to the first instruction information in the first communication mould
It is switched between formula and second communication mode and includes:
According to it is described first instruction information determine on second communication apparatus it is not stored be sent to it is described first communication set
Standby downlink data;
It controls first communication part and enters dormant state, and control second communication part and enter wake-up states, so that
First communication apparatus is in second communication mode.
3. the method according to claim 1, wherein according to the first instruction information in the first communication mould
It is switched between formula and second communication mode and includes:
It determines to be stored on second communication apparatus according to the first instruction information and is sent to first communication apparatus
Downlink data;
It controls first communication part to stay awake for, and controls second communication part and enter dormant state, so that
First communication apparatus is in first communication mode.
4. according to the method described in claim 3, it is characterized in that, being communicated according to the first instruction information described first
After being switched between mode and second communication mode, further includes:
The first empty data frame is sent to second communication apparatus, wherein carries the second instruction in the described first empty data frame
Information, the second indication information are identified as the first numerical value, and first numerical value is used to indicate at first communication part
In the wake-up states;
The downlink data from second communication apparatus is received by first communication part;
Corresponding control operation is executed according to the downlink data.
5. according to the method described in claim 4, it is characterized in that, sending the described first empty number to second communication apparatus
After frame, further includes:
In the case where determining that the downlink data receives, controls first communication part and enter dormant state, and control
It makes second communication part and enters wake-up states, so that first communication apparatus is in second communication mode;
The second empty data frame is sent to second communication apparatus, wherein carries described second in the described second empty data frame
Indicate that information, the second indication information are identified as second value, the second value is used to indicate the first communication group
Part is in the dormant state.
6. according to the method described in claim 2, it is characterized in that, the method also includes:
The broadcast frame from the third communication apparatus is listened to by second communication part, wherein in the broadcast frame
Carry control instruction;
Corresponding control operation is executed according to the control instruction.
7. according to the method described in claim 6, it is characterized in that, listening to the broadcast frame packet by second communication part
It includes:
By second communication part, the broadcast frame is listened to via default channel, wherein the default channel is from multiple standby
It is chosen in gating road and negotiates to determine in advance by first communication apparatus and the third communication apparatus.
8. method according to any one of claim 1 to 7, which is characterized in that also carry update in the beacon frame
Beacon interval afterwards, after listening to the beacon frame by first communication part, further includes:
The actual beacon interval is adjusted to the updated beacon interval, and again according to the updated beacon interval
It is secondary to wake up first communication part.
9. a kind of switching device of communication mode characterized by comprising
Wake-up module, for waking up the first communication part on the first communication apparatus according to actual beacon interval, wherein described the
One communication part is communicated under the first communication mode by the second communication apparatus and extraneous communication apparatus, second communication
Equipment is for setting up WLAN;
Module is listened to, for listening to the beacon frame from second communication apparatus by first communication part, wherein
The first instruction information is at least carried in the beacon frame, the first instruction information is used to indicate on second communication apparatus
Whether the downlink data that is sent to first communication apparatus is stored with;
Switching module, for being carried out between first communication mode and the second communication mode according to the first instruction information
Switching, wherein the second communication part on first communication apparatus under second communication mode with third communication apparatus
Between carry out point-to- point communication.
10. a kind of storage medium, which is characterized in that the storage medium includes the program of storage, wherein run in described program
When control the storage medium where equipment perform claim require any one of 1 to 8 described in communication mode switching method.
11. a kind of processor, which is characterized in that the processor is for running program, wherein right of execution when described program is run
Benefit require any one of 1 to 8 described in communication mode switching method.
12. a kind of switching system of communication mode characterized by comprising the first communication apparatus, the second communication apparatus and
Three communication apparatus, wherein first communication apparatus includes the switching device of communication mode as claimed in claim 9.
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 true CN110191449A (en) | 2019-08-30 |
CN110191449B 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) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021180179A1 (en) * | 2020-03-13 | 2021-09-16 | 华为技术有限公司 | Method and apparatus for determining data caching state |
WO2022127785A1 (en) * | 2020-12-16 | 2022-06-23 | 华为技术有限公司 | Heartbeat synchronization method, electronic device, and system |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113811018A (en) * | 2021-09-10 | 2021-12-17 | 广东博智林机器人有限公司 | Mesh network communication method and device, electronic equipment and storage medium |
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 (3)
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 |
US20190132763A1 (en) * | 2017-10-27 | 2019-05-02 | Samsung Electronics Co., Ltd. | Method and device for transmitting data |
Family Cites Families (5)
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 |
CN108901077B (en) * | 2018-08-14 | 2020-07-21 | 深圳创维数字技术有限公司 | Antenna ratio setting method and device, user equipment and storage medium |
CN109152057A (en) * | 2018-08-14 | 2019-01-04 | Oppo广东移动通信有限公司 | Timeslice distribution method, device and electronic equipment |
CN109526063A (en) * | 2018-12-28 | 2019-03-26 | Oppo广东移动通信有限公司 | Communicating control method, electronic equipment and computer readable storage medium |
-
2019
- 2019-05-29 CN CN201910460101.XA patent/CN110191449B/en active Active
- 2019-06-04 WO PCT/CN2019/089987 patent/WO2020237703A1/en active Application Filing
Patent Citations (3)
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 |
US20190132763A1 (en) * | 2017-10-27 | 2019-05-02 | Samsung Electronics Co., Ltd. | Method and device for transmitting data |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021180179A1 (en) * | 2020-03-13 | 2021-09-16 | 华为技术有限公司 | Method and apparatus for determining data caching state |
WO2022127785A1 (en) * | 2020-12-16 | 2022-06-23 | 华为技术有限公司 | Heartbeat synchronization method, electronic device, and system |
Also Published As
Publication number | Publication date |
---|---|
CN110191449B (en) | 2022-02-18 |
WO2020237703A1 (en) | 2020-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110191449A (en) | Switching method, device, storage medium, processor and the system of communication mode | |
CN1898900B (en) | Supporter, client and corresponding method for power saving in a wireless local area network | |
CN105307249B (en) | Low-consumption wireless Transmission system and its transmission method | |
CN103945505B (en) | The collocation method and system of long evolving system discontinuous reception parameters | |
CN104749996B (en) | A kind of ZigBee remote controlers long-range control method | |
CN104486732B (en) | Mobile station, intermediate station, trunked communication system and its method | |
CN105357746B (en) | Double bounce wireless network architecture | |
CN108037675A (en) | A kind of Intelligent household scene control method based on ZigBee Group | |
CN107005831A (en) | Periphery perceives networking data path | |
CN107925964A (en) | With the power save mechanism in the WLAN largely to stand | |
CN105706502B (en) | Mobile radio communication apparatus, the network equipment, network system and method | |
CN105992317B (en) | Wireless communication module management method and wireless communication module managing device | |
CN104656515B (en) | Remote control method and system for dual-system intelligent equipment | |
RU2012111060A (en) | METHOD AND SYSTEM FOR ANNOUNCEMENT TIME FROM THE WAITING TIME IN A SIMPLE MODE APPLICABLE TO ENERGY-SAVING OPERATIONS IN WIRELESS NETWORKS | |
CN106792127A (en) | Network wake-up method and device, wake-up terminal and television set | |
CN111417182A (en) | Data transmission method, device, storage medium, processor and system | |
CN103376875A (en) | Information processing method and electronic device | |
CN105101471B (en) | Data transmission method, device and smart machine | |
CN110177343A (en) | Processing method, device, storage medium, processor and the system of broadcast frame | |
CN109246801A (en) | The method and device of idle listening state terminal realization discontinuous reception | |
CN103313303A (en) | Wireless access point, wireless work station and work method of wireless access point and wireless work station | |
CN101835177B (en) | Method of paging interception for dual-card double-standby cell phone with single CDMA (Code Division Multiple Access) chip | |
CN110521253A (en) | Determine the access slot for communication on a wireless interface | |
WO2014121512A1 (en) | Method and related device and system for controlling wireless access point | |
CN103108385B (en) | Control the method and system of the network node in network area |
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 |