Hi! I meet a problem, while trying to access my LAN from iPaq 2210 through FreeBSD 5.3 box via Bluetooth. I have an Tekram-branded USB-BT dongle. This dongle is successfully recognized in OS and works: ------------------------------------------------------------------ sanvean% /etc/rc.bluetooth start ubt0 BD_ADDR: 00:0b:0d:31:93:c2 Features: 0xff 0xff 0x5 0x38 0x18 0x18 00 00 <3-Slot> <5-Slot> <Encryption> <Slot offset> <Timing accuracy> <Switch> <Hold mode> <Sniff mode> <Park mode> <RSSI> <Channel quality> <SCO link> <HV2 packets> <HV3 packets> <u-law log> <A-law log> <CVSD> <Power control> Max. ACL packet size: 120 bytes Number of ACL packets: 20 Max. SCO packet size: 0 bytes Number of SCO packets: 0 ------------------------------------------------------------------ I can see my iPaq from FreeBSD ------------------------------------------------------------------ sanvean% hccontrol -n ubt0hci inquiry Inquiry result, num_responses=1 Inquiry result #0 BD_ADDR: 00:04:3e:80:45:d1 Page Scan Rep. Mode: 0x1 Page Scan Period Mode: 00 Page Scan Mode: 00 Class: 12:01:10 Clock offset: 0x236f Inquiry complete. Status: No error [00] ------------------------------------------------------------------ And even ping it... ------------------------------------------------------------------ sanvean% l2ping -a 00:04:3e:80:45:d1 44 bytes from 00:04:3e:80:45:d1 seq_no=0 time=2644.202 ms result=0 44 bytes from 00:04:3e:80:45:d1 seq_no=1 time=14.698 ms result=0 44 bytes from 00:04:3e:80:45:d1 seq_no=2 time=12.478 ms result=0 44 bytes from 00:04:3e:80:45:d1 seq_no=3 time=13.294 ms result=0 ^C ------------------------------------------------------------------ And more, I can see all services, that iPaq provides. ------------------------------------------------------------------ sanvean% sdptool browse 00:04:3e:80:45:d1 Browsing 00:04:3e:80:45:d1 ... Service Name: Generic Serial Service RecHandle: 0x10000 Service Class ID List: "Serial Port" (0x1101) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 1 Language Base Attr List: code_ISO639: 0x656e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "Serial Port" (0x1101) Version: 0x0100 <many services skipped> ------------------------------------------------------------------ Fine, let's bring up the service: ------------------------------------------------------------------ sanvean% sdptool add --channel 7 LAN LAN Access service registered sanvean% rfcomm_pppd -s -C 7 -l rfcomm-server sanvean% sdptool browse ff:ff:ff:00:00:00 Browsing ff:ff:ff:00:00:00 ... Service Name: Bluetooth service discovery Service Description: Bluetooth service discovery Service Provider: FreeBSD Service RecHandle: 0x0 Service Class ID List: "SDP Server" (0x1000) Protocol Descriptor List: "L2CAP" (0x0100) PSM: 1 Version: 0x0001 Language Base Attr List: code_ISO639: 0x656e encoding: 0x6a base_offset: 0x100 Service Name: Public Browse Group Root Service Description: Public Browse Group Root Service Provider: FreeBSD Service RecHandle: 0x1 Service Class ID List: "Browse Group Descriptor" (0x1001) Language Base Attr List: code_ISO639: 0x656e encoding: 0x6a base_offset: 0x100 Service Name: LAN Access using PPP Service RecHandle: 0xa Service Class ID List: "LAN Access Using PPP" (0x1102) Protocol Descriptor List: "L2CAP" (0x0100) "RFCOMM" (0x0003) Channel: 7 Language Base Attr List: code_ISO639: 0x656e encoding: 0x6a base_offset: 0x100 Profile Descriptor List: "LAN Access Using PPP" (0x1102) Version: 0x0100 ------------------------------------------------------------------ Here is my pppd.conf file: ------------------------------------------------------------------ sanvean% cvery at /etc/ppp/ppp.conf default: set log Phase Chat LCP IPCP CCP tun command rfcomm-server: set cd off set dial set speed 115200 set timeout 0 nat enable yes set ifaddr 192.168.1.2/0 192.168.1.3/0 enable dns open disable pap deny pap disable chap deny chap ------------------------------------------------------------------- Now, going to iPaq.... Well, I can see my FreeBSD box, i have discovered "LAN Access Using PPP" service and I am ready to use it. Let's go! Password? Forged about it, clear the fields and tap Ok. "Answering modem has disconnected", Ok! I have typed my FreeBSD login/password - Still no luck. Have killed 6 hours investigating this - still no luck. Now, my debug information: sanvean# tail -f /var/log/ppp.log Apr 3 04:40:01 sanvean ppp[12658]: Phase: Using interface: tun0 Apr 3 04:40:01 sanvean ppp[12658]: Phase: deflink: Created in closed state Apr 3 04:40:01 sanvean ppp[12658]: tun0: Command: default: enable dns Apr 3 04:40:01 sanvean ppp[12658]: tun0: Command: rfcomm-server: set cd off Apr 3 04:40:01 sanvean ppp[12658]: tun0: Command: rfcomm-server: set dial Apr 3 04:40:01 sanvean ppp[12658]: tun0: Command: rfcomm-server: set speed 115200 Apr 3 04:40:01 sanvean ppp[12658]: tun0: Command: rfcomm-server: set timeout 0 Apr 3 04:40:01 sanvean ppp[12658]: tun0: Command: rfcomm-server: nat enable yes Apr 3 04:40:01 sanvean ppp[12658]: tun0: Command: rfcomm-server: set ifaddr 192.168.1.2/0 192.168.1.3/0 Apr 3 04:40:01 sanvean ppp[12658]: tun0: Command: rfcomm-server: enable dns Apr 3 04:40:01 sanvean ppp[12658]: tun0: Command: rfcomm-server: open Apr 3 04:40:01 sanvean ppp[12658]: tun0: Phase: bundle: Establish Apr 3 04:40:01 sanvean ppp[12658]: tun0: Phase: deflink: closed -> opening Apr 3 04:40:01 sanvean ppp[12658]: tun0: Command: rfcomm-server: disable pap Apr 3 04:40:01 sanvean ppp[12658]: tun0: Command: rfcomm-server: deny pap Apr 3 04:40:01 sanvean ppp[12658]: tun0: Command: rfcomm-server: disable chap Apr 3 04:40:01 sanvean ppp[12658]: tun0: Command: rfcomm-server: deny chap Apr 3 04:40:01 sanvean ppp[12658]: tun0: Phase: PPP Started (direct mode). Apr 3 04:40:01 sanvean ppp[12658]: tun0: Phase: deflink: Connected! Apr 3 04:40:01 sanvean ppp[12658]: tun0: Phase: deflink: opening -> carrier Apr 3 04:40:01 sanvean ppp[12658]: tun0: Phase: deflink: carrier -> lcp Apr 3 04:40:01 sanvean ppp[12658]: tun0: LCP: FSM: Using "deflink" as a transport Apr 3 04:40:01 sanvean ppp[12658]: tun0: LCP: deflink: State change Initial --> Closed Apr 3 04:40:01 sanvean ppp[12658]: tun0: LCP: deflink: State change Closed --> Stopped Apr 3 04:40:02 sanvean ppp[12658]: tun0: LCP: deflink: LayerStart Apr 3 04:40:02 sanvean ppp[12658]: tun0: LCP: deflink: SendConfigReq(1) state = Stopped Apr 3 04:40:02 sanvean ppp[12658]: tun0: LCP: ACFCOMP[2] Apr 3 04:40:02 sanvean ppp[12658]: tun0: LCP: PROTOCOMP[2] Apr 3 04:40:02 sanvean ppp[12658]: tun0: LCP: ACCMAP[6] 0x00000000 Apr 3 04:40:02 sanvean ppp[12658]: tun0: LCP: MRU[4] 1500 Apr 3 04:40:02 sanvean ppp[12658]: tun0: LCP: MAGICNUM[6] 0xfecfe127 Apr 3 04:40:02 sanvean ppp[12658]: tun0: LCP: deflink: State change Stopped --> Req-Sent Apr 3 04:40:05 sanvean ppp[12658]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent Apr 3 04:40:05 sanvean ppp[12658]: tun0: LCP: ACFCOMP[2] Apr 3 04:40:05 sanvean ppp[12658]: tun0: LCP: PROTOCOMP[2] Apr 3 04:40:05 sanvean ppp[12658]: tun0: LCP: ACCMAP[6] 0x00000000 Apr 3 04:40:05 sanvean ppp[12658]: tun0: LCP: MRU[4] 1500 Apr 3 04:40:05 sanvean ppp[12658]: tun0: LCP: MAGICNUM[6] 0xfecfe127 Apr 3 04:40:08 sanvean ppp[12658]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent Apr 3 04:40:08 sanvean ppp[12658]: tun0: LCP: ACFCOMP[2] Apr 3 04:40:08 sanvean ppp[12658]: tun0: LCP: PROTOCOMP[2] Apr 3 04:40:08 sanvean ppp[12658]: tun0: LCP: ACCMAP[6] 0x00000000 Apr 3 04:40:08 sanvean ppp[12658]: tun0: LCP: MRU[4] 1500 Apr 3 04:40:08 sanvean ppp[12658]: tun0: LCP: MAGICNUM[6] 0xfecfe127 Apr 3 04:40:11 sanvean ppp[12658]: tun0: LCP: deflink: SendConfigReq(1) state = Req-Sent Apr 3 04:40:11 sanvean ppp[12658]: tun0: LCP: ACFCOMP[2] Apr 3 04:40:11 sanvean ppp[12658]: tun0: LCP: PROTOCOMP[2] Apr 3 04:40:11 sanvean ppp[12658]: tun0: LCP: ACCMAP[6] 0x00000000 Apr 3 04:40:11 sanvean ppp[12658]: tun0: LCP: MRU[4] 1500 Apr 3 04:40:11 sanvean ppp[12658]: tun0: LCP: MAGICNUM[6] 0xfecfe127 Apr 3 04:40:11 sanvean ppp[12658]: tun0: Phase: deflink: read (0): Got zero bytes Apr 3 04:40:11 sanvean ppp[12658]: tun0: LCP: deflink: State change Req-Sent --> Starting Apr 3 04:40:11 sanvean ppp[12658]: tun0: LCP: deflink: LayerFinish Apr 3 04:40:11 sanvean ppp[12658]: tun0: LCP: deflink: State change Starting --> Initial Apr 3 04:40:11 sanvean ppp[12658]: tun0: Phase: deflink: Disconnected! Apr 3 04:40:11 sanvean ppp[12658]: tun0: Phase: deflink: Connect time: 10 secs: 24 octets in, 208 octets out Apr 3 04:40:11 sanvean ppp[12658]: tun0: Phase: deflink: 4 packets in, 4 packets out Apr 3 04:40:11 sanvean ppp[12658]: tun0: Phase: total 23 bytes/sec, peak 23 bytes/sec on Sun Apr 3 04:40:06 2005 Apr 3 04:40:11 sanvean ppp[12658]: tun0: Phase: deflink: lcp -> closed Apr 3 04:40:11 sanvean ppp[12658]: tun0: Phase: bundle: Dead Apr 3 04:40:11 sanvean ppp[12658]: tun0: Phase: PPP Terminated (normal). sanvean# hcidump HCIDump - HCI packet analyzer ver 1.5 device: any snap_len: 65535 filter: 0xffffffff > HCI Event: Connect Request(0x04) plen 10 < HCI Command: Accept Connection Request(0x01|0x0009) plen 7 > HCI Event: Command Status(0x0f) plen 4 > HCI Event: Role Change(0x12) plen 8 > HCI Event: Connect Complete(0x03) plen 11 < HCI Command: Write Link Policy Settings(0x02|0x000d) plen 4 > HCI Event: Command Complete(0x0e) plen 6 > HCI Event: Max Slots Change(0x1b) plen 3 > ACL data: handle 0x0001 flags 0x02 dlen 12 L2CAP(s): Connect req: psm 1 scid 0x0045 < ACL data: handle 0x0001 flags 0x02 dlen 16 L2CAP(s): Connect rsp: dcid 0x0049 scid 0x0045 result 0 status 0 > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 20 L2CAP(s): Config req: dcid 0x0049 flags 0x0000 clen 8 MTU 512 FlushTO 65535 < ACL data: handle 0x0001 flags 0x02 dlen 14 L2CAP(s): Config rsp: scid 0x0045 flags 0x0000 result 0 clen 0 < ACL data: handle 0x0001 flags 0x02 dlen 12 L2CAP(s): Config req: dcid 0x0045 flags 0x0000 clen 0 > HCI Event: Number of Completed Packets(0x13) plen 5 > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 14 L2CAP(s): Config rsp: scid 0x0049 flags 0x0000 result 0 clen 0 > ACL data: handle 0x0001 flags 0x02 dlen 17 L2CAP(d): cid 0x49 len 13 [psm 1] SDP SS Req: tid 0x0 len 0x8 pat uuid-16 0x1102 (LAN) max 0x14 cont 00 < ACL data: handle 0x0001 flags 0x02 dlen 18 L2CAP(d): cid 0x45 len 14 [psm 1] SDP SS Rsp: tid 0x0 len 0x9 tot 0x1 cur 0x1 hndl 0xa cont 00 > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 23 L2CAP(d): cid 0x49 len 19 [psm 1] SDP SA Req: tid 0x1 len 0xe hndl 0xa max 0x1f0 aid(s) 0x0000 - 0xffff cont 00 < ACL data: handle 0x0001 flags 0x02 dlen 119 L2CAP(d): cid 0x45 len 115 [psm 1] SDP SA Rsp: tid 0x1 len 0x6e cnt 0x6b aid 0x0000 (SrvRecHndl) uint 0xa aid 0x0001 (SrvClassIDList) < uuid-16 0x1102 (LAN) > aid 0x0004 (ProtocolDescList) < < uuid-16 0x0100 (L2CAP) > < uuid-16 0x0003 (RFCOMM) uint 0x7 > > aid 0x0006 (LangBaseAttrIDList) < uint 0x656e uint 0x6a uint 0x100 > aid 0x0008 (SrvAvail) uint 0x0 aid 0x0009 (BTProfileDescList) < < uuid-16 0x1102 (LAN) uint 0x100 > > aid 0x0100 (SrvName) str "LAN Access using PPP" aid 0x0200 (VersionNumList) str "0.0.0.0/0" cont 00 > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 12 L2CAP(s): Disconn req: dcid 0x0049 scid 0x0045 < ACL data: handle 0x0001 flags 0x02 dlen 12 L2CAP(s): Disconn rsp: dcid 0x0049 scid 0x0045 > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 12 L2CAP(s): Connect req: psm 3 scid 0x0046 < ACL data: handle 0x0001 flags 0x02 dlen 16 L2CAP(s): Connect rsp: dcid 0x004a scid 0x0046 result 0 status 0 > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 16 L2CAP(s): Config req: dcid 0x004a flags 0x0000 clen 4 MTU 1691 < ACL data: handle 0x0001 flags 0x02 dlen 14 L2CAP(s): Config rsp: scid 0x0046 flags 0x0000 result 0 clen 0 < ACL data: handle 0x0001 flags 0x02 dlen 16 L2CAP(s): Config req: dcid 0x0046 flags 0x0000 clen 4 MTU 132 > HCI Event: Number of Completed Packets(0x13) plen 5 > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 14 L2CAP(s): Config rsp: scid 0x004a flags 0x0000 result 0 clen 0 > ACL data: handle 0x0001 flags 0x02 dlen 8 L2CAP(d): cid 0x4a len 4 [psm 3] RFCOMM(s): SABM: cr 1 dlci 0 pf 1 ilen 0 fcs 0x1c < ACL data: handle 0x0001 flags 0x02 dlen 8 L2CAP(d): cid 0x46 len 4 [psm 3] RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7 > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 18 L2CAP(d): cid 0x4a len 14 [psm 3] RFCOMM(s): PN CMD: cr 1 dlci 0 pf 0 ilen 10 fcs 0x70 mcc_len 8 dlci 14 frame_type 0 credit_flow 15 pri 0 ack_timer 0 frame_size 660 max_retrans 0 credits 7 < ACL data: handle 0x0001 flags 0x02 dlen 18 L2CAP(d): cid 0x46 len 14 [psm 3] RFCOMM(s): PN RSP: cr 0 dlci 0 pf 0 ilen 10 fcs 0xaa mcc_len 8 dlci 14 frame_type 0 credit_flow 14 pri 0 ack_timer 0 frame_size 660 max_retrans 0 credits 7 > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 8 L2CAP(d): cid 0x4a len 4 [psm 3] RFCOMM(s): SABM: cr 1 dlci 14 pf 1 ilen 0 fcs 0x6 < ACL data: handle 0x0001 flags 0x02 dlen 8 L2CAP(d): cid 0x46 len 4 [psm 3] RFCOMM(s): UA: cr 1 dlci 14 pf 1 ilen 0 fcs 0xcd < ACL data: handle 0x0001 flags 0x02 dlen 12 L2CAP(d): cid 0x46 len 8 [psm 3] RFCOMM(s): MSC CMD: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2 dlci 14 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 1 b3 0 len 0 > HCI Event: Number of Completed Packets(0x13) plen 5 > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 12 L2CAP(d): cid 0x4a len 8 [psm 3] RFCOMM(s): MSC CMD: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2 dlci 14 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 1 b3 0 len 0 < ACL data: handle 0x0001 flags 0x02 dlen 12 L2CAP(d): cid 0x46 len 8 [psm 3] RFCOMM(s): MSC RSP: cr 0 dlci 0 pf 0 ilen 4 fcs 0xaa mcc_len 2 dlci 14 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 1 b3 0 len 0 > ACL data: handle 0x0001 flags 0x02 dlen 12 L2CAP(d): cid 0x4a len 8 [psm 3] RFCOMM(s): MSC RSP: cr 1 dlci 0 pf 0 ilen 4 fcs 0x70 mcc_len 2 dlci 14 fc 0 rtc 1 rtr 1 ic 0 dv 1 b1 1 b2 1 b3 0 len 0 > HCI Event: Number of Completed Packets(0x13) plen 5 < ACL data: handle 0x0001 flags 0x02 dlen 61 L2CAP(d): cid 0x46 len 57 [psm 3] RFCOMM(d): UIH: cr 0 dlci 14 pf 0 ilen 53 fcs 0x7f > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 9 L2CAP(d): cid 0x4a len 5 [psm 3] RFCOMM(d): UIH: cr 1 dlci 14 pf 1 ilen 0 fcs 0xb9 credits 39 > ACL data: handle 0x0001 flags 0x02 dlen 14 L2CAP(d): cid 0x4a len 10 [psm 3] RFCOMM(d): UIH: cr 1 dlci 14 pf 0 ilen 6 fcs 0xa5 < ACL data: handle 0x0001 flags 0x02 dlen 9 L2CAP(d): cid 0x46 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 > ACL data: handle 0x0001 flags 0x02 dlen 14 L2CAP(d): cid 0x4a len 10 [psm 3] RFCOMM(d): UIH: cr 1 dlci 14 pf 0 ilen 6 fcs 0xa5 < ACL data: handle 0x0001 flags 0x02 dlen 61 L2CAP(d): cid 0x46 len 57 [psm 3] RFCOMM(d): UIH: cr 0 dlci 14 pf 0 ilen 53 fcs 0x7f > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 14 L2CAP(d): cid 0x4a len 10 [psm 3] RFCOMM(d): UIH: cr 1 dlci 14 pf 0 ilen 6 fcs 0xa5 < ACL data: handle 0x0001 flags 0x02 dlen 61 L2CAP(d): cid 0x46 len 57 [psm 3] RFCOMM(d): UIH: cr 0 dlci 14 pf 0 ilen 53 fcs 0x7f > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 14 L2CAP(d): cid 0x4a len 10 [psm 3] RFCOMM(d): UIH: cr 1 dlci 14 pf 0 ilen 6 fcs 0xa5 < ACL data: handle 0x0001 flags 0x02 dlen 61 L2CAP(d): cid 0x46 len 57 [psm 3] RFCOMM(d): UIH: cr 0 dlci 14 pf 0 ilen 53 fcs 0x7f > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 8 L2CAP(d): cid 0x4a len 4 [psm 3] RFCOMM(s): DISC: cr 1 dlci 14 pf 1 ilen 0 fcs 0xe7 < ACL data: handle 0x0001 flags 0x02 dlen 8 L2CAP(d): cid 0x46 len 4 [psm 3] RFCOMM(s): UA: cr 1 dlci 14 pf 1 ilen 0 fcs 0xcd > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 8 L2CAP(d): cid 0x4a len 4 [psm 3] RFCOMM(s): DISC: cr 1 dlci 0 pf 1 ilen 0 fcs 0xfd < ACL data: handle 0x0001 flags 0x02 dlen 8 L2CAP(d): cid 0x46 len 4 [psm 3] RFCOMM(s): UA: cr 1 dlci 0 pf 1 ilen 0 fcs 0xd7 > HCI Event: Number of Completed Packets(0x13) plen 5 > ACL data: handle 0x0001 flags 0x02 dlen 12 L2CAP(s): Disconn req: dcid 0x004a scid 0x0046 < ACL data: handle 0x0001 flags 0x02 dlen 12 L2CAP(s): Disconn rsp: dcid 0x004a scid 0x0046 > HCI Event: Number of Completed Packets(0x13) plen 5 > HCI Event: Disconn Complete(0x05) plen 4 Have tried another services: OBEX, Serial - no luck :( My devices can connect to each other, but cannot communicate. Will be grateful for your help. Bye!Received on Sat Apr 02 2005 - 23:00:41 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:31 UTC