A data communication method and device
A data communication and communication technology, applied in the field of the Internet of Things, can solve problems such as cumbersome operation, abnormal communication, and type mismatch
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] figure 1 It is a schematic diagram of a data communication method provided by an embodiment of the present invention, and the method includes the following steps:
[0038] S101: Identify the target type of the pre-installed LoRaWAN communication module.
[0039] A data communication method provided by an embodiment of the present invention is applied to a main control module of a smart watch. The main control module may be a CPU (Central Processing Unit, central processing unit) or an MCU (Microcontroller Unit, micro control unit) in the smart meter.
[0040] When the smart meter is powered on, the main control module identifies the target type of the pre-installed LoRaWAN communication module. The power-on can be the first time the smart meter is powered on, or it can be powered on after the LoRaWAN communication module is replaced.
[0041]When identifying the target type of the pre-installed LoRaWAN communication module, the LoRaWAN communication module can be trig...
Embodiment 2
[0053] Communication in this embodiment of the present invention may include at least one of the following communications: communication during network access, communication during service data transmission, and communication during network status detection.
[0054] On the basis of the foregoing embodiments, invoking the LoRaWAN communication module to communicate with the server according to the set of target command symbols described in the embodiments of the present invention includes:
[0055] Determine the first command character of the network access connection request in the target command character set, and send the first command character to the LoRaWAN communication module, so that the LoRaWAN communication module sends the network access connection request to the server.
[0056] The smart watch can only communicate with the server for business data after the network connection is successful, so before the business data communication with the server, ensure that the...
Embodiment 3
[0079]In order to ensure that business communication can be carried out normally, on the basis of the above-mentioned embodiments, in a data communication method provided by the embodiment of the present invention, the LoRaWAN communication module is called to communicate with the server according to the set of target command symbols include:
[0080] Determine the second command symbol for checking the network status in the target command symbol set, and send the second command symbol to the LoRaWAN communication module, so that the LoRaWAN communication module sends a request for checking the network status to the server.
[0081] If the current network status does not meet the conditions for business communication, it may cause data transmission failure or data loss during business communication, which will affect subsequent operations. It is necessary to check the current network status after the network connection is successful and before conducting business communication...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


