Subject: Re: com on bluetooth
To: Daniel Carosone <dan@geek.com.au>
From: Iain Hibbert <plunky@rya-online.net>
List: tech-userlevel
Date: 01/17/2007 23:09:20
This message is in MIME format. The first part should be readable text,
while the remaining parts are likely unreadable without MIME-aware tools.
--0-729184356-1169075360=:8530
Content-Type: TEXT/PLAIN; charset=US-ASCII
On Thu, 18 Jan 2007, Daniel Carosone wrote:
> I haven't been able to get the other direction working, fwiw. While
> RFCOMM to other devices like the gps works, trying to use the phone's
> SPP like a modem doesn't - I get a connection, but just echoes of
> whatever I type and no other response to AT commands, etc. I need to
> resort to irda for that.
There is some weird thing with rfcomm_sppd and pty and cu that I don't
understand.. ie it works for pppd but if I try to 'cu -l' the device I
get like the above. If you capture the session with hcidump you can see
that text is sent, but.. I've never worked it out. (also, some services
act differently)
I was working on a btcom(4) device that would just emulate a normal tty
but work has stalled and I need to get a round tuit again, sigh.
> > It is not difficult to write something that will listen on a
> > RFCOMM channel (and register with SDP server), maybe
> > rfcomm_sppd should be able to handle something like that..
>
> That would be great, and have symmetry with the HF/HSET case for audio
> in each direction.
Yeah, but its complicated - normally you would make the outgoing bluetooth
connection to the phone and either wait for an incoming call or make an
outgoing call before starting up PPP.
unless you were the phone, and its the other way around.
> > there is a program in FreeBSD called rfcomm_pppd that does
> > handle this kind of thing for certain phones, but I didn't
> > port it because it seemed more useful for their user-ppp
> > daemon.
>
> Ahah. The doco for this even mentions the quirky 'callback' behaviour
> of this phone (p900). This does seem like a more particular bit of
> glue for invoking that program, a more generic SPP listener that just
> made the connection appear on a pty would be fine for me.
Without making any claims, I did modify this program so that it at least
builds on NetBSD but it was a while ago so I don't know if it is of any
use to you (attached) in the meantime?
I will think about what needs to be done to rfcomm_sppd so you can set up
incoming connections that are unaware of bluetooth.
iain
--0-729184356-1169075360=:8530
Content-Type: APPLICATION/octet-stream; name=rfcomm_pppd.tar.gz
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.64.0701172309200.8530@localhost.>
Content-Description: rfcom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