Cannot bind app key for one of the model with PYACI Script

Hello

I am trying to bind app key for one of the models with the help of PYACI Python script. I am using latest version v5.0.0 for PYACI script and downloaded it here: https://github.com/NordicSemiconductor/nRF5-SDK-for-Mesh , also with same version of documentation for commands https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v2.1.1%2Fmd_scripts_interactive_pyaci_README.html.  And I am using Raspberry pi where my py script is running and nRF52840 with Serial Script running connected to Raspberry Pi with Ports /dev/ttyACM0 (or) /dev/ttyACM1. I am trying to bind app key for Sensor_Server Example and i get like this where all the earlier commands works well.

NOTE: examples are connected to Laptop which is obvious where we can run with bluetooth

 I also tried with Mesh Chat sample like above and get same problem

Another Question: we can identify the sample with last model ID where vendor Setup Model ID bound to "0059000a" which is 8 bit and where it should be 4 bit. Even in app i get the same ID

which is ok to setup in app but in this command - cc.model_app_bind(db.nodes[0].unicast_address, 0, mt.ModelId(0x1000)) it should have only 4 bit right?

Please help me as soon as possible. I really in need of help to continue my work further

Regards

  • Hello Sai,

    I need more time to look into this issue. I will give you an update by Thu Jan 26. However, this is not a commonly used feature on an old SDK, so please understand that it might take more time than that. I will try my best nonetheless.

    Hieu

  • Hello Sai,

    My apologies but I haven't been able to make much progress. I will continue to look into it and keep you updated.

    I would like to ask for a quick confirmation if you could please. My understanding is that your setup consists of two parts. The first one is a Raspberry Pi, running the PyACI script, controlling a nRF52840 running the Serial script example from the nRF5 SDK for Mesh. This device group would then provision another device running the Sensor Server or the Mesh Chat samples from the nRF Connect SDK. Is this correct?

    Hieu

  • I would like to ask for a quick confirmation if you could please. My understanding is that your setup consists of two parts. The first one is a Raspberry Pi, running the PyACI script, controlling a nRF52840 running the Serial script example from the nRF5 SDK for Mesh. This device group would then provision another device running the Sensor Server or the Mesh Chat samples from the nRF Connect SDK. Is this correct?

    Yes you are right (Just Raspberry Pi with PYACI and nRF52840-DK with serial_sample replaces the nRF Mesh Mobile app from nordic to provision the other devices to form a mesh network).

    will be waiting for your update.

    Regards

  • Hi Sai,

    Just want to let you know that I have been trying to setup the PyACI script today.
    However, I didn't get as far as you did. At the moment I suspect my problem is due to some limitations in my remote setup.
    I will continue tomorrow when I can physically interact with my setup and check what is wrong.

    Regards,

    Hieu

  • Hi Sai,

    While getting the PyACI script to work, I ran into the same error.

    The cause of the error, for my case, was that the nodes at index 0 (db.nodes[0]) was not the Light Bulb node that I am trying to interact with.
    When I determine and use the correct node index, things work as it

    should.

    Could you please check your database.json and see if the nodes you want to talk with are not at index 0?

    If you need help with checking that, you could copy the content of the file into a code block here.

    Regards,

    Hieu

Related