DSPS freezes after a while

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
5 posts / 0 new
Last post
Kostakis
Offline
Last seen:3 years 1 week ago
加入:2015-01-20 16:15
DSPS freezes after a while

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:
PM_Dialog
Offline
Last seen:3 days 18 hours ago
工作人员
加入:2018-02-08 11:03
Hi Kostakis,

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

Kostakis
Offline
Last seen:3 years 1 week ago
加入:2015-01-20 16:15
Thank you PM for your quick

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.

PM_Dialog
Offline
Last seen:3 days 18 hours ago
工作人员
加入:2018-02-08 11:03
Hi Kostakis,

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

Kostakis
Offline
Last seen:3 years 1 week ago
加入:2015-01-20 16:15
Hi PM,

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!