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:
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
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'?
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
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