Return-Path: MIME-Version: 1.0 In-Reply-To: <49B8E810.9040803@dtsp.co.nz> References: <6edf6b480903100602x6b84b8f3o8e2f3266e6b69c47@mail.gmail.com> <6edf6b480903100618k15f77f25p6c2ef1ab42b7b269@mail.gmail.com> <6edf6b480903120218i6066199bx2f0dd6cad564f59f@mail.gmail.com> <20090312094106.4a95d26e@symphony> <6edf6b480903120310y3b1d23e9v2569e00c65c8aa74@mail.gmail.com> <49B8E810.9040803@dtsp.co.nz> Date: Fri, 13 Mar 2009 16:34:10 +0800 Message-ID: <6edf6b480903130134k429c931ctcaa41c93b49c1a31@mail.gmail.com> Subject: Re: dund: how to config for handset platform From: yesir yao To: David Sainty Cc: linux-bluetooth@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-bluetooth-owner@vger.kernel.org List-ID: 2009/3/12 David Sainty : > yesir yao wrote: >>>> after I run "dund --listen --dialup --msdun --nodetach" >>>> >>> I'm afraid dund is obsolete in Bluez 4. I think the right way to do it >>> is to use rfcomm to create a serial device like /dev/rfcomm0 and use >>> pppd to dial-up through that. >>> >> >> >> I think, It is on the Data terminal side, not for the Gateway side. >> the profile looks like: >> pc (Data terminal : run pppd and dial to /dev/rfcomm0 ) >> --> handset (Gateway : with bluetooth chip and modem on tty) >> --> gsm (gprs) --> net >> >> now, i want to run "dund --dialup --msdun" on handset, >> and receive ppp packet from pc, then send those to modem(ttyS1). >> > > I do essentially the following to provide IP connectivity over bluetooth > to my Palm: > > : ${rfdevice:=rfcomm0} > sysctl -w net.ipv4.ip_forward=1 > sdptool add --channel=1 SP > rfcomm --encrypt watch "$rfdevice" 1 pppd '{}' > "${localIP}:${bluetoothIP}" local nodetach noauth proxyarp $dns > > This is with a recent BlueZ 4.x rfcomm. ?I'm using an old kernel, which > has terrible bugs that are hopefully resolved in newer kernels (if I > disconnect from the Palm end before the Linux end, rfcomm seg faults > [might be a user level bug there] and I need to reboot in order to be > able to reconnect again). there are two articles which maybe are useful for you: http://www.newt.com/debian/treo650.html http://spench.net/drupal/resources/linuxbluetoothppp