From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [Bluez-users] connecting 2 linux pc's From: Marcel Holtmann To: BlueZ Mailing List In-Reply-To: <421F0517.17219.330641@localhost> References: <421F0517.17219.330641@localhost> Content-Type: text/plain Message-Id: <1109578912.17256.20.camel@pegasus> Mime-Version: 1.0 Sender: bluez-users-admin@lists.sourceforge.net Errors-To: bluez-users-admin@lists.sourceforge.net Reply-To: bluez-users@lists.sourceforge.net List-Unsubscribe: , List-Id: BlueZ users List-Post: List-Help: List-Subscribe: , List-Archive: Date: Mon, 28 Feb 2005 09:21:52 +0100 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 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 ; > 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