Return-Path: Subject: Re: [Bluez-users] Setting up an hotplug connection with USB dongles From: Erwin Authried To: bluez-users@lists.sourceforge.net In-Reply-To: <200411282132.37941.rdorsch@web.de> References: <200411282132.37941.rdorsch@web.de> Content-Type: text/plain Message-Id: <1101740700.19573.48.camel@justakiss> 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, 29 Nov 2004 16:05:00 +0100 Am Son, den 28.11.2004 schrieb Rainer Dorsch um 21:32: > Hello, > > I am wondering, if there is a way to setup a hotplug connection between two > Linux machines using two bluetooth dongles. One of them is a NAP (with > Internet access) and booted first, the other box a PANU. > > My problem is that I need the pand running on both sides first before I can do > an ifconfig for the bnep0 interface on the NAP. > > > > What I did on both Debian Linux systems is: > > Add a file > > /etc/hotplug/usb/libbt.usermap > > The file contains a line for an epox DG02A dongle > > epoxbt 0x0003 0x0a12 0x0001 0x0000 0x0000 0x00 > 0x00 0x00 0x00 0x00 0x00 > 0x00000000 > > with the vendor ID (here 0x0a12) and the product ID (here 0x0001). > > Then add the script epoxbt to the same directory: > > # cat epoxbt > echo "Load epox bluetooth dongle..." > > modprobe bnep > pand --master --listen --role NAP > # > > and > > topsi:~# cat /etc/hotplug/usb/epoxbt > #!/bin/bash > > echo "Load epox bluetooth dongle..." > modprobe bnep > pand --role PANU --connect > topsi:~# > > > Then I do on the NAP an > > # ifconfig 192.128.2.1 > > and on the PANU > > # dhclient > > This works fine, I can access the Internet from the PANU. > > > The problem is that the ifconfig on the NAP fails when I do not have the PANU > connected before....thus I can't add the network configuration part into the > expobt scripts. > > Does anyone have an idea or pointer for that problem. > > Thanks, > Rainer Hi, here is a nice description for Debian: http://quozl.netrek.org/bluetooth/ the interfaces aren't brought up directly by ifconfig, but by a "dev-up" script in /etc/bluetooth/pan. In addition, the "-persist" option for pand may be useful to keep the connection up. -Erwin ------------------------------------------------------- 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://productguide.itmanagersjournal.com/ _______________________________________________ Bluez-users mailing list Bluez-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bluez-users