CN111405566A - L ora standard-based node and base station private communication protocol system and method thereof - Google Patents

L ora standard-based node and base station private communication protocol system and method thereof Download PDF

Info

Publication number
CN111405566A
CN111405566A CN202010155353.4A CN202010155353A CN111405566A CN 111405566 A CN111405566 A CN 111405566A CN 202010155353 A CN202010155353 A CN 202010155353A CN 111405566 A CN111405566 A CN 111405566A
Authority
CN
China
Prior art keywords
base station
communication
node
ora
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010155353.4A
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.)
Milkyway Chemical Supply Chain Service Co ltd
Original Assignee
Milkyway Chemical Supply Chain Service 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 Milkyway Chemical Supply Chain Service Co ltd filed Critical Milkyway Chemical Supply Chain Service Co ltd
Priority to CN202010155353.4A priority Critical patent/CN111405566A/en
Publication of CN111405566A publication Critical patent/CN111405566A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/02Resource partitioning among network components, e.g. reuse partitioning
    • H04W16/10Dynamic resource partitioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W60/00Affiliation to network, e.g. registration; Terminating affiliation with the network, e.g. de-registration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A method for utilizing L ora standard to communicate with private node and base station includes waking up node, starting communication, checking whether to register to base station, obtaining address of base station directly to prepare communication obtaining token if it is not registered, initializing node, entering network domain to broadcast, binding base station in network domain to broadcast, obtaining address of base station again directly to prepare communication obtaining token if it is connected to base station, uploading obtained data to complete communication protocol, obtaining next time of waking up time slice updating time after said steps are completed, utilizing simple and reliable communication model to support large number of communication nodes, using multiple frequency bands reasonably and raising communication efficiency.

Description

