一、PROTOCOL文档消息类型介绍
官话 Basic communication protocol between Lora gateway and server
此文档定义了LoRa网关与服务器之间的通信协议
-
Introduction
The protocol between the gateway and the server is purposefully very basic and
for demonstration purpose only, or for use on private and reliable networks.
重点词汇:private 由此可见LoRa网关在私有网络部署环境是有可用价值的。 -
Upstream protocol (跳着讲是因为我不会)
-
PUSH_DATA packet 网关通过IP协议传送至NS端,属于上行链路网关至NS段。该包的数据结构如下:
0 : protocol version = 2 一个字节的协议版本号
1-2 : random token 两个字节的随机Token
3 : PUSH_DATA identifier 0x00 一个字节的消息ID
4-11 : Gateway unique identifier (MAC address) 八个字节的网关ID
12-end : JSON object, starting with {, ending with } 其余的为JSON格式的消息体json { "rxpk":[ {
-