CN207135111U - A kind of switching device and system of LoRa mode of operations - Google Patents

A kind of switching device and system of LoRa mode of operations Download PDF

Info

Publication number
CN207135111U
CN207135111U CN201720764596.1U CN201720764596U CN207135111U CN 207135111 U CN207135111 U CN 207135111U CN 201720764596 U CN201720764596 U CN 201720764596U CN 207135111 U CN207135111 U CN 207135111U
Authority
CN
China
Prior art keywords
rssi
mode
subpattern
receiver
emitter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201720764596.1U
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.)
Suzhou Op Lighting Co Ltd
Original Assignee
Suzhou Op Lighting Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Op Lighting Co Ltd filed Critical Suzhou Op Lighting Co Ltd
Priority to CN201720764596.1U priority Critical patent/CN207135111U/en
Application granted granted Critical
Publication of CN207135111U publication Critical patent/CN207135111U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The utility model provides a kind of switching device and system of LoRa mode of operations.The device is applied to the emitter to be communicated using LoRa wireless technologys, and the emitter is communicated with using the receiver of LoRa wireless technologys, and with realizing physically separate first passage and second channel respectively on receiver, the device includes emitter:Composer, getter, the comparator being connected with composer and getter, the parameter transmitter being connected with comparator and the switch being connected with parameter transmitter, the mode of operation of transmitter and receiver on the first pass is switched into target operational mode by these devices, to realize using target operational mode the data transfer between emitter and receiver in first passage.Both mode of operations can be adjusted flexibly according to emitter and the data transmission scenarios of receiver in the utility model embodiment, improve efficiency of transmission, save power consumption.

Description

