CN110351818A - The switching of LoRaWAN terminal work mode and control method, terminal and server - Google Patents

The switching of LoRaWAN terminal work mode and control method, terminal and server Download PDF

Info

Publication number
CN110351818A
CN110351818A CN201910646392.1A CN201910646392A CN110351818A CN 110351818 A CN110351818 A CN 110351818A CN 201910646392 A CN201910646392 A CN 201910646392A CN 110351818 A CN110351818 A CN 110351818A
Authority
CN
China
Prior art keywords
operating mode
target terminal
terminal
switching
class
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.)
Pending
Application number
CN201910646392.1A
Other languages
Chinese (zh)
Inventor
杨鲲
曾玉婷
刘强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN201910646392.1A priority Critical patent/CN110351818A/en
Publication of CN110351818A publication Critical patent/CN110351818A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/02Terminal devices
    • H04W88/06Terminal devices adapted for operation in multiple networks or having at least two operational modes, e.g. multi-mode terminals
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The present invention relates to a kind of switching of LoRaWAN terminal work mode and control method, terminal and servers, belong to low-power consumption wan communication technical field, the LoRaWAN terminal formulates operating mode switchover policy by periodically acquiring terminal battery electricity quantity, and according to the variation of terminal power supply state and link communication quality at terminal.The LoRaWAN server is by receiving the battery capacity value and operating mode that target terminal is sent, obtain the downstream traffic of target terminal, according to battery capacity value and downstream traffic, the switching command of decision-making work mode, switching command is sent to target terminal, so that the operating mode of target terminal is effectively switched, solve target terminal energy saving in the prior art and the poor technical problem of reliability balancing, so that peak optimizating network integrally consumes energy while the operating mode switching mode of target terminal can satisfy downlink communication demand, compensate for the deficiency for lacking Working mode switching method in the prior art.

Description

