DBUS command to setup interface with iPhone
DBUS command to setup interface with iPhone
- Subject: DBUS command to setup interface with iPhone
- From: Alberto Colombo <email@hidden>
- Date: Mon, 28 Nov 2016 17:27:13 +0100
Dear all,
We are developing software on a raspberry pi2 using a bluetooth USB dongle connecting it with an Iphone 5 (IOS9.1).
HFP profile works well: we are able to send AT commands from raspberry to iPhone and to start phone calls.
We have indeed a lot of problems during pan connection.
Basically we send the dbus command:
sudo dbus-send --system --print-reply --type=method_call
--dest=org.bluez /org/bluez/hci0/dev_xx_xx_xx_xx_xx_xx
org.bluez.Network1.Connect string:'nap'
where xx_xx_xx_xx_xx_xx is the bdaddr of the Iphone.
The reply coming out from the command is always like the following:
method return sender=:1.2 -> dest=:1.304 reply_serial=2
string "bnep0"
After having sent the dbus command, on the top of the screen of the
iPhone is always displayed a blue bar showing the indication:
"hotspot: 1 connection"
but after 4-5 seconds the bar disappears and we cannot get gateway and ip address.
Sending the command "ifconfig" to the raspberry we cannot see any bnep interface active.
The dbus-send command always returns without any error, but very often
we cannot access anyway to the network (sometimes, but rarely, it
works...).
The Hotspot is enabled on the iPhone.
I tested the same dbus-send command with Android devices at it works fine 100% of times.
It seems the dbus-send command is not enough or complete to interface iPhone.
Any help will be appreciated.
Best regards.
Alberto
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Bluetooth-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden