nRF5 SDK is not maintained anymore
More Info: Consider nRF Connect SDK for new designs

Can't connect to nRF52840-DK with Python CHIP Controller

Hi,

I have an issue in regard to Matter. I would like to commision a device in my network, but I don't know why the Python CHIP Controller returns this error every time I try to talk to the device:

chip-device-ctrl > connect -ble 3840 20202021
Device is assigned with nodeid = 171557
[1648823813.002918][34530:34536] CHIP:IN: Prepared unauthenticated message 0x7f808d8f4940 to 0x0000000000000000 (0) of type 0x20 and protocolId (0, 0) on exchange 28181i with MessageCounter:2474507507.
[1648823813.003042][34530:34536] CHIP:IN: Sending unauthenticated msg 0x7f808d8f4940 with MessageCounter:2474507507 to 0x0000000000000000 at monotonic time: 7839668 msec
[1648823813.003077][34530:34536] CHIP:CTL: Network commissioning parameters are required for BLE auto commissioning.
CHIP Error 0x0000002F: Invalid argument
chip-device-ctrl > [1648823813.019544][34530:34534] CHIP:BLE: BLE removing known devices.
[1648823813.024382][34530:34534] CHIP:BLE: BLE initiating scan.
[1648823813.340056][34530:34534] CHIP:BLE: Failed to start discovery: GDBus.Error:org.bluez.Error.InProgress: Operation already in progress
[1648823843.004362][34530:34536] CHIP:SC: PASESession timed out while waiting for a response from the peer. Expected message type was 33
Failed to establish secure session to device: 50
Segmentation fault (core dumped)

I followed the instructions from this video:

https://www.youtube.com/watch?v=kdMJQFDRoss

Has anyone encountered this same issue? Thanks!

Parents Reply Children
  • Hi

    I used it and it works, also used the "ConnectNetwork" instead of "EnableNetwork". However, when I try to run the "resolve" command (only with nodeid as parameter), it doesn't do anything other than quitting the chip-device-ctrl.... Is there a substitute for the resolve command also?

    Thank you,

    Mihnea Marin

  • Hi

    I do not think there are any other command doing the same as the resolve command.
    Do you get any error message from the resolve command?

    Just so you know: As an alternative to the Python Chip Controller, you could try the chip-tool for Linux of MacOS.

    Regards,
    Sigurd Hellesvik

  • This is the output

    chip-device-ctrl > resolve 1
    [1649847790.257041][4145696:4145702] CHIP:DL: Re-trying resolve
    [1649847795.260521][4145696:4145702] CHIP:DL: Re-trying resolve
    [1649847800.263969][4145696:4145702] CHIP:DL: Re-trying resolve
    [1649847805.268085][4145696:4145702] CHIP:DL: Avahi resolve failed
    [1649847805.268174][4145696:4145702] CHIP:CTL: Error resolving node id: ../../src/platform/Linux/DnssdImpl.cpp:714: CHIP Error 0x000000AC: Internal error
    [1649847805.268202][4145696:4145702] CHIP:CTL: Error resolving node id: ../../src/platform/Linux/DnssdImpl.cpp:714: CHIP Error 0x000000AC: Internal error
    Failed to update node address: 172
    [1649847805.268606][4145696:4145702] CHIP:CTL: Error resolving node id: ../../src/lib/dnssd/Discovery_ImplPlatform.cpp:90: CHIP Error 0x000000A6: Unknown resource ID
    [1649847805.268834][4145696:4145702] CHIP:CTL: Error resolving node id: ../../src/lib/dnssd/Discovery_ImplPlatform.cpp:90: CHIP Error 0x000000A6: Unknown resource ID
    Failed to update node address: 166
    Bus error (core dumped)

  • Hi

    This error looks like the one in case 84317.

    Try to follow the advise from Charlie in the case; Does it fix your issue?

    Regards,
    Sigurd Hellesvik

  • Hi

    So first, I checked the poste you shared with me, but it's the same as closing the ble connection and then running the resolve command, right? Which is exactly what I was doing...

    Second, can you please tell me what python version I need to have to be able to run the chip-tool, and also how much free disk space is needed?

    Thank you,
    Mihnea Cristian Marin

Related