LoRa gateway and NS of those things

LoRa Gateway

1.LoRa gateway communication process plays a role passthrough
Here Insert Picture Description
2. gateway and the terminal communicate via the transceiver is in the form of a radio frequency communication, as shown above, the gateway will receive the data in line with the terminal profile and the intermediate point data rate , will be transmitted at a constant rate and frequency data packets to transmit RF power terminal . All eligible message will be received terminal gateway, so that there is the case where the gateway receives data from different terminals in a network
3. The operating system has the gateway to send raspberry, and NS through the IP protocol communication.

LoRa Network Server

NS server function module can be divided into:

  1. Send and receive packet data gateway
  2. Peel gateway information
  3. Storage gateway status update
  4. Resolve LoRaWAN protocol to obtain information terminal
  5. Storage terminal information update
  6. Peeling application data
  7. Data storage applications

Communication between the gateway and NS LoRa

1. the UDP communication
gateways and NS predetermined transmission rules good listener port various messages. I was using the NS server java implementation, use DatagramSocket socket, DatagramPacket packet data in 1880 PUSH_DATA port to receive and reply to PUSH_ACK, 1882 PULL_DATA port to receive and reply to data PULL_ACK. 1882 Port borrow reply sent PULL_RESP. Details of subsequent re-chatter
2. the MQTT
the MQTT protocol (Message Queuing Telemetry Transport), which translates to a message queue remote signal transmission, an IBM company made in 1999, and the current version is 3.1.1. MQTT is a TCP-based publish-subscribe protocol, the initial aim was to design a very limited memory devices and low bandwidth networks unreliable communication, ideal for M2M communications. We use mqtt the mosquito implement, gateways and NS as a client. Gateway release topic for the message PUSH_DATA and PULL_DATA of, NS only need to subscribe to topic they need on the line. Fill the subsequent code

Guess you like

Origin blog.csdn.net/m0_38008027/article/details/89092370