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

Part Number: CC2652R


按照这个网址上的dev.ti.com/.../node

移植linux gateway到树莓派上

运行的时候出现下面的log,不知道是什么意思

Startup phase 2 completed successfully, server started (ZLSZNP_PID=13540) on Mon 24 May 05:57:31 UTC 2021
===================================================
starting NETWORK_MGR, cmd ' ./NWKMGR_SRVR_arm 127.0.0.1:2536 -v 0x0000460E ' on Mon 24 May 05:57:31 UTC 2021
[05:57:31.186,191] [Z_STACK/LSTN] CONNECT: Connected to new client, connection # 5
[05:57:31.185,914] [NWK_MGR/MAIN] UNMSKBL:
[05:57:31.186,522] [NWK_MGR/MAIN] UNMSKBL: ************************************************
[05:57:31.186,647] [NWK_MGR/MAIN] UNMSKBL: * Network Manager Server v1.0.2d *
[05:57:31.187,260] [Z_STACK/LSTN] CONNECT: Client at connection # 5 identified itself as NWK_MGR
[05:57:31.186,755] [NWK_MGR/MAIN] UNMSKBL: ************************************************
[05:57:31.186,792] [NWK_MGR/MAIN] UNMSKBL:
[05:57:31.187,019] [NWK_MGR/MAIN] PKTTYPE: [ Z_STACK<<NWK_MGR ] [AREQ] 08:00:5F:00:03:4E:57:4B:5F:4D:47:52
[05:57:31.187,417] [NWK_MGR/MAIN] PKTTYPE: [ Z_STACK<<NWK_MGR ] devZDOCBReq
[05:57:31.187,485] [NWK_MGR/MAIN] PKTBODY: cmdID = DEV_ZDO_CBS_REQ
[05:57:31.187,525] [NWK_MGR/MAIN] PKTBODY: srcRtgIndCB = 1
[05:57:31.187,559] [NWK_MGR/MAIN] PKTBODY: concentratorIndCb = 1
[05:57:31.187,591] [NWK_MGR/MAIN] PKTBODY: nwkDiscCnfCB = 1
[05:57:31.187,624] [NWK_MGR/MAIN] PKTBODY: beaconNotIndCB = 1
[05:57:31.187,659] [NWK_MGR/MAIN] PKTBODY: joinCnfCB = 1
[05:57:31.187,694] [NWK_MGR/MAIN] PKTBODY: leaveCnfCB = 1
[05:57:31.187,727] [NWK_MGR/MAIN] PKTBODY: leaveIndCB = 1
[05:57:31.187,760] [NWK_MGR/MAIN] PKTBODY: nwkAddrRsp = 1
[05:57:31.187,793] [NWK_MGR/MAIN] PKTBODY: ieeeAddrRsp = 1
[05:57:31.187,832] [NWK_MGR/MAIN] PKTBODY: nodeDescRsp = 1
[05:57:31.187,864] [NWK_MGR/MAIN] PKTBODY: powerDescRsp = 1
[05:57:31.187,903] [NWK_MGR/MAIN] PKTBODY: simpleDescRsp = 1
[05:57:31.187,938] [NWK_MGR/MAIN] PKTBODY: activeEndpointRsp = 1
[05:57:31.187,971] [NWK_MGR/MAIN] PKTBODY: matchDescRsp = 1
[05:57:31.188,005] [NWK_MGR/MAIN] PKTBODY: complexDescRsp = 1
[05:57:31.188,040] [NWK_MGR/MAIN] PKTBODY: userDescRsp = 1
[05:57:31.188,073] [NWK_MGR/MAIN] PKTBODY: discoveryCacheRsp = 1
[05:57:31.188,105] [NWK_MGR/MAIN] PKTBODY: userDescCnf = 1
[05:57:31.188,141] [NWK_MGR/MAIN] PKTBODY: serverDiscoveryRsp = 1
[05:57:31.188,173] [NWK_MGR/MAIN] PKTBODY: endDeviceTimeoutRsp = 1
[05:57:31.188,206] [NWK_MGR/MAIN] PKTBODY: bindRsp = 1
[05:57:31.188,238] [NWK_MGR/MAIN] PKTBODY: endDeviceBindRsp = 1
[05:57:31.188,272] [NWK_MGR/MAIN] PKTBODY: unbindRsp = 1
[05:57:31.188,304] [NWK_MGR/MAIN] PKTBODY: mgmtNwkDiscRsp = 1
[05:57:31.188,336] [NWK_MGR/MAIN] PKTBODY: mgmtLqiRsp = 1
[05:57:31.188,368] [NWK_MGR/MAIN] PKTBODY: mgmtRtgRsp = 1
[05:57:31.188,401] [NWK_MGR/MAIN] PKTBODY: mgmtBindRsp = 1
[05:57:31.188,433] [NWK_MGR/MAIN] PKTBODY: mgmtLeaveRsp = 1
[05:57:31.188,465] [NWK_MGR/MAIN] PKTBODY: mgmtDirectJoinRsp = 1
[05:57:31.188,498] [NWK_MGR/MAIN] PKTBODY: mgmtPermitJoinRsp = 1
[05:57:31.188,532] [NWK_MGR/MAIN] PKTBODY: mgmtNwkUpdateNotify = 1
[05:57:31.188,564] [NWK_MGR/MAIN] PKTBODY: deviceAnnounce = 1
[05:57:31.188,596] [NWK_MGR/MAIN] PKTBODY: devStateChange = 1
[05:57:31.188,632] [NWK_MGR/MAIN] PKTBODY: tcDeviceInd = 1
[05:57:31.189,107] [Z_STACK/LSTN] PKTTYPE: [ Z_STACK>>NWK_MGR ] zstackDefaultRsp
[05:57:31.189,217] [Z_STACK/LSTN] PKTBODY: cmdID = DEV_ZDO_CBS_REQ
[05:57:31.189,280] [Z_STACK/LSTN] PKTBODY: status = ZSuccess
[05:57:31.189,654] [NWK_MGR/MAIN] PKTTYPE: [ Z_STACK<<NWK_MGR ] sysNwkInfoReadReq
[05:57:31.189,719] [NWK_MGR/MAIN] PKTBODY: cmdID = SYS_NWK_INFO_READ_REQ

pi@raspberrypi:~/debian/Projects/node $ sudo ./end.sh
Kill Processes
caught SIGTERM, killing all the servers and cleaning up
waiting for Zstack linux to exit
NPI_lnx_arm_server: no process found
waiting for NPI to exit
making sure there are no lingering servers...

这样的log算是正常的吗?

  • 从目前的log信息来看是正常的

  • 后面还会出现:

    ===================================================
    starting NPI, cmd ' ./NPI_lnx_arm_server NPI_Gateway.cfg -v 0x0000010E ' on Mon 24 May 06:13:29 UTC 2021
    [06:13:29.677,601] [NPISRVR/MAIN] UNMSKBL:
    [06:13:29.677,957] [NPISRVR/MAIN] UNMSKBL: ************************************************
    [06:13:29.677,987] [NPISRVR/MAIN] UNMSKBL: * NPI Server v1.0.2d *
    [06:13:29.678,014] [NPISRVR/MAIN] UNMSKBL: ************************************************
    [06:13:29.678,037] [NPISRVR/MAIN] UNMSKBL:
    [06:13:29.680,457] [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
    Executing reset from external scripts
    ===================================================
    starting NPI, cmd ' ./NPI_lnx_arm_server NPI_Gateway.cfg -v 0x0000010E ' on Mon 24 May 06:13:34 UTC 2021
    [06:13:34.012,983] [NPISRVR/MAIN] UNMSKBL:
    [06:13:34.013,447] [NPISRVR/MAIN] UNMSKBL: ************************************************
    [06:13:34.013,478] [NPISRVR/MAIN] UNMSKBL: * NPI Server v1.0.2d *
    [06:13:34.013,515] [NPISRVR/MAIN] UNMSKBL: ************************************************
    [06:13:34.013,551] [NPISRVR/MAIN] UNMSKBL:
    [06:13:34.015,291] [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
    Executing reset from external scripts
    ===================================================
    starting NPI, cmd ' ./NPI_lnx_arm_server NPI_Gateway.cfg -v 0x0000010E ' on Mon 24 May 06:13:38 UTC 2021
    [06:13:38.354,894] [NPISRVR/MAIN] UNMSKBL:
    [06:13:38.355,336] [NPISRVR/MAIN] UNMSKBL: ************************************************
    [06:13:38.355,366] [NPISRVR/MAIN] UNMSKBL: * NPI Server v1.0.2d *
    [06:13:38.355,391] [NPISRVR/MAIN] UNMSKBL: ************************************************
    [06:13:38.355,416] [NPISRVR/MAIN] UNMSKBL:
    [06:13:38.357,268] [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
    Executing reset from external scripts
    ===================================================
    starting NPI, cmd ' ./NPI_lnx_arm_server NPI_Gateway.cfg -v 0x0000010E ' on Mon 24 May 06:13:42 UTC 2021
    [06:13:42.683,212] [NPISRVR/MAIN] UNMSKBL:
    [06:13:42.683,626] [NPISRVR/MAIN] UNMSKBL: ************************************************
    [06:13:42.683,656] [NPISRVR/MAIN] UNMSKBL: * NPI Server v1.0.2d *
    [06:13:42.683,682] [NPISRVR/MAIN] UNMSKBL: ************************************************
    [06:13:42.683,706] [NPISRVR/MAIN] UNMSKBL:
    [06:13:42.687,645] [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
    Executing reset from external scripts

  • 后面这些就有问题了,没有关于在树莓派上移植的教程,这些可能需要你自己实现

  • 建議你先用Ztool確認你的ZNP是正常運作的

  • 使用的开发板是 : CC2652RB

    烧录的镜像是 : CC2652R1LP_GW_ZNP_UART.hex

    使用ZTOOL debug,软件检测不到芯片。。

    开发板烧录的镜像不对吗?

  • CC2652R1LP_GW_ZNP_UART.hex不能用在CC2652RB

  • 那linux gateway里面的firmware 里面就没有 cc2652RB的 ZNP镜像了

  • 可以自行下載SDK去編譯