CN112367249B - Communication method of LoRa device, loRaWAN system, electronic apparatus, and storage medium - Google Patents

Communication method of LoRa device, loRaWAN system, electronic apparatus, and storage medium Download PDF

Info

Publication number
CN112367249B
CN112367249B CN202011065965.0A CN202011065965A CN112367249B CN 112367249 B CN112367249 B CN 112367249B CN 202011065965 A CN202011065965 A CN 202011065965A CN 112367249 B CN112367249 B CN 112367249B
Authority
CN
China
Prior art keywords
lora
equipment
application server
server
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
CN202011065965.0A
Other languages
Chinese (zh)
Other versions
CN112367249A (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.)
Sunwave Communications Co Ltd
Original Assignee
Sunwave Communications 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 Sunwave Communications Co Ltd filed Critical Sunwave Communications Co Ltd
Priority to CN202011065965.0A priority Critical patent/CN112367249B/en
Publication of CN112367249A publication Critical patent/CN112367249A/en
Application granted granted Critical
Publication of CN112367249B publication Critical patent/CN112367249B/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
    • 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/18Multiprotocol handlers, e.g. single devices capable of handling multiple protocols

Abstract

The application relates to a communication method of LoRa equipment, a LoRaWAN system, an electronic device and a storage medium, which are applied to the access of the LoRa equipment in the LoRaWAN system, and the method comprises the following steps: the method comprises the steps that an application server obtains a report message of the LoRa equipment, wherein the report message comprises identification information of the LoRa equipment and report data to be analyzed; the method comprises the steps that an application server acquires a message processing handle corresponding to identification information of LoRa equipment from MapHandler, wherein the MapHandler records the corresponding relation between the identification information of the LoRa equipment and the message processing handle in advance; and the application server calls a protocol analysis function corresponding to the message processing handle to analyze the reported data to be analyzed, so as to obtain the analyzed reported data of the LoRa equipment. By the method and the device, the problem of low communication speed of the multi-protocol equipment in the LoRaWAN system in the related technology is solved, and the technical effect of improving the communication speed of the multi-protocol equipment in the LoRaWAN system is achieved.

Description

