A communication method and system between devices

By configuring the D2D communication key and IQ signal parameters, direct communication between LoRa devices is achieved, which solves the problems of high latency and power consumption in LoRaWAN technology, improves real-time and data security, and allows nodes to be used offline.

CN114143756BActive Publication Date: 2024-12-24XIAMEN MILESIGHT IOT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111241266.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-25
Publication Date
2024-12-24
Estimated Expiration
2041-10-25

AI Technical Summary

Technical Problem

LoRaWAN technology has problems such as large delay, poor real-time performance, inability to communicate directly between nodes, high power consumption and need to use the network in terms of node communication.

Method used

By configuring the D2D communication key and IQ signal parameters, direct communication between the control device and the controlled device is achieved, reducing dependence on the gateway, using AES encryption algorithm to encrypt data, and introducing control commands and frequency information to achieve one-to-many and many-pairs One control relationship.

Benefits of technology

It reduces the data transmission delay between LoRa devices, improves real-time, realizes direct communication between nodes, improves data security, reduces power consumption of control devices, and allows nodes to be used offline.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114143756B_ABST
    Figure CN114143756B_ABST
Patent Text Reader

Abstract

The present invention relates to a communication method and system between devices, the method comprising: S1: the control device configures the IQ signal parameter in Radio.SetTxConfig in the instruction to different values ​​according to the type of the instruction to be sent, and then sends the instruction; the types of instructions include D2D and LoRaWAN; S2: the controlled device receives the instruction in real time, and performs the operation of parsing the instruction or discarding the instruction according to the different values ​​of the IQsignal parameter in Radio.SetTxConfig in the received instruction. The present invention reduces the gateway and network server in the LoRaWAN system, reduces the delay of data transmission between LoRa devices, and has high real-time performance; through the polarity switching of the node, the direct communication between LoRa nodes is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of communication technology, and in particular to a communication method and system between devices. Background Art

[0002] LoRaWAN (Long Range Wide Area Network) is a narrowband, low-power, wide-area IoT technology that has developed rapidly in recent years. Its network topology is a star network, consisting of network servers, gateways, and terminal nodes. It is widely used in smart meters, smart homes, smart infrastructure, etc. However, LoRaWAN still has the following problems in node communication:

[0003] (1) LoRaWAN technology needs to go through a gateway when transmitting data and linking and controlling other devices, which results in large delays and poor real-time performance;

[0004] (2) Communication between nodes depends on the gateway and NS. Without a gateway, nodes cannot communicate directly with each other.

[0005] (3) Class C master devices need to continue detecting even when not triggered, opening the transmit and receive windows, which consumes a lot of power;

[0006] (4) The node must be connected to the network before it can be used. Summary of the invention

[0007] In order to solve the above problems, the present invention proposes a communication method and system between devices.

[0008] The specific plan is as follows:

[0009] A communication method between devices, comprising the following steps:

[0010] S1: The control device configures the IQ signal parameter in Radio.SetTxConfig in the command to different values ​​according to the type of the command to be sent, and then sends the command; the types of commands include D2D and LoRaWAN;

[0011] S2: The controlled device receives the command in real time, and performs the operation of parsing the command or discarding the command according to the different values ​​of the IQsignal parameter in Radio.SetTxConfig in the received command.

[0012] Furthermore, before step S1, it also includes configuring D2D communication keys for both the control device and the controlled device, and obtaining corresponding AppSKey and NwkSKey through parsing the D2D communication keys. Both the control device and the controlled device perform encryption and decryption operations through the parsed AppSKey and NwkSKey.

[0013] Furthermore, the D2D communication key is encrypted using the AES encryption algorithm to obtain AppSKey and NwkSKey.

[0014] Furthermore, when configuring the D2D communication key for the control device and the controlled device, the same D2D communication key is configured for the control device and the controlled device belonging to the same group.

[0015] Furthermore, the D2D communication key is set to 16 bytes. When the D2D communication key received during the configuration process is less than 16 bytes, 0 is added to the high bit.

