View source for Manually using GSM
From Openmoko
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Templates used on this page:
Return to Manually using GSM.
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page:
Templates used on this page:
Return to Manually using GSM.
When men were real men and typed their own AT commands...
This is a short guide how to manually get GSM going.
Our default images all have a getty running on /dev/ttySAC0, please edit /etc/inittab and disable the getty on that port
NOTE: You don't need this in kernel builds with patchset ≥ 1288 |
To keep the kernel from writing to /dev/ttySAC0, you need to use dmesg -n1
.
root@fic-gta01:~$ lsof | grep ttySAC0
root@fic-gta01:~$ echo "1" > /sys/bus/platform/devices/gta01-pm-gsm.0/power_on
root@fic-gta01:~$ chown uucp.uucp /dev/ttySAC0
root@fic-gta01:~$ mkdir /usr/spool root@fic-gta01:~$ mkdir /usr/spool/uucp root@fic-gta01:~$ chown uucp.uucp /usr/spool/uucp
root@fic-gta01:~$ cu -l /dev/ttySAC0 Connected. AT-Command Interpreter Ready OK
ATE1 OK AT+CFUN=1 ERROR AT+CPIN="...." OK AT+COPS OK
RING ATA OK
To actually be able to talk you have to configure your audio accordingly
root@fic-gta01:~$ cd /etc/alsa/ root@fic-gta01:/etc/alsa$ wget http://opensource.wolfsonmicro.com/~gg/gsmheadset.working.state root@fic-gta01:/etc/alsa$ alsactl -f /etc/alsa/gsmheadset.working.state restore
Up the "Amp right" volume to hear the speaker on both ears, then dial
ATD012340234;
ATH OK
You can use the gsmd and libgsmd-util programs to have a slightly more high-level interface to the GSM Modem. It's still console based, though.
For further instructions, see gsmd