How to send packets with BT Mesh using ble_mesh_console example

neeejc123
Posts: 1
Joined: Fri Apr 02, 2021 3:08 pm

How to send packets with BT Mesh using ble_mesh_console example

Postby neeejc123 » Fri Apr 02, 2021 3:32 pm

OK, so I guess this will be an easy question for some (or not haha). I'm a total beginner, so please be kind :)

So I downloaded environment from here: https://docs.espressif.com/projects/esp ... index.html successfully.
Then I uploaded the ble_mesh_console example to two of my ESP32 boards. It says in the instructions that you can provision devices and send packets with this example.
I opened consoles of both boards using

Code: Select all

idf.py monitor -p [port]
So first, for devices to work within Bluetooth Mesh, they need to be provisioned, right?
I found this instructions on how to provision devices from the console: viewtopic.php?t=11509 (*) (first answer - using bmreg, bminit bmoob, ...)
I provisioned one board (the provisioner) with another (regular node) successfully.

But now on (*) page it says that after provisioning the provisioner can now send and receive messages.

OK, but how do I do that? There is a file with BLE Mesh commands you can use in the console, but I dont know which commands to use, nor do I know the parameters of the commands I need to set as I cant find any documentation on this topic, except this file.

I tried with the command

Code: Select all

bmpublish -d 1 -o 0x8204 -m 0x1000 -r 0 -a 1 -p 0 -i 0
because I want to publish my message from the provisioner to the regular node, right?
now I know the parameter -m (this is a ID of the module published to) is correct, I dont know what is -o (opcode), -r (device role), -a (unicast address), -p (period) and -i (appkey index)

It throws an error that the appkey index is invalid. Is this even the right approach? Did I forget to set something (like appkey -> I tried doing that with bmpkey command, but didnt work). Or should I use different commands?

I just want to know what do I do now that I provisioned boards to Bluetooth Mesh? How to send messages?
I'm really confused as I cant find any documentation on this.
Thank you for your answers

Who is online

Users browsing this forum: Google [Bot] and 91 guests