Linux.com

Feature: Linux

GPRS and Linux get mobile access on track

By on October 10, 2003 (8:00:00 AM)

Share    Print    Comments   

- by David "cdlu" Graham -
In May, I acquired a GPRS PC Card with an unlimited data plan from Canadian cellular service provider <SLASH HREF="//linux.com/relocate.pl?id=d018b32333fdca3d8b317dea92c6d5e1" ID="a4e2a3184a203c392e667e5525bb961b" TITLE="http://www.fido.ca/portal/bizhome/homepage.jsp?lang=en" TYPE="LINK">Fido</SLASH>. 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 0 to 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.

Share    Print    Comments   

Comments

on GPRS and Linux get mobile access on track

Note: Comments are owned by the poster. We are not responsible for their content.

Back to the BBS days?

Posted by: peterdaly on October 10, 2003 07:38 PM
Is this a modern version of FidoNet?<nobr> <wbr></nobr>:-)

-Pete

#

Re:Back to the BBS days?

Posted by: Joe Barr on October 11, 2003 12:28 AM

FidoNet? I think I was 1:382/46, but it's been too long to remember for sure.

#

Which GPRS card?

Posted by: Anonymous Coward on October 10, 2003 10:32 PM
Was this the Merlin G100 card?

#

Re:Which GPRS card?

Posted by: David Graham on October 10, 2003 10:43 PM
Yup, that's the one. You can use unlocked GPRS cards with them as well from what I understand. When I bought this card, unlocked cards were far more expensive than locked cards, so just buying the one they provided the - Merlin G100 - made the most sense.

#

most gprs enabled phones..

Posted by: Anonymous Coward on October 11, 2003 10:53 PM
act similarly(wether over ir or direct cable, or bt..) so getting them to work on linux or mac is usually possible without too much work.

#

Thank you!

Posted by: Anonymous Coward on October 12, 2003 01:12 AM
I subscribe to Fido for cellphone access but have been dreaming about this service for the longest time! Thanks to this article, I'm now seriously going to look at this service. I've already emailed Fido regarding Linux support (hey, the more questions, the better chances it'll be officially supported), and will be changing my subscription soon.

Thank you!

#

GPRS howto

Posted by: Anonymous Coward on October 13, 2003 04:39 PM
See http://turtiainen.dna.fi/GPRS-HOWTO

However, this just seem to cover hooking GPRS with
some phone models with data cable. But the basic funny idea that a GPRS device looks like a pocket-sized ISP to which you connect with PPP is explained well, plus discussion of suitable network parameters (there is a lot of latency in GPRS).

#

GPRS and Linux get mobile access on track

Posted by: Anonymous [ip: 202.125.143.66] on January 12, 2008 07:28 PM

GPRS and Linux get mobile access on track

Posted by: Anonymous [ip: 202.125.143.66] on January 12, 2008 07:29 PM
Yup, that's the one. You can use unlocked GPRS cards with them as well from what I understand. When I bought this card, unlocked cards were far more expensive than locked cards, so just buying the one they provided the - Merlin G100 - made the most sense.

#

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



 
Tableless layout Validate XHTML 1.0 Strict Validate CSS Powered by Xaraya