External processor proximity monitor example help ?

2 posts / 0 new
Last post
RatheeshT
Offline
Last seen:1 year 11 months ago
加入:2017-01-02 11:08
External processor proximity monitor example help ?

Hi Dialog Team,

I am working with proximity_monitor_ext example and its windows based application which are available in the SDK5.0.3.
My task is to replace PC with another one micro-controller. I understand that PC and DA14580 are communicating via UART as GTL layer.
when the board is booted, it sends the response " Event triggered to inform that lower layers are ready ".

我的问题是

1. how can i confirm that complete package is received or not in function BleReceiveMsg(void) ?

if the complete packet is received then only i can proceed with the below function
HandleBleMsg(msg);

It is working here in windows but i am not able to understand how it is happening.
If i know that logic then only i can implement that in micro-controller to finish my task.

Please help me to know this logic?

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
工作人员
加入:2015 - 06 -08 11:34
Hi RatheeshT

Hi RatheeshT

There is a state machine that the UART executes in order to get the proper data (UART_Proc() in the uart.c file at the visual studio application), this function is a state machine that parses each byte that comes from the UART, so the sequnce of the bytes must be proper in order for the command to be taken as valid, if the something goes out of range of the values that the state machine expects, the FSM reset its state to zero and waits for a command right from the start. You can have a look at the GTL protocol and the messages exchanged in the UM-B-017 DA14580:GTL interface in integrated processor applications.pdf in the Documents tab at the Software Development kit section.

Thanks MT_dialog