查看LoRaWAN的源代码
←
LoRaWAN
跳转到:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您刚才请求的操作只有这个用户组中的用户才能使用:
用户
您可以查看并复制此页面的源代码:
== Gateway Config == '''basic_config_gw.sh:''' * 生成 gateway_id.txt, gateway_id.md5 * 生成配置文件 gateway_conf.json * 配置 WiFi * 把 start_gw.sh 加到系统自启动脚本 /etc/rc.local 中 * 编译 lora_gateway <source lang=bash> 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. </source> Refer to: [https://github.com/CongducPham/LowCostLoRaGw/tree/master/gw_full_latest#configure-your-gateway-with-basic_config_gwsh-or-config_gwsh Basic Config] <source lang=bash> $ sudo apt-get install jq $ sudo apt-get install python-pip $ sudo apt-get install python-dateutil python-crypto </source> <br>
返回到
LoRaWAN
。
个人工具
登录
名字空间
页面
讨论
变换
查看
阅读
查看源代码
查看历史
操作
搜索
导航
首页
社区专页
新闻动态
最近更改
随机页面
帮助
工具箱
链入页面
相关更改
特殊页面