สามารถอ่านการสร้าง Single Gateway ได้ตามลิงค์ข้างล่างได้นะครับ
https://github.com/worrajak/ESP8266-sx1276
all LoRaWan gateway and sensor node
Gateway
- esp8266 node mcu + rfm95 903.9mhz gateway @RMUTL Huaykeaw
- esp8266 node mcu + rfm95 904.1mhz gateway @watprathat doisuthep
- esp8266 + ra-02 433.1 mhz gateway @RMUTL Huaykeaw
- rpi3 + loara/gps hat + single gate way channel 433.1mhz @RMUTL Huaykeaw
Node sensors
- esp8266 + rfm95 + dht22 903.9mhz node sensors
- esp8266 + ra-02 + ds18b20 433.1mhz node sensor
- arduino mega + rn2903a + ds18b20 903.9mhz node sensor
- arduino uno + rn2903a + ds18b20 903.9mhz node sensor
- arduino uno + ra-02 + ds18b20 433.1mhz node sensor
To connect nodes to the network, they are "activated" using either of two options:
- Over-The-Air Activation (OTAA)First, using some web site or API, each new node is registered in the network server using its unique device EUI (
DevEUI
). It then gets a public application id (AppEUI
) and a secret application key (AppKey
). These three values are programmed into the node.Next, when ready to send for the first time, the values are used by the node to create and transmit a LoRaWAN Join Request. If such request is received by one or more gateways, it is forwarded to the network server which, if approved, will tell one gateway to transmit a Join Accept. If received by the node, then this gives the node a public device address (DevAddr
), a secret network session key (NwkSKey
) and a secret application session key (AppSKey
).The values determined from the Join Accept are used whenever the node needs to transmit some actual data (along with a security counter that starts at zero whenever joining). The activation is valid as long as the node keeps it in memory (and the security counters have not been exhausted), typically for many months or even years. Whenever lost, a node can send a new Join Request and get new secrets. - Activation By Personalization (ABP)Here, when registering using some web site or API, the node is given a device address (
DevAddr
), secret network session key (NwkSKey
) and secret application session key (AppSKey
) right away, which are programmed into the node and never change. The node does not need to first send a Join Request before it can start sending any data, but care needs to be taken that the security counters are not lost. Also, the keys are specific for a given network; APB makes it hard (if not impossible) to move nodes to a different network provider.
credit:https://iot.stackexchange.com/questions/1102/configuring-lorawan-gateway
Comments