L ora standard-based node and base station private communication protocol system and method thereof
Technical Field
The invention relates to the technical field of communication protocol monitoring, in particular to a self-owned communication protocol system and a self-owned communication protocol method for monitoring data transmission of a dangerous goods sensor based on a wireless network.
Background
L oRa is a low-power consumption local area network wireless standard created by Semtech corporation. L oRa is named as long-distance Radio (L ong Range Radio), and has the biggest characteristic that the distance of the Radio is longer than that of other wireless modes under the same power consumption condition, the unification of low power consumption and long distance is realized, and the distance of the Radio is enlarged by 3-5 times than that of the traditional wireless Radio frequency communication under the same power consumption condition.
L oRa characterization
Transmission distance: the town can reach 2-5Km, and the suburban area can reach 15 Km.
The working frequency is as follows: the ISM band includes 433, 868, 915MH, etc.
The standard is as follows: IEEE 802.15.4 g.
Modulation mode: based on spread spectrum technology, a variant of the linear modulation spread spectrum (CSS), with Forward Error Correction (FEC) capability, semtech proprietary patent technology.
Capacity one L oRa gateway can connect thousands of L oRa nodes.
Battery life: for up to 10 years.
Safety: AES128 encryption.
Transmission rate: hundreds to tens of Kbps, the lower the rate, the longer the transmission distance.
At present, main L ora communication systems are all communication between a L ora WAN gateway and a L ora node, a L ora WAN general communication protocol is bulky and complex in protocol stack and relatively low in communication efficiency in order to support various different scenes, in addition, the general L ora gateway is relatively expensive in price, and different types of gateways can have problems in mutual communication.
Disclosure of Invention
The present invention is directed to a node and base station private communication protocol system based on L ora standard and a method thereof, so as to solve the problems in the background art.
In order to achieve the above purpose, the invention provides a private communication protocol system of a node and a base station based on L ora standard and a method thereof, the method comprises the following steps:
s1: firstly, awakening a node, and then starting to prepare for communication;
s2: checking whether the base station is registered;
s3: if the base station address is registered, directly acquiring a base station address preparation communication acquisition token, if the base station address is not registered, initializing a node, then entering the network domain for broadcasting, broadcasting and binding the base station in the network domain, and directly acquiring the base station address preparation communication acquisition token again;
s4: after the steps are completed, checking whether the base station is connected or not, if the base station is not connected, checking whether the connection error reaches the broad value or not, if the connection error does not reach the broad value, initializing the node, then entering the domain for broadcasting, binding the base station in the domain, and directly acquiring the address of the base station again to prepare for communication acquisition tokens; if the connection error does not reach the broad value, whether the base station is connected or not can be continuously checked, if the base station is not connected, the steps are repeated, and if the base station is connected, the following steps are continued;
s5: after the base station is connected, the obtained data is uploaded to complete the communication protocol;
s6: after the steps are completed, the next time of awakening the time slice updating is required to be obtained;
and S7, when the next wake-up time slice updating time is obtained, the node starts to sleep.
Furthermore, the node communicates with the base station for the first time, registration needs to be completed first, and each node can only register to one base station and occupy one communication frequency band at the same time.
Further, the base station dynamically allocates communication time slices, frequency bands and tokens according to all activated nodes at present, and automatically updates the next communication time and updates the tokens after each communication is completed.
Further, the base station dynamically allocates communication time slices, frequency bands and tokens according to all activated nodes at present, and automatically updates the next communication time and updates the tokens after each communication is completed.
The system of claim 1, wherein the node communicates with the base station by using L ora standard, and the method comprises completing data interaction based on the allocated time slice and token.
Further, if the communication is abnormal, the node repeatedly submits the communication request in a period until the base station responds. If the base station does not respond to the node within the designated time, the node enters a communication initialization mode, clears the connection information with the base station and enters a registration state again.
Further, the method for transmitting data of multiple communication frequency bands by the node comprises the following steps:
s1: the base station detects the current transmission flux of the first communication frequency band;
s2: when the current transmission flux of the first frequency band is larger than a transmission flux threshold value;
s3: starting and selecting a second communication frequency band;
s4: enabling and selecting the third communication band when the current traffic flow of the second band is greater than a traffic flow threshold.
Further, when the first, second and third communication frequency bands are simultaneously enabled, the base station dynamically allocates the new nodes to register to different frequency bands through a built-in flow balance algorithm, so that the communication quantity between the frequency bands is kept balanced. And through a heartbeat detection algorithm, node communication is kept effective, fault interfaces are dynamically filtered, and communication frequency band tokens are recycled.
Compared with the prior art, the invention has the beneficial effects that:
1. the simple and reliable communication model can support a large number of communication nodes;
2. a plurality of frequency bands are reasonably used, and the communication efficiency is improved;
3. the node and the base station are plug and play.
Drawings
Fig. 1 is a system block diagram of a node and base station private communication protocol system and method thereof based on L ora standard according to the present invention.
The reference numerals are explained below:
in the figure: 1. a node; 2. and a base station.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments, and all other embodiments obtained by a person of ordinary skill in the art without creative efforts based on the embodiments of the present invention belong to the protection scope of the present invention.
To facilitate an understanding of the invention, the invention will now be described more fully with reference to the accompanying drawings. Several embodiments of the invention are presented in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "secured to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. The terms "vertical," "horizontal," "left," "right," and the like as used herein are for illustrative purposes only.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
Referring to fig. 1, the present invention provides a technical solution:
a L ora standard-based node and base station private communication protocol system and a method thereof are characterized in that the method comprises the following steps:
s1: firstly, waking up a node 1, and then starting to prepare for communication;
s2: checking whether the base station 2 is registered;
s3: if the base station 2 address is judged to be registered, directly acquiring the base station 2 address to prepare the communication acquisition token, if the base station 2 address is not registered, initializing the node 1, then entering the network domain for broadcasting, broadcasting and binding the base station 2 in the network domain, and directly acquiring the base station 2 address again to prepare the communication acquisition token;
s4: after the steps are completed, whether the base station 2 is connected or not is checked, if the base station 2 is not connected, whether the connection error reaches the broad value or not needs to be checked, if the connection error does not reach the broad value, the node 1 is initialized, then the node enters the domain for broadcasting, the base station 2 is broadcasted and bound in the domain, and the address of the base station 2 is directly acquired again to prepare for communication acquisition tokens; if the connection error has not reached the broad value, it can continue to check whether to connect to the base station 2, if not, repeat the above steps, if connect to the base station 2, continue the following steps;
s5: after the base station 2 is connected, the obtained data is uploaded to complete the communication protocol;
s6: after the steps are completed, the next time of awakening the time slice updating is required to be obtained;
and S7, when the next wake-up time slice updating time is obtained, the node 1 starts to sleep.
Further, the node 1 communicates with the base station 2 for the first time, registration needs to be completed first, and each node 1 can only register to one base station 2 and occupy one communication frequency band at the same time.
Further, the base station 2 dynamically allocates communication time slices, frequency bands and tokens according to all currently activated nodes 1, and automatically updates the next communication time and updates the tokens after each communication is completed.
Further, the base station 2 dynamically allocates communication time slices, frequency bands and tokens according to all currently activated nodes 1, and automatically updates the next communication time and updates the tokens after each communication is completed.
Further, when the node 1 communicates with the base station 2, data interaction is completed based on the allocated time slice and the token. And after the communication is finished, the node 1 enters a dormant period, waits for the next time slice and communicates again.
Further, if the communication is abnormal, the node 1 repeatedly submits the communication request within a period until the base station 2 responds. If the base station 2 does not respond to the node 1 within the designated time, the node 1 enters a communication initialization mode, clears the connection information with the base station 2 and enters a registration state again.
Further, the method for transmitting data in multiple communication frequency bands of the node 1 comprises the following steps:
s1: the base station 2 detects the current transmission flux of the first communication frequency band;
s2: when the current transmission flux of the first frequency band is larger than a transmission flux threshold value;
s3: starting and selecting a second communication frequency band;
s4: enabling and selecting the third communication band when the current traffic flow of the second band is greater than a traffic flow threshold.
Further, when the first, second and third communication frequency bands are simultaneously enabled, the base station 2 dynamically allocates the new node 1 to register to each different frequency band through a built-in flow balance algorithm, so that the communication volume between the frequency bands is kept balanced. And the communication of the node 1 is kept effective through a heartbeat detection algorithm, a fault interface is dynamically filtered, and a communication frequency band token is recycled.
The working principle is as follows: firstly, waking up a node 1, and then starting to prepare for communication; checking whether the base station 2 is registered; if the base station 2 address is judged to be registered, directly acquiring the base station 2 address to prepare the communication acquisition token, if the base station 2 address is not registered, initializing the node 1, then entering the network domain for broadcasting, broadcasting and binding the base station 2 in the network domain, and directly acquiring the base station 2 address again to prepare the communication acquisition token; after the steps are completed, whether the base station 2 is connected or not is checked, if the base station 2 is not connected, whether the connection error reaches the broad value or not needs to be checked, if the connection error does not reach the broad value, the node 1 is initialized, then the node enters the domain for broadcasting, the base station 2 is broadcasted and bound in the domain, and the address of the base station 2 is directly acquired again to prepare for communication acquisition tokens; if the connection error has not reached the broad value, it can continue to check whether to connect to the base station 2, if not, repeat the above steps, if connect to the base station 2, continue the following steps; after the base station 2 is connected, the obtained data is uploaded to complete the communication protocol; after the steps are completed, the next time of awakening the time slice updating is required to be obtained; and when the next time of awakening the time slice updating time is acquired, the node 1 starts to sleep.
The foregoing illustrates and describes the principles, general features, and advantages of the present invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (8)