[0016] Furthermore, in step S1, when the type of the instruction to be sent is D2D, the IQ signal parameter is configured to true; when the type of the instruction to be sent is LoRaWAN, the IQ signal parameter is configured to false; in step S2, when the IQ signal parameter value in the received instruction is true, the operation of parsing the instruction is performed; when the IQ signal parameter value in the received instruction is false, the operation of discarding the instruction is performed.

[0017] Furthermore, before step S1, it also includes configuring control commands and frequency information for the control device, and configuring control commands and controlled information for the controlled device; when the control device sends a D2D instruction in step S1, the configured control command is sent in the form of a D2D instruction according to the configured frequency information; when the controlled device executes the operation of parsing the instruction in step S2, the instruction is matched with the configured control command, and if the match is successful, the instruction is executed in combination with the configured controlled information; if the match is unsuccessful, the instruction is discarded.

[0018] A communication system between devices includes a control device and a controlled device, wherein the control device and the controlled device execute the steps of the above method in the embodiment of the present invention.

[0019] The present invention adopts the above technical solution, reduces the gateway and network server in the LoRaWAN system, reduces the delay of data transmission between LoRa devices, and has high real-time performance; through the polarity switching of the nodes, direct communication between LoRa nodes is achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 Shown is a flow chart of Embodiment 1 of the present invention. DETAILED DESCRIPTION

[0021] To further illustrate various embodiments, the present invention provides drawings. These drawings are part of the disclosure of the present invention, which are mainly used to illustrate the embodiments and can be used in conjunction with the relevant descriptions in the specification to explain the operating principles of the embodiments. With reference to these contents, ordinary technicians in this field should be able to understand other possible implementations and advantages of the present invention.

[0022] The present invention will now be further described with reference to the accompanying drawings and specific implementation methods.

[0023] Embodiment 1:

[0024] The embodiment of the present invention provides a communication method between devices, such as Figure 1 As shown, the method comprises the following steps:

[0025] S1: The control device configures the IQ signal parameter in Radio.SetTxConfig in the instruction to different values ​​according to the type of the instruction to be sent, and then sends the instruction; the types of instructions include D2D and LoRaWAN.

[0026] S2: The controlled device receives the command in real time, and performs the operation of parsing the command or discarding the command according to the different values ​​of the IQsignal parameter in Radio.SetTxConfig in the received command.

[0027] In order to facilitate the separate control of devices belonging to different groups and prevent instructions from being received by devices in different groups, it is preferred in this embodiment to configure D2D communication keys (D2Dkey) for the control device and the controlled device, and configure the same D2D communication key for the control device and the controlled device belonging to the same group. The control device and the controlled device parse the configured D2D communication key to obtain the corresponding AppSKey and NwkSKey, and both the control device and the controlled device encrypt and decrypt the instructions through the AppSKey and NwkSKey obtained by parsing. In this embodiment, the D2D communication key is encrypted using the AES encryption algorithm to obtain AppSKey and NwkSKey. In this way, the instructions issued by the control device can be executed by the controlled devices in the same group, but cannot be executed by the controlled devices in different groups, realizing a one-to-many and many-to-one control relationship.

[0028] In this embodiment, the D2D communication key is set to 16 bytes. When the D2D communication key received during the configuration process is less than 16 bytes, 0 is added to the high bit.

[0029] In this embodiment, the value of the IQ signal parameter is configured as true and false. In other embodiments, it can also be configured as other values, which are not limited here. In the specific implementation process, in step S1, when the type of the instruction to be sent is D2D, the IQ signal parameter is configured as true; when the type of the instruction to be sent is LoRaWAN, the IQ signal parameter is configured as false. In step S2, when the value of the IQ signal parameter in the received instruction is true, the operation of parsing the instruction is performed; when the value of the IQ signal parameter in the received instruction is false, the operation of discarding the instruction is performed.

