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.
Tool/software: Linux
gcc -Wall -DVERSION_NUMBER="0.1" main.o zbSocCmd.o zbSocTransportUart.o -L.../usr/lib/ -o gw_soc_fw_version_query.bin cp: cannot stat '/home/securifi/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/scripts/hagateway/reset/x86/soc_reset_hold': No such file or directory cp: cannot stat '/home/securifi/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/scripts/hagateway/reset/x86/soc_reset_release': No such file or directory cp: cannot stat '/home/securifi/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/protobuf-c/lib/x86/libprotobuf-c.so.0.0.0': No such file or directory Package verification results: ERROR: 2 error(s) occured during make ERROR: 110 warning(s) occured during make sort: cannot read: /home/securifi/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/scripts/package_builder_expected_content_RUNTIME_x86.txt: No such file or directory diff /home/securifi/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/out/content.txt /home/securifi/ti/Zigbee_3_0_Linux_Gateway_1_0_0/source/out/expected_content.txt 1,29d0 < . < ./content.txt < ./Precompiled < ./Precompiled/app < ./Precompiled/app/main.bin < ./Precompiled/misc < ./Precompiled/misc/CC2531-GW-ZNP_39203.bin < ./Precompiled/misc/ota_sample_images < ./Precompiled/misc/ota_sample_images/5678-1234-0000AAAA.zigbee < ./Precompiled/misc/ota_sample_images/5678-1234-0000BBBB.zigbee < ./Precompiled/protobuf < ./Precompiled/servers < ./Precompiled/servers/config.ini < ./Precompiled/servers/gateway_config.ini < ./Precompiled/servers/gateway_config.tlg < ./Precompiled/servers/GATEWAY_SRVR_x86 < ./Precompiled/servers/NPI_Gateway.cfg < ./Precompiled/servers/NPI_lnx_x86_server < ./Precompiled/servers/nwkmgr_config.ini < ./Precompiled/servers/NWKMGR_SRVR_x86 < ./Precompiled/servers/OTA_SRVR_x86 < ./Precompiled/servers/sample_app_ota.cfg < ./Precompiled/servers/start_application < ./Precompiled/servers/track_servers < ./Precompiled/servers/zigbeeHAgw < ./Precompiled/servers/ZLSZNP_x86 < ./Precompiled/tools < ./Precompiled/tools/gw_soc_fw_version_query.bin < ./Precompiled/tools/sbl_tool.bin ERROR: Content verification failed mv: target 'directory.tar' is not a directory ERROR: RUNTIME package for x86 creation failed. See details above. Output folder/tar name prefixed with "ERROR_."
The build says failed but it generated servers as I see in this folder "source/ERROR__out/Precompiled/servers". I tried to run the generated servers using "zigbeeHAgw" script. It always failed and says "Could not initialize SoC... exiting".
$ ./zigbeeHAgw x86 running ./zigbeeHAgw on an x86 done processing arguments, board type x86, target x86 NPI is 'NPI_lnx_x86_server' Zstack linux server is 'ZLSZNP_x86' gateway server is 'GATEWAY_SRVR_x86' network manager is 'NWKMGR_SRVR_x86' OTA server is 'OTA_SRVR_x86' 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 =================================================== starting NPI, cmd ' ./NPI_lnx_x86_server NPI_Gateway.cfg ' on Sat May 11 12:29:20 IST 2019 [12:29:20.533,786] [NPISRVR/MAIN] UNMSKBL: [12:29:20.533,821] [NPISRVR/MAIN] UNMSKBL: ************************************************ [12:29:20.533,824] [NPISRVR/MAIN] UNMSKBL: * NPI Server v1.0.2d * [12:29:20.533,826] [NPISRVR/MAIN] UNMSKBL: ************************************************ [12:29:20.533,827] [NPISRVR/MAIN] UNMSKBL: getaddrinfo error: Servname not supported for ai_socktype Startup phase 1 completed successfully, server started (NPI_PID=16910) on Sat May 11 12:29:20 IST 2019 =================================================== starting ZLSZNP, cmd ' ' on Sat May 11 12:29:20 IST 2019 [12:29:20.558,930] [Z_STACK/MAIN] UNMSKBL: [12:29:20.558,997] [Z_STACK/MAIN] UNMSKBL: ************************************************ [12:29:20.559,001] [Z_STACK/MAIN] UNMSKBL: * ZStack Server for ZNP v1.0.2d * [12:29:20.559,003] [Z_STACK/MAIN] UNMSKBL: ************************************************ [12:29:20.559,005] [Z_STACK/MAIN] UNMSKBL: [12:29:22.559,123] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [12:29:22.559,145] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response [12:29:24.559,257] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [12:29:24.559,298] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response [12:29:26.559,443] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [12:29:26.559,476] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response [12:29:28.559,609] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [12:29:28.559,628] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response [12:29:30.559,749] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [12:29:30.559,771] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response [12:29:32.559,877] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [12:29:32.559,894] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response [12:29:34.560,035] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [12:29:34.560,078] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response [12:29:36.560,221] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [12:29:36.560,245] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response [12:29:38.560,374] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [12:29:38.560,388] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response Startup phase 2 completed successfully, server started (ZLSZNP_PID=16918) on Sat May 11 12:29:38 IST 2019 =================================================== starting NETWORK_MGR, cmd ' ./NWKMGR_SRVR_x86 127.0.0.1:2536 ' on Sat May 11 12:29:38 IST 2019 [12:29:38.562,932] [NWK_MGR/MAIN] UNMSKBL: [12:29:38.562,960] [NWK_MGR/MAIN] UNMSKBL: ************************************************ [12:29:38.562,963] [NWK_MGR/MAIN] UNMSKBL: * Network Manager Server v1.0.2d * [12:29:38.562,965] [NWK_MGR/MAIN] UNMSKBL: ************************************************ [12:29:38.562,967] [NWK_MGR/MAIN] UNMSKBL: [12:29:40.560,745] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [12:29:40.560,781] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response [12:29:40.563,256] [NWK_MGR/MAIN] ERROR : SRSP Cond Wait timed out! [12:29:40.563,288] [NWK_MGR/MAIN] ERROR : apicSendSynchData() failed getting response [12:29:40.563,568] [NWK_MGR/MAIN] ERROR : Reading Local Network Information Failed [12:29:40.563,582] [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 *************************************************************** Please unplug the ZigBee USB dongle (/dev/ttyACM0) to continue... Please wait... Please plug in the ZigBee USB dongle to continue... Please wait... =================================================== starting NPI, cmd ' ./NPI_lnx_x86_server NPI_Gateway.cfg ' on Sat May 11 12:30:01 IST 2019 [12:30:01.731,957] [NPISRVR/MAIN] UNMSKBL: [12:30:01.732,074] [NPISRVR/MAIN] UNMSKBL: ************************************************ [12:30:01.732,087] [NPISRVR/MAIN] UNMSKBL: * NPI Server v1.0.2d * [12:30:01.732,095] [NPISRVR/MAIN] UNMSKBL: ************************************************ [12:30:01.732,102] [NPISRVR/MAIN] UNMSKBL: [12:30:01.732,635] [NPISRVR/MAIN] ERROR : Could not initialize SoC... exiting Startup phase 1 failed 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 *************************************************************** Please unplug the ZigBee USB dongle (/dev/ttyACM0) to continue...
Hi Ryan
Actually, I am trying to install on Ubuntu 16.04 machine.
I followed the instructions from the link you sent. But still getting errors.
Compiling ../zstackserverznp/zstack_pb_ctrl.c Linking ZLSZNP_x86 ../protobuf-c/lib/x86/libprotobuf-c.a: error adding symbols: File truncated collect2: error: ld returned 1 exit status Makefile:121: recipe for target 'ZLSZNP_x86' failed make: *** [ZLSZNP_x86] Error 1 Compiling ../zstackserverznp/zstack_pb_ctrl.c ... Compiling ../nwkmgr/nwkmgr_pb_ctrl.c ... Compiling ../serverpb/server_pb_ctrl.c ... Building target out/NWKMGR_SRVR_x86 ... ../protobuf-c/lib/x86/libprotobuf-c.a: error adding symbols: File truncated collect2: error: ld returned 1 exit status Makefile:180: recipe for target 'out/NWKMGR_SRVR_x86' failed make[1]: *** [out/NWKMGR_SRVR_x86] Error 1 make[1]: Leaving directory 'Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/nwkmgr' Makefile:125: recipe for target 'arch-all-x86' failed make: *** [arch-all-x86] Error 2 Compiling ../zstackserverznp/zstack_pb_ctrl.c ... Compiling ../hagateway/gateway_pb_ctrl.c ... Compiling ../nwkmgr/nwkmgr_pb_ctrl.c ... Compiling ../serverpb/server_pb_ctrl.c ... Compiling ../nwkmgr/nwkmgr.pb-c.c ... Building target out/GATEWAY_SRVR_x86 ... ../protobuf-c/lib/x86/libprotobuf-c.a: error adding symbols: File truncated collect2: error: ld returned 1 exit status Makefile:194: recipe for target 'out/GATEWAY_SRVR_x86' failed make[1]: *** [out/GATEWAY_SRVR_x86] Error 1 make[1]: Leaving directory 'Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/hagateway' Makefile:147: recipe for target 'arch-all-x86' failed make: *** [arch-all-x86] Error 2 Compiling ../zstackserverznp/zstack_pb_ctrl.c ... Compiling ../otaserver/otasrvr_pb_ctrl.c ... Compiling ../nwkmgr/nwkmgr_pb_ctrl.c ... Compiling ../serverpb/server_pb_ctrl.c ... Compiling ../nwkmgr/nwkmgr.pb-c.c ... Building target out/OTA_SRVR_x86 ... ../protobuf-c/lib/x86/libprotobuf-c.a: error adding symbols: File truncated collect2: error: ld returned 1 exit status Makefile:186: recipe for target 'out/OTA_SRVR_x86' failed make[1]: *** [out/OTA_SRVR_x86] Error 1 make[1]: Leaving directory 'Zigbee_3_0_Linux_Gateway_1_0_0/source/Projects/zstack/linux/otaserver' Makefile:127: recipe for target 'arch-all-x86' failed make: *** [arch-all-x86] Error 2
Hi Ryan
That worked. Thanks for the instructions. Compilation pass with zero errors, still some warnings are there but I continued.
I am launching the servers with "sudo ./zigbeeHAgw x86" command. All the servers are running fine.
On the other terminal I am launching the User Interface application with "./start_application" command. While launching the UI application it is giving the following message and not proceeding further.
Terminal dimentions are not optimal - it is currently set to 38 rows by 150 columns. Please resize terminal to at least 53 rows by 150 columns. Press [ENTER] to recheck, [Q/q] to quit or any other key to use the current terminal dimentions.
But the terminal is maximized to my monitor size. Please help me to meet the requirement.
Hi Ryan
Some times "ZLSZNP_x86" is getting disconnected even though it is idle.
[11:39:37.008,232] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [11:39:37.008,258] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response [11:39:39.008,418] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [11:39:39.008,443] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response Synchronous Request Timeout... [11:39:41.008,564] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [11:39:41.008,581] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response [11:39:43.008,734] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [11:39:43.008,760] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response [11:39:45.008,921] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [11:39:45.008,946] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response Synchronous Request Timeout... [11:39:47.009,094] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [11:39:47.009,122] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response [11:39:49.009,299] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [11:39:49.009,325] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response [11:39:51.009,505] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [11:39:51.009,546] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response Synchronous Request Timeout... [11:39:53.009,734] [Z_STACK/MAIN] ERROR : SRSP Cond Wait timed out! [11:39:53.009,761] [Z_STACK/MAIN] ERROR : apicSendSynchData() failed getting response
Even restarting the script didn't work.
If I get "Unhandled SRSP cleared" then I am restarting the zigbeeHAgw script and it started working.
[11:39:53.019,889] [Z_STACK/READ] WARNING: [ERR] Unhandled SRSP cleared [11:39:53.028,420] [Z_STACK/READ] WARNING: [ERR] Unhandled SRSP cleared [11:39:53.036,752] [Z_STACK/READ] WARNING: [ERR] Unhandled SRSP cleared [11:39:53.039,514] [Z_STACK/READ] WARNING: [ERR] Unhandled SRSP cleared [11:39:53.599,391] [Z_STACK/READ] WARNING: [ERR] Unhandled SRSP cleared
Can you please explain what is the workaround at this situation.
You shouldn't lose the devices so long as NV_INIT and NV_RESTORE are defined in the ZNP project (default) and a reset is performed which does not clear NV items (soft vs hard reset).