Wireless communication method, gateway, server platform and wireless communication system

By introducing base station gateways and terminal gateways into the LoRa communication system, combined with the encryption and verification mechanism of the server-side platform, the problem of data transmission security of LoRa communication terminals is solved, and the security of data transmission is improved.

CN115460603BActive Publication Date: 2025-06-06GUANGDONG MESPAL TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211053201.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-31
Publication Date
2025-06-06
Estimated Expiration
2042-08-31

AI Technical Summary

Technical Problem

In places where 4G or NB-iot networks are poor, LoRa communication terminals cannot guarantee the security of data transmission and are easily intercepted by external networks and interfered with.

Method used

The base station gateway and terminal gateway are introduced in the LoRa communication system, and the data is encrypted and verified through the server-side platform to ensure the security of data transmission.

Benefits of technology

By adding base station gateways and terminal gateways in the LoRa communication system, encryption and verification of data transmission are realized, and the security of data transmission is significantly improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115460603B_ABST
    Figure CN115460603B_ABST
Patent Text Reader

Abstract

The present invention discloses a wireless communication method, a gateway, a server-side platform and a wireless communication system, and relates to the field of communication technology. The wireless communication method comprises: a base station gateway sends a login request to a server-side platform; the base station gateway obtains the ciphertext data sent by the server-side platform and verifies the ciphertext data; the base station gateway decrypts the verified ciphertext data to generate instruction data, and sends the instruction data to the base station LoRa node, the terminal LoRa node for verification and the terminal gateway for verification in sequence; the base station gateway obtains the status information sent by the base station LoRa node and verifies the status information, and the status information is generated by the terminal gateway according to the status change data sent by the execution part and sent to the terminal LoRa node and the base station LoRa node in sequence for verification; the base station gateway encrypts the verified status information to generate ciphertext status data, and sends the ciphertext status data to the server-side platform. The present invention can greatly improve the security of data transmission.
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 wireless communication method, a base station gateway, a server-side platform, a terminal gateway and a wireless communication system. Background Art

[0002] In underground garages or basements where 4G or NB-iot networks are poor, the devices here cannot communicate wirelessly with the outside world through 4G or NB-iot networks. In this case, LoRa (Long Range Radio) communication becomes one of the feasible solutions.

[0003] LoRa is a subset of LORAWAN, a modulation technology in the physical layer. It uses linear modulation spread spectrum, which can significantly improve its receiving sensitivity and achieve a longer communication distance than other modulation technologies. However, LoRa communication terminals generally use one of the LoRa nodes as a base station and communicate with other LoRa nodes directly through plain text and transparent transmission, which cannot guarantee the security of transmitted data; if the transmitted data is intercepted by an external network and inserted with data that interferes with the execution of the terminal device before being transmitted to the terminal device, it will cause a great impact. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a wireless communication method, a base station gateway, a server platform, a terminal gateway and a wireless communication system, which can greatly improve the security of data transmission.

[0005] In order to solve the above technical problems, the present invention provides a wireless communication method, comprising: a base station gateway sends a login request to a server-side platform, so that the server-side platform verifies the legitimacy of the base station gateway according to the login request; the base station gateway obtains the ciphertext data sent by the server-side platform and verifies the ciphertext data; the base station gateway decrypts the ciphertext data that passes the verification to generate instruction data, and sends the instruction data to the base station LoRa node, the terminal LoRa node for verification and the terminal gateway for verification in sequence, so that the terminal gateway drives the execution part according to the instruction data that passes the verification; the base station gateway obtains the status information sent by the base station LoRa node, and verifies the status information, the status information is generated by the terminal gateway according to the status change data sent by the execution part and is sent to the terminal LoRa node and the base station LoRa node in sequence for verification; the base station gateway encrypts the status information that passes the verification to generate ciphertext status data, and sends the ciphertext status data to the server-side platform, so that the server-side platform decrypts the ciphertext status data to generate and display plaintext status data.

