We are trying to do some file transfer operations on BLE, we have log files of 50kb ~ 100kb in sd card module already working/interfaced with nrf52840 MCU, SDK 15.2
Is it possible to transfer .csv/.txt files via BLE in nrf52840 MCU?
We are trying to do some file transfer operations on BLE, we have log files of 50kb ~ 100kb in sd card module already working/interfaced with nrf52840 MCU, SDK 15.2
Is it possible to transfer .csv/.txt files via BLE in nrf52840 MCU?
Hi Vishal
As long as you implement a proprietary BLE service there is no limit on the type of data you can send.
All you have to do is to split the file into fragments depending on the size of your Bluetooth characteristic (typically 512 bytes or less).
Best regards
Torbjørn
Please share any implementation/case study for the same?
Please Confirm this kind of proprietary BLE service. for Andriod can you share the android application sample code.
Hi Vishal
The ble_app_uart example in the nRF5 SDK is an example of a proprietary service. It essentially sets up two characteristics, one for client to server communication and one for server to client communication.
In the standard example it is used to send text strings, but since it is only sending byte arrays you can transmit any kind of data over this service.
If you want an example with a corresponding Android app you might be better of using the ble_app_blinky example.
This example is very similar to the ble_app_uart example, the main difference is it only sends LED and button data, and as such only uses 1 byte for each characteristic (this you can change if you want).
The source code for the Android blinky application can be found here:
https://github.com/NordicSemiconductor/Android-nRF-Blinky
Best regards
Torbjørn