summaryrefslogtreecommitdiff
path: root/posts/g1-tomtom-tether.mdwn
blob: f75dbf2ffbf3a83357ed57ad30b77f1aa1b9bd27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[[!meta title="Tethering a Tomtom to a G1…"]]
[[!meta author="Daniel Silverstone"]]
[[!meta date="2009-03-10 18:16:09 +0000"]]
[[!tag tech]]

Before any of you get your hopes up. **NO** I have **NOT** managed it
yet.

However, a bit of fiddling today did get me as far as the tomtom
establishing a PPP connection. Unfortunately it subsequently did
chuff-all with the link, not even a SYN packet afaict.

Here’s roughly what I did:

<ol>
<li>
Wrote a skanky shell script to pretend to be a modem, enough to persuade
the tomtom it had dialled:
<a href="http://users.pepperfish.net/dsilvers/g1-and-tomtom/call-tomtom-script">call-tomtom.sh</a>.
Note heinous use of `tr` in order to get the `r` which the tomtom
sends, to be a `n` which the busybox shell expects.

</li>
<li>
Wrote a teeny script to automate starting dund because I am slack and
can’t be bothered to type too much:
<a href="http://users.pepperfish.net/dsilvers/g1-and-tomtom/dund-script">dund.sh</a>

</li>
<li>
Watched as the PPPD connected and logged such:
<a href="http://users.pepperfish.net/dsilvers/g1-and-tomtom/pppd-log">extract
of log</a>

</li>
<li>
I even straced the pppd (once it had launched the script) and got:
<a href="http://users.pepperfish.net/dsilvers/g1-and-tomtom/pppd-strace">this
strace output</a>.

</li>
<li>
Then I cried because no packets were going from the Tomtom to the G1 or
vice-versa, and nothing useful happened. Eventually I pressed cancel on
the tomtom which caused the LCP packet for disconnection by “User
Request” — Yeesh!

</li>
</ol>
So, if anyone wants to pick up where I have left off, and have a go some
more, then please do tell me if you manage to get anywhere more useful.