This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Z-Stack_Linux_Gateway-1.0.1移植问题,求助求助

Other Parts Discussed in Thread: Z-STACK

我在移植Z-Stack_Linux_Gateway标准网关遇到的问题,在运行./zigbeeHAgw bbb的时候,一直报以下错误,希望得到TI工程师回帖,谢谢

root@debian:/zigbee/servers# ./zigbeeHAgw bbb
running zigbeegw.scr on an ARM
skipping zigbee reset
Starting the ZigBee gateway subsystem
gpioCfg 0x1df04
gpioCfg[0] 0x16871a0
gpioCfg[0].gpio 0x16871b0
gpioCfg[0].levelshifter 0x1687331
gpioCfg[1] 0x16871a4
gpioCfg[1].gpio 0x16874b8
gpioCfg[1].levelshifter 0x1687639
gpioCfg[2] 0x16871a8
gpioCfg[2].gpio 0x16877c0
gpioCfg[2].levelshifter 0x1687941
------------------------------------------------------
Serial Config Parsing:
- Section: DEVICE
- Key: deviceKey
Found section [PORT]es
Found 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: devPath
Found section [PORT]es
Found 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: log
Found section [PORT]es
Found section [DEVICE]
Found section [UART]es
Found section [SPI]tes
Found section [LOG]tes
Found 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: speed
Found section [PORT]es
Found section [DEVICE]
Found section [UART]es
Found 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: flowcontrol
Found section [PORT]es
Found section [DEVICE]
Found section [UART]es
Found 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: port
Found section [PORT]es
Found 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: 2533
Following 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:eecc
The 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 2018
Connected to #5.(127.0.0.1 / ::0.240.254.118)
Receive message...
NPI SREQ: (len 5) 0x02 0x25 0x3E 0xFF 0xFF
ZLSZNP 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
!Done
Synchronous Request Timeout...Receive message...
NPI SREQ: (len 11) 0x08 0x21 0x09 0x84 0x00 0x00 0x04 0x00 0x08 0x00 0x00
GATEWAY 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 21348
when 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
!Done
Synchronous Request Timeout...Receive message...
NPI SREQ: (len 9) 0x06 0x21 0x09 0x83 0x00 0x00 0x02 0xFF 0xFF
killall: OTA_SRVR_arm: no process killed
^Ccaught SIGTERM, killing all the servers and cleaning up
terminating zigbeeHAGW (pid 21216)
Killed
root@debian:/zigbee/servers#
root@debian:/zigbee/servers#

  • 参考TI的文档,移植了两次,还是报同意的错误,请问有人知道是哪里错误了吗?非常感谢!!!

    [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 21348
    when 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
    !Done
    Synchronous Request Timeout...Receive message...
    NPI SREQ: (len 9) 0x06 0x21 0x09 0x83 0x00 0x00 0x02 0xFF 0xFF
    killall: OTA_SRVR_arm: no process killed
    ^Ccaught SIGTERM, killing all the servers and cleaning up
    terminating zigbeeHAGW (pid 21216)
    Killed

  • 请问你是用的硬件板子什么,串口的配置正确吗?

  • 不建议用这个进行开发,建议使用znp-host-framework,稳定简单好用
  • 楼主用的什么平台?移植的时候某些直接操作硬件寄存器的c文件,也要修改的