Communication method of LoRa device, loRaWAN system, electronic apparatus, and storage medium
Technical Field
The present application relates to the field of wireless communications technologies, and in particular, to a communication method for a LoRa device, a LoRaWAN system, an electronic apparatus, and a storage medium.
Background
Long Range Radio (LoRa) is one of Low Power Wide Area Network (LPWAN) communication technologies, and is an ultra-Long Range wireless transmission scheme based on a spread spectrum technology, which is adopted and popularized by Semtech corporation in the united states. The scheme changes the prior compromise consideration mode of transmission distance and power consumption, provides a simple system which can realize long distance, long battery life and large capacity for users, and further expands the sensing network.
LoRaWAN is a set of communication protocol and system architecture based on LoRa long-distance communication network design, and LoRaWAN protocol has optimized the sensor of low-power consumption, battery power supply, has included the terminal node of different grades in order to optimize the balance relation between network delay and battery life. When the data of the terminal equipment in the LoRaWAN system is reported, the terminal equipment sends wireless data to the outside; after receiving the wireless signal, the gateway reports the data to a network server through an Ethernet or a mobile phone operator network (3G or 4G); the network server stores the received data, identifies the type of the reported data packet, and pushes the reply message to the gateway if the data packet needs to be replied, and the reply message is sent out in a wireless mode by the gateway.
In recent years, the internet of things industry is rapidly developing, and as a new internet of things communication technology, the LoRaWAN technology is increasingly applied. However, the existing LoRaWAN terminal devices are often produced by multiple manufacturers, and the types of the LoRaWAN terminal devices are also often different, and although the LoRaWAN terminal devices are all devices developed based on the LoRaWAN technology, due to the different reasons of the manufacturers and the different types, the data protocols of the LoRaWAN terminal devices are often different. Therefore, in the case where there is a multi-protocol LoRaWAN terminal device in the LoRaWAN system, the LoRaWAN system often needs a lot of time to parse messages of LoRaWAN terminal devices of different protocols, which results in a decrease in communication speed of the LoRaWAN system.
At present, no effective solution is provided aiming at the problem of low communication speed of multi-protocol equipment in a LoRaWAN system in the related technology.
Disclosure of Invention
The embodiment of the application provides a communication method of a LoRa device, a LoRaWAN system, an electronic device and a storage medium, so as to at least solve the problem of low communication speed of multi-protocol devices in the LoRaWAN system in the related art.
In a first aspect, an embodiment of the present application provides a communication method for an LoRa device, which is applied to access of the LoRa device in an LoRaWAN system, where the LoRaWAN system includes an LoRa gateway, a network server, a network access server, and an application server, and includes: the application server acquires a report message of the LoRa equipment, wherein the report message comprises identification information of the LoRa equipment and report data to be analyzed; the application server acquires a message processing handle corresponding to the identification information of the LoRa equipment from a MapHandler, wherein the MapHandler records the corresponding relation between the identification information of the LoRa equipment and the message processing handle in advance; and the application server calls a protocol analysis function corresponding to the message processing handle to analyze the reported data to be analyzed, so as to obtain the analyzed reported data of the LoRa equipment.
In some embodiments, the identification information includes AppEUI and device service name, wherein the device service name of the LoRa device corresponds to one or more AppEUI; before the application server obtains the report message of the LoRa device, the method further includes: the application server acquires AppEUI and equipment service name of the LoRa equipment; the application server acquires a message processing handle corresponding to the equipment service name; and the application server generates the corresponding relation by taking the AppEII as a Key Value and taking the message processing handle corresponding to the equipment service name as a Value, and records the corresponding relation to the MapHandler.
In some embodiments, the identification information includes an AppEUI and a device service name; the step of acquiring, by the application server, a message processing handle corresponding to the identification information of the LoRa device in the maphardler includes: and the application server acquires a Key value as the message processing handle of the AppEUI from the MapHandler according to the AppEUI of the LoRa equipment.
In some embodiments, the obtaining, by the application server, the report message of the LoRa device includes: the method comprises the steps that the application server obtains a reporting message of the LoRa equipment sent by the network server, wherein the reporting message of the LoRa equipment is sent to the application server by the network server under the condition that the network access server obtains and verifies a network access request passing through the LoRa equipment, and the network access request of the LoRa equipment is sent to the network access server by the LoRa equipment through the LoRa gateway.
In some of these embodiments, the method further comprises: and under the condition that the application server does not acquire the message processing handle corresponding to the identification information of the LoRa equipment in the MapHandler, the application server marks the LoRa equipment as unknown equipment and sends error reporting information.
In some embodiments, the network access mode in which the LoRa device accesses the LoRaWAN system includes an OTAA network access mode.
In some embodiments, the coroutine processing mode of the application server includes a multiprogramming concurrent processing mode.
In some embodiments, the analyzing, by the application server, the to-be-analyzed report data according to the message processing handle corresponding to the identifier information of the LoRa device, and obtaining the analyzed to-be-analyzed report data includes: the application server calls a protocol analysis function corresponding to the LoRa equipment according to the message processing handle corresponding to the identification information of the LoRa equipment; and analyzing the reported data to be analyzed according to a protocol analysis function corresponding to the LoRa equipment to obtain the analyzed reported data to be analyzed.
In a second aspect, an embodiment of the present application provides a LoRaWAN system, including an LoRa gateway, a network server, a network access server, and an application server, where the LoRa gateway is configured to receive a network access request and report information of an LoRa device, and send the network access request and the report information of the LoRa device to the network server; the network server is used for sending the network access request of the LoRa equipment to the network access server, and sending the reported information of the LoRa equipment to the application server under the condition that the network access server verifies that the network access request of the LoRa equipment passes; the application server is configured to execute the communication method of the LoRa device according to the first aspect.
In a third aspect, an embodiment of the present application provides an electronic apparatus, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the processor implements the communication method of the LoRa device according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, and when the program is executed by a processor, the storage medium implements the communication method of the LoRa apparatus according to the first aspect.
Compared with the related art, the communication method of the LoRa device, the LoRaWAN system, the electronic device and the storage medium solve the problem that the communication speed of the multi-protocol device in the LoRaWAN system is low in the related art, and achieve the technical effect of improving the communication speed of the multi-protocol device in the LoRaWAN system.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a communication method of an LoRa device according to an embodiment of the present application;
fig. 2 is a block diagram of a LoRaWAN system according to an embodiment of the present application;
fig. 3 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated 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. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is to be expressly and implicitly understood by one of ordinary skill in the art that the embodiments described herein may be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. The use of the terms "a" and "an" and "the" and similar referents in the context of describing the invention (including a single reference) are to be construed in a non-limiting sense as indicating either the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference herein to "a plurality" means greater than or equal to two. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The present embodiment provides a communication method for an LoRa device, which is applied to access of the LoRa device in an LoRaWAN system, where the LoRaWAN system includes an LoRa gateway, a network server, a network access server, and an application server, and fig. 1 is a flowchart of the communication method for the LoRa device according to the embodiment of the present application, and as shown in fig. 1, the flowchart includes the following steps:
in this embodiment, the uplink data transmission direction in the LoRaWAN system may be: the LoRa equipment is transmitted to a LoRa gateway, the LoRa gateway transmits a network server, and the network server transmits the network server to a network access server and an application server; the downlink data transmission direction may be: the application server and the network access server are transmitted to the network server, the network server is transmitted to the LoRa gateway, and the LoRa gateway is transmitted to the LoRa equipment.
After the loRa gateway is powered on, a gateway program installed in the loRa gateway and network server installation software are automatically started, wherein the network server installation software can comprise Mysql, redis and Mqtt.
Step S101, an application server obtains a report message of the LoRa equipment, wherein the report message comprises identification information of the LoRa equipment and report data to be analyzed.
In this embodiment, the LoRa device may send the network access request to the network access server through the network server, and send the report information to the application server through the network server when receiving the network access request response information as allowing access.
The report message includes the identifier information of the LoRa device and the report data to be analyzed of the LoRa device, and the identifier information of the LoRa device may include: appEUI, devEUI, device service name.
Wherein, apEUI is application unique identification ID, apEUI is global unique application ID following IEEE802 EUI64 management method and is used for identifying an application service provider of LoRa equipment, devEUI is equipment unique ID and is used for uniquely identifying LoRa equipment, and IEEE802 EUI64 management method is followed, so that the uniqueness of global range address is ensured, and LoRaWAN global network deployment is facilitated.
In some embodiments, the obtaining, by the application server, the report message of the LoRa device includes: the method comprises the steps that an application server obtains a reporting message of the LoRa equipment sent by a network server, wherein the reporting message of the LoRa equipment is sent to the application server by the network server under the condition that the network access server obtains and verifies a network access request of the LoRa equipment, and the network access request of the LoRa equipment is sent to the network access server by the LoRa equipment through a LoRa gateway.
In this embodiment, the network access server may obtain, through the network server, a network access request sent by the LoRa device, verify the network access request, and send, when the verification is passed, network access request response information marked as permission to access to the LoRa device, where the LoRa device sends, through the network server, report information to the application server.
In this embodiment, the network access mode in which the LoRa device accesses the LoRaWAN system may include an OTAA network access mode, where the OTAA network access mode includes:
step 1, sending the report data to be analyzed to an LoRa gateway by LoRa equipment, wherein the report data to be analyzed is sent in a PHY frame format.
And 2, the LoRa gateway sends the network access request of the LoRa equipment to the network server.
And 3, the network server sends the network access request to the network access server.
And 4, under the condition that the network access request passes the verification, the network access server sends the network access request response information to the network server.
And 5, the network server sends the network access request response information to the LoRa gateway.
And 6, under the condition that the LoRa gateway receives the response information of the network access request, sending the reported data to be analyzed as uplink message data to the network server, wherein the uplink message data is sent in an MAC frame format.
And 7, the network server sends the uplink message data to the application server.
And 8, the application server responds to the uplink message data and sends the downlink message data serving as response information of the uplink message data to the network server, wherein the downlink message data is sent in an MAC frame format.
And 9, the network server sends the downlink message data to the LoRa gateway.
And step 10, converting the downlink message data into a PHY frame format by the LoRa gateway and sending the PHY frame format to the LoRa device.
OTAA (Over The Air Activation) is an Air network access method of The LoRaWAN system. When the LoRa equipment is in a non-network-accessing state when being powered on, the LoRa equipment needs to be accessed to the network first to communicate with the server. The operation is that LoRa equipment sends a network access request to request network access, then the server accesses the network uniformly and returns network access request response information, and the LoRa equipment analyzes the information to obtain communication parameters and then communicates with the server normally.
The OTAA network access mode has higher flexibility and security, and ensures the security of communication of the LoRa equipment in the LoRaWAN system.
In other embodiments, the network access mode of the LoRa device accessing the LoRaWAN system may further include an ABP network access mode.
Step S102, the application server obtains a message processing handle corresponding to the identification information of the LoRa device from the maphardler, where the maphardler has a pre-recorded correspondence relationship between the identification information of the LoRa device and the message processing handle.
In some embodiments, the identification information includes AppEUI and device service names, where the device service names of the LoRa devices correspond to one or more appeuis; obtaining MapHandler includes the following steps:
step 1, the application server obtains AppEUI and equipment service name of LoRa equipment.
And 2, the application server acquires a message processing handle corresponding to the equipment service name.
And 3, the application server takes AppEUI as a Key Value and takes the message processing handle corresponding to the equipment service name as a Value to generate a corresponding relation, and records the corresponding relation to MapHandler.
In some embodiments, the obtaining, by the application server, the message processing handle corresponding to the identification information of the LoRa device in the MapHandler includes: the application server acquires the Key value as the message processing handle of the AppEUI of the LoRa equipment from the MapHandler according to the AppEUI of the LoRa equipment.
In this embodiment, the application server may create, according to the device service name described in the configuration file in the LoRaWAN system and the AppEUI corresponding to the device service name, a correspondence relationship between the AppEUI and the device service name and the message processing handle, where the AppEUI is used as a Key Value and the message processing handle corresponding to the device service name is used as a Value, and record the correspondence relationship to mapnandler, which is denoted as Map [ AppEUI ] Handler.
The Map [ AppEI ] Handler can be configured in an application server in a form of a message processing bus interface, the device service name can reflect a manufacturer of LoRa equipment, protocol analysis functions used by the LoRa equipment and developed by different manufacturers based on LoRaWAN are possibly different, and multiple AppEIs may exist in the same LoRa equipment, so that message processing handles corresponding to each device service name can be recorded into the Map [ AppEI ] Handler through the device service name, the message processing handles corresponding to each device service name are acquired through the AppEI, reported data to be analyzed and sent by the LoRa equipment are analyzed through the message processing handle acquisition protocol analysis functions, the message processing handles of the multi-protocol LoRa equipment in the LoRaWAN system are conveniently managed in a unified mode, and the communication speed of the subsequent multi-protocol LoRa equipment is conveniently improved.
Step S103, the application server calls a protocol analysis function corresponding to the message processing handle to analyze the reported data to be analyzed, and the analyzed reported data of the LoRa equipment is obtained.
In this embodiment, after the message processing handle corresponding to the identifier information of the LoRa device is acquired, a protocol parsing function corresponding to the LoRa device may be called by the message processing handle to parse the to-be-parsed report data of the LoRa device, so as to obtain the parsed report data, and meanwhile, the protocol processing manner of the application server may include a multi-protocol concurrent processing manner, so that the to-be-parsed report data of different protocol devices may be processed simultaneously in step S103, which is convenient for the multi-protocol devices to access and manage the different protocol devices by using MapHandler.
In some of these embodiments, the method further comprises: and under the condition that the application server does not acquire the message processing handle corresponding to the identification information of the LoRa equipment in the MapHandler, the application server marks the LoRa equipment as unknown equipment and sends error reporting information.
Through the steps S101 to S104, the network server, the network access server, and the application server are started through the LoRaWAN system, and in the initialization process of the application server, according to the device service name recorded in the configuration file in the LoRaWAN system and the AppEUI corresponding to the device service name, the AppEUI is created as a Key Value, the message processing handle corresponding to the device service name is a Value, a correspondence between the AppEUI and the device service name and the message processing handle is generated, the correspondence is recorded as Map [ AppEUI ] Handler, after the LoRa device is powered on, the LoRa system is accessed through the OTAA network access mode, the network access server records identification information of the LoRa device, the maphanir arranged in the application server obtains the message processing handle matched with the LoRa device according to the identification information of the LoRa device, and reports to-be-analyzed ra data according to-analyzed ra data sent by the message processing handle, so that analyzed ra data are obtained, the problem that a communication speed of a low-speed protocol of the LoRaWAN system is achieved in related technologies is solved.
The embodiment also provides a LoRaWAN system, which is used to implement the foregoing embodiments and preferred embodiments, and the description of the system is omitted here. While the system described in the embodiments below is preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.
Fig. 2 is a block diagram of a LoRaWAN system according to an embodiment of the present application, and as shown in fig. 2, the system includes: the system comprises an LoRa gateway 31, a network server 32 coupled to the LoRa gateway 31, a network access server 33 coupled to the network server 32, and an application server 34 coupled to the network access server 33, wherein the LoRa gateway 31 is configured to receive a network access request and report information of the LoRa device 30, and send the network access request and the report information of the LoRa device 30 to the network server 32; the network server 32 is configured to send the network access request of the LoRa device 30 to the network access server 33, and send the report information of the LoRa device 30 to the application server 34 when the network access server 33 verifies that the network access request of the LoRa device 30 passes; the application server 34 is configured to execute the communication method of the LoRa device according to the above-described embodiment.
In some embodiments, the application server 34 is configured to obtain a report message of the LoRa device 30, where the report message includes the identification information of the LoRa device 30 and the report data to be analyzed; the application server 34 acquires a message processing handle corresponding to the identification information of the LoRa device 30 from a maphardler, wherein the maphardler records a correspondence relationship between the identification information of the LoRa device 30 and the message processing handle in advance; the application server 34 calls a protocol parsing function corresponding to the message processing handle to parse the reported data to be parsed, so as to obtain the reported data of the LoRa device 30.
In some embodiments, the identification information includes AppEUI and device service names, where the device service names of the LoRa device 30 correspond to one or more appeuis; the application server 34 is configured to obtain the AppEUI and device service name of the LoRa device 30; the application server 34 acquires a message processing handle corresponding to the device service name; the application server 34 uses the AppEUI as a Key Value and uses the message processing handle corresponding to the device service name as a Value to generate a corresponding relationship, and records the corresponding relationship to MapHandler.
In some of these embodiments, the identification information includes the AppEUI and the device service name; the application server 34 is configured to acquire the message processing handle with the Key value being AppEUI in MapHandler according to AppEUI of the LoRa device 30.
In some embodiments, the application server 34 is configured to obtain the report message of the LoRa device 30 sent by the network server 33, where the report message of the LoRa device 30 is sent to the application server 34 by the network server 33 when the network access server 32 obtains and verifies the network access request of the LoRa device 30, and the network access request of the LoRa device 30 is sent to the network access server 32 by the LoRa device 30 through the LoRa gateway 31.
In some embodiments, the network access mode in which the LoRa device 3030 accesses the LoRaWAN system includes an OTAA network access mode.
In some embodiments, the coroutine processing mode of the application server 34 includes a multiprogramming concurrent processing mode.
In some embodiments, the application server 34 is configured to mark the LoRa device 30 as an unknown device and send error information if a message processing handle corresponding to the identification information of the LoRa device 30 is not acquired in the maphardler.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
The present embodiment further provides an electronic device, and fig. 3 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application, and as shown in fig. 3, the electronic device includes a memory 404 and a processor 402, where the memory 404 stores a computer program, and the processor 402 is configured to execute the computer program to perform the steps in any of the method embodiments.
Specifically, the processor 402 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 404 may include, among other things, mass storage 404 for data or instructions. By way of example, and not limitation, memory 404 may include a Hard Disk Drive (Hard Disk Drive, abbreviated to HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 404 may include removable or non-removable (or fixed) media, where appropriate. The memory 404 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 404 is a Non-Volatile (Non-Volatile) memory. In certain embodiments, memory 404 includes Read-Only Memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically Erasable PROM (EEPROM), electrically rewritable ROM (EAROM), or FLASH Memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory 404 (FPMDRAM), an Extended data output Dynamic Random-Access Memory (eddram), a Synchronous Dynamic Random-Access Memory (SDRAM), and the like.
Memory 404 may be used to store or cache various data files for processing and/or communication use, as well as possibly computer program instructions for execution by processor 402.
The processor 402 reads and executes computer program instructions stored in the memory 404 to implement the communication method of the LoRa device in any of the above embodiments.
Optionally, the electronic apparatus may further include a transmission device 406 and an input/output device 408, where the transmission device 406 is connected to the processor 402, and the input/output device 408 is connected to the processor 402.
Alternatively, in this embodiment, the processor 402 may be configured to execute the following steps by a computer program:
s1, an application server obtains a report message of the LoRa equipment, wherein the report message comprises identification information of the LoRa equipment and report data to be analyzed.
And S2, the application server acquires the message processing handle corresponding to the identification information of the LoRa equipment from the MapHandler, wherein the MapHandler records the corresponding relation between the identification information of the LoRa equipment and the message processing handle in advance.
And S3, the application server calls a protocol analysis function corresponding to the message processing handle to analyze the reported data to be analyzed, and the analyzed reported data of the LoRa equipment is obtained.
It should be noted that, for specific examples in this embodiment, reference may be made to examples described in the foregoing embodiments and optional implementations, and details of this embodiment are not described herein again.
In addition, in combination with the communication method of the LoRa device in the foregoing embodiments, the embodiments of the present application may be implemented by providing a storage medium. The storage medium having stored thereon a computer program; the computer program, when executed by a processor, implements the communication method of any of the LoRa devices in the above embodiments.
It should be understood by those skilled in the art that various features of the above embodiments can be combined arbitrarily, and for the sake of brevity, all possible combinations of the features in the above embodiments are not described, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the features.
The above examples are merely illustrative of several embodiments of the present application, and the description is more specific and detailed, but not to be construed as limiting the scope of the present application. 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, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (10)

1. A communication method of LoRa equipment is applied to access of the LoRa equipment in a LoRaWAN system, wherein the LoRaWAN system comprises a LoRa gateway, a network server, a network access server and an application server, and is characterized by comprising the following steps:
the application server acquires a report message of the LoRa equipment, wherein the report message comprises identification information of the LoRa equipment and report data to be analyzed;
the application server acquires a message processing handle corresponding to the identification information of the LoRa equipment from a MapHandler, wherein the MapHandler records the corresponding relationship between the identification information of the LoRa equipment and the message processing handle in advance;
and the application server calls a protocol analysis function corresponding to the message processing handle to analyze the reported data to be analyzed, so as to obtain the analyzed reported data of the LoRa equipment.
2. The communication method of the LoRa device according to claim 1, wherein the identification information includes AppEUI and device service names, wherein the device service names of the LoRa device correspond to one or more AppEUI; before the application server obtains the report message of the LoRa device, the method further includes:
the application server acquires AppEUI and equipment service name of the LoRa equipment;
the application server acquires a message processing handle corresponding to the equipment service name;
and the application server generates the corresponding relation by taking the AppEII as a Key Value and taking the message processing handle corresponding to the equipment service name as a Value, and records the corresponding relation to the MapHandler.
3. The communication method of the LoRa device according to claim 2, wherein the identification information includes AppEUI and a device service name; the step of acquiring, by the application server, a message processing handle corresponding to the identification information of the LoRa device in the maphardler includes:
and the application server acquires a Key value as the message processing handle of the AppEUI from the MapHandler according to the AppEUI of the LoRa equipment.
4. The communication method of the LoRa device of claim 1, wherein the obtaining, by the application server, the report message of the LoRa device includes:
the method comprises the steps that an application server obtains a report message of the LoRa equipment sent by the network server, wherein the report message of the LoRa equipment is sent to the application server by the network server under the condition that the network access server obtains and verifies a network access request passing through the LoRa equipment, and the network access request of the LoRa equipment is sent to the network access server by the LoRa equipment through the LoRa gateway.
5. The communication method of the LoRa device of claim 1, further comprising:
and under the condition that the application server does not acquire the message processing handle corresponding to the identification information of the LoRa equipment in the MapHandler, the application server marks the LoRa equipment as unknown equipment and sends error reporting information.
6. The communication method of the LoRa device according to claim 1, wherein the network access mode in which the LoRa device accesses the LoRaWAN system includes an OTAA network access mode.
7. The communication method of the LoRa devices as claimed in any one of claims 1 to 6, wherein the coroutine processing mode of the application server includes a multiprogramming concurrent processing mode.
8. A LoRaWAN system comprises a LoRa gateway, a network server, a network access server and an application server, and is characterized in that,
the LoRa gateway is used for receiving a network access request and report information of the LoRa equipment and sending the network access request and the report information of the LoRa equipment to the network server;
the network server is used for sending the network access request of the LoRa equipment to the network access server, and sending the reported information of the LoRa equipment to the application server under the condition that the network access server verifies that the network access request of the LoRa equipment passes;
the application server is configured to execute the communication method of the LoRa device according to any one of claims 1 to 7.
9. An electronic apparatus comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the communication method of the LoRa device of any one of claims 1 to 7.
10. A storage medium having stored therein a computer program, wherein the computer program is configured to execute the communication method of the LoRa apparatus according to any one of claims 1 to 7 when the computer program is executed.
CN202011065965.0A 2020-09-30 2020-09-30 Communication method of LoRa device, loRaWAN system, electronic apparatus, and storage medium Active CN112367249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011065965.0A CN112367249B (en) 2020-09-30 2020-09-30 Communication method of LoRa device, loRaWAN system, electronic apparatus, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011065965.0A CN112367249B (en) 2020-09-30 2020-09-30 Communication method of LoRa device, loRaWAN system, electronic apparatus, and storage medium

Publications (2)

Publication Number Publication Date
CN112367249A CN112367249A (en) 2021-02-12
CN112367249B true CN112367249B (en) 2022-12-06

Family

ID=74507066

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011065965.0A Active CN112367249B (en) 2020-09-30 2020-09-30 Communication method of LoRa device, loRaWAN system, electronic apparatus, and storage medium

Country Status (1)

Country Link
CN (1) CN112367249B (en)

Citations (8)

* 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
CN106993278A (en) * 2017-04-07 2017-07-28 青檬微智科技(深圳)有限公司 A kind of method, relevant device and system for automatically controlling smart machine access
CN108011814A (en) * 2018-01-12 2018-05-08 河北工业大学 A kind of multi-protocols intelligent gateway and its implementation based on arrowband Internet of Things
DE202018001637U1 (en) * 2017-03-30 2018-05-22 Smartlog N.V. Forwarding of data
CN109412937A (en) * 2018-11-07 2019-03-01 京信通信系统(中国)有限公司 Gateway, LoRa network system, gateway operation method and storage medium
CN110213677A (en) * 2019-07-03 2019-09-06 北京市住房和城乡建设科学技术研究所(北京市房屋安全鉴定总站) Intelligent low-power consumption multi-functional energy table design method based on LoRa
CN110933095A (en) * 2019-12-04 2020-03-27 锐捷网络股份有限公司 Message parsing method and device
CN111464322A (en) * 2019-01-18 2020-07-28 阿里巴巴集团控股有限公司 Communication method, device, equipment and storage medium of Internet of things platform and equipment

Patent Citations (8)

* 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
DE202018001637U1 (en) * 2017-03-30 2018-05-22 Smartlog N.V. Forwarding of data
CN106993278A (en) * 2017-04-07 2017-07-28 青檬微智科技(深圳)有限公司 A kind of method, relevant device and system for automatically controlling smart machine access
CN108011814A (en) * 2018-01-12 2018-05-08 河北工业大学 A kind of multi-protocols intelligent gateway and its implementation based on arrowband Internet of Things
CN109412937A (en) * 2018-11-07 2019-03-01 京信通信系统(中国)有限公司 Gateway, LoRa network system, gateway operation method and storage medium
CN111464322A (en) * 2019-01-18 2020-07-28 阿里巴巴集团控股有限公司 Communication method, device, equipment and storage medium of Internet of things platform and equipment
CN110213677A (en) * 2019-07-03 2019-09-06 北京市住房和城乡建设科学技术研究所(北京市房屋安全鉴定总站) Intelligent low-power consumption multi-functional energy table design method based on LoRa
CN110933095A (en) * 2019-12-04 2020-03-27 锐捷网络股份有限公司 Message parsing method and device

Also Published As

Publication number Publication date
CN112367249A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
EP3905628A1 (en) Message sending method and related device
KR101999148B1 (en) System and method for detecting rogue access point and user device and computer program for the same
CN110635933B (en) Apparatus, control method, and recording medium for managing network of SDN
CN108174405B (en) Product testing method and device
WO2019161780A1 (en) Method and apparatus for setting dormancy period of service
US7720097B2 (en) Communication apparatus, communication method, communication program and recording medium
WO2019205952A1 (en) Information processing method and apparatus
KR101367497B1 (en) Apparatus and methods for universal services interface networking
EP3163946B1 (en) Transmission list in wi-fi acces point
EP2727261A1 (en) Method of associating a client with an access point in a wireless local area network
KR20050001464A (en) Configuration of wireless network client
US8984590B2 (en) Enabling access to key lifetimes for wireless link setup
JP5737030B2 (en) Wireless network system, control method therefor, and wireless network relay device
WO2011076011A1 (en) Method, system for defining message in machine-to-machine platform, and machine-to-machine platform
CN106792694B (en) Access authentication method and access equipment
CN111263377B (en) Network configuration method, device, equipment and system and distribution network testing method and system
CN110996346B (en) Downlink message trajectory tracking method and device and computer readable storage medium
CN111464322A (en) Communication method, device, equipment and storage medium of Internet of things platform and equipment
CN112367249B (en) Communication method of LoRa device, loRaWAN system, electronic apparatus, and storage medium
IL272881B2 (en) Method and device for wireless communications
CN107534585A (en) Communication means and terminal
CN112019358A (en) Network configuration method, device, equipment and system
CN113918423A (en) Cloud platform monitoring method and device and application thereof
CN114697269A (en) Data communication method, apparatus, device and medium
AU2018445805B2 (en) Terminal configuration method and apparatus

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

Effective date of registration: 20220414

Address after: 310051 3D building, No. 581 torch Avenue, Binjiang District, Hangzhou, Zhejiang

Applicant after: SUNWAVE COMMUNICATIONS Co.,Ltd.

Address before: Room 2003, block C, 581 Huoju Avenue, Puyan street, Binjiang District, Hangzhou City, Zhejiang Province, 310051

Applicant before: Zhejiang Sanwei wanyilian Technology Co.,Ltd.

Applicant before: SUNWAVE COMMUNICATIONS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant