Network data interaction method and system, and gateway
A technology of network data and interaction method, which is applied in the field of gateway, network data interaction method and system, and can solve problems such as single connection mode of communication network and complex wiring of smart home
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0032] The embodiment of the present invention provides a network data interaction method, including: the gateway receives the uplink data packet of the terminal device and the server downlink instruction; the server instruction data packet is put into the gateway first-in-first-out queue QueueC; and the queue head position is obtained from the first-in-first-out queue QueueC downlink packets.
[0033] Preferably, after the gateway receives the terminal device uplink data packet and the server downlink instruction, it includes: the server downlink instruction is cached in the gateway first-in-first-out queue QueueA; when the gateway receives the terminal device data packet uplink, the gateway downlink buffers the server downlink instruction, The terminal device uploads business data to the server;
[0034] When the gateway receives the terminal data packet uplink and does not trigger the gateway downlink cache server downlink instruction, the terminal device resends the data p...
Embodiment 2
[0037] The embodiment of the present invention provides a network data interaction method, including: the gateway receives the uplink data packet of the terminal device and the server downlink instruction; the server instruction data packet is put into the gateway first-in-first-out queue QueueC; and the queue head position is obtained from the first-in-first-out queue QueueC downlink packets.
[0038] Preferably, obtaining the downlink data packet at the queue head position from the first-in-first-out queue QueueC also includes: if the downlink data packet exists, then continue to inquire until the queue is empty; if the downlink data packet does not exist, then pop up the The downlink data packet is sent, and the receiving timeout waiting mechanism is set after the sending of the downlink data packet is completed.
[0039] Preferably, if the downlink data packet does not exist, pop up the downlink data packet, set the receiving timeout waiting mechanism after sending the dow...
Embodiment 3
[0043] An embodiment of the present invention provides a network data interaction system, including: a gateway, a server, and a terminal device. The network transmission protocol TCP / IP is used between the gateway and the server, and the gateway joins a heartbeat mechanism; the gateway and the terminal The LoRa spread spectrum technology is used between the devices as the physical layer transmission technology; the link layer between the gateway and the terminal device is implemented using the LoRaWAN protocol combined with multi-thread inter-thread synchronization technology.
[0044] Preferably, the LoRa spread spectrum technology is used as the physical layer transmission technology between the gateway and the terminal device, and further includes: when the LoRa spread spectrum factor is SF=7, the signal transmission rate is the highest.
[0045] Preferably, the link layer between the gateway and the terminal device uses the LoRaWAN protocol, and also includes: a first threa...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