A kind of switching device and system of LoRa mode of operations
Technical field
It the utility model is related to Internet of Things applied technical field, the switching device of particularly a kind of LoRa mode of operations and be System.
Background technology
The fast development of Internet of Things proposes higher requirement to wireless communication technology, aims at low bandwidth, low-power consumption, long distance LPWAN (Low-Power Wide-Area Network, the low-power consumption wide area designed from, the Internet of Things that largely connects application Net) also rapid rising.LoRa is exactly Typical Representative therein, and most promising low-power consumption wan communication technology.
LoRa radio-frequency techniques are a kind of arrowband technology of Internet of things of remote low-power consumption of Semtech companies exploitation.LoRa Core is LoRa spread spectrums, and LoRa has the characteristics of transmission power is strong, and receiving sensitivity is high.LoRa will can normal work, The mode of operation of transmitter and receiver, i.e. BW (Band Width, frequency range) and SF (Spreading Factor, spreading factor) Must be identical.The wide then speed of BW is high, SF then strong antijamming capabilities greatly.Due to the complexity of environment, fixed mode of operation can be led Cause efficiency of transmission is low, and this technical problem is urgently to be resolved hurrily.
Utility model content
In view of the above problems, it is proposed that the utility model overcomes above mentioned problem to provide one kind or solved at least in part The certainly switching device and system of the LoRa mode of operations of above mentioned problem.
According to the one side of the utility model embodiment, a kind of switching device of LoRa mode of operations is additionally provided, is applied In the emitter to be communicated using LoRa wireless technologys, the emitter using the receiver of LoRa wireless technologys with being led to Letter, the emitter with realizing physically separate first passage and second channel, described device bag respectively on the receiver Include:
Composer, for building LoRa mode of operation parameter lists, wherein, comprising more in the LoRa mode of operations parameter list Frequency range, spreading factor, received signal strength indicator RSSI interval ranges corresponding to individual mode of operation and each mode of operation;
Getter, for the sending times when the emitter by the first passage to receiver transmission data During more than predetermined threshold value, the RSSI of current ink is obtained in the beacon sent from the receiver by the first passage, its In, the emitter sends data by the first passage to the receiver, if not received in preset duration described During the response message for the successful data reception that receiver returns, then it is assumed that data send failure, and resend, while counterweight Hair number is counted;
Comparator, be connected with the composer and the getter, for by the RSSI of the current ink with it is described RSSI interval ranges in LoRa mode of operation parameter lists are compared, and determine that the emitter will be cut from current operation mode Frequency range, spreading factor corresponding to the target operational mode and the target operational mode shifted to;
Parameter transmitter, it is connected with the comparator, for by frequency range, spreading factor corresponding to the target operational mode The receiver is sent to by the second channel, with as the receiver according to corresponding to the target operational mode frequency Wide, spreading factor, switches to the target operational mode, and pass through described second by the mode of operation on the first passage Passage returns to the message for representing to switch successfully to the emitter;
Switch, it is connected with the parameter transmitter, is returned for the receiver ought to be received by the second channel During the message that the expression returned switches successfully, the current operation mode of the emitter on the first passage is switched to The target operational mode, to carry out data biography with the receiver on the first passage using the target operational mode It is defeated.
Optionally, the first passage is used for data signaling transmission, and the second channel transmits for control signaling, described The transmission rate of second channel, frequency range, spreading factor immobilize.
Optionally, described device also includes:
Commander sender, for being obtained in the beacon that is sent in the getter from the receiver by the first passage Before taking the RSSI of current ink, when the emitter passes through repeating transmission time of the first passage to receiver transmission data When number is more than predetermined threshold value, is sent by the second channel to the receiver and ask the receiver logical by described first Road sends the instruction of beacon;
Beacon receiver, it is connected with commander sender, for receiving the receiver according to the instruction by described the The beacon that one passage is sent.
Optionally, in the multiple mode of operation comprising the different pattern of transmission rate, in the pattern of each transmission rate Comprising multiple subpatterns, RSSI interval ranges corresponding to each subpattern in the pattern of identical traffic speed are misaligned or border Overlap, RSSI interval ranges corresponding to the subpattern in the pattern of different transmission rates there is a situation where to overlap.
Optionally, multiple subpatterns in the pattern of identical traffic speed have identical frequency range and different spread spectrums because Son.
Optionally, the comparator includes:
Determining unit, for determining that the current operation mode belongs to any one in the patterns of the different transmission rates Pattern, it is referred to as treating mould-fixed;
Comparing unit, it is connected with the determining unit, for the RSSI of the current ink to be treated in mould-fixed with described Each subpattern corresponding to RSSI interval ranges be compared, determine that the emitter will be cut from the current operation mode The target operational mode shifted to.
Optionally, the determining unit is additionally operable to:
The default mode of operation on the first passage pre-set is obtained, wherein, the default mode of operation belongs to Any one pattern in the pattern of the different transmission rates;
Using the default mode of operation as the current operation mode.
Optionally, the comparing unit is additionally operable to:
Judge whether the RSSI of the current ink belongs to some subpattern in each subpattern treated in mould-fixed Corresponding RSSI interval ranges;
If so, then using subpattern corresponding to the RSSI interval ranges belonging to the RSSI of the current ink as the target Mode of operation;
If not, it is determined that between the RSSI of the current ink treats which two subpattern in mould-fixed described in, and It is determined that two subpatterns in choose the subpattern nearest with the RSSI numerical value of the current ink, as the target operation Pattern.
Optionally, the comparing unit is additionally operable to:
If the difference of the RSSI of current ink RSSI interval ranges corresponding with two subpatterns determined is apart from phase Together, then it is determined that two subpatterns in choose the less subpattern of spreading factor, as the target operational mode.
Optionally, the comparing unit is additionally operable to:
If the RSSI of the current ink is more than described treat in mould-fixed in RSSI interval ranges corresponding to each subpattern Highest RSSI, then judge in the multiple mode of operation with the presence or absence of transmission rate than the Working mould for treating that mould-fixed is big Formula;
If judgement is not present, using subpattern corresponding to highest RSSI as the target operational mode;
It is that transmission rate is more undetermined than described in the multiple mode of operation by the mode adjustment undetermined if judging to exist The big mode of operation of pattern, and each subpattern pair that will be treated described in after the RSSI of the current ink and adjustment in mould-fixed The RSSI interval ranges answered are compared, and determine the target operation that the emitter will switch to from the current operation mode Pattern;
If the RSSI of the current ink is equal to described treat in mould-fixed in RSSI interval ranges corresponding to each subpattern Highest RSSI, then using subpattern corresponding to highest RSSI as the target operational mode.
Optionally, the comparing unit is additionally operable to:
If transmission rate in the multiple mode of operation be present than the mode of operation for treating that mould-fixed is big including multiple, The nearest mode of operation of the transmission rate numerical value for treating mould-fixed with described is chosen, as treating mould-fixed described in after adjustment.
Optionally, the comparing unit is additionally operable to:
If the RSSI of the current ink is less than described treat in mould-fixed in RSSI interval ranges corresponding to each subpattern Minimum RSSI, then judge in the multiple pattern with the presence or absence of transmission rate than the mode of operation for treating that mould-fixed is small;
If judgement is not present, using subpattern corresponding to the minimum RSSI as the target operational mode;
It is to treat mould-fixed described in transmission rate ratio in the multiple pattern by the mode adjustment undetermined if judging to exist Small mode of operation, and by the RSSI of the current ink with after adjustment described in treat that each subpattern in mould-fixed is corresponding RSSI interval ranges are compared, and determine that the emitter will be from the target operation mould that the current operation mode switches to Formula;
If the RSSI of the current ink is equal to described treat in mould-fixed in RSSI interval ranges corresponding to each subpattern Minimum RSSI, then using subpattern corresponding to the minimum RSSI as the target operational mode.
Optionally, the comparing unit is additionally operable to:
If transmission rate in the multiple mode of operation be present than the mode of operation for treating that mould-fixed is small including multiple, The nearest mode of operation of the transmission rate numerical value for treating mould-fixed with described is chosen, as treating mould-fixed described in after adjustment.
Optionally, also comprising index in the LoRa mode of operations parameter list, to identify each mode of operation.
According to the another aspect of the utility model embodiment, a kind of switching system of LoRa mode of operations is additionally provided, is wrapped Include:Transmitter and receiver, the emitter are communicated with the receiver using LoRa wireless technologys, the emitter with Physically separate first passage and second channel are realized on the receiver respectively;
The emitter has the switching device of LoRa mode of operations described above, by the switching device by described in The mode of operation of emitter and the receiver on the first passage switches to target operational mode, with logical described first The data transfer between the emitter and the receiver is realized using the target operational mode in road.
In the utility model embodiment, transmitter and receiver is communicated using LoRa wireless technologys, emitter and Physically separate first passage and second channel are realized on receiver respectively.The utility model by composer, getter, with Composer and comparator, the parameter transmitter being connected with comparator and the switching being connected with parameter transmitter of getter connection Device, the mode of operation of transmitter and receiver on the first pass is switched to target operational mode by these devices, with first Passage realizes the data transfer between emitter and receiver using target operational mode.The utility model embodiment being capable of basis The data transmission scenarios of emitter and receiver, both mode of operations are adjusted flexibly, improve efficiency of transmission, save power consumption, solution The problem of mode of operation that use is fixed in the prior art of having determined causes efficiency of transmission low.
Described above is only the general introduction of technical solutions of the utility model, in order to better understand skill of the present utility model Art means, and being practiced according to the content of specification, and in order to allow above and other purpose of the present utility model, feature It can be become apparent with advantage, below especially exemplified by specific embodiment of the present utility model.
According to the accompanying drawings will be more to the detailed description of the utility model specific embodiment, those skilled in the art Add clear of the present utility model above-mentioned and other purposes, advantages and features.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to this practicality New limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the flow chart of the switching method of the LoRa mode of operations according to the embodiment of the utility model one;
Fig. 2 shows the LoRa physics independence binary channels schematic diagrames according to the embodiment of the utility model one;
Fig. 3 A are shown will switch to according to the determination emitter of the embodiment of the utility model one from current operation mode Target operational mode method flow chart;
Fig. 3 B are shown will switch according to the determination emitter of another embodiment of the utility model from current operation mode The flow chart of the method for target operational mode extremely;
Fig. 4 shows the structural representation of the switching device of the LoRa mode of operations according to the embodiment of the utility model one;
Fig. 5 shows the structural representation of the switching device of the LoRa mode of operations according to another embodiment of the utility model Figure;And
Fig. 6 shows the structural representation of the switching system of the LoRa mode of operations according to the embodiment of the utility model one.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although the disclosure is shown in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Completely it is communicated to those skilled in the art.
As introduced above, LoRa can cause to transmit using fixed mode of operation for complex environment in the prior art The problem of efficiency is low, power consumption is big.In order to solve this technical problem, the utility model embodiment provides a kind of LoRa Working moulds Switching method, the apparatus and system of formula, LoRa mode of operation can be adjusted flexibly, improve efficiency of transmission, save power consumption.
The switching method for the LoRa mode of operations that the utility model embodiment provides, enter applied to using LoRa wireless technologys The emitter of row communication, emitter are communicated with using the receiver of LoRa wireless technologys, and emitter on receiver with distinguishing Realize physically separate first passage and second channel.
Fig. 1 shows the flow chart of the switching method of the LoRa mode of operations according to the embodiment of the utility model one.Referring to Fig. 1, this method may comprise steps of S102 to step S110.
Step S102, LoRa mode of operation parameter lists are built, wherein, multiple works are included in the LoRa mode of operation parameter lists Frequency range, spreading factor, received signal strength indicator RSSI interval ranges corresponding to operation mode and each mode of operation.
Step S104, when emitter is more than predetermined threshold value by first passage to the sending times of receiver transmission data When, the RSSI of current ink is obtained in the beacon sent from receiver by first passage, wherein, emitter passes through first passage Data are sent to receiver, if not receiving the response message of the successful data reception of receiver return in preset duration When, then it is assumed that data send failure, and resend, while sending times are counted.
In this step, RSSI (Received Signal Strength Indication, received signal strength indicator) It is the optional part for transmitting wirelessly layer, for judging link quality, the utility model embodiment can be according to current ink RSSI determines the target operational mode that will switch.
Step S106, the RSSI interval ranges in the RSSI of current ink and LoRa mode of operation parameter lists are compared Compared with determining frequency corresponding to target operational mode and target operational mode that emitter will be switched to from current operation mode Wide, spreading factor.
Step S108, frequency range, spreading factor corresponding to target operational mode are sent to receiver by second channel, with As receiver according to corresponding to target operational mode frequency range, spreading factor, mode of operation on the first pass is switched into mesh Mode of operation is marked, and the message for representing to switch successfully is returned to emitter by second channel.
Step S110, when receiving the message for the expression handover success that receiver is returned by second channel, it will launch The current operation mode of machine on the first pass switches to target operational mode, to use target operational mode on the first pass Carry out data transmission with receiver.
The switching method for the LoRa mode of operations that the utility model embodiment provides, can be according to emitter and receiver Data transmission scenarios, both mode of operations are adjusted flexibly, improve efficiency of transmission, save power consumption, solve and adopt in the prior art The problem of causing efficiency of transmission low with fixed mode of operation.
In the utility model embodiment, emitter with realizing physically separate first passage and second respectively on receiver Passage, in the specific implementation, emitter and receiver can realize physically separate the by the way of as shown in Figure 2 One passage and second channel.In fig. 2, the MCU in equipment (emitter or receiver) (Microcontroller Unit, it is micro- Control unit) pass through SPI (Serial Peripheral Interface, Serial Peripheral Interface (SPI)) bus connection LoRa RF (Radio Frequency, radio frequency), RF and Ant (Antenna, antenna) form passage.Specifically, MCU is connected by spi bus Connect LoRa RF1 and LoRa RF2, LoRa RF1 and Ant1 composition first passage, LoRa RF2 and Ant2 composition second channel.This In, first passage can use acquiescence transmission power, and second channel can (Power Amplifier, power be put by increasing PA Big device) reach increasing transmission power.
The first passage that the utility model embodiment refers to is used for data signaling transmission, and second channel passes for control signaling Defeated, first passage and second channel are operated in different frequency ranges, and the transmission rate of first passage can be changed, second channel Transmission rate, frequency range, spreading factor immobilize.Also, second channel transmits for control signaling, is one very excellent Passage, generally once communication can just be completed for control signaling transmission, specifically allow the frequency range of second channel is as far as possible small, and spreading factor is most Amount is big.For example, the frequency range of second channel can be less than all frequency ranges set on first passage, the spreading factor of second channel can With equal to the maximum spreading factor set on first passage.Certainly, only it is herein citing, the utility model is not limited System.
It is response formula that the utility model embodiment, which defines data frame interaction, and emitter sends data frame by first passage Received afterwards in the stipulated time receiver reply ack (acknowledgement, confirm) frame just can determine that data transmission into Work(;Similarly, it is response formula that the utility model embodiment, which defines control frame interaction, and emitter is sent by second channel and controlled The ack frames for receiving receiver reply after frame in stipulated time just can determine that control frame is sent successfully.
In the utility model embodiment, emitter sends data by first passage to receiver, if in preset duration When not receiving response message (i.e. the ack frames) of the successful data reception of receiver return, then it is assumed that data send failure, and Resend, while sending times are counted.Afterwards, the weight when emitter by first passage to receiver transmission data When hair number is more than predetermined threshold value, the RSSI of current ink is obtained in the beacon sent from receiver by first passage.
In the specific implementation, when emitter sends the sending times of data more than default threshold by first passage to receiver During value, emitter sends instruction of the request receiver by first passage transmission beacon by second channel to receiver, afterwards Receive the beacon that receiver is sent according to the instruction by first passage, and then the beacon sent from receiver by first passage The middle RSSI for obtaining current ink.As introduced above, second channel transmits for control signaling, is a very excellent passage, control Generally once communication can just be completed signalling processed, and therefore, emitter sends request receiver by second channel to receiver The instruction of beacon is sent by first passage, the instruction can successfully arrive at receiver, and receiver can be according to the instruction The beacon sent by first passage.In some cases, if once communication can not be completed, i.e. the instruction has not been able to successfully arrive Up to receiver, then emitter can send request receiver again through second channel after duration to be specified is waited to receiver The instruction of beacon is sent by first passage, until being successfully received the letter that receiver is sent according to the instruction by first passage Mark.Here, the number that emitter is resend can be multiple, until emitter is successfully received receiver and led to according to the instruction Cross the beacon of first passage transmission.In an alternate embodiment of the invention, emitter can receive receiver according to the instruction by first Multiple beacons that passage is sent, obtain multiple RSSI, and then current chain is calculated according to multiple RSSI from multiple beacons respectively The RSSI on road.For example, can multiple RSSI be calculated with RSSI of the average value as current ink, can also be by multiple RSSI The RSSI of minimum RSSI as current ink, etc., the utility model embodiment not limited to this.
In alternative embodiment of the present utility model, biography is included in multiple mode of operations in LoRa mode of operation parameter lists The different pattern of defeated speed, includes multiple subpatterns in the pattern of each transmission rate, each in the pattern of identical traffic speed RSSI interval ranges corresponding to individual subpattern are misaligned or overlapping margins, corresponding to the subpattern in the pattern of different transmission rates RSSI interval ranges there is a situation where to overlap, and coincidences here, which refers in the section in addition to border, has common factor.In addition, phase simultaneous interpretation Multiple subpatterns in the pattern of defeated speed have identical frequency range and different spreading factors.
For example, in multiple mode of operations in LoRa mode of operations parameter list comprising first mode, second mode and 3rd pattern, the transmission rate of first mode are more than second mode, and the transmission rate of second mode is more than the 3rd pattern.Due to The transmission rate of one pattern is more than second mode, and the transmission rate of second mode is more than the 3rd pattern, therefore can also be by first Pattern is referred to as fast mode, fast mode during second mode is referred to as, and the 3rd pattern is referred to as low-speed mode.
Further, multiple first subpatterns can be included in first mode, multiple second can be included in second mode Subpattern, multiple 3rd subpatterns can also be included in the 3rd pattern.Also, RSSI sections model corresponding to multiple first subpatterns Enclose misaligned or overlapping margins, RSSI interval ranges corresponding to multiple second subpatterns are also misaligned or overlapping margins, Duo Ge RSSI interval ranges corresponding to three subpatterns are also misaligned or overlapping margins.In addition, multiple first subpatterns, multiple second submodules Corresponding RSSI interval ranges there is a situation where to overlap between formula, multiple 3rd subpatterns, and coincidence here refers in addition to border Section in exist occur simultaneously.In an alternate embodiment of the invention, each first subpattern in multiple first subpatterns has identical Frequency range and different spreading factors, each second subpattern in multiple second subpatterns have identical frequency range and different expansions Each 3rd subpattern in the frequency factor, and multiple 3rd subpatterns has identical frequency range and different spreading factors.
The RSSI interval ranges in the RSSI of current ink and LoRa mode of operation parameter lists are entered in above step S106 Row compares, and determines the target operational mode that emitter will switch to from current operation mode, and the utility model embodiment provides Optional scheme, in this scenario, it is first determined current operation mode belongs to any one in the patterns of different transmission rates Pattern, it is referred to as treating mould-fixed, then by the RSSI of current ink RSSI sections corresponding with treating each subpattern in mould-fixed Scope is compared, and determines that emitter will be from the target operational mode that current operation mode switches to.
Further, when it is determined that current operation mode belongs to any one pattern in the pattern of different transmission rates, this Utility model embodiment provides a kind of optional scheme, i.e. can obtain the acquiescence work on the first passage pre-set Pattern, wherein, default mode of operation belongs to any one pattern in the patterns of different transmission rates, and then by default mode of operation As current operation mode.That is, after transmitter and receiver starts, then can be from the first passage pre-set Default mode of operation in, obtain the current operation mode of emitter.
Afterwards, the utility model embodiment can be corresponding with treating each subpattern in mould-fixed by the RSSI of current ink RSSI interval ranges be compared, determine that emitter will be from the target operational mode that current operation mode switches to, specifically Ground, target operational mode is determined by the step shown in Fig. 3 A and Fig. 3 B.
Fig. 3 A are shown will switch to according to the determination emitter of the embodiment of the utility model one from current operation mode Target operational mode method flow chart, referring to Fig. 3 A, comprise the following steps S301 to S307.
Step S301, judge that the RSSI of current ink whether beyond the border for treating mould-fixed, that is, judges current ink Whether RSSI is more than the highest RSSI treated in mould-fixed in RSSI interval ranges corresponding to each subpattern, if so, then continuing to hold Row step S302;If it is not, then continue executing with step S305.
Step S302, judges whether the pattern of more high speed, that is, judges in multiple mode of operations with the presence or absence of transmission speed The rate mode of operation bigger than treating mould-fixed, if so, then continuing executing with step S303;If it is not, then continue executing with step S304.
Step S303, change treat mould-fixed, i.e., by mode adjustment undetermined be multiple mode of operations in transmission rate than undetermined The big mode of operation of pattern, and perform return to step S301.
In this step, if the transmission rate mode of operation bigger than treating mould-fixed in multiple mode of operations be present including more It is individual, then to choose and treat the nearest mode of operation of the transmission rate numerical value of mould-fixed, mould-fixed is treated as after adjustment.
Step S304, using subpattern corresponding to highest RSSI as target operational mode, and terminate this flow.
Step S305, judges whether the RSSI of current ink belongs to some subpattern in each subpattern treated in mould-fixed Corresponding RSSI interval ranges, if so, then continuing executing with step S306;If it is not, then continue executing with step S307.
In this step, RSSI interval ranges can take two end points (i.e. border), can also take in two end points one End points, two end points can not also be taken.For example, RSSI interval ranges take two end points, labeled as [- 125, -128], if worked as The RSSI of preceding link is -128, then the RSSI of current ink belongs to [- 125, -128].In another example RSSI interval ranges take two An end points in end points, labeled as [- 125, -128), if the RSSI of current ink is -128, the RSSI of current ink is not Belong to [- 125, -128).For another example RSSI interval ranges do not take two end points, labeled as (- 125, -128), if current chain The RSSI on road is -125, then the RSSI of current ink is not belonging to (- 125, -128);If the RSSI of current ink is -128, The RSSI of current ink is also not belonging to (- 125, -128).
Step S306, using subpattern corresponding to the RSSI interval ranges belonging to the RSSI of current ink as target operation mould Formula, and terminate this flow.
Step S307, between determining that the RSSI of current ink is located at and treats which two subpattern in mould-fixed, and it is determined that Two subpatterns in choose the subpattern nearest with the RSSI numerical value of current ink, as target operational mode, and terminate this Secondary flow.
In this step, if the difference of the RSSI of current ink RSSI interval ranges corresponding with two subpatterns determined Value apart from identical, then can it is determined that two subpatterns in choose the less subpattern of spreading factor, as target operation mould Formula.For example, we, which set RSSI interval ranges, does not include boundary value, the RSSI of current ink is -128, it is determined that two submodules RSSI interval ranges corresponding to formula are (- 125, -128) and (- 128, -131), then -128 section for being not belonging to the two subpatterns Scope.It can be seen that, the RSSI of current ink is -128 and the difference of (- 125, -128) and (- 128, -131) is apart from phase simultaneously Same is all zero, then it is smaller that the utility model embodiment can choose spreading factor in (- 125, -128) and (- 128, -131) Subpattern, as target operational mode so that the antijamming capability of first passage is stronger.It should be noted that only it is herein Enumerate, the utility model is not limited.
Fig. 3 B are shown will switch according to the determination emitter of another embodiment of the utility model from current operation mode The flow chart of the method for target operational mode extremely, referring to Fig. 3 B, comprise the following steps S311 to S317.
Step S311, judges whether the RSSI of current ink is less than the border for treating mould-fixed, that is, judges current ink Whether RSSI is less than the minimum RSSI treated in mould-fixed in RSSI interval ranges corresponding to each subpattern, if so, then continuing to hold Row step S312;If it is not, then continue executing with step S315.
Step S312, judges whether the pattern of more low speed, that is, judges in multiple mode of operations with the presence or absence of transmission speed The rate mode of operation smaller than treating mould-fixed, if so, then continuing executing with step S313;If it is not, then continue executing with step S314.
Step S313, change treat mould-fixed, i.e., by mode adjustment undetermined be multiple mode of operations in transmission rate than undetermined The small mode of operation of pattern, and perform return to step S311.
In this step, if the transmission rate mode of operation smaller than treating mould-fixed in multiple mode of operations be present including more It is individual, then to choose and treat the nearest mode of operation of the transmission rate numerical value of mould-fixed, mould-fixed is treated as after adjustment.
Step S314, using subpattern corresponding to the minimum RSSI as target operational mode, and terminate this flow.
Step S315, judges whether the RSSI of current ink belongs to some subpattern in each subpattern treated in mould-fixed Corresponding RSSI interval ranges, if so, then continuing executing with step S316;If it is not, then continue executing with step S317.
In this step, RSSI interval ranges can take two end points, can also take an end points in two end points, also may be used Not take two end points.For example, RSSI interval ranges take two end points, labeled as [- 125, -128], if current ink RSSI is -128, then the RSSI of current ink belongs to [- 125, -128].In another example RSSI interval ranges are taken one in two end points Individual end points, labeled as [- 125, -128), if the RSSI of current ink is -128, the RSSI of current ink be not belonging to [- 125,-128).For another example RSSI interval ranges do not take two end points, labeled as (- 125, -128), if current ink RSSI is -125, then the RSSI of current ink is not belonging to (- 125, -128);If the RSSI of current ink is -128, currently The RSSI of link is also not belonging to (- 125, -128).
Step S316, using subpattern corresponding to the RSSI interval ranges belonging to the RSSI of current ink as target operation mould Formula, and terminate this flow.
Step S317, between determining that the RSSI of current ink is located at and treats which two subpattern in mould-fixed, and it is determined that Two subpatterns in choose the subpattern nearest with the RSSI numerical value of current ink, as target operational mode, and terminate this Secondary flow.
In this step, if the difference of the RSSI of current ink RSSI interval ranges corresponding with two subpatterns determined Value apart from identical, then can it is determined that two subpatterns in choose the less subpattern of spreading factor, as target operation mould Formula.For example, the RSSI of current ink be -128, it is determined that two subpatterns corresponding to RSSI interval ranges be (- 125, -128) (- 128, -131), it can be seen that the RSSI of current ink be -128 with the difference of (- 125, -128) and (- 128, -131) away from From identical, then it is less that the utility model embodiment can choose spreading factor in (- 125, -128) and (- 128, -131) Subpattern, as target operational mode.It should be noted that only enumerate herein, the utility model is not limited.
Next, to include first mode (also referred to as fast mode), second mode in above-mentioned multiple mode of operations (also referred to as For middle fast mode) and the 3rd pattern (also referred to as low-speed mode) exemplified by, in above step S106 by the RSSI of current ink with RSSI interval ranges in LoRa mode of operation parameter lists are compared, and determine that emitter will switch to from current operation mode Target operational mode, then can determine that current operation mode belongs in first mode, second mode and the 3rd pattern first Any one pattern, it is referred to as treating mould-fixed, it is then that the RSSI of current ink is corresponding with treating each subpattern in mould-fixed RSSI interval ranges are compared, and determine that emitter will be from the target operational mode that current operation mode switches to.Further Ground, for the different mode belonging to current operation mode, the processing mode of the utility model embodiment is different, specifically:
It is if current operation mode belongs to first mode, the RSSI of current ink is corresponding with each first subpattern RSSI interval ranges are compared, and determine that emitter will be from the target operational mode that current operation mode switches to;
It is if current operation mode belongs to second mode, the RSSI of current ink is corresponding with each second subpattern RSSI interval ranges are compared, and determine that emitter will be from the target operational mode that current operation mode switches to;
It is if current operation mode belongs to the 3rd pattern, the RSSI of current ink is corresponding with each 3rd subpattern RSSI interval ranges are compared, and determine that emitter will be from the target operational mode that current operation mode switches to.
The utility model embodiment sets default-mode value in emitter mode of operation on the first pass, it is determined that , can be from the acquiescence mould when current operation mode belongs to any one pattern in first mode, second mode and the 3rd pattern Obtain current operation mode in formula value, will the default-mode value record mode of operation as current operation mode.In reality In, the mode of operation of default-mode value record can be first mode, can be second mode or the 3rd mould Formula, the utility model embodiment are not restricted to this.
In alternative embodiment of the present utility model, by the RSSI of current ink and each subpattern (i.e. the first subpattern, the Two subpatterns and the 3rd subpattern) corresponding to RSSI interval ranges when being compared, can also exist first mode, second mode and Switching between 3rd pattern, it will describe in detail respectively below.
Situation one, by the RSSI of current ink compared with RSSI interval ranges corresponding to each first subpattern, really Determining emitter will be from the target operational mode that current operation mode switches to.
In situation one, first determine whether the RSSI of current ink belongs to some subpattern pair in each first subpattern The RSSI interval ranges answered.
If the RSSI of current ink belongs to RSSI interval ranges corresponding to some subpattern in each first subpattern, can Using subpattern corresponding to the RSSI interval ranges belonging to the RSSI by current ink as target operational mode, and by the subpattern Corresponding frequency range, spreading factor are as frequency range, spreading factor corresponding to target operational mode.Here, the RSSI institutes of current ink The RSSI interval ranges of category, it is in each first subpattern, the RSSI interval ranges belonging to the RSSI of current ink are corresponding Subpattern.In addition, RSSI interval ranges can take two end points (i.e. border), an end points in two end points can also be taken, Two end points can not also be taken.For example, RSSI interval ranges take two end points, labeled as [- 125, -128], if current ink RSSI be -128, then the RSSI of current ink belong to [- 125, -128].In another example RSSI interval ranges are taken in two end points One end points, labeled as [- 125, -128), if the RSSI of current ink is -128, the RSSI of current ink be not belonging to [- 125,-128).For another example RSSI interval ranges do not take two end points, labeled as (- 125, -128), if current ink RSSI is -125, then the RSSI of current ink is not belonging to (- 125, -128);If the RSSI of current ink is -128, currently The RSSI of link is also not belonging to (- 125, -128).
If the RSSI of current ink is not belonging in each first subpattern any RSSI interval ranges corresponding to subpattern, Can determine that the RSSI of current ink is located between which two subpattern in each first subpattern, and it is determined that two sons The subpattern nearest with the RSSI numerical value of current ink is chosen in pattern, as target operational mode, and the subpattern is corresponding Frequency range, spreading factor is as frequency range, spreading factor corresponding to target operational mode.In this step, if current ink RSSI with the difference of RSSI interval ranges corresponding to two subpatterns determined apart from identical, then can it is determined that two submodules The less subpattern of spreading factor is chosen in formula, as target operational mode.For example, the RSSI of current ink is -128, it is determined that Two subpatterns corresponding to RSSI interval ranges be (- 125, -128) and (- 128, -131), it can be seen that current ink RSSI be -128 with the difference of (- 125, -128) and (- 128, -131) apart from identical, then the utility model embodiment can be The less subpattern of spreading factor is chosen in (- 125, -128) and (- 128, -131), as target operational mode.Need to illustrate , only enumerate, the utility model do not limited herein.
If the highest that the RSSI of current ink is more than or equal in RSSI interval ranges corresponding to each first subpattern RSSI, then can using subpattern corresponding to highest RSSI as target operational mode, and by frequency range corresponding to the subpattern, expand The frequency factor is as frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is equal to the minimum RSSI in RSSI interval ranges corresponding to each first subpattern, can So that subpattern corresponding to the minimum RSSI to be made as target operational mode, and by frequency range, spreading factor corresponding to the subpattern For frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is less than the minimum RSSI in RSSI interval ranges corresponding to each first subpattern, can So that the RSSI of current ink compared with RSSI interval ranges corresponding to each second subpattern, being determined to, emitter will be from The target operational mode that current operation mode switches to, it can specifically be determined by the scheme provided in hereafter situation two.
Situation two, by the RSSI of current ink compared with RSSI interval ranges corresponding to each second subpattern, really Determining emitter will be from the target operational mode that current operation mode switches to.
In situation two, first determine whether the RSSI of current ink belongs to some subpattern pair in each second subpattern The RSSI interval ranges answered.
If the RSSI of current ink belongs to RSSI interval ranges corresponding to some subpattern in each second subpattern, can Using subpattern corresponding to the RSSI interval ranges belonging to the RSSI by current ink as target operational mode, and by the subpattern Corresponding frequency range, spreading factor are as frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is not belonging in each second subpattern any RSSI interval ranges corresponding to subpattern, Can determine that the RSSI of current ink is located between which two subpattern in each second subpattern, and it is determined that two sons The subpattern nearest with the RSSI numerical value of current ink is chosen in pattern, as target operational mode, and the subpattern is corresponding Frequency range, spreading factor is as frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is equal to the highest RSSI in RSSI interval ranges corresponding to each second subpattern, can So that subpattern corresponding to highest RSSI to be made as target operational mode, and by frequency range, spreading factor corresponding to the subpattern For frequency range, spreading factor corresponding to target operational mode;
If the RSSI of current ink is more than the highest RSSI in RSSI interval ranges corresponding to each second subpattern, can So that the RSSI of current ink compared with RSSI interval ranges corresponding to each first subpattern, being determined to, emitter will be from The target operational mode that current operation mode switches to, it can specifically be determined by the scheme provided in situation one above.
If the RSSI of current ink is equal to the minimum RSSI in RSSI interval ranges corresponding to each second subpattern, can So that subpattern corresponding to the minimum RSSI to be made as target operational mode, and by frequency range, spreading factor corresponding to the subpattern For frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is less than the minimum RSSI in RSSI interval ranges corresponding to each second subpattern, can So that the RSSI of current ink compared with RSSI interval ranges corresponding to each 3rd subpattern, being determined to, emitter will be from The target operational mode that current operation mode switches to, it can specifically be determined by the scheme provided in hereafter situation three.
Situation three, by the RSSI of current ink compared with RSSI interval ranges corresponding to each 3rd subpattern, really Determining emitter will be from the target operational mode that current operation mode switches to.
In situation three, first determine whether the RSSI of current ink belongs to some subpattern pair in each 3rd subpattern The RSSI interval ranges answered.
If the RSSI of current ink belongs to RSSI interval ranges corresponding to some subpattern in each 3rd subpattern, can Using subpattern corresponding to the RSSI interval ranges belonging to the RSSI by current ink as target operational mode, and by the subpattern Corresponding frequency range, spreading factor are as frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is not belonging in each 3rd subpattern any RSSI interval ranges corresponding to subpattern, Can determine that the RSSI of current ink is located between which two subpattern in each 3rd subpattern, and it is determined that two sons The subpattern nearest with the RSSI numerical value of current ink is chosen in pattern, as target operational mode, and the subpattern is corresponding Frequency range, spreading factor is as frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is equal to the highest RSSI in RSSI interval ranges corresponding to each 3rd subpattern, can So that subpattern corresponding to highest RSSI to be made as target operational mode, and by frequency range, spreading factor corresponding to the subpattern For frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is more than the highest RSSI in RSSI interval ranges corresponding to each 3rd subpattern, can So that the RSSI of current ink compared with RSSI interval ranges corresponding to each second subpattern, being determined to, emitter will be from The target operational mode that current operation mode switches to, it can specifically be determined by the scheme provided in situation two above.
It is described above using situation one, situation two and situation three to determine target operational mode, in situation one, is working as When the RSSI of preceding link is less than the minimum RSSI in RSSI interval ranges corresponding to each first subpattern, then situation two is jumped to To determine target operational mode, i.e., the RSSI of current ink RSSI interval ranges corresponding with each second subpattern are compared Compared with determining that emitter will be from the target operational mode that current operation mode switches to.
Similarly, in situation two, it is more than RSSI sections model corresponding to each second subpattern in the RSSI of current ink During highest RSSI in enclosing, then situation one is jumped to determine target operational mode, i.e., by the RSSI of current ink and each the RSSI interval ranges are compared corresponding to one subpattern, determine that emitter will be from the target work that current operation mode switches to Operation mode;When the RSSI of current ink is less than the minimum RSSI in RSSI interval ranges corresponding to each second subpattern, then Situation three is jumped to determine target operational mode, i.e., by the RSSI of current ink RSSI areas corresponding with each 3rd subpattern Between scope be compared, determine that emitter will be from the target operational mode that current operation mode switches to.
Continue similarly, in situation three, to be more than RSSI areas corresponding to each 3rd subpattern in the RSSI of current ink Between highest RSSI in scope when, then jump to situation two to determine target operational mode, i.e., by the RSSI of current ink with it is each RSSI interval ranges corresponding to individual second subpattern are compared, and determine that emitter will be from the mesh that current operation mode switches to Mark mode of operation.
In alternative embodiment of the present utility model, index can also be included in LoRa mode of operation parameter lists, with mark Each mode of operation.It is for instance possible to use index number identifies each first subpattern in first mode, in second mode Each second subpattern, and each 3rd subpattern in the 3rd pattern.
A variety of implementations of Fig. 1, Fig. 2 and the links of embodiment illustrated in fig. 3 are described in detail above, below will be logical A specific embodiment is crossed the switching method implementation process of LoRa mode of operations of the present utility model is discussed in detail.Need what is illustrated It is that the specific embodiment being described below is only illustrative, the utility model is not limited.
First, physically separate first passage is realized respectively on emitter and receiver by the way of shown in Fig. 2 And second channel.Specifically, the MCU on emitter or receiver passes through spi bus and connects LoRa RF1 and LoRa RF2, LoRa RF1 and Ant1 composition first passages, LoRa RF2 and Ant2 composition second channel, first passage and second channel are operated in difference Frequency range, first passage is used for data signaling transmission, and second channel transmits for control signaling.Also, first passage can be adopted With acquiescence transmission power, second channel can reach increasing transmission power by increasing PA.In addition, the transmission rate of first passage Can be change, the transmission rate of second channel, frequency range, spreading factor immobilize.Also, second channel is used to control Signalling, is a very excellent passage, and generally once communication can just be completed for control signaling transmission, specifically allows second channel Frequency range is as far as possible small, and spreading factor is as far as possible big.For example, the frequency range of second channel can be less than all frequencies set on first passage Width, the spreading factor of second channel can be equal to the maximum spreading factor set on first passage.
Secondly, a specific LoRa mode of operations parameter list is built, transmission speed is included in the LoRa mode of operation parameter lists The different multiple mode of operations of rate, respectively first mode, second mode and the 3rd pattern, the transmission rate of first mode are more than Second mode, the transmission rate of second mode are more than the 3rd pattern.Because the transmission rate of first mode is more than second mode, the The transmission rate of two modes is more than the 3rd pattern, therefore first mode can also be referred to as to fast mode, during second mode is referred to as Fast mode, the 3rd pattern are referred to as low-speed mode.Also, multiple first subpatterns can be included in first mode, in second mode Multiple second subpatterns can be included, multiple 3rd subpatterns can also be included in the 3rd pattern.In addition, LoRa mode of operations are joined Frequency range BW corresponding to each mode of operation, spreading factor SF, received signal strength indicator RSSI sections model are further comprises in number table Enclose.
, might as well be by the different multiple work of transmission rate in LoRa in order to build a specific LoRa mode of operations parameter list Each subpattern of pattern is defined as mi, it can include { indexi,bwi,sfi,rssi_lowi,rssi_highiFive kinds Property, wherein, index is index number, bw and frequency range and spreading factor that sf is LoRa, and rssi_low and rssi_high are to be somebody's turn to do Received signal strength indicator RSSI interval ranges corresponding to pattern, in the present embodiment 0≤i≤20.Here, index number can be with For 0 to 20 numerical value, wherein, index 0 to 6 corresponding first mode, also referred to as fast mode;7 to 13 corresponding second modes are indexed, Also referred to as middle fast mode;Corresponding 3rd pattern of index 14 to 20, also referred to as low-speed mode.So, definition includes above-mentioned five Multiple mode of operations of attribute construct a specific LoRa mode of operation parameter list, and table 1 shows a kind of specific LoRa mode of operations parameter list is only herein citing, the utility model not limited, it is necessary to explanation.It can see Arrive, endpoint value (i.e. border) identical situation of RSSI interval ranges in table 1 be present, such as index 10 and index 11 endpoint value- 128 is identical, therefore, in order to ensure that RSSI interval ranges corresponding to each subpattern in the pattern of identical traffic speed do not weigh Close, in this specific embodiment, RSSI interval ranges do not take two-end-point.
Table 1
Index bw(KHz) sf rssi_low(dBm) rssi_high(dBm)
0 500 6 -111 -112
1 500 7 -116 -118
2 500 8 -119 -121
3 500 9 -122 -124
4 500 10 -125 -127
5 500 11 -128 -129
6 500 12 -130 -130
7 250 6 -115 -118
8 250 7 -120 -122
9 250 8 -123 -125
10 250 9 -125 -128
11 250 10 -128 -131
12 250 11 -130 -133
13 250 12 -133 -134
14 125 6 -118 -121
15 125 7 -123 -125
16 125 8 -126 -128
17 125 9 -129 -131
18 125 10 -132 -134
19 125 11 -133 -136
20 125 12 -136 -137
It can be seen that, each first subpattern (pattern corresponding to index 0 to 6) in first mode has phase in table 1 With frequency range and different spreading factors, each second subpattern (pattern corresponding to index 7 to 13) in second mode have Identical frequency range and different spreading factors, each 3rd subpattern (pattern corresponding to index 14 to 20) tool in the 3rd pattern There are identical frequency range and different spreading factors.Also, the wide then speed of bw is high, sf then strong antijamming capabilities greatly.
In this specific embodiment, the mode of operation acquiescence first mode of transmitter and receiver on the first pass, i.e., Fast mode.That is, default-mode value is set in the mode of operation of transmitter and receiver on the first pass for the One pattern.So, emitter is it is determined that current operation mode belongs to any one in first mode, second mode and the 3rd pattern During kind of pattern, the mode of operation that the default-mode value records can be regard as current operation mode, i.e., using first mode as ought Preceding mode of operation, is recorded as m0{bw0,sf0}。
As introduced above, the transmission rate of first passage can be changed, the transmission rate of second channel, frequency range, expansion The frequency factor immobilizes.Therefore, can set the mode of operation of transmitter and receiver on a second pass for bw1, Sf1 }, wherein, bw1 compares bw0Small, sf1 is equal to sf0
Next, emitter sends data by first passage to receiver, if not receiving reception in preset duration During response message (i.e. the ack frames) for the successful data reception that machine returns, then it is assumed that data send failure, and resend, together When sending times are counted.Afterwards, when emitter is more than by first passage to the sending times of receiver transmission data During predetermined threshold value, emitter sends finger of the request receiver by first passage transmission beacon by second channel to receiver Order, the beacon that receiver is sent according to the instruction by first passage is received afterwards, and then sent out from receiver by first passage The RSSI of current ink is obtained in the beacon sent.
It is a very excellent passage, control signaling transmission is generally once led to because second channel is for control signaling transmission Letter can just be completed, and therefore, emitter sends request receiver to receiver by second channel and sends beacon by first passage Instruction, the instruction can successfully arrive at receiver, and the letter that receiver can be sent according to the instruction by first passage Mark.In some cases, if once communication can not be completed, i.e. the instruction has not been able to successfully arrive at receiver, then emitter exists After duration to be specified, request receiver can be sent to receiver again through second channel beacon is sent by first passage Instruction, until be successfully received the beacon that receiver is sent according to the instruction by first passage.Here, emitter is sent out again The number sent can be multiple, until emitter is successfully received the letter that receiver is sent according to the instruction by first passage Mark.In an alternate embodiment of the invention, emitter can receive multiple beacons that receiver is sent according to the instruction by first passage, Multiple RSSI are obtained from multiple beacons respectively, and then the RSSI of current ink is calculated according to multiple RSSI.For example, can be right Multiple RSSI calculate RSSI of the average value as current ink, can also be using the minimum RSSI in multiple RSSI as current ink RSSI, etc., the utility model embodiment not limited to this.
Below, emitter is compared the RSSI interval ranges in the RSSI of current ink and LoRa mode of operation parameter lists Compared with determining frequency corresponding to target operational mode and target operational mode that emitter will be switched to from current operation mode Wide, spreading factor.
Specifically, it is first determined current operation mode belongs to any one in first mode, second mode and the 3rd pattern Kind pattern, because the mode of operation of transmitter and receiver on the first pass gives tacit consent to first mode, i.e. fast mode, therefore, Target operational mode can be determined using the scheme for the situation one introduced above.Below in conjunction with the specific LoRa works built above Operation mode parameter list more clearly from illustrates.
First, under first mode (i.e. fast mode) mode of operation switching.
Step 1.1, if rssi_lowi< RSSI < rssi_highi(0≤i≤6), then select mi, otherwise perform step 1.2;
Step 1.2, if
min(|RSSI-rssi_highi|,|RSSI-rssi_lowi+1|)=| RSSI-rssi_highi| (0≤i≤5), Then select mi, otherwise perform step 1.3;
Step 1.3, if
min(|RSSI-rssi_highi|,|RSSI-rssi_lowi+1|)=| RSSI-rssi_lowi+1| (0≤i≤5), Then select mi+1, otherwise perform step 1.4;
Step 1.4, if RSSI >=rssi_highi(i=0) m, is then selectedi, otherwise perform step 1.5;
Step 1.5, if RSSI=rssi_lowi(i=6) m, is then selectedi, otherwise perform step 1.6;
Step 1.6, if RSSI < rssi_lowi(i=6), then into second mode (fast mode in i.e.), in second mode In continue to be operated model selection.
2nd, under second mode (i.e. in fast mode) mode of operation switching.
Step 2.1, if rssi_lowi< RSSI < rssi_highi(7≤i≤13), then select mi, otherwise perform step 2.2;
Step 2.2, if
min(|RSSI-rssi_highi|,|RSSI-rssi_lowi+1|)=| RSSI-rssi_highi| (7≤i≤12), Then select mi, otherwise perform step 2.3;
Step 2.3, if
min(|RSSI-rssi_highi|,|RSSI-rssi_lowi+1|)=| RSSI-rssi_lowi+1|(7≤i≤ 12) m, is then selectedi+1, otherwise perform step 2.4;
In step 2.2 and step 2.3, if the RSSI of current ink RSSI areas corresponding with two subpatterns determined Between scope difference apart from identical, then can it is determined that two subpatterns in choose the less subpattern of spreading factor, as Target operational mode.For example, the RSSI of current ink be -128, it is determined that two subpatterns corresponding to RSSI interval ranges for (- 125, -128) and (- 128, -131), it can be seen that the RSSI of current ink be -128 with (- 125, -128) and (- 128, - 131) difference is apart from identical, then the utility model embodiment can be chosen in (- 125, -128) and (- 128, -131) to expand The less subpattern of the frequency factor, that is, pattern corresponding to 11 is indexed, as target operational mode.It should be noted that only it is herein Enumerate, the utility model is not limited.
Step 2.4, if RSSI=rssi_highi(i=7) m, is then selectedi, otherwise perform step 2.5;
Step 2.5, if RSSI > rssi_highi(i=7), then into first mode (i.e. fast mode), in the first mould Continue to be operated model selection in formula;
Step 2.6, if RSSI=rssi_lowi(i=13) m, is then selectedi, otherwise perform step 2.7;
Step 2.7, if RSSI < rssi_lowi(i=13), then into the 3rd pattern (i.e. low-speed mode), in the 3rd mould Continue to be operated model selection in formula.
3rd, under the 3rd pattern (i.e. low-speed mode) mode of operation switching.
Step 3.1, if rssi_lowi< RSSI < rssi_highi(14≤i≤20), then select mi, otherwise perform step 3.2;
Step 3.2, if
min(|RSSI-rssi_highi|,|RSSI-rssi_lowi+1|)=| RSSI-rssi_highi|(14≤i≤ 19) m, is then selectedi, otherwise perform step 3.3;
Step 3.3, if
min(|RSSI-rssi_highi|,|RSSI-rssi_lowi+1|)=| RSSI-rssi_lowi+1|(14≤i≤ 19) m, is then selectedi+1, otherwise perform step 3.4;
Step 3.4, if RSSI=rssi_highi(i=14) m, is then selectedi, otherwise perform step 3.5;
Step 3.5, if RSSI > rssi_highi(i=14), then into second mode (fast mode in i.e.), in the second mould Continue to be operated model selection in formula.
Afterwards, by frequency range, spreading factor m corresponding to the target operational mode of determinationi{ bw, sf } is sent by second channel To receiver, with as receiver according to corresponding to target operational mode frequency range, spreading factor, by Working mould on the first pass Formula switches to target operational mode, and returns to the message for representing to switch successfully to emitter by second channel.
Finally, when receiving the message for the expression handover success that receiver is returned by second channel, emitter is existed Current operation mode on first passage switches to target operational mode, with using target operational mode on the first pass with connecing Receipts machine carries out data transmission.
The situation that the mode of operation of transmitter and receiver on the first pass is defaulted as first mode is described above, In practical application, the mode of operation of transmitter and receiver on the first pass can also be defaulted as second mode or the 3rd mould Formula.
The mode of operation of transmitter and receiver on the first pass is defaulted as second mode, i.e., middle fast mode, can adopt Target operational mode is determined with the scheme in the situation two introduced above, you can be introduced into second mode (fast mode in i.e.) It is operated the switching of pattern.
The mode of operation of transmitter and receiver on the first pass is defaulted as the 3rd pattern, i.e. low-speed mode, can adopt Target operational mode is determined with the scheme in the situation three introduced above, you can be introduced into the 3rd pattern (i.e. low-speed mode) It is operated the switching of pattern.
Conceived based on same utility model, the utility model embodiment additionally provides a kind of switching dress of LoRa mode of operations Put, the device is applied to the emitter to be communicated using LoRa wireless technologys, emitter and connecing using LoRa wireless technologys Receipts machine is communicated, and emitter with realizing physically separate first passage and second channel respectively on receiver.Fig. 4 is shown According to the structural representation of the switching device of the LoRa mode of operations of the embodiment of the utility model one, referring to Fig. 4, the device can be with Including:Composer 410, getter 420, comparator 430, parameter transmitter 440 and switch 450.
Composer 410, for building LoRa mode of operation parameter lists, wherein, comprising more in LoRa mode of operation parameter lists Frequency range, spreading factor, received signal strength indicator RSSI interval ranges corresponding to individual mode of operation and each mode of operation;
Getter 420, for sending the sending times of data more than default to receiver by first passage when emitter During threshold value, the RSSI of current ink is obtained in the beacon sent from receiver by first passage, wherein, emitter passes through first Passage sends data to receiver, if the response for not receiving the successful data reception of receiver return in preset duration disappears During breath, then it is assumed that data send failure, and resend, while sending times are counted;
Comparator 430, it is connected with composer 410 and getter 420, for by the RSSI of current ink and LoRa Working moulds RSSI interval ranges in formula parameter list are compared, and determine the target operation that emitter will switch to from current operation mode Frequency range, spreading factor corresponding to pattern and target operational mode;
Parameter transmitter 440, it is connected with comparator 430, for frequency range, spreading factor corresponding to target operational mode to be led to Cross second channel and be sent to receiver, with as receiver according to corresponding to target operational mode frequency range, spreading factor, will be first Mode of operation on passage switches to target operational mode, and is returned by second channel to emitter and represent that what is switched successfully disappears Breath;
Switch 450, it is connected with parameter transmitter 440, for working as the table for receiving receiver and being returned by second channel When showing the message of handover success, the current operation mode of emitter on the first pass is switched into target operational mode, so that Carried out data transmission on the first pass with receiver with target operational mode.
The switching device for the LoRa mode of operations that the utility model embodiment provides, can be according to emitter and receiver Data transmission scenarios, both mode of operations are adjusted flexibly, improve efficiency of transmission, save power consumption, solve and adopt in the prior art The problem of causing efficiency of transmission low with fixed mode of operation.
In the utility model embodiment, emitter with realizing physically separate first passage and second respectively on receiver Passage, in the specific implementation, emitter and receiver can realize physically separate the by the way of as shown in Figure 2 One passage and second channel.In fig. 2, the MCU in equipment (emitter or receiver) connects LoRa RF by spi bus, RF and Ant composition passages.Specifically, MCU connects LoRa RF1 and LoRa RF2, LoRa RF1 and Ant1 groups by spi bus Into first passage, LoRa RF2 and Ant2 composition second channel.Here, first passage, which can use, gives tacit consent to transmission power, and second Passage can reach increasing transmission power by increasing PA.
The first passage that the utility model embodiment refers to is used for data signaling transmission, and second channel passes for control signaling Defeated, first passage and second channel are operated in different frequency ranges, and the transmission rate of first passage can be changed, second channel Transmission rate, frequency range, spreading factor immobilize.Also, second channel transmits for control signaling, is one very excellent Passage, generally once communication can just be completed for control signaling transmission, specifically allow the frequency range of second channel is as far as possible small, and spreading factor is most Amount is big.For example, the frequency range of second channel can be less than all frequency ranges set on first passage, the spreading factor of second channel can With equal to the maximum spreading factor set on first passage.Certainly, only it is herein citing, the utility model is not limited System.
It is response formula that the utility model embodiment, which defines data frame interaction, and emitter sends data frame by first passage The ack frames for receiving receiver reply in the stipulated time afterwards just can determine that data are sent successfully;Similarly, the utility model is implemented It is response formula that example, which defines control frame interaction, and emitter in the stipulated time after second channel transmission control frame by receiving reception The ack frames that machine is replied just can determine that control frame is sent successfully.Number can also be included in the device that the utility model embodiment provides According to frame transmitter (not shown in accompanying drawing), data frame is sent by first passage by data frame transmitter.
In the utility model embodiment, emitter sends data by first passage to receiver, if in preset duration When not receiving response message (i.e. the ack frames) of the successful data reception of receiver return, then it is assumed that data send failure, and Resend, getter 420 counts to sending times.Afterwards, when emitter sends number by first passage to receiver According to sending times be more than predetermined threshold value when, obtain in the beacon that getter 420 is sent from receiver by first passage current The RSSI of link.
In alternative embodiment of the present utility model, as shown in figure 5, the device of figure 4 above displaying can also include:
Commander sender 510, it is connected with getter 420, for being sent in getter 420 from receiver by first passage Beacon in obtain current ink RSSI before, when emitter by first passage to receiver send data sending times During more than predetermined threshold value, instruction of the request receiver by first passage transmission beacon is sent to receiver by second channel;
Beacon receiver 520, it is connected with commander sender 510, first passage is passed through according to instruction for receiving receiver The beacon of transmission.Here, beacon receiver 520 can receive multiple letters that receiver is sent according to the instruction by first passage Mark, obtains multiple RSSI, and then the RSSI of current ink is calculated according to multiple RSSI from multiple beacons respectively.For example, can , can also be using the minimum RSSI in multiple RSSI as current so that multiple RSSI are calculated with average value as the RSSI of current ink RSSI of link, etc., the utility model embodiment not limited to this.
The utility model embodiment can be sent by parameter transmitter 440 or commander sender 510 by second channel Control frame.
In alternative embodiment of the present utility model, biography is included in multiple mode of operations in LoRa mode of operation parameter lists The different pattern of defeated speed, includes multiple subpatterns in the pattern of each transmission rate, each in the pattern of identical traffic speed RSSI interval ranges corresponding to individual subpattern are misaligned or overlapping margins, corresponding to the subpattern in the pattern of different transmission rates RSSI interval ranges there is a situation where to overlap, and coincidences here, which refers in the section in addition to border, has common factor.In addition, phase simultaneous interpretation Multiple subpatterns in the pattern of defeated speed have identical frequency range and different spreading factors.
For example, in multiple mode of operations in LoRa mode of operations parameter list comprising first mode, second mode and 3rd pattern, the transmission rate of first mode are more than second mode, and the transmission rate of second mode is more than the 3rd pattern.Due to The transmission rate of one pattern is more than second mode, and the transmission rate of second mode is more than the 3rd pattern, therefore can also be by first Pattern is referred to as fast mode, fast mode during second mode is referred to as, and the 3rd pattern is referred to as low-speed mode.
Further, multiple first subpatterns can be included in first mode, multiple second can be included in second mode Subpattern, multiple 3rd subpatterns can also be included in the 3rd pattern.Also, RSSI sections model corresponding to multiple first subpatterns Enclose misaligned or overlapping margins, RSSI interval ranges corresponding to multiple second subpatterns are also misaligned or overlapping margins, Duo Ge RSSI interval ranges corresponding to three subpatterns are also misaligned or overlapping margins.In addition, multiple first subpatterns, multiple second submodules Corresponding RSSI interval ranges there is a situation where to overlap between formula, multiple 3rd subpatterns, and coincidence here refers in addition to border Section in exist occur simultaneously.In an alternate embodiment of the invention, each first subpattern in multiple first subpatterns has identical Frequency range and different spreading factors, each second subpattern in multiple second subpatterns have identical frequency range and different expansions Each 3rd subpattern in the frequency factor, and multiple 3rd subpatterns has identical frequency range and different spreading factors.
In alternative embodiment of the present utility model, as shown in figure 5, comparator 430 can include:
Determining unit 431, for determining that current operation mode belongs to any one pattern in the patterns of different transmission rates, It is referred to as treating mould-fixed;
Comparing unit 432, be connected with determining unit 431, for by the RSSI of current ink with treat it is each in mould-fixed RSSI interval ranges are compared corresponding to subpattern, determine that emitter will be from the target operation that current operation mode switches to Pattern.
In alternative embodiment of the present utility model, determining unit 431 is additionally operable to:
The default mode of operation on the first passage pre-set is obtained, wherein, default mode of operation belongs to different transmission Any one pattern in the pattern of speed;
Using default mode of operation as current operation mode.
In alternative embodiment of the present utility model, comparing unit 432 is additionally operable to:
Judge whether the RSSI of current ink belongs in each subpattern treated in mould-fixed corresponding to some subpattern RSSI interval ranges;
If so, then using subpattern corresponding to the RSSI interval ranges belonging to the RSSI of current ink as target operation mould Formula;
If not, it is determined that the RSSI of current ink is located at treat any two subpatterns in mould-fixed between, and it is determined that The subpattern nearest with the RSSI numerical value of current ink is chosen in two subpatterns, as target operational mode.
Here, RSSI interval ranges can take two end points (i.e. border), can also take an end points in two end points, Two end points can not be taken.For example, RSSI interval ranges take two end points, labeled as [- 125, -128], if current ink RSSI is -128, then comparing unit 432 judges that the RSSI of current ink belongs to [- 125, -128].In another example RSSI interval ranges An end points in two end points is taken, labeled as [- 125, -128), if the RSSI of current ink is -128, comparing unit 432 Judge current ink RSSI be not belonging to [- 125, -128).For another example RSSI interval ranges do not take two end points, labeled as (- 125, -128), if the RSSI of current ink be -125, comparing unit 432 judge current ink RSSI be not belonging to (- 125,-128);If the RSSI of current ink be -128, comparing unit 432 judge current ink RSSI be also not belonging to (- 125,-128)。
In alternative embodiment of the present utility model, comparing unit 432 is additionally operable to:
If the RSSI of current ink with the difference of RSSI interval ranges corresponding to two subpatterns determined apart from identical, It is determined that two subpatterns in choose the less subpattern of spreading factor, as target operational mode.For example, current ink RSSI be -128, determining unit 431 determine two subpatterns corresponding to RSSI interval ranges be (- 125, -128) and (- 128, -131), it can be seen that the RSSI of current ink is -128 and the difference of (- 125, -128) and (- 128, -131) is apart from phase Together, then comparing unit 432 can choose the less subpattern of spreading factor in (- 125, -128) and (- 128, -131), make For target operational mode.It should be noted that only enumerate herein, the utility model is not limited.
In alternative embodiment of the present utility model, comparing unit 432 is additionally operable to:
If the RSSI of current ink is more than the highest treated in mould-fixed in RSSI interval ranges corresponding to each subpattern RSSI, then judge in multiple mode of operations with the presence or absence of the mode of operation that transmission rate is bigger than treating mould-fixed;
If judgement is not present, using subpattern corresponding to highest RSSI as target operational mode;
It is the work that transmission rate is bigger than treating mould-fixed in multiple mode of operations by mode adjustment undetermined if judging to exist Pattern, and the RSSI of current ink RSSI interval ranges corresponding with each subpattern treated in mould-fixed after adjustment are carried out Compare, determine that emitter will be from the target operational mode that current operation mode switches to;
If the RSSI of current ink is equal to the highest treated in mould-fixed in RSSI interval ranges corresponding to each subpattern RSSI, then using subpattern corresponding to highest RSSI as target operational mode.
In alternative embodiment of the present utility model, comparing unit 432 is additionally operable to:
If exist in multiple mode of operations the transmission rate mode of operation bigger than treating mould-fixed include it is multiple, choose and treat The nearest mode of operation of the transmission rate numerical value of mould-fixed, mould-fixed is treated as after adjustment.
In alternative embodiment of the present utility model, comparing unit 432 is additionally operable to:
If the RSSI of current ink is minimum in RSSI interval ranges corresponding to each subpattern in mould-fixed less than treating RSSI, then judge in multiple patterns with the presence or absence of the mode of operation that transmission rate is smaller than treating mould-fixed;
If judgement is not present, using subpattern corresponding to the minimum RSSI as target operational mode;
It is the Working mould that transmission rate is smaller than treating mould-fixed in multiple patterns by mode adjustment undetermined if judging to exist Formula, and the RSSI of current ink RSSI interval ranges corresponding with each subpattern treated in mould-fixed after adjustment are compared Compared with determining that emitter will be from the target operational mode that current operation mode switches to;
If the RSSI of current ink is minimum in RSSI interval ranges corresponding to each subpattern in mould-fixed equal to treating RSSI, then using subpattern corresponding to the minimum RSSI as target operational mode.
In alternative embodiment of the present utility model, comparing unit 432 is additionally operable to:
If exist in multiple mode of operations the transmission rate mode of operation smaller than treating mould-fixed include it is multiple, choose and treat The nearest mode of operation of the transmission rate numerical value of mould-fixed, mould-fixed is treated as after adjustment.
Exemplified by including first mode, second mode and the 3rd pattern in multiple mode of operations, then comparator 430 is true During the mode of operation that sets the goal, it is necessary first to determine that current operation mode belongs in first mode, second mode and the 3rd pattern Any one pattern, for the different mode belonging to current operation mode, the processing mode of comparator 430 is different.Therefore, originally In the alternative embodiment of utility model, the comparing unit 432 shown in Fig. 5 can be sub including the first comparing subunit, the second comparison Unit and the 3rd comparing subunit (not shown in accompanying drawing).
Determining unit 431, for determining that current operation mode belongs to appointing in first mode, second mode and the 3rd pattern Anticipate a kind of pattern;
First comparing subunit, it is connected with determining unit 431, will if belonging to first mode for current operation mode The RSSI of current ink determines that emitter will be from current compared with RSSI interval ranges corresponding to each first subpattern The target operational mode that mode of operation switches to;
Second comparing subunit, it is connected with determining unit 431, will if belonging to second mode for current operation mode The RSSI of current ink determines that emitter will be from current compared with RSSI interval ranges corresponding to each second subpattern The target operational mode that mode of operation switches to;
3rd comparing subunit, it is connected with determining unit 431, will if belonging to the 3rd pattern for current operation mode The RSSI of current ink determines that emitter will be from current compared with RSSI interval ranges corresponding to each 3rd subpattern The target operational mode that mode of operation switches to.
The utility model embodiment sets default-mode value in emitter mode of operation on the first pass, it is determined that When unit 431 determines that current operation mode belongs to any one pattern in first mode, second mode and the 3rd pattern, it is determined that Unit 431 can obtain current operation mode from the default-mode value, will the default-mode value record mode of operation make For current operation mode.In actual applications, the mode of operation of default-mode value record can be first mode, can be second Pattern or the 3rd pattern, the utility model embodiment are not restricted to this.
Further, the first comparing subunit is additionally operable to:
Judge whether the RSSI of current ink belongs to RSSI sections model corresponding to some subpattern in each first subpattern Enclose;
If the RSSI of current ink belongs to RSSI interval ranges corresponding to some subpattern in each first subpattern, can Using subpattern corresponding to the RSSI interval ranges belonging to the RSSI by current ink as target operational mode, and by the subpattern Corresponding frequency range, spreading factor are as frequency range, spreading factor corresponding to target operational mode.Here, the RSSI institutes of current ink The RSSI interval ranges of category, it is in each first subpattern, the RSSI interval ranges belonging to the RSSI of current ink are corresponding Subpattern.
If the RSSI of current ink is not belonging in each first subpattern any RSSI interval ranges corresponding to subpattern, Can determine that the RSSI of current ink is located between which two subpattern in each first subpattern, and it is determined that two sons The subpattern nearest with the RSSI numerical value of current ink is chosen in pattern, as target operational mode, and the subpattern is corresponding Frequency range, spreading factor is as frequency range, spreading factor corresponding to target operational mode.
If the highest that the RSSI of current ink is more than or equal in RSSI interval ranges corresponding to each first subpattern RSSI, then can using subpattern corresponding to highest RSSI as target operational mode, and by frequency range corresponding to the subpattern, expand The frequency factor is as frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is equal to the minimum RSSI in RSSI interval ranges corresponding to each first subpattern, can So that subpattern corresponding to the minimum RSSI to be made as target operational mode, and by frequency range, spreading factor corresponding to the subpattern For frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is less than the minimum RSSI in RSSI interval ranges corresponding to each first subpattern, can So that the RSSI of current ink compared with RSSI interval ranges corresponding to each second subpattern, being determined to, emitter will be from The target operational mode that current operation mode switches to, it can specifically be determined by the scheme provided in hereafter situation two.
Further, the second comparing subunit is additionally operable to:
Judge whether the RSSI of current ink belongs to RSSI sections model corresponding to some subpattern in each second subpattern Enclose;
If the RSSI of current ink belongs to RSSI interval ranges corresponding to some subpattern in each second subpattern, can Using subpattern corresponding to the RSSI interval ranges belonging to the RSSI by current ink as target operational mode, and by the subpattern Corresponding frequency range, spreading factor are as frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is not belonging in each second subpattern any RSSI interval ranges corresponding to subpattern, Can determine that the RSSI of current ink is located between which two subpattern in each second subpattern, and it is determined that two sons The subpattern nearest with the RSSI numerical value of current ink is chosen in pattern, as target operational mode, and the subpattern is corresponding Frequency range, spreading factor is as frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is equal to the highest RSSI in RSSI interval ranges corresponding to each second subpattern, can So that subpattern corresponding to highest RSSI to be made as target operational mode, and by frequency range, spreading factor corresponding to the subpattern For frequency range, spreading factor corresponding to target operational mode;
If the RSSI of current ink is more than the highest RSSI in RSSI interval ranges corresponding to each second subpattern, can So that the RSSI of current ink compared with RSSI interval ranges corresponding to each first subpattern, being determined to, emitter will be from The target operational mode that current operation mode switches to, it can specifically be determined by the scheme provided in situation one above.
If the RSSI of current ink is equal to the minimum RSSI in RSSI interval ranges corresponding to each second subpattern, can So that subpattern corresponding to the minimum RSSI to be made as target operational mode, and by frequency range, spreading factor corresponding to the subpattern For frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is less than the minimum RSSI in RSSI interval ranges corresponding to each second subpattern, can So that the RSSI of current ink compared with RSSI interval ranges corresponding to each 3rd subpattern, being determined to, emitter will be from The target operational mode that current operation mode switches to, it can specifically be determined by the scheme provided in hereafter situation three.
Further, the 3rd comparing subunit is additionally operable to:
Judge whether the RSSI of current ink belongs to RSSI sections model corresponding to some subpattern in each 3rd subpattern Enclose;
If the RSSI of current ink belongs to RSSI interval ranges corresponding to some subpattern in each 3rd subpattern, can Using subpattern corresponding to the RSSI interval ranges belonging to the RSSI by current ink as target operational mode, and by the subpattern Corresponding frequency range, spreading factor are as frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is not belonging in each 3rd subpattern any RSSI interval ranges corresponding to subpattern, Can determine that the RSSI of current ink is located between which two subpattern in each 3rd subpattern, and it is determined that two sons The subpattern nearest with the RSSI numerical value of current ink is chosen in pattern, as target operational mode, and the subpattern is corresponding Frequency range, spreading factor is as frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is equal to the highest RSSI in RSSI interval ranges corresponding to each 3rd subpattern, can So that subpattern corresponding to highest RSSI to be made as target operational mode, and by frequency range, spreading factor corresponding to the subpattern For frequency range, spreading factor corresponding to target operational mode.
If the RSSI of current ink is more than the highest RSSI in RSSI interval ranges corresponding to each 3rd subpattern, can So that the RSSI of current ink compared with RSSI interval ranges corresponding to each second subpattern, being determined to, emitter will be from The target operational mode that current operation mode switches to, it can specifically be determined by the scheme provided in situation two above.
, can be with the LoRa mode of operation parameter lists that composer 410 is built in alternative embodiment of the present utility model Comprising index, to identify each mode of operation.It is for instance possible to use index number come identify in first mode it is each first son Pattern, each second subpattern in second mode, and each 3rd subpattern in the 3rd pattern.
Conceived based on same utility model, the utility model embodiment additionally provides a kind of switching system of LoRa mode of operations System, Fig. 6 show the structural representation of the switching system of the LoRa mode of operations according to the another embodiment of the utility model.Referring to Fig. 6, the system include emitter 610 and receiver 620, and emitter 610 is led to receiver 620 using LoRa wireless technologys Letter, emitter 610 with realizing physically separate first passage and second channel respectively on receiver 620.
Emitter 610 has the switching device of LoRa mode of operations above, by the switching device by the He of emitter 610 The mode of operation of receiver 620 on the first pass switches to target operational mode, to use target operation mould in first passage Formula realizes the data transfer between emitter 610 and receiver 620.
Embodiment described above, the purpose of this utility model, technical scheme and beneficial effect are carried out further in detail Describe in detail bright, should be understood that and the foregoing is only exemplary embodiment of the present utility model, be not limited to this reality It is all within the spirit and principles of the utility model with new, any modification, equivalent substitution and improvements done etc., it all should include Within the scope of protection of the utility model.

Claims (15)

1. a kind of switching device of LoRa mode of operations, it is characterised in that applied to what is communicated using LoRa wireless technologys Emitter, the emitter is communicated with using the receiver of LoRa wireless technologys, on the emitter and the receiver Physically separate first passage and second channel are realized respectively, and described device includes:
Composer, for building LoRa mode of operation parameter lists, wherein, multiple works are included in the LoRa mode of operations parameter list Frequency range, spreading factor, received signal strength indicator RSSI interval ranges corresponding to operation mode and each mode of operation;
Getter, for being more than when the emitter by the first passage to the sending times of receiver transmission data During predetermined threshold value, the RSSI of current ink is obtained in the beacon sent from the receiver by the first passage, wherein, institute State emitter and data are sent to the receiver by the first passage, if not receiving the receiver in preset duration During the response message of the successful data reception returned, then it is assumed that data send failure, and resend, while to sending times Counted;
Comparator, it is connected with the composer and the getter, for by the RSSI of the current ink and the LoRa works RSSI interval ranges in operation mode parameter list are compared, and determine what the emitter will switch to from current operation mode Frequency range, spreading factor corresponding to target operational mode and the target operational mode;
Parameter transmitter, it is connected with the comparator, for frequency range, spreading factor corresponding to the target operational mode to be passed through The second channel is sent to the receiver, with frequency range, expansion according to corresponding to the target operational mode as the receiver The frequency factor, the mode of operation on the first passage is switched into the target operational mode, and pass through the second channel The message for representing to switch successfully is returned to the emitter;
Switch, it is connected with the parameter transmitter, receives what the receiver was returned by the second channel for working as When representing the message switched successfully, the current operation mode of the emitter on the first passage is switched to described Target operational mode, to be carried out data transmission using the target operational mode on the first passage with the receiver.
2. device according to claim 1, it is characterised in that the first passage is used for data signaling transmission, and described Two passages transmit for control signaling, and the transmission rate of the second channel, frequency range, spreading factor immobilize.
3. device according to claim 1, it is characterised in that also include:
Commander sender, work as being obtained in the beacon that is sent in the getter from the receiver by the first passage Before the RSSI of preceding link, when the emitter is big to the sending times of receiver transmission data by the first passage When predetermined threshold value, sent by the second channel to the receiver and ask the receiver to be sent out by the first passage Target of delivering letters instructs;
Beacon receiver, it is connected with commander sender, it is logical by described first according to the instruction for receiving the receiver The beacon that road is sent.
4. device according to claim 1, it is characterised in that different comprising transmission rate in the multiple mode of operation Pattern, includes multiple subpatterns in the pattern of each transmission rate, and each subpattern in the pattern of identical traffic speed is corresponding RSSI interval ranges are misaligned or overlapping margins, RSSI interval ranges corresponding to the subpattern in the pattern of different transmission rates Coincidence be present.
5. device according to claim 4, it is characterised in that multiple subpatterns in the pattern of identical traffic speed have Identical frequency range and different spreading factors.
6. the device according to claim 4 or 5, it is characterised in that the comparator includes:
Determining unit, for determining that the current operation mode belongs to any one mould in the patterns of the different transmission rates Formula, it is referred to as treating mould-fixed;
Comparing unit, be connected with the determining unit, for by the RSSI of the current ink with it is described treat it is each in mould-fixed RSSI interval ranges are compared corresponding to individual subpattern, determine that the emitter will switch to from the current operation mode Target operational mode.
7. device according to claim 6, it is characterised in that the determining unit is additionally operable to:
The default mode of operation on the first passage pre-set is obtained, wherein, the default mode of operation belongs to described Any one pattern in the pattern of different transmission rates;
Using the default mode of operation as the current operation mode.
8. device according to claim 6, it is characterised in that the comparing unit is additionally operable to:
Judge whether the RSSI of the current ink belongs to some subpattern in each subpattern treated in mould-fixed and correspond to RSSI interval ranges;
If so, then using subpattern corresponding to the RSSI interval ranges belonging to the RSSI of the current ink as the target operation Pattern;
If not, it is determined that between the RSSI of the current ink treats which two subpattern in mould-fixed described in, and true The subpattern nearest with the RSSI numerical value of the current ink is chosen in two fixed subpatterns, as the target operation mould Formula.
9. device according to claim 8, it is characterised in that the comparing unit is additionally operable to:
If the RSSI of the current ink with the difference of RSSI interval ranges corresponding to two subpatterns determined apart from identical, It is determined that two subpatterns in choose the less subpattern of spreading factor, as the target operational mode.
10. device according to claim 8, it is characterised in that the comparing unit is additionally operable to:
If the RSSI of the current ink is more than described treat in mould-fixed in RSSI interval ranges corresponding to each subpattern most High RSSI, then judge in the multiple mode of operation with the presence or absence of transmission rate than the mode of operation for treating that mould-fixed is big;
If judgement is not present, using subpattern corresponding to highest RSSI as the target operational mode;
It is to treat mould-fixed described in transmission rate ratio in the multiple mode of operation by the mode adjustment undetermined if judging to exist Big mode of operation, and by the RSSI of the current ink with after adjustment described in treat that each subpattern in mould-fixed is corresponding RSSI interval ranges are compared, and determine that the emitter will be from the target operation mould that the current operation mode switches to Formula;
If the RSSI of the current ink is equal to described treat in mould-fixed in RSSI interval ranges corresponding to each subpattern most High RSSI, then using subpattern corresponding to highest RSSI as the target operational mode.
11. device according to claim 10, it is characterised in that the comparing unit is additionally operable to:
If exist in the multiple mode of operation transmission rate than the mode of operation for treating that mould-fixed is big include it is multiple, choose The nearest mode of operation with the transmission rate numerical value for treating mould-fixed, as treating mould-fixed described in after adjustment.
12. device according to claim 8, it is characterised in that the comparing unit is additionally operable to:
If the RSSI of the current ink is less than described treat in mould-fixed in RSSI interval ranges corresponding to each subpattern most Low RSSI, then judge in the multiple pattern with the presence or absence of transmission rate than the mode of operation for treating that mould-fixed is small;
If judgement is not present, using subpattern corresponding to the minimum RSSI as the target operational mode;
It is that transmission rate treats that mould-fixed is small than described in the multiple pattern by the mode adjustment undetermined if judging to exist Mode of operation, and by the RSSI of the current ink with after adjustment described in treat the corresponding RSSI of each subpattern in mould-fixed Interval range is compared, and determines the target operational mode that the emitter will switch to from the current operation mode;
If the RSSI of the current ink is equal to described treat in mould-fixed in RSSI interval ranges corresponding to each subpattern most Low RSSI, then using subpattern corresponding to the minimum RSSI as the target operational mode.
13. device according to claim 12, it is characterised in that the comparing unit is additionally operable to:
If exist in the multiple mode of operation transmission rate than the mode of operation for treating that mould-fixed is small include it is multiple, choose The nearest mode of operation with the transmission rate numerical value for treating mould-fixed, as treating mould-fixed described in after adjustment.
14. device according to claim 1, it is characterised in that index is also included in the LoRa mode of operations parameter list, To identify each mode of operation.
A kind of 15. switching system of LoRa mode of operations, it is characterised in that including:Transmitter and receiver, the emitter with The receiver is communicated using LoRa wireless technologys, and the emitter is physically independent with being realized respectively on the receiver First passage and second channel;
The emitter has the switching device of the LoRa mode of operations any one of claim 1-14, is cut by described The mode of operation of the emitter and the receiver on the first passage is switched to target operational mode by changing device, with The data transfer between the emitter and the receiver is realized using the target operational mode in the first passage.
CN201720764596.1U 2017-06-28 2017-06-28 A kind of switching device and system of LoRa mode of operations Active CN207135111U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201720764596.1U CN207135111U (en) 2017-06-28 2017-06-28 A kind of switching device and system of LoRa mode of operations

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201720764596.1U CN207135111U (en) 2017-06-28 2017-06-28 A kind of switching device and system of LoRa mode of operations

Publications (1)

Publication Number Publication Date
CN207135111U true CN207135111U (en) 2018-03-23

Family

ID=61633479

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201720764596.1U Active CN207135111U (en) 2017-06-28 2017-06-28 A kind of switching device and system of LoRa mode of operations

Country Status (1)

Country Link
CN (1) CN207135111U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231202A (en) * 2017-06-28 2017-10-03 苏州欧普照明有限公司 A kind of switching method, the apparatus and system of LoRa mode of operations

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107231202A (en) * 2017-06-28 2017-10-03 苏州欧普照明有限公司 A kind of switching method, the apparatus and system of LoRa mode of operations

Similar Documents

Publication Publication Date Title
CN107231202A (en) A kind of switching method, the apparatus and system of LoRa mode of operations
CN102685795B (en) The collocation method that a kind of RRM RRM measures
US7711363B2 (en) Method and apparatus for controlling communications of data from multiple base stations to a mobile station in a communication system
CN107637150B (en) Method and device for channel measurement and measurement result reporting
CN103843432A (en) Communication method, base station, wireless communication node and user equipment
CN107155200A (en) Communication means and device applied to super cell
CN104244426A (en) Resource distribution method and device for data radio bear (DRB)
CN104284321B (en) A kind of method, equipment and the user equipment of path switching
US20240007172A1 (en) Beam training method and device, communication system
CA2434266A1 (en) Method and apparatus for improving radio spectrum usage and decreasing user data delay when providing packet psi status
CN108632946A (en) A kind of connection control method, terminal and access network equipment
EP3592039B1 (en) Wireless communication method and device
CN101589643B (en) Intermittent communication system, base station apparatus, and mobile station apparatus
EP3667941B1 (en) Method for indicating and determining beam information, device, and communication system
CN105027620A (en) Method for switchover, user equipment, base station, and access point
CN101511112B (en) Channel switching method and vehicle-mounted wireless access point suitable for subway turning around
CN108064050A (en) Collocation method and device
CN108155973A (en) A kind of modulating-coding strategy determines method and device
CN107888357A (en) The method and apparatus for transmitting information
CN207135111U (en) A kind of switching device and system of LoRa mode of operations
CN104869644B (en) A kind of data transmission method and equipment
CN104247550A (en) Data transmission method, communication device and communication system
CN102970742A (en) Frequency control method and device for wireless communication system
GB2621740A (en) Channel Switching and operating channel validation
CN107889173A (en) It is a kind of to obtain information, cell switching, cell selection or the method and apparatus of gravity treatment

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant