[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
smsd problem with AT model - Part II
From: |
Romain Parmantier - Mobile Devices |
Subject: |
smsd problem with AT model - Part II |
Date: |
Thu, 5 Oct 2006 10:37:48 +0200 |
Hi All,
First, I have read the thread with the same subject and apply the patch that
Daniele Forsi posts (thanks again for this patch). I haven't found other threads
on this problem...
I have gnokii 0.6.14 runnning on Debian Sarge and a wavecom modem on serial
port.
==========8<==================
address@hidden ~ # gnokii --identify
Received message type 06
The GSM modem, detected successfully as a wavecom modem :
IMEI : 0123456789ABCDE
Manufacturer : WAVECOM MODEM
Model : MULTIBAND 900E 1800
Product name : MULTIBAND 900E 1800
Revision : 534d09gg.2C2 175773
Serial device: closing device
==========8<==================
I can also send sms with gnokii --sendsms and get sms with gnokii --getsms
MEMORY INDEX
==========8<==================
address@hidden ~ # gnokii --getsms SM 3
3. Inbox Message (read)
Date/time: 20/09/2006 08:09:48 +0200
Sender: +33666953774 Msg Center: +33660003000
Text:
010022:
$GPRMC,060911.00,A,4836.6468,N,00611.8542,E,0.050,216.12,200906,,,A*67,1,1,0,00,
T,D,0.0,3840,0,0,0000000000000000
==========8<==================
Note : Without the patch, I have an error
When I try with IN ou ME memory, I have an error. According to the command
AT+CPMS that I have type in minicom, this is normal : these memories in not
available on the modem. I have the following :
==========8<==================
at+cpms?
+CPMS: "SM",30,30,"SM",30,30
OK
at+cpms=?
+CPMS: (("SM","BM","SR"),("SM"))
OK
==========8<==================
Now, I try to use smsd to fill a mysql base :
==========8<==================
address@hidden ~ # smsd -u root -d intranet -c localhost -m mysql
LOG: debug mask is 0x1
LOG: rlpdebug mask is 0x1
LOG: xdebug mask is 0x1
phone instance config:
model: AT
port_device: /dev/ttyS0
connection_type: 0
init_length: 0
serial_baudrate: 115200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script:
disconnect_script:
rfcomm_cn: 1
sm_retry: off
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyS0
Serial device: setting RTS to high and DTR to high
Message sent: 0x00 / 0x0004
41 54 5a 0d | ATZ
write: [ATZ<cr>]
read : [ATZ<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x000a
02 41 54 5a 0d 0d 0a 4f 4b 0d | ATZ OK
Received message type 00
Message sent: 0x00 / 0x0005
41 54 45 31 0d | ATE1
write: [ATE1<cr>]
read : [ATE1<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x000b
02 41 54 45 31 0d 0d 0a 4f 4b 0d | ATE1 OK
Received message type 00
Message sent: 0x00 / 0x000a
41 54 2b 43 4d 45 45 3d 31 0d | AT+CMEE=1
write: [AT+CMEE=1<cr>]
read : [AT+CMEE=1<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0010
02 41 54 2b 43 4d 45 45 3d 31 0d 0d 0a 4f 4b 0d | AT+CMEE=1 OK
Received message type 00
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 4d 0d | AT+CGMM
write: [AT+CGMM<cr>]
read : [AT+CGMM<cr><cr><lf> MULTIBAND 900E 1800 <cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x12 / 0x002f
02 41 54 2b 43 50 4d 53 3f 0d 0d 0a 2b 43 50 4d | AT+CPMS? +CPM
53 3a 20 22 53 4d 22 2c 33 30 2c 33 30 2c 22 53 | S: "SM",30,30,"S
4d 22 2c 33 30 2c 33 30 0d 0a 0d 0a 4f 4b 0d | M",30,30 OK
Received message type 12
GN_OP_GetSMSStatus at line 400 in file lowlevel.c returns error 1
Restarting connection.Serial device: closing device
Initializing connection...
Opened configuration file /root/.gnokiirc
Opened configuration file from memory
Added new section global
Adding key/value port//dev/ttyS0
Adding key/value model/AT
Adding key/value initlength/default
Adding key/value connection/serial
Adding key/value use_locking/yes
Adding key/value serial_baudrate/115200
Adding key/value smsc_timeout/10
Added new section gnokiid
Adding key/value bindir//usr/sbin/
Added new section connect_script
Adding key/value TELEPHONE/0687512943
Added new section disconnect_script
Added new section logging
Adding key/value debug/on
Adding key/value rlpdebug/on
Adding key/value xdebug/on
LOG: debug mask is 0x1
LOG: rlpdebug mask is 0x1
LOG: xdebug mask is 0x1
phone instance config:
model: AT
port_device: /dev/ttyS0
connection_type: 0
init_length: 0
serial_baudrate: 115200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script:
disconnect_script:
rfcomm_cn: 1
sm_retry: off
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyS0
Serial device: setting RTS to high and DTR to high
Message sent: 0x00 / 0x0004
41 54 5a 0d | ATZ
write: [ATZ<cr>]
read : [ATZ<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x000a
02 41 54 5a 0d 0d 0a 4f 4b 0d | ATZ OK
Received message type 00
Message sent: 0x00 / 0x0005
41 54 45 31 0d | ATE1
write: [ATE1<cr>]
read : [ATE1<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x000b
02 41 54 45 31 0d 0d 0a 4f 4b 0d | ATE1 OK
Received message type 00
Message sent: 0x00 / 0x000a
41 54 2b 43 4d 45 45 3d 31 0d | AT+CMEE=1
write: [AT+CMEE=1<cr>]
read : [AT+CMEE=1<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0010
02 41 54 2b 43 4d 45 45 3d 31 0d 0d 0a 4f 4b 0d | AT+CMEE=1 OK
Received message type 00
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 4d 0d | AT+CGMM
write: [AT+CGMM<cr>]
read : [AT+CGMM<cr><cr><lf> MULTIBAND 900E 1800 <cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0029
02 41 54 2b 43 47 4d 4d 0d 0d 0a 20 4d 55 4c 54 | AT+CGMM MULT
49 42 41 4e 44 20 20 39 30 30 45 20 20 31 38 30 | IBAND 900E 180
30 20 0d 0a 0d 0a 4f 4b 0d | 0 OK
Received message type 06
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 49 0d | AT+CGMI
write: [AT+CGMI<cr>]
read : [AT+CGMI<cr><cr><lf> WAVECOM MODEM<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0020
02 41 54 2b 43 47 4d 49 0d 0d 0a 20 57 41 56 45 | AT+CGMI WAVE
43 4f 4d 20 4d 4f 44 45 4d 0d 0a 0d 0a 4f 4b 0d | COM MODEM OK
Received message type 06
Message sent: 0x61 / 0x0009
41 54 2b 43 53 43 53 3f 0d | AT+CSCS?
write: [AT+CSCS?<cr>]
read : [AT+CSCS?<cr><cr><lf>+CSCS: "PCCP437"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x0023
02 41 54 2b 43 53 43 53 3f 0d 0d 0a 2b 43 53 43 | AT+CSCS? +CSC
53 3a 20 22 50 43 43 50 34 33 37 22 0d 0a 0d 0a | S: "PCCP437"
4f 4b 0d | OK
Received message type 61
Initialisation completed
fbusinit: error 0
Inserting Event: 2
Inserting Event: 2
Inserting Event: 2
Serial device: closing device
==========8<==================
Maybe I have forgotten something ?
Any help would be appreciated.
Regards,
--
Romain PARMANTIER - Mobile Devices Ingenierie
12 rue Roger Salengro 94 270 Kremlin Bicêtre
Tél.: (+33) 142 119 325 Fax: (+33) 142 118 717
http://www.mobile-devices.fr