The switching of LoRaWAN terminal work mode and control method, terminal and server
Technical field
The invention belongs to low-power consumption wan communication technical fields, and in particular to a kind of LoRaWAN terminal work mode is cut It changes and control method, terminal and server.
Background technique
LoRaWAN is a kind of LPWAN (low-power consumption wide area network) technical specification, and maximum feature is remote low-power consumption. In agreement according to the opening mechanism of reception window and different Internet of Things using the demand to energy consumption be terminal formulated Class A, Tri- kinds of different modes of Class B and Class C.
Wherein, Class mode A supports two-way communication, opens two short receptor windows reception data after sending data, this Mode energy consumption is minimum;Class B-mode is not only supported to open two short receptor windows after sending data in Class mode A, also be propped up It holds by opening additional reception window (reception window is also PingSlot), this mould after Beacon synchronizing network in preset time The energy consumption of formula is higher than Class mode A, but downlink data acceptance rate is higher, postpones lower;Class C mode is except transmission data Outside, remaining time all opens reception window monitored data, and this mode energy consumption highest is needed in long power supply state.But it is this The delay of mode is minimum, downlink reception success rate highest.
From the point of view of downlink business, the applicable application scenarios of LoRaWAN technology can be divided into that downlink data is less to answer With the application more with downlink data.When terminal is acquired for data, monitoring etc. is in application, a small amount of downlink communication can satisfy Communication requirement.But works as terminal and be connected with equipment is executed, when needing to be implemented the operation that a large amount of servers issue, open a small amount of reception Window is no longer satisfied the demand of application.
During downlink communication in the related technology, if terminal pattern uses Class mode A, in downlink data When measuring more, reliability is lower, less in downlink data amount if target terminal mode uses Class B or C mode When, energy saving is lower, waste of energy, so how while guaranteeing reliability, and can be energy saving, it is asking for urgent need to resolve Topic.
Summary of the invention
In order at least solve the problems, such as that energy saving of the existing technology and reliability balancing are poor, the present invention provides A kind of switching of LoRaWAN terminal work mode and control method, terminal and server, the spy with high reliability and energy saving It is fixed.
Technical solution provided by the invention is as follows:
On the one hand, a kind of LoRaWAN terminal work mode switching method, comprising:
The battery capacity value and operating mode of target terminal are obtained every predetermined period;
Whether the power supply state for judging the target terminal is long power supply;
If so, obtaining the downlink communication quality of the target terminal;
According to the battery capacity value and the downlink communication quality, the switching of operating mode described in decision.
Still optionally further, described according to the battery capacity value and downlink communication quality, Working mould described in decision The switching of formula, comprising:
Whether the operating mode for judging the target terminal is Class C;
If so, keeping presently described operating mode;
If it is not, then switching the operating mode to Class C, and handover information is sent to server.
It still optionally further, whether is after length is powered in the power supply state for judging the target terminal, further includes:
If it is not, the battery capacity value and the operating mode are sent to server, then by MAC order so as to described The switching command of server operating mode according to the battery capacity value decision.
Still optionally further, the battery capacity value and the Working mould are sent to server by MAC order described Before formula, further includes:
Whether the operating mode for judging the target terminal is Class B;
If so, switching the operating mode to ClassA, and handover information is sent to the server;
It is described by MAC order, send the battery capacity value and the operating mode to server are as follows: in the target When the operating mode of terminal is not Class B, by MAC order, by the battery capacity value and the operating mode to The server is sent.
Still optionally further, before the switching operating mode to Class A, further includes:
Judge whether the battery capacity is lower than the first power threshold;
If so, switching the operating mode to CLass A, and handover information is sent to the server;If it is not, then Keep presently described operating mode;
Wherein, before the switching operating mode to Class A, further includes:
Obtain the value of the downlink reception mark of the target terminal;Whether the value for judging the downlink reception mark is false; If so, switching the operating mode to CLass A, and handover information is sent to the server.
Another aspect, a kind of LoRaWAN terminal work mode method for handover control, comprising:
Receive the battery capacity value and operating mode that target terminal is sent;
Obtain the downstream traffic of the target terminal;
According to the battery capacity value and the downstream traffic, the switching command of operating mode described in decision;
The switching command is sent to the target terminal.
Still optionally further, described according to the battery capacity value and the downstream traffic, operating mode described in decision Switching command, comprising:
According to the battery capacity value, the corresponding battery capacity value of the target terminal is updated;
Identify the operating mode of the target terminal;
If the operating mode is Class A, judge whether the battery capacity value of the target terminal is higher than the Two power thresholds judge whether the traffic density of the target terminal is higher than the first traffic density threshold value if being higher than, if high In then to the corresponding target terminal transmission switching operating mode to the order of Class B operating mode;
If the operating mode is Class C, judge whether the traffic density of the target terminal is higher than second Traffic density threshold value switches the operating mode to Class B operating mode if so, sending to the corresponding target terminal Order;If it is not, then sending the life for switching the operating mode to Class A operating mode to the corresponding target terminal It enables.
Still optionally further, further includes:
Obtain and record the traffic density of the target terminal;
The traffic density of the target terminal is updated according to predetermined period;
Reception pattern handover information, and correspond to according to the pattern switching information update operating mode of target terminal.
Another aspect, a kind of LoRaWAN terminal, any of the above-described LoRaWAN terminal works mould of the terminal applies The method of formula switching carries out the switching of operating mode.
Another aspect, a kind of LoRaWAN server, any of the above-described LoRaWAN terminal work of the server application Operation mode method for handover control controls the switching of the operating mode of corresponding target terminal.
LoRaWAN terminal work mode switching provided in an embodiment of the present invention and control method, terminal and server, should LoRaWAN terminal is by periodically acquiring terminal battery electricity quantity, and according to the variation and link communication quality of terminal power supply state Operating mode switchover policy is formulated at terminal.The battery capacity value that the LoRaWAN server is sent by receiving target terminal And operating mode, the downstream traffic of target terminal is obtained, according to battery capacity value and downstream traffic, decision-making work mode Switching command sends switching command and solves existing to target terminal so that the operating mode of target terminal is effectively switched Target terminal energy saving and the poor technical problem of reliability balancing in technology, so that the switching side of target terminal operating mode Peak optimizating network integrally consumes energy while formula can satisfy downlink communication demand, compensates for and lacks operating mode in the prior art and cut Change the deficiency of method.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow diagram of LoRaWAN terminal work mode switching method provided in an embodiment of the present invention;
Fig. 2 is the flow diagram for another LoRaWAN terminal work mode switching method that inventive embodiments provide;
Fig. 3 is a kind of flow diagram for LoRaWAN terminal work mode method for handover control that inventive embodiments provide;
Fig. 4 is the process signal for another LoRaWAN terminal work mode method for handover control that inventive embodiments provide Figure;
Fig. 5 is a kind of structural schematic diagram for LoRaWAN terminal that inventive embodiments provide;
Fig. 6 is a kind of structural schematic diagram for LoRaWAN server that inventive embodiments provide;
Fig. 7 is a kind of structural schematic diagram for LoRaWAN terminal work mode switching system that inventive embodiments provide;
Fig. 8 is a kind of structural schematic diagram of storage medium provided in an embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, technical solution of the present invention will be carried out below Detailed description.Obviously, described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.Base Embodiment in the present invention, those of ordinary skill in the art are obtained all without making creative work Other embodiment belongs to the range that the present invention is protected.
Embodiment one:
In order to clearly illustrate that the process and advantage of the present embodiment inventive method, the present invention provide a kind of LoRaWAN Terminal work mode switching method.
Fig. 1 is a kind of flow diagram of LoRaWAN terminal work mode switching method provided in an embodiment of the present invention.
Referring to Fig. 1, a kind of LoRaWAN terminal work mode switching method provided in an embodiment of the present invention, may include Following steps:
S11, the battery capacity value and operating mode that target terminal is obtained every predetermined period.
LoRa has been used in an all trades and professions as low-power consumption wide-area communication most promising at present In.LoRa uses linear frequency modulation spread spectrum modulation technique, while maintaining low-power consumption, hence it is evident that increases communication distance and network effect Rate, and interference is eliminated, achieve the purpose that even if using identical frequency while will not generate transmission to interfere with each other.In LoRa base The gateway developed on plinth can receive parallel, handle multiple node datas, expand power system capacity.LoRaWAN is to be based on The a set of communications protocol and system architecture of LoRa electric communication network design, if being exactly by LoRaWAN for protocol hierarchy MAC layer, LoRa are physical layers.LoRaWAN agreement for low-power consumption, battery powered sensor is optimized, include not The target terminal node of same level is to optimize the equilibrium relation between network delay and battery life.What it was entirely bidirectional, by pacifying Full expert's building ensures reliability and safety.
In order to promote the reliability and safety of information, the embodiment of the present invention uses LoRaWAN terminal, defines certain LoRaWAN terminal is target terminal, and the update cycle of goal-selling terminal obtains mesh every predetermined period according to predetermined period Mark the battery capacity value and operating mode of terminal.
For example, predetermined period can be set to 30mins, every 30 minutes, the battery capacity value of target terminal is reacquired With current operating mode.The successful terminal that networks records oneself current battery capacity value and locating mode.
Whether S12, the power supply state for judging target terminal are long power supply.
Specifically, the power supply state for identifying target terminal judges whether power supply state is long power supply.The power supply of target terminal State can be divided into battery power supply, the long power supply of direct charging battery or directly fill long power supply.That is, the long power supply of target terminal may include Two kinds of situations: one kind is directly filling, charger power supply;One kind is that battery is directly filled, while battery is target terminal power supply.Root It can also basis to judge whether the power supply state of target terminal is long power supply according to the battery power consumption situation of target terminal Whether the path of electric current is long power supply come the working condition for judging target terminal, is not specifically limited herein, any to identify Judge that the method for the working condition of target terminal can be all belonged to the scope of protection of the present invention using in the present invention.
S13, if so, obtain target terminal downlink communication quality.
When determining the power supply state of target terminal as long power supply, that is, when there is outer charging utensil and being powered, acquisition mesh Mark the communication quality of the downlink of terminal.
Uplink refers to that terminal to base station, downlink refer to base station to terminal.In mobile communication system, downlink refers to signal Physical channel from base station to mobile station.Downlink be by base station transmitter, combiner, duplexer, feeder line and other loss, Antenna gain, path loss, building loss, human body loss, mobile phone receiving sensitivity composition.The communication quality packet of downlink The communication quality of physical channel of the signal from base station to terminal is included, the quality of signal similar can be interpreted as.
S14, according to battery capacity value and downlink communication quality, the switching of decision-making work mode.
After getting the downlink communication quality of target terminal, according to the battery capacity and downlink of target terminal Communication quality, the switching of the operating mode of decision objective terminal.
For example, the downlink communication quality for getting target terminal be it is excellent, the battery capacity value of target terminal is abundant When, the operating mode of target terminal can be switched into operating mode Class C by Class A or Class B, promote reception window Number, improve the receiving velocity of downlink data, guarantee the reliability of data transmission;And in the downlink communication of target terminal When quality or the battery capacity value of target terminal occur insufficient, the operating mode of target terminal can be cut by Class B decision Operating mode Class A is shifted to, while meeting downlink communication, reduces energy consumption.It is worth noting that herein to operating mode Switching enumerate, only illustrate, be not limit, it is any can be according to battery capacity value and downlink communication quality come decision The method of target terminal operating mode switching, all belongs to the scope of protection of the present invention.
A kind of LoRaWAN terminal work mode switching method provided in an embodiment of the present invention, including, it is obtained every predetermined period Take the battery capacity value and operating mode of target terminal;Whether the power supply state for judging target terminal is long power supply;If so, obtaining Take the downlink communication quality of target terminal;According to battery capacity value and downlink communication quality, decision-making work mode Switching.By periodically acquiring terminal battery electricity quantity, and according to the variation and link communication quality of terminal power supply state in terminal It formulates operating mode switchover policy and solves mesh in the prior art so that the operating mode of target terminal is effectively switched in place Terminal energy saving and the poor technical problem of reliability balancing are marked, compensates for and lacks Working mode switching method in the prior art Deficiency.
Embodiment two:
In order to which further technical solution of the present invention is described in detail, on the basis of the above embodiments, the present invention is also Another embodiment is provided.
Fig. 2 is the flow diagram for another LoRaWAN terminal work mode switching method that inventive embodiments provide.
Referring to Fig. 2, another LoRaWAN terminal work mode switching method provided in an embodiment of the present invention, can wrap Include following steps:
S21, the battery capacity value and operating mode that target terminal is obtained every predetermined period.
Whether S22, the power supply state for judging target terminal are long power supply.
S221, if so, obtain target terminal downlink communication quality.
Wherein, the S11~S13 of step S21~S221 reference above-described embodiment, in above-described embodiment S11~S13 It was discussed in detail, was not repeated herein.
Whether S2211, the operating mode for judging target terminal are Class C;If so, keeping current operation mode;If It is no, then switching working mode to Class C, and handover information is sent to server.
Specifically, when determining target terminal is long power supply state, judge the operating mode of target terminal, target terminal Operating mode be the target terminal got every predetermined period operating mode.
If the current operation mode of target operation terminal is Class C, proves that target terminal is in and postpone minimum, downlink The highest working condition of successful receiving rate, since target terminal is in long power supply state, does not have to although energy consumption is higher Consider energy consumption condition, holding operating mode is Class C, does not do and switches.
If the current operation mode of target terminal is not Class C, since the powering mode of target terminal is long power supply, no With energy consumption issues are worried, in order to further enhance the downlink reception success rate of target terminal, delay is reduced, by target operation terminal Operating mode Class C is switched to by Class A or Class B, with best-fit downlink communication demand and energy requirements.
Further, if it is not, then by MAC order, battery capacity value and operating mode are sent to server, to service Device is according to the switching command of battery capacity value decision-making work mode.
MAC (Media Access Control, medium access control), for defining the position of the network equipment.MAC is integrated In network interface card, it is made of the number of 16 systems of 48bit, 0~23 bit digital is called tissue unique identifier (organizationally unique is the mark for identifying LAN node).24~47 are distributed by producer oneself, In the 48th be multicast address flag bit.The physical address of network interface card is usually by the EPROM core of network interface card manufacturer write-in network interface card In piece, the data in chip can carry out erasable, mark of really relying when what it was stored is transmission data sending number by program According to computer and receive data host address.That is, during the physical transfer of network bottom layer, data transmission is Host is identified by physical address, it must be globally unique.Each target terminal has the MAC of oneself.
When the power supply state for determining target terminal is not long power supply, is powered for battery, then sent to server DevStatusAns order, the battery capacity value of target terminal is sent to server, and the source of the battery capacity value is every pre- If the battery capacity value for the target terminal that the period obtains, so that work of the server according to the battery capacity value decision target terminal The switching command of mode.Specifically, it may comprise steps of:
S222, if it is not, whether the operating mode for judging target terminal is Class B.
When the power supply state for determining target terminal is not long power supply, the work shape of current target terminal is further judged Whether state is Class B, and the source of the working condition of target terminal is the work of the target terminal got every predetermined period Mode judges whether the operating mode of the target terminal is Class B according to the operating mode of collected target terminal.
S2221, if so, judging whether battery capacity is lower than the first power threshold;If being lower than the first power threshold, cut The mode that changes jobs is sent to CLass A, and by handover information to server;If being not less than the first power threshold, keep current Operating mode.
When the operating mode for determining target terminal is Class B, then prove that target operation terminal is higher in consuming energy, And the higher working condition of downlink communication successful receiving rate, it is in order to further determine the energy consumption and downlink communication of this working condition No balance further determines that target terminal so that the working condition of target terminal meets energy consumption and downlink communication demand simultaneously The case where battery capacity value.
According to operation needs, the first power threshold is set, the first power threshold determines that target terminal runs Class B work The minimum charge value of operation mode, is herein not specifically limited the numerical value of the first power threshold, can be 50%, can also basis The specific operation of target terminal is set, and does not do rigid restriction herein.Judging the battery capacity value of target terminal is No the one the first power threshold proves that the battery of target terminal has foot if battery capacity value is not below the first power threshold Enough electricity run Class B operating mode, then keeping operating mode is Class B, do not do and switch.
If the current battery capacity value of target terminal is lower than the first power threshold, prove that the battery for changing target terminal does not have Enough electricity continue to run Class B operating mode, then it is smaller to need to switch to the operating mode of target terminal energy consumption Class A operating mode, and by operating mode handover information to server send.
The needs of meeting energy consumption and downlink communication simultaneously in order to further ensure the operating mode of target terminal operation, is cutting Before the mode that changes jobs to Class A, can with the following steps are included:
Whether S22211, the value for judging downlink reception mark are false;If so, switching working mode will be cut to CLass A Information is changed to send to server;If it is not, then keeping current operation mode.
Downlink reception identifies the value of (Dlflag), represents and whether has received downlink data, is in the value of Dlflag When false, "false" is represented, target terminal is not received by downlink data, then operating mode is switched to the lesser CLass of energy consumption A operating mode.
When the value of Dlflag is ture, "true" is represented, target terminal receives downlink data, and target terminal can be Current operating mode continues to run, then, maintains current operating mode CLass B, do not do and change.
In embodiment provided by the invention, the update method of Dlflag are as follows: initialization Dlflag timer and Dlflag Dlflag is set as true by value, is opened Dlflag timer and is set the time as t, for example, time t is 3*128s, can keep away in this way Exempt from 1 or error that 2 Beacon periods may cause;The target terminal in Class B operating mode is looped to determine to exist Whether PingSlot receives downlink data, if target terminal receives downlink data, sets Dlflag=true, resets simultaneously Dlflag timer and timer time (3*128s);If target terminal does not receive downlink data, at t (3*128s) Between after trigger timer interruption, Off Timer simultaneously sets Dlflag=true.Wherein, D1flag is flag bit, it can be understood as It is on or off for recording, pingSlot is the channel of ping, by this channel reception message, is not repeated herein.
S2222, when the operating mode of target terminal is not Class B, by MAC order, by battery capacity value and work Operation mode is sent to server.
When the operating mode for determining target terminal is not Class B, then the working condition of target operation terminal is proved In one of the two kinds of extreme operating modes low or that energy consumption is high that consume energy, then by the working condition of target terminal and battery capacity Value is sent to server by MAC order, enable the server to according to the operating mode of target terminal and battery capacity value into The transmission of row operating mode switching command, the demand of the energy consumption of further satisfaction target terminal and downlink communication balance.
S23, the pattern switching instruction for receiving server, instruct according to pattern switching, execute corresponding pattern switching.
In order to ensure the operating mode of target terminal can smoothly switch, target terminal can also receive the work of server Pattern switching instruction carries out corresponding pattern switching according to the operating mode switching command that server is sent.
For example, be not long power supply state in target terminal, and when the operating mode of target terminal is not Class B, work The switching of mode is judged by server, at this point, target terminal can receive the operating mode switching command of server transmission, Carry out corresponding operating mode switching.
A kind of LoRaWAN terminal work mode switching method provided in an embodiment of the present invention, including, it is obtained every predetermined period Take the battery capacity value and operating mode of target terminal;Whether the power supply state for judging target terminal is long power supply;If so, obtaining Take the downlink communication quality of target terminal;According to battery capacity value and downlink communication quality, decision-making work mode Switching.By periodically acquiring terminal battery electricity quantity, and according to the variation and link communication quality of terminal power supply state in terminal It formulates operating mode switchover policy and solves mesh in the prior art so that the operating mode of target terminal is effectively switched in place Terminal energy saving and the poor technical problem of reliability balancing are marked, compensates for and lacks Working mode switching method in the prior art Deficiency.Meanwhile by judging whether target terminal grows power supply, maintain the operating mode of target terminal in long power supply Class C, so that the downlink reception success rate of target terminal is maintained at highest, being in long power supply state with target terminal can fill Divide using not considering to consume energy, reaches highest downlink stability and be adapted, meet energy consumption and downlink communication demand;In target terminal When not being long power supply, fully consider battery capacity value can support target terminal run under the premise of high downlink communication quality, make The battery capacity and downlink communication quality for obtaining target terminal obtain the support of reasonable operating mode;By the way that downlink reception mark is arranged Know, has further judged the current downlink communication quality of target terminal, further ensured the downlink communication demand of target terminal With the matching of energy consumption so that the operating mode switching mode of target terminal optimizes net while can satisfy downlink communication demand Network integrally consumes energy.
Embodiment three:
In order to be explained further the technical program, the embodiment of the present invention also provides a kind of LoRaWAN terminal work mode and cuts Change control method.
Fig. 3 is a kind of flow diagram for LoRaWAN terminal work mode method for handover control that inventive embodiments provide.
It, can be with referring to Fig. 3, a kind of LoRaWAN terminal work mode method for handover control provided in an embodiment of the present invention The following steps are included:
S31, battery capacity value and operating mode that target terminal is sent are received.
Server receives battery capacity value and operating mode transmitted by target terminal.It is sent for example, receiving target terminal DevStatusAns order, obtain the battery capacity value of target terminal, and store record target terminal battery capacity value and Operating mode.
S32, the downstream traffic for obtaining target terminal.
Server obtains the downstream traffic of target terminal, and acquisition methods can be real-time monitoring, or other, this Place is not specifically limited, and the method for any downstream traffic that can get target terminal can be applied in this application, Belong to the protection scope of the application.
S33, according to battery capacity value and downstream traffic, the switching command of decision-making work mode.
S34, switching command is sent to target terminal.
The battery capacity value and downstream traffic of server analysis target terminal are based on battery capacity value and downlink communication Amount, the switching command of the operating mode of decision objective terminal, for example, the battery capacity value in target terminal is lower, downlink communication Measure also less, and when operating mode be in downlink communication rate higher operating mode, the operating mode of decision objective terminal switches To the lower operating mode that consumes energy, the instruction switched to the lower operating mode that consumes energy is generated, and the instruction is sent to target Terminal, so that target terminal is able to carry out.
A kind of LoRaWAN terminal work mode method for handover control provided in an embodiment of the present invention, including receive target end Hold the battery capacity value sent and operating mode;Obtain the downstream traffic of target terminal;It is logical according to battery capacity value and downlink Traffic, the switching command of decision-making work mode;Switching command is sent to target terminal.The LoRaWAN server is by receiving mesh The battery capacity value and operating mode that terminal is sent are marked, the downstream traffic of target terminal is obtained, according to battery capacity value under The row traffic, the switching command of decision-making work mode send switching command to target terminal, so that the operating mode of target terminal Effectively switched, solves target terminal energy saving in the prior art and the poor technical problem of reliability balancing, so that Peak optimizating network integrally consumes energy while the operating mode switching mode of target terminal can satisfy downlink communication demand, compensates for Lack the deficiency of Working mode switching method in the prior art.
Example IV:
In order to which further technical solution of the present invention is explained, the present invention also provides another embodiments.
Fig. 4 is the process signal for another LoRaWAN terminal work mode method for handover control that inventive embodiments provide Figure.
Referring to Fig. 4, another LoRaWAN terminal work mode method for handover control provided in an embodiment of the present invention, it can With the following steps are included:
S41, battery capacity value and operating mode that target terminal is sent are received.
S42, the downstream traffic for obtaining target terminal.
Wherein, the S31~S32 of step S41~S42 reference above-described embodiment, in above-described embodiment S31~S32 It was discussed in detail, was not repeated herein.
Further, LoRaWAN terminal work mode method for handover control provided in an embodiment of the present invention, can also wrap Include: obtaining and record the traffic density of target terminal;The traffic density of target terminal is updated according to predetermined period;Reception pattern is cut Information is changed, and corresponds to the operating mode of target terminal according to pattern switching information update.
Specifically, server obtains the traffic density of target terminal, and traffic density includes upstream traffic and downlink communication Amount.For example, server, after obtaining and having recorded traffic density, every 128s updates traffic density, guarantee the accurate of traffic density Property.The renewal frequency of traffic density (predetermined period) is only enumerated herein, is not to limit.In order to enable server is to target The record of the operating mode of terminal is accurate, and server is after the pattern switching information for receiving target terminal transmission, to the work of record Operation mode is updated.
S431, according to battery capacity value, update the corresponding battery capacity value of target terminal.
According to the battery capacity value and operating mode of the target terminal received, the target terminal recorded before update Battery capacity value.For example, the battery capacity value for the target terminal that server is recorded is 75%, after having run a period of time, mesh The battery capacity value of mark terminal is changed, and after consuming electricity, has become 56%, server has received target terminal hair Battery capacity value after the variation sent, then original battery capacity value 75% is updated to 56% by server.It is worth noting that It is only enumerated herein for battery capacity value, is not to limit.
S432, the operating mode for identifying target terminal.
After the battery capacity value to target terminal is updated, identify that the operating mode of target terminal, basis of characterization are The operating mode that target terminal is sent to server.
If S4321, operating mode are Class A, judge whether the battery capacity value of target terminal is higher than the second electricity Threshold value judges whether the traffic density of target terminal is higher than the first traffic density threshold value if being higher than, if being higher than, to correspondence Target terminal send switching working mode to Class B operating mode order.
When the operating mode for determining target terminal is Class A, then illustrate that the working condition of the target terminal is low Energy consumption, low row communications status further judge mesh to guarantee that the downlink communication demand of target terminal is reasonably met Whether the battery capacity value of mark terminal is greater than the second power threshold, according to operation needs, sets the second power threshold, the second electricity Threshold value determines the minimum charge value of target terminal operation Class B operating mode, i.e., operational terminal is by operating mode Class A The minimum battery capacity value for switching to operating mode Class B, is herein not specifically limited the numerical value of the second power threshold, can It can be 50% (battery field value 63 in DevStatusAns order) with identical as the first power threshold, it can also be with First power threshold is different, is set according to the specific carrying out practically of target terminal, does not do rigid restriction herein.Such as The battery capacity value of fruit target terminal is higher than the second power threshold, then proves that target terminal has enough electricity to run energy consumption Higher, downlink communication quality better quality mode has operating mode is higher to the downstream traffic and higher work of energy consumption The condition of pattern switching, can according to demand by the operating mode of target terminal by consume energy it is minimum, downlink communication quality is minimum Class A operating mode switches to higher, the higher Class B operating mode of downlink communication quality that consumes energy, and generates switch operating Mode to Class B instruction.
Further, has operating mode is higher to downstream traffic and energy consumption more senior engineer in the battery capacity value of terminal When the condition of operation mode switching, in order to carry out the switching of operating mode according to specific requirements, can further it judge whether there is The demand switched to downstream traffic more height mode, judges traffic density.According to the pass between energy consumption and operating mode System, sets the first traffic density threshold value, and the first traffic density threshold value identifies the traffic carrying of operating mode Class B operation Value also identifies the upper limit value of the traffic of operation operating mode Class A.
The traffic density between target terminal and server this moment is obtained, if current traffic density is close higher than the first communication Threshold value is spent, then the target terminal for illustrating at this time, which has, cuts operating mode to the operating mode for having more high traffic bearing capacity The demand changed, at this point, the battery capacity of target terminal also meets operating mode is higher to downstream traffic and energy consumption more senior engineer The condition of operation mode switching, therefore target terminal can be set and switch to operating mode and have more high traffic bearing capacity Operating mode is switched to Class B by Class A by operating mode, generate the instruction of switching working mode to Class B.
If the current traffic density of target terminal is lower than the first traffic density threshold value, illustrate that target terminal is run at this time Operating mode, it is sufficient to meet current downstream traffic, without the operating mode of switching working mode to high traffic, then tie up It holds current operation mode, realizes energy-efficient purpose, i.e., when the traffic density of target terminal is lower than the first traffic density threshold value, dimension The operating mode Class A of target terminal at this time is held, so that energy consumption is minimum.
If S4322, operating mode are Class C, it is close to judge whether the traffic density of target terminal is higher than the second communication Threshold value is spent, if being higher than, sends the order of switching working mode to Class A operating mode to corresponding target terminal.
When the operating mode for determining target terminal is Class C, then illustrate that the working condition of target terminal at this time is Highest energy consumption, highest downlink traffic condition, since the powering mode of target terminal at this time is battery power supply, then in order to reduce consumption Can, the operating mode of target terminal is switched to the operating mode of relatively low energy consumption, Class B or Class A.In order to guarantee The downlink communication demand and energy consumption of target terminal are reasonably matched, at this point, the traffic density of target terminal is judged, with determination Which kind of energy consumption, which kind of downstream traffic work status mode traffic density this moment needs to switch to.
According to the relationship between energy consumption and operating mode, the second traffic density threshold value, the second traffic density threshold value mark are set The traffic bearing value for having known operating mode Class B operation also identifies the upper of the traffic of operation operating mode Class A Limit value.Second traffic density threshold value can be set as identical as the first traffic density threshold value, can also be different, it is preferable that this reality It is identical as the second traffic density threshold value to apply the selected first traffic density threshold value of example.
If the traffic density of target terminal is higher than the second traffic density threshold value, illustrate the communication of target terminal at this time Amount is in high requirements, and the operating mode of the minimum traffic bearing capacity of lowest energy consumption can make downlink quality reduce, in order to full The demand of sufficient downstream traffic, while realizing energy conservation, the operating mode of target terminal is switched into energy consumption and the traffic carries energy The medium Class B of power.Generate the instruction of switching working mode to Class B.
If the traffic density of target terminal is lower than the second traffic density threshold value, illustrate the communication of target terminal at this time Amount is in lower demand, and the operating mode of the minimum traffic bearing capacity of lowest energy consumption can be used, logical in order to meet downlink The demand of traffic, while realizing energy conservation, the operating mode of target terminal is switched into energy consumption and traffic bearing capacity is minimum Class A generates the instruction of switching working mode to Class A.
The instruction that operating mode switches is sent to target terminal, it is preferable that in the present embodiment, application layer is selected to send mesh Mark the switching command of the operating mode of terminal.
A kind of LoRaWAN terminal work mode method for handover control provided in an embodiment of the present invention, including receive target end Hold the battery capacity value sent and operating mode;Obtain the downstream traffic of target terminal;It is logical according to battery capacity value and downlink Traffic, the switching command of decision-making work mode;Switching command is sent to target terminal.The LoRaWAN server is by receiving mesh The battery capacity value and operating mode that terminal is sent are marked, the downstream traffic of target terminal is obtained, according to battery capacity value under The row traffic, the switching command of decision-making work mode send switching command to target terminal, so that the operating mode of target terminal Effectively switched, solves target terminal energy saving in the prior art and the poor technical problem of reliability balancing, so that Peak optimizating network integrally consumes energy while the operating mode switching mode of target terminal can satisfy downlink communication demand, compensates for Lack the deficiency of Working mode switching method in the prior art.Meanwhile the downstream traffic by obtaining target terminal, identify mesh The operating mode of terminal is marked, thus when the operating mode of target terminal is Class A, by the battery electricity for judging target terminal Magnitude and traffic density value, so that decision meets in battery capacity value, operating mode is higher to downstream traffic and energy consumption is higher The condition of operating mode switching, when being provided simultaneously with the demand switched to downstream traffic more height mode, by the work of target terminal Pattern switching to greater energy consumption and higher traffic Class B.When the operating mode of target terminal is Class C, pass through The traffic density of target terminal is judged, so that decision switches work in peak volume of the traffic lower than the Class A of setting Operation mode is to Class A, otherwise, switching working mode to Class B, so that farthest meeting downstream traffic and energy consumption Demand.
Embodiment five:
In order to be adapted with LoRaWAN terminal work mode switching method provided by the above embodiment, the embodiment of the present invention A kind of LoRaWAN terminal is also provided.
Fig. 5 is a kind of structural schematic diagram for LoRaWAN terminal that inventive embodiments provide.
The embodiment of the present invention provides a kind of LoRaWAN terminal, the LoRaWAN terminal work of any of the above-described embodiment of terminal applies The method of operation mode switching carries out the switching of operating mode.
Specifically, referring to Fig. 5, the LoRaWAN terminal that the embodiment of the present invention provided, may include: obtain module 51, First judgment module 52, decision-making module 53.
Wherein, module 51 is obtained, for obtaining the battery capacity value and operating mode of target terminal every predetermined period.
First judgment module 52, for judging whether the power supply state of target terminal is long power supply;If so, obtaining target The downlink communication quality of terminal.
Decision-making module 53, for according to battery capacity value and downlink communication quality, the switching of decision-making work mode.
About the terminal in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
A kind of LoRaWAN terminal provided in an embodiment of the present invention receives battery capacity value and work that target terminal is sent Mode;Obtain the downstream traffic of target terminal;According to battery capacity value and downstream traffic, the switching of decision-making work mode refers to It enables;Switching command is sent to target terminal.The battery capacity value and work that the LoRaWAN server is sent by receiving target terminal Operation mode obtains the downstream traffic of target terminal, according to battery capacity value and downstream traffic, the switching of decision-making work mode Instruction sends switching command to target terminal and solves the prior art so that the operating mode of target terminal is effectively switched Middle target terminal energy saving and the poor technical problem of reliability balancing, enable the operating mode switching mode of target terminal Peak optimizating network integrally consumes energy while enough meeting downlink communication demand, compensates for and lacks operating mode switching side in the prior art The deficiency of method.
Further, LoRaWAN terminal provided in an embodiment of the present invention can also include: mode deciding module 54, work Mode switch module 55, battery capacity judgment module 56, downlink reception judgment module 57.
Wherein, mode deciding module 54, for judging whether the operating mode of target terminal is Class C.
Operating mode switching module 55, when the operating mode for target terminal is not Class C, then switching working mode It is sent to Class C, and by handover information to server.
Mode deciding module 54 is also used to judge whether terminal work mode is Class when terminal is not long power supply B。
Battery capacity judgment module 56, for judging whether battery capacity is low when terminal work mode is non-Class B In the first power threshold.Operating mode switching module 55, when being also used to battery capacity lower than the first power threshold, switch operating mould Formula is sent to CLass A, and by handover information to server.
Downlink reception judgment module 57, for judging whether target terminal has downlink reception, operating mode switching module is also Value for downlink reception mark is fictitious time, then switching working mode to CLass A, and handover information is sent to server.
About the terminal in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Another LoRaWAN terminal provided in an embodiment of the present invention obtains the battery electricity of target terminal every predetermined period Magnitude and operating mode;Whether the power supply state for judging target terminal is long power supply;If so, obtaining the downlink chain of target terminal Road communication quality;According to battery capacity value and downlink communication quality, the switching of decision-making work mode.By periodically acquiring Terminal battery electricity quantity, and operating mode switching plan is formulated at terminal according to the variation of terminal power supply state and link communication quality Slightly, so that the operating mode of target terminal is effectively switched, target terminal energy saving and reliability in the prior art are solved The poor technical problem of balance, compensates for the deficiency for lacking Working mode switching method in the prior art.Meanwhile passing through judgement Whether target terminal grows power supply, so that the operating mode of target terminal is maintained Class C in long power supply, so that target terminal Downlink reception success rate is maintained at highest, is in long power supply state with target terminal and can make full use of and does not consider to consume energy, and reaches Highest downlink stability is adapted, and meets energy consumption and downlink communication demand;When target terminal is not long power supply, fully consider Battery capacity value can support target terminal run under the premise of high downlink communication quality so that the battery capacity of target terminal with Downlink communication quality obtains the support of reasonable operating mode;It is identified by setting downlink reception, has further judged target end The current downlink communication quality at end further ensures the downlink communication demand of target terminal and the matching of energy consumption, so that mesh Peak optimizating network integrally consumes energy while the operating mode switching mode of mark terminal can satisfy downlink communication demand.
Embodiment six:
In order to be adapted with LoRaWAN terminal work mode method for handover control provided by the above embodiment, the present invention is real It applies example and a kind of LoRaWAN server is also provided, the operating mode for controlling target terminal switches.
Fig. 6 is a kind of structural schematic diagram for LoRaWAN server that inventive embodiments provide.
A kind of LoRaWAN server provided in an embodiment of the present invention, the LoRaWAN of any of the above-described embodiment of server application Terminal work mode method for handover control controls the switching of the operating mode of corresponding target terminal.
Specifically, referring to Fig. 6, the LoRaWAN server that the embodiment of the present invention provided, may include: receiving module 61, module 62, decision-making module 63, sending module 64 are obtained.
Wherein, receiving module 61, for receiving the battery capacity value and operating mode of target terminal transmission.
Module 62 is obtained, for obtaining the downstream traffic of target terminal.
Decision-making module 63, for according to battery capacity value and downstream traffic, the switching command of decision-making work mode.
Sending module 64, for sending switching command to target terminal.
About the terminal in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
A kind of LoRaWAN server provided in an embodiment of the present invention controls the pattern switching of target terminal, and it is whole to receive target Hold the battery capacity value sent and operating mode;Obtain the downstream traffic of target terminal;It is logical according to battery capacity value and downlink Traffic, the switching command of decision-making work mode;Switching command is sent to target terminal.The LoRaWAN server is by receiving mesh The battery capacity value and operating mode that terminal is sent are marked, the downstream traffic of target terminal is obtained, according to battery capacity value under The row traffic, the switching command of decision-making work mode send switching command to target terminal, so that the operating mode of target terminal Effectively switched, solves target terminal energy saving in the prior art and the poor technical problem of reliability balancing, so that Peak optimizating network integrally consumes energy while the operating mode switching mode of target terminal can satisfy downlink communication demand, compensates for Lack the deficiency of Working mode switching method in the prior art.
Further, LoRaWAN server provided in an embodiment of the present invention can also include: that update module 65, mode are sentenced Disconnected module 66, battery capacity value judgment module 67, traffic density judgment module 68.
Wherein, update module 65, for updating the corresponding battery capacity value of target terminal according to battery capacity value.
Mode deciding module 66, for judging the operating mode of target terminal,
Battery capacity value judgment module 67, for operating mode be Class A when, judge the battery capacity value of target terminal Whether the second power threshold is higher than.
Traffic density judgment module 68 judges mesh when the battery capacity value for target terminal is higher than the second power threshold Whether the traffic density of mark terminal is higher than the first traffic density threshold value, if being higher than, passes through sending module 64 to corresponding target Terminal sends the order of switching working mode to Class B operating mode.It is also used to, when operating mode is Class C, judges mesh Whether the traffic density of mark terminal is higher than the second traffic density threshold value, if so, by sending module 64, it is whole to corresponding target End sends the order of switching working mode to Class B operating mode;If it is not, then whole to corresponding target by sending module 64 End sends the order of switching working mode to Class A operating mode.
About the terminal in above-described embodiment, wherein modules execute the concrete mode of operation in related this method Embodiment in be described in detail, no detailed explanation will be given here.
Another LoRaWAN server provided in an embodiment of the present invention, receive target terminal send battery capacity value and Operating mode;Obtain the downstream traffic of target terminal;According to battery capacity value and downstream traffic, decision-making work mode is cut Change instruction;Switching command is sent to target terminal.The battery capacity value that the LoRaWAN server is sent by receiving target terminal And operating mode, the downstream traffic of target terminal is obtained, according to battery capacity value and downstream traffic, decision-making work mode Switching command sends switching command and solves existing to target terminal so that the operating mode of target terminal is effectively switched Target terminal energy saving and the poor technical problem of reliability balancing in technology, so that the operating mode switching side of target terminal Peak optimizating network integrally consumes energy while formula can satisfy downlink communication demand, compensates for and lacks operating mode in the prior art and cut Change the deficiency of method.Meanwhile the downstream traffic by obtaining target terminal, identify the operating mode of target terminal, thus When the operating mode of target terminal is Class A, by judging the battery capacity value and traffic density value of target terminal, thus certainly Plan meets operating mode is higher to downstream traffic and higher operating mode switching of consuming energy condition in battery capacity value, simultaneously When having the demand switched to downstream traffic more height mode, the operating mode of target terminal is switched into greater energy consumption and higher The Class B of the traffic.When the operating mode of target terminal is Class C, by judging the traffic density of target terminal, from And decision the traffic lower than setting Class A peak volume when, switching working mode to Class A, otherwise, switching Operating mode is to Class B, so that farthest meeting the needs of downstream traffic and energy consumption.
Embodiment seven:
In order to mutually be suitable for above-described embodiment, the embodiment of the present invention also provides a kind of LoRaWAN terminal work mode switching System.
Fig. 7 is a kind of structural schematic diagram for LoRaWAN terminal work mode switching system that inventive embodiments provide.
Referring to Fig. 7, LoRaWAN terminal work mode switching system provided in an embodiment of the present invention, including LoRaWAN are whole Hold 71 and LoRaWAN server 72, wherein LoRaWAN terminal is the LoRaWAN terminal that any of the above-described embodiment provides, LoRaWAN server is the LoRaWAN server that any of the above-described embodiment provides.
LoRaWAN terminal work mode switching system provided in an embodiment of the present invention is passed through by setting up LoRaWAN terminal Terminal battery electricity quantity is periodically acquired, and work is formulated at terminal according to the variation of terminal power supply state and link communication quality Pattern switching strategy.LoRaWAN server obtains target by receiving the battery capacity value and operating mode that target terminal is sent The downstream traffic of terminal, according to battery capacity value and downstream traffic, the switching command of decision-making work mode sends switching and refers to It enables to target terminal so that the operating mode of target terminal is effectively switched and solves target terminal energy conservation in the prior art Property with the poor technical problem of reliability balancing so that the operating mode switching mode of target terminal can satisfy downlink communication Peak optimizating network integrally consumes energy while demand, compensates for the deficiency for lacking Working mode switching method in the prior art.
In order to further make explanations explanation to technical solution of the present invention, the embodiment of the present invention also provides a kind of storage and is situated between Matter.
Embodiment eight:
Fig. 8 is a kind of structural schematic diagram of storage medium provided in an embodiment of the present invention.
Referring to Fig. 8, a kind of storage medium provided in an embodiment of the present invention, comprising: processor 81, and with processor 81 The memory 82 being connected.
Wherein, memory 82 is at least used to execute any of the above-described implementation for storing computer program, computer program The switching of LoRaWAN terminal work mode documented by example and control method.Processor 81 is for calling and executing in memory Computer program.
Embodiment nine:
In order to which further technical solution of the present invention is explained, the embodiment of the invention also provides terminal works The exchange method of LoRaWAN terminal and LoRaWAN server in pattern switching.
The operating mode of target terminal is divided into Class A, Class B and Class C, and the target terminal period obtains battery electricity Magnitude is simultaneously uploaded to server by MAC order, and server updates simultaneously after the battery capacity value for receiving target terminal transmission Record the battery capacity value of terminal.
In order to optimize the demand of energy consumption and downstream traffic, first determine whether the electric power thus supplied of target terminal is long confession Electricity illustrate to be not necessarily to consider the inadequate situation of energy consumption if the power supply state of terminal is long power supply, can with optimal downstream traffic, The operating mode of terminal is switched into the optimal Class C of the traffic.At this point, sentencing to target terminal current operation mode It is disconnected, if the operating mode of target terminal is Class C, keep current operation mode constant;If the current work of target terminal Mode is non-Class C, then switches to Class C, and by MAC order, the message of pattern switching is sent to server.Clothes After business device receives the pattern switching message of target terminal transmission, the operating mode of target terminal has been updated storage.
If the power supply state of target terminal is battery power supply, illustrate the Expenditure Levels for needing to consider battery, operating mode Class B is between three kinds of operating modes, energy consumption with the downstream traffic that can satisfy be it is medium, therefore, judge target Whether the operating mode of terminal this moment is Class B.If so, considering whether target terminal operation Class B operating mode has Enough battery capacities, judge whether the battery capacity value of target terminal at this time is lower than the first power threshold, the first power threshold The minimum charge value of Class B operating mode is run for target terminal.
If the battery capacity value of target terminal is lower than the first power threshold, illustrate that target terminal does not have enough electricity at this time Operating mode is then switched to that energy consumption is lower, the lower Class A of downstream traffic to run Class B operating mode by amount, Class A operating mode has enough electricity support Class A operations although the downstream traffic that can satisfy is lower Mode, target terminal can successively carry out downlink communication, only take a long time.In order to further ensure that the normal fortune of downlink communication Row judges that downlink reception identifies whether as "false", if downlink reception is identified as when battery capacity value is lower than the first power threshold "false" then illustrates that downlink amount demand is lower, then switching working mode to Class A, to reduce energy consumption, and operating mode is switched Information is sent to server, and for server after the pattern switching information for receiving target terminal transmission, the target of more new record is whole The operating mode at end.
If the operating mode of target terminal be non-Class B, prove the operating mode of target terminal be in Class A or In two kinds of optimal energy consumptions of Class C or optimal downstream traffic working condition, then judge whether to work by server The switching of mode and it is switched to which kind of operating mode, sends the battery capacity value of current target terminal to server and carries out mould The request of formula switching judging, the present embodiment select DevStatusAns order, and server receives target terminal transmission After DevStatusAns order, the battery capacity value of target terminal is updated, judges that target terminal is in Class A operating mode Or Class C operating mode, thus according to battery capacity value and traffic density, the switching of decision objective terminal work mode. Specifically, after the operating mode for determining target terminal is Class A, illustrate that target terminal is in low power consuming working condition, It determines whether target terminal battery capacity meets the switching demand to higher downstream traffic operating mode, judges target terminal Whether battery capacity is greater than the second power threshold, is greater than the second battery power threshold in the battery capacity value of target terminal, that is, mesh Mark terminal battery electricity quantity meet under the switching condition of higher downstream traffic operating mode, judge target terminal whether have to The switching demand of higher downstream traffic operating mode, that is, judge whether the traffic density between target terminal and server is higher than First traffic density threshold value, when the traffic density between target terminal and server is higher than the first traffic density threshold value, it was demonstrated that mesh Mark terminal has switching condition and switching demand to higher downstream traffic operating mode, and server is cut by application layer transmission Instruction is changed to target terminal, so that operating mode is switched to operating mode Class B by Class A by target terminal.Work as judgement When operating mode to target terminal is Class C, battery-powered state is in due to target terminal, energy consumption is considered, sentence Whether the traffic density between disconnected target terminal and server is higher than the second traffic density threshold value, and the second traffic density threshold value limits The highest downlink traffic of target terminal operation Class A operating mode is higher than the second traffic density threshold value in traffic density When, illustrate that Class A operating mode is unable to satisfy the downstream traffic of target terminal, then sends operating mode to target terminal and cut Instruction is changed, so that operating mode is switched to Class B by target terminal.It is close lower than the second communication in the traffic density of target terminal When spending threshold value, illustrate that Class A operating mode can satisfy the downstream traffic of target terminal, then sends work to target terminal Pattern switching instruction, so that operating mode is switched to Class A by target terminal, to reach energy saving purpose, meets downlink communication Peak optimizating network entirety energy consumption while demand.
Terminal periodic obtains battery capacity value and is uploaded to server by MAC order;Terminal according to battery capacity and under Whether communications uplink quality carries out between decision terminal Class B to Class A, Class A or Class B to Class C Pattern switching;Server end by upload battery capacity and record downstream traffic, decision Class A to Class B, Whether pattern switching is carried out between Class C to Class B or A;Server end realizes terminal by the application layer order of design Operating mode switching.
For example, in the present embodiment, the user equipment downlink traffic of each Beacon period (128s) the more new record of server Value, i.e. traffic density.
A kind of LoRaWAN terminal work mode switching proposed by the invention and control method, respectively in terminal and service Switching between the implementation pattern of device end, is finally combined into complete mode switching method;Method of the invention has following advantages:
1, when terminal is in Class A or Class B-mode, terminal accurately perceives the variation of power supply state, cuts in time Class C is changed to, guarantees the reliability of downlink communication;
2, the pattern switching that Class B to Class A is realized in terminal, downlink is not when avoiding server transmitting order to lower levels It is influenced caused by reliable;
3, Class B-mode is switched in server end decision to determine, more precisely judges the variation of downlink data amount, meet The demand of server downlink;
4, the common implementation pattern switching method of server and terminal, avoids the limitation only realized at one end, sufficiently examines Consider the demand of downlink communication and the variation of battery capacity, and makes up the influence of other factors.
LoRaWAN terminal work mode switching provided in an embodiment of the present invention and control method, terminal and server, should LoRaWAN terminal is by periodically acquiring terminal battery electricity quantity, and according to the variation and link communication quality of terminal power supply state Operating mode switchover policy is formulated at terminal.The battery capacity value that the LoRaWAN server is sent by receiving target terminal And operating mode, the downstream traffic of target terminal is obtained, according to battery capacity value and downstream traffic, decision-making work mode Switching command sends switching command and solves existing to target terminal so that the operating mode of target terminal is effectively switched Target terminal energy saving and the poor technical problem of reliability balancing in technology, so that the operating mode switching side of target terminal Peak optimizating network integrally consumes energy while formula can satisfy downlink communication demand, compensates for and lacks operating mode in the prior art and cut Change the deficiency of method.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can easily think of the change or the replacement, and should all contain Lid is within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.
It is understood that same or similar part can mutually refer in the various embodiments described above, in some embodiments Unspecified content may refer to the same or similar content in other embodiments.
It should be noted that in the description of the present invention, term " first ", " second " etc. are used for description purposes only, without It can be interpreted as indication or suggestion relative importance.In addition, in the description of the present invention, unless otherwise indicated, the meaning of " multiple " Refer at least two.
Any process described otherwise above or method description are construed as in flow chart or herein, and expression includes It is one or more for realizing specific logical function or process the step of executable instruction code module, segment or portion Point, and the range of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discussed suitable Sequence, including according to related function by it is basic simultaneously in the way of or in the opposite order, Lai Zhihang function, this should be of the invention Embodiment person of ordinary skill in the field understood.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized: having a logic gates for realizing logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are understood that realize all or part of step that above-described embodiment method carries It suddenly is that relevant hardware can be instructed to complete by program, the program can store in a kind of computer-readable storage medium In matter, which when being executed, includes the steps that one or a combination set of embodiment of the method.
It, can also be in addition, each functional unit in each embodiment of the present invention can integrate in a processing module It is that each unit physically exists alone, can also be integrated in two or more units in a module.Above-mentioned integrated mould Block both can take the form of hardware realization, can also be realized in the form of software function module.The integrated module is such as Fruit is realized and when sold or used as an independent product in the form of software function module, also can store in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
Although the embodiments of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is not considered as limiting the invention, those skilled in the art within the scope of the invention can be to above-mentioned Embodiment is changed, modifies, replacement and variant.