1. A L ora standard-based node and base station private communication protocol system and a method thereof are characterized in that the method comprises the following steps,
s1: firstly, awakening a node (1) and then starting to prepare for communication;
s2: checking whether the base station (2) is registered;
s3: if the base station (2) is registered, directly acquiring the address of the base station (2) to prepare a communication acquisition token, if the base station is not registered, initializing the node (1), then entering the network domain to broadcast, broadcasting and binding the base station (2) in the network domain, and directly acquiring the address of the base station (2) again to prepare the communication acquisition token;
s4: after the steps are completed, checking whether the base station (2) is connected or not, if the base station (2) is not connected, checking whether the connection error reaches the broad value or not, if the connection error does not reach the broad value, initializing the node (1), then entering the domain for broadcasting, broadcasting and binding the base station (2) in the domain, and directly acquiring the address of the base station (2) again to prepare a communication acquisition token; if the connection error has not reached the value broad, it can be continued to check whether to connect to the base station (2), if not to connect to the base station (2) and repeat the above steps,
if connected to the base station (2), continuing the following steps;
s5: after the base station (2) is connected, the obtained data is uploaded to complete the communication protocol;
s6: after the steps are completed, the next time of awakening the time slice updating is required to be obtained;
and S7, when the next wake-up time slice updating time is obtained, the node (1) starts to sleep.
2. The L ora-based private communication protocol system for nodes and base stations and the method thereof according to claim 1, wherein the node (1) communicates with the base station (2) for the first time, and the registration is completed first, and each node (1) can register to only one base station (2) and occupy one communication band at the same time.
3. The L ora-based node and base station private communication protocol system and the method thereof according to claim 1, wherein the base station (2) dynamically allocates communication time slices, frequency bands and tokens according to all currently active nodes (1), and automatically updates the next communication time and updates the tokens after each communication is completed.
4. The L ora-based node and base station private communication protocol system and the method thereof according to claim 1, wherein the base station (2) dynamically allocates communication time slices, frequency bands and tokens according to all currently active nodes (1), and automatically updates the next communication time and updates the tokens after each communication is completed.
5. The L ora-based private communication protocol system for nodes and base stations and the method thereof according to claim 1, wherein when the node (1) communicates with the base station (2), the data interaction is completed based on the allocated time slice and token, and when the communication is over, the node (1) enters a sleep period to wait for the next time slice and communicates again.
6. The L ora standard-based node and base station private communication protocol system and the method thereof according to claim 1, wherein if the communication is abnormal, the node (1) repeatedly submits the communication request within a period until the base station (2) responds, if the base station (2) does not respond to the node (1) within a specified time, the node (1) enters a communication initialization mode, clears the connection information with the base station (2), and re-enters the registration state.
7. The L ora standard-based node and base station private communication protocol system and the method thereof as claimed in claim 1, wherein the node (1) multi-communication band data transmission method comprises the following steps:
s1: the base station (2) detects the current transmission flux of the first communication frequency band;
s2: when the current transmission flux of the first frequency band is larger than a transmission flux threshold value;
s3: starting and selecting a second communication frequency band;
s4: enabling and selecting the third communication band when the current traffic flow of the second band is greater than a traffic flow threshold.
8. The L ora standard-based private communication protocol system and method for a node (1) and a base station (2) as claimed in claim 7, wherein when the first and second communication bands are enabled simultaneously, the base station (2) dynamically allocates the new node (1) to register to different bands by using a built-in traffic balancing algorithm, so as to keep the communication traffic between the bands balanced, and keeps the communication of the node (1) effective by using a heartbeat detection algorithm, dynamically filters the failed interface, and recovers the communication band token.
CN202010155353.4A 2020-03-09 2020-03-09 L ora standard-based node and base station private communication protocol system and method thereof Pending CN111405566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010155353.4A CN111405566A (en) 2020-03-09 2020-03-09 L ora standard-based node and base station private communication protocol system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010155353.4A CN111405566A (en) 2020-03-09 2020-03-09 L ora standard-based node and base station private communication protocol system and method thereof

Publications (1)

Publication Number Publication Date
CN111405566A true CN111405566A (en) 2020-07-10

Family

ID=71413288

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010155353.4A Pending CN111405566A (en) 2020-03-09 2020-03-09 L ora standard-based node and base station private communication protocol system and method thereof

Country Status (1)

Country Link
CN (1) CN111405566A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935278A (en) * 2020-08-07 2020-11-13 深圳市地质局 Data acquisition system and method based on LoRa dual-band gateway and nodes
CN113110114A (en) * 2021-05-24 2021-07-13 北京润科通用技术有限公司 Scheduling method and device for super real-time joint simulation
CN113853010A (en) * 2021-08-17 2021-12-28 广州磐钴智能科技有限公司 Method for realizing 8-channel LoRa communication base station

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111935278A (en) * 2020-08-07 2020-11-13 深圳市地质局 Data acquisition system and method based on LoRa dual-band gateway and nodes
CN113110114A (en) * 2021-05-24 2021-07-13 北京润科通用技术有限公司 Scheduling method and device for super real-time joint simulation
CN113110114B (en) * 2021-05-24 2023-07-14 北京润科通用技术有限公司 Scheduling method and device for super-real-time joint simulation
CN113853010A (en) * 2021-08-17 2021-12-28 广州磐钴智能科技有限公司 Method for realizing 8-channel LoRa communication base station
CN113853010B (en) * 2021-08-17 2023-06-20 广州磐钴智能科技有限公司 Implementation method of 8-channel LoRa communication base station

Similar Documents

Publication Publication Date Title
CN111405566A (en) L ora standard-based node and base station private communication protocol system and method thereof
CN201897884U (en) Intelligent parking lot management device based on ZigBee wireless sensor network
CN100573383C (en) Intelligent home control system based on phone and ZigBee technology
CN104539315B (en) Rapid networking method for power line carrier communication
CN208850076U (en) NB-IoT-based indoor environment monitoring system
CN102457877B (en) In conjunction with network, the method processing WSN terminal processes data and WSN gateway
CN106600941A (en) Low-power-consumption wireless ad-hoc network meter reading system
Le et al. Ultra low power asynchronous MAC protocol using wake-up radio for energy neutral WSN
CN111193530A (en) Communication system and method for converting high-speed carrier waves of low-voltage power line into Bluetooth
Trinh et al. Design of automatic irrigation system for greenhouse based on LoRa technology
CN105323832A (en) Information interaction method, device and system of WBAN (wireless body area network)
CN111245710A (en) Intelligent gateway based on LoRa and data communication management method thereof
CN105934976A (en) Sleeping and awakening method and apparatus for master-slave network, and power-saving system for master-slave network
US9155102B2 (en) Speed frame exchange within single user, multiple user, multiple access, and/or MIMO wireless communications
CN207166796U (en) A kind of bus duct temperature acquisition gateway based on NB IoT and LoRa
CN103490509B (en) The electric energy monitoring system of household electrical appliance
CN110012112A (en) A kind of group network system of the terminal device based on Internet of Things
CN106255178A (en) The method of advertising service and configuration in wireless network
CN105282690A (en) ISM low-speed Internet-of-things communication system and communication method thereof
CN202495961U (en) Internet of things smart home system based on ZigBee
CN114866976A (en) Intelligent sensing terminal device and method based on LoRa ad hoc network
CN102196465A (en) Management method and system for WSN (wireless sensor network)
CN206294351U (en) Repeater disposes device and Internet of things system
CN208540180U (en) A kind of base station LoRaWAN and communication system
CN107124691A (en) A kind of WiFi intelligent cut-in methods of low-power consumption bluetooth auxiliary

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination