public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [Bluez-users] connecting 2 linux pc's
@ 2005-02-25  9:59 g.starre
  2005-02-28  8:21 ` Marcel Holtmann
  0 siblings, 1 reply; 2+ messages in thread
From: g.starre @ 2005-02-25  9:59 UTC (permalink / raw)
  To: bluez-users

Hi all,
  
After a long time trying, I still cannot connect
2 linux PC's together using usb-bluetooth sticks
with rfcomm.

I'm using among others :
knoppix 3.7 CD boot (bootoption knoppix26)
debian PC (2.6.11-rc4-bk10 kernel, unstable dist)
debian laptop (2.6.11-rc4 kernel, unstable dist)

All the modules like
- hci_usb
- rfcomm
- bluetooth
- l2cap
are loaded either by the kernel (/etc/modules) or
by hand using modprobe.

These command's are used to try to setup
a connection :

hciconfig hci0 up
sdptool add sp
rfcomm bind 0 <bdaddr> 1
rfcomm connect 0

While on the "receiving" debian laptop these command's
were issued :

hciconfig hci0 up
sdptool add sp
rfcomm listen /dev/rfcomm0 1

To check connection I use cat/echo (or minicom)
-> echo "hello world" > /dev/rfcomm0

This way I can connect to a pc with some proprietary OS,
but I cannot build a connection between 2 linux pc's.

Yesterday I was able to start a connection between
a debian PC and debian laptop but immedeatily after
pressing the return button on the debian PC the
laptop responded with (rfcomm listen /dev/rfcomm0) :

 Press control-c to disconnect
 Disconnected


It's probably one bit I have to toggle ;-)

Some settings in hcid.conf :
pairing multi;
lm accept;
lp rswitch,hold,sniff,park;

My rfcomm.conf on the debian PC is
modified like this :
rfcomm0 {
  bind yes;
  device <bd-address of debian laptop connected BT dongle>;
  channel 1;
}

The service was restarted each time the config
was altered with /etc/init.d/bluez-utils stop
and then ..... start

In all the howto's/archives there is a lot of
info how to connect to a phone or some device,
but there's no info how to connect 2 pc's.
Can anyone help ?

Thanks in advance.


grt, geert




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

* Re: [Bluez-users] connecting 2 linux pc's
  2005-02-25  9:59 [Bluez-users] connecting 2 linux pc's g.starre
@ 2005-02-28  8:21 ` Marcel Holtmann
  0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2005-02-28  8:21 UTC (permalink / raw)
  To: BlueZ Mailing List

Hi Geert,

> After a long time trying, I still cannot connect
> 2 linux PC's together using usb-bluetooth sticks
> with rfcomm.
> 
> I'm using among others :
> knoppix 3.7 CD boot (bootoption knoppix26)
> debian PC (2.6.11-rc4-bk10 kernel, unstable dist)
> debian laptop (2.6.11-rc4 kernel, unstable dist)
> 
> All the modules like
> - hci_usb
> - rfcomm
> - bluetooth
> - l2cap
> are loaded either by the kernel (/etc/modules) or
> by hand using modprobe.
> 
> These command's are used to try to setup
> a connection :
> 
> hciconfig hci0 up
> sdptool add sp
> rfcomm bind 0 <bdaddr> 1
> rfcomm connect 0
> 
> While on the "receiving" debian laptop these command's
> were issued :
> 
> hciconfig hci0 up
> sdptool add sp
> rfcomm listen /dev/rfcomm0 1
> 
> To check connection I use cat/echo (or minicom)
> -> echo "hello world" > /dev/rfcomm0
> 
> This way I can connect to a pc with some proprietary OS,
> but I cannot build a connection between 2 linux pc's.
> 
> Yesterday I was able to start a connection between
> a debian PC and debian laptop but immedeatily after
> pressing the return button on the debian PC the
> laptop responded with (rfcomm listen /dev/rfcomm0) :
> 
>  Press control-c to disconnect
>  Disconnected
> 
> 
> It's probably one bit I have to toggle ;-)
> 
> Some settings in hcid.conf :
> pairing multi;
> lm accept;
> lp rswitch,hold,sniff,park;
> 
> My rfcomm.conf on the debian PC is
> modified like this :
> rfcomm0 {
>   bind yes;
>   device <bd-address of debian laptop connected BT dongle>;
>   channel 1;
> }
> 
> The service was restarted each time the config
> was altered with /etc/init.d/bluez-utils stop
> and then ..... start
> 
> In all the howto's/archives there is a lot of
> info how to connect to a phone or some device,
> but there's no info how to connect 2 pc's.
> Can anyone help ?

use real applications for the connection, like dund or pand. Or write
your RFCOMM handling by yourself. See rctest for an example.

Regards

Marcel




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bluez-users mailing list
Bluez-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-users

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

end of thread, other threads:[~2005-02-28  8:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-25  9:59 [Bluez-users] connecting 2 linux pc's g.starre
2005-02-28  8:21 ` Marcel Holtmann

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