public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] Selection of PtP connection type
@ 2004-02-22 23:26 Pavel Ruzicka
  2004-02-23  5:59 ` [Bluez-users] Pairing multiple devices Alex Eiser
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Pavel Ruzicka @ 2004-02-22 23:26 UTC (permalink / raw)
  To: bluez-users

Hello,

I want to connect my Desktop Mandrake linux with my Sharp Zaurus.
On desktop side I want automatic solution. Only insert USB dongle.

On Zaurus side I have network connector with PPP connection support,
(it's works with my Nokia 6310i phone), and with PAN support.
I want only click "connect" on Zaurus side.

I read many FAQ, but many of them are outdated or not complete.
I know, there are ppp over rfcomm, ppp over bnep, bridge over bnep, or 
anything else? I'am a little confused about it.

What is the preferred way of connecting two devices today?

----------------------------------------------------------------------
Other problem is with automatic configuring. For autoloading
of kernel modules I have in kernel 2.6.3 autoloader, and in /etc/modprobe.conf
I have this:
# bluetooth stuff
alias net-pf-31 bluez
alias bt-proto-0 l2cap
alias bt-proto-2 sco
alias bt-proto-3 rfcomm
alias bt-proto-4 bnep
alias tty-ldisc-11 hci_usb

This works for me, but Is it the right way?

I'am a little confused from hotplug. Must I start some daemon, or this makes 
kernel?
Where can I place configuration for automatic configuring and removing 
interface?
This will probably depends on first question about connection type.
For example, on my Zaurus is cardctl daemon, which operates CF slot.

Please give me some answers or links to documents.
Best regards,
Pavel Ruzicka



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* [Bluez-users] Pairing multiple devices
  2004-02-22 23:26 [Bluez-users] Selection of PtP connection type Pavel Ruzicka
@ 2004-02-23  5:59 ` Alex Eiser
  2004-02-23  7:32   ` Marcel Holtmann
  2004-02-23  7:23 ` [Bluez-users] Selection of PtP connection type Marcel Holtmann
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 9+ messages in thread
From: Alex Eiser @ 2004-02-23  5:59 UTC (permalink / raw)
  To: bluez-users

