z-stack_linux_gateway 在BB Black上运行./zigbeeHWgw bbb 出现错误
z-stack_linux_gateway 在BB Black上运行./zigbeeHWgw bbb 出现错误
完全按照TI发布的z-stack_linux_gateway 的文档上操作。但在运行时还是出现了
一下错误,请问这个问题是可执行程序和BB Black上的系统不兼容么?还有有其他原因......
root@beaglebone:~/z-stack_linux_gateway_arm_binaries_38883# ls
app misc protobuf servers tools
root@beaglebone:~/z-stack_linux_gateway_arm_binaries_38883# cd servers/
root@beaglebone:~/z-stack_linux_gateway_arm_binaries_38883/servers# ls
config.ini NPI_Gateway.cfg OTA_SRVR_arm track_servers
gateway_config.tlg NPI_lnx_arm_server sample_app_ota.cfg zigbeeHAgw
GATEWAY_SRVR_arm NWKMGR_SRVR_arm start_application ZLSZNP_arm
root@beaglebone:~/z-stack_linux_gateway_arm_binaries_38883/servers# ./zigbeeHAgw bbb
running zigbeegw.scr on an ARM
resetting beaglebone black
sleeping 6 seconds after reset... Using serial port: /dev/ttyACM0
zbSocProcessRpc: CMD0:41, CMD1:80, not handled
Received System version.
Transport Protocol Version: 2
Product ID: 0
Software Release: 2.6.1
Software 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:
./zigbeeHAgw: line 324: 676 Segmentation fault $NPI_CMD
NPI started (pid 676) at Thu Nov 12 21:30:07 UTC 2015
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: 681 Segmentation fault $ZLSZNP_CMD
ZLSZNP started (pid 681) at Thu Nov 12 21:30:12 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
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: 684 Segmentation fault $NWKMGR_CMD $NWKMGR_RESTART_FLAG
NETWORK MANAGER started (pid 684) at Thu Nov 12 21:30:13 UTC 2015
connect: Connection refused
connect: Connection refused
看上去像是几个server没有正常运行起来,在log里面可以看到server被正常启动的信息么?
在./zigbeeHWgw脚本文件执行的时候,先去运行server的。
是的呢,后来更新了一下bbb的操作系统(更新为ubuntu的)就可以正常跑起来了