From owner-freebsd-mobile@FreeBSD.ORG Thu Feb 12 07:28:13 2009 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E26021065686 for ; Thu, 12 Feb 2009 07:28:13 +0000 (UTC) (envelope-from mav@mavhome.dp.ua) Received: from cmail.optima.ua (cmail.optima.ua [195.248.191.121]) by mx1.freebsd.org (Postfix) with ESMTP id 660578FC13 for ; Thu, 12 Feb 2009 07:28:12 +0000 (UTC) (envelope-from mav@mavhome.dp.ua) X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona-2.1.0 Received: from [212.86.226.226] (account mav@alkar.net HELO mavbook.mavhome.dp.ua) by cmail.optima.ua (CommuniGate Pro SMTP 5.2.9) with ESMTPSA id 234363143; Thu, 12 Feb 2009 09:28:12 +0200 Message-ID: <4993CF8B.2030103@mavhome.dp.ua> Date: Thu, 12 Feb 2009 09:28:11 +0200 From: Alexander Motin User-Agent: Thunderbird 2.0.0.19 (X11/20090118) MIME-Version: 1.0 To: Jack Twilley References: <1233145383.00067348.1233133205@10.7.7.3> <1233231789.00067817.1233220802@10.7.7.3> <1233761002.00070820.1233750002@10.7.7.3> <1233761005.00070824.1233750602@10.7.7.3> <1234419790.00074006.1234407602@10.7.7.3> In-Reply-To: <1234419790.00074006.1234407602@10.7.7.3> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Vincent Hoffman , freebsd-mobile@freebsd.org Subject: Re: Tethering with HTC Touch Pro -- how? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Feb 2009 07:28:14 -0000 Jack Twilley wrote: > Alexander Motin wrote: >> Vincent Hoffman wrote: >>> On 29/1/09 09:13, Alexander Motin wrote: >>>> Jack Twilley wrote: >>>> >>>>> I have enabled internet connection sharing on my HTC Touch Pro by >>>>> modifying the registry. The phone works for tethering on my Vista box >>>>> as expected. How do I make it work on FreeBSD? >>>>> >>>> I am successfully using my Qtek S200 with WM6.1 as plain Bluetooth >>>> GPRS/EDGE modem. BT PAN profile could be better for internet sharing; I >>>> haven't seen it implemented, but there were some activity. Sharing via >>>> USB cable requires RNDIS support, which is also not implemented, AFAIK >>>> due to buggy and undocumented protocol. >>>> >>> Just as a quick appendium, bluetooth PAN support got added to -CURRENT a >>> couple of days ago. >>> I'll try and dig out my old HTC Hermes and test it, will report back if >>> I do. >> >> I have even tested it already and replied on freebsd-bluetooth@. It >> works fine with my Qtek S200 with WM6.1. > > I went to the freebsd-bluetooth mailing list archives and saw that it > worked, but nobody's actually posted anything on how to do it, starting > from a system with a recent -CURRENT and a phone that can do the right > thing. > > I was able to use the FreeBSD Handbook chapter on Bluetooth to do stuff > like successfully pair my phone and my laptop. I was able to search for > nap and opush with sdpcontrol and see a screen or so each of output but > I didn't quite see what to do next. The chapter talks about searching > and browsing services, and I can run the commands and get output, but it > doesn't quite make enough sense for me to move forward. If you can > document what you did to make it work, what commands and configuration > files and all, that'd be really really helpful to those of us who aren't > as familiar with Bluetooth as you guys and just want to tether our laptops. I have written such script for myself: #!/bin/sh trap "/usr/bin/killall btpand" SIGINT ifconfig tap10 create && \ btpand -d acer -a s200 -s NAP -i tap10 && \ sleep 1 && \ dhclient tap10 && \ echo Running... && \ while pgrep btpand >/dev/null do sleep 2 done && printf 'Terminated\a' echo ifconfig tap10 destroy acer is the my system name and s200 is my phone name, both addresses added to /etc/bluetooth/hosts. If devices are peered, no other configuration required. The only thing needed in my case is to l2ping phone several times before connecting, to wake it's BT up. -- Alexander Motin