All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marcel Holtmann <marcel@holtmann.org>
To: BlueZ Mailing List <bluez-users@lists.sourceforge.net>
Subject: Re: [Bluez-users] connecting 2 linux pc's
Date: Mon, 28 Feb 2005 09:21:52 +0100	[thread overview]
Message-ID: <1109578912.17256.20.camel@pegasus> (raw)
In-Reply-To: <421F0517.17219.330641@localhost>

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

      reply	other threads:[~2005-02-28  8:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-25  9:59 [Bluez-users] connecting 2 linux pc's g.starre
2005-02-28  8:21 ` Marcel Holtmann [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1109578912.17256.20.camel@pegasus \
    --to=marcel@holtmann.org \
    --cc=bluez-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.