root@arm:/home/Precompiled/servers# ./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 =================================================== starting NPI, cmd ' ./NPI_lnx_arm_server NPI_Gateway.cfg -v 0xFFFFFFFF debugAll ' on Mon 24 May 2021 02:39:26 PM UTC [14:39:26.349,064] [NPISRVR/MAIN] UNMSKBL: [14:39:26.349,235] [NPISRVR/MAIN] UNMSKBL: ************************************************ [14:39:26.349,248] [NPISRVR/MAIN] UNMSKBL: * NPI Server v1.0.2d * [14:39:26.349,258] [NPISRVR/MAIN] UNMSKBL: ************************************************ [14:39:26.349,268] [NPISRVR/MAIN] UNMSKBL: gpioCfg 0x42b460 gpioCfg[0] 0x16fb8630 gpioCfg[0].gpio 0x16fb8650 gpioCfg[0].levelshifter 0x16fb87d1 gpioCfg[1] 0x16fb8638 gpioCfg[1].gpio 0x16fb8960 gpioCfg[1].levelshifter 0x16fb8ae1 gpioCfg[2] 0x16fb8640 gpioCfg[2].gpio 0x16fb8c70 gpioCfg[2].levelshifter 0x16fb8df1 ------------------------------------------------------ Serial Config Parsing: - Section: TRACE - Key: TRACE_LAYER_NAME_CHAR_COUNT Found section [PORT]es Found section [DEVICE] Found section [GPIO_SRDY.GPIO] Found section [GPIO_SRDY.LEVEL_SHIFTER] Found section [GPIO_MRDY.GPIO] Found section [GPIO_MRDY.LEVEL_SHIFTER] Found section [GPIO_RESET.GPIO] Found section [GPIO_RESET.LEVEL_SHIFTER] Found section [UART]es Found section [SPI]tes Startup phase 1 completed successfully, server started (NPI_PID=6471) on Mon 24 May 2021 02:39:26 PM UTC Found section [LOG] ------------------------------------------------------ Serial Config Parsing: - Section: TRACE - Key: TRACE_ARROW_CHAR_COUNT Found section [PORT]es Found section [DEVICE] Found section [GPIO_SRDY.GPIO] Found section [GPIO_SRDY.LEVEL_SHIFTER] Found section [GPIO_MRDY.GPIO] Found section [GPIO_MRDY.LEVEL_SHIFTER] Found section [GPIO_RESET.GPIO] Found section [GPIO_RESET.LEVEL_SHIFTER] Found section [UART]es Found section [SPI]tes Found section [LOG]tes ------------------------------------------------------ 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 ' [14:39:26.350,555] [NPISRVR/MAIN] INFO : 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 #deviceKey=2 ; I2C (strlen=18) Line to process (strlen=0) Found line < 128=================================================== Line to process #devPath="/dev/ttyUSB2"; (strlen=24) Line to process #devPath="/dev/ttyO4" ; UART/CDC (strlen=32) Line to process devPath="/dev/ttymxc2" ; USART3 (strlen=31) Found key 'devPath' in 'devPath="/dev/ttymxc2" ; USART3' Found value '/dev/ttymxc2' Found value2 '/dev/ttymxc2' [14:39:26.350,819] [NPISRVR/MAIN] INFO : 'devPath' specified in the config file is overriden by the soc_device_path command line argument [14:39:26.350,831] [NPISRVR/MAIN] INFO : devPath = '/dev/ttymxc2' ------------------------------------------------------ Serial Config Parsing: - Section: LOG - Key: log Found section [PORT]es Found section [DEVICE] Found section [GPIO_SRDY.GPIO] Found section [GPIO_SRDY.LEVEL_SHIFTER] Found section [GPIO_MRDY.GPIO] Found section [GPIO_MRDY.LEVEL_SHIFTER] Found section [GPIO_RESET.GPIO] Found section [GPIO_RESET.LEVEL_SHIFTER] 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' [14:39:26.351,205] [NPISRVR/MAIN] INFO : logPath = './NpiLnxLog.txt' ------------------------------------------------------ Serial Config Parsing: - Section: UART - Key: speed Found section [PORT]es Found section [DEVICE] Found section [GPIO_SRDY.GPIO] Found section [GPIO_SRDY.LEVEL_SHIFTER] Found section [GPIO_MRDY.GPIO] Found section [GPIO_MRDY.LEVEL_SHIFTER] Found section [GPIO_RESET.GPIO] Found section [GPIO_RESET.LEVEL_SHIFTER] 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 ' [UART] Opening device /dev/ttymxc2 [UART] Install IO signal handler [UART] Baud rate set to 115200 (0x001002) [UART] c_cflag set to 0x0018B2 ------------------------------------------------------ Serial Config Parsing: - Section: UART - Key: flowcontrol Found line < 12starting ZLSZNP, cmd ' ./ZLSZNP_arm 127.0.0.1:2533 config.ini -v 0xFFFFFFFF ' on Mon 24 May 2021 02:39:27 PM UTC [UART] Wait for mutex in rx entry: Found section [PORT]es Found section [DEVICE] Found section [GPIO_SRDY.GPIO] Found section [GPIO_SRDY.LEVEL_SHIFTER] Found section [GPIO_MRDY.GPIO] Found section [GPIO_MRDY.LEVEL_SHIFTER] Found section [GPIO_RESET.GPIO] Found section [GPIO_RESET.LEVEL_SHIFTER] 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 ' ------------------------------------------------------ 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) [14:39:26.352,688] [NPISRVR/MAIN] INFO : Port: 2533 [14:39:26.353,686] [NPISRVR/MAIN] INFO : Following IP addresses are available: [14:39:26.353,897] [NPISRVR/MAIN] INFO : IPv4: interface: lo IP Address 127.0.0.1 [14:39:26.353,910] [NPISRVR/MAIN] INFO : IPv6: interface: lo IP Address ::1 [14:39:26.353,922] [NPISRVR/MAIN] INFO : The socket will listen on the following IP addresses: [14:39:26.353,934] [NPISRVR/MAIN] INFO : IPv4: 0.0.0.0 [14:39:26.353,943] [NPISRVR/MAIN] INFO : IPv6: :: [14:39:26.353,953] [NPISRVR/MAIN] INFO : 0.0.0.0 means it will listen to all available IP address [14:39:26.354,024] [NPISRVR/MAIN] INFO : waiting for first connection on #3... [14:39:28.023,071] [Z_STACK/MAIN] MISC1 : Port: 2533 [14:39:28.023,661] [NPISRVR/MAIN] INFO : Connected to #5.(127.0.0.1 / ::) Receive message... [14:39:28.024,227] [NPISRVR/MAIN] PKT_HEX: New incoming connection from client Z_STACK (connection # 5) [<-- 000:00:00.024248 (+1621867168. 24248)] 08 bytes, subSys 0x5F, cmdId 0x00, pData: 0x02 0x5A 0x5F 0x53 0x54 0x41 0x43 0x4B !Done Receive message... [<-- 000:00:00.024311 (+0. 63)] 02 bytes, subSys 0x25, cmdId 0x3E, pData: 0xFF 0xFF NPI SREQ: (len 5) 0x02 0x25 0x3E 0xFF 0xFF [<-- 000:00:00.024327 (+0. 16)] [UART] write 7 bytes to 4 [14:39:28.024,347] [NPISRVR/MAIN] PKT_HEX: [SOCZIGB<>NWK_MGR ] [ucst] 04:00:71:FA:08:14:10:00 [14:39:46.045,926] [Z_STACK/LSTN] PKTTYPE: [ Z_STACK>>NWK_MGR ] zstackDefaultRsp [14:39:46.045,942] [Z_STACK/LSTN] PKTBODY: cmdID = DEV_ZDO_CBS_REQ [14:39:46.045,956] [Z_STACK/LSTN] PKTBODY: status = ZSuccess [14:39:46.046,025] [Z_STACK/LSTN] INFO : ...sent 8 bytes to Client [14:39:46.046,047] [Z_STACK/LSTN] INFO : !Done [14:39:46.046,236] [Z_STACK/LSTN] INFO : Receive message... [14:39:46.046,255] [Z_STACK/LSTN] INFO : zstackpb zspbHandlePbCb: subsystemID:31, cmdId:8 [14:39:46.046,268] [Z_STACK/LSTN] INFO : preparing to send 0 bytes, subSys 0x05, cmdId 0x50, pData: [14:39:46.046,277] [Z_STACK/LSTN] INFO : [MUTEX] Lock SRSP Transaction Mutex [14:39:46.043,600] [NWK_MGR/MAIN] PKT_HEX: [ Z_STACK<>NWK_MGR ] [ucst] 2F:00:71:0E:08:0E:10:00:19:00:00:00:00:00:00:00:00:20:00:28:00:31:00:00:00:00:00:00:00:00:38:00:40 [14:39:52.030,491] [Z_STACK/LSTN] PKTTYPE: [ Z_STACK>>NWK_MGR ] sysNwkInfoReadRsp [14:39:52.030,518] [Z_STACK/LSTN] PKTBODY: cmdID = SYS_NWK_INFO_READ_RSP [14:39:52.030,537] [Z_STACK/LSTN] PKTBODY: nwkAddr = 0x00000000 (0) [14:39:52.030,555] [Z_STACK/LSTN] PKTBODY: ieeeAddr = 00:00:00:00:00:00:00:00 [14:39:52.030,571] [Z_STACK/LSTN] PKTBODY: devState = HOLD [14:39:52.030,586] [Z_STACK/LSTN] PKTBODY: panId = 0x00000000 (0) [14:39:52.030,604] [Z_STACK/LSTN] PKTBODY: extendedPanId = 00:00:00:00:00:00:00:00 [14:39:52.030,621] [Z_STACK/LSTN] PKTBODY: coordAddr = 0x00000000 (0) [14:39:52.030,637] [Z_STACK/LSTN] PKTBODY: coordExtAddr = 00:00:00:00:00:00:00:00 [14:39:52.030,653] [Z_STACK/LSTN] PKTBODY: devTypes : [14:39:52.030,714] [Z_STACK/LSTN] ERROR : ERROR: signal 11 was trigerred: [14:39:52.030,732] [Z_STACK/LSTN] ERROR : Fault address: 0x840012a8 [14:39:52.030,744] [Z_STACK/LSTN] ERROR : Fault reason: address not mapped to object [14:39:52.031,713] [Z_STACK/LSTN] ERROR : Stack trace unavailable [14:39:52.031,741] [Z_STACK/LSTN] ERROR : Executing original handler... ./zigbeeHAgw: line 638: killall: command not found waiting for NPI to exit [<-- 000:00:24.026132 (+0. 100)] [UART] result: 10 [<-- 000:00:24.026139 (+0. 7)] [UART] (synch data) Conditional wait 6 s [UART] Send synch data timed out [ERR] SRSP: npi_ipc_errno 0x02040100 !Done Synchronous Request Timeout... Receive message... [<-- 000:00:30.026456 (+6. 317)] 05 bytes, subSys 0x2F, cmdId 0x08, pData: 0x01 0x00 0x20 0x00 0x00 NPI SREQ: (len 8) 0x05 0x2F 0x08 0x01 0x00 0x20 0x00 0x00 [<-- 000:00:30.026478 (+0. 22)] [UART] write 10 bytes to 4 [14:39:58.026,506] [NPISRVR/MAIN] PKT_HEX: [SOCZIGB<