0

I want to transfer a csv file from one pi to another pi via bluetooth. I tried to using OBEX Server but It's not happening. Can you have any other way to do this? I am working RPI 3 model B with raspbian os.

  • How about over the bluetooth serial port? – Kong Chun Ho Aug 23 '16 at 7:28
  • How to do this I am not aware about this. If you have some links then share it. – Mihit Gandhi Aug 23 '16 at 7:57
  • You can pair with the another pi, then write a small program (in C or Python), reading your csv file, then write to the bluetooth serial port /dev/ttyAMA0. On the another pi, read from the bluetooth serial port. – Kong Chun Ho Aug 23 '16 at 8:12
  • @Kong Chun Ho I also write a program in python using lightblue libraries But it shows me this error: Traceback (most recent call last): File "<pyshell#12>", line 1, in <module> obex.sendfile(device, channel, "/bluetooth/RSSI.csv") File "/usr/local/lib/python2.7/dist-packages/lightblue/_obex.py", line 257, in sendfile raise OBEXError("server denied the Put request") OBEXError: server denied the Put request. – Mihit Gandhi Aug 23 '16 at 13:00
  • Code for the program is here: raspberrypi.stackexchange.com/q/53863/5538 – goldilocks Aug 23 '16 at 13:18
1

AFAIK this is not possible. (I am not an expert on Bluetooth, and am willing to be proved wrong BUT). Simon Long states

Bluetooth support is limited at this stage; you can pair with pretty much anything, but you can only usefully connect to devices which support either the Human Interface Device or Audio Sink services – in other words, mice, keyboards and other UI devices, and speakers and headsets.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.