A kind of micro power radio communication Low-power-consumptiocontrol control method, terminal and system
Technical field
The present invention relates to micropower wireless communication technology fields, and in particular, to a kind of micro power radio communication low-power consumption
Control method, terminal and system.
Background technique
Micropower wireless technology is widely applied in fields such as Internet of Things, short-range communications, however communicates function meeting
Under the premise of energy, Save power consumption is always an insoluble problem.The angle of itself is controlled from micro power radio communication
Power consumption is reduced, is had a very important significance.
To some simple new application networks such as security protection, smart home, intelligent meter and Medical Devices etc., wireless communication
Functional requirement is only limitted to for limited data to be transferred to master controller, and proposes very high requirement to the service life of battery.
For this kind of application, the standard agreements such as bluetooth 4.0, Zigbee due to its cost and complexity, in terms of lack advantage
And it is less applicable in.
And conventional micro power radio communication control method, on the one hand need micro power radio module always or a timing
Between be spaced in booting wait state, compared with off-mode, the power consumption of wait state is increased with several times, this unnecessary
Consumption will greatly shorten battery;On the other hand, the communication not synchronized will cause largely conflict and power dissipation.
Summary of the invention
Power consumption excessive technical problem when in order to solve micro power radio module communication in the prior art, the invention proposes
A kind of micro power radio communication Low-power-consumptiocontrol control method, terminal and system.
A kind of micro power radio communication Low-power-consumptiocontrol control method of the invention, comprising:
The numeric data code of master controller broadcast transmission is received, the numeric data code includes master controller local zone time, center
Controller transmission power, synchronization character, broadcast time interval T, communications status position, check code;
The terminal local time is updated according to the master controller local zone time, and function is emitted according to the master controller
Rate adjusts terminal transmission power;
Itself micro power radio module n-th is arranged to wake up and master controller foundation communication connection from off-mode
Time interval be nT-tt-tp, and the micro power radio module is set to off-mode,
Wherein, ttFor preset argin value, tpMaster controller is received to acknowledge message to master controller transmission
The time of the confirmation response message of reply.
Preferably, described to be specifically included according to master controller transmission power adjustment terminal transmission power:
Measurement receives the signal strength instruction RSSI when numeric data code, and terminal transmission frequency is adjusted are as follows:
Receiving sensitivity+margin of power of master controller transmission power-RSSI+ terminal, wherein margin of power is default
Value.
Preferably, further includes:
When the data for not receiving the numeric data code of the master controller broadcast transmission more than the preset time or receiving
When code is imperfect, resets the micro power radio module n-th and waken up and master controller foundation from off-mode
The time interval of communication connection is nT- (i × tt)-tp, and the micro power radio module is set to off-mode, wherein i is
The natural number incremented by successively since 1.
Preferably, further includes:
When communications status position is 1 in the numeric data code received, notification frame is got out to master controller transmission, into
Enter reception state;
It receives the data frame that the master controller is sent and replys reception acknowledgement frame, until receiving master controller hair
The end frame sent.
Preferably, further includes:
When needing to send data to the master controller, judge in the numeric data code received communications status position as 1 or
0;
When the communications status position is 1, the data frame that the master controller is sent is received, and communicating shape next time
When state position is 0, data frame is sent to the master controller;
When the communications status position is 0, data frame is successively sent to the master controller, and receives the center control
The reception acknowledgement frame that device processed is replied, until sending terminates.
A kind of micropower wireless terminal of the invention, comprising:
Numeric data code receiving module, for receiving the numeric data code of master controller broadcast transmission, the numeric data code includes center
Controller local zone time, master controller transmission power, synchronization character, broadcast time interval T, communications status position, check code;
Power regulation module, for updating the terminal local time according to the master controller local zone time, and according to institute
State master controller transmission power adjustment terminal transmission power;
Time setup module wakes up and the center for itself micro power radio module n-th to be arranged from off-mode
The time interval that controller establishes communication connection is nT-tt-tp, and the micro power radio module is set to off-mode,
Wherein, ttFor preset argin value, tpMaster controller is received to acknowledge message to master controller transmission
The time of the confirmation response message of reply.
Preferably, described to be specifically included according to master controller transmission power adjustment terminal transmission power:
Measurement receives the signal strength instruction RSSI when numeric data code, and terminal transmission frequency is adjusted are as follows:
Receiving sensitivity+margin of power of master controller transmission power-RSSI+ terminal, wherein margin of power is default
Value.
Preferably, the time setup module is also used to,
When the data for not receiving the numeric data code of the master controller broadcast transmission more than the preset time or receiving
When code is imperfect, reset time interval that the micro power radio module n-th wakes up from off-mode for nT- (i ×
tt)-tp, and the micro power radio module is set to off-mode, wherein i is natural number incremented by successively since 1.
Preferably, further includes:
Preparation module is received, for being sent out to the master controller when communications status position is 1 in the numeric data code received
It send and gets out notification frame, into reception state;
Data frame receipt module, for receiving the data frame of the master controller transmission and replying reception acknowledgement frame, directly
To the end frame for receiving master controller transmission.
Preferably, further includes:
Mode bit judgment module, for judging the data received when needing to send data to the master controller
Communications status position is 1 or 0 in code;
Be delayed sending module, for receiving the data that the master controller is sent when the communications status position is 1
Frame, and when communications status position next time is 0, data frame is sent to the master controller;
Instant sending module, for successively sending data to the master controller when the communications status position is 0
Frame, and the reception acknowledgement frame that the master controller is replied is received, until sending terminates.
A kind of micro power radio communication power-consumption control system of the invention, comprising: master controller and micro- function
Rate wireless terminal.
Micro power radio communication Low-power-consumptiocontrol control method, terminal and system of the invention, micro power radio module have 4 kinds
Working condition: off-mode, readiness, emission state, reception state reduce terminal device by the differentiation and control of state
Communication power consumption;Master controller carries out the transmission of the parameters such as power control, time synchronization, time interval by broadcast mode,
Micropower wireless terminal only needs timing start-up reception that can remain synchronous;Compared with active transmission information, the power consumption of reception state
It is lower;Micropower wireless terminal can also dynamically carry out the adjustment and control of transmission power, it is ensured that communication is real up under the premise of
Now emit least in power-consuming;Meanwhile terminal is in synchronous maintenance state with master controller always, can effectively keep away in communication process
Exempt to conflict.Through the invention, so that the time that the micro power radio module of terminal is in open state shortens as much as possible, significantly
Reduce communication power consumption.Meanwhile broadcast time interval T and terminal wakeup time interval can be adjusted according to actual needs
Section, improves the flexibility of realization, selection can be balanced between power consumption and real-time.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by written explanation
Specifically noted structure is achieved and obtained in book, claims and attached drawing.
Below by drawings and examples, technical scheme of the present invention will be described in further detail.
Detailed description of the invention
Attached drawing is used to provide further understanding of the present invention, and constitutes part of specification, with reality of the invention
It applies example to be used to explain the present invention together, not be construed as limiting the invention.In the accompanying drawings:
Fig. 1 is that the micro power radio module communications status of the embodiment of the present invention switches schematic diagram;
Fig. 2 is the method flow schematic diagram of the embodiment of the present invention one;
Fig. 3 is the communication scheme of the micro power radio communication Low-power-consumptiocontrol control method of the embodiment of the present invention;
Fig. 4 is the method flow schematic diagram of the embodiment of the present invention two;
Fig. 5 is the method flow schematic diagram of the embodiment of the present invention three;
Fig. 6 is that the micropower wireless terminal of the embodiment of the present invention three receives the schematic diagram of data;
Fig. 7 is the method flow schematic diagram of the embodiment of the present invention four;
Fig. 8 is that the micropower wireless terminal of the embodiment of the present invention four sends the schematic diagram of data;
Fig. 9 is the structural schematic diagram of the micropower wireless terminal of the embodiment of the present invention five.
Specific embodiment
With reference to the accompanying drawing, specific embodiments of the present invention will be described in detail, it is to be understood that guarantor of the invention
Shield range is not limited by the specific implementation.
Power consumption excessive technical problem when in order to solve micro power radio module communication in the prior art, the invention proposes
A kind of micro power radio communication Low-power-consumptiocontrol control method, terminal and system.
In the present invention, it in the micropowers wireless terminal such as micro power radio module insertion gauge table, Internet of things node, uses
Battery power supply, has strict demand to power consumption;And the power supply power supply that master controller is sufficient using alternating current or other power supplies, to function
Consumption requires relatively low;It is connected between terminal and master controller by micro power radio communication mode.
As shown in Figure 1, wireless module can be arranged in 4 kinds of working conditions micropower wireless terminal of the invention: shutdown
State, readiness, emission state, reception state;When terminal is it is not necessary that when being communicated, micro power radio module is in shutdown shape
State, power consumption is minimum at this time;When terminal needs to communicate, micro power radio module wakes up from off-mode, into readiness;When
When terminal needs to send data, micro power radio module enters emission state from readiness, returns to after the completion of transmission data pre-
Standby state;When terminal needs to receive data, micro power radio module enters reception state from readiness, receives data and completes
After return to readiness;When all communications of terminal are completed, micro power radio module is exited from readiness, into shutdown shape
State.
Embodiment one
As shown in Fig. 2, the micro power radio communication Low-power-consumptiocontrol control method of the embodiment of the present invention, comprising the following steps:
Step S201: master controller broadcast data code: master controller one Local time counter of maintenance, while with
Fixed time interval T broadcasts one piece of data code, includes master controller local zone time, master controller transmitting function in numeric data code
The information such as rate, synchronization character, broadcast time interval T, communications status position, check code;Enter after the completion of master controller broadcast and receives
State, the response of monitoring terminal equipment.
As shown in figure 3, on master controller time shaft, every time slot T, data of master controller broadcast transmission
Code.
Step S202: the numeric data code of micropower wireless terminal reception master controller broadcast transmission.
Step S203: micropower wireless terminal is updated according to the master controller local zone time in the numeric data code received
The terminal local time.
By synchronizing terminal local time and master controller local zone time, so that hair, which receives both sides, to be had with frequently same
The clock signal of phase, specifically, master controller is by the appended synchronization word in the numeric data code of broadcast transmission, terminal is according to reception
The synchronization character and master controller arrived carries out time synchronization, synchronizes so that hair receives both sides' foundation, and then the two is just in synchronization
It is sent and received by turn under the control of clock.The advantage of synchronous communication is: micro power radio module is without keeping connecing for a long time
Receipts state thereby saves power consumption, improves electricity to carry out the preparation from center controller receiving data code or data frame constantly
Pond service efficiency.
Step S204: micropower wireless terminal adjusts terminal transmission power according to the master controller transmission power;
Specifically, including: signal strength instruction RSSI when measurement receives the numeric data code, by terminal transmission frequency tune
It is whole are as follows: receiving sensitivity+margin of power of master controller transmission power-RSSI+ terminal, wherein margin of power is preset value.
Step S205: itself micro power radio module n-th is arranged from off-mode wake-up and institute in micropower wireless terminal
Stating master controller and establishing the time interval of communication connection is nT-tt-tp, and the micro power radio module is set to shutdown shape
State, wherein ttIt is preset argin value, t in this communication processpIt is received to be acknowledged message to master controller transmission
The time for the confirmation response message that master controller is replied, i.e., as shown in Figure 3.
It is waken up and master controller foundation communication connection being provided with micro power radio module n-th from off-mode
After time interval, micro power radio module is set to off-mode.When reaching the time interval of setting, micropower is wireless mould
Block just wakes up from off-mode and establishes with master controller and communicates to connect.So that do not need to be communicated in the two
Period, micro power radio module remain off-mode, save power consumption, improve battery availability factor.
In the prior art, micro power radio module is in always or in certain time interval booting wait state, no
Power consumption is increased avoidablely, reduces battery availability factor.And in the present embodiment, as shown in figure 3, micro power radio module
State be not in reception/transmission state always or for a long time, but within the quite a long time, micropower is wireless mould
Block is in off-mode, and the time interval waken up by the way that micro power radio module is arranged from off-mode considerably reduces micro-
The booting duration of power wireless module improves battery availability factor to reduce power consumption.
The micro power radio communication Low-power-consumptiocontrol control method of the embodiment of the present invention, micro power radio module have 4 kinds of work
State: off-mode, readiness, emission state, reception state reduce the logical of terminal device by the differentiation and control of state
Believe power consumption;Master controller carries out the transmission of the parameters such as power control, time synchronization, time interval, micro- function by broadcast mode
Rate wireless terminal only needs timing start-up reception that can remain synchronous;Compared with active transmission information, the power consumption of reception state is lower;
Micropower wireless terminal can also dynamically carry out the adjustment and control of transmission power, it is ensured that transmitting is realized in communication up under the premise of
It is least in power-consuming;Meanwhile terminal is in synchronous maintenance state with master controller always, it is possible to prevente effectively from punching in communication process
It is prominent.Method through the embodiment of the present invention, so that the micro power radio module of terminal is in the time of open state as much as possible
Shorten, greatly reduces communication power consumption.
Embodiment two
As shown in figure 4, be micro power radio communication Low-power-consumptiocontrol control method another embodiment of the invention, including with
Lower step:
Step S401: behind the communication connection time interval that step S205 is arranged in reaching embodiment one, micropower is wireless
Module wakes up from off-mode enters reception state;
Step S402: it when receiving the numeric data code of master controller broadcast, maintains and updates the terminal local time, update extensively
Broadcast the operations such as time interval T, adjustment terminal transmission power;This communication process is handled, setting wakes up from off-mode next time
Time interval be nT-tt-tp, micro power radio module is set to off-mode again by terminal.
Wherein, ttFor preset argin value, tpFor in this communication process, terminal sends response to master controller
Message to receive master controller reply confirmation response message time, i.e., as shown in Figure 3.
Step S403: when numeric data code or the reception for not receiving the master controller broadcast transmission more than the preset time
When the numeric data code arrived is imperfect, resets the micro power radio module n-th and waken up and center control from off-mode
The time interval that device processed establishes communication connection is nT- (i × tt)-tp, and the micro power radio module is set to off-mode,
Wherein, i is natural number incremented by successively since 1.
Resetting communication time interval is nT- (i × tt)-tp, i.e., compared to the preceding communication time interval being once arranged,
(i-1) × t in advancetTime wakes up, and it is such as 1, for the second time that in case of communicating next time, wherein i is integer incremented by successively for the first time
It is 2 etc..
Preferably, when the communication connection for continuing to exceed preset times is all unsuccessful, terminal exits connection and enters first
Establish the process of communication.
The present embodiment is the further explanation of embodiment one, has whole advantageous effects of embodiment one, herein not
It repeats again.Meanwhile the method for the present embodiment, broadcast time interval T and terminal wakeup time interval can be according to actual needs
It is adjusted, improves the flexibility of realization, selection can be balanced between power consumption and real-time.
Embodiment three
It as shown in Figure 5 and Figure 6, is another embodiment of micro power radio communication Low-power-consumptiocontrol control method of the invention,
The following steps are included:
Step S501: when master controller needs to send data, it is 1 by communications status position in numeric data code, that is, has number
According to the state of transmission;
Step S502: terminal carries out condition discrimination when receiving numeric data code, if communications status position is 1, to the center
Controller transmission gets out notification frame, subsequently into reception state;
Step S503: master controller sends data frame, and terminal receives data frame;
Step S504: terminal replies receive acknowledgement frame, until sign off, until master controller sends end frame.
Example IV
It as shown in Figure 7 and Figure 8, is the another embodiment of micro power radio communication Low-power-consumptiocontrol control method of the invention,
The following steps are included:
Step S701: when terminal needs to send data to the master controller, numeric data code that end-on receives into
Row condition discrimination;
Step S702: if communications status position is 1, advanced row data receiver, and be 0 in communications status position next time
When, data frame is sent to the master controller;
Step S703: if communications status position is 0, can carry out data transmission, terminal to the master controller according to
Secondary transmission data frame;
Step S704: master controller receives data frame, and master controller, which is successively replied, receives acknowledgement frame, until data are sent out
End is sent, until terminal sends end frame.
Embodiment five
As shown in figure 9, being the structural schematic diagram of micropower wireless terminal of the invention, comprising:
Numeric data code receiving module 91, for receiving the numeric data code of master controller broadcast transmission, during the numeric data code includes
Heart controller local zone time, master controller transmission power, synchronization character, broadcast time interval T, communications status position, check code;
Power regulation module 92 was used for according to the master controller local zone time update terminal local time, and according to
The master controller transmission power adjusts terminal transmission power;
Time setup module 93, for be arranged itself micro power radio module n-th from off-mode wake up with it is described in
The time interval that heart controller establishes communication connection is nT-tt-tp, and the micro power radio module is set to off-mode,
Wherein, ttFor preset argin value, tpMaster controller is received to acknowledge message to master controller transmission
The time of the confirmation response message of reply.
Preferably, described to be specifically included according to master controller transmission power adjustment terminal transmission power:
Measurement receives the signal strength instruction RSSI when numeric data code, and terminal transmission frequency is adjusted are as follows:
Receiving sensitivity+margin of power of master controller transmission power-RSSI+ terminal, wherein margin of power is default
Value.
Preferably, the time setup module 93 is also used to,
When the data for not receiving the numeric data code of the master controller broadcast transmission more than the preset time or receiving
When code is imperfect, reset time interval that the micro power radio module n-th wakes up from off-mode for nT- (i ×
tt)-tp, and the micro power radio module is set to off-mode, wherein i is natural number incremented by successively since 1.
Preferably, further includes:
Receive preparation module 94, for when in the numeric data code received communications status position be 1 when, to the master controller
Transmission gets out notification frame, into reception state;
Data frame receipt module 95, for receiving the data frame of the master controller transmission and replying reception acknowledgement frame,
Until receiving the end frame of master controller transmission.
Preferably, further includes:
Mode bit judgment module 96, for judging the number received when needing to send data to the master controller
It is 1 or 0 according to communications status position in code;
Be delayed sending module 97, for receiving the data that the master controller is sent when the communications status position is 1
Frame, and when communications status position next time is 0, data frame is sent to the master controller;
Instant sending module 98, for successively sending data to the master controller when the communications status position is 0
Frame, and the reception acknowledgement frame that the master controller is replied is received, until sending terminates.
Micropower wireless terminal described in the present embodiment, with micro power radio communication low-power consumption described in embodiment one-three
Control method is corresponding, and whole advantageous effects with embodiment one-three, details are not described herein!
Embodiment six
The invention also provides a kind of micro power radio communication power-consumption control systems, comprising: master controller and implementation
Micropower wireless terminal described in example five.
The present invention can there are many various forms of specific embodiments, above by taking Fig. 1-Fig. 9 as an example in conjunction with attached drawing to this hair
Bright technical solution gives an example, this is not meant to that specific example applied by the present invention can only be confined to specific process
Or in example structure, those skilled in the art are it is to be appreciated that specific embodiment presented above is a variety of
Some examples in preferred usage, any embodiment for embodying the claims in the present invention should all be wanted in technical solution of the present invention
Within the scope of asking protection.
Finally, it should be noted that the foregoing is only a preferred embodiment of the present invention, it is not intended to restrict the invention,
Although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art, still may be used
To modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features.
All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should be included in of the invention
Within protection scope.