CN109412937B - Gateway, LoRa network system, gateway operation method and storage medium - Google Patents

Gateway, LoRa network system, gateway operation method and storage medium Download PDF

Info

Publication number
CN109412937B
CN109412937B CN201811318889.2A CN201811318889A CN109412937B CN 109412937 B CN109412937 B CN 109412937B CN 201811318889 A CN201811318889 A CN 201811318889A CN 109412937 B CN109412937 B CN 109412937B
Authority
CN
China
Prior art keywords
terminal
message
gateway
module
network access
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
CN201811318889.2A
Other languages
Chinese (zh)
Other versions
CN109412937A (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.)
Comba Network Systems Co Ltd
Original Assignee
Comba Telecom Systems China 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 Comba Telecom Systems China Ltd filed Critical Comba Telecom Systems China Ltd
Priority to CN201811318889.2A priority Critical patent/CN109412937B/en
Publication of CN109412937A publication Critical patent/CN109412937A/en
Application granted granted Critical
Publication of CN109412937B publication Critical patent/CN109412937B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W88/00Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
    • H04W88/16Gateway arrangements

Landscapes

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

Abstract

The application relates to a gateway, a LoRa network system, a gateway operation method and a storage medium. The gateway comprises a gateway unit and a LoRaServer unit; the LoRaServer unit comprises a southbound interface module and a LoRaWan protocol stack module; the gateway unit transmits the received terminal message to the southbound interface module; the terminal message is a network access request message or a terminal data message; the southbound interface module transmits a network access request plaintext obtained by processing the network access request message to the LoRaWan protocol stack module; and carrying out protocol conversion on the terminal data message to obtain a terminal data network message for uploading to the application server; the LoRaWan protocol stack module obtains a terminal address according to a network access request plaintext, and obtains a network access response message for issuing to the terminal based on the terminal address. The function of the LoRa network server is integrated in the gateway of the application, and then when being applied to the LoRa network system, the LoRa network server does not need to be deployed in addition, the LoRa network system is simplified, and the deployment difficulty is reduced.

Description

