How to go to Internet through GPRS setup
Contents
Overview
This article explains how to set up the modem available on some IGEP expansion boards using pppd.
Prerequisites and tested hardware
Software:
- The IGEP Firmware Yocto (at least version 1.2.1-2) in a SD-card or flash.
Hardware:
- Processor: IGEP COM MODULE
- Expansion: IGEP BERLIN
- Accessories: GPRS antenna and SIM card.
Following explanation was tested with this hardware but should work with other hardware that comes with a GPRS modem (like the IGEPv2 EXPANSION)
Configuration example using Movistar provider (Spain)
/etc/ppp/chatscripts/apn.es.movistar file should look like this:
AT+CGDCONT=1,"IP","movistar.es"
/etc/ppp/chatscripts/pin.CODE file should look like this:
AT+CPIN=<your pin number>
/etc/ppp/chatscripts/pin.NONE file should look like this:
AT
/etc/ppp/chatscripts/movistar file should look like this:
ABORT 'BUSY' ABORT 'NO CARRIER' ABORT 'VOICE' ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT 'DELAYED' REPORT CONNECT TIMEOUT 6 'ATQ0' 'OK-AT-OK' 'ATZ' TIMEOUT 3 'OK' @/etc/ppp/chatscripts/pin 'OK\d-AT-OK' 'ATI' 'OK' 'ATZ' 'OK' 'AT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0' 'OK' 'AT+IFC=0,0' 'OK' 'ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0' 'OK-AT-OK' @/etc/ppp/chatscripts/apn 'OK' 'ATD*99***1#' TIMEOUT 30 CONNECT '
/etc/ppp/pap-secrets file should look like this:
# Secrets for authentication using PAP # client server secret IP addresses movistar * movistar *
/etc/ppp/peers/movistar file should look like this:
noauth hide-password connect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/movistar" /dev/ttyO1 115200 nocrtscts defaultroute noipdefault user movistar usepeerdns nodeflate novj noccp persist
/etc/ppp/ppp_on_boot file should look like this:
#!/bin/sh # Start modem for IGEP BERLIN (BASE0010) echo 0 > /sys/class/gpio/gpio145/value echo 1 > /sys/class/gpio/gpio163/value sleep 1 echo 0 > /sys/class/gpio/gpio163/value # Call ppp provider pppd call movistar
Troubleshooting
Debug information can found in
tail -f /var/log/messages