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