[-- Attachment #1: Type: text/plain, Size: 555 bytes --]

Hi,

I have several bluetooth devices, which I am having a hard time getting 
them all connected at the same time.

The problem is that, one device (a Logitech MS 900) doesn't seem to 
work if I have encryption and authentication enabled.

However my apple wireless keyboard does not work with out those options 
enabled.

With encryption and authentication on, the mouse does not have a 
successful pairing. (always failing on the key request)

Is there a way to specify that a specific connect uses (or doesn't use) 
encryption and authentication?

Alex

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2351 bytes --]

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

* Re: [Bluez-users] Selection of PtP connection type
  2004-02-22 23:26 [Bluez-users] Selection of PtP connection type Pavel Ruzicka
  2004-02-23  5:59 ` [Bluez-users] Pairing multiple devices Alex Eiser
@ 2004-02-23  7:23 ` Marcel Holtmann
  2004-02-23  7:39 ` Simi Winiker
  2004-02-23 10:16 ` Stephen Crane
  3 siblings, 0 replies; 9+ messages in thread
From: Marcel Holtmann @ 2004-02-23  7:23 UTC (permalink / raw)
  To: Pavel Ruzicka; +Cc: BlueZ Mailing List

Hi Pavel,

> I want to connect my Desktop Mandrake linux with my Sharp Zaurus.
> On desktop side I want automatic solution. Only insert USB dongle.
> 
> On Zaurus side I have network connector with PPP connection support,
> (it's works with my Nokia 6310i phone), and with PAN support.
> I want only click "connect" on Zaurus side.
> 
> I read many FAQ, but many of them are outdated or not complete.
> I know, there are ppp over rfcomm, ppp over bnep, bridge over bnep, or 
> anything else? I'am a little confused about it.

there is no PPP over BNEP, because BNEP itself is an ethernet emulation.

> What is the preferred way of connecting two devices today?

The preferred way is to use the PAN profile (BNEP).

> ----------------------------------------------------------------------
> Other problem is with automatic configuring. For autoloading
> of kernel modules I have in kernel 2.6.3 autoloader, and in /etc/modprobe.conf
> I have this:
> # bluetooth stuff
> alias net-pf-31 bluez
> alias bt-proto-0 l2cap
> alias bt-proto-2 sco
> alias bt-proto-3 rfcomm
> alias bt-proto-4 bnep
> alias tty-ldisc-11 hci_usb
> 
> This works for me, but Is it the right way?

No.

	alias net-pf-31 bluetooth	(for 2.4 this is bluez)
	alias bt-proto-0 l2cap
	alias bt-proto-2 sco
	alias bt-proto-3 rfcomm
	alias bt-proto-4 bnep
	alias bt-proto-5 cmtp
	alias tty-ldisc-15 hci_uart

> Where can I place configuration for automatic configuring and removing 
> interface?

Start hcid. And you can make use of bluetooth.agent.

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Pairing multiple devices
  2004-02-23  5:59 ` [Bluez-users] Pairing multiple devices Alex Eiser
@ 2004-02-23  7:32   ` Marcel Holtmann
  0 siblings, 0 replies; 9+ messages in thread
From: Marcel Holtmann @ 2004-02-23  7:32 UTC (permalink / raw)
  To: Alex Eiser; +Cc: BlueZ Mailing List

Hi Alex,

> I have several bluetooth devices, which I am having a hard time getting 
> them all connected at the same time.
> 
> The problem is that, one device (a Logitech MS 900) doesn't seem to 
> work if I have encryption and authentication enabled.

and this is correct. Read the HID profile for more details.

> However my apple wireless keyboard does not work with out those options 
> enabled.

The Apple mouse is wrong here, because the HID device must not decide
this. In the case of HID the host stack must trigger the authentication.

> With encryption and authentication on, the mouse does not have a 
> successful pairing. (always failing on the key request)

With auth and encrypt set in hcid.conf or with hciconfig you enable
security mode 3 and this is not what you really want. Disable it and let
the device decide when to ask for authentication.

> Is there a way to specify that a specific connect uses (or doesn't use) 
> encryption and authentication?

See above. You are in security mode 3, but what you want is security
mode 2.

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Selection of PtP connection type
  2004-02-22 23:26 [Bluez-users] Selection of PtP connection type Pavel Ruzicka
  2004-02-23  5:59 ` [Bluez-users] Pairing multiple devices Alex Eiser
  2004-02-23  7:23 ` [Bluez-users] Selection of PtP connection type Marcel Holtmann
@ 2004-02-23  7:39 ` Simi Winiker
  2004-02-23 23:31   ` Pavel Ruzicka
  2004-02-23 10:16 ` Stephen Crane
  3 siblings, 1 reply; 9+ messages in thread
From: Simi Winiker @ 2004-02-23  7:39 UTC (permalink / raw)
  To: Pavel Ruzicka; +Cc: bluez-users

On Mon, 2004-02-23 at 00:26, Pavel Ruzicka wrote:
> Hello,

Hello.

> I want to connect my Desktop Mandrake linux with my Sharp Zaurus.
> On desktop side I want automatic solution. Only insert USB dongle.

[snip]

> What is the preferred way of connecting two devices today?

In my opinion you should use the PAN Profile to connect the devices. If
you don't want to share the internet connection of your mandrake box,
you do not need to worry about bridging. As a rough summary:

1) Install bluez-pan on both sides
2) Issue "pand -s -r NAP" on the mandrake box
3) make "pand -c aa:bb:cc:dd:ee:00" on the zaurus (replace the part
after -c with the bluetooth address of the mandrake box

And you should be connected. But still read the documentation. And by
the way, PPP over BNEP does not make sense. 

[snip]

Simi



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Selection of PtP connection type
  2004-02-22 23:26 [Bluez-users] Selection of PtP connection type Pavel Ruzicka
                   ` (2 preceding siblings ...)
  2004-02-23  7:39 ` Simi Winiker
@ 2004-02-23 10:16 ` Stephen Crane
  2004-02-23 23:48   ` Pavel Ruzicka
  3 siblings, 1 reply; 9+ messages in thread
From: Stephen Crane @ 2004-02-23 10:16 UTC (permalink / raw)
  To: Pavel Ruzicka; +Cc: bluez-users

Hi Pavel,
Check out this page http://my-zaurus.narod.ru/bluetooth.html

I use the network applets: they work well.

Cheers,
Steve

On Sun, 2004-02-22 at 23:26, Pavel Ruzicka wrote:
> Hello,
> 
> I want to connect my Desktop Mandrake linux with my Sharp Zaurus.
> On desktop side I want automatic solution. Only insert USB dongle.
> 
> On Zaurus side I have network connector with PPP connection support,
> (it's works with my Nokia 6310i phone), and with PAN support.
> I want only click "connect" on Zaurus side.
> 
> I read many FAQ, but many of them are outdated or not complete.
> I know, there are ppp over rfcomm, ppp over bnep, bridge over bnep, or 
> anything else? I'am a little confused about it.
> 
> What is the preferred way of connecting two devices today?
> 
> ----------------------------------------------------------------------
> Other problem is with automatic configuring. For autoloading
> of kernel modules I have in kernel 2.6.3 autoloader, and in /etc/modprobe.conf
> I have this:
> # bluetooth stuff
> alias net-pf-31 bluez
> alias bt-proto-0 l2cap
> alias bt-proto-2 sco
> alias bt-proto-3 rfcomm
> alias bt-proto-4 bnep
> alias tty-ldisc-11 hci_usb
> 
> This works for me, but Is it the right way?
> 
> I'am a little confused from hotplug. Must I start some daemon, or this makes 
> kernel?
> Where can I place configuration for automatic configuring and removing 
> interface?
> This will probably depends on first question about connection type.
> For example, on my Zaurus is cardctl daemon, which operates CF slot.
> 
> Please give me some answers or links to documents.
> Best regards,
> Pavel Ruzicka
> 
> 
> 
> -------------------------------------------------------
> SF.Net is sponsored by: Speed Start Your Linux Apps Now.
> Build and deploy apps & Web services for Linux with
> a free DVD software kit from IBM. Click Now!
> http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
> _______________________________________________
> Bluez-users mailing list
> Bluez-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bluez-users
-- 
Stephen Crane, Rococo Software Ltd. http://www.rococosoft.com
steve.crane@rococosoft.com +353-1-6601315 (ext 209)



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Selection of PtP connection type
  2004-02-23  7:39 ` Simi Winiker
@ 2004-02-23 23:31   ` Pavel Ruzicka
  2004-02-23 23:57     ` Marcel Holtmann
  0 siblings, 1 reply; 9+ messages in thread
From: Pavel Ruzicka @ 2004-02-23 23:31 UTC (permalink / raw)
  To: Simi Winiker; +Cc: bluez-users

Hello,

> In my opinion you should use the PAN Profile to connect the devices. If
> you don't want to share the internet connection of your mandrake box,
> you do not need to worry about bridging. As a rough summary:

Thanks, I now use PAN.

> 1) Install bluez-pan on both sides

It was done from package...

> 2) Issue "pand -s -r NAP" on the mandrake box

Yes it works.

> 3) make "pand -c aa:bb:cc:dd:ee:00" on the zaurus (replace the part
> after -c with the bluetooth address of the mandrake box

Yes it works too.

I created /etc/sysconfig/network-scripts/ifcfg-bnep0
-------------------------
DEVICE=bnep0
BOOTPROTO=static
IPADDR=192.168.130.1
NETMASK=255.255.255.0
ONBOOT=no
-------------------------
When I want to connect, I must run on desktop  "pand -s -rNAP", next run
"connect" on Zaurus, and next "ifup bnep0" on desktop.

How can I automate process on desktop side?
Marcel writes about hcid and bluetooth.agent.
Are there some examples or links to official documentation?
Man with examples would be great ;-)

