User:Miki/hosted gsmd

From Openmoko

< User:Miki
Revision as of 11:14, 17 October 2007 by Miki (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

These notes shows how to run gsmd on your workstation, while actually interacting with the modem in the Neo1973.

Contents

Attach the modem

Start your post svn r2885 uboot phone into the uboot menu. Use a serial terminal emulation program (here picocom) to acess the uboot serial command line

picocom /dev/ttyACM0

Power on gsm modem and attach modem to serial line.

GTA01Bv4 # neo1973 gsm on
GTA01Bv4 # terminal serial
switching s3ser0 from console into GSM mode
Entering terminal mode for port serial
Use '~.' to leave the terminal and get back to u-boot

Now quit the terminal emulation program, without resetting the serial line! (in picocom C-a,C-q).

Thanks for using picocom

Now you have a shiny gsm modem connected to a tty of you machine, use at to your wish.

Build gsmd

 svn co https://svn.openmoko.org/trunk/src/target/gsm/ moko_gsmd
./autogen.sh
make

Setup .so path

su -c 'ln -s ~/moko_gsmd/src/gsmd/.libs/ /usr/local/lib/gsmd'

Run it

cd src
gsmd/gsmd -p /dev/ttyACM0 -v ti -m generic

At the moment I have some troubles getting past modem intialization:

Wed Oct 17 11:21:06 2007 <1> vendor.c:59:gsmd_vendor_plugin_find() selecting vendor plugin "TI Calypso"
Wed Oct 17 11:21:06 2007 <1> atcmd.c:545:atcmd_submit() submitting command `ATZ'
Wed Oct 17 11:21:06 2007 <1> atcmd.c:210:ml_parse() buf=`ATZ'(3)
Wed Oct 17 11:21:06 2007 <1> atcmd.c:229:ml_parse() ignoring echo
Wed Oct 17 11:21:06 2007 <1> atcmd.c:210:ml_parse() buf=`ATZ'(3)
Wed Oct 17 11:21:06 2007 <1> atcmd.c:229:ml_parse() ignoring echo

You can invoke libgsm-tool as usual in another shell

util/libgsmd-tool -m shell
Personal tools

These notes shows how to run gsmd on your workstation, while actually interacting with the modem in the Neo1973.

Attach the modem

Start your post svn r2885 uboot phone into the uboot menu. Use a serial terminal emulation program (here picocom) to acess the uboot serial command line

picocom /dev/ttyACM0

Power on gsm modem and attach modem to serial line.

GTA01Bv4 # neo1973 gsm on
GTA01Bv4 # terminal serial
switching s3ser0 from console into GSM mode
Entering terminal mode for port serial
Use '~.' to leave the terminal and get back to u-boot

Now quit the terminal emulation program, without resetting the serial line! (in picocom C-a,C-q).

Thanks for using picocom

Now you have a shiny gsm modem connected to a tty of you machine, use at to your wish.

Build gsmd

 svn co https://svn.openmoko.org/trunk/src/target/gsm/ moko_gsmd
./autogen.sh
make

Setup .so path

su -c 'ln -s ~/moko_gsmd/src/gsmd/.libs/ /usr/local/lib/gsmd'

Run it

cd src
gsmd/gsmd -p /dev/ttyACM0 -v ti -m generic

At the moment I have some troubles getting past modem intialization:

Wed Oct 17 11:21:06 2007 <1> vendor.c:59:gsmd_vendor_plugin_find() selecting vendor plugin "TI Calypso"
Wed Oct 17 11:21:06 2007 <1> atcmd.c:545:atcmd_submit() submitting command `ATZ'
Wed Oct 17 11:21:06 2007 <1> atcmd.c:210:ml_parse() buf=`ATZ'(3)
Wed Oct 17 11:21:06 2007 <1> atcmd.c:229:ml_parse() ignoring echo
Wed Oct 17 11:21:06 2007 <1> atcmd.c:210:ml_parse() buf=`ATZ'(3)
Wed Oct 17 11:21:06 2007 <1> atcmd.c:229:ml_parse() ignoring echo

You can invoke libgsm-tool as usual in another shell

util/libgsmd-tool -m shell