Gateway, LoRa network system, gateway operation method and storage medium
Technical Field
The application relates to the technical field of internet of things, in particular to a gateway, a LoRa network system, a gateway operation method and a storage medium.
Background
The initial explanation of the internet of things is: the internet with connected objects mainly refers to the connection between a specific object and the internet by means of technologies such as intelligent identification, electronic sensing, cloud computing and the like, and the Long Range (Long Range) technology plays a role in how to connect objects (terminals) and the internet in the internet of things.
The terminal network connection technology of the Internet of Things has many technical schemes that can be selected, besides LoRa, NB-IoT (Narrow Band Internet of Things), WiFi (Wireless Fidelity), bluetooth, zigbee (zigbee), GPRS (General Packet Radio Service), infrared RF (Radio Frequency), and the like are also available, and different communication technologies have different characteristics and also have application scenarios suitable for the users. However, for an application scenario where long distance and low power consumption require only a small amount of data to be transmitted, there is no wireless communication technology that is more ideal than LoRa.
In the implementation process, the inventor finds that at least the following problems exist in the conventional technology: the standard LoRa network system recommended by the LoRa standardization organization LoRa alliance comprises a terminal, a gateway, a LoRa network server and an application server. However, the traditional network system based on the standard LoRa is complex in structure and difficult to deploy.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a gateway, an LoRa network system, a gateway operating method, and a storage medium, which can simplify the LoRa network system and reduce the deployment difficulty.
In order to achieve the above object, in one aspect, an embodiment of the present invention provides a gateway, including a gateway unit and a loraerver unit; the LoRaServer unit comprises a southbound interface module and a LoRaWan protocol stack module;
the gateway unit transmits the received terminal message to the southbound interface module; the terminal message is a network access request message or a terminal data message;
the southbound interface module transmits a network access request plaintext obtained by processing the network access request message to the LoRaWan protocol stack module; and carrying out protocol conversion on the terminal data message to obtain a terminal data network message for uploading to the application server;
the LoRaWan protocol stack module obtains a terminal address according to a network access request plaintext, and obtains a network access response message for issuing to the terminal based on the terminal address.
In one embodiment, the loraerver unit further includes an application service module;
the southbound interface module transmits the terminal data network message to the application service module;
and the application service module uploads the terminal data network message to an application server.
In one embodiment, the application service module transmits the received management message to a LoRaWan protocol stack module; the management message is a terminal management message or a gateway management message;
the LoRaWan protocol stack module analyzes the gateway management message to obtain a gateway configuration instruction;
the LoRaWan protocol stack module analyzes the terminal management message to obtain terminal management data; transmitting a terminal management analysis message obtained based on the terminal management data to the southbound interface module;
and the southbound interface module processes the terminal management analysis message to obtain a terminal management analysis ciphertext for issuing to the terminal.
In one embodiment, the southbound interface module receives periodic pull messages transmitted by the gateway unit;
and the LoRaWan protocol stack module transmits the terminal management message to the southbound interface module when the southbound interface module receives the periodic pull message.
In one embodiment, the southbound interface module includes a preset port; the preset port comprises a loopback interface;
the gateway unit transmits the terminal message to a preset port through a loopback interface;
and the southbound interface module acquires the terminal message from the preset port.
In one embodiment, the gateway unit includes an LoRa driving module and a terminal forwarding module;
the LoRa driving module unframes the terminal message;
and the terminal forwarding module transmits the unframed terminal message to the southbound interface module.
In one embodiment, the southbound interface module performs protocol conversion on the terminal data message to obtain a terminal data network message based on an ieee802.3 protocol.
On the other hand, the embodiment of the invention also provides an LoRa network system, which comprises a terminal, an application server and gateways connected between the terminal and the application server.
On the other hand, an embodiment of the present invention further provides a gateway operation method, including:
receiving a terminal message; the terminal message is a network access request message or a terminal data message;
processing the network access request message to obtain a network access request plaintext; obtaining a terminal address according to a network access request plaintext, and obtaining a network access response message for issuing to the terminal based on the terminal address;
and carrying out protocol conversion on the terminal data message to obtain a terminal data network message for uploading to the application server.
In another aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the gateway operation method described above.
One of the above technical solutions has the following advantages and beneficial effects:
the south interface module and LoRaWan protocol stack module in the LoRaServer unit realize the function of the LoRa network server in the traditional LoRa network system; the gateway of this application can integrate loRa network server's function promptly, and then the gateway of this application need not to deploy loRa network server in addition again in loRa network system when being applied to loRa network system, has simplified loRa network system, has reduced and has deployed the degree of difficulty.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
fig. 1 is a schematic diagram of a conventional LoRa network system;
FIG. 2 is a first block diagram of a gateway in one embodiment;
FIG. 3 is a second block diagram of a gateway in one embodiment;
FIG. 4 is a flowchart illustrating a method of operating a gateway according to one embodiment;
fig. 5 is a schematic diagram of an architecture of an LoRa network system according to an embodiment;
fig. 6 is a schematic diagram illustrating an operation state of the LoRa network system in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
As shown in fig. 1, a conventional LoRa network system includes terminals (EndNodes in fig. 1), gateways (central/Gateway in fig. 1), LoRa network servers (LoRaNetworkServer in fig. 1), and application servers (ApplicationServer in fig. 1) which are connected in sequence.
Wherein, the terminal: monitoring the object and collecting status data thereof. A gateway: the access terminal forwards an LoRa protocol message sent by the terminal; LoRa network server: the core of LoRaWan protocol network, processing terminal access, management, up and down data encryption and decryption, message analysis and data packet synthesis, etc.; an application server: managing the terminal and the gateway, and receiving and analyzing the data collected by the terminal.
The gateway provided by the application can be applied to an LoRa network system shown in fig. 5. The terminal 102 is in network communication with an application server 106 through a gateway 104.
Specifically, the method comprises the following steps:
the terminal 102: monitoring objects and collecting status data;
gateway 104 integrating the functionality of the LoRa web server: the access management module is responsible for the access and management of the terminal 102, realizes an LoRa protocol stack, and realizes the conversion between a LoRaWan protocol and an ieee802.3 protocol message;
the application server 106: the gateway 104 and the terminals 102 under the gateway 104 are managed, and a certain management and control strategy is adopted for the terminals 102 according to the data uploaded by the terminals 102.
The terminal 102 may be, but not limited to, various detection devices such as a water meter, a gas meter, an electric meter, a heat meter, a smoke alarm, and a pet tracker, and the application server 106 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a gateway is provided, which is described by taking the gateway as an example applied to fig. 5, and includes: a gateway unit and a LoRaServer unit; the LoRaServer unit comprises a southbound interface module and a LoRaWan protocol stack module;
the gateway unit transmits the received terminal message to the southbound interface module; the terminal message is a network access request message or a terminal data message;
the southbound interface module transmits a network access request plaintext obtained by processing the network access request message to the LoRaWan protocol stack module; and performing protocol conversion on the terminal data message to obtain a terminal data network message for uploading to the application server 106;
the LoRaWan protocol stack module obtains a terminal address according to the network access request plaintext, and obtains a network access response message for issuing to the terminal 102 based on the terminal address.
Specifically, the terminal message is sent from the terminal 102 to the gateway unit; the gateway unit may perform deframing processing on the received terminal packet.
The southbound interface module can decode and decrypt the network access request message; the protocol conversion of the terminal data message by the southbound interface module may be converting the terminal data message based on the LoRaWan protocol into the terminal data message based on the ieee802.3 protocol.
Distributing to obtain a terminal address according to terminal identification information in the network access request plaintext, such as an MAC address and the like; the obtained network access response message may be issued to the corresponding terminal 102 through the gateway unit.
In the gateway, a southbound interface module and a LoRaWan protocol stack module in a LoRaServer unit realize the function of a LoRa network server; also, the gateway integrates the functions of the loRa network server, so that the loRa network server does not need to be additionally deployed in the loRa network system, the loRa network system is simplified, and the deployment difficulty is reduced.
It should be noted that, on the premise of completely complying with the LoRaWan protocol, the original discrete LoRa network server is integrated into the gateway, because the number of terminals covered by a single gateway is small, and the gateway generally adopts a high-performance MCU processing unit over hundreds of megabytes, the performance of the gateway is not affected basically, and because of the integration, the deployment of one LoRa network server can be saved, so that the whole system network is more flat, and the maintenance management is easy.
In one embodiment, as shown in fig. 3, a gateway is provided, which is described by taking the gateway as an example applied to fig. 5, and includes:
a gateway unit and a LoRaServer unit; the LoRaServer unit comprises an application service module, a southbound interface module and a LoRaWan protocol stack module; the gateway unit comprises an LoRa driving module and a terminal forwarding module;
the LoRa driving module unframes the received terminal message;
the terminal forwarding module transmits the unframed terminal message to the southbound interface module;
the terminal message after being unframed is a network access request message or a terminal data message;
the southbound interface module transmits a network access request plaintext obtained by processing the network access request message to the LoRaWan protocol stack module; and carrying out protocol conversion on the terminal data message, and transmitting the obtained terminal data network message to the application service module;
the LoRaWan protocol stack module obtains a terminal address according to a network access request plaintext, and obtains a network access response message for issuing to the terminal 102 based on the terminal address;
and the application service module is configured to upload the terminal data network packet to the application server 106.
Specifically, the southbound interface module may process the network access request packet by decoding and decrypting.
And the LoRaWan protocol stack module distributes and obtains a terminal address according to the terminal identification information in the network access request plain text, such as the MAC address and the like.
The application service module may upload the terminal data network packet to the application server 106 through a backhaul network, where the backhaul network may be a wired, WIFI, 2G, 3G, or 4G data access network.
Further, the application service module transmits the received management message to a LoRaWan protocol stack module; the management message is a terminal management message or a gateway management message;
the LoRaWan protocol stack module analyzes the gateway management message to obtain a gateway configuration instruction;
the LoRaWan protocol stack module analyzes the terminal management message to obtain terminal management data; transmitting a terminal management analysis message obtained based on the terminal management data to the southbound interface module;
and the southbound interface module processes the terminal management analysis message to obtain a terminal management analysis ciphertext for issuing to the terminal.
Specifically, the processing mode of the southbound interface module for the terminal management analysis message may be encryption and encoding.
It should be noted that the management message may be sent to the application service module by the application server 106; and the application server 106 may analyze the received terminal data network packet according to a preset policy algorithm to obtain a terminal management packet, that is, the application server 106 may generate the terminal management packet to control a corresponding action of the terminal 102.
Further, the gateway unit may further include a gateway radio frequency module;
the southbound interface module transmits the terminal management analysis ciphertext to the terminal forwarding module; the terminal forwarding module is used for transmitting the terminal management analysis ciphertext to the LoRa driving module; the LoRa driving module is used for framing the terminal management analysis ciphertext and transmitting the framed terminal management ciphertext to the gateway radio frequency module;
the LoRaWan protocol stack module transmits the network access response message to the southbound interface module; the southbound interface module encrypts and encodes the network access response message to obtain a network access response ciphertext and transmits the network access response ciphertext to the terminal forwarding module; the terminal forwarding module transmits the network access response ciphertext to the LoRa driving module; the LoRa driving module frames the network access response message and transmits the framed network access response ciphertext to the gateway radio frequency module;
the gateway radio frequency module transmits the framed terminal management analysis ciphertext and the network access response ciphertext to the corresponding terminal; and the network access control module is used for receiving the network access request message and the terminal data message from the terminal and transmitting the received network access request message or the terminal data message to the LoRa driving module.
It should be noted that, when the corresponding terminal 102 receives the terminal management ciphertext, the terminal 102 may respond to the gateway 104 with a first ACK (Acknowledgement) message.
Further, the southbound interface module receives the periodic pull message transmitted by the terminal forwarding module;
and the LoRaWan protocol stack module transmits the terminal management message to the southbound interface module when the southbound interface module receives the periodic pull message.
Further, the southbound interface module comprises a preset port; the preset port comprises a loopback interface;
the gateway unit transmits the terminal message to a preset port through a loopback interface;
and the southbound interface module acquires the terminal message from the preset port. The southbound interface module comprises a preset port; the preset port comprises a loopback interface;
the gateway unit transmits the terminal message to a preset port through a loopback interface;
and the southbound interface module acquires the terminal message from the preset port.
The preset port and the loopback interface can be set independently, and the setting mode comprises a plurality of modes such as network management remote configuration, local web configuration and local configuration files.
Further, the protocol conversion of the terminal data packet by the southbound interface module may be converting the terminal data packet originally based on the LoRaWan protocol into a terminal data packet based on the ieee802.3 protocol.
The transmission layer of the terminal data packet of the ieee802.3 Protocol follows UDP (User Datagram Protocol), and the application layer adopts JSON (JavaScript Object Notation) Protocol.
Further, the southbound interface module responds to the terminal forwarding module with a second ACK message when obtaining the network access request plaintext.
Specifically, a packet protocol of an MAC layer of the network access request message follows a LoRaWan protocol, a UDP protocol is adopted by a transmission layer, and a JSON protocol is adopted by an application layer;
the network access request message comprises three parameters of AppEII, DevEUI and DevNonce, wherein the AppEII is used for identifying a unique application provider, such as garbage can monitoring application, smoke alarm application and the like of each home, and has the unique AppEI which is a parameter preset in the terminal; DevEUI is used to identify a unique terminal, which may be the MAC address of the terminal; DevNonce is RSSI random value of LoRa chip in terminal;
the LoRaWan protocol stack module distributes the terminal address obtained according to DevEUI in the network access request message as DevAddr, the DevAddr, Appnnce and NetID generated during distribution form a network access response message, wherein the Appnnce is generated randomly, and the NetID functions like a subnet mask;
after receiving the network access response ciphertext, the terminal 102 extracts the DevAddr therein, and encrypts the DevAddr with aes128 by combining the AppKey, the AppNonce, the NetID and the DevNonce to generate 2 keys: NekSKey and AppSKey, the network access of the terminal 102 is completed. The NekSKey is used for encrypting and decrypting the terminal management message, and the AppSKey is used for encrypting and decrypting the terminal data message; the AppKey is shared by the terminal 102 and the gateway 104, is pre-stored in the terminal 102 and the gateway 104, and is used for encrypting and decrypting the network access response ciphertext and the network access request message.
The encryption and decryption adopt an AES128 mode, and the coding and decoding adopt a Base64 mode.
Specifically, the algorithm for allocating the terminal address is a simplified DHCPD (Dynamic Host Configuration Protocol (server) daemon) algorithm, and besides being used for realizing that the terminal address allocated according to the DevEUI is the DevAddr, the algorithm can also set the MAC address aging time of the gateway, so that the allocated terminal addresses do not overlap, and an address recovery mechanism without message exchange for a long time is realized through the MAC address aging time, so that the terminal 102 is prevented from occupying the DevAddr when the terminal is not online for a long time after being connected to the network.
It should be further noted that, since the transport layer of the management packet sent by the application server 106 adopts the UDP Protocol, the application layer adopts the JSON Protocol, and the LoRaWan Protocol specifies that the management packet sent to the Gateway by the LoRa network server follows the GWMP (LoRa Gateway Message Protocol), the LoRaWan Protocol stack module needs to parse the management packet, and the specific processing procedure includes: analyzing a first JSON load from the terminal management message to serve as terminal management data, and obtaining a terminal management analysis message based on the terminal management data; when the southbound interface module receives the PULL message, taking a terminal management analysis message as a PULL _ RESP message, and transmitting the PULL _ RESP message to the southbound interface module by the LoRaWan protocol stack module; wherein, the length of the PULL _ RESP message must not exceed 1000 octets. The specific treatment process further comprises the following steps: and analyzing the second JSON load from the gateway management message to obtain a gateway configuration instruction.
The southbound interface module mentioned in the above gateway receives the periodic pull message transmitted by the terminal forwarding module, which is actually equivalent to that the gateway sends the periodic pull message to the LoRa network server in the conventional LoRa network system shown in fig. 1 (the periodic pull message is used to keep the firewall of the LoRa network server in an open state), and can be autonomously set by combining with the preset port and the loopback interface and the southbound interface module responds to the terminal forwarding module with the second ACK message. In fact, the function of transmitting and receiving data between the gateway unit and the LoRa network server is maintained, so that the gateway can be compatible with the application environment in fig. 1 even if the loraerver unit equivalent to the LoRa network server is integrated in the gateway, can be connected with the LoRa network server in the LoRa network system in fig. 1, and can transmit data, and the gateway is good in flexibility and wide in application range.
Compared with the conventional LoRa network system shown in fig. 1, the gateway in the embodiments of the present application integrates the loraerver unit equivalent to the LoRa network server, so that the deployment of one network element (LoRa network server) is reduced, but the functional structure of the LoRa network system is not changed, and thus the LoRaWan protocol is still followed, and the LoRaWan network system can be interconnected and intercommunicated with other devices following the LoRaWan protocol.
Due to the fact that the LoRa network server is integrated into the gateway, the terminals communicating with the LoRa network server only include the terminals hung down from the gateway, and the number of terminals capable of communicating with the LoRa network server is correspondingly reduced. However, because of the characteristics of wide coverage range (coverage radius can reach more than 15 km) and small data volume of the LoRa wireless network, one gateway can basically meet the coverage of a terminal in a medium-sized park from the performance, and is more suitable for small and medium-sized users sensitive to the engineering price from the perspective of reducing the deployment of the LoRa network server, in conclusion, the LoRa network system shown in fig. 5 is simpler, easier to deploy and flatter.
The various modules in the gateway described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, there is provided a method for operating a gateway as shown in fig. 4, including:
step S402, receiving a terminal message; the terminal message is a network access request message or a terminal data message;
step S404, processing the network access request message to obtain a network access request plaintext; obtaining a terminal address according to a network access request plaintext, and obtaining a network access response message for issuing to the terminal based on the terminal address;
step S406, the terminal data message is subjected to protocol conversion to obtain a terminal data network message for uploading to an application server.
It should be understood that, although the steps in the flowchart of fig. 4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, there is provided a LoRa network system as shown in fig. 5, which includes a terminal 102, a gateway 104 and an application server 106 connected in sequence.
The LoRa network system at least includes three operation states as shown in fig. 6:
the network access process of the terminal 102:
1. and the parameter is shared by a LoRaServer unit of the gateway (which is equivalent to a LoRa network server in a traditional LoRa network system) and the terminal 102, and is used for encrypting and decrypting a join _ request message and a join _ accept message.
2. The terminal 102 is configured with AppEUI (provided by the loraerver unit) and DevEUI (unique to the terminal 102 itself, such as a MAC address); and the RSSI random value of the LoRa chip in the terminal 102 is taken to obtain the DevNonce. Organizing 3 parameters AppKey, AppEII and DevEUI into a join _ request message, and sending the join _ request message to a LoRaServer unit through a gateway unit (which is equal to a gateway in a traditional LoRa network system) after encryption.
3. The LoRaServer unit receives the join _ request message, decrypts the join _ request message, distributes a DevAddr to the terminal 102, and organizes the join _ request message together with AppNonce (a parameter randomly generated by the LoRaServer unit) and NetID (generated when the DevAddr is distributed and similar to a subnet mask) to encrypt the join _ request message and send the join _ request message back to the terminal 102.
4. After receiving the join _ accept message, the terminal 102 extracts the DevAddr therein; the following 4 parameters were combined: AppKey, AppNonce, NetID and DevNonce, encrypted using aes128, generating 2 keys: NekSKey and AppSKey. The NekSKey is used for encrypting and decrypting the terminal management message, the AppSKey is used for encrypting and decrypting the terminal data message, and the network access of the terminal 102 is completed.
And (3) data uploading process: the terminal data message sent by the terminal 102 is forwarded to the application server 106 through the gateway unit and the loraerver unit.
Controlling and managing the process:
a terminal management message sent by the application server 106 is sent to the terminal 102 through the LoRaServer unit and the gateway unit; the gateway management message sent by the application server 106 is sent to the gateway unit through the loraerver unit.
The detailed working processes of the above three operation states are already mentioned in the above embodiments, and are not described herein again.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which computer program, when being executed by a processor, carries out the steps of the above-mentioned gateway operation method.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A gateway is characterized by comprising a LoRaServer unit and a gateway unit for receiving a terminal message; the gateway unit comprises an LoRa driving module and a terminal forwarding module; the LoRaServer unit comprises a southbound interface module, an application service module and a LoRaWan protocol stack module;
the terminal forwarding module transmits the terminal message processed by the LoRa driving module to the southward interface module; the terminal message is a network access request message or a terminal data message;
the southbound interface module transmits a network access request plaintext obtained by processing the network access request message to the LoRaWan protocol stack module; and carrying out protocol conversion on the terminal data message to obtain a terminal data network message for uploading to an application server; the southbound interface module transmits the terminal data network message to the application server through the application service module;
and the LoRaWan protocol stack module obtains a terminal address according to the network access request plaintext and obtains a network access response message for issuing to the terminal based on the terminal address.
2. The gateway according to claim 1,
the southbound interface module transmits the terminal data network message to the application service module;
and the application service module uploads the terminal data network message to the application server.
3. The gateway of claim 2, wherein the application service module transmits the received management packet to the LoRaWan protocol stack module; the management message is a terminal management message or a gateway management message;
the LoRaWan protocol stack module analyzes the gateway management message to obtain a gateway configuration instruction;
the LoRaWan protocol stack module analyzes the terminal management message to obtain terminal management data; transmitting a terminal management analysis message obtained based on the terminal management data to the southbound interface module;
and the southbound interface module processes the terminal management analysis message to obtain a terminal management analysis ciphertext for issuing to the terminal.
4. The gateway of claim 3, wherein the southbound interface module receives periodic pull messages transmitted by the gateway unit;
and the LoRaWan protocol stack module transmits the terminal management message to the southbound interface module when the southbound interface module receives the periodic pull message.
5. The gateway of claim 3, wherein the southbound interface module includes a preset port; the preset port comprises a loopback interface;
the gateway unit transmits the terminal message to the preset port through the loopback interface;
and the southbound interface module acquires the terminal message from the preset port.
6. The gateway according to any of claims 1 to 5,
the LoRa driving module unframes the terminal message;
and the terminal forwarding module transmits the unframed terminal message to the southbound interface module.
7. The gateway according to any of claims 1 to 5, wherein the southbound interface module performs protocol conversion on the terminal data packet to obtain a terminal data network packet based on ieee802.3 protocol.
8. An LoRa network system, comprising a terminal and an application server, and a gateway according to any one of claims 1 to 7 connected between the terminal and the application server.
9. A method for operating a gateway, the method being applied to the gateway according to any one of claims 1 to 7; the method comprises the following steps:
receiving a terminal message; the terminal message is a network access request message or a terminal data message;
processing the network access request message to obtain a network access request plaintext; obtaining a terminal address according to the network access request plaintext, and obtaining a network access response message for issuing to the terminal based on the terminal address;
and carrying out protocol conversion on the terminal data message to obtain a terminal data network message for uploading to an application server.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method as claimed in claim 9.
CN201811318889.2A 2018-11-07 2018-11-07 Gateway, LoRa network system, gateway operation method and storage medium Active CN109412937B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811318889.2A CN109412937B (en) 2018-11-07 2018-11-07 Gateway, LoRa network system, gateway operation method and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811318889.2A CN109412937B (en) 2018-11-07 2018-11-07 Gateway, LoRa network system, gateway operation method and storage medium

