DA14580 Serial binary File Transfer

5 posts / 0 new
Last post
Andrew
Offline
Last seen:5 years 5 months ago
加入:2015-02-13 04:20
DA14580 Serial binary File Transfer

Hi, Dialog.

I'll Send to File over DA14580.

System is..
ARM Board (Linux) <-UART-> DA14580 <-BLE-> Phone(APP)

I used DSPS Sample. it is very good for sending text message.
我只是写UART数据文件。
But, When I send Image File(binary), the file is will broken.

I Want Serial File Transfer.
How to Send & Receive Binary File ?

Thanks.
Suchang.

Device:
RvA
Offline
Last seen:3 days 8 hours ago
工作人员
加入:2014-02-07 14:10
Hi Andrew, According to user

Hi Andrew, According to user manual UM-B-038, binary data transfer is supported in hardware flow control mode. This is described in more detail in the User manual (see page 32):

http://support.dialog-semiconductor.com/system/files/resources/DA14580%2...

Best regards, RvA

Andrew
Offline
Last seen:5 years 5 months ago
加入:2015-02-13 04:20
Thanks,

Thanks,
I Tested H/W flow Control. But It's failed.

Original File Size : 58745byte
Saved File Size ( through ble & uart ) : 53248byte

ARM Board DA14580
TX - RX
RX - TX
CTS - RTS
RTS - CTS
GND - GND

and Linux Serial Open H/W FlowControl Mode ( options.c_cflag |= CRTSCTS; )

DA14580 DSPS 3.150.2.

Maybe, I Think i didn't setting h/w flow control mode in DA14580.

1. How Can I Setting H/W Flow Control Mode in DA14580 ?

2. Is there example for 'binary file transter in ble to uart'?

PY_Dialog
Offline
Last seen:2 years 5 months ago
工作人员
加入:2014-08-25 09:59
Hi Andrew,

Hi Andrew,

to set HW flow control, you can check in da14580_config.h and make sure below lines are defined:
#define CFG_UART_HW_FLOW_CTRL
#define CFG_EXT_SLEEP

And the default GPIO for CTS and RTS is:
CTS: P02
RTS: P03

Regards!
PY

Andrew
Offline
Last seen:5 years 5 months ago
加入:2015-02-13 04:20
Thanks. But I can't solve

Thanks. But I can't solve this issue.

But.. I Detour this issue.

binary file -> base64 encode -> dsps -> base64 decode -> binary file.

13KB about 3sec.

Thanks to your help! :D