[0006] As an improvement of the above scheme, the base station gateway sends the instruction data to the base station LoRa node, the terminal LoRa node and the terminal gateway for verification in sequence, so that the terminal gateway drives the execution part according to the verified instruction data. The steps include: the base station gateway sends the instruction data to the base station LoRa node; the base station LoRa node verifies the received instruction data and sends the verified instruction data to the terminal LoRa node; the terminal LoRa node verifies the received instruction data and sends the verified instruction data to the terminal gateway; the terminal gateway verifies the received instruction data to determine whether the instruction data is correct. When it is judged to be correct, the instruction information is read from the instruction data and sent to the execution part so that the execution part performs the corresponding action. When it is judged to be negative, the instruction data is discarded.

[0007] As an improvement of the above-mentioned scheme, the terminal gateway generates the status information according to the status change data sent by the execution part and sends it to the terminal LoRa node and the base station LoRa node for verification in sequence, including: when the status of the execution part changes, the execution part sends the status change data to the terminal gateway; the terminal gateway verifies the received status change data, reads the status information of the device according to the verified status change data, and sends the status information to the terminal LoRa node; the terminal LoRa node verifies the received status information, and sends the verified status information to the base station LoRa node; the base station LoRa node verifies the received status information, and sends the verified status information to the base station gateway.

[0008] As an improvement of the above-mentioned scheme, the step of the server-side platform verifying the legitimacy of the base station gateway according to the login request includes: the server-side platform receives the login request sent by the base station gateway, and determines whether the login request is legal; if it is judged as yes, the terminal device corresponding to the base station gateway is searched, and the terminal device is displayed as online; if it is judged as no, the base station gateway is taken offline.

[0009] As an improvement of the above solution, the step of generating ciphertext data includes: the server-side platform encrypts the instruction data to generate ciphertext data.

[0010] Correspondingly, the present invention also provides a base station gateway, comprising: a login module, used to send a login request to a server-side platform, so that the server-side platform verifies the legitimacy of the base station gateway according to the login request; a base station verification module, used to obtain the ciphertext data sent by the server-side platform and verify the ciphertext data; a gateway decryption module, used to decrypt the ciphertext data that has passed the verification to generate instruction data, and send the instruction data to the base station LoRa node, the terminal LoRa node for verification and the terminal gateway for verification in sequence, so that the terminal gateway drives the execution part according to the instruction data that has passed the verification; a state acquisition module, used to obtain the state information sent by the base station LoRa node, and verify the state information, the state information is generated by the terminal gateway according to the state change data sent by the execution part and sent to the terminal LoRa node and the base station LoRa node in sequence for verification; a gateway encryption module, used to encrypt the state information that has passed the verification to generate ciphertext state data, and send the ciphertext state data to the server-side platform, so that the server-side platform decrypts the ciphertext state data to generate and display plaintext state data.

[0011] Correspondingly, the present invention also provides a server-side platform, including: a verification module, used to verify the legitimacy of the base station gateway according to a login request sent by the base station gateway; a platform encryption module, used to encrypt instruction data to generate ciphertext data; a ciphertext sending module, used to send the ciphertext data to a legitimate base station gateway; a platform decryption module, used to decrypt the ciphertext status data sent by the base station gateway to generate and display plaintext status data.

[0012] As an improvement of the above-mentioned scheme, the verification module includes: a login verification unit, which is used to receive a login request sent by the base station gateway and determine whether the login request is legal; a gateway management unit, which is used to search for the terminal device corresponding to the base station gateway and display that the terminal device is online when the login verification unit determines that the login request is legal, and to take the base station gateway offline when the login verification unit determines that the login request is illegal.

[0013] Correspondingly, the present invention also provides a terminal gateway, comprising: a first terminal verification module, used to verify the instruction data sent by the terminal LoRa node to determine whether the instruction data is correct; a first processing module, used to read instruction information from the instruction data when the first terminal verification module determines that the instruction data is correct, and send the instruction information to the execution part so that the execution part performs a corresponding action, and also used to discard the instruction data when the first terminal verification module determines that the instruction data is incorrect; a second terminal verification module, used to verify the received state change data; a second processing module, used to read the status information of the device according to the verified state change data, and send the status information to the terminal LoRa node.

[0014] Correspondingly, the present invention also provides a wireless communication system, including the above-mentioned server-side platform, the above-mentioned base station gateway, the base station LoRa node, the terminal LoRa node, the above-mentioned terminal gateway and an execution part; the server-side platform and the base station gateway communicate via mobile communication; the base station gateway and the base station LoRa node, the terminal LoRa node and the terminal gateway, and the terminal gateway and the execution part all communicate via a serial port; the base station LoRa node and the terminal LoRa node communicate via the LoRa method.

[0015] The implementation of the present invention has the following beneficial effects:

[0016] The present invention adds a base station gateway between the server-side platform and the base station LoRa node, so that the server-side platform can add an encryption process to the command data sent, and the ciphertext data sent by the server-side platform needs to be decrypted before the command data can be obtained; at the same time, the present invention adds a terminal gateway between the terminal LoRa node and the execution part, so that after the terminal gateway receives the command data transmitted by the terminal LoRa node, a verification process can be added to verify the command data, and the command data is transmitted to the execution part for execution after the verification is passed; thereby greatly improving the security of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 is a flow chart of an embodiment of a wireless communication method of the present invention;

[0018] Figure 2 is a schematic diagram of an embodiment of a wireless communication method of the present invention;

[0019] Figure 3 is a schematic diagram of the structure of an embodiment of a wireless communication system of the present invention;

[0020] Figure 4 It is a schematic diagram of the structure of an embodiment of a server platform in a wireless communication system of the present invention;

[0021] Figure 5 It is a schematic diagram of the structure of an embodiment of a base station gateway in a wireless communication system of the present invention;

[0022] Figure 6 It is a schematic diagram of the structure of an embodiment of a terminal gateway in a wireless communication system of the present invention. DETAILED DESCRIPTION

[0023] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.

[0024] See also Figure 1 , Figure 1 The flowchart of the first embodiment of the wireless communication method of the present invention is shown, which includes:

[0025] S101, the base station gateway sends a login request to the server platform, so that the server platform verifies the legitimacy of the base station gateway according to the login request;

[0026] Different from the prior art, the present invention needs to pre-build a server-side platform, a LoRa base station and a terminal device, wherein the LoRa base station includes a base station gateway and a base station LoRa node, and the terminal device includes a terminal gateway, a terminal LoRa node and a device execution part. Among them, the server-side platform and the base station gateway communicate via a mobile communication method (3G, 4G, 5G); the base station gateway and the base station LoRa node, the terminal LoRa node and the terminal gateway, and the terminal gateway and the execution part all communicate via a serial port; the base station LoRa node and the terminal LoRa node communicate via the LoRa method.

[0027] When working, after the base station gateway goes online, it sends a login request to the server platform through the 4G mobile network; at the same time, after receiving the login request, the server platform can perform a legitimacy verification. Specifically, the steps for the server platform to verify the legitimacy of the base station gateway according to the login request include:

[0028] (1) The server platform receives the login request sent by the base station gateway and determines whether the login request is legal;

[0029] (2) If the judgment is yes, the terminal device corresponding to the base station gateway is searched and the terminal device is displayed as online; that is, if the verification is successful, the terminal device connected to the base station gateway is searched and displayed as online;

[0030] (3) If the judgment is no, the base station gateway is taken offline.

[0031] S102, the base station gateway obtains the ciphertext data sent by the server platform and verifies the ciphertext data;

[0032] It should be noted that when the server-side platform needs to send command data to the base station gateway, the command data can be first encrypted using AES encryption to generate ciphertext data, and then the encrypted ciphertext data can be sent to the base station gateway through the 4G mobile network.

[0033] S103, the base station gateway decrypts the verified ciphertext data to generate instruction data, and sends the instruction data to the base station LoRa node, the terminal LoRa node and the terminal gateway for verification in sequence, so that the terminal gateway drives the execution part according to the verified instruction data;

[0034] After receiving the encrypted ciphertext data, the base station gateway performs data verification on the ciphertext data; after the verification passes, the ciphertext data is decrypted to obtain the plaintext instruction data; then, the instruction data is sent to the base station LoRa node, the terminal LoRa node verification and the terminal gateway for verification in turn, so that the terminal gateway drives the execution part according to the verified instruction data.

[0035] Specifically, the base station gateway sends the instruction data to the base station LoRa node, the terminal LoRa node and the terminal gateway in sequence for verification, so that the terminal gateway drives the execution part according to the verified instruction data. The steps include:

[0036] (1) The base station gateway sends the command data to the base station LoRa node through the serial port;

[0037] (2) The base station LoRa node verifies the received command data and sends the verified command data to the terminal LoRa node;

[0038] The base station LoRa node verifies the received command data; after the verification, the base station LoRa node transmits the command data to the LoRa node of the terminal device through LoRa communication.

[0039] (3) The terminal LoRa node verifies the received command data and sends the verified command data to the terminal gateway;

[0040] After receiving the command data, the LoRa node in the terminal device verifies the command data; after the verification passes, the command data is transmitted to the terminal gateway through the serial port.

[0041] (4) The terminal gateway verifies the received instruction data to determine whether the instruction data is correct; if it is correct, it reads the instruction information from the instruction data and sends the instruction information to the execution part so that the execution part performs the corresponding action; if it is not correct, it discards the instruction data.

[0042] The terminal gateway verifies the data to determine whether the instruction data is correct; if correct, it reads the device information and instruction information, and then sends the instruction information to the execution part; if incorrect, it is discarded.

[0043] Correspondingly, after receiving the instruction information, the execution part performs the corresponding action.

[0044] S104, the base station gateway obtains the status information sent by the base station LoRa node and verifies the status information;

[0045] The status information is generated by the terminal gateway based on the status change data sent by the execution part, and is sent to the terminal LoRa node and the base station LoRa node for verification in turn;

[0046] It should be noted that when the execution part is completed and the state of the execution part changes, or when the state of the execution part changes artificially, the execution part will upload the state change data to the terminal gateway through the serial port; the terminal gateway will then generate state information based on the state change data, and send it to the terminal LoRa node and the base station LoRa node in turn for verification.

[0047] Specifically, the terminal gateway generates status information according to the status change data sent by the execution part and sends it to the terminal LoRa node and the base station LoRa node for verification in sequence, including:

[0048] (1) When the execution part changes state, the execution part sends the state change data to the terminal gateway;

[0049] (2) The terminal gateway verifies the received state change data, reads the device status information based on the verified state change data, and sends the status information to the terminal LoRa node;

[0050] After receiving the state change data, the terminal gateway verifies the state change data; if the verification passes, it reads the device status information from the state change data and reports the status information to the terminal LoRa node through the serial port.

[0051] (3) The terminal LoRa node verifies the received status information and sends the verified status information to the base station LoRa node;

[0052] After receiving the reported status information, the terminal LoRa node verifies the status information; if the verification passes, the reported status information is transmitted to the base station LoRa node through LoRa communication.

[0053] (4) The base station LoRa node verifies the received status information and sends the verified status information to the base station gateway.

[0054] After receiving the reported status information, the base station LoRa node verifies the status information; if the verification passes, the reported status information is transmitted to the base station gateway through serial port communication.

[0055] S105, the base station gateway encrypts the verified status information to generate ciphertext status data, and sends the ciphertext status data to the server platform, so that the server platform decrypts the ciphertext status data to generate and display plaintext status data.

[0056] After receiving the reported status information, the base station gateway verifies the status information; if the verification is successful, the status information is analyzed to convert the hexadecimal status information into HTCP format status information, and then the AES encryption algorithm is used to encrypt the HTCP format status information to generate ciphertext status data; then, the ciphertext status data is uploaded to the server platform via 4G communication.

[0057] Correspondingly, after receiving the ciphertext status data, the server-side platform decrypts the reported ciphertext status data to obtain the plaintext status data of the execution part, and then displays it through the interface of the server-side platform.

[0058] Therefore, the present invention adds a base station gateway between the server-side platform and the base station LoRa node, so that the server-side platform can add an encryption process to the command data issued, and the ciphertext data sent by the server-side platform needs to be decrypted before the command data can be obtained; at the same time, the present invention adds a terminal gateway between the terminal LoRa node and the execution part, so that after the terminal gateway receives the command data transmitted by the terminal LoRa node, a verification process can be added to verify the command data, and the command data is transmitted to the execution part for execution after the verification is passed; thereby greatly improving the security of data transmission.

[0059] Combine the following Figure 2 The present invention is further described in detail:

[0060] S201, after the base station gateway comes online, it sends a login request to the server platform through the 4G network;

[0061] S202, after receiving the login request, the server platform performs a legitimacy verification; if the verification is successful, the terminal device connected to the base station gateway is searched and displayed as online. If the verification fails, the base station gateway is offline;

[0062] S203, the server-side platform encrypts the instruction data to be sent by using AES encryption to generate ciphertext data, and sends the encrypted ciphertext data to the corresponding base station gateway through the 4G network;

[0063] S204, after receiving the encrypted ciphertext data, the base station gateway performs data verification; after the verification passes, the ciphertext data is decrypted to obtain the plaintext command data, and then the command data is sent to the base station LoRa node through the serial port;

[0064] S205, the base station LoRa node verifies the received command data; after the verification is passed, the command data is transmitted to the terminal LoRa node of the terminal device through LoRa communication;

[0065] S206, after receiving the command data, the terminal LoRa node verifies the command data; after the verification passes, the command data is transmitted to the terminal gateway through the serial port;

[0066] S207, the terminal gateway verifies the data to determine whether the instruction data is correct; if correct, the terminal gateway reads the device information and instruction information, and then sends the instruction information to the execution part; if incorrect, the terminal gateway discards the instruction data;

[0067] S208, after receiving the instruction information, the execution part executes the corresponding action;

[0068] S209, after the execution part is executed, the state changes, and the execution part uploads the state change data to the terminal gateway through the serial port;

[0069] S210, after receiving the state change data, the terminal gateway verifies the state change data; if the verification passes, the state information of the device is read and the state information is reported to the terminal LoRa node through the serial port;

[0070] S211, after receiving the reported status information, the terminal LoRa node verifies the status information; if the verification passes, the reported status information is transmitted to the base station LoRa node through LoRa communication;

[0071] S212, after receiving the reported status information, the base station LoRa node verifies the status information; if the verification passes, the reported status information is transmitted to the base station gateway through serial port communication;

[0072] S213, after receiving the reported status information, the base station gateway verifies the status information; if the verification is successful, the status information is analyzed, and the reported status information is encrypted using AES encryption, and the encrypted ciphertext status data is uploaded to the server platform via 4G communication;

[0073] S214, the server-side platform decrypts the reported ciphertext status data to obtain the plaintext of the execution part ciphertext status data, and then displays it on the server-side platform interface.

[0074] See also Figure 3 , Figure 3The specific structure of the wireless communication system of the present invention is shown, which includes a server-side platform 1, a base station gateway 21, a base station LoRa node 22, a terminal LoRa node 31, a terminal gateway 32 and an execution part 33, wherein the base station gateway 21 and the base station LoRa node 22 constitute a LoRa base station 2, and the terminal LoRa node 31, the terminal gateway 32 and the execution part 33 constitute a terminal device 3. Specifically:

[0075] The server-side platform 1 and the base station gateway 21 communicate with each other via mobile communication. The mobile communication mode may be 3G, 4G or 5G, but is not limited thereto and can be selected according to actual conditions, with strong flexibility.

