public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* PANU currently broken?
@ 2009-03-08 23:22 James Le Cuirot
  2009-03-12 11:11 ` James Le Cuirot
  0 siblings, 1 reply; 4+ messages in thread
From: James Le Cuirot @ 2009-03-08 23:22 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

I've managed to serve my phone with NAP successfully but using PANU in
the other direction has not worked at all. No one I've spoken to has
any answers so I've done some digging. I've been using Blueman a little
but I worked out how to start the connection manually with dbus-send.
The first error I encountered was this. It appears after a short delay.

Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply.
Possible causes include: the remote application did not send a reply,
the message bus security policy blocked the reply, the reply timeout
expired, or the network connection was broken.

This seemed a little vague but after adding some debug messages to the
source, I figured out what the problem was. The D-Bus method signature
for org.bluez.Network.Connect says it's supposed to return a string. So
do the API docs. So why does it return NULL? I don't know much about
D-Bus but this doesn't seem right.

According to the docs, it's supposed to return the name of the newly
created interface such as bnep0. I outputted nc->dev to the log to
check that's what it actually was. Close. It gave me bnep%d.

In any case, I wasn't sure how to return a string to D-Bus so I got it
to return null with g_dbus_create_reply(msg, DBUS_TYPE_INVALID). This
fixed the error and the delay. Still no sign of bnep0 though.

Looking through the rest of the source, it seemed to me that nc->dev is
supposed to get changed from bnep%d to bnep0 at some point but this
isn't happening and I can't even see any code that resembles this
operation. If it's trying to do operations on an interface called
bnep%d then no wonder it's not working.

Having said that, I changed the setting in network.conf from bnep%d to
bnep0 and while it definitely did pick this up, it still wouldn't work.
I've seen "Connection refused (111)" a couple of times but I'm not sure
where that's coming from exactly.

Are my observations correct or am I missing something here? If I'm
right, why is it in such a broken state? I wouldn't expect a release to
have these kind of problems.

Regards,
James

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-03-13 17:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-08 23:22 PANU currently broken? James Le Cuirot
2009-03-12 11:11 ` James Le Cuirot
2009-03-12 14:23   ` Luiz Augusto von Dentz
2009-03-13 17:20     ` James Le Cuirot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox