From owner-freebsd-mobile@FreeBSD.ORG Fri Feb 13 22:01:55 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 CAB65106564A for ; Fri, 13 Feb 2009 22:01:55 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from alpha.twilley.org (alpha.twilley.org [204.152.189.135]) by mx1.freebsd.org (Postfix) with ESMTP id A6E088FC0C for ; Fri, 13 Feb 2009 22:01:55 +0000 (UTC) (envelope-from jmt@twilley.org) Received: from [10.103.8.209] (205.158.109.36.ptr.us.xo.net [205.158.109.36]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by alpha.twilley.org (Postfix) with ESMTPSA id 80C16233858; Fri, 13 Feb 2009 14:01:54 -0800 (PST) Message-ID: <4995EDCC.1090207@twilley.org> Date: Fri, 13 Feb 2009 14:01:48 -0800 From: Jack Twilley User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Alexander Motin 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> <4993CF8B.2030103@mavhome.dp.ua> <4993D01F.5070507@mavhome.dp.ua> In-Reply-To: <4993D01F.5070507@mavhome.dp.ua> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-mobile@freebsd.org, Vincent Hoffman 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: Fri, 13 Feb 2009 22:01:56 -0000 Alexander Motin wrote: > Alexander Motin wrote: >> 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. > > Surely you should also run "Internet sharing" application on phone. > Your script was great. I was able to get a connection, and DHCP configured the interface. I was able to ping hosts on the Internet and resolve names, but I couldn't ssh to my colo box nor was I able to browse the web or chat via IM. Still some work to be done but I can't blame FreeBSD. :-) Thank you again for all your help! Jack.