运行环境:MCU使用MT7628,ZigBee协调器使用CC2530,两者通过Uart通信。
协调器CC2530使用的程序时ZigBee 3.0提供的ZNP工程Demo。
把Z-Stack Linux Gateway移植到MT7628 Mips平台上,得到Z-Stack Gateway的Server程序如下:
NPI_lnx_mips_server、ZLSZNP_mips、NWKMGR_SRVR_mips、GATEWAY_SRVR_mips、OTA_SRVR_mips。
按照顺序执行了NPI_lnx_mips_server、ZLSZNP_mips,当执行NWKMGR_SRVR_mips程序时发生初始化错误,执行Log如下所示:
# ./NWKMGR_SRVR_mips 127.0.0.1:2536
[NWK_MGR/MAIN] : there are 2 args
[NWK_MGR/MAIN] : argv[0] = ./NWKMGR_SRVR_mips
[NWK_MGR/MAIN] : argv[1] = 127.0.0.1:2536
[ZSTACKZNP_SRVR/LSTN] INFO: zstackpb zspbHandlePbCb – connected: 7
[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] : ************************************************
Sending AF Register Request.
[NWK_MGR/MAIN] INFO: preparing to send 21 bytes, subSys 0x11, cmdId 0x20, pData:
[NWK_MGR/MAIN] INFO: 0x08
[NWK_MGR/MAIN] INFO: 0x20
[NWK_MGR/MAIN] INFO: 0x10
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x1A
[NWK_MGR/MAIN] INFO: 0x0D
[NWK_MGR/MAIN] INFO: 0x08
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x10
[NWK_MGR/MAIN] INFO: 0x84
[NWK_MGR/MAIN] INFO: 0x02
[NWK_MGR/MAIN] INFO: 0x18
[NWK_MGR/MAIN] INFO: 0x07
[NWK_MGR/MAIN] INFO: 0x20
[NWK_MGR/MAIN] INFO: 0x00
[NWK_MGR/MAIN] INFO: 0x28
[NWK_MGR/MAIN] INFO: 0x00
[NWK_MGR/MAIN] INFO: 0x30
[NWK_MGR/MAIN] INFO: 0x06
[NWK_MGR/MAIN] INFO: 0x20
[NWK_MGR/MAIN] INFO: 0x00
[NWK_MGR/MAIN] INFO: [MUTEX] Lock SRSP Mutex[NWK_MGR/MAIN] INFO:
[MUTEX] SRSP Lock status: 0
[ZSTACKZNP_SRVR/LSTN] INFO: Receive message…
[ZSTACKZNP_SRVR/LSTN] INFO: zstackpb zspbHandlePbCb: subsystemID:31, cmdId:20
[ZSTACKZNP_SRVR/LSTN] INFO: zstackpb afRegister: profileID:104
[ZSTACKZNP_SRVR/LSTN] INFO: znp_misc sendNPIExpectDefaultStatusZNP: subSys:4, cmdID:0, len:13
[ZSTACKZNP_SRVR/LSTN] INFO: preparing to send 13 bytes, subSys 0x04, cmdId 0x00, pData:
[ZSTACKZNP_SRVR/LSTN] INFO: 0x01
[ZSTACKZNP_SRVR/LSTN] INFO: 0x04
[ZSTACKZNP_SRVR/LSTN] INFO: 0x01
[ZSTACKZNP_SRVR/LSTN] INFO: 0x07
[ZSTACKZNP_SRVR/LSTN] INFO: 0x00
[ZSTACKZNP_SRVR/LSTN] INFO: 0x00
[ZSTACKZNP_SRVR/LSTN] INFO: 0x00
[ZSTACKZNP_SRVR/LSTN] INFO: 0x01
[ZSTACKZNP_SRVR/LSTN] INFO: 0x00
[ZSTACKZNP_SRVR/LSTN] INFO: 0x00
[ZSTACKZNP_SRVR/LSTN] INFO: 0x01
[ZSTACKZNP_SRVR/LSTN] INFO: 0x06
[ZSTACKZNP_SRVR/LSTN] INFO: 0x00
[ZSTACKZNP_SRVR/LSTN] INFO: [MUTEX] Lock SRSP Mutex[ZSTACKZNP_SRVR/LSTN] INFO:
[MUTEX] SRSP Lock status: 0
[ZSTACKZNP_SRVR/LSTN] INFO: Waiting for synchronous response…
[ZSTACKZNP_SRVR/LSTN] INFO: [MUTEX] Wait for SRSP Cond signal…
[NWK_MGR/MAIN] INFO: Waiting for synchronous response…
[NWK_MGR/MAIN] INFO: [MUTEX] Wait for SRSP Cond signal…
[NWK_MGR/HNDL] INFO: [MUTEX] Wait for AREQ semaphore
[ZSTACKZNP_SRVR/LSTN] INFO: [MUTEX] SRSP Cond Wait timed out!
[ZSTACKZNP_SRVR/LSTN] INFO: [MUTEX] Unlock SRSP Mutex
[ZSTACKZNP_SRVR/LSTN] INFO: …sent 8 bytes to Client
[ZSTACKZNP_SRVR/LSTN] INFO: !Done
[NWK_MGR/READ] INFO: Received 4 bytes, subSys 0x71, cmdId 0x20, pData:
[NWK_MGR/READ] INFO: 0x8
[NWK_MGR/READ] INFO: 0x20
[NWK_MGR/READ] INFO: 0x10
[NWK_MGR/READ] INFO: 0x0
[NWK_MGR/READ] INFO: [MUTEX] SRSP Cond signal set
[NWK_MGR/READ] INFO: Client Read: (len 0): [NWK_MGR/MAIN] INFO: 0x08
[NWK_MGR/MAIN] INFO: 0x20
[NWK_MGR/MAIN] INFO: 0x10
[NWK_MGR/MAIN] INFO: 0x00
[NWK_MGR/MAIN] INFO: [MUTEX] Unlock SRSP Mutex
AF Register Request Successful
[NWK_MGR/MAIN] INFO: preparing to send 90 bytes, subSys 0x11, cmdId 0x14, pData:
[NWK_MGR/MAIN] INFO: 0x08
[NWK_MGR/MAIN] INFO: 0x14
[NWK_MGR/MAIN] INFO: 0x10
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x18
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x20
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x28
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x30
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x38
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x40
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x48
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x50
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x58
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x60
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x68
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x70
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x78
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x80
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x88
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x90
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x98
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0xA0
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0xA8
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0xB0
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0xB8
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0xC0
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0xC8
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0xD0
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0xD8
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0xE0
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0xE8
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0xF0
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0xF8
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x80
[NWK_MGR/MAIN] INFO: 0x02
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x88
[NWK_MGR/MAIN] INFO: 0x02
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0x90
[NWK_MGR/MAIN] INFO: 0x02
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: 0xA0
[NWK_MGR/MAIN] INFO: 0x02
[NWK_MGR/MAIN] INFO: 0x01
[NWK_MGR/MAIN] INFO: [MUTEX] Lock SRSP Mutex[NWK_MGR/MAIN] INFO:
[MUTEX] SRSP Lock status: 0
[ZSTACKZNP_SRVR/LSTN] INFO: Receive message…
[ZSTACKZNP_SRVR/LSTN] INFO: zstackpb zspbHandlePbCb: subsystemID:31, cmdId:14
[ZSTACKZNP_SRVR/LSTN] INFO: …sent 8 bytes to Client
[ZSTACKZNP_SRVR/LSTN] INFO: !Done
[NWK_MGR/READ] INFO: Received 4 bytes, subSys 0x71, cmdId 0x14, pData:
[NWK_MGR/READ] INFO: 0x8
[NWK_MGR/READ] INFO: 0x14
[NWK_MGR/READ] INFO: 0x10
[NWK_MGR/READ] INFO: 0x0
[NWK_MGR/READ] INFO: [MUTEX] SRSP Cond signal set
[NWK_MGR/READ] INFO: Client Read: (len 0): [NWK_MGR/MAIN] INFO: Waiting for synchronous response…
[NWK_MGR/MAIN] INFO: [MUTEX] Wait for SRSP Cond signal…
[NWK_MGR/MAIN] INFO: 0x08
[NWK_MGR/MAIN] INFO: 0x14
[NWK_MGR/MAIN] INFO: 0x10
[NWK_MGR/MAIN] INFO: 0x00
[NWK_MGR/MAIN] INFO: [MUTEX] Unlock SRSP Mutex
ZDO Callback Register Response Successful
NwkMgr sendSysNwkInfoReadReq:
[NWK_MGR/MAIN] INFO: preparing to send 2 bytes, subSys 0x11, cmdId 0x08, pData:
[NWK_MGR/MAIN] INFO: 0x08
[NWK_MGR/MAIN] INFO: 0x08
[NWK_MGR/MAIN] INFO: [MUTEX] Lock SRSP Mutex[NWK_MGR/MAIN] INFO:
[MUTEX] SRSP Lock status: 0
[ZSTACKZNP_SRVR/LSTN] INFO: Receive message…
[ZSTACKZNP_SRVR/LSTN] INFO: zstackpb zspbHandlePbCb: subsystemID:31, cmdId:8
[ZSTACKZNP_SRVR/LSTN] INFO: preparing to send 0 bytes, subSys 0x05, cmdId 0x50, pData:
[ZSTACKZNP_SRVR/LSTN] INFO: [MUTEX] Lock SRSP Mutex[ZSTACKZNP_SRVR/LSTN] INFO:
[MUTEX] SRSP Lock status: 0
[ZSTACKZNP_SRVR/LSTN] INFO: Waiting for synchronous response…
[ZSTACKZNP_SRVR/LSTN] INFO: [MUTEX] Wait for SRSP Cond signal…
[NWK_MGR/MAIN] INFO: Waiting for synchronous response…
[NWK_MGR/MAIN] INFO: [MUTEX] Wait for SRSP Cond signal…
[ZSTACKZNP_SRVR/LSTN] INFO: [MUTEX] SRSP Cond Wait timed out!
[ZSTACKZNP_SRVR/LSTN] INFO: [MUTEX] Unlock SRSP Mutex
[ZSTACKZNP_SRVR/LSTN] INFO: zstackpb Sending Network Info Response
[ZSTACKZNP_SRVR/LSTN] INFO: znp_misc osal_nv_read: id:1, len:8
[ZSTACKZNP_SRVR/LSTN] INFO: preparing to send 3 bytes, subSys 0x01, cmdId 0x08, pData:
[ZSTACKZNP_SRVR/LSTN] INFO: 0x01
[ZSTACKZNP_SRVR/LSTN] INFO: 0x00
[ZSTACKZNP_SRVR/LSTN] INFO: 0x00
[ZSTACKZNP_SRVR/LSTN] INFO: [MUTEX] Lock SRSP Mutex[ZSTACKZNP_SRVR/LSTN] INFO:
[MUTEX] SRSP Lock status: 0
[ZSTACKZNP_SRVR/LSTN] INFO: Waiting for synchronous response…
[ZSTACKZNP_SRVR/LSTN] INFO: [MUTEX] Wait for SRSP Cond signal…
[NWK_MGR/MAIN] INFO: [MUTEX] SRSP Cond Wait timed out!
[NWK_MGR/MAIN] INFO: [MUTEX] Unlock SRSP Mutex
[NWK_MGR/MAIN] ERROR: Reading Local Network Information Failed
[NWK_MGR/MAIN] : Initialization failed. Quitting now. mhoyt
网关和协调器的串口通信是没有问题的。请问这可能是由什么问题导致的?
谢谢!
VV:
目前的linux Gateway 的参考代码还不能直接和Z-Stack 3.0 ZNP使用,后续发布的版本才可以。
建议先使用Z-Stack Home 1.2.2a的ZNP
miffy:
回复 VV:
前段时间我也尝试调试过Linux gateway 配合Z-Stack 3.0 ZNP,结果总是莫名其表各种问题,基本上就是Gateway发过去的命令总是执行超时,用的也是UART口;
后来gateway代码过于复杂,又转向尝试znp-host-framework,发现同样也是很多问题,比如3.0 zigbee协议部分实现了bdb接口,3.0协议也推荐使用bdb实现设备的建网、配对等等,但是znp-host-framework仍然用的是ZDO部分的接口包括消息回调,仍然都是ZDO的接口。
至今也没有完全搞定ZNP和znp-host-framework之间的完全组网。
xiaohui bu:
回复 miffy:
@hold li
请教一下,我的linux gateway移植到其他平台的时候,总是编译不过。
除了修改编译交叉环境变量和UART驱动部分代码后,还有哪些地方需要修改的?
miffy:
回复 xiaohui bu:
我的实践已经证明,只要是ARM LINUX都可以编译过去的,Android下面也是linux,我在台湾一家公司的SOC上跑Linux已经成功编译了,不是AM335x的armv7,是armv5ejs,把编译错误贴上来看看
miffy:
回复 xiaohui bu:
@xiaohui bu 参考我的帖子http://blog.csdn.net/code_style/article/details/54375494#comments
gladsnow:
回复 VV:
谢谢!目前gateway和znp通信正常了。
Su Jia-Sing:
回复 gladsnow:
您好,
我正在mips平台上移植TI CC2530, 目前有遇到在執行NWK Mgr 時, NPI deamon收到unknown request 而發生error
請問您有遇到過嗎?
謝謝!
# ./zigbeeHAgw mipsrunning zigbeegw.scr on an mipsdone processing arguments, board type mips, target mipsNPI is 'NPI_lnx_mips_server'Zstack linux server is 'ZLSZNP_mips'gateway server is 'GATEWAY_SRVR_mips'network manager is 'NWKMGR_SRVR_mips'OTA server is 'OTA_SRVR_mips'making sure there are no lingering servers…there are 0 NIP serversthere are 0 ZLS serversthere are 0 GATEWAY serversthere are 0 NWKMGR serversthere are 0 OTA servers(total 0)donemaking sure there are no lingering servers…there are 0 NIP serversthere are 0 ZLS serversthere are 0 GATEWAY serversthere are 0 NWKMGR serversthere are 0 OTA servers(total 0)doneskipping zigbee resetStarting the ZigBee gateway subsystem===================================================starting NPI, cmd ' ./NPI_lnx_mips_server NPI_Gateway.cfg ' atThu Jan 1 08:01:10 GMT 1970will delay 4 secs before starting ZstackdeviceKey = 0 (0 )devPath = '/dev/ttyS1'logPath = '/tmp/NpiLnxLog.txt'… freeing memory (ret 0)waiting for first connection on #4…NPI started (pid 1339) at Thu Jan 1 08:01:14 GMT 1970===================================================starting ZLSZNP, cmd ' ' atThu Jan 1 08:01:14 GMT 1970will delay 4 secs before starting GWTrying to connect…Connected to #6.Connected.Port: 166201832Following IP addresses are available: IPv4: interface: lo IP Address 127.0.0.1 IPv4: interface: br0 IP Address 192.168.1.12 IPv6: interface: lo IP Address ::1 IPv6: interface: eth0 IP Address fe80::2e0:4cff:fe81:adc3 IPv6: interface: eth0.3 IP Address fe80::2e0:4cff:fe81:adc3 IPv6: interface: eth0.5 IP Address fe80::2e0:4cff:fe81:adc3 IPv6: interface: nas0 IP Address fe80::200:ff:fe01:2 IPv6: interface: br0 IP Address fe80::1 IPv6: interface: nas0_0 IP Address fe80::2e0:4cff:fe81:adc8The socket will listen on the following IP addresses: IPv4: 0.0.0.0 IPv6: ::0.0.0.0 means it will listen to all available IP addresswaiting for first connection on #6…ZLSZNP started (pid 1345) at Thu Jan 1 08:01:19 GMT 1970===================================================starting NETWORK_MGR, cmd './NWKMGR_SRVR_mips 127.0.0.1:2536 ' at Thu Jan 1 08:01:19 GMT 1970will delay 1 secs after starting netmgr[NWK_MGR/MAIN] : there are 2 args[NWK_MGR/MAIN] : argv[0] = ./NWKMGR_SRVR_mips[NWK_MGR/MAIN] : argv[1] = 127.0.0.1:2536Trying to connect…Connected to #7.Connected.Port: 2540Following IP addresses are available: IPv4: interface: lo IP Address 127.0.0.1 IPv4: interface: br0 IP Address 192.168.1.12 IPv6: interface: lo IP Address ::1 IPv6: interface: eth0 IP Address fe80::2e0:4cff:fe81:adc3 IPv6: interface: eth0.3 IP Address fe80::2e0:4cff:fe81:adc3 IPv6: interface: eth0.5 IP Address fe80::2e0:4cff:fe81:adc3 IPv6: interface: nas0 IP Address fe80::200:ff:fe01:2 IPv6: interface: br0 IP Address fe80::1 IPv6: interface: nas0_0 IP Address fe80::2e0:4cff:fe81:adc8The socket will listen on the following IP addresses: IPv4: 0.0.0.0 IPv6: ::0.0.0.0 means it will listen to all available IP addresswaiting for first connection on #6…[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] : ************************************************[nmRegEndpoint][4493] len 21Can only accept AREQ or SREQ for now…Unknown: (len 24) 0x15 0x00 0x31 0x20 0x08 0x20 0x10 0x01 0x1A 0x0D 0x08 0x01 0x10 0x84 0x02 0x18 0x07 0x20 0x00 0x28 0x00 0x30 0x06 0x20[ERR] npi_ipc_errno 0x01030400Exit socket while loopconnect: No such file or directoryconnect: No such file or directory… freeing memory (ret 1)recv: Connection reset by peerNETWORK MANAGER started (pid 1352) at Thu Jan 1 08:01:20 GMT 1970
hongliang liu1:
回复 miffy:
我也遇到了运行./zigbeeHAgw bbb出错,请问你知道是什么问题吗,求指教,谢谢
root@debian:/zigbee/servers# ./zigbeeHAgw bbb running zigbeegw.scr on an ARMskipping zigbee resetStarting the ZigBee gateway subsystemgpioCfg 0x1df04gpioCfg[0] 0x16871a0gpioCfg[0].gpio 0x16871b0gpioCfg[0].levelshifter 0x1687331gpioCfg[1] 0x16871a4gpioCfg[1].gpio 0x16874b8gpioCfg[1].levelshifter 0x1687639gpioCfg[2] 0x16871a8gpioCfg[2].gpio 0x16877c0gpioCfg[2].levelshifter 0x1687941——————————————————Serial Config Parsing:- Section: DEVICE- Key: deviceKeyFound section [PORT]esFound section [DEVICE]Found wanted section!Line to process deviceKey=0 ; UART (strlen=18)Found key 'deviceKey' in 'deviceKey=0 ; UART'Found value '0 'Found value2 '0 'deviceKey = 0 (0 )——————————————————Serial Config Parsing:- Section: DEVICE- Key: devPathFound section [PORT]esFound section [DEVICE]Found wanted section!Line to process deviceKey=0 ; UART (strlen=18)Line to process #deviceKey=1 ; SPI (strlen=18)Line to process (strlen=0)Line to process devPath="/dev/ttymxc1" ; UART/CDC (strlen=33)Found key 'devPath' in 'devPath="/dev/ttymxc1" ; UART/CDC'Found value '/dev/ttymxc1'Found value2 '/dev/ttymxc1'devPath = '/dev/ttymxc1'——————————————————Serial Config Parsing:- Section: LOG- Key: logFound section [PORT]esFound section [DEVICE]Found section [UART]esFound section [SPI]tesFound section [LOG]tesFound wanted section!Line to process log="./NpiLnxLog.txt" ; file to log all event/error (strlen=51)Found key 'log' in 'log="./NpiLnxLog.txt" ; file to log all event/error'Found value './NpiLnxLog.txt'Found value2 './NpiLnxLog.txt'logPath = './NpiLnxLog.txt'——————————————————Serial Config Parsing:- Section: UART- Key: speedFound section [PORT]esFound section [DEVICE]Found section [UART]esFound wanted section!Line to process speed=115200 ; speed (strlen=20)Found key 'speed' in 'speed=115200 ; speed'Found value '115200 'Found value2 '115200 '——————————————————Serial Config Parsing:- Section: UART- Key: flowcontrolFound section [PORT]esFound section [DEVICE]Found section [UART]esFound wanted section!Line to process speed=115200 ; speed (strlen=20)Line to process flowcontrol=0 ; 1=enabled 0=disable (strlen=35)Found key 'flowcontrol' in 'flowcontrol=0 ; 1=enabled 0=disable'Found value '0 'Found value2 '0 '[UART] Opening device /dev/ttymxc1[UART] Install IO signal handler [UART] Baud rate set to 115200 (0x001002)[UART] c_cflag set to 0x0018B2——————————————————Serial Config Parsing:- Section: PORT- Key: portFound section [PORT]esFound wanted section!Line to process port=2533 (strlen=9)Found key 'port' in 'port=2533'Found value '2533'Found value2 '2533'… freeing memory (ret 0)Port: 2533Following IP addresses are available:
IPv4: interface: lo IP Address 127.0.0.1 IPv4: interface: eth0 IP Address 192.168.1.217 IPv6: interface: lo IP Address ::1 IPv6: interface: eth0 IP Address fe80::2aa:eeff:febb:eeccThe socket will listen on the following IP addresses:
IPv4: 0.0.0.0 IPv6: ::0.0.0.0 means it will listen to all available IP address
waiting for first connection on #3…[UART] Wait for mutex in rx entry:NPI started (pid 21284) at Wed Jan 24 11:03:50 UTC 2018Connected to #5.(127.0.0.1 / ::0.240.254.118)Receive message…NPI SREQ: (len 5) 0x02 0x25 0x3E 0xFF 0xFFZLSZNP started (pid 21303) at Wed Jan 24 11:03:54 UTC 2018[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 21323) at Wed Jan 24 11:03:55 UTC 2018[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/MAIN] DEBUG: parsing Poll Control fields[GATEWAY/MAIN] DEBUG: parsing defines[GATEWAY/MAIN] DEBUG: parsing attributes[GATEWAY/MAIN] DEBUG: parsing attrlists[GATEWAY/MAIN] DEBUG: parsing clusterlists[GATEWAY/MAIN] DEBUG: parsing endpointdefs[GATEWAY/MAIN] DEBUG: parsing endpoints[UART] Send synch data timed out[ERR] SRSP: npi_ipc_errno 0x02040100!DoneSynchronous Request Timeout…Receive message…NPI SREQ: (len 11) 0x08 0x21 0x09 0x84 0x00 0x00 0x04 0x00 0x08 0x00 0x00GATEWAY SERVER started (pid 21333) at Wed Jan 24 11:03:57 UTC 2018[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] : ************************************************
[OTASRVR/MAIN] DEBUG: Registering OTA end point 0xe, profile id 0x104 device id 0x0[OTASRVR/MAIN] DEBUG: Sending AF Register Request.OTA SERVER started (pid 21348) at Wed Jan 24 11:03:59 UTC 2018[OTASRVR/MAIN] DEBUG: apicSendSynchData_pRsp < 0 [OTASRVR/MAIN] DEBUG: AF Register Request status 0x3[OTASRVR/MAIN] DEBUG: *** Error doing AF Register , return status 0x3[OTASRVR/MAIN] : Error – Could not register OTA endpoint with zstackserver.Exiting…
starting tracker with our pid ./zigbeeHAgw and pid list 21284 21303 21333 21348===================================================tracking 4 pids, 21284 21303 21333 21348when we see something missing we will send a SIGUSR2 to pid 21216[NWK_MGR/MAIN] ERROR: Reading Local Network Information Failed[NWK_MGR/MAIN] : Initialization failed. Quitting now. mhoyt
NETWORK MANAGER exited with code 255 at Wed Jan 24 11:04:00 UTC 2018[UART] Send synch data timed out[ERR] SRSP: npi_ipc_errno 0x02040100!DoneSynchronous Request Timeout…Receive message…NPI SREQ: (len 9) 0x06 0x21 0x09 0x83 0x00 0x00 0x02 0xFF 0xFFkillall: OTA_SRVR_arm: no process killed^Ccaught SIGTERM, killing all the servers and cleaning upterminating zigbeeHAGW (pid 21216)Killedroot@debian:/zigbee/servers# root@debian:/zigbee/servers#
这是运行的结果,每次都是报这个错误
[OTASRVR/MAIN] DEBUG: Registering OTA end point 0xe, profile id 0x104 device id 0x0[OTASRVR/MAIN] DEBUG: Sending AF Register Request.OTA SERVER started (pid 21348) at Wed Jan 24 11:03:59 UTC 2018[OTASRVR/MAIN] DEBUG: apicSendSynchData_pRsp < 0 [OTASRVR/MAIN] DEBUG: AF Register Request status 0x3[OTASRVR/MAIN] DEBUG: *** Error doing AF Register , return status 0x3[OTASRVR/MAIN] : Error – Could not register OTA endpoint with zstackserver.Exiting…
是OAT服务器的错误吗?请问怎么解决这个问题呢,谢谢