1 |
Simon wrote: |
2 |
> Hi there, |
3 |
> i've recently acquired a pda (htc tytn) and a good data plan. Right |
4 |
> now, i can access the internet from my computer by setting up the |
5 |
> phone as a wifi ad-hoc station, but this takes so much battery, it's |
6 |
> not the optimal setup. |
7 |
> |
8 |
> What i would need is to use the usb cable to connect to the cell |
9 |
> modem. But I'm a bit lost as to what to do... the documents i found |
10 |
> on this don't seem to talk about the same things (there seems to be |
11 |
> many ways of doing this...?) and many are out of date... |
12 |
> |
13 |
> I was wondering if any of you could give me a general idea of what i |
14 |
> need (specially if you could clarify whats the best vocabulary to use |
15 |
> in google) or confirm what I found so far... |
16 |
> |
17 |
> From what i understand, I believe i will need some kind of kernel |
18 |
> module (device driver) which will turn the usb device into a |
19 |
> networking interface. Then I think i would setup some kind of |
20 |
> connection normally (is it PPP? or something else?). The cellphone |
21 |
> would also need to be setup to share its data connection to usb (but |
22 |
> this seems quite simple... the linux part is the problem). |
23 |
> |
24 |
> |
25 |
You do NOT need PPP, but you do need a fairly recent kernel (>= 2.6.27 |
26 |
at least, not sure of the details). You need at least |
27 |
CONFIG_USB_RNDIS_WLAN as m or y. With udev and 'm' things work mostly |
28 |
automatically on the linux side. On the phone you enable advanced |
29 |
networking (or else you will see the phone as ttyUSB? and you will need |
30 |
ppp). Then you plug in and run "dmesg -c" until things quiet down. You |
31 |
should see a new eth? interface. Enable internet sharing on the phone, |
32 |
and you should see in "dmesg -c" that your new ethernet interface |
33 |
disappears and reappears. If it does not reappear your kernel is too |
34 |
old. On my gentoo box i can now start the interface like a regular |
35 |
ethernet interface. I have a debian box with a kernel from unstable |
36 |
where dhcp fails on the phone 'ehternet' device, so I have to do "ip |
37 |
addr add" and "ip route add" manually to get the network going (somehow |
38 |
the ifup command on debian prints the assigned ip and the gateway ip, |
39 |
gut does not configure the device properly). Do some googling to fill in |
40 |
the details, I'm not using this regularly. |