Hi everyone,
I would like to create a device on ESP32 that can dynamically switch between provisioner role and a simple to-be-provisioned node (depending on various external working conditions).
I tried combining the code from the sensor cli/srv example, activating both CONFIG_BLE_MESH_NODE and CONFIG_BLE_MESH_PROVISIONER flags (and also the other related flags), but, after flashing the device, the code panics and reboots continuously.
I also tried merging the fast provisioning example server and client. The merged application works as client, but not as provisioner (it can only provision the first client, then it stops working).
So, I'm wondering: is it possible to create an application that implements both node and provisioner roles?
And how?
Thanks,
Luca
ble mesh: combine node and provisioner
Re: ble mesh: combine node and provisioner
hi,we are develop a project like you said, have you already solve the problem?
i try to enable provisioner and node in menuconfig, but encounter panic and the board restart.
i try to enable provisioner and node in menuconfig, but encounter panic and the board restart.
Re: ble mesh: combine node and provisioner
the same problem.
Re: ble mesh: combine node and provisioner
anyone having a solution then let me know
Re: ble mesh: combine node and provisioner
Ok I see many people needing a solution for this - and so do I join them...
Well, it impresses me that luca.cbt was able to provision one device with a merged code...
Interesting how did he managed to reach that? (even as it would still be not sufficient also for me)
And in any case (for the next people looking here for further help), I can hint at teh other thread started by him:
https://esp32.com/viewtopic.php?f=13&t= ... 44#p100344
Seems since so many people have trouble with this issue, then it could be really reasonable to include such example in the IDF.
It seems that even knowledgeable people like chegewara seem to have been still checking some of these features not a long time ago
Well, it impresses me that luca.cbt was able to provision one device with a merged code...
Interesting how did he managed to reach that? (even as it would still be not sufficient also for me)
And in any case (for the next people looking here for further help), I can hint at teh other thread started by him:
https://esp32.com/viewtopic.php?f=13&t= ... 44#p100344
Seems since so many people have trouble with this issue, then it could be really reasonable to include such example in the IDF.
It seems that even knowledgeable people like chegewara seem to have been still checking some of these features not a long time ago
Re: ble mesh: combine node and provisioner
Thank you for kind words, but i am not that "knowledgable" as you may think. I am just hard working with some topics, like ble, ble mesh or usb, and it takes me hundreds hours to learn stuff. Then, when i have some knowledge and i see other people struggling with problems like this, i am trying to see if its possible to make it works and this way i am learning new stuff. I am just thinking about this as an exercise.snutw_ wrote: Ok I see many people needing a solution for this - and so do I join them...
Well, it impresses me that luca.cbt was able to provision one device with a merged code...
Interesting how did he managed to reach that? (even as it would still be not sufficient also for me)
And in any case (for the next people looking here for further help), I can hint at teh other thread started by him:
https://esp32.com/viewtopic.php?f=13&t= ... 44#p100344
Seems since so many people have trouble with this issue, then it could be really reasonable to include such example in the IDF.
It seems that even knowledgeable people like chegewara seem to have been still checking some of these features not a long time ago
As to some questions in this topic i can try answer, based on my limited knowledge:
- yes, it should be possible to switch between provisioner and node, as you can run both, provisioner and node, in the same time
Some time ago i started working on ble mesh library, which is currently on hold, but it should be fairly easy to test provisioner + node:
https://github.com/chegewara/esp32-ble- ... nouncement
Why i started to work on it?
- because i think that ble mesh is cool feature and it is worth to learn it and to have it in my portfolio
Why is it on hold?
- for few reasons; lack of time, i am focusing on other stuff like USB and esp32-p4, my brain is not in good shape lately and it takes me much more time to do some codding etc
Re: ble mesh: combine node and provisioner
Well it is not entirely ESP's fault, because the Bluetooth SIG organization did in it's technology specification a division between clients and servers...chegewara wrote: ↑Tue Nov 05, 2024 8:00 amThank you for kind words, but i am not that "knowledgable" as you may think. I am just hard working with some topics, like ble, ble mesh or usb, and it takes me hundreds hours to learn stuff. Then, when i have some knowledge and i see other people struggling with problems like this, i am trying to see if its possible to make it works and this way i am learning new stuff. I am just thinking about this as an exercise.
So well my not very patient boss wants me to go for Bluetooth without a mesh so we could sell the product sooner.. Even though I dunno if switching to regular BLE will indeed simplify this matter. Since I am not sure if there it is simpler, or it also has such a division designed to keep having to separate softwares.
Anyway nice to know you are also from Poland. Even though I've recently relocated south-east.
Re: ble mesh: combine node and provisioner
Ok it is not that hard to combine a node and a provisioner in single software. I mean from the fast provisioning example you can take all the files and simply run one or the other role (server or client) depending on a condition that is deciding if this particular device now should be a provisioner or a provisioned node. Not an elegant solution, but it's and easy and fast starting point.
(and add the options of sdkconfig)
(and add the options of sdkconfig)
Who is online
Users browsing this forum: No registered users and 144 guests