we are using NRF52840 , with a SD card. Data is stored in SD card in Text file or .csv file every 10 mins. We want to push the data to Mobile App either using the BLE or using the USB protocol. Kindly advice .
we are using NRF52840 , with a SD card. Data is stored in SD card in Text file or .csv file every 10 mins. We want to push the data to Mobile App either using the BLE or using the USB protocol. Kindly advice .
Hi,
I created an example with ble_app_uart that read a specified file on boot and when a central is connected and notifications for NUS are enabled, the file is transferred to the central.
This example is created using SDK v16.0.0.
ble_app_uart_fatfs_send_sdk_16.0.0.zip
Best regards,
Jørgen
Hey Jorgen, thanks for the example. I have a large file of 240MB on an SD card and I want to transfer this file to the mobile app at once not byte by byte just like you have done in the above example. The byte by byte transfer will take a lot of time as the file size is large and also controlling it on the app side will be difficult. So, I want to transfer my file to the App at once. Can you please recommend to me the fastest possible to do it,
Thanks & best regards,
Sami
Hi,
It is not possible to send 240 MB over BLE in one go, you will have to divide the file into smaller chunks that can fit inside the BLE packets.
Best regards,
Jørgen
Hi Jorgen, thank you for the reply.
Yes, I understand that. You can't send more than a specific amount of bytes in one go using ble_uart. I have two questions:
1) Is there another possible way to send a file to the mobile app other than the ble_Uart?
2) What is the minimum time through which I can send a 234MB file to the mobile App?
I have read this blog in which they claim "The throughput measured may vary depending on the environment, but the maximum throughput should be around 1365 Kbps for BLE 5 High Speed, 775 Kbps for BLE 4.2, 128 Kbps for BLE 4.1 and 21.3 Kbps for BLE 5 Long Range. Be aware that there may be some inaccuracies in the measurements". How can I achieve this much throughput?
Hi Jorgen, thank you for the reply.
Yes, I understand that. You can't send more than a specific amount of bytes in one go using ble_uart. I have two questions:
1) Is there another possible way to send a file to the mobile app other than the ble_Uart?
2) What is the minimum time through which I can send a 234MB file to the mobile App?
I have read this blog in which they claim "The throughput measured may vary depending on the environment, but the maximum throughput should be around 1365 Kbps for BLE 5 High Speed, 775 Kbps for BLE 4.2, 128 Kbps for BLE 4.1 and 21.3 Kbps for BLE 5 Long Range. Be aware that there may be some inaccuracies in the measurements". How can I achieve this much throughput?
Please post your questions in a new ticket, as this is not related to the topic of this thread. Your questions relates to general BLE throughput and BLE services, which are already discussed in multiple threads. Please search other threads before posting your questions.
Thank you for the replay,
My question is exactly the same( reading file from SD card and sending to Mobile App) the only difference is file size which is 240MB in my case and nothing else. I have read almost all related threads but no one help me.
Till now I am able to read 220kb of data from the file in the SD card (the actual size of the file is 240MB) and send it to the mobile app(using the above example you have provided, with some modifications) and it is taking about 4 seconds to send 220kb of data. I want to reduce the time taken for the data to send to the Mobile app, I have applied all the suggestions in multiple threads but can't reduce the time to send the data to the mobile app.
Any help will be highly appreciated.
Kind Regards,
Sami
I see you have already created a new ticket here: Sending a complete file at once from SD card to Mobile App using NRF52840.
Please continue the discussion in that thread.
Thank you for the reply,
I have created the thread but I can't get helped properly. I have applied all the suggestions but can't reduce my data transfer time.
Regards,
Sami