From: yesir yao <yesiryao@gmail.com>
To: David Sainty <dave@dtsp.co.nz>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: dund: how to config for handset platform
Date: Fri, 13 Mar 2009 16:34:10 +0800 [thread overview]
Message-ID: <6edf6b480903130134k429c931ctcaa41c93b49c1a31@mail.gmail.com> (raw)
In-Reply-To: <49B8E810.9040803@dtsp.co.nz>
2009/3/12 David Sainty <dave@dtsp.co.nz>:
> 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
prev parent reply other threads:[~2009-03-13 8:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-10 13:02 dund: how to config for handset platform yesir yao
2009-03-10 13:18 ` yesir yao
2009-03-12 9:18 ` yesir yao
2009-03-12 9:41 ` James Le Cuirot
2009-03-12 10:10 ` yesir yao
2009-03-12 10:25 ` James Le Cuirot
2009-03-12 10:46 ` David Sainty
2009-03-13 8:34 ` yesir yao [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=6edf6b480903130134k429c931ctcaa41c93b49c1a31@mail.gmail.com \
--to=yesiryao@gmail.com \
--cc=dave@dtsp.co.nz \
--cc=linux-bluetooth@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox