From owner-freebsd-bluetooth@FreeBSD.ORG Mon Aug 22 18:57:23 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 172D216A420 for ; Mon, 22 Aug 2005 18:57:23 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2006943D46 for ; Mon, 22 Aug 2005 18:57:22 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so1000838rne for ; Mon, 22 Aug 2005 11:57:21 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=A33udOzQOwENSxZXqjy6r9Jhz4w89yGRSea+6ZcYhS/4+zilCsuXk8xIMkxrLNuWcaxUqIYoVZagrF9PMfDK1XukfYPPW2TBagWzneuuofe216jEsGDUAK1Iu00YEIdYfxg7osJhRjBA7z+ktJwJv6kcjHaddeodsTx6ZGfVueA= Received: by 10.38.92.15 with SMTP id p15mr83709rnb; Mon, 22 Aug 2005 11:57:21 -0700 (PDT) Received: by 10.38.208.5 with HTTP; Mon, 22 Aug 2005 11:57:21 -0700 (PDT) Message-ID: Date: Mon, 22 Aug 2005 11:57:21 -0700 From: Maksim Yevmenkin To: Jonatan B In-Reply-To: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_5997_19668216.1124737041544" References: <430A12AB.3030800@savvis.net> Cc: freebsd-bluetooth@freebsd.org Subject: Re: [PANIC] 6.0BETA2 in l2ping flood X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2005 18:57:23 -0000 ------=_Part_5997_19668216.1124737041544 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Jonatan, On 8/22/05, Maksim Yevmenkin wrote: > Jonatan and Pawel, >=20 > > +> This is a repeatable panic I get when l2ping flooding my tungsten. > > +> Maksim? > > +> > > +> repeatable panic with bluetooth on SMP > > +> > > +> #> l2ping -fa MyTungsten -s 65531 >=20 > [...] >=20 > > Fixed in HEAD, thanks for the report. >=20 > first, let me thank you both for reporting the problem (Jonatan) and > spending time looking into this (Pawel). i was able to reproduce the > problem and have fix that i will commit after brief testing. >=20 > the patch Pawel has committed to HEAD indeed fixes the panic (thanks > Pawel!) however it somewhat hides bigger bug in the bluetooth l2cap > code. the panic happens when l2cap connection descriptor is deleted > with the l2cap command(s) pending in the queue. in this case when the > last l2cap command is deleted (due to cleanup) and reference counter > for the l2cap connection goes down to zero the auto disconnect timeout > is incorrectly set. could you please try the attached patch? this patch is against HEAD. it should apply cleanly (for the most part) against 6.x and 5.x. there will be some rejects in ng_l2cap_misc.c if you apply it against 5.x or 6.x. you could fix them by hand. also to build l2control(8) utility you will need to install ng_l2cap.h header from /sys/netgraph/bluetooth/incude into /usr/include/netgraph/bluetooth/include. or you could just do "make buildworld/installworld" thanks, max ------=_Part_5997_19668216.1124737041544 Content-Type: text/plain; name="l2cap.timo.patch.txt" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="l2cap.timo.patch.txt" PyBzeXMvZGV2L2FuL2lmX2FuLmMubmV3Cj8gc3lzL25ldC9pZl90YXAuYy5hbHRxCj8gdXNyLmJp bi9ibHVldG9vdGgvcmZjb21tX3NwcGQvbG9nCj8gdXNyLnNiaW4vYmx1ZXRvb3RoL2J0aGlkZC9i dGhpZF9zd2l0Y2hfa2V5Ym9hcmQKSW5kZXg6IHN5cy9uZXRncmFwaC9ibHVldG9vdGgvaW5jbHVk ZS9uZ19sM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IgXAorCQkJIiVjJWMlYyVjJWMlYyAiIFwKIAkJCSIlN2QgIiBcCiAJCQkiJXNcbiIsCiAJ CQliZGFkZHJwcigmci5jb25uZWN0aW9uc1tuXS5yZW1vdGUpLApAQCAtMTY3LDYgKzE2Nyw3IEBA CiAJCQkoKHIuY29ubmVjdGlvbnNbbl0uZmxhZ3MgJiBOR19MMkNBUF9DT05fT1VUR09JTkcpPyAn TycgOiAnSScpLAogCQkJKChyLmNvbm5lY3Rpb25zW25dLmZsYWdzICYgTkdfTDJDQVBfQ09OX0xQ X1RJTU8pPyAnTCcgOiAnICcpLAogCQkJKChyLmNvbm5lY3Rpb25zW25dLmZsYWdzICYgTkdfTDJD QVBfQ09OX0FVVE9fRElTQ09OX1RJTU8pPyAnRCcgOiAnICcpLAorCQkJKChyLmNvbm5lY3Rpb25z W25dLmZsYWdzICYgTkdfTDJDQVBfQ09OX0RZSU5HKT8gJyEnIDogJyAnKSwKIAkJCSgoci5jb25u ZWN0aW9uc1tuXS5mbGFncyAmIE5HX0wyQ0FQX0NPTl9UWCk/ICdUJyA6ICcgJyksCiAJCQkoKHIu Y29ubmVjdGlvbnNbbl0uZmxhZ3MgJiBOR19MMkNBUF9DT05fUlgpPyAnUicgOiAnICcpLAogCQkJ ci5jb25uZWN0aW9uc1tuXS5wZW5kaW5nLAo= ------=_Part_5997_19668216.1124737041544-- From owner-freebsd-bluetooth@FreeBSD.ORG Tue Aug 23 20:25:35 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C23BD16A41F for ; Tue, 23 Aug 2005 20:25:35 +0000 (GMT) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out1.tiscali.nl (smtp-out1.tiscali.nl [195.241.79.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 182C143D46 for ; Tue, 23 Aug 2005 20:25:35 +0000 (GMT) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [82.171.39.195] (helo=guido.klop.ws) by smtp-out1.tiscali.nl with smtp (Tiscali http://www.tiscali.nl) id 1E7fKw-0004mt-1a for ; Tue, 23 Aug 2005 22:25:34 +0200 Received: (qmail 28617 invoked from network); 23 Aug 2005 20:25:32 -0000 Received: from localhost.thuis.klop.ws (HELO outgoing.local) (127.0.0.1) by localhost.thuis.klop.ws with SMTP; 23 Aug 2005 20:25:32 -0000 To: freebsd-bluetooth@freebsd.org Date: Tue, 23 Aug 2005 22:25:31 +0200 From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: User-Agent: Opera M2/8.02 (FreeBSD, build 1272) Subject: Access internet from phone via pc? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2005 20:25:35 -0000 Hi, My phone (K700i) can access the internet by GPRS, etc. Is it also possible to let it access internet via my pc? Can I set up bluetooth that my phone uses my pc as a gateway? Or do phones not have this capability? Ronald. -- Ronald Klop Amsterdam, The Netherlands From owner-freebsd-bluetooth@FreeBSD.ORG Tue Aug 23 23:17:17 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1726216A41F for ; Tue, 23 Aug 2005 23:17:17 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 93BAF43D46 for ; Tue, 23 Aug 2005 23:17:16 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so1248295rne for ; Tue, 23 Aug 2005 16:17:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=e+I1FvEwqI9IY3kFph3YHc9yC3Kwyjel1j+LKJOTTHsGYUGn5uvYwjikIdqUB1IpnyGfQ6EtlHgdq0cQ5Gt35jXB2NechcfhvTyBTNFGbB8YJsoxaW5JAC2Irtcz3HEcCBkE1GwqKsru9WzcoFiiOxmDCZs4n3OdXqDJW27/yoI= Received: by 10.38.104.71 with SMTP id b71mr637013rnc; Tue, 23 Aug 2005 16:17:16 -0700 (PDT) Received: by 10.38.208.5 with HTTP; Tue, 23 Aug 2005 16:17:15 -0700 (PDT) Message-ID: Date: Tue, 23 Aug 2005 16:17:15 -0700 From: Maksim Yevmenkin To: Ronald Klop In-Reply-To: <430BAB33.5080507@savvis.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <430BAB33.5080507@savvis.net> Cc: freebsd-bluetooth@freebsd.org Subject: Re: Access internet from phone via pc? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Aug 2005 23:17:17 -0000 Ronald, > My phone (K700i) can access the internet by GPRS, etc. Is it also possibl= e > to let it access internet via my pc? Can I set up bluetooth that my phone > uses my pc as a gateway? Or do phones not have this capability? i just tried this with my k700i (firmware R2AE033 prgCXC 125821_EU_1_C) and it does not seem to know how to do it :( i even tried to get the list of known services from my laptop, i.e. "connectivity > bluetooth > my devices > select laptop and and click on services" and it only displays obex push, but i also had "serial port" and "lan access via ppp" services registered. hcidump shows that the phone got all the services from my laptop - see output below. the phone even asked for the WAP service twice :) perhaps it might be possible with BNEP/NAP/PANU profiles, but these are not supported yet in FreeBSD. thanks, max HCIDump - HCI packet analyzer ver 1.16 > SDP SSA Req: tid 0x0 len 0x19 pat uuid-16 0x1108 (Headset) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 (BTProfileDescList) 0x0100 (SrvName) 0x0302 (unknown) cont 00 < SDP SSA Rsp: tid 0x0 len 0x6 count 3 cont 00 > SDP SSA Req: tid 0x0 len 0x19 pat uuid-16 0x111e (Handsfree) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 (BTProfileDescList) 0x0100 (SrvName) 0x0311 (unknown) cont 00 < SDP SSA Rsp: tid 0x0 len 0x6 count 3 cont 00 > SDP SSA Req: tid 0x0 len 0x1f pat uuid-16 0x1102 (LAN) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0008 (SrvAvail) 0x0009 (BTProfileDescList) 0x0100 (SrvName) 0x0101 (SrvDesc) 0x0200 (VersionNumList) cont 00 < SDP SSA Rsp: tid 0x0 len 0x48 count 69 record #0 aid 0x0001 (SrvClassIDList) < uuid-16 0x1102 (LAN) > aid 0x0004 (ProtocolDescList) < < uuid-16 0x0100 (L2CAP) > < uuid-16 0x0003 (RFCOMM) uint 0x1 > > aid 0x0009 (BTProfileDescList) < < uuid-16 0x1102 (LAN) uint 0x100 > > aid 0x0100 (SrvName) str "LAN Access using PPP" cont 00 > SDP SSA Req: tid 0x0 len 0x22 pat uuid-16 0x1115 (PANU) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0006 (LangBaseAttrIDList) 0x0008 (SrvAvail) 0x0009 (BTProfileDescList) 0x0100 (SrvName) 0x0101 (SrvDesc) 0x030a (SecurityDescription) cont 00 < SDP SSA Rsp: tid 0x0 len 0x6 count 3 cont 00 > SDP SSA Req: tid 0x0 len 0x2b pat uuid-16 0x1116 (NAP) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0006 (LangBaseAttrIDList) 0x0008 (SrvAvail) 0x0009 (BTProfileDescList) 0x0100 (SrvName) 0x0101 (SrvDesc) 0x0200 (VersionNumList) 0x030a (SecurityDescription) 0x030b (NetAccessType) 0x030c (MaxNetAccessRate) cont 00 < SDP SSA Rsp: tid 0x0 len 0x6 count 3 cont 00 > SDP SSA Req: tid 0x0 len 0x25 pat uuid-16 0x1117 (GN) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0006 (LangBaseAttrIDList) 0x0008 (SrvAvail) 0x0009 (BTProfileDescList) 0x0100 (SrvName) 0x0101 (SrvDesc) 0x0200 (VersionNumList) 0x030a (SecurityDescription) cont 00 < SDP SSA Rsp: tid 0x0 len 0x6 count 3 cont 00 > SDP SSA Req: tid 0x0 len 0x1f pat uuid-16 0x1113 (WAP) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0009 (BTProfileDescList) 0x0100 (SrvName) 0x0306 (unknown) 0x0307 (unknown) 0x0308 (unknown) 0x0309 (unknown) cont 00 < SDP SSA Rsp: tid 0x0 len 0x6 count 3 cont 00 > SDP SSA Req: tid 0x0 len 0x1f pat uuid-16 0x1113 (WAP) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0009 (BTProfileDescList) 0x0100 (SrvName) 0x0306 (unknown) 0x0307 (unknown) 0x0308 (unknown) 0x0309 (unknown) cont 00 < SDP SSA Rsp: tid 0x0 len 0x6 count 3 cont 00 > SDP SSA Req: tid 0x0 len 0x16 pat uuid-16 0x1107 (IRMCSyncCmd) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 (BTProfileDescList) 0x0100 (SrvName) cont 00 < SDP SSA Rsp: tid 0x0 len 0x6 count 3 cont 00 > SDP SSA Req: tid 0x0 len 0x21 pat uuid-128 00000001-0000-1000-8000-0002ee000002 max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0100 (SrvN= ame) cont 00 < SDP SSA Rsp: tid 0x0 len 0x6 count 3 cont 00 > SDP SSA Req: tid 0x0 len 0x19 pat uuid-16 0x1105 (OBEXObjPush) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 (BTProfileDescList) 0x0100 (SrvName) 0x0303 (SuppFormatsList) cont 00 < SDP SSA Rsp: tid 0x0 len 0x5c count 89 record #0 aid 0x0001 (SrvClassIDList) < uuid-16 0x1105 (OBEXObjPush) > aid 0x0004 (ProtocolDescList) < < uuid-16 0x0100 (L2CAP) > < uuid-16 0x0003 (RFCOMM) uint 0x2 > < uuid-16 0x0008 (OBEX) > > aid 0x0009 (BTProfileDescList) < < uuid-16 0x1105 (OBEXObjPush) uint 0x100 > > aid 0x0100 (SrvName) str "OBEX Object Push" aid 0x0303 (SuppFormatsList) < uint 0x1 uint 0x2 uint 0x3 uint 0x4 uint 0x5 uint 0x7 uint 0= xff > cont 00 > SDP SSA Req: tid 0x0 len 0x16 pat uuid-16 0x1106 (OBEXObjTrnsf) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 (BTProfileDescList) 0x0100 (SrvName) cont 00 < SDP SSA Rsp: tid 0x0 len 0x6 count 3 cont 00 > SDP SSA Req: tid 0x0 len 0x22 pat uuid-16 0x111b (ImagingResp) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 (BTProfileDescList) 0x0100 (SrvName) 0x0310 (unknown) 0x0311 (unknown) 0x0312 (unknown) 0x0313 (unknown) cont 00 < SDP SSA Rsp: tid 0x0 len 0x6 count 3 cont 00 > SDP SSA Req: tid 0x0 len 0x22 pat uuid-16 0x111b (ImagingResp) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 (BTProfileDescList) 0x0100 (SrvName) 0x0310 (unknown) 0x0311 (unknown) 0x0312 (unknown) 0x0313 (unknown) cont 00 < SDP SSA Rsp: tid 0x0 len 0x6 count 3 cont 00 > SDP SSA Req: tid 0x0 len 0x22 pat uuid-16 0x111b (ImagingResp) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 (BTProfileDescList) 0x0100 (SrvName) 0x0310 (unknown) 0x0311 (unknown) 0x0312 (unknown) 0x0313 (unknown) cont 00 < SDP SSA Rsp: tid 0x0 len 0x6 count 3 cont 00 > SDP SSA Req: tid 0x0 len 0x16 pat uuid-16 0x1101 (SP) max 65535 aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 (BTProfileDescList) 0x0100 (SrvName) cont 00 < SDP SSA Rsp: tid 0x0 len 0x3f count 60 record #0 aid 0x0001 (SrvClassIDList) < uuid-16 0x1101 (SP) > aid 0x0004 (ProtocolDescList) < < uuid-16 0x0100 (L2CAP) > < uuid-16 0x0003 (RFCOMM) uint 0x1 > > aid 0x0009 (BTProfileDescList) < < uuid-16 0x1101 (SP) uint 0x100 > > aid 0x0100 (SrvName) str "Serial Port" cont 00 From owner-freebsd-bluetooth@FreeBSD.ORG Thu Aug 25 08:24:26 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 60C2216A41F for ; Thu, 25 Aug 2005 08:24:26 +0000 (GMT) (envelope-from ronald-freebsd8@klop.yi.org) Received: from smtp-out1.tiscali.nl (smtp-out1.tiscali.nl [195.241.79.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AF6343D45 for ; Thu, 25 Aug 2005 08:24:25 +0000 (GMT) (envelope-from ronald-freebsd8@klop.yi.org) Received: from [82.171.39.195] (helo=guido.klop.ws) by smtp-out1.tiscali.nl with smtp (Tiscali http://www.tiscali.nl) id 1E8D28-00036n-Cn for ; Thu, 25 Aug 2005 10:24:24 +0200 Received: (qmail 966 invoked from network); 25 Aug 2005 08:24:23 -0000 Received: from localhost.thuis.klop.ws (HELO outgoing.local) (127.0.0.1) by localhost.thuis.klop.ws with SMTP; 25 Aug 2005 08:24:22 -0000 To: "Maksim Yevmenkin" References: <430BAB33.5080507@savvis.net> Message-ID: From: "Ronald Klop" Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Date: Thu, 25 Aug 2005 10:24:21 +0200 In-Reply-To: User-Agent: Opera M2/8.02 (FreeBSD, build 1272) Cc: freebsd-bluetooth@freebsd.org Subject: Re: Access internet from phone via pc? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2005 08:24:26 -0000 Where do I find the firmware version of my k700i? Ronald. On Wed, 24 Aug 2005 01:17:15 +0200, Maksim Yevmenkin wrote: > Ronald, > >> My phone (K700i) can access the internet by GPRS, etc. Is it also >> possible >> to let it access internet via my pc? Can I set up bluetooth that my >> phone >> uses my pc as a gateway? Or do phones not have this capability? > > i just tried this with my k700i (firmware R2AE033 prgCXC > 125821_EU_1_C) and it does not seem to know how to do it :( > > i even tried to get the list of known services from my laptop, i.e. > "connectivity > bluetooth > my devices > select laptop and and click > on services" and it only displays obex push, but i also had "serial > port" and "lan access via ppp" services registered. > > hcidump shows that the phone got all the services from my laptop - see > output below. the phone even asked for the WAP service twice :) > > perhaps it might be possible with BNEP/NAP/PANU profiles, but these > are not supported yet in FreeBSD. > > thanks, > max > > HCIDump - HCI packet analyzer ver 1.16 >> SDP SSA Req: tid 0x0 len 0x19 > pat uuid-16 0x1108 (Headset) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 > (BTProfileDescList) 0x0100 (SrvName) 0x0302 (unknown) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x6 > count 3 > cont 00 > >> SDP SSA Req: tid 0x0 len 0x19 > pat uuid-16 0x111e (Handsfree) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 > (BTProfileDescList) 0x0100 (SrvName) 0x0311 (unknown) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x6 > count 3 > cont 00 > >> SDP SSA Req: tid 0x0 len 0x1f > pat uuid-16 0x1102 (LAN) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0008 > (SrvAvail) 0x0009 (BTProfileDescList) 0x0100 (SrvName) 0x0101 > (SrvDesc) 0x0200 (VersionNumList) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x48 > count 69 > record #0 > aid 0x0001 (SrvClassIDList) > < uuid-16 0x1102 (LAN) > > aid 0x0004 (ProtocolDescList) > < < uuid-16 0x0100 (L2CAP) > < > uuid-16 0x0003 (RFCOMM) uint 0x1 > > > aid 0x0009 (BTProfileDescList) > < < uuid-16 0x1102 (LAN) uint 0x100 > > > aid 0x0100 (SrvName) > str "LAN Access using PPP" > cont 00 > >> SDP SSA Req: tid 0x0 len 0x22 > pat uuid-16 0x1115 (PANU) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0006 > (LangBaseAttrIDList) 0x0008 (SrvAvail) 0x0009 (BTProfileDescList) > 0x0100 (SrvName) 0x0101 (SrvDesc) 0x030a (SecurityDescription) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x6 > count 3 > cont 00 > >> SDP SSA Req: tid 0x0 len 0x2b > pat uuid-16 0x1116 (NAP) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0006 > (LangBaseAttrIDList) 0x0008 (SrvAvail) 0x0009 (BTProfileDescList) > 0x0100 (SrvName) 0x0101 (SrvDesc) 0x0200 (VersionNumList) 0x030a > (SecurityDescription) 0x030b (NetAccessType) 0x030c (MaxNetAccessRate) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x6 > count 3 > cont 00 > >> SDP SSA Req: tid 0x0 len 0x25 > pat uuid-16 0x1117 (GN) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0006 > (LangBaseAttrIDList) 0x0008 (SrvAvail) 0x0009 (BTProfileDescList) > 0x0100 (SrvName) 0x0101 (SrvDesc) 0x0200 (VersionNumList) 0x030a > (SecurityDescription) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x6 > count 3 > cont 00 > >> SDP SSA Req: tid 0x0 len 0x1f > pat uuid-16 0x1113 (WAP) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0009 (BTProfileDescList) 0x0100 > (SrvName) 0x0306 (unknown) 0x0307 (unknown) 0x0308 (unknown) 0x0309 > (unknown) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x6 > count 3 > cont 00 > >> SDP SSA Req: tid 0x0 len 0x1f > pat uuid-16 0x1113 (WAP) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0009 (BTProfileDescList) 0x0100 > (SrvName) 0x0306 (unknown) 0x0307 (unknown) 0x0308 (unknown) 0x0309 > (unknown) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x6 > count 3 > cont 00 > >> SDP SSA Req: tid 0x0 len 0x16 > pat uuid-16 0x1107 (IRMCSyncCmd) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 > (BTProfileDescList) 0x0100 (SrvName) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x6 > count 3 > cont 00 > >> SDP SSA Req: tid 0x0 len 0x21 > pat uuid-128 00000001-0000-1000-8000-0002ee000002 > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0100 > (SrvName) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x6 > count 3 > cont 00 > >> SDP SSA Req: tid 0x0 len 0x19 > pat uuid-16 0x1105 (OBEXObjPush) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 > (BTProfileDescList) 0x0100 (SrvName) 0x0303 (SuppFormatsList) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x5c > count 89 > record #0 > aid 0x0001 (SrvClassIDList) > < uuid-16 0x1105 (OBEXObjPush) > > aid 0x0004 (ProtocolDescList) > < < uuid-16 0x0100 (L2CAP) > < > uuid-16 0x0003 (RFCOMM) uint 0x2 > < > uuid-16 0x0008 (OBEX) > > > aid 0x0009 (BTProfileDescList) > < < uuid-16 0x1105 (OBEXObjPush) uint 0x100 > > > aid 0x0100 (SrvName) > str "OBEX Object Push" > aid 0x0303 (SuppFormatsList) > < uint 0x1 uint 0x2 uint 0x3 uint 0x4 uint 0x5 uint 0x7 > uint 0xff > > cont 00 > >> SDP SSA Req: tid 0x0 len 0x16 > pat uuid-16 0x1106 (OBEXObjTrnsf) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 > (BTProfileDescList) 0x0100 (SrvName) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x6 > count 3 > cont 00 > >> SDP SSA Req: tid 0x0 len 0x22 > pat uuid-16 0x111b (ImagingResp) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 > (BTProfileDescList) 0x0100 (SrvName) 0x0310 (unknown) 0x0311 (unknown) > 0x0312 (unknown) 0x0313 (unknown) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x6 > count 3 > cont 00 > >> SDP SSA Req: tid 0x0 len 0x22 > pat uuid-16 0x111b (ImagingResp) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 > (BTProfileDescList) 0x0100 (SrvName) 0x0310 (unknown) 0x0311 (unknown) > 0x0312 (unknown) 0x0313 (unknown) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x6 > count 3 > cont 00 > >> SDP SSA Req: tid 0x0 len 0x22 > pat uuid-16 0x111b (ImagingResp) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 > (BTProfileDescList) 0x0100 (SrvName) 0x0310 (unknown) 0x0311 (unknown) > 0x0312 (unknown) 0x0313 (unknown) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x6 > count 3 > cont 00 > >> SDP SSA Req: tid 0x0 len 0x16 > pat uuid-16 0x1101 (SP) > max 65535 > aid(s) 0x0001 (SrvClassIDList) 0x0004 (ProtocolDescList) 0x0009 > (BTProfileDescList) 0x0100 (SrvName) > cont 00 > < SDP SSA Rsp: tid 0x0 len 0x3f > count 60 > record #0 > aid 0x0001 (SrvClassIDList) > < uuid-16 0x1101 (SP) > > aid 0x0004 (ProtocolDescList) > < < uuid-16 0x0100 (L2CAP) > < > uuid-16 0x0003 (RFCOMM) uint 0x1 > > > aid 0x0009 (BTProfileDescList) > < < uuid-16 0x1101 (SP) uint 0x100 > > > aid 0x0100 (SrvName) > str "Serial Port" > cont 00 > _______________________________________________ > freebsd-bluetooth@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-bluetooth > To unsubscribe, send any mail to > "freebsd-bluetooth-unsubscribe@freebsd.org" -- Ronald Klop Amsterdam, The Netherlands From owner-freebsd-bluetooth@FreeBSD.ORG Thu Aug 25 09:52:42 2005 Return-Path: X-Original-To: bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F9A016A41F for ; Thu, 25 Aug 2005 09:52:42 +0000 (GMT) (envelope-from schwabe@uni-paderborn.de) Received: from dagobah.rfc1149.org (dagobah.rfc1149.org [217.160.170.141]) by mx1.FreeBSD.org (Postfix) with ESMTP id ED75843D48 for ; Thu, 25 Aug 2005 09:52:41 +0000 (GMT) (envelope-from schwabe@uni-paderborn.de) Received: from kamino.cs.upb.de ([131.234.20.130] helo=kamino.rfc1149.org) by dagobah.rfc1149.org with esmtps (TLSv1:AES256-SHA:256) (Exim 4.51 (FreeBSD)) id 1E8EPU-000Ne0-8L for bluetooth@freebsd.org; Thu, 25 Aug 2005 11:52:40 +0200 Received: by kamino.rfc1149.org (Postfix, from userid 1001) id 603D240B4; Thu, 25 Aug 2005 11:52:35 +0200 (CEST) From: Arne Schwabe To: bluetooth@freebsd.org Date: Thu, 25 Aug 2005 11:52:34 +0200 Message-ID: <86mzn6e42l.fsf@kamino.rfc1149.org> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.3 (i386--freebsd) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-RFC-Spam-Score: -2.4 (--) Cc: Subject: How to connect a BT Mouse? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2005 09:52:42 -0000 Hi, Today I tried to make my bt mouse work with freebsd again, after I had it on my other pc. It does not work anymore. I tried hccontrol create_connection which worked but bthidd still does not recognize. After booting windows connecting the mouse and rebooting it works again, until I use the mouse on my other Pc and switch back :/ There must be a better way then booting windows. Arne -- The reasonable man adapts himself to the world; the unreasonable man persists in trying to adapt the world to himself. Therefore all progress depends on the unreasonable man. (George Bernard Shaw) From owner-freebsd-bluetooth@FreeBSD.ORG Thu Aug 25 12:09:08 2005 Return-Path: X-Original-To: bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 528CE16A41F for ; Thu, 25 Aug 2005 12:09:08 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id E460343D55 for ; Thu, 25 Aug 2005 12:09:07 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id j7PC96Bp017304; Thu, 25 Aug 2005 07:09:06 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <430DB4F0.5060701@centtech.com> Date: Thu, 25 Aug 2005 07:09:20 -0500 From: Eric Anderson User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.10) Gecko/20050815 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Arne Schwabe References: <86mzn6e42l.fsf@kamino.rfc1149.org> In-Reply-To: <86mzn6e42l.fsf@kamino.rfc1149.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.82/1040/Thu Aug 25 02:32:08 2005 on mh1.centtech.com X-Virus-Status: Clean Cc: bluetooth@freebsd.org Subject: Re: How to connect a BT Mouse? X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Aug 2005 12:09:08 -0000 Arne Schwabe wrote: > Hi, > > Today I tried to make my bt mouse work with freebsd again, after I had > it on my other pc. > > It does not work anymore. I tried hccontrol create_connection which > worked but bthidd still does not recognize. > > After booting windows connecting the mouse and rebooting it works > again, until I use the mouse on my other Pc and switch back :/ > > There must be a better way then booting windows. There is! Your mouse can only connect to one bluetooth host at a time, so it needs to learn which host to connect to when switching. When you booted into into Windows, you told the mouse to connect to your pc (it doesn't care the OS of course). On my mouse, I have a 'Connect' button on the bottom. I think, what I had to do, was use bthidcontrol -a mymouse forget , then hit the 'Connect' button, then use bthidcontrol -a mymouse query to grab the HID config from the mouse, which I dumped into the HID daemon config file. Once I did the query, the mouse talked to the computer, and all was well. Note - that's all from memory, so it's probably a little wrong.. :) Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-bluetooth@FreeBSD.ORG Fri Aug 26 21:14:21 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6F3C516A41F for ; Fri, 26 Aug 2005 21:14:21 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.192]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D4FF43D48 for ; Fri, 26 Aug 2005 21:14:20 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so645219rne for ; Fri, 26 Aug 2005 14:14:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NWj2GPqnmUEsMg0F7O9Rp0TnNN3iBBXu31xfhucFwvgYN6b0dC5tCQ5+kcNqeYUyLkQgWY7CRADAI9xb8Ap/gsXqQgPTicfP/rNyPQnuapidyb1OREaUshaBu1P03qmHX6KnfegaSRW3r8TM8wl4ifCH4A5bGncKFuGSKI8Fc5M= Received: by 10.38.11.18 with SMTP id 18mr424543rnk; Fri, 26 Aug 2005 14:14:19 -0700 (PDT) Received: by 10.38.208.41 with HTTP; Fri, 26 Aug 2005 14:14:19 -0700 (PDT) Message-ID: Date: Fri, 26 Aug 2005 14:14:19 -0700 From: Maksim Yevmenkin To: Bakul Shah In-Reply-To: <430F7C1A.2070501@savvis.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <430F7C1A.2070501@savvis.net> Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: sprintpcs treo 650 & blutooth & dialup networking X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 21:14:21 -0000 Hello, > I am trying to use a sprintpcs treo 650 for connecting to the > 'net. So far I can l2ping the treo, enable `pairing' between well, sprint pcs is _not_ a gsm service (as far as i know). its cdma. with gsm service you can subscribe to so called "mobile internet" service which uses gprs as a transport. most (all?) gsm operators have two choices: 1) wap over gprs - typically it means that you can only browse internet from the phone only. you can only access the internet if the device supports wap. this is usually the cheapest grps service you can get from a gsm operator 2) ip over grps - typically means that you use grps to connect to the ppp access point that in turn will give you ip access to the internet. some operators will make you go via proxy to filter out unwanted traffic etc. this is more expensive service. in the case (2) above the phone looks like wireless modem and you need to dial a "special" phone numer (usually *99, *99***1# or similar) to ask the phone to make a "grps call". i'm not exactly sure how this work in your case (never had a cdma phone :) you need to have some sort of wireless internet access plan activated on your phone. you will probably use 1xRTT (instead of gprs) on cdma network. you also need to make sure that wireless internet access plan you have allows you to use your treo as wireless modem. in other words you need to make sure that access point you are connecting to talk ppp and ip and not wap/whatever. then you will need to use something called "bluetooth dun profile" on treo (and rfcomm_pppd(8) on pc). it seems earlier versions of treo shipped to sprint pcs have bluetooth dun profile disabled. you need to check with sprint and make sure your treo supports it - you may need firmware upgrade. > the laptop and the treo, see open connection via hccontrol > read_connection_list and so on. When I start rfcomm_pppd it > connects to the treo (as shown by hcidump) but the script > times out. From the same place I can webbrowse on the treo > so the signal is good enough. My suspicion is that the ppp that tells me that you have wireless internet access plan activated, however it might not be the right one. i can also see that bluetooth part seems to be working as well. you need to double check with sprint to make sure your treo supports bluetooth dun profile. > chat script is not quite right. I'd appreciate looking at a > working script to figure out what may be going wrong. the script from rfcomm_pppd(8) man page is generic and should work. i.e. /etc/ppp/ppp.conf should have something like default: set log Phase Chat Connect Local Warning Error Alert rfcomm-dialup: # This is IMPORTANT option enable force-scripts # You might want to change these set authname set authkey set phone "#777" # You might want to adjust dial string as well set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATD\\T TIMEOUT 40 CONNECT" set login set timeout 30 enable dns resolv rewrite set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR =3D=3D=3D the "authname" and "authkey" usually not required. "set phone" should contain "magic" phone number to dial in order to make data (gprs/1xRTT) connection. it seems that for 1xRTT you need to to send "ATD#777". if it does not work then look at /var/log/ppp.log to find out why. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Fri Aug 26 21:34:11 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C14216A41F; Fri, 26 Aug 2005 21:34:11 +0000 (GMT) (envelope-from ml@t-b-o-h.net) Received: from vjofn.tucs-beachin-obx-house.com (vjofn.tucs-beachin-obx-house.com [204.107.90.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id 284CE43D45; Fri, 26 Aug 2005 21:34:10 +0000 (GMT) (envelope-from ml@t-b-o-h.net) Received: from himinbjorg.tucs-beachin-obx-house.com (ool-44c511d8.dyn.optonline.net [68.197.17.216]) (authenticated bits=128) by vjofn.tucs-beachin-obx-house.com (8.12.9/8.12.9) with ESMTP id j7QLY87f057674; Fri, 26 Aug 2005 17:34:08 -0400 (EDT) Received: from himinbjorg.tucs-beachin-obx-house.com (localhost.tucs-beachin-obx-house.com [127.0.0.1]) by himinbjorg.tucs-beachin-obx-house.com (8.13.3/8.12.10) with ESMTP id j7QLY1eT083767; Fri, 26 Aug 2005 17:34:02 -0400 (EDT) (envelope-from ml@t-b-o-h.net) Received: (from tbohml@localhost) by himinbjorg.tucs-beachin-obx-house.com (8.13.3/8.13.1/Submit) id j7QLY11x083766; Fri, 26 Aug 2005 17:34:01 -0400 (EDT) (envelope-from tbohml) From: Tuc at T-B-O-H Message-Id: <200508262134.j7QLY11x083766@himinbjorg.tucs-beachin-obx-house.com> To: maksim.yevmenkin@gmail.com (Maksim Yevmenkin) Date: Fri, 26 Aug 2005 17:34:01 -0400 (EDT) In-Reply-To: from "Maksim Yevmenkin" at Aug 26, 2005 02:14:19 PM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Bakul Shah , freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: sprintpcs treo 650 & blutooth & dialup networking X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 21:34:11 -0000 This is what I use : /etc/rc.local: /etc/rc.bluetooth start ubt0 /usr/sbin/sdpd /usr/local/bin/sdptool add DUN /usr/sbin/rfcomm_pppd -s -C 1 -l rfcomm-server /sbin/sysctl net.inet.ip.forwarding=1 /sbin/ipnat -C /sbin/ipnat -f /usr/local/etc/rfcomm_ppd.nat.conf /usr/local/etc/rfcomm_ppd.nat.conf: map wi0 10.0.0.2/32 -> 0/32 portmap tcp/udp auto map wi0 10.0.0.2/32 -> 0/32 /etc/ppp/ppp.conf: rfcomm-server: set timeout 0 set lqrperiod 60 set ifaddr 10.0.0.1 10.0.0.2 255.255.255.0 enable lqr accept lqr # Do not use PPP authentication. Assume that # Bluetooth connection was authenticated already disable pap deny pap disable chap deny chap # Added by Tuc enable dns And the sdptool is the newer copy of it. Tuc From owner-freebsd-bluetooth@FreeBSD.ORG Fri Aug 26 21:45:48 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 27D8216A420 for ; Fri, 26 Aug 2005 21:45:48 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32ABB43D55 for ; Fri, 26 Aug 2005 21:45:46 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so649032rne for ; Fri, 26 Aug 2005 14:45:46 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Wq8H8791C6brbeoFnCYwCA000+ZRXBmkAvnf7ZyKgzzz2ohMGU4ljKiQvKOthKS9IwjQqFBPRk4plgyrruc/NHW3tc19heLwo1xGWlLLU0LJcDaCw+h9Y0olVKNPLdWu2x0PxQLqXJ4HEWga/QegyBFE3UvlPkwbEJQdW3GZL18= Received: by 10.38.89.9 with SMTP id m9mr2038099rnb; Fri, 26 Aug 2005 14:45:46 -0700 (PDT) Received: by 10.38.208.41 with HTTP; Fri, 26 Aug 2005 14:45:46 -0700 (PDT) Message-ID: Date: Fri, 26 Aug 2005 14:45:46 -0700 From: Maksim Yevmenkin To: Tuc at T-B-O-H In-Reply-To: <200508262134.j7QLY11x083766@himinbjorg.tucs-beachin-obx-house.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200508262134.j7QLY11x083766@himinbjorg.tucs-beachin-obx-house.com> Cc: Bakul Shah , freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: sprintpcs treo 650 & blutooth & dialup networking X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 21:45:48 -0000 Hello, > This is what I use : >=20 > /etc/rc.local: >=20 > /etc/rc.bluetooth start ubt0 > /usr/sbin/sdpd > /usr/local/bin/sdptool add DUN > /usr/sbin/rfcomm_pppd -s -C 1 -l rfcomm-server > /sbin/sysctl net.inet.ip.forwarding=3D1 [...] well, that the other way around, i.e. you use your _pc_ as a gateway and treo is using your _pc_ internet connection. the question was (or at least the way i understood it) how to connect laptop to the internet using treo as wireless modem. i.e. _treo_ is a gateway and it uses 1xrtt connection on cdma network. here is the link to the article that discusses such setup with linux/pppd for both gsm (t-mobile) and cdma (verizon) providers. all examples are for pppd but can be easily adopted for ppp(8). http://www.linuxdevcenter.com/pub/a/linux/2004/02/05/linux_cellular.html thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Fri Aug 26 21:54:41 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F80A16A420 for ; Fri, 26 Aug 2005 21:54:41 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9767C43D48 for ; Fri, 26 Aug 2005 21:54:40 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so649941rne for ; Fri, 26 Aug 2005 14:54:40 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=VvwsWO370S610eyh30nsNxQ7u2r1o2Gx/UJiPlRVIXD2uly8Ofpt7dAzoSpU/p/1rdzR3SddPg77Jv0d1DjlcZT/KOgnmUYSJy3Ga/wQRAu+W8er7dubiBbKDvJBHrneVFAXI7H1vtbojn7iBGJmceorXst85SSIWziTtVD4PEY= Received: by 10.38.181.76 with SMTP id d76mr2029140rnf; Fri, 26 Aug 2005 14:54:40 -0700 (PDT) Received: by 10.38.208.41 with HTTP; Fri, 26 Aug 2005 14:54:40 -0700 (PDT) Message-ID: Date: Fri, 26 Aug 2005 14:54:40 -0700 From: Maksim Yevmenkin To: Bakul Shah In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200508262134.j7QLY11x083766@himinbjorg.tucs-beachin-obx-house.com> Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: sprintpcs treo 650 & blutooth & dialup networking X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 21:54:41 -0000 [...] > here is the link to the article that discusses such setup with > linux/pppd for both gsm (t-mobile) and cdma (verizon) providers. all > examples are for pppd but can be easily adopted for ppp(8). >=20 > http://www.linuxdevcenter.com/pub/a/linux/2004/02/05/linux_cellular.html and another link about bluetooth dun on treo 650 http://shadowmite.com/HowToDUN.html thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Fri Aug 26 21:57:14 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8E6E116A41F; Fri, 26 Aug 2005 21:57:14 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from gate.bitblocks.com (bitblocks.com [209.204.185.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 46A9543D53; Fri, 26 Aug 2005 21:57:14 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost [127.0.0.1]) by gate.bitblocks.com (8.13.4/8.13.1) with ESMTP id j7QLvDQi054574; Fri, 26 Aug 2005 14:57:13 -0700 (PDT) (envelope-from bakul@bitblocks.com) Message-Id: <200508262157.j7QLvDQi054574@gate.bitblocks.com> To: Maksim Yevmenkin In-reply-to: Your message of "Fri, 26 Aug 2005 14:14:19 PDT." Date: Fri, 26 Aug 2005 14:57:13 -0700 From: Bakul Shah Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: sprintpcs treo 650 & blutooth & dialup networking X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 21:57:14 -0000 > i'm not exactly sure how this work in your case (never had a cdma > phone :) you need to have some sort of wireless internet access plan > activated on your phone. you will probably use 1xRTT (instead of > gprs) on cdma network. you also need to make sure that wireless > internet access plan you have allows you to use your treo as wireless > modem. in other words you need to make sure that access point you are > connecting to talk ppp and ip and not wap/whatever. then you will need > to use something called "bluetooth dun profile" on treo (and > rfcomm_pppd(8) on pc). > > it seems earlier versions of treo shipped to sprint pcs have bluetooth > dun profile disabled. you need to check with sprint and make sure your > treo supports it - you may need firmware upgrade. I have the firmware upgrade that does DUN. # sdpcontrol -a mytreo search DUN Record Handle: 0x00010001 Service Class ID List: Dial-Up Networking (0x1103) Protocol Descriptor List: L2CAP (0x0100) RFCOMM (0x0003) Protocol specific parameter #1: u/int8/bool 1 Here is what I use to connect to the net via the treo rfcomm_pppd -a mytreo -c -C dun -d -l rfcomm-dialup [mytreo has an entry in /etc/bluetooth/hosts] My ppp.conf script is pretty much the same as yours (except that right now I log everything but timer events). From ppp.log I see that the phone does not respond to the initial AT with OK as it should. So it seems the treo never really sees any communicaiton. Thanks for your response! From owner-freebsd-bluetooth@FreeBSD.ORG Fri Aug 26 22:00:22 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C292016A41F; Fri, 26 Aug 2005 22:00:22 +0000 (GMT) (envelope-from ml@t-b-o-h.net) Received: from vjofn.tucs-beachin-obx-house.com (vjofn.tucs-beachin-obx-house.com [204.107.90.128]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A18143D45; Fri, 26 Aug 2005 22:00:22 +0000 (GMT) (envelope-from ml@t-b-o-h.net) Received: from himinbjorg.tucs-beachin-obx-house.com (ool-44c511d8.dyn.optonline.net [68.197.17.216]) (authenticated bits=128) by vjofn.tucs-beachin-obx-house.com (8.12.9/8.12.9) with ESMTP id j7QM0K7f058436; Fri, 26 Aug 2005 18:00:20 -0400 (EDT) Received: from himinbjorg.tucs-beachin-obx-house.com (localhost.tucs-beachin-obx-house.com [127.0.0.1]) by himinbjorg.tucs-beachin-obx-house.com (8.13.3/8.12.10) with ESMTP id j7QM0EFP084278; Fri, 26 Aug 2005 18:00:14 -0400 (EDT) (envelope-from ml@t-b-o-h.net) Received: (from tbohml@localhost) by himinbjorg.tucs-beachin-obx-house.com (8.13.3/8.13.1/Submit) id j7QM0Er1084277; Fri, 26 Aug 2005 18:00:14 -0400 (EDT) (envelope-from tbohml) From: Tuc at T-B-O-H Message-Id: <200508262200.j7QM0Er1084277@himinbjorg.tucs-beachin-obx-house.com> To: maksim.yevmenkin@gmail.com (Maksim Yevmenkin) Date: Fri, 26 Aug 2005 18:00:14 -0400 (EDT) In-Reply-To: from "Maksim Yevmenkin" at Aug 26, 2005 02:45:46 PM X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Bakul Shah , freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: sprintpcs treo 650 & blutooth & dialup networking X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 22:00:22 -0000 > well, that the other way around, i.e. you use your _pc_ as a gateway > and treo is using your _pc_ internet connection. the question was (or > at least the way i understood it) how to connect laptop to the > internet using treo as wireless modem. i.e. _treo_ is a gateway and it > uses 1xrtt connection on cdma network. > I realized it about 10 seconds after I sent it and hoped people would just think I was a crack pot and forget I ever posted. :} > > here is the link to the article that discusses such setup with > linux/pppd for both gsm (t-mobile) and cdma (verizon) providers. all > examples are for pppd but can be easily adopted for ppp(8). > > http://www.linuxdevcenter.com/pub/a/linux/2004/02/05/linux_cellular.html > Did the original poster have the hacked version of BTManager that allowed for DUN? Tuc From owner-freebsd-bluetooth@FreeBSD.ORG Fri Aug 26 22:17:18 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F4DC16A420 for ; Fri, 26 Aug 2005 22:17:18 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A6CD43D46 for ; Fri, 26 Aug 2005 22:17:17 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so652302rne for ; Fri, 26 Aug 2005 15:17:16 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=f8UPFWfoURZW9Ix1hJIadVWDUMPzOi4Fv9Mgk5wLsGCQGrp9tNqSzTLpCOsrzeqDK57kgyr75D6WLXo+teP7Zv1MIxgIlVHR+/AErHs0j++FngswQNZeHzx91pwT059/8WYf2PZ87eGO7NpKqr0M1Z4tfPGXnEe8O6ybYnn41PE= Received: by 10.38.101.11 with SMTP id y11mr593021rnb; Fri, 26 Aug 2005 15:17:16 -0700 (PDT) Received: by 10.38.208.41 with HTTP; Fri, 26 Aug 2005 15:17:16 -0700 (PDT) Message-ID: Date: Fri, 26 Aug 2005 15:17:16 -0700 From: Maksim Yevmenkin To: Bakul Shah In-Reply-To: <200508262157.j7QLvDQi054574@gate.bitblocks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200508262157.j7QLvDQi054574@gate.bitblocks.com> Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: sprintpcs treo 650 & blutooth & dialup networking X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Aug 2005 22:17:18 -0000 > > i'm not exactly sure how this work in your case (never had a cdma > > phone :) you need to have some sort of wireless internet access plan > > activated on your phone. you will probably use 1xRTT (instead of > > gprs) on cdma network. you also need to make sure that wireless > > internet access plan you have allows you to use your treo as wireless > > modem. in other words you need to make sure that access point you are > > connecting to talk ppp and ip and not wap/whatever. then you will need > > to use something called "bluetooth dun profile" on treo (and > > rfcomm_pppd(8) on pc). > > > > it seems earlier versions of treo shipped to sprint pcs have bluetooth > > dun profile disabled. you need to check with sprint and make sure your > > treo supports it - you may need firmware upgrade. >=20 > I have the firmware upgrade that does DUN. >=20 > # sdpcontrol -a mytreo search DUN >=20 > Record Handle: 0x00010001 > Service Class ID List: > Dial-Up Networking (0x1103) > Protocol Descriptor List: > L2CAP (0x0100) > RFCOMM (0x0003) > Protocol specific parameter #1: u/int8/bool 1 looks fine to me. > Here is what I use to connect to the net via the treo >=20 > rfcomm_pppd -a mytreo -c -C dun -d -l rfcomm-dialup >=20 > [mytreo has an entry in /etc/bluetooth/hosts] >=20 > My ppp.conf script is pretty much the same as yours (except > that right now I log everything but timer events). From > ppp.log I see that the phone does not respond to the initial > AT with OK as it should. So it seems the treo never > really sees any communicaiton. hmmm... strange... what freebsd version are you using (uname -a)? did you try to use rfcomm_sppd(1)? something like # rfcomm_sppd -a mytreo -c 1 -t /dev/ttyp1 then in another window=20 # cu -l /dev/ttyp1 and try to type "AT" to see if the phone returns "OK" back? note: you might need to try different tty number to find free one, i.e. /dev/ttyp2, /dev/ttyp3 etc. tty name must match in both commands. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Sat Aug 27 00:37:59 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A8F9E16A41F; Sat, 27 Aug 2005 00:37:59 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from gate.bitblocks.com (bitblocks.com [209.204.185.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6AC8F43D48; Sat, 27 Aug 2005 00:37:59 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost [127.0.0.1]) by gate.bitblocks.com (8.13.4/8.13.1) with ESMTP id j7R0bwWJ057828; Fri, 26 Aug 2005 17:37:59 -0700 (PDT) (envelope-from bakul@bitblocks.com) Message-Id: <200508270037.j7R0bwWJ057828@gate.bitblocks.com> To: Maksim Yevmenkin In-reply-to: Your message of "Fri, 26 Aug 2005 15:17:16 PDT." Date: Fri, 26 Aug 2005 17:37:58 -0700 From: Bakul Shah Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: sprintpcs treo 650 & blutooth & dialup networking X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2005 00:37:59 -0000 > hmmm... strange... what freebsd version are you using (uname -a)? did > you try to use rfcomm_sppd(1)? something like I want this working on my -current laptop but it freezes during all this and has to be rebooted so I am using on a 5.4-RELEASE machine. If it matters, I am using an IOgear bluetooth dongle. dmesg says: ubt0: Broadcom CCBT2035BDGP23-1, rev 1.10/0.01, addr 3 > # rfcomm_sppd -a mytreo -c 1 -t /dev/ttyp1 > > then in another window > > # cu -l /dev/ttyp1 > > and try to type "AT" to see if the phone returns "OK" back? Ah, this is a useful hint! Anyway, nothing comes back in cu. So I tried a few more things such as re-pairing and reconnecting with rfcomm_pppd. The first two times rfcomm_pppd couldn't connect but on the third try treo crashed and rebooted! And now it WORKS! So I guess I had to reboot treo.... But it sure would be nice to know what exactly went wrong.... Ah well. Thanks for your help! [To answer Tuc@T-B-O-H's question, sprintpcs treo650 firmware upgrade means there is no need to hack in DUN support] From owner-freebsd-bluetooth@FreeBSD.ORG Sat Aug 27 01:00:08 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C5FA116A420 for ; Sat, 27 Aug 2005 01:00:08 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id F2FBC43D49 for ; Sat, 27 Aug 2005 01:00:07 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so670053rne for ; Fri, 26 Aug 2005 18:00:07 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=AsiaZQjH1+s7CsnUS95AZ7oQ2FLBIzvEafIILz67PrBEB3UHi7d4PIzZCCHNPb7ubwdSxri/fmKFc6aRhq3MAfcjrfC7KjLYwTg0dg/lf0U3VWEu5yuBp+oL3blD2A4OdXh8GHI/ZYB1RUH0WNBeslixYnxIjvKIzluNX8QZjl8= Received: by 10.38.11.18 with SMTP id 18mr513339rnk; Fri, 26 Aug 2005 18:00:07 -0700 (PDT) Received: by 10.38.208.41 with HTTP; Fri, 26 Aug 2005 18:00:07 -0700 (PDT) Message-ID: Date: Fri, 26 Aug 2005 18:00:07 -0700 From: Maksim Yevmenkin To: Bakul Shah In-Reply-To: <200508270037.j7R0bwWJ057828@gate.bitblocks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200508270037.j7R0bwWJ057828@gate.bitblocks.com> Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: sprintpcs treo 650 & blutooth & dialup networking X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2005 01:00:08 -0000 > > hmmm... strange... what freebsd version are you using (uname -a)? did > > you try to use rfcomm_sppd(1)? something like >=20 > I want this working on my -current laptop but it freezes > during all this and has to be rebooted so I am using on a > 5.4-RELEASE machine. If it matters, I am using an IOgear > bluetooth dongle. dmesg says: >=20 > ubt0: Broadcom CCBT2035BDGP23-1, rev 1.10/0.01, addr 3 that looks fine. one thing, you probably want to apply the following path http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netgraph/bluetooth/socket/ng_= btsocket.c.diff?r1=3D1.7.2.1&r2=3D1.7.2.2&f=3Du this was fixed in RELENG_5 and later, but unfortunately it did not make it to the 5.4 release. this is just to make sure rfcomm sockets won't loose any data. > > # rfcomm_sppd -a mytreo -c 1 -t /dev/ttyp1 > > > > then in another window > > > > # cu -l /dev/ttyp1 > > > > and try to type "AT" to see if the phone returns "OK" back? >=20 > Ah, this is a useful hint! >=20 > Anyway, nothing comes back in cu. >=20 > So I tried a few more things such as re-pairing and > reconnecting with rfcomm_pppd. The first two times > rfcomm_pppd couldn't connect but on the third try treo > crashed and rebooted! And now it WORKS! aha! good old "reboot" fixes everything :) > So I guess I had to reboot treo.... But it sure would be > nice to know what exactly went wrong.... Ah well. if you have hcidump's from non-working sessions please send them to me. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Sat Aug 27 19:20:41 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C92816A41F; Sat, 27 Aug 2005 19:20:41 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from gate.bitblocks.com (bitblocks.com [209.204.185.216]) by mx1.FreeBSD.org (Postfix) with ESMTP id B91F143D55; Sat, 27 Aug 2005 19:20:40 +0000 (GMT) (envelope-from bakul@bitblocks.com) Received: from bitblocks.com (localhost [127.0.0.1]) by gate.bitblocks.com (8.13.4/8.13.1) with ESMTP id j7RJKdfQ062535; Sat, 27 Aug 2005 12:20:40 -0700 (PDT) (envelope-from bakul@bitblocks.com) Message-Id: <200508271920.j7RJKdfQ062535@gate.bitblocks.com> To: Maksim Yevmenkin In-reply-to: Your message of "Fri, 26 Aug 2005 18:00:07 PDT." Date: Sat, 27 Aug 2005 12:20:39 -0700 From: Bakul Shah Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: sprintpcs treo 650 & blutooth & dialup networking X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2005 19:20:41 -0000 > that looks fine. one thing, you probably want to apply the following path > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/netgraph/bluetooth/socket/ng_bt > socket.c.diff?r1=1.7.2.1&r2=1.7.2.2&f=u Thanks! > aha! good old "reboot" fixes everything :) The same thing happened with my -current laptop -- rebooting the treo fixed it. This time I knew what to do so I didn't experiment around and the laptop didn't freeze either! > > So I guess I had to reboot treo.... But it sure would be > > nice to know what exactly went wrong.... Ah well. > > if you have hcidump's from non-working sessions please send them to me. I don't have them anymore but will try to recreate this condition. Here are the steps needed to connect to the net via a sprintpcs treo 650: 1. Load the kernel module for bluetooth. kldload ng_ubt 2. plug in the usb bt dongle. 3. You will need the bluetooth rc file. cp usr/share/examples/netgraph/bluetooth/rc.bluetooth /etc/rc.bluetooth chmod +x /etc/rc.bluetooth 4. Now start it up. /etc/rc.bluetooth start ubt0 5. make sure your treo has the 1.12-SPCS firmware upgrade (you can see this on the phone info screen). 6. on the treo enable bluetooth & enable dialup networking 7. Now you need the treo's device addr. hccontrol -n ubt0hci inquiry It will spit out BD_ADDR for nearby devices. If you have multiple devices nearby, for each do hccontrol -n ubt0hci remote_name_request and match the returned name with the device name you gave the treo (as seen on the bluetooth screen). Enter this addr in /etc/bluetooth/hosts and give it a name such as mytreo 8. add a device entry for the device to /etc/bluetooth/hcsecd.conf device { bdaddr ; name "mytreo"; key nokey; pin ; } is your treo's addr in aa:bb:cc:dd:ee:ff notation. is a string for example "1234". 10. start hcsecd 11. on the treo enable pairing. On the bluetooth screen click on [setup devices], then on [trusted devices], then [add devices]. This will make treo search for nearby devices. When you see your computer's name in its list, select it and when it asks for the pin, type in the number you out in hcsecd.conf. If successful, the computer name will show up in its trusted device list. 12. Add an rfcomm-dialup section to /etc/ppp/ppp.conf: rfcomm-dialup: # This is IMPORTANT option enable force-scripts # You might want to change these set authname set authkey set phone "#777" # You might want to adjust dial string as well set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \"\" AT OK-AT-OK ATE1Q0 OK \\dATD\\T TIMEOUT 40 CONNECT" set login set timeout 60 enable dns resolv rewrite set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR 13. Soft Reset the treo. 14. Start the ppp connection rfcomm_pppd -a mytreo -c -C 1 -d -l rfcomm-dialup 15. ifconfig tun0 should show an ip address if everything worked. Debugging hints: - read the bluetooth section in the handbook - hccontrol may fail to connect. if so retry! - /var/log/ppp.log can tell you what went wrong. You may have to turn on all logging and then selectively turn things off in /etc/ppp/ppp.conf - make sure your treo is within 10 ft while you are debugging. Meta-comment: We sorely need a unified way of connecting to the net and dealing with computer mobility. An an example, my laptop connects via ethernet, wifi, cell, dialup. I do this at home (kitchen, office, backyard), at work and while travelling. I prefer to never reboot so manually I do something like /etc/rc.d/netif stop /etc/rc.d/netif start but rfcomm_pppd doesn't fit in this scheme as bunch of steps are not automated. Ideally the machine finds the most preferred interface and connects to the net via it. When it goes away, it will try the next preferred one. If a more preferred interface shows up, the net connection is seamlessly switched to it. If I switch from home to work environment, my home connections remain valid through use of a VPN. If I switch from work to home my work connections remail valid through a VPN. Etc. I suspend the machine in one environment and resume in another, it still works as one would expect. What is needed is a `netplumber' that will always find a path to the net regardless of where your machine is physically located and tries to keep all open connections alive. From owner-freebsd-bluetooth@FreeBSD.ORG Sat Aug 27 20:11:10 2005 Return-Path: X-Original-To: freebsd-bluetooth@freebsd.org Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 215CD16A420 for ; Sat, 27 Aug 2005 20:11:10 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51DC543D48 for ; Sat, 27 Aug 2005 20:11:09 +0000 (GMT) (envelope-from maksim.yevmenkin@gmail.com) Received: by rproxy.gmail.com with SMTP id i8so773983rne for ; Sat, 27 Aug 2005 13:11:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=A2xtAfUw4DxgStisGmeQpYfRt+oWufZWPwt5diwdwmd5sAiR6cDJ6JTQtdFdwMP088ZEGANfabdfUy1TuiGcnoCDwlMhX4u1quOqtqmPiXvIfQ1gW1CX0K6rswmiOAIdKjnCv2bjNb3gHuYg0u8gqm96rbQFCpCzthnWFzxVOCY= Received: by 10.38.209.36 with SMTP id h36mr18181rng; Sat, 27 Aug 2005 13:11:08 -0700 (PDT) Received: by 10.38.208.41 with HTTP; Sat, 27 Aug 2005 13:11:08 -0700 (PDT) Message-ID: Date: Sat, 27 Aug 2005 13:11:08 -0700 From: Maksim Yevmenkin To: Bakul Shah In-Reply-To: <200508271920.j7RJKdfQ062535@gate.bitblocks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200508271920.j7RJKdfQ062535@gate.bitblocks.com> Cc: freebsd-bluetooth@freebsd.org, freebsd-mobile@freebsd.org Subject: Re: sprintpcs treo 650 & blutooth & dialup networking X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Aug 2005 20:11:10 -0000 Hello, > > aha! good old "reboot" fixes everything :) >=20 > The same thing happened with my -current laptop -- rebooting > the treo fixed it. This time I knew what to do so I didn't > experiment around and the laptop didn't freeze either! could you please try to re-create freeze condition and tell me exact steps? it sounds like problem to me. > > > So I guess I had to reboot treo.... But it sure would be > > > nice to know what exactly went wrong.... Ah well. > > > > if you have hcidump's from non-working sessions please send them to me. >=20 > I don't have them anymore but will try to recreate this condition. thanks! [...] > Meta-comment: > We sorely need a unified way of connecting to the net and > dealing with computer mobility. An an example, my laptop > connects via ethernet, wifi, cell, dialup. I do this at home > (kitchen, office, backyard), at work and while travelling. I > prefer to never reboot so manually I do something like > /etc/rc.d/netif stop > /etc/rc.d/netif start > but rfcomm_pppd doesn't fit in this scheme as bunch of > steps are not automated. yes, bluetooth was never integrated into rc scripts. someone promised to do the work, but then disappear :( btw, if you only need to use rfcomm_pppd(8) in client mode and you never intend to provide LAN service to bluetooth clients then you could just use ppp(8) + rfcomm_sppd(1). the ppp configuration is pretty much the same. all you need to do is to add to your "rfcomm-dialup" section set device "!/usr/bin/rfcomm_sppd -a mytreo -c 1" this way ppp(8) will call rfcomm_sppd(1) to establish bluetooth rfcomm connection and will use it to talk to make the call etc. in this scenario you simply start ppp as # ppp rfcomm-dialup and it should work. ppp(8) is integrated into rc scripts so it should be more user friendly. > Ideally the machine finds the most preferred interface and > connects to the net via it. When it goes away, it will try > the next preferred one. If a more preferred interface shows > up, the net connection is seamlessly switched to it. If I > switch from home to work environment, my home connections > remain valid through use of a VPN. If I switch from work to > home my work connections remail valid through a VPN. Etc. > I suspend the machine in one environment and resume in another, > it still works as one would expect. >=20 > What is needed is a `netplumber' that will always find a path > to the net regardless of where your machine is physically > located and tries to keep all open connections alive. i doubt it will work in real life. switching connections on the fly will most likely changeyour host ip/routes/etc. which means all existing (at the time of switch) network connections will be terminated. thanks, max