FreeBSD as bluetooth gateway for a PDA
Ruslan Ermilov
ru at freebsd.org
Fri Sep 12 13:04:55 PDT 2003
On Fri, Sep 12, 2003 at 11:47:40AM -0700, Maksim Yevmenkin wrote:
[...]
> ok, now we are back to RFCOMM connection. here is iPaq sends a RFCOMM data
> packet. the sequence is "0x43 0x4C 0x49 0x45 0x4E 0x54", which is a word
>
> "CLIENT"
>
> > < ACL data: handle 0x0028 flags 0x02 dlen 9
> > L2CAP(d): cid 0x47 len 5 [psm 3]
> > RFCOMM(d): UIH: cr 0 dlci 14 pf 1 ilen 0 fcs 0x63 credits 34
> > > HCI Event: Number of Completed Packets(0x13) plen 5
> > 01 28 00 01 00
> > < ACL data: handle 0x0028 flags 0x02 dlen 73
> > L2CAP(d): cid 0x47 len 69 [psm 3]
> > RFCOMM(d): UIH: cr 0 dlci 14 pf 0 ilen 65 fcs 0x7f
> > 7E FF 7D 23 C0 21 7D 21 7D 21 7D 20 20 7D 28 7D 22 7D 27 7D
> > 22 7D 22 7D 26 7D 20 7D 20 7D 20 7D 20 7D 21 7D 24 7D 25 DC
> > 7D 25 7D 26 22 85 2E 69 7D 24 7D 28 C0 25 7D 20 7D 20 7D 23
> > E8 7D 36 B4 7E
>
> here is FreeBSD gives more RFCOMM credits to iPaq and send RFCOMM data packet
> with "0x7E 0xFF 0x7D ..." which is clearly a PPP frame.
>
> > > HCI Event: Number of Completed Packets(0x13) plen 5
> > 01 28 00 01 00
> > > ACL data: handle 0x0028 flags 0x02 dlen 9
> > L2CAP(d): cid 0x56 len 5 [psm 3]
> > RFCOMM(d): UIH: cr 1 dlci 14 pf 1 ilen 0 fcs 0xb9 credits 1
> > > ACL data: handle 0x0028 flags 0x02 dlen 14
> > L2CAP(d): cid 0x56 len 10 [psm 3]
> > RFCOMM(d): UIH: cr 1 dlci 14 pf 0 ilen 6 fcs 0xa5
> > 43 4C 49 45 4E 54
>
> here we receive more RFCOMM credits from iPaq, and iPaq again sends us word
> "CLIENT" etc.
>
> [ i skipped the rest of the dump and PPP config ]
>
> > I'm clueless... I hope you might find some time to ponder this!
>
> well, from what i can see iPaq is trying to use Windows RAS service, where
> FreeBSD is configured to use PPP. is iPaq runs on WinCE? you should tell
> your iPaq to use Unix/PPP *not* Windows/RAS (Remote Access Service). please
> try this and let me know if it works.
>
> thank you very much for your time, help with testing and very good dumps.
>
If you have a version of ppp(8) that supports force-scripts (please
check the ppp(8) manual), this should fix your PPP problem:
server:
[...]
enable force-scripts
set dial "CLIENT CLIENTSERVER"
Cheers,
--
Ruslan Ermilov Sysadmin and DBA,
ru at sunbay.com Sunbay Software Ltd,
ru at FreeBSD.org FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20030912/a5860de1/attachment.bin
More information about the freebsd-current
mailing list