File Transfer using Bluetooth on i.MX6 sabreSD

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

File Transfer using Bluetooth on i.MX6 sabreSD

3,306 Views
wangvictor
Contributor III

Hi all,

I'm using Linux+QT for my OS system and using fsl_image_qt5 for my root file system.

I'm trying to transfer file via BT to my iPhone.

So far, I had connected my phone by using bluetoothctl and paired it.

After some googling I decide to using obexctl to transfer my file.

But when I running this command "./usr/lib/bluez5/bluetooth/obexd &" and will give this error for me.

Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead

Is that mean I can't using it without X11?

How can I solve this problem?

Besides, when I running "obexctl" for connecting my iPhone by using this command "connect xx:xx:xx:xx:xx:xx".

P.S.  xx:xx:xx:xx:xx:xx is my iPhone BT address.

Then it will give me the error like below.

Client proxy not available

What does this mean?

And how to in solving this?

Thanks in advanced!

Labels (4)
Tags (3)
0 Kudos
Reply
5 Replies

2,231 Views
gayathri_v
Contributor I

Hi ,

 I am facing similar issue . how you resolved these ?

0 Kudos
Reply

2,258 Views
b36401
NXP Employee
NXP Employee

You can set DBUS_SESSION_BUS_ADDRESS variable prior running obexd.
It can be performet with the connamd like this:

# export $(dbus-launch)

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

2,258 Views
wangvictor
Contributor III

New updated, I've got this information by using bluetoothctl.

[ Bluetooth ]# info 70:81:EB:76:6E:D3
Device 70:81:EB:76:6E:D3
Name: iPhone
Alias: iPhone
Class: 0x7a020c
Icon: phone
Paired: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Vendor specific (00000000-deca-fade-deca-deafdecacafe)
UUID: Service Discovery Serve.. (00001000-0000-1000-8000-00805f9b34fb)
UUID: Audio Source (0000110a-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
UUID: A/V Remote Control (0000110e-0000-1000-8000-00805f9b34fb)
UUID: NAP (00001116-0000-1000-8000-00805f9b34fb)
UUID: Handsfree Audio Gateway (0000111f-0000-1000-8000-00805f9b34fb)
UUID: Phonebook Access Server (0000112f-0000-1000-8000-00805f9b34fb)
UUID: Message Access Server (00001132-0000-1000-8000-00805f9b34fb)
UUID: PnP Information (00001200-0000-1000-8000-00805f9b34fb)
Modalias: bluetooth:v004Cp6F01d0A30

And when I try using obexctl to connect "Message Access Server" and will show the error like below.

[obex]# connect 70:81:EB:76:6E:D3 00001132-0000-1000-8000-00805f9b34f
b
Attempting to connect to 70:81:EB:76:6E:D3
[obex]#
Failed to connect: org.bluez.obex.Error.Failed

And if i try to connect "Phonebook Access Server", it will connect successfully.

Why I can't connect "Message Access Server"?

By the way, how to send the file to my phone?

When I trying to "ls" then it will show this error to me.

Failed to List: org.bluez.obex.Error.Forbidden

Is that mean i can't list the content?

Thanks in advanced!

0 Kudos
Reply

2,258 Views
fresxc
Contributor I

Hi,Wang

  Are already transfer file to iphone via BT? Can you share your solution, if you have been resolved? 

Thanks!

0 Kudos
Reply

2,258 Views
wangvictor
Contributor III

Thanks but now I get another problem.

I trying to run obexctl it works great.

But when I trying to connect my iPhone by running "connect xx:xx:xx:xx:xx:xx <UUID>".

It shows me the following error.

[obex]# connect 70:81:EB:76:6E:D3 00001132-0000-1000-8000-00805f9b34f
b
Attempting to connect to 70:81:EB:76:6E:D3
[obex]#
Failed to connect: org.bluez.obex.Error.Failed

"Failed to connect: org.bluez.obex.Error.Failed".
How to solve this problem and why it will show up?

Thanks in advanced!

0 Kudos
Reply