Skip to contentSkip to conversation

Need complete docs on PAN and DUN with bluez 4.66

DISCUSSION Mumia W 3 participants 4 messages Sep 21, 2010 1 message not in the archive Bluetooth drivers

lore
Share & tools
lore

Mumia W

author
#0 lore raw
Quoted 9 lines

From: Mumia W <[email protected]>
Sent: Sep 19, 2010 4:49 PM
To: [email protected]
Subject: Need complete docs on PAN and DUN with bluez 4.66

Where is the documentation on how to use PAN and DUN with bluez 4.66 (without using the legacy drivers)?

Evidently the documents do not exist.

Does anyone have any advice on how I use PAN with bluez 4.66?

#2 lore raw
In reply to a message not in the archive

Depends on what role you want to use pand for ...pand is launched as a daemon via command line with set of options you may want to use it for your requirements ...
...
Best Regards,
Arun Kumar Singh
www.crazydaks.com

Quoted 28 lines · Mumia W
Quoted 15 lines
Quoted 9 lines

From: Mumia W <[email protected]>
Sent: Sep 19, 2010 4:49 PM
To: [email protected]
Subject: Need complete docs on PAN and DUN with bluez 4.66

Where is the documentation on how to use PAN and DUN with bluez 4.66 (without using the legacy drivers)?

Evidently the documents do not exist.

Does anyone have any advice on how I use PAN with bluez 4.66?

Quoted 7 lines

--

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--

Signature · 3 lines
Best Regards,
Arun Kumar Singh
www.crazydaks.com
#3 lore raw

Hi,

Quoted 3 lines · Arun Kumar

Depends on what role you want to use pand for ...pand is launched as a daemon via command line with set of options you may want to use it for your requirements ...

I wouldn't suggest using pand nor dund because they are deprecated.

PAN is really dead simple, Network.Connect() returns the network interface in case of success and both NetworkManager and connman should be able to use them, in fact I think both already have specif PAN support to connect from their ui.

DUN is a bit more complicated, it rely on Serial.Connect("dun") which creates a RFCOMM port to talk to the modem, but there need to be some process that has an AT command engine to handle all the configuration, in NetworkManager case there is ModemManager that is supposed to do that but I have tried not long ago and it failed for me, I think we might want to have ofono to handle this in connman case but so far there the support for this is not complete (Gustavo Padovan has been working on it).

Both Network and Serial interface are documented in doc/ diretory, there is also test-network and test-serial under test/ that can be used to manually connect to those profiles.

Signature · 2 lines
Luiz Augusto von Dentz
Computer Engineer
#4 lore raw

Hi,

Quoted 8 lines

Hi,

Quoted 3 lines · Arun Kumar

Depends on what role you want to use pand for ...pand is launched as a daemon via command line with set of options you may want to use it for your requirements ...

I wouldn't suggest using pand nor dund because they are deprecated.

I understand that dun and its apis are deprecated from bluez but not sure on pan. I guess its api's are still exported on dbus as network api's- unless there are plans to deprecate it too in near future...

Quoted 2 lines

PAN is really dead simple, Network.Connect() returns the network interface in case of success

isnt it what Network.Connect() is supposed to return?

Quoted 3 lines

and both NetworkManager and connman
should be able to use them, in fact I think both already have specif PAN support to connect from their ui.

Well its entirely upto to the use-case & sub-system above d-bus on how to use network api's and implement pan. In case of Meego and ui based PAN use case, it may be true, but there are still platforms and subsystems that use vanilla pand to setup pan as GN/nap etc via a daemon process.

Quoted 3 lines

Both Network and Serial interface are documented in doc/ diretory, there is also test-network and test-serial under test/ that can be used to manually connect to those profiles.

True. Alternatively if the use case is to simply set up the device in nap role with bluez, for instance,
pand -s -r NAP -M -n could well be used. It would set up the device in NAP role after auto registering same with SDP.

Quoted 3 lines

Luiz Augusto von Dentz
Computer Engineer

Best Regards,
Arun Kumar Singh
www.crazydaks.com