Thu, 18 Jan 2007, Daniel Carosone wrote:
I haven't been able to get the other direction working, fwiw. While
RFCMM 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
RFCMM 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