Difference between revisions of "How to go to Internet through GPRS setup"

From IGEP - ISEE Wiki

Jump to: navigation, search
Line 1: Line 1:
chatscripts/apn.es.movistar
+
__TOC__
 +
= 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|IGEP Firmware Yocto]] (at least version 1.2.1-2) in a SD-card or flash.
 +
 
 +
'''Hardware:'''
 +
 
 +
* Processor: [http://www.isee.biz/products/processor-boards/igep-com-module IGEP COM MODULE]
 +
* Expansion: [http://www.isee.biz/products/expansion-boards/product-igep-berlin 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 [http://www.isee.biz/products/expansion-boards/product-igepv2-expansion-board 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"
 
  AT+CGDCONT=1,"IP","movistar.es"
  
chatscripts/pin.CODE
+
'''/etc/ppp/chatscripts/pin.CODE''' file should look like this:
  
 
  AT+CPIN=<your pin number>
 
  AT+CPIN=<your pin number>
 
+
'''
chatscripts/pin.NONE
+
/etc/ppp/chatscripts/pin.NONE''' file should look like this:
  
 
  AT
 
  AT
  
chatscripts/movistar
+
'''/etc/ppp/chatscripts/movistar''' file should look like this:
  
 
  ABORT 'BUSY'
 
  ABORT 'BUSY'
Line 36: Line 57:
 
  CONNECT '
 
  CONNECT '
  
pap-secrets
+
'''/etc/ppp/pap-secrets''' file should look like this:
  
 
  # Secrets for authentication using PAP
 
  # Secrets for authentication using PAP
Line 42: Line 63:
 
  movistar * movistar *
 
  movistar * movistar *
  
ppp_on_boot
+
'''/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
 
  #!/bin/sh
  # Start modem
+
  # Start modem for IGEP BERLIN (BASE0010)
 
  echo 0 > /sys/class/gpio/gpio145/value
 
  echo 0 > /sys/class/gpio/gpio145/value
 
  echo 1 > /sys/class/gpio/gpio163/value
 
  echo 1 > /sys/class/gpio/gpio163/value
Line 52: Line 90:
 
  # Call ppp provider
 
  # Call ppp provider
 
  pppd call movistar
 
  pppd call movistar
 +
 +
= Troubleshooting =
 +
 +
Debug information can found in
 +
 +
tail -f /var/log/messages
  
 
[[Category:Work in progress]]
 
[[Category:Work in progress]]

Revision as of 15:42, 30 January 2013

Overview

This article explains how to set up the modem available on some IGEP expansion boards using pppd.

Prerequisites and tested hardware

Software:

Hardware:

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