cs:gsm
Toto je starší verze dokumentu!
Mobilní komunikační modul GSM01A
Stav modulu
Je vyrobený prototyp. V současné době probíhá jeho testování.
Použití modulu
Zapnutí
LEON-G100 / LEON-G200 modules can be switched on in one of the following ways:
- Rising edge on the VCC pin to a valid voltage as module supply, i.e. applying module supply
- Shorting PWR_ON pin to ground: the PWR_ON pin requires an external pull-up resistor to set its value to logic high and must not be left floating. Internal circuitry is low level sensitive
- RTC alarm, i.e. pre-programmed scheduled time (refer to u-blox AT Commands Manual [4], AT+CALA)
- Charger detection on the V_CHARGE and CHARGE_SENSE pins (LEON-G200 only)
Nastavení
Nejčastěji modul potřebujeme k odesílání jednoduchých informačních SMS zpráv, nebo k GPRS připojení k internetu.
Internetové připojení v Linuxu nastavíme takto:
sudo apt-get install ppp
Vytvoříme soubor /etc/ppp/peers/gprs s následujícím obsahem:
ttyUSB0 115200 connect '/usr/sbin/chat -v -f /etc/chatscripts/gprs' lock noccp novj crtscts modem defaultroute usepeerdns noauth ipcp-accept-remote ipcp-accept-local noipdefault passive persist holdoff 10 maxfail 0 debug
Dále také soubor /etc/chatscripts/gprs s obsahem:
# You can use this script unmodified to connect to cellular networks. # The APN is specified in the peers file as the argument of the -T command # line option of chat(8). # For details about the AT commands involved please consult the relevant # standard: 3GPP TS 27.007 - AT command set for User Equipment (UE). # (http://www.3gpp.org/ftp/Specs/html-info/27007.htm) ABORT BUSY ABORT VOICE ABORT "NO CARRIER" ABORT "NO DIALTONE" ABORT "NO DIAL TONE" ABORT "NO ANSWER" ABORT "DELAYED" ABORT "ERROR" # cease if the modem is not attached to the network yet ABORT "+CGATT: 0" "" AT TIMEOUT 5 OK ATH OK ATE1 # +CPIN provides the SIM card PIN #OK "AT+CPIN=1234" # +CFUN may allow to configure the handset to limit operations to # GPRS/EDGE/UMTS/etc to save power, but the arguments are not standard # except for 1 which means "full functionality". #OK AT+CFUN=1 OK AT+CGDCONT=1,"IP","internet.t-mobile.cz","",0,0 OK ATD*99***1# TIMEOUT 22 CONNECT ""
Pak můžeme aktivovat GPRS připojení příkazem
sudo pon gprs
Reference
cs/gsm.1478388447.txt.gz · Poslední úprava: 2016/11/05 23:27 (upraveno mimo DokuWiki)