LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (https://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   Bluetooth file transfer in linux (https://www.linuxquestions.org/questions/linux-mobile-81/bluetooth-file-transfer-in-linux-4175507559/)

sumitsharma79 06-10-2014 12:42 AM

Bluetooth file transfer in linux
 
Hi, I have a custom board with ARM architecture with linux running on it. I have cross-compiled the required packages including the blueZ, openobex, obexd and bluez-tools. The bluetooth is working fine upto scanning and pairing with the mobiles as well, but issue comes up when I try to transfer the files over bluetooth.
I'm using the bt-obex to transfer the files, but that complains that obexd is not running, while its already running and have a PID.
Next I tried to cross-compile the obexftp, tried with that also, but no luck.
Tried to connect for 675ms
Sending ""...|failed: /
The operation failed with return code 1
Receiving "(null)"... failed: (null)
The operation failed with return code 32
Disconnecting...failed: disconnect
Stuck at this point. Please help.

TenTenths 06-10-2014 03:42 AM

Quote:

Originally Posted by sumitsharma79 (Post 5185487)
The bluetooth is working fine upto scanning and pairing with the mobiles as well, but issue comes up when I try to transfer the files over bluetooth.

If you're trying to do this with iPhones then forget it, they don't support file transfer.

sumitsharma79 06-10-2014 03:51 AM

Bluetooth file transfer in linux
 
It is obvious that bluetooth don't work with Iphones, and I'm also not trying with that. I have tried with Moto G and Moto E both.

sumitsharma79 06-11-2014 11:11 PM

Ok, now the obexd problem is solved. I'm able to send the files to remote device (moto g here) from my custom board, not not the reverse way, i.e from remote device to the board. In this case I think authorisation is the problem when i tried with obexftp
obexd[2345]: bluetooth: New connection from: 9C:2A:70:D0:E5:DE, channel 10
obexd[2345]: bluetooth: RequestAuthorization error: org.bluez.Error.NotAuthorized, Operation Not Authorized
Can you please tel me how to receive files using bt-obex?
Also now obexftpd gies out the error when run
obexftpd -c / -b &
[2] 2351
failed to register bluetooth server: Address already in use
Please guide me for file transfer with bt-obex and obexftp as well.

sudhadrm 10-28-2015 01:03 AM

May i know how "return code 1" problem is solved?
 
could you please share steps to do trasnfer & receive files from a board?

parul1212 11-03-2015 01:22 AM

I want to transfer files to my laptop from my desktop using bluetooth. On my laptop Linux Mint 14 and on my desktop Ubuntu 12.04 is running.


All times are GMT -5. The time now is 08:46 PM.