Bluetooth File Transfer on RAK8211 #7664
Replies: 1 comment
-
Posted at 2019-04-09 by @gfwilliams There's nothing specific built in, but it's trivial to do it by sending the JS code to write a file over the console interface. Assuming you want to use the built-in In your app, load the file, and convert it to base64 ( That'd be trivial to make as a Web Bluetooth page, and we had been considering providing that as a tool - but there is currently no existing app or standard that will just transfer a file over Bluetooth
I don't understand I'm afraid - could you point me to the function/code you mean? Posted at 2019-04-10 by Nadnerb The problem with this approach is that the data is a 30kB hex file, its not something I can easily type into the console on the Web IDE. However I think I may have found a solution, by uploading this data with the firmware hex file I could write it to the Espruino's flash directly. I can then use the nRF toolbox app to write this modified firmware to the nRF chip. Posted at 2019-04-10 by @gfwilliams
No, I'm suggesting that you'd create something like a Web Bluetooth website to handle it.
Posted at 2019-04-10 by Nadnerb Thanks. I actually did this today, using bin2c.exe to convert the binary data to a .h file which I included in Espruino/targets/nrf5x, then using a jsWrapper to return the address of that array from the .h file. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-04-09 by Nadnerb
I would like to be able to send files over bluetooth to the RAK8211 board. This board uses the nRF52, so it should be possible to send data over bluetooth to it.
I cant seem to see anything out of the box that would allow for bluetooth file transfer.
I noticed that Espruino's filesystem library works with SD cards, and one of the arguments is a source path.
Would it be possible to use a bluetooth address as the source path instead of the SD card directory?
I realise this may require 'hacking' espruino codebase to be able to do what I need to do.
Alternatively there is the nRF connect app which is used to access the device and upload firmware to it. We are currently using the nRF toolbox to flash the firmware to the device. I suspect there could be some way to upload files using the same interface.
Do you have any ideas how I could do this?
Beta Was this translation helpful? Give feedback.
All reactions