I've got a Telit GM862-GPS module, which is a GPRS modem with a serial interface and uses the standard Hayes AT command set (with some extensions). What I'd like to do is to be able to connect this up to a Linux device so that existing software (such as wget, ftp etc) can connect to the internet through it. In my limited Linux experience, I would imagine that this would require the modem to be configured as a regular network interface device, but I could be wrong.

Is this something that is supported in the Linux kernel/are there existing drivers to do this?


From what you say (serial interface, AT command set), I think it would behave like a dial-up modem. Thus you could use something like wvdial or ppp to connect using it.

Also, this repo on GitHub looks relevant:

This repository serves to group together a bunch of scripts I've been writing to assist in the development process with the Telit 862GPS. They are all designed for Linux with the exception of the bulkdownload script which is for Windows.

| improve this answer | |
  • 1
    ppp isn't just for dial-up modems. For example, DSL often uses it. So can T1s, etc. And some VPNs. But yeah, ppp sounds like the right answer. – derobert Sep 18 '12 at 17:03
  • @derobert Interesting; I didn't know about that. – Renan Sep 18 '12 at 18:06
  • 1
    @Renan Thanks! After playing around a bit, I've managed to successfully use wvdial to connect my PC to the internet via the GM862-GPS. – Amr Bekhit Sep 20 '12 at 11:01
  • @Renan I want to use ppp. I know the APN, username & pwd for my service provider. But, there is no dial-up number. Is there a way to use ppp with only the APN details? – user3490458 Aug 4 '15 at 12:09

If you want to turn a serial port into a network interface, that is exactly what PPP (pppd) was designed to do. It'll work over anything that looks like a serial port to Linux. pppd supports sending out "chat text" which contains the necessary AT commands to setup and teardown the call. You'll probably want to make your own chat script for this device.

Instead of /dev/ttyUSB0 or whatever you see in examples, use the /dev/{name} of the serial interface that is exposed by your GPRS module.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.