Claims (10)

1. a kind of LoRaWAN terminal work mode switching method characterized by comprising
The battery capacity value and operating mode of target terminal are obtained every predetermined period;
Whether the power supply state for judging the target terminal is long power supply;
If so, obtaining the downlink communication quality of the target terminal;
According to the battery capacity value and the downlink communication quality, the switching of operating mode described in decision.
2. the method according to claim 1, wherein described according to the battery capacity value and downlink communication Quality, the switching of operating mode described in decision, comprising:
Whether the operating mode for judging the target terminal is Class C;
If so, keeping presently described operating mode;
If it is not, then switching the operating mode to Class C, and handover information is sent to server.
3. the method according to claim 1, wherein the power supply state for judging the target terminal whether After long power supply, further includes:
If it is not, the battery capacity value and the operating mode are sent to server, then by MAC order so as to the service The switching command of device operating mode according to the battery capacity value decision.
4. according to the method described in claim 3, it is characterized in that, sending the electricity to server by MAC order described Before pond charge value and the operating mode, further includes:
Whether the operating mode for judging the target terminal is Class B;
If so, switching the operating mode to ClassA, and handover information is sent to the server;
It is described by MAC order, send the battery capacity value and the operating mode to server are as follows: in the target terminal Operating mode when not being Class B, by MAC order, by the battery capacity value and the operating mode to described Server is sent.
5. according to the method described in claim 4, its sign is, before the switching operating mode to Class A, also Include:
Judge whether the battery capacity is lower than the first power threshold;
If so, switching the operating mode to CLass A, and handover information is sent to the server;If it is not, then keeping Presently described operating mode;
Wherein, before the switching operating mode to Class A, further includes:
Obtain the value of the downlink reception mark of the target terminal;Whether the value for judging the downlink reception mark is false;If so, Then switch the operating mode to CLass A, and handover information is sent to the server.
6. a kind of LoRaWAN terminal work mode method for handover control characterized by comprising
Receive the battery capacity value and operating mode that target terminal is sent;
Obtain the downstream traffic of the target terminal;
According to the battery capacity value and the downstream traffic, the switching command of operating mode described in decision;
The switching command is sent to the target terminal.
7. control method according to claim 6, which is characterized in that described according to the battery capacity value and the downlink The traffic, the switching command of operating mode described in decision, comprising:
According to the battery capacity value, the corresponding battery capacity value of the target terminal is updated;
Identify the operating mode of the target terminal;
If the operating mode is Class A, judge whether the battery capacity value of the target terminal is higher than the second electricity It measures threshold value and judges whether the traffic density of the target terminal is higher than the first traffic density threshold value if being higher than, if being higher than, It is sent to the corresponding target terminal and switches the order of the operating mode to Class B operating mode;
If the operating mode is Class C, judge whether the traffic density of the target terminal is higher than the second communication Density threshold, if so, sending the life for switching the operating mode to Class B operating mode to the corresponding target terminal It enables;Switch the order of the operating mode to Class A operating mode if it is not, then sending to the corresponding target terminal.
8. control method according to claim 6, which is characterized in that further include:
Obtain and record the traffic density of the target terminal;
The traffic density of the target terminal is updated according to predetermined period;
Reception pattern handover information, and correspond to according to the pattern switching information update operating mode of target terminal.
9. a kind of LoRaWAN terminal, which is characterized in that any LoRaWAN terminal of the terminal applies claim 1-5 The method of operating mode switching carries out the switching of operating mode.
10. a kind of LoRaWAN server, which is characterized in that the server application is as claimed in claim 6 to 8 LoRaWAN terminal work mode method for handover control controls the switching of the operating mode of corresponding target terminal.
CN201910646392.1A 2019-07-17 2019-07-17 The switching of LoRaWAN terminal work mode and control method, terminal and server Pending CN110351818A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910646392.1A CN110351818A (en) 2019-07-17 2019-07-17 The switching of LoRaWAN terminal work mode and control method, terminal and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910646392.1A CN110351818A (en) 2019-07-17 2019-07-17 The switching of LoRaWAN terminal work mode and control method, terminal and server

