CN110337071B - Method and system for realizing packet broadcasting based on LoRaWAN - Google Patents

Method and system for realizing packet broadcasting based on LoRaWAN Download PDF

Info

Publication number
CN110337071B
CN110337071B CN201910456439.8A CN201910456439A CN110337071B CN 110337071 B CN110337071 B CN 110337071B CN 201910456439 A CN201910456439 A CN 201910456439A CN 110337071 B CN110337071 B CN 110337071B
Authority
CN
China
Prior art keywords
lorawan
identity
multicast
broadcast
server
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
CN201910456439.8A
Other languages
Chinese (zh)
Other versions
CN110337071A (en
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.)
Xiamen Ruiqi Iot Technology Co Ltd
Original Assignee
Xiamen Ruiqi Iot Technology 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 Xiamen Ruiqi Iot Technology Co Ltd filed Critical Xiamen Ruiqi Iot Technology Co Ltd
Priority to CN201910456439.8A priority Critical patent/CN110337071B/en
Publication of CN110337071A publication Critical patent/CN110337071A/en
Application granted granted Critical
Publication of CN110337071B publication Critical patent/CN110337071B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/03Protecting confidentiality, e.g. by encryption
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • H04W4/08User group management
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Multimedia (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a method and a system for realizing packet broadcasting based on LoRaWAN, wherein the method comprises the following steps: each LoRaWAN terminal node is preset with a plurality of identities; the plurality of identities comprise a unicast identity, a broadcast identity and at least one reserved multicast identity; each LoRaWAN terminal node reports a multicast identity to a LoRaWAN server and monitors a configuration request of the LoRaWAN server; the LoRaWAN server performs multicast configuration storage and configuration release management; the LoRaWAN server sends broadcast messages to LoRaWAN end nodes to configure the multicast identities of the LoRaWAN end nodes. The invention can synchronously carry out data downlink and setting on a plurality of terminal nodes at the same time, thereby realizing broadcast control and multicast control.

Description

Method and system for realizing packet broadcasting based on LoRaWAN
Technical Field
The invention relates to the technical field of LoRaWAN, in particular to a method and a system for realizing packet broadcasting based on LoRaWAN.
Background
In the standard of the CLASS C/CLASS B mode based on LoRaWAN, the data downlink of the server can only be downlink for a single terminal node, and can not be downlink for a plurality of terminal nodes simultaneously. Because synchronous receiving can not be realized when a plurality of terminal nodes are descending, the existing mode generally sequentially sends data to different terminal nodes or sends a delay mechanism to the descending of each terminal node, but the efficiency is low, the real-time performance is poor, and data synchronization can not be realized.
In order to solve the shortages of LoRaWAN at present, the downlink of data capable of performing multipoint simultaneous control on terminal nodes can be realized in a CLASS C/CLASS B mode, a mechanism of multiple identities for each node can be adopted, that is, each node has multiple own "identities", one is used for original single node communication, and the other is newly added for broadcast node communication.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a method and a system for realizing packet broadcasting based on LoRaWAN (LoRaWAN). the same data is synchronously downlink to a plurality of terminal nodes to realize broadcast control and multicast control.
The technical scheme adopted by the invention for solving the technical problems is as follows:
in one aspect, a method for implementing packet broadcasting based on LoRaWAN includes:
each LoRaWAN terminal node is preset with a plurality of identities; the plurality of identities comprise a unicast identity, a broadcast identity and at least one reserved multicast identity; each identity comprises a device address DevAddr, NwkSKey used for data frame verification and AppSKey used for data frame encryption; the equipment address of the unicast identity of each LoRaWAN terminal node is different; the broadcast identity equipment addresses of all LoRaWAN terminal nodes are the same;
each LoRaWAN terminal node reports a multicast identity to a LoRaWAN server and monitors a configuration request of the LoRaWAN server; the LoRaWAN server performs multicast configuration storage and configuration release management;
the LoRaWAN server sends broadcast messages to LoRaWAN end nodes to configure the multicast identities of the LoRaWAN end nodes.
Preferably, the sending, by the LoRaWAN server, a broadcast message to the LoRaWAN end node to configure the multicast identity of the LoRaWAN end node includes:
the LoRaWAN server sends a broadcast message to the LoRaWAN terminal node; the equipment address of the broadcast message is filled as the equipment address of the broadcast identity; the MAC layer load FRMPayload of the broadcast message comprises a unicast identity device address of a LoRaWAN terminal node needing multicast and a device address of multicast identity to be set;
receiving the broadcast message by the LoRaWAN terminal node, judging whether the equipment address of the broadcast message is the equipment address of the broadcast identity, and if so, judging whether the FRMPayload field comprises the equipment address of the unicast identity; and if so, acquiring the equipment address of the corresponding multicast identity.
Preferably, before the determining, by the LoRaWAN terminal node, whether the device address of the broadcast message is the device address of the broadcast identity, the method further includes:
judging whether the equipment address of the broadcast message is the equipment address of the unicast identity of the equipment address, if so, indicating that the received message is the unicast message, and responding to a corresponding request; if not, judging whether the equipment address of the broadcast message is the equipment address of the broadcast identity.
Preferably, the reporting of the multicast identity to the LoRaWAN server by the LoRaWAN terminal node includes:
when the terminal node is restarted or initialized, the current multicast identity is reported to a LoRaWAN server by a unicast identity;
the message for reporting the multicast identity by the terminal node comprises the address of the multicast identity, NwkSKey for data verification and AppSKey for data frame encryption.
Preferably, the configuration storage and configuration release management of the multicast performed by the LoRaWAN server includes:
the LoRaWAN server receives a broadcast group creating request and adds any LoRaWAN terminal node into any broadcast group;
the LoRaWAN server stores the mapping relation between the terminal nodes and the broadcast groups according to the setting of the broadcast groups;
and the LoRaWAN server monitors the multicast identity report of the terminal node, updates the state in the broadcast group in real time, and determines the multicast configuration message to be issued by combining the mapping relation.
Preferably, in the process of message interaction between the LoRaWAN server and the LoRaWAN terminal node, NwkSKey for data frame verification and appkey for data frame encryption are both encrypted or decrypted using AES 128.
In another aspect, a system for implementing packet broadcasting based on LoRaWAN includes: a plurality of LoRaWAN terminal nodes and LoRaWAN servers;
each LoRaWAN terminal node is preset with a plurality of identities; the plurality of identities comprise a unicast identity, a broadcast identity and at least one reserved multicast identity; each identity comprises a device address DevAddr, NwkSKey used for verifying the data frame and AppSKey used for encrypting the data frame; the equipment address of the unicast identity of each LoRaWAN terminal node is different; the broadcast identity equipment addresses of all LoRaWAN terminal nodes are the same;
the LoRaWAN terminal node and LoRaWAN server interaction method comprises the following steps:
each LoRaWAN terminal node reports a multicast identity to a LoRaWAN server and monitors a configuration request of the LoRaWAN server; and the LoRaWAN server updates the multicast identity state and the multicast configuration command set.
The LoRaWAN server LoRaWAN terminal nodes send broadcast messages to configure the multicast identities of the LoRaWAN terminal nodes.
Preferably, the sending, by the LoRaWAN server, a broadcast message to the LoRaWAN end node to configure the multicast identity of the LoRaWAN end node includes:
the LoRaWAN server sends a broadcast message to the LoRaWAN terminal node; the equipment address of the broadcast message is filled as the equipment address of the broadcast identity; the MAC layer load FRMPayload of the broadcast message comprises a continuous data group consisting of a unicast identity device address of a LoRaWAN terminal node needing multicasting and a device address of multicast identity to be set;
receiving the broadcast message by the LoRaWAN terminal node, judging whether the equipment address of the broadcast message is the equipment address of the broadcast identity, and if so, judging whether the FRMPayload field comprises the equipment address of the unicast identity; and if so, acquiring the equipment address of the corresponding multicast identity.
Preferably, the system further comprises: one or more LoRaWAN gateway devices; the LoRaWAN gateway is arranged between the LoRaWAN terminal node and the LoRaWAN server and is respectively connected with the LoRaWAN terminal node and the LoRaWAN server to realize message forwarding.
Preferably, if the LoRaWAN gateway device comprises a plurality of LoRaWAN gateway devices, the LoRaWAN server intermittently transmits the LoRaWAN gateway device in a preset delay mode so as to avoid frequency point collision.
The invention has the following beneficial effects:
(1) the invention relates to a method and a system for realizing packet broadcasting based on LoRaWAN.A LoRaWAN terminal node performs broadcasting configuration to a LoRaWAN server by presetting the same broadcasting identity, so that the LoRaWAN server can synchronously perform data downloading and setting on a plurality of terminal nodes;
(2) the invention relates to a method and a system for realizing packet broadcasting based on LoRaWAN.A LoRaWAN server rapidly configures multicast identity of LoRaWAN terminal nodes by sending broadcast messages to the LoRaWAN terminal nodes, thereby realizing dynamic grouping of the terminal nodes, sending multicast messages to a group of LoRaWAN terminal nodes through the multicast identity, and realizing differential control of each group of terminal nodes; compared with a unicast configuration mode, the method can dynamically allocate a batch of terminal nodes in a broadcast mode, so that the probability of packet loss caused by frequency point collision is reduced, and the configuration efficiency is improved;
(3) the invention relates to a method and a system for realizing packet broadcasting based on LoRaWAN.A same LoRaWAN terminal node can configure a plurality of multicast identities through broadcast messages, thereby forming a plurality of groups with different other LoRaWAN terminal nodes, and realizing independent control of each group;
(4) according to the method and the system for realizing the block broadcasting based on the LoRaWAN, the node side of the LoRaWAN terminal utilizes the AES128 with the MAC to encrypt, multiple identities share the encryption, so that the resource consumption can be saved, and the data security problem is guaranteed; the LoRaWAN terminal node uses the same AES128 encryption means, each multicast identity has independent safety guarantee, and after receiving the response parameter designed by the LoRaWAN server in the configuration identity message, the LoRaWAN terminal node can automatically delay and report the identity by channel alternation according to the parameter so as to respond to the server, so that the success rate and the efficiency of the whole configuration closed loop are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart of a method for implementing packet broadcasting based on LoRaWAN according to an embodiment of the present invention;
fig. 2 is a schematic diagram illustrating a flow of a terminal node reporting a multicast identity and a server updating a broadcast group state according to an embodiment of the present invention;
fig. 3 is a flow chart illustrating a process of creating and managing a broadcast group by a server according to an embodiment of the present invention;
fig. 4 is a flowchart of a server issuing a multicast configuration message by broadcasting according to an embodiment of the present invention;
fig. 5 is a detailed structure diagram of a multicast configuration command set according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a frame structure of a LoRaWAN message in which a LoRaWAN server transmits a broadcast message to a LoRaWAN terminal node to configure a multicast identity according to an embodiment of the present invention;
fig. 7 is a frame structure diagram of a LoRaWAN server sending a downlink LoRaWAN message by multicast identity according to an embodiment of the present invention;
fig. 8 is a system block diagram of an embodiment of the invention.
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 of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, in one aspect, the present invention provides a method for implementing packet broadcasting based on LoRaWAN, including:
s101, presetting a plurality of identities for each LoRaWAN terminal node; the plurality of identities comprise a unicast identity, a broadcast identity and at least one reserved multicast identity; each identity comprises a device address DevAddr, NwkSKey used for data frame verification and AppSKey used for data frame encryption; the equipment address of the unicast identity of each LoRaWAN terminal node is different; the broadcast identity equipment addresses of all LoRaWAN terminal nodes are the same;
s102, each LoRaWAN terminal node reports a multicast identity to a LoRaWAN server and monitors a configuration request of the LoRaWAN server; the LoRaWAN server updates the multicast identity state and the multicast configuration command set;
s103, the LoRaWAN server sends broadcast messages to the LoRaWAN terminal nodes to configure the multicast identities of the LoRaWAN terminal nodes.
Specifically, referring to fig. 2, reporting a multicast identity to a LoRaWAN server and monitoring a configuration request of the server by a LoRaWAN terminal node includes:
the LoRaWAN terminal node starts monitoring broadcast and multicast messages.
The LoRaWAN terminal node sends self multicast identity information to the LoRaWAN server in a unicast identity; the multicast identity information comprises a device address DevAddr of the multicast identity, NwkSKey used for data frame verification and AppSKey used for data frame encryption.
It should be noted that, if the device address of the multicast identity of the LoRaWAN terminal node is not configured by the LoRaWAN server, the device address sent by the LoRaWAN terminal node to the LoRaWAN server is an initialized address; otherwise, the address is the previously configured device address.
Specifically, the updating of the multicast identity state and the multicast configuration command set by the LoRaWAN server includes:
the server receives self multicast identity information reported by the unicast identity of the node, compares the self multicast identity information with the broadcast group state configured by the user at the server, if the self multicast identity information is inconsistent with the broadcast group state configured by the user at the server, the server adds a multicast configuration command needing to be updated into a command set sent by the broadcast, and if the self multicast identity information is consistent with the broadcast group state, the server is regarded as that the terminal node and the server are kept synchronous without further setting.
For example, a broadcast group a with a multicast address of 00000001 is stored in the LoRaWAN server, where the broadcast group a includes the LoRaWAN end node 1, and if the multicast identity reported by the LoRaWAN end node 1 to the LoRaWAN server is the multicast address 00000001 of the broadcast group a, it indicates that the actual configuration of the current device 1 is consistent with the server, that is, in a synchronous state, otherwise, it indicates that the configuration is inconsistent.
Specifically, before the LoRaWAN server updates the multicast identity status and the multicast configuration command set, the method further includes:
creating and managing a broadcast group, and setting the identity and a corresponding key of the broadcast group;
adding LoRaWAN terminal nodes into a broadcast group, and performing relational mapping storage on the unicast identities of the nodes needing to be added into the broadcast group and the broadcast group identities;
specifically, when a broadcast group is created and managed, dynamic deletion and addition of terminal nodes will also trigger the change of the expected broadcast identity, and in order to further perform configuration synchronization, the server will also update the stored multicast configuration command set;
flow chart for LoRaWAN Server creation and management of broadcast groups see FIG. 3
Referring to fig. 4, after the LoRaWAN server creates a broadcast group and updates a configuration command set to be issued, a broadcast configuration message may be sent to the LoRaWAN terminal node according to a specific user operation or a preset time, which specifically includes:
the LoRaWAN terminal node opens a receiving window to wait for receiving data;
the server assembles a broadcast issuing message according to the command set and sends a configuration command message to a broadcast identity preset by the terminal node;
receiving downlink data and analyzing the data by the LoRaWAN terminal node; judging whether the equipment address of the data packet is the equipment address of the unicast identity; if yes, responding to the command content or performing other processing; if not, judging whether the equipment address of the data packet is the equipment address of the multicast identity; if so, respond to the command content or perform other processing.
According to the above process, further, the sending, by the LoRaWAN server, a broadcast message to the LoRaWAN end node to configure the multicast identity of the LoRaWAN end node specifically includes:
the LoRaWAN server sends a broadcast message to the LoRaWAN terminal node; the equipment address of the broadcast message is filled as the equipment address of the broadcast identity; the MAC layer load FRMPayload of the broadcast message comprises unicast identity equipment addresses of a plurality of LoRaWAN terminal nodes needing to be multicast, equipment addresses of multicast identities to be set, identity keys and response parameters;
receiving the broadcast message by the LoRaWAN terminal node, judging whether the equipment address of the broadcast message is the equipment address of the broadcast identity, and if so, judging whether the FRMPayload field comprises the equipment address of the unicast identity; if yes, the device address of the corresponding multicast identity is obtained from the FRMPayload field.
Specifically, in the above process, the unicast identity device addresses of the plurality of LoRaWAN terminal nodes that need to perform multicast, the device address of the multicast identity to be set, the identity key, and the response parameter, that is, the broadcast delivery message assembled according to the command set uses a specific protocol as a sub-protocol of the frmpapayload for communication, and as shown in fig. 5, the method includes:
an operation identifier ctl of the command set is used for identifying whether the broadcast configuration message is an 'addition' or 'deletion' identity;
the multicast identity key set keys _ dit contained in the command set is used for identity key selection configured by the subsequent terminal nodes of the protocol, can contain a plurality of multicast identity keys, and takes the sequence serial number as a selection identifier;
the multicast identity address set addrs _ dit contained in the command set is used for identity address selection configured by a protocol subsequent terminal node, can contain a plurality of multicast identity addresses, and takes a sequence number as a selection identifier;
the terminal nodes needing configuration and the multicast setting information set cmd _ payload thereof contained in the command set are used for loading specific terminal nodes and corresponding multicast identity configuration thereof, and each configuration information contains selection of a multicast identity key and address in the command set so as to represent actual configuration of each terminal node.
The response parameters are filled after the configuration information of each terminal node in the cmd _ payload is preset by the server, and are used for determining the time for reporting a new multicast identity after the device applies multicast configuration, wherein the time comprises the factor ack _ option which can determine the delay time reported by the terminal node and the communication frequency used for reporting.
After the multicast identity of the LoRaWAN terminal node is configured through the broadcast message, the LoRaWAN server can send the multicast message to the LoRaWAN terminal nodes in the same group through the multicast identity. The multicast message is sent in the same flow as the broadcast message, but only the LoRaWAN terminal node with the corresponding multicast identity responds to the command content to perform corresponding processing.
It should be noted that, in the process of message interaction between the LoRaWAN server and the LoRaWAN terminal node, NwkSKey used for data frame verification and appkey used for data frame encryption are both encrypted or decrypted using AES 128. In specific implementation, in order to ensure data security and analyze a message, NwkSKey and AppSKey of unicast identity of each LoRaWAN terminal node are set to be different; the NwkSKey and the AppSKey of the broadcast identity of each LoRaWAN terminal node are set to be the same; the NwkSKey and the AppSKey of the multicast identity of each LoRaWAN terminal node in the same multicast are set to be the same, and the NwkSKey and the AppSKey of the multicast identity of different groups of LoRaWAN terminal nodes are set to be different.
As will be described below with a specific example.
The number of the LoRaWAN end nodes is 100, and the 100 end nodes need to be broadcasted in groups, wherein 30 end nodes need to downlink data messages < 111111 > through a multicast identity (group 1), 50 end nodes need to downlink data < 222222 > through a multicast identity (group 2), and 20 end nodes need to downlink data messages < 333333 > through a multicast identity (group 3).
The realization process is as follows:
1. hardware pre-configuration:
1.1 the LoRaWAN terminal node burns record LoRaWAN CLASS C code, has set up 3 identities in the code, presume that the equipment address of the unicast identity of these 100 terminal nodes is 10000000 ~ 10000099 respectively, and the equipment address of broadcast identity all is FFFFFF, and equipment address power-on of multicast identity is all acquiescently initialized to 00000000 and is reserved waiting to use.
And 1.2, binding the LoRaWAN terminal node to the LoRaWAN server to ensure that the LoRaWAN terminal node can normally carry out conventional communication with the LoRaWAN server.
2. And respectively adding broadcast groups 1, 2 and 3 in the LoRaWAN server, and respectively adding corresponding nodes into the broadcast groups according to the requirements.
3. The LoRaWAN server issues the multicast identity adding flow through the broadcast message.
Framing is realized through a LoRaWAN server interface, 100 terminal nodes are grouped, a Devraddr in a downlink frame is replaced by a broadcast identity device address (FFFFFFFF), and a multicast command is shown in figure 6.
The frame format of each node of the packet frame arrangement refers to the protocol frame in fig. 5.
Here, since the configuration command is "add" for the end node for the initialization packet, the ctl field is 1 in the protocol frame, indicating an add identity operation.
Secondly, the multicast identity key set and the multicast identity address are assumed to be in one-to-one correspondence, and the key _ fact and addrs _ fact parts in the protocol frame are as shown in table 1 below.
TABLE 1
Figure BDA0002076739120000071
Figure BDA0002076739120000081
The specific command information of the first two groups of nodes in this example is shown in table 2 below, which indicates the specific content of cmd _ payload in the protocol frame.
TABLE 2
Figure BDA0002076739120000082
As can be seen from Table 2, in this embodiment, the end nodes with the unicast device address DEVADDR of 10000000-10000030 are set as group 1, the end nodes with the unicast device address DEVADDR of 10000031-10000080 are set as group 2, and similarly, the end nodes with the unicast device address DEVADDR of 10000081-10000100 are set as group 3.
After the LoRaWAN server groups the frame, the LoRaWAN server directly sends the frame to the gateway equipment, and the gateway equipment broadcasts the data frame to the air after receiving the corresponding message frame.
At this time, after receiving the data frame, the LoRaWAN terminal node determines DevAddr first after removing a series of operations such as parsing of standard LoRaWAN, and since the terminal nodes all have the broadcast identity ffffff, s receives the remaining data frame, and then operates on the data frame in FRMPayload. And then the terminal node firstly judges whether the identity 1 is matched with the equipment address of the unicast identity of the terminal node, if so, the specific value in the group 1 is assigned to the multicast identity, and thus, the first part of configuring the multicast identity is completed.
In the case of a multi-gateway device, the LoRaWAN server delays transmission of the downstream frame to the gateway.
4. LoRaWAN server refers to the flow of sending multicast messages.
Because the value of the multicast identity is already configured in the above steps, next framing in the LoRaWAN server replaces the DevAddr as the value of the multicast identity terminal device, fills the specific content of the corresponding packet, and then sends the packet to the gateway device, and the gateway device sends the packet to the air, where the framing format is as shown in fig. 7.
After receiving the corresponding frame, the terminal node also first determines whether the DevAddr is consistent with itself, then starts to receive the specific content in the corresponding frmpapayload, and makes a corresponding response or other operations.
On the other hand, referring to fig. 8, the system for implementing packet broadcasting based on LoRaWAN of the present invention includes: a plurality of LoRaWAN terminal nodes 801 and LoRaWAN server 802;
each LoRaWAN terminal node is preset with a plurality of identities; the plurality of identities comprise a unicast identity, a broadcast identity and at least one reserved multicast identity; each identity comprises a device address DevAddr, NwkSKey used for verifying the data frame and AppSKey used for encrypting the data frame; the equipment address of the unicast identity of each LoRaWAN terminal node is different; the broadcast identity equipment addresses of all LoRaWAN terminal nodes are the same;
the LoRaWAN terminal node and LoRaWAN server interaction method comprises the following steps:
each LoRaWAN terminal node reports a multicast identity to a LoRaWAN server and monitors a configuration request of the LoRaWAN server; and the LoRaWAN server updates the multicast identity state and the multicast configuration command set.
The LoRaWAN server sends broadcast messages to LoRaWAN end nodes to configure the multicast identities of the LoRaWAN end nodes.
The method includes that the LoRaWAN server sends broadcast messages to the LoRaWAN terminal nodes to configure multicast identities of the LoRaWAN terminal nodes, and specifically includes the following steps:
the LoRaWAN server sends a broadcast message to the LoRaWAN terminal node; the equipment address of the broadcast message is filled as the equipment address of the broadcast identity; the MAC layer load FRMPayload of the broadcast message comprises a unicast identity device address of a LoRaWAN terminal node needing multicast and a device address of multicast identity to be set;
receiving the broadcast message by the LoRaWAN terminal node, judging whether the equipment address of the broadcast message is the equipment address of the broadcast identity, and if so, judging whether the FRMPayload field comprises the equipment address of the unicast identity; and if so, acquiring the equipment address of the corresponding multicast identity.
Further, the system also includes one or more LoRaWAN gateway devices 803; the LoRaWAN gateway is arranged between the LoRaWAN terminal node and the LoRaWAN server and is respectively connected with the LoRaWAN terminal node and the LoRaWAN server to realize message forwarding. If the number of the LoRaWAN gateway devices is multiple, the LoRaWAN server may perform intermittent transmission according to an appropriate delay method (for example, by setting a delay parameter) to avoid frequency point collision and perform delayed transmission to avoid frequency point collision.
The specific implementation and interactive flow of the LoRaWAN terminal node and the LoRaWAN server in the LoRaWAN-based packet broadcasting system are consistent with the LoRaWAN-based packet broadcasting method, and the description is not repeated here.
The principle and the implementation mode of the invention are explained by applying specific embodiments in the invention, and the description of the embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (8)

1. A method for realizing packet broadcasting based on LoRaWAN is characterized by comprising the following steps:
each LoRaWAN terminal node is preset with a plurality of identities; the plurality of identities comprise a unicast identity, a broadcast identity and at least one reserved multicast identity; each identity comprises a device address DevAddr, NwkSKey used for data frame verification and AppSKey used for data frame encryption; the equipment address of the unicast identity of each LoRaWAN terminal node is different; the broadcast identity equipment addresses of all LoRaWAN terminal nodes are the same;
each LoRaWAN terminal node reports a multicast identity to a LoRaWAN server and monitors a configuration request of the LoRaWAN server; the LoRaWAN server performs multicast configuration storage and configuration release management;
the LoRaWAN server sends broadcast messages to LoRaWAN terminal nodes to configure multicast identities of the LoRaWAN terminal nodes;
the method includes that the LoRaWAN server sends broadcast messages to the LoRaWAN terminal nodes to configure multicast identities of the LoRaWAN terminal nodes, and specifically includes the following steps:
the LoRaWAN server sends a broadcast message to the LoRaWAN terminal node; the equipment address of the broadcast message is filled as the equipment address of the broadcast identity; the MAC layer load FRMPayload of the broadcast message comprises a unicast identity device address of a LoRaWAN terminal node needing multicast and a device address of multicast identity to be set;
receiving the broadcast message by the LoRaWAN terminal node, judging whether the equipment address of the broadcast message is the equipment address of the broadcast identity, and if so, judging whether the FRMPayload field comprises the equipment address of the unicast identity; and if so, acquiring the equipment address of the corresponding multicast identity.
2. The method of claim 1, wherein the determining, by the LoRaWAN terminal node, whether the device address of the broadcast message is a device address of a broadcast identity further includes:
judging whether the equipment address of the broadcast message is the equipment address of the unicast identity of the equipment address, if so, indicating that the received message is the unicast message, and responding to a corresponding request; if not, judging whether the equipment address of the broadcast message is the equipment address of the broadcast identity.
3. The method for implementing packet broadcasting based on LoRaWAN as claimed in claim 1, wherein the reporting of the multicast identity from the LoRaWAN end node to the LoRaWAN server includes:
when the terminal node is restarted or initialized, the current multicast identity is reported to a LoRaWAN server by a unicast identity;
the message for reporting the multicast identity by the terminal node comprises the address of the multicast identity, NwkSKey for data verification and AppSKey for data frame encryption.
4. The method of claim 1, wherein the configuration storage and configuration release management of the multicast performed by the LoRaWAN server includes:
the LoRaWAN server receives a broadcast group creating request and adds any LoRaWAN terminal node into any broadcast group;
the LoRaWAN server stores the mapping relation between the terminal nodes and the broadcast groups according to the setting of the broadcast groups;
and the LoRaWAN server monitors the multicast identity report of the terminal node, updates the state in the broadcast group in real time, and determines the multicast configuration message to be issued by combining the mapping relation.
5. The LoRaWAN-based packet broadcasting method according to claim 1, wherein during message interaction between the LoRaWAN server and the LoRaWAN terminal node, both NwkSKey for data frame verification and AppSKey for data frame encryption are encrypted or decrypted by using AES 128.
6. A system for implementing packet broadcasting based on LoRaWAN, comprising: a plurality of LoRaWAN terminal nodes and LoRaWAN servers;
each LoRaWAN terminal node is preset with a plurality of identities; the plurality of identities comprise a unicast identity, a broadcast identity and at least one reserved multicast identity; each identity comprises a device address DevAddr, NwkSKey used for verifying the data frame and AppSKey used for encrypting the data frame; the equipment address of the unicast identity of each LoRaWAN terminal node is different; the broadcast identity equipment addresses of all LoRaWAN terminal nodes are the same;
the LoRaWAN terminal node and LoRaWAN server interaction method comprises the following steps:
each LoRaWAN terminal node reports a multicast identity to a LoRaWAN server and monitors a configuration request of the LoRaWAN server; the LoRaWAN server updates the multicast identity state and the multicast configuration command set;
the LoRaWAN terminal node sends a broadcast message to configure the multicast identity of the LoRaWAN terminal node;
the method includes that the LoRaWAN server sends broadcast messages to the LoRaWAN terminal nodes to configure multicast identities of the LoRaWAN terminal nodes, and specifically includes the following steps:
the LoRaWAN server sends a broadcast message to the LoRaWAN terminal node; the equipment address of the broadcast message is filled as the equipment address of the broadcast identity; the MAC layer load FRMPayload of the broadcast message comprises a continuous data group consisting of a unicast identity device address of a LoRaWAN terminal node needing multicasting and a device address of multicast identity to be set;
receiving the broadcast message by the LoRaWAN terminal node, judging whether the equipment address of the broadcast message is the equipment address of the broadcast identity, and if so, judging whether the FRMPayload field comprises the equipment address of the unicast identity; and if so, acquiring the equipment address of the corresponding multicast identity.
7. The LoRaWAN-based packet broadcasting system of claim 6, further comprising: one or more LoRaWAN gateway devices; the LoRaWAN gateway is arranged between the LoRaWAN terminal node and the LoRaWAN server and is respectively connected with the LoRaWAN terminal node and the LoRaWAN server to realize message forwarding.
8. The LoRaWAN packet broadcasting system according to claim 7, wherein if the LoRaWAN gateway device includes multiple LoRaWAN gateway devices, the LoRaWAN server intermittently transmits the LoRaWAN gateway devices in a preset delay manner to avoid frequency point collision.
CN201910456439.8A 2019-05-29 2019-05-29 Method and system for realizing packet broadcasting based on LoRaWAN Active CN110337071B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910456439.8A CN110337071B (en) 2019-05-29 2019-05-29 Method and system for realizing packet broadcasting based on LoRaWAN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910456439.8A CN110337071B (en) 2019-05-29 2019-05-29 Method and system for realizing packet broadcasting based on LoRaWAN

Publications (2)

Publication Number Publication Date
CN110337071A CN110337071A (en) 2019-10-15
CN110337071B true CN110337071B (en) 2021-08-20

Family

ID=68141120

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910456439.8A Active CN110337071B (en) 2019-05-29 2019-05-29 Method and system for realizing packet broadcasting based on LoRaWAN

Country Status (1)

Country Link
CN (1) CN110337071B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110958124B (en) * 2019-12-12 2022-08-19 北京爱奇艺科技有限公司 Multicast group management method, device, readable storage medium and computer
CN113132913A (en) * 2019-12-30 2021-07-16 北京九天微星科技发展有限公司 Method for realizing multicast based on LoRaWan
CN112218247A (en) * 2020-09-24 2021-01-12 武汉慧联无限科技有限公司 Internet of things message issuing method and device, electronic equipment and storage medium
CN112511994B (en) * 2021-02-04 2021-04-27 杭州字节信息技术有限公司 Multicast implementation method based on LoRaWan and supporting ACK mechanism

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108307355A (en) * 2017-12-21 2018-07-20 中兴克拉科技(苏州)有限公司 A kind of method of realizing group broadcasting of LPWAN Internet of Things
CN109195116A (en) * 2018-08-09 2019-01-11 中兴克拉科技(苏州)有限公司 A kind of application layer group broadcasting method of LPWAN Internet of Things

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10749995B2 (en) * 2016-10-07 2020-08-18 Cisco Technology, Inc. System and method to facilitate integration of information-centric networking into internet protocol networks
US10805825B2 (en) * 2017-02-23 2020-10-13 Cisco Technology, Inc. System and method to facilitate cross-layer optimization of video over WiFi in an information-centric networking environment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108307355A (en) * 2017-12-21 2018-07-20 中兴克拉科技(苏州)有限公司 A kind of method of realizing group broadcasting of LPWAN Internet of Things
CN109195116A (en) * 2018-08-09 2019-01-11 中兴克拉科技(苏州)有限公司 A kind of application layer group broadcasting method of LPWAN Internet of Things

Also Published As

Publication number Publication date
CN110337071A (en) 2019-10-15

Similar Documents

Publication Publication Date Title
CN110337071B (en) Method and system for realizing packet broadcasting based on LoRaWAN
US20200120580A1 (en) Communication method, network device, terminal device, and system
CN108307355B (en) Multicast implementation method of L PWAN Internet of things
CN102547592B (en) Data transmission method and device
CN109195116B (en) Application layer multicast method of LPWAN Internet of things
CN101286867B (en) Software updating method and system of network equipment
US10440681B2 (en) Resource scheduling method, base station, scheduler, program source server, and system
CN110326345B (en) Method, device and system for configuring network slice
CN107302585B (en) Preset dictionary synchronization method and device
WO2017054576A1 (en) Unicast tunnel building method, apparatus and system
WO2021208975A1 (en) Multicast/broadcast information transmission method and device, storage medium, and electronic device
WO2010017713A1 (en) Synchronization realizing method and system for control sequence number
CN101741538A (en) Synchronous dispatching method
WO2017148446A1 (en) Network resource scheduling method, device and system, and network node
WO2017088508A1 (en) Multimedia broadcast and multicast service processing method, network element and system
WO2023005410A1 (en) Information synchronization method and system, storage medium, and electronic device
CN101686431B (en) Synchronous processing method and device
US10244524B2 (en) Data transmission method, apparatus, and network system that supports CPRI data corresponding to multiple service flows to be exchanged
WO2021244356A1 (en) Data transmission method and apparatus
CN110391922B (en) Version prompting method and device for service platform
CN105210347A (en) Monitoring server, parsing server, request device and node selection method
EP3244643B1 (en) Terminal device, network device and group communication method
CN101742653A (en) Service resource processing method and system
CN101651605A (en) Method and system for transmitting and receiving data
WO2024016678A1 (en) Service guarantee method and system, storage medium, and electronic device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 361000 one of the 5th floor, No. 51, second Sea Road, software park, Xiamen City, Fujian Province

Applicant after: Xiamen Ruiqi IOT Technology Co.,Ltd.

Address before: 361000 one of the 5th floor, No. 51, second Sea Road, software park, Xiamen City, Fujian Province

Applicant before: REACH TECH (XIAMEN) Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Method and System for Implementing Packet Broadcasting Based on LoRaWAN

Effective date of registration: 20230612

Granted publication date: 20210820

Pledgee: Xiamen Bank Co.,Ltd.

Pledgor: Xiamen Ruiqi IOT Technology Co.,Ltd.

Registration number: Y2023980043484