> And by the way, PPP over BNEP does not make sense.
This is probably my mistake from this document:
http://www.cs.ucla.edu/~cclljj/work/ucla/bluez/pand_dund.html

Thank you and Marcel for great help.

Best regards,

Pavel Ruzicka



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Selection of PtP connection type
  2004-02-23 10:16 ` Stephen Crane
@ 2004-02-23 23:48   ` Pavel Ruzicka
  0 siblings, 0 replies; 9+ messages in thread
From: Pavel Ruzicka @ 2004-02-23 23:48 UTC (permalink / raw)
  To: Stephen Crane; +Cc: bluez-users

Hello,

> Hi Pavel,
> Check out this page http://my-zaurus.narod.ru/bluetooth.html

Thanks,
I am using network applet in Cacko.biz rom on Zaurus side, which works great.

Best regards,

Pavouk



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] Selection of PtP connection type
  2004-02-23 23:31   ` Pavel Ruzicka
@ 2004-02-23 23:57     ` Marcel Holtmann
  0 siblings, 0 replies; 9+ messages in thread
From: Marcel Holtmann @ 2004-02-23 23:57 UTC (permalink / raw)
  To: Pavel Ruzicka; +Cc: Simi Winiker, BlueZ Mailing List

Hi Pavel,

> I created /etc/sysconfig/network-scripts/ifcfg-bnep0
> -------------------------
> DEVICE=bnep0
> BOOTPROTO=static
> IPADDR=192.168.130.1
> NETMASK=255.255.255.0
> ONBOOT=no
> -------------------------
> When I want to connect, I must run on desktop  "pand -s -rNAP", next run
> "connect" on Zaurus, and next "ifup bnep0" on desktop.
> 
> How can I automate process on desktop side?

you can start pand from an init script. The automatic ifup is specific
to your distribution.

Regards

Marcel




-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2004-02-23 23:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-22 23:26 [Bluez-users] Selection of PtP connection type Pavel Ruzicka
2004-02-23  5:59 ` [Bluez-users] Pairing multiple devices Alex Eiser
2004-02-23  7:32   ` Marcel Holtmann
2004-02-23  7:23 ` [Bluez-users] Selection of PtP connection type Marcel Holtmann
2004-02-23  7:39 ` Simi Winiker
2004-02-23 23:31   ` Pavel Ruzicka
2004-02-23 23:57     ` Marcel Holtmann
2004-02-23 10:16 ` Stephen Crane
2004-02-23 23:48   ` Pavel Ruzicka

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