This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Setup Mesh Network with Serialboard

Hello,

I'm using several nRF52840 boards to setup a bluetooth mesh network. Im using the python script "interactive_pyaci.py" to setup the mesh. The mesh is working and I'm able to send mesh packets. After a reset of the serialboard the settings are lost and the board is unable to send mesh packets. I got the following error message:

2019-07-29 17:36:23,260 - ERROR - COM47: PacketSend: ERROR_REJECTED

How can I setup the serialboard with the data stored in "database/database.json" ?

Parents
  • Update:

    I tried the follwoing commands to re-configure the serialboard with an mesh setup stored in database/database.json

    db = MeshDB('database/database.json')
    p = Provisioner(device, db) 
    device.send(cmd.DevkeyAdd(db.nodes[0].unicast_address, 0, db.nodes[0].device_key))
    device.send(cmd.AddrPublicationAdd(db.nodes[0].unicast_address))

    The serialboard is now able to send mesh packets. But it is required to 'reset' the node too. Probably an issue with the sequence number which should prevent from replay attacks? Therefore, the question arises if this is the right approach?

Reply
  • Update:

    I tried the follwoing commands to re-configure the serialboard with an mesh setup stored in database/database.json

    db = MeshDB('database/database.json')
    p = Provisioner(device, db) 
    device.send(cmd.DevkeyAdd(db.nodes[0].unicast_address, 0, db.nodes[0].device_key))
    device.send(cmd.AddrPublicationAdd(db.nodes[0].unicast_address))

    The serialboard is now able to send mesh packets. But it is required to 'reset' the node too. Probably an issue with the sequence number which should prevent from replay attacks? Therefore, the question arises if this is the right approach?

Children
No Data
Related