Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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?

share|improve this question
1  
Actually it probably uses the ETSI GSM 07.07 standard command set. etsi.org/deliver/etsi_gts/.../gsmts_0707v050000p.pdf –  Keith Sep 18 '12 at 23:44
    
@Keith: The link seems to be broken. Could you update it, please? –  Amr Bekhit Sep 19 '12 at 7:51
1  
Oh sorry, it got truncated. This should work. etsi.org/deliver/etsi_gts/07/0707/05.00.00_60/… –  Keith Sep 19 '12 at 16:22
1  
BTW, you don't need special kernel support for serial devices. It's already there. In fact there is support for speeds higher than 115200. See the setserial command. –  Keith Sep 19 '12 at 16:24

2 Answers 2

up vote 7 down vote accepted

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.

share|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

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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