|
本帖最后由 haiou 于 2024-11-26 20:02 编辑
大家好,我搭建好编译环境,编译lighting-app 固件,烧录到9528a开发板上,可以加入到三星的网关,显示一个dimmer light,但我使用我编译好的chip-tool配网,出现了异常,otbr已经建立thread网络,以下是出现异常的时的log,可以帮我分析下是什么原因导致的么,以下是详细内容:
1.执行命令:
命令:sudo ot-ctl dataset active -x
打印:
0e0800000000000100004a0300001035060004001fffe00708fd43be01711e7a510c0402a0f7f8051000112233445566778899aabbccddeeff030e4f70656e54687265616444656d6f0410445f2b5ca6f2a93a55ce570a70efeecb000300000b0208111111112222222201021234
2.执行配网命令
sudo ./chip-tool pairing ble-thread 0x222 0e0800000000000100004a0300001035060004001fffe00708fd43be01711e7a510c0402a0f7f8051000112233445566778899aabbccddeeff030e4f70656e54687265616444656d6f0410445f2b5ca6f2a93a55ce570a70efeecb000300000b0208111111112222222201021234 20202021 3840
打印错误log:
[1732621593.105] [49075:49077] [DMG] Received Command Response Data, Endpoint=0 Clust er=0x0000_0031 Command=0x0000_0005
[1732621593.105] [49075:49077] [CTL] Received NetworkConfig response, networkingStatu s=1
[1732621593.105] [49075:49077] [CTL] Error on commissioning step 'ThreadNetworkSetup' : 'src/controller/CHIPDeviceController.cpp:2775: CHIP Error 0x000000AC: Internal erro r'
[1732621593.105] [49075:49077] [CTL] Going from commissioning step 'ThreadNetworkSetu p' with lastErr = 'src/controller/CHIPDeviceController.cpp:2775: CHIP Error 0x000000A C: Internal error' -> 'Cleanup'
[1732621593.105] [49075:49077] [CTL] Performing next commissioning step 'Cleanup' wit h completion status = 'src/controller/CHIPDeviceController.cpp:2775: CHIP Error 0x000 000AC: Internal error'
[1732621593.105] [49075:49077] [CTL] Successfully finished commissioning step 'Cleanu p'
[1732621593.105] [49075:49077] [CTL] Commissioning complete for node ID 0x00000000000 00222: src/controller/CHIPDeviceController.cpp:2775: CHIP Error 0x000000AC: Internal error
[1732621593.105] [49075:49077] [TOO] Device commissioning Failure: src/controller/CHI PDeviceController.cpp:2775: CHIP Error 0x000000AC: Internal error
[1732621593.105] [49075:49077] [DMG] ICR moving to [AwaitingDe]
[1732621593.106] [49075:49075] [CTL] Shutting down the commissioner
[1732621593.106] [49075:49075] [DIS] Closing all BLE connections
[1732621593.106] [49075:49075] [IN] Clearing BLE pending packets.
[1732621593.106] [49075:49075] [BLE] Auto-closing end point's BLE connection.
[1732621593.106] [49075:49075] [DL] Closing BLE GATT connection (con 0x7a0c440222e0)
[1732621593.106] [49075:49076] [DL] Close BLE connection: peer=C9:66:35:EE:B6:FF
[1732621593.240] [49075:49075] [IN] SecureSession[0x7a0c3c01e060]: MarkForEviction Ty pe:1 LSID:23217
[1732621593.240] [49075:49075] [SC] SecureSession[0x7a0c3c01e060, LSID:23217]: State change 'kActive' --> 'kPendingEviction'
[1732621593.240] [49075:49075] [IN] SecureSession[0x7a0c3c01e060]: Released - Type:1 LSID:23217
[1732621593.240] [49075:49075] [CTL] Shutting down the controller
[1732621593.240] [49075:49075] [IN] Expiring all sessions for fabric 0x1!!
[1732621593.240] [49075:49075] [FP] Forgetting fabric 0x1
[1732621593.240] [49075:49075] [TS] Pending Last Known Good Time: 2023-10-14T01:16:48
[1732621593.240] [49075:49075] [TS] Previous Last Known Good Time: 2023-10-14T01:16:4 8
[1732621593.240] [49075:49075] [TS] Reverted Last Known Good Time to previous value
[1732621593.240] [49075:49075] [CTL] Shutting down the commissioner
[1732621593.240] [49075:49075] [CTL] Shutting down the controller
[1732621593.240] [49075:49075] [CTL] Shutting down the System State, this will teardo wn the CHIP Stack
[1732621593.240] [49075:49075] [DMG] All ReadHandler-s are clean, clear GlobalDirtySe t
[1732621593.240] [49075:49075] [FP] Shutting down FabricTable
[1732621593.240] [49075:49075] [TS] Pending Last Known Good Time: 2023-10-14T01:16:48
[1732621593.240] [49075:49075] [TS] Previous Last Known Good Time: 2023-10-14T01:16:4 8
[1732621593.240] [49075:49075] [TS] Reverted Last Known Good Time to previous value
[1732621593.241] [49075:49076] [DL] BLE connection closed: conn=0x7a0c440222e0
[1732621593.242] [49075:49075] [DL] Wrote settings to /tmp/chip_counters.ini
[1732621593.242] [49075:49075] [DL] NVS set: chip-counters/total-operational-hours = 0 (0x0)
[1732621593.242] [49075:49075] [DL] Inet Layer shutdown
[1732621593.242] [49075:49075] [DL] BLE Layer shutdown
[1732621593.243] [49075:49075] [DL] System Layer shutdown
[1732621593.243] [49075:49075] [TOO] Run command failure: src/controller/CHIPDeviceCo ntroller.cpp:2775: CHIP Error 0x000000AC: Internal error
3.设备端的错误log:
[19:46:32.966]收←◆I: 53775 [ZCL]OpCreds: ACL entry created for Fabric index 0x1 CASE Admin Subject 0x000000000001B669
D: 53784 [DL]Using Thread extended MAC for hostname.
I: 53790 [DIS]Advertise operational node D00C04106536BFF0-0000000000000222
E: 53797 [SVR]Operational advertising failed: 3
I: 53802 [ZCL]OpCreds: successfully created fabric index 0x1 via AddNOC
I: 53812 [EM]<<< [E:9886r S:46975 M:15581531] (S) Msg TX from 0000000000000000 to 1:FFFFFFFB00000000 [BFF0] [BLE] --- Type 0001:09 (IM:InvokeCommandResponse) (B:66)
D: 53827 [DL]Sending indication for CHIPoBLE TX characteristic (ConnId 00, len 71)
E: 53836 [DL]Long dispatch time: 388 ms, for event type 16388
[19:46:33.085]收←◆D: 53897 [DL]Indication for CHIPoBLE TX characteristic done (ConnId 0x00, result 0x00)
[19:46:33.136]收←◆D: 53943 [DL]Write request received for CHIPoBLE RX characteristic (ConnId 0x00)
[19:46:33.222]收←◆D: 54033 [DL]Write request received for CHIPoBLE RX characteristic (ConnId 0x00)
I: 54044 [EM]>>> [E:9887r S:46975 M:176685989] (S) Msg RX from 1:FFFFFFFB00000000 [BFF0] to 0000000000000000 --- Type 0001:08 (IM:InvokeCommandRequest) (B:285)
I: 54064 [EM]<<< [E:9887r S:46975 M:15581532] (S) Msg TX from 0000000000000000 to 1:FFFFFFFB00000000 [BFF0] [BLE] --- Type 0001:09 (IM:InvokeCommandResponse) (B:63)
D: 54079 [DL]Sending indication for CHIPoBLE TX characteristic (ConnId 00, len 68)
[19:46:33.355]收←◆D: 54167 [DL]Indication for CHIPoBLE TX characteristic done (ConnId 0x00, result 0x00)
D: 54177 [DL]ConnId: 0x00, New CCCD value: 0x0000
D: 54182 [IN]Clearing BLE pending packets.
I: 54186 [BLE]Releasing end point's BLE connection back to application.
I: 54192 [DL]Closing BLE GATT connection (ConnId 00)
[19:46:33.446]收←◆I: 54257 [DL]BLE GAP connection terminated (reason 0x16)
I: 54262 [DL]Current number of connections: 0/1
|
|