header image
The world according to David Graham

Topics

acva bili chpc columns committee conferences elections environment essays ethi faae foreign foss guelph hansard highways history indu internet leadership legal military money musings newsletter oggo pacp parlchmbr parlcmte politics presentations proc qp radio reform regs rnnr satire secu smem statements tran transit tributes tv unity

Recent entries

  1. Trump will win in 2020 (and keep an eye on 2024)
  2. A podcast with Michael Geist on technology and politics
  3. Next steps
  4. On what electoral reform reforms
  5. 2019 Fall campaign newsletter / infolettre campagne d'automne 2019
  6. 2019 Summer newsletter / infolettre été 2019
  7. 2019-07-15 SECU 171
  8. 2019-06-20 RNNR 140
  9. 2019-06-17 14:14 House intervention / intervention en chambre
  10. 2019-06-17 SECU 169
  11. 2019-06-13 PROC 162
  12. 2019-06-10 SECU 167
  13. 2019-06-06 PROC 160
  14. 2019-06-06 INDU 167
  15. 2019-06-05 23:27 House intervention / intervention en chambre
  16. 2019-06-05 15:11 House intervention / intervention en chambre
  17. 2019-06-04 INDU 166
  18. 2019-06-03 SECU 166
  19. 2019 June newsletter / infolettre juin 2019
  20. 2019-05-30 RNNR 137
  21. 2019-05-30 PROC 158
  22. 2019-05-30 INDU 165
  23. 2019-05-29 SECU 165
  24. 2019-05-29 ETHI 155
  25. 2019-05-28 ETHI 154
  26. 2019-05-28 ETHI 153
  27. 2019-05-27 ETHI 151
  28. 2019-05-27 SECU 164
  29. 2019-05-17 10:59 House intervention / intervention en chambre
  30. 2019-05-16 ETHI 150
  31. older entries...

GPRS and Linux get mobile access on track

In May, I acquired a GPRS PC Card with an unlimited data plan from Canadian cellular service provider. I asked the Fido clerk whether Linux was supported on Fido's GPRS service. He wasn't familiar with what a Linux was, but he wished me luck. At home I did a Google search for Fido service and Linux and did not turn up any useful information. Was I going to be stuck using Windows for mobile Internet connectivity?

With the card came a Windows installation CD and strict instructions to install it only once, lest I wipe out the SIM card, a problem that could not be remedied over the phone. I performed the initial installation of the GPRS card in Windows on my laptop, which initialised the SIM card. I was fairly sure I would not be able to do that in Linux. My next step was customer service.

I have been using Fido for my regular cell phone service for about a year and a half, and have always been impressed with their telephone support, even if their network coverage area is pretty lousy. Knowing that even if they didn't know what planet I was from, they would be friendly, I called their tech support number from my cell phone, and asked for help running my GPRS card in Linux. Very quickly I was turned over to an actual technician who was clearly unused to dealing with customers, but who was both helpful and instrumental in my success in using GPRS from Linux.

It turns out that the GPRS PC Card is little more than a glorified modem. The technician gave me the numbers I needed to log in. Using pppconfig I told my Debian GNU/Linux installation that the dial­up number is '*99#' and that the login and password are both 'fido.' Authentication is actually done with the SIM card and is handled by the hardware ­­ the operating system need not be involved.

This was wonderful. It worked flawlessly. I connected my laptop to the Internet and used ssh to log in to my home computer.

All of a sudden my connection dropped.

A quick check of my system logs showed that the PPP daemon had given up on the connection. The GPRS service did not respond to repeated LCP ping requests, so the PPP daemon assumed that the service had died and it disconnected.

I added the line lcp-echo-interval 0to my /etc/ppp/peers/fido file and reconnected. That finally gave me uninterrupted mobile Internet access.

That was the good news. The bad news was the connection speed. GPRS, which is supposed to run at about 56Kbps, ran at a real rate of about half that, with a 500ms minimum latency. However, since I was using console tools such as lynx and ssh, this was more than adequate to provide NewsForge readers with NewsVac stories from wherever I happened to be.

So where was I? Why did I want this silly service?

Well, I am a railfan. I chase freight trains back and forth across southern Ontario. I have a Web site dedicated to it, and since February I have taken more than 5,000 photos and hundreds of videos of trains, train cars, train tracks, and train paraphernalia.

When I'm out at the tracks, I still need to come to work. I need to log in to NewsForge, sort through submissions, look for relevant news, and keep readers up­to­date with the latest developments in Linux and Open Source. With this device, my colleagues can't tell whether I'm at home or at the rail yard.

Since acquiring my wireless Internet service in May, I have found new and helpful uses for it. With GPRS running and a Wi­Fi PC Card in the second slot of my laptop I can provide wireless Internet access to my friends when we go railfanning together. I have a 1,200­watt inverter in the car with enough power to keep several laptops (and maybe a microwave and fridge) going through a whole day. We can all get on the Internet together, with network address translation provided by my Linux laptop.

GPRS, Linux, and my big power inverter came in handy in August when Ontario, Ohio, New York, and several other US states were hit with a massive power blackout. While my neighbours told ghost stories by candlelight in their backyards, I ran an extension cord from my car to my back porch, set up a TV, DVD player, my laptop, and some lights, and was on line over GPRS before my UPS went on the desktop. As my neighbourhood went hours without electricity, I watched movies, cooked, and checked email over GPRS.

Most recently, I have connected the cheap GPS I use for navigation assistance to the serial port of my laptop. I run a small script that takes my current speed, heading, and location and sends them to a Web page where the information is interpreted into a Mapquest map showing where I am, scaled according to my speed. Without the use of an expensive map­filled GPS computer, this GPS+GPRS combination gives me a simple navigation system, where I can pull up a page showing where I am and look at a map to see where I have to go.

If my car breaks down, I could use the system to tell a tow truck dispatcher exactly where I am even when I don't have any real idea myself. That could be helpful someday if ever my car stalls out precariously close to the tracks.

Originally posted on Linux.com 2003-10-10. Reposted here 2019-11-21.

Posted at 14:56 on October 10, 2003

This entry has been archived. Comments can no longer be posted.

Microsoft makes RMS its friend | foss | Environment Canada uses Linux to track hurricanes, predict, and analyse weather

(RSS) Website generating code and content © 2001-2020 David Graham <david@davidgraham.ca>, unless otherwise noted. All rights reserved. Comments are © their respective authors.