This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF51822 to MicroSD - High Level

Hi there, I'm definitely a newb when it comes to wireless communication and communication protocols so I'd like this question to be answered at a higher level than what I've read on a prior "Mass storage with NRF51" post.

My question is what hoops are required to be jumped through to take files from say an iPhone and transfer them via nRF51822 to a MicroSD card? I'd also like this card to be accessible via a USB connection so I know I'll need a Card Reader Controller (going to use a GL827 controller I pulled from a MicroSD to USB adapter). The stumbling blocks I'm coming across is what tells the iPhone that the Bluetooth connection is for mass storage? Would I need a custom app on the iPhone to be able to send files to my storage device, or does it natively support that function? Again my aim is to have files sent from a handheld device to a microSD storage device using BLE, please help me understand what components would be needed.

Thanks in advance!

  • Hi,

    As long as the file is not too big you should have no problem in sending the file. You will have to make your own service that take care of the transfer. For example DFU OTA (Over The Air) sends a firmware image (.hex file) over bluetooth to update the application. It might be difficult to look at this as an example though as it is quite complex (we get a lot of questions about DFU every day).

    For storing the data to the SD card you can use this implementation of a file system. It is based on FatFs.

    There is no way to tell the iphone natively that the bluetooth connection is for mass storage (at least that I know of). You will have to make your own app for transferring files.

    You should also be careful when you connect to USB so that not both devices try to write/read to the SD card at the same time as this may corrupt the data.

    Ole

Related