You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to test it on a nrf52832 board and when it's calling the .open() method the program is crashing and restarting. Tried with Sandeep nrf52 core with and without a SoftDevice.
thank you. please try without soft device with extras/nRF5/platform.local.txt from GitHub. I just updated it with build extra flags for no-delete-null-pointer-checks
With the softdevice i have some issues, i am trying with the BLESerial example ... before trying OTA i am stopping the service using bleSerial.end(); function then trying to do the OTA and the MCU is crashing and restarts.
Any thought on this? thank you very much!
Yes, i am using softdevice 2.0.1 and BLESerial example... i am sure it has to do with SoftDevice usage, if i dont use the bleSerial.start() it's ok... probably i need somehow to disable completely the Softdevice, i hoped that bleSerial.end(); would do the work but its crashing. I ll keep trying and let you know.
to implement a virtual Serial between MCU and mobile app. Its working great till now with the nrf52, only the .end() function is not stopping the BLE service for some reason.
I have found a solution, i am using the SD function sd_ble_gap_adv_stop(); just before the .end() and it stops advertising now.
When the BLE is stopped that way your library is working great on the nRF52832 chip, thank you very much for your support.
Activity
sigalabs commentedon Jan 23, 2021
i am trying to test it on a nrf52832 board and when it's calling the .open() method the program is crashing and restarting. Tried with Sandeep nrf52 core with and without a SoftDevice.
JAndrassy commentedon Jan 24, 2021
thank you. please try without soft device with extras/nRF5/platform.local.txt from GitHub. I just updated it with build extra flags for no-delete-null-pointer-checks
sigalabs commentedon Jan 24, 2021
Hi @JAndrassy , thanks for your response, i can confirm that its working great on the nrf52832 chip. I am trying now with the softdevice.
Thank you!
sigalabs commentedon Jan 24, 2021
With the softdevice i have some issues, i am trying with the BLESerial example ... before trying OTA i am stopping the service using bleSerial.end(); function then trying to do the OTA and the MCU is crashing and restarts.
Any thought on this? thank you very much!
JAndrassy commentedon Jan 24, 2021
thank you. partially good news.
did you build and upload the sketch with softdevice selected in Tools menu?
sigalabs commentedon Jan 24, 2021
Yes, i am using softdevice 2.0.1 and BLESerial example... i am sure it has to do with SoftDevice usage, if i dont use the bleSerial.start() it's ok... probably i need somehow to disable completely the Softdevice, i hoped that bleSerial.end(); would do the work but its crashing. I ll keep trying and let you know.
JAndrassy commentedon Jan 24, 2021
why
bleSerial
? only peripheral mode of BLEPeripheral library is supported for nRF5. the soft device is on same MCUsigalabs commentedon Jan 26, 2021
I am using this one example
https://github.com/sandeepmistry/arduino-BLEPeripheral/tree/master/examples/serial
to implement a virtual Serial between MCU and mobile app. Its working great till now with the nrf52, only the .end() function is not stopping the BLE service for some reason.
JAndrassy commentedon Jan 26, 2021
try to ask Sandeep in the library repository
sigalabs commentedon Jan 27, 2021
I have found a solution, i am using the SD function sd_ble_gap_adv_stop(); just before the .end() and it stops advertising now.
When the BLE is stopped that way your library is working great on the nRF52832 chip, thank you very much for your support.