TI中文支持网
TI专业的中文技术问题搜集分享网站

Z-Stack Linux Gateway BeagleBone 搭配的BBB Debian版本問題.

HI YK

這幾天試了一下Z-Stack Linux Gateway

再去爬了一下文. 發現你有提到只在Debian 7.8版本( IN BeagleBone Black ) 正常

我現在試了Debian 10.3版( IN BeagleBone Black )執行:

(BeagleBoard.org Debian Buster IoT Image 2020-04-06)

"sudo ./zigbeeHAgw beaglebone"

也是一樣一堆錯( BeagleBone Black 有上網)

"connect: Connection refused
[ZSTACKZNP_SRVR/MAIN] ERROR: ERROR: signal 11 was trigerred:
[ZSTACKZNP_SRVR/MAIN] ERROR:   Fault address: (nil)
[ZSTACKZNP_SRVR/MAIN] ERROR:   Fault reason: address not mapped to object
[ZSTACKZNP_SRVR/MAIN] ERROR: Stack trace unavailable
[ZSTACKZNP_SRVR/MAIN] ERROR: Executing original handler…
./zigbeeHAgw: line 351: 29620 Segmentation fault      $ZLSZNP_CMD
ZLSZNP started (pid 29620) at Mon 07 Sep 2020 02:05:37 PM UTC
[NWK_MGR/MAIN] :  there are 2 args
[NWK_MGR/MAIN] :  argv[0] = ./NWKMGR_SRVR_arm
[NWK_MGR/MAIN] :  argv[1] = 127.0.0.1:2536
connect: Connection refused
[NWK_MGR/MAIN] ERROR: ERROR: signal 11 was trigerred:
[NWK_MGR/MAIN] ERROR:   Fault address: (nil)
[NWK_MGR/MAIN] ERROR:   Fault reason: address not mapped to object
[NWK_MGR/MAIN] ERROR: Stack trace unavailable
[NWK_MGR/MAIN] ERROR: Executing original handler…
./zigbeeHAgw: line 407: 29623 Segmentation fault      $NWKMGR_CMD $NWKMGR_RESTART_FLAG
NETWORK MANAGER started (pid 29623) at Mon 07 Sep 2020 02:05:38 PM UTC
connect: Connection refused
connect: Connection refused
[GATEWAY/MAIN] ERROR: ERROR: signal 11 was trigerred:
[GATEWAY/MAIN] ERROR:   Fault address: (nil)
[GATEWAY/MAIN] ERROR:   Fault reason: address not mapped to object
[GATEWAY/MAIN] ERROR: Stack trace unavailable
[GATEWAY/MAIN] ERROR: Executing original handler…
./zigbeeHAgw: line 378: 29626 Segmentation fault      $GATEWAY_SERVER_CMD
GATEWAY SERVER started (pid 29626) at Mon 07 Sep 2020 02:05:40 PM UTC
connect: Connection refused
connect: Connection refused
[OTASRVR/MAIN] ERROR: ERROR: signal 11 was trigerred:
[OTASRVR/MAIN] ERROR:   Fault address: (nil)
[OTASRVR/MAIN] ERROR:   Fault reason: address not mapped to object
[OTASRVR/MAIN] ERROR: Stack trace unavailable
[OTASRVR/MAIN] ERROR: Executing original handler…
./zigbeeHAgw: line 438: 29629 Segmentation fault      $OTA_SERVER_CMD
OTA SERVER started (pid 29629) at Mon 07 Sep 2020 02:05:42 PM UTC
starting tracker with our pid ./zigbeeHAgw and pid list 29615 29620 29626 29629
"

只能用Debian 7.8版本或是官網的am335x-evm-linux-06.03.00.106.img

( IN BeagleBone Black )了嗎??

謝謝.

Hunter Wang:

好像7.8是OK的,以下是Debian 7.8版本執行
"sudo ./zigbeeHAgw beaglebone"
出來的訊息:

running zigbeegw.scr on an ARM
resetting beaglebone blacksleeping 6 seconds after reset… Using serial port: /dev/ttyACM0
zbSocProcessRpc: CMD0:41, CMD1:80, not handled
Received System version.Transport Protocol Version: 2Product ID: 0Software Release: 2.6.1Software Revision: 38724
done
Starting the ZigBee gateway subsystem
deviceKey = 0(0 )
devPath = '/dev/ttyACM0'
logPath = './NpiLnxLog.txt'
… freeing memory (ret 0)
Port: 2533
Following IP addresses are available:
IPv4: interface: loIP Address 127.0.0.1IPv4: interface: usb0IP Address 192.168.7.2IPv6: interface: loIP Address ::1IPv6: interface: eth0IP Address 2001:b400:e2d3:4c40:6a3:16ff:feba:7b39IPv6: interface: eth0IP Address 2001:b400:e254:68d4:6a3:16ff:feba:7b39IPv6: interface: eth0IP Address fe80::6a3:16ff:feba:7b39IPv6: interface: usb0IP Address fe80::7811:8aff:feae:488a
The socket will listen on the following IP addresses:
IPv4: 0.0.0.0IPv6: ::
0.0.0.0 means it will listen to all available IP address

waiting for first connection on #3…
NPI started (pid 2074) at Sun Mar1 21:12:27 UTC 2015
Connected to #5.(127.0.0.1 / ::b8b3:cbbe:b4:cbbe)
ZLSZNP started (pid 2080) at Sun Mar1 21:12:31 UTC 2015
[NWK_MGR/MAIN] :there are 2 args
[NWK_MGR/MAIN] :argv[0] = ./NWKMGR_SRVR_arm
[NWK_MGR/MAIN] :argv[1] = 127.0.0.1:2536
[NWK_MGR/MAIN] :************************************************
[NWK_MGR/MAIN] :*Network Manager Server v1.0.1*
[NWK_MGR/MAIN] :* The following are the avaible key commands:*
[NWK_MGR/MAIN] :* Exit Program.-q*
[NWK_MGR/MAIN] :************************************************

NETWORK MANAGER started (pid 2086) at Sun Mar1 21:12:32 UTC 2015
[GATEWAY/MAIN] :
[GATEWAY/MAIN] :************************************************
[GATEWAY/MAIN] :*Gateway Server v1.0.1*
[GATEWAY/MAIN] :* The following are the avaible key commands:*
[GATEWAY/MAIN] :* Exit Program.-q*
[GATEWAY/MAIN] :************************************************

GATEWAY SERVER started (pid 2093) at Sun Mar1 21:12:34 UTC 2015
[OTASRVR/MAIN] :
[OTASRVR/MAIN] :************************************************
[OTASRVR/MAIN] :*OTA Upgrade Server 1.0.1*
[OTASRVR/MAIN] :* The following are the avaible key commands:*
[OTASRVR/MAIN] :* Exit Program.-q*
[OTASRVR/MAIN] :************************************************

OTA SERVER started (pid 2101) at Sun Mar1 21:12:36 UTC 2015
starting tracker with our pid ./zigbeeHAgw and pid list 2074 2080 2093 2101
===================================================
tracking 4 pids, 2074 2080 2093 2101
when we see something missing we will send a SIGUSR2 to pid 2009

Kevin Qiu1:

回复 Hunter Wang:

建议按照这里的版本,其他没有验证过:dev.ti.com/…/node

Viki Shi:

回复 Hunter Wang:

请参考Z-Stack Linux Gateway BeagleBone QuickStart Guide.pdf

Hunter Wang:

回复 YiKai Chen:

HI YK

這是我測LINUX GATEWAY按了大O要嘗試OTA的LOG

好像前面都對,後面出現了一個什麼未註冊的狀態機器??這個是錯誤嗎??

(ZED用的是2652R開發板加SDK 的 zed_sw_ota_client 專案)

謝謝

 

YiKai Chen:

回复 Hunter Wang:

沒遇過這樣的問題,你有照使用手冊的步驟測試嗎?你的Zigbee GW是自己build的還是預編譯好的?

Hunter Wang:

回复 YiKai Chen:

HI YK

LINUXGW 都是用原來的,沒有再BUILD過.

用BBB+CC2531做LINUXGW

就照說明把PC上SDK解出來的 z-stack_linux_gateway_arm_binaries_<version>.tar SCP到BBB裡
解壓縮.

做了cp protobuf/libprotobuf-c.so.0 /usr/lib/
再把sample_app_ota.cfg放到/root/下

執行./zigbeeHAgw beaglebone
和 ./start_application

再照說明選擇剛加入 zed_sw_ota_client 裝置的按下大O做OTA
就變這樣子.

謝謝.

YiKai Chen:

回复 Hunter Wang:

你sample_app_ota.cfg的內容有沒有設置好?

Hunter Wang:

回复 YiKai Chen:

HI YK

有啊,sample_app_ota.cfg裡面

第一個是要OTA的.ZIGBEE檔案的路徑嘛
第二個是要更新的個數就照原來寫1
第三個是要更新的裝置的IEEE ADDRESS.
都有改好.

手冊是這樣寫的.

另外有參考別人的錯誤,有COPY一份丟到/BOOT下面.

謝謝.

Hunter Wang:

回复 YiKai Chen:

但是user guide 有提到說

"To initiate an “OTA Upgrade” you will need to do the following:
Program up a SmartRF + CC2530 as an example OTA client."

所以一定要SmartRF + CC2530 , cc2652r + zed_sw_ota_client不行??

赞(0)
未经允许不得转载:TI中文支持网 » Z-Stack Linux Gateway BeagleBone 搭配的BBB Debian版本問題.
分享到: 更多 (0)