Difference between revisions of "GSM/GPRS"

From ArmadeusWiki
Jump to: navigation, search
m (Linux configuration)
(Usage)
Line 31: Line 31:
 
===Configure serial port===
 
===Configure serial port===
 
<pre class="apf">
 
<pre class="apf">
# stty -F /dev/ttySMX4 raw -echo -echoe -echok
+
# stty -F /dev/ttySMX1 raw -echo -echoe -echok
 
</pre>
 
</pre>
  
Line 37: Line 37:
 
* Sending AT commands with ''cu'' utility (be sure to [[cu/uucp|have installed it before]]):
 
* Sending AT commands with ''cu'' utility (be sure to [[cu/uucp|have installed it before]]):
 
<pre class="apf">
 
<pre class="apf">
# cu -l /dev/ttySMX4
+
# cu -l /dev/ttySMX1
 +
</pre>
 +
 
 +
* Check module presence
 +
<pre class="apf">
 +
ATI3
 +
SAGEM HiC,A.005.00
 +
 
 +
OK
 +
</pre>
 +
 
 +
* Enter PIN code
 +
<pre class="apf">
 +
AT+CPIN="1234"
 +
 
 +
OK
 +
</pre>
 +
 
 +
* Dial "123456789"
 +
<pre class="apf">
 +
ATD"123456789"
 
</pre>
 
</pre>
  

Revision as of 18:35, 30 December 2009

Page under construction... Construction.png Informations on this page are not guaranteed !!

This page will summarize informations to use the GSM/GPRS module of the APF27Wireless board.

Introduction

GSM/GPRS are generally driven through the RS232 bus. AT commands are used to dialog with the module. GSM MODEM of the APF27Wireless extension board (APW) is connected to the UART5 (/dev/ttySMX4) of the APF27 module.

Linux configuration

  • Linux will have to be configured in order to tell it that an APW is connected to your APF27Dev:
$ make linux26-menuconfig
System Type  --->
    Freescale MXC Implementations  --->
            ...
            Extension board (Wireless (APW))  --->
       [*] GSM/GPRS Modem (NEW)
       [ ] Bluetooth & WiFi module (NEW)
       [ ] CSI (Camera) pass-through (NEW)
       [ ] GPS module (NEW)
$ make linux26
  • reflash you Linux kernel

Usage

Configure serial port

# stty -F /dev/ttySMX1 raw -echo -echoe -echok

AT commands

# cu -l /dev/ttySMX1
  • Check module presence
ATI3
SAGEM HiC,A.005.00

OK
  • Enter PIN code
AT+CPIN="1234"

OK
  • Dial "123456789"
ATD"123456789"

Tools to look at

Links