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.

CC2652R: Linux Gateway server initialization failing on on Ubuntu Virtual Machine

Part Number: CC2652R
Other Parts Discussed in Thread: UNIFLASH

Hello,

I tried to setup the Linux Gateway 1.0.1 following the Z-Stack Linux Gateway - Quick Start Guide on a Ubuntu 18.04.3LTS Virtual Machine(using Virtual Box)
I followed the instructions and the build was successfull.

> Package verification results:
> ERROR: 16 warning(s) occured during make
> diff /home/keus/ti/Zigbee_3_0_Linux_Gateway_1_0_1/source/out/content.txt /home/keus/ti/Zigbee_3_0_Linux_Gateway_1_0_1/source/out/expected_content.txt
>
> OK: RUNTIME package for x86 created Successfully
>
> SUCCESS: build_all finished.


I have burnt the Firmware Hex onto CC2652 Launchpad from the Firmware folder using UniFlash after first erasing the complete board.
However when I am trying to run the 'zigbeeHAgw' file I am getting the following errors

> [14:57:28.415,887] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
> [14:57:28.415,925] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
> [14:57:28.427,031] [NWK_MGR/MAIN] ERROR  : SRSP Cond Wait timed out!
> [14:57:28.427,122] [NWK_MGR/MAIN] ERROR  : apicSendSynchData() failed getting response
> [14:57:28.427,367] [NWK_MGR/MAIN] ERROR  : Reading Local Network Information Failed
> [14:57:28.427,418] [NWK_MGR/MAIN] UNMSKBL: Initialization failed. Quitting now.

Please could you guide me on why this could be happening and how I can fix it ?

Thanks,

Akhilesh

  • Complete logs when I run 'zigbeeHAgw' file.

    -------

    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
    ===================================================
    starting NPI, cmd ' ./NPI_lnx_x86_server NPI_Gateway.cfg ' on Thu Oct 24 14:57:08 IST 2019
    [14:57:08.363,279] [NPISRVR/MAIN] UNMSKBL:
    [14:57:08.363,441] [NPISRVR/MAIN] UNMSKBL:  ************************************************
    [14:57:08.363,463] [NPISRVR/MAIN] UNMSKBL:  *  NPI Server v1.0.2d                          *
    [14:57:08.363,481] [NPISRVR/MAIN] UNMSKBL:  ************************************************
    [14:57:08.363,498] [NPISRVR/MAIN] UNMSKBL:
    Startup phase 1 completed successfully, server started (NPI_PID=14406) on Thu Oct 24 14:57:08 IST 2019
    ===================================================
    starting ZLSZNP, cmd ' ./ZLSZNP_x86 127.0.0.1:2533 config.ini ' on Thu Oct 24 14:57:08 IST 2019
    [14:57:08.401,124] [Z_STACK/MAIN] UNMSKBL:
    [14:57:08.401,165] [Z_STACK/MAIN] UNMSKBL:  ************************************************
    [14:57:08.401,171] [Z_STACK/MAIN] UNMSKBL:  *  ZStack Server for ZNP v1.0.2d               *
    [14:57:08.401,176] [Z_STACK/MAIN] UNMSKBL:  ************************************************
    [14:57:08.401,180] [Z_STACK/MAIN] UNMSKBL:
    [14:57:10.401,938] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [14:57:10.402,005] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [14:57:12.403,201] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [14:57:12.403,311] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [14:57:14.404,535] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [14:57:14.404,598] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [14:57:16.407,746] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [14:57:16.407,785] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [14:57:18.409,302] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [14:57:18.409,330] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [14:57:20.410,401] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [14:57:20.410,473] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [14:57:22.411,187] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [14:57:22.411,213] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [14:57:24.413,684] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [14:57:24.413,741] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [14:57:26.414,682] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [14:57:26.414,738] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    Startup phase 2 completed successfully, server started (ZLSZNP_PID=14412) on Thu Oct 24 14:57:26 IST 2019
    ===================================================
    starting NETWORK_MGR, cmd ' ./NWKMGR_SRVR_x86 127.0.0.1:2536 ' on Thu Oct 24 14:57:26 IST 2019
    [14:57:26.425,218] [NWK_MGR/MAIN] UNMSKBL:
    [14:57:26.425,876] [NWK_MGR/MAIN] UNMSKBL:  ************************************************
    [14:57:26.425,958] [NWK_MGR/MAIN] UNMSKBL:  *  Network Manager Server v1.0.2d              *
    [14:57:26.426,000] [NWK_MGR/MAIN] UNMSKBL:  ************************************************
    [14:57:26.426,051] [NWK_MGR/MAIN] UNMSKBL:
    [14:57:28.415,887] [Z_STACK/MAIN] ERROR  : SRSP Cond Wait timed out!
    [14:57:28.415,925] [Z_STACK/MAIN] ERROR  : apicSendSynchData() failed getting response
    [14:57:28.427,031] [NWK_MGR/MAIN] ERROR  : SRSP Cond Wait timed out!
    [14:57:28.427,122] [NWK_MGR/MAIN] ERROR  : apicSendSynchData() failed getting response
    [14:57:28.427,367] [NWK_MGR/MAIN] ERROR  : Reading Local Network Information Failed
    [14:57:28.427,418] [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
    ---------------------

    Thanks
    Akhilesh

  • When this occurs, push the reset button on top of the LAUNCHXL-CC26X2R to complete the startup process.

    Regards,
    Ryan

  • Thanks Ryan,

    This resolved my issue.

    Please could you also provide info about these queries of mine.

    1. How can I get/set the Zigbee Network Key for this host if I want to configure it as ZC.(to use on Sniffer) ?

    2. How can I check the server logs ? i.e. to check if any of the servers crash during runtime or if they are functioning normally.

    Regards,
    Akhilesh

  • Hi Akhilesh,

    1. The Default Network Key is stored as ZCD_NV_PRECFGKEY in NV items, please use the MT API to further understand SYS_OSAL_NV_WRITE.

    2. A GW_SRVRS.out file inside the /tmp folder of the root directory should be created by default after running ./zigbeeHAgw

    Regards,
    Ryan