Hello,
i am using DSPS on DA1583 to send real time sensor data. The data i am trying to send are organised in packets of 200bytes every 200ms. The data are sent to DA14583 UART from another microcontroller. My problem is that DSPS freezes after a couple of minutes (the connection between my device and my smartphones is lost and my device crashes). My thought is that for some reason UART stops receiving the incoming data. To that purpose i tried to increase the UART tx buffer size with no results. I also tried to increase the BLE mtu size but nothing changed. Do you have any idea on what might be happening?
Thank you!
Device:
Hi Kostakis,
I imagine that you have made some modifications in the DSPS code in order to implement your application to send real time sensor data. I suggest you to run your code in debug mode while are you sending the sensor’s data. With this way, you can find the point where the code is crashed. Probably, an ASSERT_ERROR is occurred while receiving the incoming data and the BLE connection between DA14583 SoC and your smartphone is automatically stopped.
Thanks PM_dialog
Thank you PM for your quick response.
I did not make any modification to DSPS application. I just compiled it and burn it into DA14583 flash memory. Another microcontroller samples the sensors and sents the data to DA14583's UART (200bytes every 200ms). My problem is that i have not JTAG on my PCB so debug is not an option. Thats why i asking what could cause this problem to DSPS application.
Hi Kostakis,
Since you have not JTAG on your PCB and the debugger isn’t available, you will not be able to understand what could cause this problem to DSPS application. I would suggest to check how DSPS application manages the UART signals (URx,UTx,rts,cts) and then you should do the corresponding handshaking of rts and cts signals from your implementation.
What do you mean that your device get crashed? If your connection between your device and your smartphone is lost, the device should continue the advertising. Can you find your device when the connection is lost? If you are not able to find the device then most probably, an assertion has occurred but you should attach the debugger first in order to find the point that the code crashes.
Thanks PM_dialog
Hi PM,
After DSPS crashes, my mobile phone disconnects from the device and the device stops advertising (i cant find it with my smartphone). So i will try find a way to get access to JTAG pins and if i cannot figure it out myself after that i will ask you again.
Thank you!