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.

CC2538: zigbee 3.0 gateway modification for ZNP with uart interface.

Guru 14820 points
Part Number: CC2538
Other Parts Discussed in Thread: , Z-STACK, LAUNCHXL-CC26X2R1, CC2531EMK

Hello 

what are the changes required in zigbee 3.0 gateway to use cc2538 znp with UART interface?

any documentation for that.

  • Part Number: CC2538

    Hello,

    I am using cc2538-cc2592emk as znp with UART interface with Raspberry pi 3 and zigbee 3.0 gateway.

    But its not working.

    when I run the ZigbeeHAgw it does not starts.

    PFA for  gateway logs

    Platform type selected automatically as bbb.
    To override this selection, please stop this script, and then run it again,
    specifying the desired platform type at the command line:
      ./zigbeeHAgw [help | bbb | x86 ]
    
    running ./zigbeeHAgw on an ARM
    done processing arguments, board type bbb, target arm
    NPI                 is 'NPI_lnx_arm_server'
    Zstack linux server is 'ZLSZNP_arm'
    gateway server      is 'GATEWAY_SRVR_arm'
    network manager     is 'NWKMGR_SRVR_arm'
    OTA server     	  is 'OTA_SRVR_arm'
    Starting the ZigBee gateway subsystem
    making sure there are no lingering servers...
    there are 0 NPI servers
    there are 0 ZLS servers
    there are 0 GATEWAY servers
    there are 0 NWKMGR servers
    there are 0 OTA servers
    (total 0)
    done
    Executing reset from external scripts
    ===================================================
    starting NPI, cmd ' ./NPI_lnx_arm_server NPI_Gateway.cfg -v 0x0000010E ' on Tue Mar 19 23:01:04 IST 2019
    [23:01:04.011,410] [NPISRVR/MAIN] UNMSKBL: 
    [23:01:04.011,916] [NPISRVR/MAIN] UNMSKBL:  ************************************************
    [23:01:04.011,956] [NPISRVR/MAIN] UNMSKBL:  *  NPI Server v1.0.2d                          *
    [23:01:04.012,008] [NPISRVR/MAIN] UNMSKBL:  ************************************************
    [23:01:04.012,040] [NPISRVR/MAIN] UNMSKBL: 
    getaddrinfo error: Servname not supported for ai_socktype
    Startup phase 1 completed successfully, server started (NPI_PID=4824) on Tue Mar 19 23:01:04 IST 2019
    ===================================================
    starting ZLSZNP, cmd ' ' on Tue Mar 19 23:01:04 IST 2019
    [23:01:04.049,318] [Z_STACK/MAIN] UNMSKBL: 
    [23:01:04.050,031] [Z_STACK/MAIN] UNMSKBL:  ************************************************
    [23:01:04.050,091] [Z_STACK/MAIN] UNMSKBL:  *  ZStack Server for ZNP v1.0.2d               *
    [23:01:04.050,126] [Z_STACK/MAIN] UNMSKBL:  ************************************************
    [23:01:04.050,158] [Z_STACK/MAIN] UNMSKBL: 
    [23:01:04.050,270] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [AREQ] 08:5F:00:02:5A:5F:53:54:41:43:4B
    [23:01:04.050,675] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 02:25:3E:FF:FF
    Trying default port: 2533 instead
    [23:01:04.050,619] [NPISRVR/MAIN] PKT_HEX: New incoming connection from client Z_STACK (connection # 5)
    [23:01:04.050,934] [NPISRVR/MAIN] PKT_HEX: [SOCZIGB<<NPISRVR                                    ] [send] 02:25:3E:FF:FF
    [23:01:06.050,917] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [23:01:06.051,043] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [23:01:06.051,143] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 01:2F:09:00
    [23:01:08.051,395] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [23:01:08.051,518] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [23:01:08.051,600] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 01:2F:06:00
    Synchronous Request Timeout...
    [23:01:10.051,590] [NPISRVR/MAIN] PKT_HEX: [SOCZIGB<<NPISRVR                                    ] [send] 01:2F:09:00
    [23:01:10.051,870] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [23:01:10.051,952] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [23:01:10.052,030] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 01:2F:02:08
    [23:01:10.052,305] [NPISRVR/U_RX] PKT_HEX: [SOCZIGB>>NPISRVR                                    ] [ASNC] 01:2F:09:00
    [23:01:10.052,422] [NPISRVR/ACBK] PKT_HEX: [         NPISRVR>>Z_STACK                           ] [bcst] 01:2F:09:00
    [23:01:12.052,311] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [23:01:12.052,437] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [23:01:12.052,530] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 05:2F:08:00:00:00:00:00
    [23:01:14.052,784] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [23:01:14.052,920] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [23:01:14.053,011] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 05:2F:08:01:00:08:00:00
    Synchronous Request Timeout...
    [23:01:16.052,283] [NPISRVR/MAIN] PKT_HEX: [SOCZIGB<<NPISRVR                                    ] [send] 01:2F:06:00
    [23:01:16.053,250] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [23:01:16.053,336] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [23:01:16.053,433] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 06:21:09:83:00:00:02:FF:FF
    [23:01:18.053,731] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [23:01:18.053,860] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [23:01:18.053,954] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 05:21:09:87:00:00:01:00
    [23:01:20.054,217] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [23:01:20.054,344] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [23:01:20.054,444] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 07:21:15:96:00:C4:64:00:00:00
    Synchronous Request Timeout...
    [23:01:22.052,888] [NPISRVR/MAIN] PKT_HEX: [SOCZIGB<<NPISRVR                                    ] [send] 01:2F:02:08
    [23:01:22.054,694] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [23:01:22.054,805] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [23:01:22.058,002] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 01:2F:05:04
    Startup phase 2 completed successfully, server started (ZLSZNP_PID=4832) on Tue Mar 19 23:01:22 IST 2019
    ===================================================
    starting NETWORK_MGR, cmd ' ./NWKMGR_SRVR_arm 127.0.0.1:2536 -v 0x0000460E ' on Tue Mar 19 23:01:22 IST 2019
    [23:01:22.087,915] [NWK_MGR/MAIN] UNMSKBL: 
    [23:01:22.088,417] [NWK_MGR/MAIN] UNMSKBL:  ************************************************
    [23:01:22.088,468] [NWK_MGR/MAIN] UNMSKBL:  *  Network Manager Server v1.0.2d              *
    [23:01:22.088,532] [NWK_MGR/MAIN] UNMSKBL:  ************************************************
    [23:01:22.088,582] [NWK_MGR/MAIN] UNMSKBL: 
    [23:01:22.088,737] [NWK_MGR/MAIN] PKTTYPE: [                  Z_STACK<<NWK_MGR                  ] [AREQ] 08:00:5F:00:03:4E:57:4B:5F:4D:47:52
    [23:01:22.089,215] [NWK_MGR/MAIN] PKTTYPE: [                  Z_STACK<<NWK_MGR                  ] devZDOCBReq
    [23:01:22.089,347] [NWK_MGR/MAIN] PKTBODY:                                                          cmdID = DEV_ZDO_CBS_REQ
    [23:01:22.089,395] [NWK_MGR/MAIN] PKTBODY:                                                          srcRtgIndCB = 1
    [23:01:22.089,438] [NWK_MGR/MAIN] PKTBODY:                                                          concentratorIndCb = 1
    [23:01:22.089,478] [NWK_MGR/MAIN] PKTBODY:                                                          nwkDiscCnfCB = 1
    [23:01:22.089,518] [NWK_MGR/MAIN] PKTBODY:                                                          beaconNotIndCB = 1
    [23:01:22.089,560] [NWK_MGR/MAIN] PKTBODY:                                                          joinCnfCB = 1
    [23:01:22.089,600] [NWK_MGR/MAIN] PKTBODY:                                                          leaveCnfCB = 1
    [23:01:22.089,640] [NWK_MGR/MAIN] PKTBODY:                                                          leaveIndCB = 1
    [23:01:22.089,683] [NWK_MGR/MAIN] PKTBODY:                                                          nwkAddrRsp = 1
    [23:01:22.089,724] [NWK_MGR/MAIN] PKTBODY:                                                          ieeeAddrRsp = 1
    [23:01:22.089,765] [NWK_MGR/MAIN] PKTBODY:                                                          nodeDescRsp = 1
    [23:01:22.089,808] [NWK_MGR/MAIN] PKTBODY:                                                          powerDescRsp = 1
    [23:01:22.089,850] [NWK_MGR/MAIN] PKTBODY:                                                          simpleDescRsp = 1
    [23:01:22.089,891] [NWK_MGR/MAIN] PKTBODY:                                                          activeEndpointRsp = 1
    [23:01:22.089,949] [NWK_MGR/MAIN] PKTBODY:                                                          matchDescRsp = 1
    [23:01:22.089,994] [NWK_MGR/MAIN] PKTBODY:                                                          complexDescRsp = 1
    [23:01:22.090,033] [NWK_MGR/MAIN] PKTBODY:                                                          userDescRsp = 1
    [23:01:22.090,097] [NWK_MGR/MAIN] PKTBODY:                                                          discoveryCacheRsp = 1
    [23:01:22.090,156] [NWK_MGR/MAIN] PKTBODY:                                                          userDescCnf = 1
    [23:01:22.090,214] [NWK_MGR/MAIN] PKTBODY:                                                          serverDiscoveryRsp = 1
    [23:01:22.090,262] [NWK_MGR/MAIN] PKTBODY:                                                          endDeviceTimeoutRsp = 1
    [23:01:22.090,307] [NWK_MGR/MAIN] PKTBODY:                                                          bindRsp = 1
    [23:01:22.090,346] [NWK_MGR/MAIN] PKTBODY:                                                          endDeviceBindRsp = 1
    [23:01:22.090,386] [NWK_MGR/MAIN] PKTBODY:                                                          unbindRsp = 1
    [23:01:22.090,430] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtNwkDiscRsp = 1
    [23:01:22.090,470] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtLqiRsp = 1
    [23:01:22.090,510] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtRtgRsp = 1
    [23:01:22.090,557] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtBindRsp = 1
    [23:01:22.090,607] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtLeaveRsp = 1
    [23:01:22.090,650] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtDirectJoinRsp = 1
    [23:01:22.090,691] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtPermitJoinRsp = 1
    [23:01:22.090,731] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtNwkUpdateNotify = 1
    [23:01:22.090,772] [NWK_MGR/MAIN] PKTBODY:                                                          deviceAnnounce = 1
    [23:01:22.090,814] [NWK_MGR/MAIN] PKTBODY:                                                          devStateChange = 1
    [23:01:22.090,856] [NWK_MGR/MAIN] PKTBODY:                                                          tcDeviceInd = 1
    [23:01:22.092,521] [NWK_MGR/MAIN] PKTTYPE: [                  Z_STACK<<NWK_MGR                  ] sysNwkInfoReadReq
    [23:01:22.092,603] [NWK_MGR/MAIN] PKTBODY:                                                          cmdID = SYS_NWK_INFO_READ_REQ
    [23:01:22.091,437] [Z_STACK/LSTN] CONNECT: Connected to new client, connection # 5
    [23:01:22.091,589] [Z_STACK/LSTN] CONNECT: Client at connection # 5 identified itself as NWK_MGR
    [23:01:22.091,966] [Z_STACK/LSTN] PKTTYPE: [                  Z_STACK>>NWK_MGR                  ] zstackDefaultRsp
    [23:01:22.092,071] [Z_STACK/LSTN] PKTBODY:                                                          cmdID = DEV_ZDO_CBS_REQ
    [23:01:22.092,129] [Z_STACK/LSTN] PKTBODY:                                                          status = ZSuccess
    [23:01:24.058,403] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [23:01:24.058,539] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [23:01:24.058,604] [Z_STACK/LSTN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 00:25:50
    [23:01:24.092,867] [NWK_MGR/MAIN] ERROR  : SRSP Cond Wait timed out!
    [23:01:24.093,014] [NWK_MGR/MAIN] ERROR  : apicSendSynchData() failed getting response
    [23:01:24.095,199] [NWK_MGR/MAIN] ERROR  : Reading Local Network Information Failed
    [23:01:24.095,319] [NWK_MGR/MAIN] UNMSKBL: Initialization failed. Quitting now.
    
    Startup phase 3 failed
    waiting for Zstack linux to exit
    waiting for NPI to exit
    making sure there are no lingering servers...
    there are 0 NPI servers
    there are 0 ZLS servers
    there are 0 GATEWAY servers
    there are 0 NWKMGR servers
    there are 0 OTA servers
    (total 0)
    done
    Executing reset from external scripts
    ^Ccaught SIGTERM, killing all the servers and cleaning up
    making sure there are no lingering servers...
    there are 0 NPI servers
    there are 0 ZLS servers
    there are 0 GATEWAY servers
    there are 0 NWKMGR servers
    there are 0 OTA servers
    (total 0)
    done
    terminating zigbeeHAGW (pid 4781)
    

  • Hi,

    Make sure deviceKey is 0 in NPI_Gateway.cfg.

    This is mentioned in section "5.1 NPI Server" in "Z-Stack Linux Gateway User Guide.pdf".



    Regards,
    Toby
  • that is bydefault
    deviceKey=0 ; UART
  • PA0/PA1 are configured for UART 0 or UART 1 ??
  • PA0/PA1 are configured for UART 0. I suggest you to connect your CC2538-CC2592EMK to ZTool and see if it works first.
  • ok so before that .
    For cc2538 znp firmware, changes mentioned in the document Z-Stack ZNP Interface Specification are enough ?
  • I have connected to z-TOOL , as shown above and Z-tool connection ststus.

  • Since it works with ZTool, I suggest you to connect it to Zigbee 3.0 Gateway and debug with IAR to see what is missed.
  • prior to that ...I wanted to know what are the changes required in zigbee 3.0 gateway to use znp with UART interface instead of USB?
    Beause it is different from old gateway so we can not follow your blog also -sunmaysky.blogspot.com/.../how-to-run-ti-z-stack-linux-home.html

  • can you provide the predefined symbols used in prebuilt CC2538 ZNP FW of Z-Stack 3.0 Gateway reference design?
  • When i start the "zigbeeHAgw " - It always throws the error as shown below-

    pi@raspberrypi:~/Desktop/zigbee_gateway_v3.0/out/Precompiled/servers $ sudo ./zigbeeHAgw
    Platform type selected automatically as bbb.
    To override this selection, please stop this script, and then run it again,
    specifying the desired platform type at the command line:
      ./zigbeeHAgw [help | bbb | x86 ]
    
    running ./zigbeeHAgw on an ARM
    done processing arguments, board type bbb, target arm
    NPI                 is 'NPI_lnx_arm_server'
    Zstack linux server is 'ZLSZNP_arm'
    gateway server      is 'GATEWAY_SRVR_arm'
    network manager     is 'NWKMGR_SRVR_arm'
    OTA server     	  is 'OTA_SRVR_arm'
    Starting the ZigBee gateway subsystem
    making sure there are no lingering servers...
    there are 0 NPI servers
    there are 0 ZLS servers
    there are 0 GATEWAY servers
    there are 0 NWKMGR servers
    there are 0 OTA servers
    (total 0)
    done
    Executing reset from external scripts
    ===================================================
    starting NPI, cmd ' ./NPI_lnx_arm_server NPI_Gateway.cfg -v 0x0000010E ' on Thu Mar 21 22:06:06 IST 2019
    [22:06:06.859,425] [NPISRVR/MAIN] UNMSKBL: 
    [22:06:06.859,898] [NPISRVR/MAIN] UNMSKBL:  ************************************************
    [22:06:06.859,942] [NPISRVR/MAIN] UNMSKBL:  *  NPI Server v1.0.2d                          *
    [22:06:06.859,974] [NPISRVR/MAIN] UNMSKBL:  ************************************************
    [22:06:06.860,009] [NPISRVR/MAIN] UNMSKBL: 
    getaddrinfo error: Servname not supported for ai_socktype
    Startup phase 1 completed successfully, server started (NPI_PID=1292) on Thu Mar 21 22:06:06 IST 2019
    ===================================================
    starting ZLSZNP, cmd ' ' on Thu Mar 21 22:06:06 IST 2019
    [22:06:06.898,664] [Z_STACK/MAIN] UNMSKBL: 
    [22:06:06.899,037] [Z_STACK/MAIN] UNMSKBL:  ************************************************
    [22:06:06.899,079] [Z_STACK/MAIN] UNMSKBL:  *  ZStack Server for ZNP v1.0.2d               *
    [22:06:06.899,116] [Z_STACK/MAIN] UNMSKBL:  ************************************************
    [22:06:06.899,148] [Z_STACK/MAIN] UNMSKBL: 
    [22:06:06.899,263] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [AREQ] 08:5F:00:02:5A:5F:53:54:41:43:4B
    [22:06:06.899,559] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 02:25:3E:FF:FF
    Trying default port: 2533 instead
    [22:06:06.899,883] [NPISRVR/MAIN] PKT_HEX: New incoming connection from client Z_STACK (connection # 5)
    [22:06:06.900,020] [NPISRVR/MAIN] PKT_HEX: [SOCZIGB<<NPISRVR                                    ] [send] 02:25:3E:FF:FF
    [22:06:08.899,755] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [22:06:08.899,874] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [22:06:08.899,955] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 01:2F:09:00
    [22:06:10.900,241] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [22:06:10.900,343] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [22:06:10.900,424] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 01:2F:06:00
    Synchronous Request Timeout...
    [22:06:12.900,576] [NPISRVR/MAIN] PKT_HEX: [SOCZIGB<<NPISRVR                                    ] [send] 01:2F:09:00
    [22:06:12.900,725] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [22:06:12.900,791] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [22:06:12.900,868] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 01:2F:02:08
    [22:06:14.901,215] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [22:06:14.901,322] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [22:06:14.901,408] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 05:2F:08:00:00:00:00:00
    [22:06:16.901,729] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [22:06:16.901,840] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [22:06:16.901,930] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 05:2F:08:01:00:20:00:00
    Synchronous Request Timeout...
    [22:06:18.901,302] [NPISRVR/MAIN] PKT_HEX: [SOCZIGB<<NPISRVR                                    ] [send] 01:2F:06:00
    [22:06:18.902,218] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [22:06:18.902,281] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [22:06:18.902,372] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 06:21:09:83:00:00:02:FF:FF
    [22:06:20.902,652] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [22:06:20.902,767] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [22:06:20.902,859] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 05:21:09:87:00:00:01:00
    [22:06:22.903,168] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [22:06:22.903,282] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [22:06:22.903,380] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 07:21:15:96:00:C4:64:00:00:00
    Synchronous Request Timeout...
    [22:06:24.901,962] [NPISRVR/MAIN] PKT_HEX: [SOCZIGB<<NPISRVR                                    ] [send] 01:2F:02:08
    [22:06:24.903,667] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [22:06:24.903,730] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [22:06:24.906,210] [Z_STACK/MAIN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 01:2F:05:04
    Startup phase 2 completed successfully, server started (ZLSZNP_PID=1300) on Thu Mar 21 22:06:24 IST 2019
    ===================================================
    starting NETWORK_MGR, cmd ' ./NWKMGR_SRVR_arm 127.0.0.1:2536 -v 0x0000460E ' on Thu Mar 21 22:06:24 IST 2019
    [22:06:24.931,537] [Z_STACK/LSTN] CONNECT: Connected to new client, connection # 5
    [22:06:24.931,811] [NWK_MGR/MAIN] UNMSKBL: 
    [22:06:24.932,818] [NWK_MGR/MAIN] UNMSKBL:  ************************************************
    [22:06:24.932,858] [NWK_MGR/MAIN] UNMSKBL:  *  Network Manager Server v1.0.2d              *
    [22:06:24.932,940] [NWK_MGR/MAIN] UNMSKBL:  ************************************************
    [22:06:24.932,998] [NWK_MGR/MAIN] UNMSKBL: 
    [22:06:24.933,159] [NWK_MGR/MAIN] PKTTYPE: [                  Z_STACK<<NWK_MGR                  ] [AREQ] 08:00:5F:00:03:4E:57:4B:5F:4D:47:52
    [22:06:24.933,427] [Z_STACK/LSTN] CONNECT: Client at connection # 5 identified itself as NWK_MGR
    [22:06:24.933,644] [NWK_MGR/MAIN] PKTTYPE: [                  Z_STACK<<NWK_MGR                  ] devZDOCBReq
    [22:06:24.933,775] [NWK_MGR/MAIN] PKTBODY:                                                          cmdID = DEV_ZDO_CBS_REQ
    [22:06:24.933,825] [NWK_MGR/MAIN] PKTBODY:                                                          srcRtgIndCB = 1
    [22:06:24.933,896] [NWK_MGR/MAIN] PKTBODY:                                                          concentratorIndCb = 1
    [22:06:24.933,963] [NWK_MGR/MAIN] PKTBODY:                                                          nwkDiscCnfCB = 1
    [22:06:24.934,030] [NWK_MGR/MAIN] PKTBODY:                                                          beaconNotIndCB = 1
    [22:06:24.934,096] [NWK_MGR/MAIN] PKTBODY:                                                          joinCnfCB = 1
    [22:06:24.934,162] [NWK_MGR/MAIN] PKTBODY:                                                          leaveCnfCB = 1
    [22:06:24.934,228] [NWK_MGR/MAIN] PKTBODY:                                                          leaveIndCB = 1
    [22:06:24.934,294] [NWK_MGR/MAIN] PKTBODY:                                                          nwkAddrRsp = 1
    [22:06:24.934,359] [NWK_MGR/MAIN] PKTBODY:                                                          ieeeAddrRsp = 1
    [22:06:24.934,424] [NWK_MGR/MAIN] PKTBODY:                                                          nodeDescRsp = 1
    [22:06:24.934,487] [NWK_MGR/MAIN] PKTBODY:                                                          powerDescRsp = 1
    [22:06:24.934,529] [NWK_MGR/MAIN] PKTBODY:                                                          simpleDescRsp = 1
    [22:06:24.934,596] [NWK_MGR/MAIN] PKTBODY:                                                          activeEndpointRsp = 1
    [22:06:24.934,662] [NWK_MGR/MAIN] PKTBODY:                                                          matchDescRsp = 1
    [22:06:24.934,728] [NWK_MGR/MAIN] PKTBODY:                                                          complexDescRsp = 1
    [22:06:24.934,793] [NWK_MGR/MAIN] PKTBODY:                                                          userDescRsp = 1
    [22:06:24.934,860] [NWK_MGR/MAIN] PKTBODY:                                                          discoveryCacheRsp = 1
    [22:06:24.934,925] [NWK_MGR/MAIN] PKTBODY:                                                          userDescCnf = 1
    [22:06:24.934,991] [NWK_MGR/MAIN] PKTBODY:                                                          serverDiscoveryRsp = 1
    [22:06:24.935,057] [NWK_MGR/MAIN] PKTBODY:                                                          endDeviceTimeoutRsp = 1
    [22:06:24.935,122] [NWK_MGR/MAIN] PKTBODY:                                                          bindRsp = 1
    [22:06:24.935,188] [NWK_MGR/MAIN] PKTBODY:                                                          endDeviceBindRsp = 1
    [22:06:24.935,255] [NWK_MGR/MAIN] PKTBODY:                                                          unbindRsp = 1
    [22:06:24.935,320] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtNwkDiscRsp = 1
    [22:06:24.935,384] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtLqiRsp = 1
    [22:06:24.935,566] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtRtgRsp = 1
    [22:06:24.935,905] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtBindRsp = 1
    [22:06:24.935,957] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtLeaveRsp = 1
    [22:06:24.936,023] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtDirectJoinRsp = 1
    [22:06:24.936,821] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtPermitJoinRsp = 1
    [22:06:24.938,741] [NWK_MGR/MAIN] PKTBODY:                                                          mgmtNwkUpdateNotify = 1
    [22:06:24.938,843] [NWK_MGR/MAIN] PKTBODY:                                                          deviceAnnounce = 1
    [22:06:24.938,889] [NWK_MGR/MAIN] PKTBODY:                                                          devStateChange = 1
    [22:06:24.938,935] [NWK_MGR/MAIN] PKTBODY:                                                          tcDeviceInd = 1
    [22:06:24.939,976] [Z_STACK/LSTN] PKTTYPE: [                  Z_STACK>>NWK_MGR                  ] zstackDefaultRsp
    [22:06:24.940,182] [Z_STACK/LSTN] PKTBODY:                                                          cmdID = DEV_ZDO_CBS_REQ
    [22:06:24.940,277] [Z_STACK/LSTN] PKTBODY:                                                          status = ZSuccess
    [22:06:24.940,861] [NWK_MGR/MAIN] PKTTYPE: [                  Z_STACK<<NWK_MGR                  ] sysNwkInfoReadReq
    [22:06:24.940,944] [NWK_MGR/MAIN] PKTBODY:                                                          cmdID = SYS_NWK_INFO_READ_REQ
    [22:06:26.906,638] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [22:06:26.906,765] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [22:06:26.907,090] [Z_STACK/LSTN] PKTTYPE: [         NPISRVR<<Z_STACK                           ] [SREQ] 00:25:50
    [22:06:26.941,322] [NWK_MGR/MAIN] ERROR  : SRSP Cond Wait timed out!
    [22:06:26.941,469] [NWK_MGR/MAIN] ERROR  : apicSendSynchData() failed getting response
    [22:06:26.942,896] [NWK_MGR/MAIN] ERROR  : Reading Local Network Information Failed
    [22:06:26.942,991] [NWK_MGR/MAIN] UNMSKBL: Initialization failed. Quitting now.
    
    Startup phase 3 failed
    waiting for Zstack linux to exit
    waiting for NPI to exit
    making sure there are no lingering servers...
    there are 0 NPI servers
    there are 0 ZLS servers
    there are 0 GATEWAY servers
    there are 0 NWKMGR servers
    there are 0 OTA servers
    (total 0)
    done
    ^Ccaught SIGTERM, killing all the servers and cleaning up
    making sure there are no lingering servers...
    there are 0 NPI servers
    there are 0 ZLS servers
    there are 0 GATEWAY servers
    there are 0 NWKMGR servers
    there are 0 OTA servers
    (total 0)
    done
    terminating zigbeeHAGW (pid 1250)
    Killed
    

  • Please see this related post: e2e.ti.com/.../766240

    It suggests the following macros using the ZNP from Z-Stack 3.0.2:

    BDB_FINDING_BINDING_CAPABILITY_ENABLED=0
    TC_LINKKEY_JOIN
    NWK_MAX_DEVICE_LIST=2
    ZDSECMGR_TC_DEVICE_MAX=2
    DISABLE_GREENPOWER_BASIC_PROXY
    POWER_SAVING
    xFEATURE_SYSTEM_STATS
    MT_GP_CB_FUNC
    ZNP_ALT                     // To disable flow control

  • I have used same setting only ...as you can see in my previous response ..cc2538 znp based on UART is working with Z-tool...but it doesn't work with Zigbee 3.0 gateway.

    my Cc2538 znp based on USB works with Zigbee 3.0 gateway but UART based cc2538 znp does not works .
  • The "getaddrinfo error: Servname not supported for ai_socktype" concerns me.

    While you have the gateway running, can you show what you see after running the following command:
    netstat -l
  • Do you build zigbeeHAgw by yourself?

  • Below is the command out put while running the zigbeeHAgw(modified for UART) script.

    Active Internet connections (only servers)
    Proto Recv-Q Send-Q Local Address Foreign Address State 
    tcp 0 0 0.0.0.0:2533 0.0.0.0:* LISTEN 
    tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 
    tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN 
    tcp6 0 0 [::]:5900 [::]:* LISTEN 
    tcp6 0 0 [::]:ssh [::]:* LISTEN 
    udp 0 0 0.0.0.0:bootpc 0.0.0.0:* 
    udp 0 0 0.0.0.0:mdns 0.0.0.0:* 
    udp 0 0 0.0.0.0:50462 0.0.0.0:* 
    udp6 0 0 [::]:mdns [::]:* 
    udp6 0 0 [::]:37693 [::]:* 
    raw6 0 0 [::]:ipv6-icmp [::]:* 7 
    Active UNIX domain sockets (only servers)
    Proto RefCnt Flags Type State I-Node Path
    unix 2 [ ACC ] STREAM LISTENING 13588 /run/user/1000/pcmanfm-socket--0
    unix 2 [ ACC ] STREAM LISTENING 13313 @/tmp/.X11-unix/X0
    unix 2 [ ACC ] STREAM LISTENING 10531 /var/run/dbus/system_bus_socket
    unix 2 [ ACC ] STREAM LISTENING 10534 /run/thd.socket
    unix 2 [ ACC ] STREAM LISTENING 10536 /var/run/avahi-daemon/socket
    unix 2 [ ACC ] STREAM LISTENING 316 /run/systemd/private
    unix 2 [ ACC ] SEQPACKET LISTENING 13885 /var/run/bluealsa/hci0
    unix 2 [ ACC ] SEQPACKET LISTENING 323 /run/udev/control
    unix 2 [ ACC ] STREAM LISTENING 342 /run/systemd/journal/stdout
    unix 2 [ ACC ] STREAM LISTENING 12832 /tmp/ssh-RR7F4JpAS8hv/agent.522
    unix 2 [ ACC ] STREAM LISTENING 13415 /run/user/1000/systemd/private
    unix 2 [ ACC ] STREAM LISTENING 362 /run/systemd/fsck.progress
    unix 2 [ ACC ] STREAM LISTENING 13420 /run/user/1000/gnupg/S.gpg-agent
    unix 2 [ ACC ] STREAM LISTENING 13423 /run/user/1000/bus
    unix 2 [ ACC ] STREAM LISTENING 12400 /var/run/dhcpcd.sock
    unix 2 [ ACC ] STREAM LISTENING 13425 /run/user/1000/gnupg/S.gpg-agent.browser
    unix 2 [ ACC ] STREAM LISTENING 12402 /var/run/dhcpcd.unpriv.sock
    unix 2 [ ACC ] STREAM LISTENING 13427 /run/user/1000/gnupg/S.gpg-agent.extra
    unix 2 [ ACC ] STREAM LISTENING 13429 /run/user/1000/gnupg/S.gpg-agent.ssh
    unix 2 [ ACC ] STREAM LISTENING 11254 /tmp/ssh-LXF6JC1Rmkh0/agent.624
    unix 2 [ ACC ] STREAM LISTENING 16538 /run/user/1000/.lxterminal-socket-:0.0
    unix 2 [ ACC ] STREAM LISTENING 12711 /tmp/.vnc-vncservice/vncserver-x11.CtrlComms
    unix 2 [ ACC ] STREAM LISTENING 13314 /tmp/.X11-unix/X0
    unix 2 [ ACC ] STREAM LISTENING 23903 /tmp/geany_socket.3363b50c
    unix 2 [ ACC ] STREAM LISTENING 13024 /run/user/1000/menu-cached-:0
  • yeah we have used the cross-compiler tool chain and built the gateway arm binaries
  • Do you have CC2531EMK or LAUNCHXL-CC26x2R1 to test this with prebuilt ZNP image and see if it works first?
  • We have LAUNCHXL-CC26x2R1 (Both Revision C and Revision E) which one shall I test with ? There are pre built znp.hex images available in the gateway folder should i use that to test ?  

  • LAUNCHXL-CC26x2R1 Rev C is working
  • If you use prebuilt CC2538_GW_ZNP_SRF06+EM_UART.hex to test it, does it work?
  • If we use prebuilt CC2538_GW_ZNP_SRF06+EM_UART.hex to test it, It does not work ?
  • Do you mean you already test with prebuilt CC2538_GW_ZNP_SRF06+EM_UART.hex and it doesn't work?
  • yes , i have tested once again now it does not work with prebuilt CC2538_GW_ZNP_SRF06+EM_UART.hex

    Strange thing is that  prebuilt CC2538_GW_ZNP_SRF06+EM_UART.hex does not work with Z-tool

  • Are you using XDS100v3 thought USB for communication or UART pins directly?

  • First of all , m really sorry to trouble you all.

    @
    when I test prebuilt CC2538_GW_ZNP_SRF06+EM_UART.hex I have used XDS100v3 through USB for communication with Enable UART over XDS jumper cponnected .And it does not work with Z-tool


    when I test my ZNP over UART code, I have used XDS100v3 through USB as well as UART pins directly for communication.
    and it was working with XDS100v3 through USB with z-tool.
    and it was not working with UART pins directly from smart RF board uart header (P412).After troubleshooting i found that GND pin of P412 header was not connected to GND of smart RF board.later I connected GND from different header and it started working.
  • So, does everything work now?
  • with my code , YES everything works now.
  • Cheers and I suggest you to mark this thread as solved.