From owner-freebsd-bluetooth@FreeBSD.ORG Thu Dec 27 22:22:18 2007 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F21A316A417 for ; Thu, 27 Dec 2007 22:22:18 +0000 (UTC) (envelope-from frederic.praca@freebsd-fr.org) Received: from postfix2-g20.free.fr (postfix2-g20.free.fr [212.27.60.43]) by mx1.freebsd.org (Postfix) with ESMTP id BE25113C461 for ; Thu, 27 Dec 2007 22:22:18 +0000 (UTC) (envelope-from frederic.praca@freebsd-fr.org) Received: from smtp8-g19.free.fr (smtp8-g19.free.fr [212.27.42.65]) by postfix2-g20.free.fr (Postfix) with ESMTP id 4B3C6219DC63 for ; Thu, 27 Dec 2007 20:54:42 +0100 (CET) Received: from smtp8-g19.free.fr (localhost [127.0.0.1]) by smtp8-g19.free.fr (Postfix) with ESMTP id 4FD9617F51D for ; Thu, 27 Dec 2007 22:55:25 +0100 (CET) Received: from localhost (coruscant.dnsalias.net [88.169.125.217]) by smtp8-g19.free.fr (Postfix) with ESMTP id 1A0E517F53A for ; Thu, 27 Dec 2007 22:55:24 +0100 (CET) Date: Thu, 27 Dec 2007 22:58:45 +0100 From: Frederic Praca To: freebsd-bluetooth@freebsd.org Message-ID: <20071227225845.6c49ec38@localhost> X-Mailer: Claws Mail 2.10.0 (GTK+ 2.10.14; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: DUN server on Freebsd 6 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, 27 Dec 2007 22:22:19 -0000 Hello, I want to do what described here (http://www.fenrus.org/tomtom/ ) with my FreeBSD station. I managed to change my USB dongle bluetooth class type into GSM class type but rfcomm-pppd declares itself to sdpd as LAN Access Using PPP not as DUN. The problem is that Tomtom just look for a GSM bluetooth device with DUN capability.=20 Anybody has any idea on this problem ? thanks in advance Fred --=20 Le g=E9nie consiste =E0 voir ce que tout le monde a vu et =E0 penser ce que= =20 personne n'a pens=E9. -+- Albert Einstein -+- From owner-freebsd-bluetooth@FreeBSD.ORG Fri Dec 28 00:38:59 2007 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA8E516A481 for ; Fri, 28 Dec 2007 00:38:59 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id 8878F13C4D5 for ; Fri, 28 Dec 2007 00:38:59 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: by fg-out-1718.google.com with SMTP id 16so2226670fgg.35 for ; Thu, 27 Dec 2007 16:38:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=a/UqWrnp+K4dwEo4hMnpoWl+HguqKoSifnxNTad3HYM=; b=aqOwZBIb1ntRo5E3JxMEt5lCdHVzUjQQMTTmH2r79IJR1XMQ5XkKos8UTg3rn/IFLeSappGr4F3bL5Ars1De4Bcfw8U6usgjxx64KxJMrxWvO6Tj0+hUUeOuJ3zNLAO8+RzFkEuJ8aDwqHdmcMJQHoJgT8ERqEk5cH33sYvOl4Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=rA0Rh2tW80HG4+g1oZfmtkSFbbptZ3b1gzqy4hcFcpARiOjAQw8cUbNMeG3usVjK3C3gQLBRjmJF4ebsTUUIoDU0Mi85PQevEkoIDPd0FKoa9hXyZpip11GE2AD+U686Xzn8wMgwXR8azTbHncM9nP+XKI/7d/HX7p/3jExp+T4= Received: by 10.86.4.2 with SMTP id 2mr8318901fgd.77.1198800847728; Thu, 27 Dec 2007 16:14:07 -0800 (PST) Received: by 10.86.80.8 with HTTP; Thu, 27 Dec 2007 16:14:07 -0800 (PST) Message-ID: Date: Thu, 27 Dec 2007 16:14:07 -0800 From: "Maksim Yevmenkin" To: "Frederic Praca" In-Reply-To: <20071227225845.6c49ec38@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20071227225845.6c49ec38@localhost> Cc: freebsd-bluetooth@freebsd.org Subject: Re: DUN server on Freebsd 6 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, 28 Dec 2007 00:39:00 -0000 hello, > I want to do what described here (http://www.fenrus.org/tomtom/ ) with > my FreeBSD station. I managed to change my USB dongle bluetooth class > type into GSM class type but rfcomm-pppd declares itself to sdpd as LAN > Access Using PPP not as DUN. The problem is that Tomtom just look for a > GSM bluetooth device with DUN capability. > > Anybody has any idea on this problem ? the problem is that tomtom assumes that there is a modem on the other end of bluetooth link. clearly this feature was designed to work with cell phones. basically, cell phone acts as a bluetooth modem in this case. in the article you have referenced, the author simply uses chat script to trick tomtom into believing that it talks to the modem. rfcomm_pppd(8) only registers LAN service (and SP for weird nokia mrouter) but it does not know anything about DUN, because it was never supposed to do it. in any case, if you have coding skills, it should be trivial to teach rfcomm_pppd(8) to register DUN service as well. just provide another option to rfcomm_pppd(8) and use SP service as an example. to fake modem you will need to use ppp(8) chat script and 'enable force-scripts' option. thanks, max From owner-freebsd-bluetooth@FreeBSD.ORG Fri Dec 28 12:05:34 2007 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC46816A418 for ; Fri, 28 Dec 2007 12:05:34 +0000 (UTC) (envelope-from frederic.praca@freebsd-fr.org) Received: from smtp8-g19.free.fr (smtp8-g19.free.fr [212.27.42.65]) by mx1.freebsd.org (Postfix) with ESMTP id 7E7B913C455 for ; Fri, 28 Dec 2007 12:05:34 +0000 (UTC) (envelope-from frederic.praca@freebsd-fr.org) Received: from smtp8-g19.free.fr (localhost [127.0.0.1]) by smtp8-g19.free.fr (Postfix) with ESMTP id 1CDD117F572; Fri, 28 Dec 2007 13:05:33 +0100 (CET) Received: from imp6-g19.free.fr (imp6-g19.free.fr [212.27.42.6]) by smtp8-g19.free.fr (Postfix) with ESMTP id 0EC5017F566; Fri, 28 Dec 2007 13:05:32 +0100 (CET) Received: by imp6-g19.free.fr (Postfix, from userid 33) id C932D438F; Fri, 28 Dec 2007 13:05:32 +0100 (CET) Received: from coruscant.dnsalias.net (coruscant.dnsalias.net [88.169.125.217]) by imp.free.fr (IMP) with HTTP for ; Fri, 28 Dec 2007 13:05:32 +0100 Message-ID: <1198843532.4774e68c9a6cb@imp.free.fr> Date: Fri, 28 Dec 2007 13:05:32 +0100 From: =?iso-8859-1?b?RnLpZOlyaWM=?= PRACA To: Maksim Yevmenkin References: <20071227225845.6c49ec38@localhost> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.8 X-Originating-IP: 88.169.125.217 Cc: freebsd-bluetooth@freebsd.org Subject: Re: DUN server on Freebsd 6 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, 28 Dec 2007 12:05:35 -0000 Selon Maksim Yevmenkin : > hello, > > > I want to do what described here (http://www.fenrus.org/tomtom/ ) with > > my FreeBSD station. I managed to change my USB dongle bluetooth class > > type into GSM class type but rfcomm-pppd declares itself to sdpd as LAN > > Access Using PPP not as DUN. The problem is that Tomtom just look for a > > GSM bluetooth device with DUN capability. > > > > Anybody has any idea on this problem ? > > the problem is that tomtom assumes that there is a modem on the other > end of bluetooth link. clearly this feature was designed to work with > cell phones. basically, cell phone acts as a bluetooth modem in this > case. in the article you have referenced, the author simply uses chat > script to trick tomtom into believing that it talks to the modem. Ok, that's what I understood. > rfcomm_pppd(8) only registers LAN service (and SP for weird nokia > mrouter) but it does not know anything about DUN, because it was never > supposed to do it. in any case, if you have coding skills, it should Well, I should have as it's my job ;-) > be trivial to teach rfcomm_pppd(8) to register DUN service as well. I'll give it a try and maybe provide a patch. > just provide another option to rfcomm_pppd(8) and use SP service as an > example. to fake modem you will need to use ppp(8) chat script and > 'enable force-scripts' option. Thanks a lot for your quick answer. I still have another option which is to patch the Tomtom itself :D Seems to be less trivial as I have to go deep in the Tomtom linux code ;-) > thanks, You're welcome > max Fred