Publications (2)

Publication Number Publication Date
CN109412937A CN109412937A (en) 2019-03-01
CN109412937B true CN109412937B (en) 2021-01-01

Family

ID=65472140

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811318889.2A Active CN109412937B (en) 2018-11-07 2018-11-07 Gateway, LoRa network system, gateway operation method and storage medium

Country Status (1)

Country Link
CN (1) CN109412937B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110035399B (en) * 2019-04-18 2021-09-03 Oppo广东移动通信有限公司 Message transmission method and related equipment
CN110166353A (en) * 2019-05-31 2019-08-23 四川璧虹众杰科技有限公司 LoRaWan gateway system and LoRaWan gateway
CN110164115B (en) * 2019-06-05 2020-07-03 河南卓正电子科技有限公司 Multi-mode thing networking wisdom energy data acquisition terminal
CN110312273B (en) * 2019-07-30 2022-12-02 武汉慧联无限科技有限公司 LoRa gateway equipment and remote management method thereof
CN110708686A (en) * 2019-09-27 2020-01-17 上海宝宬冶金科技有限公司 System and method for improving LoRa network throughput
CN110572481B (en) * 2019-10-15 2022-07-08 广西交科集团有限公司 Intelligent electromechanical equipment data interaction method based on LoRa communication
CN112714440B (en) * 2019-10-25 2023-09-19 深圳长城开发科技股份有限公司 Communication method, system, gateway and storage medium compatible with LoRaWAN and self-research protocol
CN110972210B (en) * 2019-12-06 2023-02-24 深圳大学 LoRa gateway offline decision method and device based on agricultural Internet of things
CN111211918A (en) * 2019-12-17 2020-05-29 江苏南能电气有限公司 Networking method for LoRa private protocol
CN111711708B (en) * 2020-04-30 2022-08-02 成都慧简联信息科技有限公司 LoRaWAN terminal equipment address allocation method
CN111918307B (en) * 2020-07-31 2023-07-25 重庆邮电大学 Multi-layer gateway data transmission system and method based on LoRa positioning
CN112367249B (en) * 2020-09-30 2022-12-06 三维通信股份有限公司 Communication method of LoRa device, loRaWAN system, electronic apparatus, and storage medium
CN112615823A (en) * 2020-12-04 2021-04-06 广东亚太天能科技股份有限公司 Private encryption communication method and system for secondary encryption
CN115119203B (en) * 2022-08-30 2022-11-18 伏诺瓦(天津)科技有限公司 LoRa sub-equipment safety back connection method and communication system based on random key mechanism
CN115835193B (en) * 2023-02-08 2023-06-20 数安在线(北京)信息技术有限公司 Data security transmission method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106789259A (en) * 2016-12-26 2017-05-31 中国科学院信息工程研究所 A kind of LoRa core network systems and implementation method
CN106937242A (en) * 2016-12-27 2017-07-07 四川雷克斯智慧科技股份有限公司 A kind of scene of a fire entry control method based on Internet of Things
CN206332860U (en) * 2017-01-04 2017-07-14 路晓明 LoRa gateways
CN108616904A (en) * 2016-12-21 2018-10-02 上海未来宽带技术股份有限公司 A kind of wireless frequency point management method and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8782282B1 (en) * 2003-12-19 2014-07-15 Brixham Solutions Ltd. Network management system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108616904A (en) * 2016-12-21 2018-10-02 上海未来宽带技术股份有限公司 A kind of wireless frequency point management method and system
CN106789259A (en) * 2016-12-26 2017-05-31 中国科学院信息工程研究所 A kind of LoRa core network systems and implementation method
CN106937242A (en) * 2016-12-27 2017-07-07 四川雷克斯智慧科技股份有限公司 A kind of scene of a fire entry control method based on Internet of Things
CN206332860U (en) * 2017-01-04 2017-07-14 路晓明 LoRa gateways

