-
Notifications
You must be signed in to change notification settings - Fork 121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
nRF52 not receiving mesh events #175
Comments
Are you using a softdevice and is it the right version? If you're not using a softdevice you can't use the BLE example. The If you want to just test if it's working and assuming you have two Nordic nRF52 development kits you can flash that to both of them and pressing one of the buttons should change the LED status on the other board. If you can, flash your code and use gdb to see what's happening, use the bt (backtrace) command to see where the code is and if it's got stuck (if it enters an error handler then it will sit there forever). |
Using sdk v12.0.0 and s132 v3.0.0. BLE gateway is working (device advertises and i can connect and discover services upon startup) and mesh actually seems to be working. the problem is i'm not seeing any rbc mesh events being received (i.e. rbc_mesh_init() succeeds but i never see RBC_MESH_EVENT_TYPE_INITIALIZED) |
You only get a callback with that status if you have the serial interface enabled and don't have a bootloader and send a command to the node using the serial interface, see If you're just trying to know when the mesh is 'up' and operational, then check https://github.com/NordicSemiconductor/nRF51-ble-bcast-mesh/blob/master/nRF51/examples/BLE_Gateway/main.c line 281, that's after the radio and everything else has been configured and the mesh is operating - that doesn't mean it has any data in it's cache from other nodes, it just means you're free to use the node as you wish from there. The while loop checks if there is a node event and processes it, if not then it sleeps waiting for an event/interrupt. |
Hey!
I'm building an application based on the BLE Gateway example and never receiving any mesh events (never reach this code: https://github.com/NordicSemiconductor/nRF51-ble-bcast-mesh/blob/master/nRF51/examples/BLE_Gateway/main.c#L309).
Don't have a great setup so haven't been able to test very thoroughly and haven't narrowed down the issue: i just know that my application never receives a mesh event (not even after initializing the mesh). Any known issues here? And have these examples been tested well for nRF52?
I'm guessing this call to
nrf_adv_conn_init();
was added becauseRBC_MESH_EVENT_TYPE_INITIALIZED
is not being received?Building with gcc, mesh dfu not enabled, and in node mode (not serial) in case any of that info helps.
Thanks,
Mike
The text was updated successfully, but these errors were encountered: