Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Browse file system of Raspberry Pi from android via bluetooth

Use Case:

I am working on a project which involves a android phone and Raspberry Pi. Raspberry Pi unit would be planted with sensors in the field and once in a while user would walk around with the phone and try to get the readings from the Raspberry Pi. So the app's responsibility is to get the data and plot the graph.

Design:

I was planning to allow user to select the location of the file once the devices are paired. As of now, identification of available devices, programmatic pairing of devices has been done. But I am unable to navigate the Raspberry Pi's file system from android. How do you achieve that?

Any help would be appreciated. In case you pointing to this resource, please explain as well (taken from selected answer here).

like image 994
Aman Deep Gautam Avatar asked Sep 03 '15 04:09

Aman Deep Gautam


1 Answers

You may deploy a Java application on your Raspberry pi and connect it with your Android app via a bluetooth socket: Send data from android bluetooth to PC with bluecove

From there you can execute File.listRoots() and create your own remote dir browser.

like image 189
Ari Avatar answered Nov 15 '22 13:11

Ari