[0030] Furthermore, in order to better manage and control the commands sent and received by the controlled device and the control device, this embodiment also includes configuring the control command and frequency information for the control device, and configuring the control command and controlled information for the controlled device before step S1; when the control device sends a D2D instruction in step S1, the configured control command is sent in the form of a D2D instruction according to the configured frequency information; when the controlled device executes the operation of parsing the instruction in step S2, the instruction is matched with the configured control command. If the match is successful, the instruction is executed in combination with the configured controlled information; if the match is unsuccessful, the instruction is discarded.

[0031] The embodiments of the present invention have the following beneficial effects:

[0032] (1) It reduces the number of gateways and network servers in the LoRaWAN communication system, reduces the delay of data transmission between LoRa devices, and has high real-time performance;

[0033] (2) Direct communication between LoRa nodes is achieved through node polarity switching;

[0034] (3) By introducing the D2D communication key, AES is used to encrypt and decrypt data transmitted between devices in the same group, greatly improving data security;

[0035] (4) The division of "control device" and "controlled device" is introduced, so that the control device wakes up only when a command is sent, which greatly reduces the power consumption of the control device;

[0036] (5) The concept of "control command" is introduced to enrich the connection between devices. The control device and the controlled device can achieve a one-to-many or many-to-one control relationship.

[0037] (6) The node does not need to be connected to the network and can be used independently offline.

[0038] Embodiment 2:

[0039] The present invention further provides a communication system between devices, including a control device and a controlled device, wherein the control device and the controlled device execute the steps in the above method embodiment of embodiment 1 of the present invention.

[0040] Furthermore, in this embodiment, the control device is powered by a battery, and the controlled device is powered by a power supply.

[0041] Although the present invention has been specifically shown and described in conjunction with the preferred embodiments, it should be understood by those skilled in the art that various changes may be made to the present invention in form and details without departing from the spirit and scope of the present invention as defined by the appended claims, all of which are within the scope of protection of the present invention.

Claims

1. A communication method between devices, characterized in that: The following steps are involved: S1: Set the types of commands to be sent by the control device to include D2D and LoRaWAN. The control device configures the IQ signal parameter in Radio.SetTxConfig in the command to different values ​​according to the types of commands to be sent, and then sends the command. When the configuration is false, the LoRaWAN command is sent, and when the configuration is true, the D2D command is sent; Configure control commands and frequency information for the control device, and configure control commands and controlled information for the controlled device; When the control device sends a D2D command, the configured control command is sent in the form of a D2D command according to the configured frequency information; S2: The controlled device receives the command in real time, and performs the operation of parsing the command or discarding the command according to the different values ​​of the IQsignal parameter in Radio.SetTxConfig in the received command; When the controlled device performs the operation of parsing the instruction, it matches the instruction with the configured control command. If the match is successful, the instruction is executed in combination with the configured controlled information; if the match is unsuccessful, the instruction is discarded.

2. The method for communication between devices according to claim 1, characterized in that: Before step S1, it also includes configuring D2D communication keys for both the control device and the controlled device, and obtaining corresponding AppSKey and NwkSKey through D2D communication key parsing. Both the control device and the controlled device perform encryption and decryption operations through the obtained AppSKey and NwkSKey.

3. The communication method between devices according to claim 2, characterized in that: The D2D communication key is encrypted using the AES encryption algorithm to obtain AppSKey and NwkSKey.

4. The method for communication between devices according to claim 2, characterized in that: When configuring the D2D communication key for the control device and the controlled device, the same D2D communication key is configured for the control device and the controlled device belonging to the same group.

5. The method for communication between devices according to claim 2, characterized in that: The D2D communication key is set to 16 bytes. When the D2D communication key received during the configuration process is less than 16 bytes, 0 is added to the high bit.

6. A communication system between devices, characterized in that: The method comprises a control device and a controlled device, wherein the control device and the controlled device execute the steps of any method as claimed in claims 1 to 5.