1 month ago
DSPS replacing UART with SPI
Posted byFirefox200540 points 5 repliesHi,
is it possible to replace the BLE -> UART architecture to BLE -> SPI?
Is there any reference implementation?
We need to write a lot of incoming BLE data really fast into the flash memory.
1 month ago
Hi,
why isn't it possible?
Do you already have an example project whith BLE -> SPI FLASH mechanism with maximum speed which you can share? This would be great!
We have tested it with ble_peripheral example project but the throughput is disappointing low. Also if we compare SUOTA with DSPS it is too slow.
@DLE-L2CAP-Optimization, we already did some modification in the current project.
#define USE_DLE
#define CFG_MAX_RX_PACKET_LENGTH (251)
We have set the packet size to 240 on our peer, so we thought it is automatically set to it.
Now we are confused what is the difference between the DLE-L2CAP demo project and the compilation flags in ble_peripheral example project?
1 month ago
Just tested the DLE-L2CAP / TPUT example but the results are different from the results shown in the example. Also there is an GPIO definition error of the UART TX pin in your documentation.
Attachment | Size |
---|---|
2021-04-01_17-38.png | 11.13 KB |
1 month ago
Now tested it with another mobile phone and it looks better.
But I don't understand why a special project is needed and how to implement this into own project and also: is it possible to write data this fast into SPI flash?
Attachment | Size |
---|---|
2021-04-01_17-56.png | 13.98 KB |
1 month ago
嗨Firefox2005,
As mentioned in my previous reply, the DSPS supports only the UART < -- > BLE scheme. The incoming data are passed to UART – please check the user quide / section 4.2 for more information :
>>>But I don't understand why a special project is needed and how to implement this into own project and also: is it possible to write data this fast into SPI flash?
When you got the incoming data over BLE, you should use the SPI Flash driver and store them into the flash.
Thanks, PM_Dialog
1 month ago
嗨Firefox2005,
Thanks for your question. This is no possible with the DSPS as it implements only the Bluetooth < -- > UART scheme.
Please also check the following SW Example :
http://lpccs-docs.dialog-semiconductor.com/SW_Example/SDK6/Dynamic_DLE_L2CAP_Packet_size_Optimization/description.html
The data have been received that you should use the SPI Flash APIs to write them into the flash. You can check the following tutorial for how to use the SPI to read/write a flash memory :
http://lpccs-docs.dialog-semiconductor.com/da145xx_tutorial_sdk6_peripherals/da14531_spi_flash.html
Thanks, PM_Dialog