Hi,
I added watchdog to usbd_ble_uart sample code.
BLE connection breaks when sending data to DK via USB.
What might be the cause?
Thanks.
Hi,
I added watchdog to usbd_ble_uart sample code.
BLE connection breaks when sending data to DK via USB.
What might be the cause?
Thanks.
Hi Kenneth,
Thanks for your advice.
The connection break seems not caused by watchdog reset. I feed the dog in main loop(which includes following commands only and I didn't receive LOG_INFO placed in WDT callback function).
nrf_drv_wdt_channel_feed(m_channel_id);
while (app_usbd_event_queue_process());
idle_state_handle();) and WDT reset tick is default 2 sec
When I send data with '\n' endline through USB, usb call back not triggered, I have to reopen the COM port to receive the data via ble_nus, the connection would break right after I receive it.
Another clue is that if I add NRF_LOG_INFO in front of nrf_drv_wdt_channel_feed();. The system response properly without connection lose. I tried to replace NRF_LOG_INFO with delay yet it won't help.
I received GATT CONN TIMEOUT when disconnected(That's an Error 8).
Your help is appreciated!
Remove the watchdog, it works as usbd_ble_uart sample project.
Adding watchdog to usb-ble sample is an attempt to verify the reason of ble disconnection for another project. Somehow I solved the problem by switching slaves' pin ports...
But the problem still exists in this simplified project. I'll keep you updated.
Thanks.
Remove the watchdog, it works as usbd_ble_uart sample project.
Adding watchdog to usb-ble sample is an attempt to verify the reason of ble disconnection for another project. Somehow I solved the problem by switching slaves' pin ports...
But the problem still exists in this simplified project. I'll keep you updated.
Thanks.