DSPS hardware flow control

4 posts / 0 new
Last post
drumste
Offline
Last seen:3 years 2 months ago
Joined:2015-05-22 14:58
DSPS hardware flow control

Hi guys.
I try to sand characters from an ATXMEGA microcontroller to DSPS android app through DA14580. The number of character sand are right but the problem is that not all of they are right.
My program sand 10 "r" but the DSPS app receive "r" (that in ASCII is decode as 0x72) and another character that in ASCII are decode as 0xb2.
I try to implement the hardware flow control inside the ATXMEGA instead short-circuit CTS e RTS of BT module, but the result don't change..
I implement the hardware flow control for ATXMEGA in this way:
首先我将RTS销设置为1,比我等待一个0in the CTS pin and last I use the usart send function that first control for empty usart buffer than write in buffer.
Before, I tried the DSPS profile, connecting the DA14580 basic-DEVKIT to the PC through an RS232, but in this way it works fine.
I don't know if the problem is a synchronization issue between ATXMEGA and DA14580 (that shoud not exist with hardware flow control, I think) or my hardware flow control implementation.

Device:
MT_dialog
Offline
Last seen:19 hours 15 min ago
Staff
Joined:2015-06-08 11:34
Hi drumste,

Hi drumste,

Are you using sleep mode ? Most propably is the implementation of the H/W flow control, you must use a logic analyzer in order to see why this happens.

Thanks MT_dialog

drumste
Offline
Last seen:3 years 2 months ago
Joined:2015-05-22 14:58
The issue can be the settings

The issue can be the settings, like parity bit or stop bit? I don't know if DSPS use these settings. My ATXMEGA firmware doesn't use parity bit and stop bit.

MT_dialog
Offline
Last seen:19 hours 15 min ago
Staff
Joined:2015-06-08 11:34
Hi drumste,

Hi drumste,

The DSPS doesn't use parity or stop bits either. You have to use a analyser to see what is the problem.

Thanks MT_dialog