#106180 gsm-utils: Option FirstFone and GSMlib not working together

Package:
gsm-utils
Source:
gsmlib
Description:
GSM mobile phone access applications
Submitter:
Mark Purcell
Date:
2005-07-18 03:56:09 UTC
Severity:
normal
#106180#5
Date:
2001-07-22 05:16:28 UTC
From:
To:
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)

#106180#10
Date:
2001-07-24 13:48:49 UTC
From:
To:
Hi Peter,

Sorry that doesn't seem to work either :-(

It appears that it won't allow a +CMGS command to proceed without a valid
SCA set, which I guess if fair enought.   Problem is every time a 'ATZ'
is issued it deletes the SCA :-(  However as I said, I can force the setting
of the SCA by including the command in the initialisation script.

Problem still is that it doesn't seem to accept the gsm-lib PDU format. :-(

Mark

$ gsmsendsms --sca +61418706700 +61408281911 "Test"
--> ATZ
<--
<-- OK
--> ATE0
<-- ATE0
<-- OK
--> AT+CMEE=1
<--
<-- OK
--> AT+CMGF=0
<--
<-- OK
--> 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
<--
<-- GSM-900 FirstFone
<-- OK
--> AT+CGMR
<--
<-- HW V4.5 * BBS V6.55E TURBO * DI V1.0S
<-- TACore V1.320 * TADrv V1.0B
<-- Build 08061998/1710
<-- OK
--> AT+CGSN
<--
<-- 520004700006430
<--
<-- OK
--> AT+CSCS="GSM"
<--
<-- OK
--> AT+CSMS=1
<--
<-- +CMS ERROR: 303
--> AT+CMGS=18
<--
<-- +CMS ERROR: 330
gsmsendsms[ERROR]: ME/TA error 'SMSC address unknown' (code 330)


$ gsmsendsms --sca +61418706700 -I '+CSCA="+61408281911"' +61408281911 "Test"
--> ATZ
<-- ATZ
<-- OK
--> AT+CSCA="+61408281911"
<-- AT+CSCA="+61408281911"
<-- 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
--> 07911614786007F015000B911604281819F10000A804D4F29C0E
gsmsendsms[ERROR]: timeout when reading from TA (errno: 22/Invalid argument)