Tethering with HTC Touch Pro -- how?

Jack Twilley jmt at twilley.org
Fri Feb 13 14:01:56 PST 2009


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 at . 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.


More information about the freebsd-mobile mailing list