I have been trying to get my Option FirstFone working under GSM lib. I see the changelog states that some patches were made to gsmlib-1.6 to include some
FirstFone support.
I haven't had too much joy.
I can get most of gsmctl working, with the exception of setting the SCA. This
is because the ATZ resets my modem every time and wipes out any set SCA. I have managed to work around this by setting the SCA in the Init string for all commands.. -I '+CSCA="+61418706700"'
I have also been able to access the message store, via gsmsmsd, but only by setting GSMLIB_SH888_FIX=1.
msp@solo:~$ unset GSMLIB_SH888; gsmsmsd no_cb no_stat -t SM -f
[...]
--> AT+CPMS="SM","SM","SM"
<--
<-- +CPMS: 0,10,0,10,0,10
<-- OK
*** Reading SMS entry 0
--> AT+CMGR=1
<--
<-- +CMGR: 1,,24
<-- 040B911604281819F100001070224173806B05E8329BFD06
<-- OK
gsmsmsd[ERROR]: premature end of PDU
msp@solo:~$ export GSMLIB_SH888_FIX=1; gsmsmsd no_cb no_stat -t SM -f
[...]
--> AT+CPMS="SM","SM","SM"
<--
<-- +CPMS: 0,10,0,10,0,10
<-- OK
*** Reading SMS entry 0
--> AT+CMGR=1
<--
<-- +CMGR: 1,,24
<-- 040B911604281819F100001070224173806B05E8329BFD06
<-- OK
Type of message: SMS message
---------------------------------------------------------------------------
Message type: SMS-DELIVER
SC address: ''
More messages to send: 1
Reply path: 0
User data header indicator: 0
Status report indication: 0
Originating address: '61408281911')
[...]
I have not had any joy sending SMS :-(.
Apparently the FirstFone only accepts +CSMS=0 (Select Message Service 0 = GSM 3.40 & 3.41). gsmlib wants to set 1. And the subesquent PDU doesn't get sent :-( With a detailed understanding of SMS I haven't been able to chase this further. See attached debug output.
I have had no problems sending SMS via Text mode from a terminal program;
AT+CMGF=1 ; set text mode
OK
AT+CSCA="+61418706700" ; set SCA
OK
AT+CMGS="+61408281911" ; Send Message
> Hello^Z ; text followed by ^Z
+CMGS: 13
OK
FirstFone state they support ETSI GSM-TS 07.05 & 07.07 with the full command set available at ftp://www.option.com/FiFo/Manuals/DevkitV13.pdf
Is anyone using gsmlib with Option FirstFone? Are you having any joy and
can you offer any suggestions as how I can progress from here..
Mark
msp@solo:~$ gsmsendsms -I '+CSCA="+61418706700"' +61408281911 "test"
--> ATZ
<-- ATZ
<-- OK
--> AT+CSCA="+61418706700"
<-- AT+CSCA="+61418706700"
<-- OK
--> AT+CMEE=1
<-- AT+CMEE=1
<-- OK
--> AT+CMGF=0
<-- AT+CMGF=0
<-- OK
--> AT+CGMI
<-- AT+CGMI
<-- OPTION International
<-- Vaart 25, Box 8
<-- B-3000 Leuven, BELGIUM
<-- Tel: +32 16 20 73 03 Fax: +32 16 20 71 64
<-- BBS: +32 16 20 41 44 http://www.option.com
<-- OK
--> AT+CGMM
<-- AT+CGMM
<-- GSM-900 FirstFone
<-- OK
--> AT+CGMR
<-- AT+CGMR
<-- HW V4.5 * BBS V6.55E TURBO * DI V1.0S
<-- TACore V1.320 * TADrv V1.0B
<-- Build 08061998/1710
<-- OK
--> AT+CGSN
<-- AT+CGSN
<-- 520004700006430
<--
<-- OK
--> AT+CSCS="GSM"
<-- AT+CSCS="GSM"
<-- OK
--> AT+CSMS=1
<-- AT+CSMS=1
<-- +CMS ERROR: 303
--> AT+CMGS=18
<-- AT+CMGS=18
--> 0015000B911604281819F10000A804F4F29C0E
gsmsendsms[ERROR]: timeout when reading from TA (errno: 22/Invalid argument)