Also Published As

Publication number Publication date
CN109412937A (en) 2019-03-01

Similar Documents

Publication Publication Date Title
CN109412937B (en) Gateway, LoRa network system, gateway operation method and storage medium
US10951429B2 (en) Server initiated remote device registration
Nieminen et al. Networking solutions for connecting bluetooth low energy enabled machines to the internet of things
Shang et al. Named data networking of things
US10885198B2 (en) Bootstrapping without transferring private key
EP3111680B1 (en) Network range extender with multi-rf radio support for plurality of network interfaces
US10382394B2 (en) Assignment of tenancy to devices
US20100034386A1 (en) Device manager repository
CN113765713A (en) Data interaction method based on Internet of things equipment acquisition
CN112383881B (en) Information reporting method, device, equipment and storage medium
US20190207776A1 (en) Session management for communications between a device and a dtls server
US20210058477A1 (en) Compression context setup for data transmission for iot devices
WO2011116598A1 (en) Method and system for achieving management of gateway
Ilchev et al. Internet-of-Things communication protocol for low-cost devices in heterogeneous wireless networks
ES2904975T3 (en) Data transmission between a terminal and an associated server
Pacheco et al. Architecture for Privacy in Cloud of Things.
CN114585052A (en) Networking method, networking device, networking gateway and storage medium based on LoRa
CN107925630B (en) Communication policy control in machine-to-machine communication system
CN110855801A (en) Gateway for electric power multi-interface transmission and data transmission method
Raja et al. Internet of things: A research-oriented introductory
US11778036B2 (en) Management of communication between a terminal and a network server
TW202125291A (en) Gateway device with built-in server module and communication system thereof
Madhumathi et al. A comprehensive survey of IoT edge/fog computing protocols
CN114340037B (en) Communication method, system, equipment and medium between LoRaWAN (Long-Range Wide area network) equipment
Teng et al. Wi-SL: A Secure Lightweight WiFi Transmission Mechanism for IoT Devices

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
TA01 Transfer of patent application right

Effective date of registration: 20200108

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant after: Jingxin Communication System (China) Co., Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Jingxin Communication System (China) Co., Ltd.

Applicant before: Jingxin Communication System (Guangzhou) Co., Ltd.

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

TA01 Transfer of patent application right
CB03 Change of inventor or designer information

Inventor after: Bian Qinghong

Inventor after: Yang Bo

Inventor after: Xu Huijun

Inventor before: Bian Qinghong

CB03 Change of inventor or designer information
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Patentee after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Patentee before: Comba Telecom System (China) Ltd.

CP01 Change in the name or title of a patent holder