[0076] The base station gateway 21 and the base station LoRa node 22, the terminal LoRa node 31 and the terminal gateway 32, and the terminal gateway 32 and the execution part 33 all communicate via serial ports;

[0077] The base station LoRa node 22 and the terminal LoRa node 31 communicate with each other via the LoRa method.

[0078] The server platform 1, LoRa base station 2 and terminal device 3 are described below:

[0079] 1. Server Platform 1

[0080] like Figure 4 As shown, the server-side platform 1 includes:

[0081] The verification module 11 is used to verify the legitimacy of the base station gateway 21 according to the login request sent by the base station gateway 21;

[0082] The platform encryption module 12 is used to encrypt the instruction data to generate ciphertext data;

[0083] The ciphertext sending module 13 is used to send ciphertext data to the legitimate base station gateway 21;

[0084] The platform decryption module 14 is used to decrypt the ciphertext status data sent by the base station gateway 21 to generate and display plaintext status data.

[0085] Further, the verification module 11 includes:

[0086] The login verification unit 111 is used to receive the login request sent by the base station gateway 21 and determine whether the login request is legal;

[0087] The gateway management unit 112 is used to search for the terminal device 3 corresponding to the base station gateway 21 and display that the terminal device 3 is online when the login verification unit 111 determines that the login request is legal. It is also used to take the base station gateway 21 offline when the login verification unit 111 determines that the login request is illegal.

[0088] Therefore, the server-side platform 1 can authenticate the LoRa base station 2 linked to the server-side platform 1 to identify the legitimacy of the logged-in base station gateway 21 and prevent other devices from illegally logging in; at the same time, it can also search for the terminal device 3 attached to the base station gateway 21; and receive the data uploaded by the LoRa base station 2, and store, analyze and display the data.

[0089] 2. LoRa Base Station 2

[0090] It should be noted that the LoRa base station 2 is linked to the server system platform upward and to the terminal device 3 downward, so that the reference LoRa node in the LoRa base station 2 can communicate with the multiple terminal devices 3 below through the LoRa signal.

[0091] like Figure 5 As shown, the base station gateway 21 includes:

[0092] The login module 211 is used to send a login request to the server platform 1, so that the server platform 1 verifies the legitimacy of the base station gateway 21 according to the login request;

[0093] The base station verification module 212 is used to obtain the ciphertext data sent by the server platform 1 and verify the ciphertext data;

[0094] The gateway decryption module 213 is used to decrypt the verified ciphertext data to generate instruction data, and send the instruction data to the base station LoRa node 22, the terminal LoRa node 31 for verification, and the terminal gateway 32 for verification, so that the terminal gateway 32 drives the execution part 33 according to the verified instruction data;

[0095] The state acquisition module 214 is used to obtain the state information sent by the base station LoRa node 22 and verify the state information; wherein the state information is generated by the terminal gateway 32 according to the state change data sent by the execution part 33 and sent to the terminal LoRa node 31 and the base station LoRa node 22 in sequence for verification;

[0096] The gateway encryption module 215 is used to encrypt the verified status information to generate ciphertext status data, and send the ciphertext status data to the server-side platform 1, so that the server-side platform 1 decrypts the ciphertext status data to generate and display plaintext status data.

[0097] 3. Terminal equipment 3

[0098] The terminal device 3 can receive the data transmitted by the LoRa base station 2 and upload the status information of the terminal device 3, specifically:

[0099] After receiving the data from the base station LoRa node 22, the terminal LoRa node 31 can transmit it to the terminal gateway 32 through the serial port;

[0100] After receiving the data from the terminal LoRa node 31 , the terminal gateway 32 can analyze the data and send the instructions to be executed to the execution part 33 through the serial port.

