Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Feb 2009 09:30:39 +0200
From:      Alexander Motin <mav@mavhome.dp.ua>
To:        Jack Twilley <jmt@twilley.org>
Cc:        Vincent Hoffman <vince@unsane.co.uk>, freebsd-mobile@freebsd.org
Subject:   Re: Tethering with HTC Touch Pro -- how?
Message-ID:  <4993D01F.5070507@mavhome.dp.ua>
In-Reply-To: <4993CF8B.2030103@mavhome.dp.ua>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

-- 
Alexander Motin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4993D01F.5070507>