Specific embodiment
As shown in Figure 1, a kind of method for promoting LoRa network communication rate, comprising steps of
S200: networking is carried out to LoRa network, obtains ad-hoc network.
Effective networking is carried out to LoRa network, obtains ad-hoc network.
Specifically, as shown in Fig. 2, step S200 includes: in one of the embodiments,
S220: traversal LoRa network is searched host node in LoRa network with from node, and is obtained from node white list.
When carrying out effective networking, it is necessary first to determine host node in LoRa network with from node and from the white name of node
It is single, wherein the slave node of scanning in need is recorded from node white list.Determining these host nodes and after node, it can be with
Obtain " basic framework " of entire ad-hoc network.
S240: according to from node white list, the slave node for needing to scan is determined.
S260: host node transmission rate is set to meet network communication and carries out group with the minimum under the conditions of networking function
Net obtains ad-hoc network.
It needs to set host node transmission rate after " basic framework " of building ad-hoc network.Herein, first
Host node transmission rate is set as initial (starting) transmission rate, which is to meet network communication and group
Minimum under net functional conditions, the ad-hoc network host node transmission rate constructed at this time is minimum, but transmission range is maximum.
The slave node that host node needs to scan by network from the confirmation of node white list in one of the embodiments,.It is main
Transmission rate is set in minimum first and (notices that transmission rate minimum allows for guaranteeing network normal communication and group by node
Net function) networking is carried out, network organizing is completed, at this moment since transmission rate is minimum, the effective distance of communication reaches maximum.It needs to infuse
Meaning illustrates that transmission rate minimum is not able to satisfy networking requirement, reports mistake to main website if networking fails.
S400: network transmission speed channel in scanning ad-hoc network, and scanning knot is obtained according to preset signal strength threshold value
Fruit.
Scan ad-hoc network in network transmission speed channel, specifically, be in ad-hoc network host node scanning each from
Node, during the scanning process the transmission rate of host node from low to high, and need to guarantee each of network from node receive
Signal strength indication is higher than preset signal strength threshold value, is lower than preset signal strength threshold value from node signal strength when there is some
When, terminate scanning.
Specifically, as shown in Fig. 2, step S400 includes: in one of the embodiments,
S420: preset signal strength threshold value is obtained.
Preset signal strength threshold value is preset value, the size of specific number can based on historical empirical data,
Experts database data simultaneously set in conjunction with practical application scene.
S440: control host node scans network transmission speed channel with transmission rate from low to high, and successively search is each
The slave node that need to be scanned.
Network transmission speed channel is scanned the minimum that host node transmission rate is set by step S260 from low to high,
It is improved in scanning process in transmission rate, successively searches for each slave node for needing to scan, judge from node received signal strength
Whether preset signal strength threshold value is lower than.
S460: when some is lower than preset signal strength threshold value from node received signal strength, scanning is terminated.
When some is lower than preset signal strength threshold value from node received signal strength, present scan is terminated.It is swept in termination
It retouches simultaneously, the corresponding host node transmission rate of previous scanning that can recorde down.Such as host node with transmission rate since A
Increase mode according to ABCDEF and scan network transmission speed channel, and successively search for each slave node that need to be scanned, judges from section
Whether point received signal strength is lower than preset signal strength threshold value, when some is strong lower than preset signals from node received signal strength
When degree threshold value, scanning is terminated, it is assumed that the scanning moment of termination at this time is scanned the moment for host node with D transmission rate, then at this time
The corresponding host node transmission rate of one scanning of scanning, i.e. C transmission rate before can recorde down.
S600: the transmission rate of ad-hoc network is set according to scanning result.
Phase when occurring from node received signal strength lower than preset signal strength threshold condition is recorded in scanning result
Data are closed, specifically, essential record occurs the sweeping lower than preset signal strength threshold condition from node received signal strength
The corresponding transmission rate of previous scanning retouched and (terminate scanning).Continue for examples detailed above, record has C in scanning result
C transmission rate is set as the transmission rate of ad-hoc network by transmission rate.
S800: being in real time monitored transmission rate ad-hoc network adjusted, carries out handling simultaneously root when an abnormality is discovered
It is safeguarded according to default maintenance period.
Transmission rate ad-hoc network adjusted is monitored in real time, mainly includes that abnormal conditions carry out and according to default
Maintenance period carries out two aspects of maintenance.Specifically, refer to the slave node that there is net in ad-hoc network extremely, illustrate this
When ad-hoc network existing defects, can not normally realize its function, need to upload abnormal conditions and handled.
The method that the present invention promotes LoRa network communication rate carries out networking to LoRa network, obtains ad-hoc network, scanning
Network transmission speed channel in ad-hoc network, and scanning result is obtained according to preset signal strength threshold value, it is set according to scanning result
Determine the transmission rate of ad-hoc network, transmission rate ad-hoc network adjusted is monitored in real time, is carried out when an abnormality is discovered
It handles and is safeguarded according to default maintenance period.In whole process, according to network transmission speed channel in scanning ad-hoc network
Scanning result, rationally be arranged LoRa network transmission rate, can effectively promote LoRa network communication rate.
Specifically, transmission rate ad-hoc network adjusted is monitored in real time, is handled when an abnormality is discovered
Comprising steps of
Step 1: being in real time monitored transmission rate ad-hoc network adjusted, when detect fall to net from node when, needle
The scanning of transmission rate from low to high is carried out to the slave node for falling net.
Step 2: when pawning the slave node received signal strength indication of net lower than preset signal strength threshold value, scanning is terminated.
Step 3: the previous transmission rate for scanning corresponding transmission rate and being switched to ad-hoc network of scanning will be terminated.
Persistently ad-hoc network is monitored, falls net if having detected from node, carries out transmission rate for this single node
It scans, transmission rate from low to high, needs to guarantee that this node received signal strength indication is higher than threshold values in scanning process.When this node
Received signal strength indication terminates to scan when being lower than threshold values, and the transmission rate of previous scanning is switched to the transmission of whole network
Rate.
Specifically, the step of being safeguarded according to default maintenance period include:
When reaching timed maintenance time point, the step of returning and carry out networking to LoRa network, obtain ad-hoc network.
If the timed maintenance time arrives, effective networking is completed again to network initiation, after completing effective networking, according to setting
Signal strength threshold values is scanned network transmission speed channel, according to the result setting network communications rate of scanning.
In order to further explain in detail the technical solution that the present invention promotes the method for LoRa network communication rate, below will
Detailed explanation is carried out in conjunction with Fig. 3.
As shown in figure 3, the method that the present invention promotes LoRa network communication rate in one of the embodiments, is specifically wrapped
It includes:
Step 1: host node confirms network from node white list.
Step 2: setting host node transmission rate to be minimum, wherein it is minimum refer to meet network communication and networking function item
Minimum under part.
Step 3: carrying out networking, networking success then continues step 4, and otherwise setting network transmission rate is minimum transmission speed
Rate reports an error to main website.
Step 4: obtaining (setting) network received signal intensity threshold value.
Step 5: scan transfer speed channel from low to high.
Step 6: judging have lower than threshold value from node received signal strength? otherwise 5 are re-execute the steps, is, is executed
Step 7.
Step 7: terminating scanning, scanning is previous to scan corresponding transmission rate setting network transmission rate according to terminating.
Step 8: completing networking adaptation rate.
Step 9: having detected after completion step 8 from node and fallen net, continued to execute step 10.
Step 10: single node transmission rate is scanned from low to high, continues to execute step 11.
Step 11: judging that single node receives whether signal is lower than threshold value, otherwise re-execute the steps 10, is, continues to execute
Step 12.
Step 12: switching whole network transmission rate.
Step 13: after completing step 8, the network operation time is arrived, and jumps to step 1 execution.
As shown in figure 4, a kind of system for promoting LoRa network communication rate, comprising:
Networking module 200 obtains ad-hoc network for carrying out networking to LoRa network.
Scan module 400, for scanning network transmission speed channel in ad-hoc network, and according to preset signal strength threshold value
Obtain scanning result.
Transmission rate setting module 600, for setting the transmission rate of ad-hoc network according to scanning result.
Monitoring modular 800, for being monitored in real time to transmission rate ad-hoc network adjusted, when an abnormality is discovered into
Row is handled and is safeguarded according to default maintenance period.
The system that the present invention promotes LoRa network communication rate, networking module 200 carry out networking, acquisition group to LoRa network
Net network, scan module 400 scans network transmission speed channel in ad-hoc network, and is swept according to preset signal strength threshold value
It retouches as a result, transmission rate setting module 600 sets the transmission rate of ad-hoc network according to scanning result, monitoring modular 800 is real-time
Transmission rate ad-hoc network adjusted is monitored, handled when an abnormality is discovered and is carried out according to default maintenance period
Maintenance.In whole process, according to the scanning result in network transmission speed channel in scanning ad-hoc network, LoRa network is rationally set
Transmission rate, can effectively promote LoRa network communication rate.
As shown in figure 5, networking module 200 includes: in one of the embodiments,
Searching unit 220, for traversing LoRa network, search host node in LoRa network with from node, and obtain from
Node white list.
Determination unit 240, for determining the slave node for needing to scan according to from node white list.
Group net unit 260, for setting host node transmission rate to meet under the conditions of network communication and networking function most
Low value carries out networking, obtains ad-hoc network.
As shown in figure 5, scan module 400 includes: in one of the embodiments,
Threshold value acquiring unit 420, for obtaining preset signal strength threshold value.
Search unit 440 scans network transmission speed channel with transmission rate for controlling host node from low to high, and according to
The secondary each slave node that need to be scanned of search.
Scanning element 460, for when some is lower than preset signal strength threshold value from node received signal strength, termination to be swept
It retouches.
Transmission rate setting module 600 will terminate the corresponding transmission rate of the previous scanning of scanning and be set as ad-hoc network
Transmission rate.
Monitoring modular 800 includes: in one of the embodiments,
Fall net detection unit, for being monitored in real time to transmission rate ad-hoc network adjusted, when detecting from section
Point falls when netting, and carries out the scanning of transmission rate from low to high for the slave node for falling net.
Processing unit terminates when for pawning the slave node received signal strength indication of net lower than preset signal strength threshold value
Scanning.
Switch unit, for the transmission speed for scanning the corresponding transmission rate of previous scanning and being switched to ad-hoc network will to be terminated
Rate.
Monitoring modular 800 in one of the embodiments, further include:
Return unit, for when reaching timed maintenance time point, control networking module 100 to be re-executed to LoRa network
Networking is carried out, the operation of ad-hoc network is obtained.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.