[0101] After receiving the instruction, the execution part 33 executes the operation; after the execution is completed, the current state is reported to the terminal LoRa node 31, and then reported to the server platform 1 in sequence. That is to say, when the execution part 33 is manually triggered and the state changes, the execution part 33 reports the state to the terminal gateway 32, and then reports to the server platform 1 in sequence through the terminal LoRa node 31->base station LoRa node 22->base station gateway 21.

[0102] like Figure 6 As shown, the terminal gateway 32 includes:

[0103] The first terminal verification module 3212 is used to verify the instruction data sent by the terminal LoRa node 31 to determine whether the instruction data is correct;

[0104] The first processing module 322 is used to read instruction information from the instruction data when the first terminal verification module 321 determines that the instruction data is correct, and send the instruction information to the execution part 33 so that the execution part 33 performs a corresponding action, and is also used to discard the instruction data when the first terminal verification module 321 determines that the instruction data is incorrect;

[0105] The second terminal verification module 323 is used to verify the received state change data;

[0106] The second processing module 324 is used to read the status information of the device according to the verified status change data, and send the status information to the terminal LoRa node 31.

[0107] Therefore, the present invention forms a complete wireless communication system by combining the server-side platform 1, the base station gateway 21, the base station LoRa node 22, the terminal LoRa node 31, the terminal gateway 32 and the execution part 33, thereby combining the LoRa technology with the encryption technology, greatly improving the security of data transmission.

[0108] The above is a preferred embodiment of the present invention. It should be pointed out that a person skilled in the art can make several improvements and modifications without departing from the principle of the present invention. These improvements and modifications are also considered to be within the scope of protection of the present invention.

Claims

1. A wireless communication method, It is characterized in that include: The base station gateway sends a login request to the server platform, so that the server platform verifies the legitimacy of the base station gateway according to the login request; The base station gateway obtains the ciphertext data sent by the server platform and verifies the ciphertext data; The base station gateway decrypts the verified ciphertext data to generate instruction data, and sends the instruction data to the base station LoRa node, the terminal LoRa node and the terminal gateway for verification in sequence, so that the terminal gateway drives the execution part according to the verified instruction data; The base station gateway obtains the status information sent by the base station LoRa node and verifies the status information, which is generated by the terminal gateway according to the status change data sent by the execution part and sent to the terminal LoRa node and the base station LoRa node in sequence for verification; The base station gateway encrypts the verified status information to generate ciphertext status data, and sends the ciphertext status data to the server-side platform, so that the server-side platform decrypts the ciphertext status data to generate and display plaintext status data.

2. The wireless communication method according to claim 1, It is characterized in that The base station gateway sends the instruction data to the base station LoRa node, the terminal LoRa node and the terminal gateway in sequence for verification, so that the terminal gateway drives the execution part according to the verified instruction data, including: The base station gateway sends the instruction data to the base station LoRa node; The base station LoRa node verifies the received command data, and sends the verified command data to the terminal LoRa node; The terminal LoRa node verifies the received command data and sends the verified command data to the terminal gateway; The terminal gateway verifies the received instruction data to determine whether the instruction data is correct. If the judgment is yes, the instruction information is read from the instruction data, and the instruction information is sent to the execution part so that the execution part performs the corresponding action. When the judgment is no, the instruction data is discarded.

3. The wireless communication method according to claim 1, It is characterized in that The step of generating the state information according to the state change data sent by the execution part and sending the state information to the terminal LoRa node and the base station LoRa node for verification in sequence comprises: When the execution part changes state, the execution part sends state change data to the terminal gateway; The terminal gateway verifies the received state change data, reads the state information of the device according to the verified state change data, and sends the state information to the terminal LoRa node; The terminal LoRa node verifies the received status information and sends the verified status information to the base station LoRa node; The base station LoRa node verifies the received status information and sends the verified status information to the base station gateway.

4. The wireless communication method according to claim 1, It is characterized in that The step of the server-side platform performing legitimacy verification on the base station gateway according to the login request comprises: The server platform receives the login request sent by the base station gateway, and determines whether the login request is legal; If the answer is yes, searching for the terminal device corresponding to the base station gateway and displaying that the terminal device is online; When the judgment is no, the base station gateway is offlined.