Publications (1)

Publication Number Publication Date
CN110351818A true CN110351818A (en) 2019-10-18

Family

ID=68175564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910646392.1A Pending CN110351818A (en) 2019-07-17 2019-07-17 The switching of LoRaWAN terminal work mode and control method, terminal and server

Country Status (1)

Country Link
CN (1) CN110351818A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586659A (en) * 2020-04-30 2020-08-25 杭州涂鸦信息技术有限公司 Node working mode control method, device, equipment and medium based on Sub-G network
CN112055340A (en) * 2020-09-04 2020-12-08 深圳职业技术学院 Terminal working mode adjusting method in Internet of things
CN113905428A (en) * 2021-09-29 2022-01-07 广东电网有限责任公司广州供电局 Energy-saving operation method for LoRa network of electric power construction site
RU2770903C1 (en) * 2020-11-20 2022-04-25 Константин Евгеньевич Самуйлов Method for networking between a wireless apparatus and a remote application server
US11323963B1 (en) 2021-04-09 2022-05-03 Hong Kong Applied Science and Technology Research Institute Company Limited Optimizing battery consumption of remote end devices on a wireless long-range wide-area network (LoRaWAN)
CN114844932A (en) * 2022-05-08 2022-08-02 库云信息科技(苏州)有限责任公司 Energy consumption control system based on Internet of things and application method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107071869A (en) * 2016-11-15 2017-08-18 国动物联网技术(上海)有限公司 Compatible LoRaWAN Class A, Class B and write by hand pattern multimode terminal and multimode compatibility method
CN107545633A (en) * 2017-08-17 2018-01-05 新华三技术有限公司 A kind of message transmitting method and intelligent wireless door lock
CN107787031A (en) * 2016-08-29 2018-03-09 联发科技(新加坡)私人有限公司 Power consumption control method and communicator
CN108412324A (en) * 2018-01-25 2018-08-17 东峡大通(北京)管理咨询有限公司 Smart lock and its control method and control system
WO2018184681A1 (en) * 2017-04-06 2018-10-11 Nokia Technologies Oy Controller, device and method for controlling battery-powered device
CN108696923A (en) * 2017-03-03 2018-10-23 展讯通信(上海)有限公司 Mobile terminal and its power consumption control method
CN108848550A (en) * 2018-06-07 2018-11-20 深圳市鼎晟开元科技有限公司 Radio signal receiving method, device and the storage medium of low-power consumption
CN110012112A (en) * 2019-04-19 2019-07-12 欧普照明股份有限公司 A kind of group network system of the terminal device based on Internet of Things

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107787031A (en) * 2016-08-29 2018-03-09 联发科技(新加坡)私人有限公司 Power consumption control method and communicator
CN107071869A (en) * 2016-11-15 2017-08-18 国动物联网技术(上海)有限公司 Compatible LoRaWAN Class A, Class B and write by hand pattern multimode terminal and multimode compatibility method
CN108696923A (en) * 2017-03-03 2018-10-23 展讯通信(上海)有限公司 Mobile terminal and its power consumption control method
WO2018184681A1 (en) * 2017-04-06 2018-10-11 Nokia Technologies Oy Controller, device and method for controlling battery-powered device
CN107545633A (en) * 2017-08-17 2018-01-05 新华三技术有限公司 A kind of message transmitting method and intelligent wireless door lock
CN108412324A (en) * 2018-01-25 2018-08-17 东峡大通(北京)管理咨询有限公司 Smart lock and its control method and control system
CN108848550A (en) * 2018-06-07 2018-11-20 深圳市鼎晟开元科技有限公司 Radio signal receiving method, device and the storage medium of low-power consumption
CN110012112A (en) * 2019-04-19 2019-07-12 欧普照明股份有限公司 A kind of group network system of the terminal device based on Internet of Things

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
虞阁飞: "《基于LoRa的LPWAN节能技术研究》", 《中国优秀硕士学位论文全文数据库》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586659A (en) * 2020-04-30 2020-08-25 杭州涂鸦信息技术有限公司 Node working mode control method, device, equipment and medium based on Sub-G network
CN111586659B (en) * 2020-04-30 2024-01-26 杭州涂鸦信息技术有限公司 Method, device, equipment and medium for controlling node working mode based on Sub-G network
CN112055340A (en) * 2020-09-04 2020-12-08 深圳职业技术学院 Terminal working mode adjusting method in Internet of things
CN112055340B (en) * 2020-09-04 2023-03-10 深圳职业技术学院 Terminal working mode adjusting method in Internet of things
RU2770903C1 (en) * 2020-11-20 2022-04-25 Константин Евгеньевич Самуйлов Method for networking between a wireless apparatus and a remote application server
US11323963B1 (en) 2021-04-09 2022-05-03 Hong Kong Applied Science and Technology Research Institute Company Limited Optimizing battery consumption of remote end devices on a wireless long-range wide-area network (LoRaWAN)
CN113905428A (en) * 2021-09-29 2022-01-07 广东电网有限责任公司广州供电局 Energy-saving operation method for LoRa network of electric power construction site
CN113905428B (en) * 2021-09-29 2023-08-04 广东电网有限责任公司广州供电局 Energy-saving operation method of LoRa network on electric power construction site
CN114844932A (en) * 2022-05-08 2022-08-02 库云信息科技(苏州)有限责任公司 Energy consumption control system based on Internet of things and application method

Similar Documents

Publication Publication Date Title
CN110351818A (en) The switching of LoRaWAN terminal work mode and control method, terminal and server
CN101959295B (en) Energy-saving management method, system and remote management server of wireless sensor network
US8471525B2 (en) Apparatus and method for charging internal battery in wireless sensor network
EP2446696B1 (en) Communication in a mobile network implementing discontinuous reception
KR100789910B1 (en) Method for the management of dormant nodes in wireless sensor network
CN102215076B (en) Trigger and carry out method, system and the equipment of frequency spectrum perception
US20200305229A1 (en) Wireless sensor management method, and wireless communication system
CN105682109B (en) Energy-saving method and device
CN101444131A (en) Method and apparatus for battery management in a converged wireless transmit/receive unit
KR102041410B1 (en) Intelligent m2m energy optimization algorithm
CN102948225A (en) A method and device with dynamic dormancy
JP2011120257A (en) Method and system for conserving battery power of mesh point in mesh network
CN102868598A (en) Control device and control method
EP2731383A1 (en) Apparatus and method for controlling a plurality of micro base stations, base station and method of operating a base station, mobile station and method of operating a mobile station
EP3143803B1 (en) Methods and nodes of a wireless network for deciding on switching off of a network node
KR20100052762A (en) Mathod and apparatus for collaborative sensing based on allowed error range of sensor in wireless sensor node
Lee et al. MAC sleep mode control considering downlink traffic pattern and mobility
Varghese et al. Suitability of WiFi based communication devices in low power industrial applications
CN101860944B (en) Method and device for controlling energy efficiency of communication system, service processing unit and service processing system
Malta et al. Using reinforcement learning to reduce energy consumption of ultra-dense networks with 5g use cases requirements
CN103108385A (en) Method and system for controlling network nodes in network area
Sehati et al. Online energy management in IoT applications
CN102098177A (en) Network management system and method for monitoring power supply thereof
CN104796973B (en) Radio reception device control method and radio reception device
CN102098706B (en) Channel managing method and access point

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20191018

RJ01 Rejection of invention patent application after publication