LoRaWAN
来自Jack's Lab
(版本间的差异)
(→Gateway Config) |
小 (→Gateway Config) |
||
第34行: | 第34行: | ||
pi@raspberrypi:~/lora-gw/gw_full_latest $ ./scripts/test_gwid.sh | pi@raspberrypi:~/lora-gw/gw_full_latest $ ./scripts/test_gwid.sh | ||
Detecting gw id as 0000B827EF8855AA | Detecting gw id as 0000B827EF8855AA | ||
+ | pi@raspberrypi:~/lora_gateway $ scripts/basic_config_gw.sh MKB827EF8855AA00 | ||
+ | Taking provided address: MKB827EB8E763900 | ||
+ | Keep a copy of /home/pi/lora_gateway/scripts/update_gw.sh | ||
+ | mkdir: cannot create directory ‘/home/pi/scripts’: File exists | ||
+ | Done | ||
+ | Creating /home/pi/lora_gateway/gateway_id.txt file | ||
+ | Writing 0000MKB827EF8855AA00 | ||
+ | Done | ||
+ | Creating /home/pi/lora_gateway/gateway_id.md5 file | ||
+ | Done | ||
+ | Replacing gw id in /home/pi/lora_gateway/gateway_conf.json | ||
+ | Done | ||
+ | Creating /home/pi/Dropbox/LoRa-test | ||
+ | Done | ||
+ | Creating log -> /home/pi/Dropbox/LoRa-test | ||
+ | Done | ||
+ | Setting gateway to run at boot | ||
+ | Removing /home/pi/lora_gateway/scripts/start_gw.sh in /etc/rc.local if any | ||
+ | Done | ||
+ | Add /home/pi/lora_gateway/scripts/start_gw.sh in /etc/rc.local | ||
+ | Done | ||
+ | Compile lora_gateway executable | ||
+ | ~/lora_gateway ~/lora_gateway | ||
+ | rm *.o lora_*gateway | ||
+ | You have a Raspberry 1 | ||
+ | Compiling for Raspberry 1 | ||
+ | g++ -DPABOOST -DMAX_DBM=20 -DRASPBERRY -DIS_RCV_GATEWAY -c lora_gateway.cpp -o lora_gateway.o | ||
+ | g++ -c arduPi.cpp -o arduPi.o | ||
+ | g++ -c SX1272.cpp -o SX1272.o | ||
+ | g++ -lrt -lpthread lora_gateway.o arduPi.o SX1272.o -o lora_gateway | ||
+ | ~/lora_gateway | ||
+ | You should reboot your Raspberry | ||
+ | Bye. | ||
</source> | </source> | ||
<br> | <br> |
2019年5月24日 (五) 06:23的版本
目录 |
1 Overview
https://www.thethingsnetwork.org/docs/lorawan/
2 Address
https://www.thethingsnetwork.org/docs/lorawan/address-space.html
3 Gateway Traffic
uplink, downlink, join
Time Frequency Mod. CR Data Rate Airtime (ms) cnt
4 Gateway Test
$ ./lora_gateway -d 5 -e 12 -c 125 -i 34 -h 2 -f -g 434.3
5 Gateway Config
pi@raspberrypi:~/lora-gw/gw_full_latest $ ./scripts/test_gwid.sh Detecting gw id as 0000B827EF8855AA pi@raspberrypi:~/lora_gateway $ scripts/basic_config_gw.sh MKB827EF8855AA00 Taking provided address: MKB827EB8E763900 Keep a copy of /home/pi/lora_gateway/scripts/update_gw.sh mkdir: cannot create directory ‘/home/pi/scripts’: File exists Done Creating /home/pi/lora_gateway/gateway_id.txt file Writing 0000MKB827EF8855AA00 Done Creating /home/pi/lora_gateway/gateway_id.md5 file Done Replacing gw id in /home/pi/lora_gateway/gateway_conf.json Done Creating /home/pi/Dropbox/LoRa-test Done Creating log -> /home/pi/Dropbox/LoRa-test Done Setting gateway to run at boot Removing /home/pi/lora_gateway/scripts/start_gw.sh in /etc/rc.local if any Done Add /home/pi/lora_gateway/scripts/start_gw.sh in /etc/rc.local Done Compile lora_gateway executable ~/lora_gateway ~/lora_gateway rm *.o lora_*gateway You have a Raspberry 1 Compiling for Raspberry 1 g++ -DPABOOST -DMAX_DBM=20 -DRASPBERRY -DIS_RCV_GATEWAY -c lora_gateway.cpp -o lora_gateway.o g++ -c arduPi.cpp -o arduPi.o g++ -c SX1272.cpp -o SX1272.o g++ -lrt -lpthread lora_gateway.o arduPi.o SX1272.o -o lora_gateway ~/lora_gateway You should reboot your Raspberry Bye.
6 Reference
- SX127x
- LoRa
- LoRa要替代NB-IoT?470-510MHz背后的玄机
- 更正说明:470-510MHz为授权频段
- 一份征求意见稿 一片争议声 LoRa你现在还好吗?
- https://blog.csdn.net/wang2425559/article/details/74929743