5. The wireless communication method according to claim 1, It is characterized in that The step of generating ciphertext data includes: the server-side platform encrypts the instruction data to generate ciphertext data.

6. A base station gateway, It is characterized in that include: A login module, used to send a login request to a server-side platform, so that the server-side platform verifies the legitimacy of the base station gateway according to the login request; A base station verification module, used to obtain the ciphertext data sent by the server platform and verify the ciphertext data; The gateway decryption module is used to decrypt the verified ciphertext data to generate instruction data, and send the instruction data to the base station LoRa node, the terminal LoRa node and the terminal gateway for verification in sequence, so that the terminal gateway drives the execution part according to the verified instruction data; A status acquisition module is used to obtain the status information sent by the base station LoRa node and verify the status information, wherein the status information is generated by the terminal gateway according to the status change data sent by the execution part and is sequentially sent to the terminal LoRa node and the base station LoRa node for verification; The gateway encryption module is used to encrypt the verified status information to generate ciphertext status data, and send the ciphertext status data to the server-side platform so that the server-side platform decrypts the ciphertext status data to generate and display plaintext status data.

7. A server-side platform, It is characterized in that include: A verification module, used to verify the legitimacy of the base station gateway according to the login request sent by the base station gateway; A platform encryption module, used for encrypting instruction data to generate ciphertext data; A ciphertext sending module is used to send the ciphertext data to a legitimate base station gateway, so that the base station gateway verifies the ciphertext data, decrypts the verified ciphertext data to generate instruction data, and sends the instruction data to the base station LoRa node, the terminal LoRa node and the terminal gateway for verification in sequence, and the terminal gateway drives the execution part according to the verified instruction data; The platform decryption module is used to decrypt the ciphertext status data sent by the base station gateway to generate and display plaintext status data. The ciphertext status data is obtained by the base station gateway encrypting the verified status information. The status information is generated by the terminal gateway according to the status change data sent by the execution part and sent to the terminal LoRa node and the base station LoRa node in turn for verification.

8. The server-side platform according to claim 7, It is characterized in that The verification module comprises: A login verification unit, configured to receive a login request sent by the base station gateway and determine whether the login request is legal; The gateway management unit is used to search for the terminal device corresponding to the base station gateway and display that the terminal device is online when the login verification unit determines that the login request is legal, and is also used to take the base station gateway offline when the login verification unit determines that the login request is illegal.

9. A terminal gateway, It is characterized in that include: The first terminal verification module is used to verify the command data sent by the terminal LoRa node to determine whether the command data is correct; The command data is generated by the base station gateway after decrypting the verified ciphertext data, and is sent by the base station gateway to the base station LoRa node, the terminal LoRa node and the terminal gateway for verification in sequence; the ciphertext data is sent by the server platform and verified by the base station gateway; a first processing module, configured to read instruction information from the instruction data and send the instruction information to the execution part so that the execution part performs a corresponding action when the first terminal verification module determines that the instruction data is correct, and to discard the instruction data when the first terminal verification module determines that the instruction data is incorrect; A second terminal verification module, used for verifying the received state change data; The second processing module is used to read the status information of the device according to the verified status change data, and send the status information to the terminal LoRa node.

10. A wireless communication system, Features , including the server-side platform described in claim 7 or 8, the base station gateway, the base station LoRa node, the terminal LoRa node, the terminal gateway and the execution part described in claim 6; The server platform communicates with the base station gateway via mobile communication; The base station gateway and the base station LoRa node, the terminal LoRa node and the terminal gateway, and the terminal gateway and the execution part all communicate via serial ports; The base station LoRa node and the terminal LoRa node communicate with each other via the LoRa method.

Citation Information

Patent Citations

  • Data transmission method and device based on LoRa, LoRa gateway, system and storage medium

    CN108600376A

  • A data reporting and instruction sending method based on LoRa Internet of Things

    CN108989455A