gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cannot send sms from gnokii via wavecom modem


From: peter_green lion
Subject: cannot send sms from gnokii via wavecom modem
Date: Wed, 20 Oct 2010 16:34:27 +0700

hi all,
i come back with another problem.
i try to use Wavecom modem to send and receive SMS.
my configure as :
/etc/gnokiirc
###################
[global]
port = /dev/ttyS0
 model = AT
initlength = default
connection = serial
serial_baudrate =115200
smsc_timeout = 100
[xgnokii]
allow_breakage = 0
[gnokiid]
bindir = /usr/sbin/
[connect_script]
# Don't put your phone number here!!!
TELEPHONE = 12345678
############

and when run gnokii --identify :

####################

address@hidden ~]# gnokii --identify
GNOKII Version 0.6.27
Couldn't read /root/.gnokiirc config file.
Couldn't read /root/.gnokiirc config file.
LOG: debug mask is 0x1
Config read from file /etc/gnokiirc.
phone instance config:
model = AT
port = /dev/ttyS0
connection = serial
initlength = default
serial_baudrate = 115200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 100
rfcomm_channel = 0
sm_retry = 0
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 : [OK<cr><lf>]
Message received: 0x00 / 0x0004
02 4f 4b 0d                                     |  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 / 0x0007
41 54 2b 47 4d 4d 0d                            | AT+GMM
write: [AT+GMM<cr>]
read : [AT+GMM<cr><cr><lf> MULTIBAND  900E  1800 <cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0028
02 41 54 2b 47 4d 4d 0d 0d 0a 20 4d 55 4c 54 49 |  AT+GMM    MULTI
42 41 4e 44 20 20 39 30 30 45 20 20 31 38 30 30 | BAND  900E  1800
20 0d 0a 0d 0a 4f 4b 0d                         |      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>ERROR<cr><lf>]
Message received: 0x61 / 0x0012
03 41 54 2b 43 53 43 53 3f 0d 0d 0a 45 52 52 4f |  AT+CSCS?   ERRO
52 0d                                           | R
Received message type 61
Initialisation completed
Message sent: 0x06 / 0x0007
41 54 2b 47 4d 4d 0d                            | AT+GMM
write: [AT+GMM<cr>]
read : [AT+GMM<cr><cr><lf> MULTIBAND  900E  1800 <cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0028
02 41 54 2b 47 4d 4d 0d 0d 0a 20 4d 55 4c 54 49 |  AT+GMM    MULTI
42 41 4e 44 20 20 39 30 30 45 20 20 31 38 30 30 | BAND  900E  1800
20 0d 0a 0d 0a 4f 4b 0d                         |      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: 0x06 / 0x0008
41 54 2b 43 47 4d 52 0d                         | AT+CGMR
write: [AT+CGMR<cr>]
read : [AT+CGMR<cr><cr><lf>663_09gg.FSU002 1955080 080207 16:01<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0036
02 41 54 2b 43 47 4d 52 0d 0d 0a 36 36 33 5f 30 |  AT+CGMR   663_0
39 67 67 2e 46 53 55 30 30 32 20 31 39 35 35 30 | 9gg.FSU002 19550
38 30 20 30 38 30 32 30 37 20 31 36 3a 30 31 0d | 80 080207 16:01
0a 0d 0a 4f 4b 0d                               |    OK
Received message type 06
Message sent: 0x06 / 0x0008
41 54 2b 43 47 53 4e 0d                         | AT+CGSN
write: [AT+CGSN<cr>]
read : [AT+CGSN<cr><cr><lf>355212010083352<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0021
02 41 54 2b 43 47 53 4e 0d 0d 0a 33 35 35 32 31 |  AT+CGSN   35521
32 30 31 30 30 38 33 33 35 32 0d 0a 0d 0a 4f 4b | 2010083352    OK
0d                                              |
Received message type 06
IMEI         : 355212010083352
Manufacturer : WAVECOM MODEM
Model        : MULTIBAND  900E  1800
Product name : MULTIBAND  900E  1800
Revision     : 663_09gg.FSU002 195
Serial device: closing device
############################

so: i try to sending sms which command :

address@hidden ~]# echo "This is a test message" | gnokii --sendsms 0984480646 -r                                                                                      GNOKII Version 0.6.27
Couldn't read /root/.gnokiirc config file.
Couldn't read /root/.gnokiirc config file.
LOG: debug mask is 0x1
Config read from file /etc/gnokiirc.
phone instance config:
model = AT
port = /dev/ttyS0
connection = serial
initlength = default
serial_baudrate = 115200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 100
rfcomm_channel = 0
sm_retry = 0
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 : [OK<cr><lf>]
Message received: 0x00 / 0x0004
02 4f 4b 0d                                     |  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 / 0x0007
41 54 2b 47 4d 4d 0d                            | AT+GMM
write: [AT+GMM<cr>]
read : [AT+GMM<cr><cr><lf> MULTIBAND  900E  1800 <cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0028
02 41 54 2b 47 4d 4d 0d 0d 0a 20 4d 55 4c 54 49 |  AT+GMM    MULTI
42 41 4e 44 20 20 39 30 30 45 20 20 31 38 30 30 | BAND  900E  1800
20 0d 0a 0d 0a 4f 4b 0d                         |      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 : [$GPRMC,163311.778,A,1050.3686,N,10640.5331,E,0.00,86656.00,201010,,*0D<cr><lf>$GPGGA,163311.778,1050.3686,N,10640.5331,E,1,04,6.3,9.9,M,0,M,,0000*74<cr><lf>$GPGLL,1050.3686,N,10640.5331,E,163311.778,A*33<cr><lf>$GPGSA,A,3,10,02,04,12,,,,,,,,,8.5,6.3,5.8*33<cr><lf>$GPZDA,163311.778,20,10,2010,00,00*59<cr><lf>$GPVTG,86656.0,T,,M,000.0,N,000.0,K,A*06<cr><lf>$GPGSV,2,1,06,10,71,005,36,05,53,239,28,02,37,336,33,04,31,022,24*7A<cr><lf>$GPGSV,2,2,06,12,27,307,31,13,13,062,32*7A<cr><lf>AT+CSCS?<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x61 / 0x01c5
03 24 47 50 52 4d 43 2c 31 36 33 33 31 31 2e 37 |  $GPRMC,163311.7
37 38 2c 41 2c 31 30 35 30 2e 33 36 38 36 2c 4e | 78,A,1050.3686,N
2c 31 30 36 34 30 2e 35 33 33 31 2c 45 2c 30 2e | ,10640.5331,E,0.
30 30 2c 38 36 36 35 36 2e 30 30 2c 32 30 31 30 | 00,86656.00,2010
31 30 2c 2c 2a 30 44 0d 0a 24 47 50 47 47 41 2c | 10,,*0D  $GPGGA,
31 36 33 33 31 31 2e 37 37 38 2c 31 30 35 30 2e | 163311.778,1050.
33 36 38 36 2c 4e 2c 31 30 36 34 30 2e 35 33 33 | 3686,N,10640.533
31 2c 45 2c 31 2c 30 34 2c 36 2e 33 2c 39 2e 39 | 1,E,1,04,6.3,9.9
2c 4d 2c 30 2c 4d 2c 2c 30 30 30 30 2a 37 34 0d | ,M,0,M,,0000*74
0a 24 47 50 47 4c 4c 2c 31 30 35 30 2e 33 36 38 |  $GPGLL,1050.368
36 2c 4e 2c 31 30 36 34 30 2e 35 33 33 31 2c 45 | 6,N,10640.5331,E
2c 31 36 33 33 31 31 2e 37 37 38 2c 41 2a 33 33 | ,163311.778,A*33
0d 0a 24 47 50 47 53 41 2c 41 2c 33 2c 31 30 2c |   $GPGSA,A,3,10,
30 32 2c 30 34 2c 31 32 2c 2c 2c 2c 2c 2c 2c 2c | 02,04,12,,,,,,,,
2c 38 2e 35 2c 36 2e 33 2c 35 2e 38 2a 33 33 0d | ,8.5,6.3,5.8*33
0a 24 47 50 5a 44 41 2c 31 36 33 33 31 31 2e 37 |  $GPZDA,163311.7
37 38 2c 32 30 2c 31 30 2c 32 30 31 30 2c 30 30 | 78,20,10,2010,00
2c 30 30 2a 35 39 0d 0a 24 47 50 56 54 47 2c 38 | ,00*59  $GPVTG,8
36 36 35 36 2e 30 2c 54 2c 2c 4d 2c 30 30 30 2e | 6656.0,T,,M,000.
30 2c 4e 2c 30 30 30 2e 30 2c 4b 2c 41 2a 30 36 | 0,N,000.0,K,A*06
0d 0a 24 47 50 47 53 56 2c 32 2c 31 2c 30 36 2c |   $GPGSV,2,1,06,
31 30 2c 37 31 2c 30 30 35 2c 33 36 2c 30 35 2c | 10,71,005,36,05,
35 33 2c 32 33 39 2c 32 38 2c 30 32 2c 33 37 2c | 53,239,28,02,37,
33 33 36 2c 33 33 2c 30 34 2c 33 31 2c 30 32 32 | 336,33,04,31,022
2c 32 34 2a 37 41 0d 0a 24 47 50 47 53 56 2c 32 | ,24*7A  $GPGSV,2
2c 32 2c 30 36 2c 31 32 2c 32 37 2c 33 30 37 2c | ,2,06,12,27,307,
33 31 2c 31 33 2c 31 33 2c 30 36 32 2c 33 32 2a | 31,13,13,062,32*
37 41 0d 0a 41 54 2b 43 53 43 53 3f 0d 0d 0a 45 | 7A  AT+CSCS?   E
52 52 4f 52 0d                                  | RROR
Received message type 61
Initialisation completed
Message sent: 0x61 / 0x000a
41 54 2b 43 53 43 53 3d 3f 0d                   | AT+CSCS=?
write: [AT+CSCS=?<cr>]
read : [AT+CSCS=?<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x61 / 0x0013
03 41 54 2b 43 53 43 53 3d 3f 0d 0d 0a 45 52 52 |  AT+CSCS=?   ERR
4f 52 0d                                        | OR
Received message type 61
Message sent: 0x23 / 0x0009
41 54 2b 43 53 43 41 3f 0d                      | AT+CSCA?
write: [AT+CSCA?<cr>]
read : [AT+CSCA?<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x23 / 0x0012
03 41 54 2b 43 53 43 41 3f 0d 0d 0a 45 52 52 4f |  AT+CSCA?   ERRO
52 0d                                           | R
Received message type 23
Cannot read the SMSC number from your phone. If the sms send will fail, please use --smsc option explicitely giving the number.
General Data Coding
dcs: 0x0
Length: 0x16
user_data_length: 0x14
ValidityIndicator: 2
user_data: 54747A0E4ACF416110BD3CA783DAE5F93C7C2E03
Sending
Message sent: 0x63 / 0x000a
41 54 2b 43 4d 47 46 3d 30 0d                   | AT+CMGF=0
write: [AT+CMGF=0<cr>]
read : [AT+CMGF=0<cr><cr><lf>OK<cr><lf>]
Message received: 0x63 / 0x0010
02 41 54 2b 43 4d 47 46 3d 30 0d 0d 0a 4f 4b 0d |  AT+CMGF=0   OK
Received message type 63
PDU mode set
Sending initial sequence
Message sent: 0x64 / 0x000b
41 54 2b 43 4d 47 53 3d 33 33 0d                | AT+CMGS=33
write: [AT+CMGS=33<cr>]
read : [AT+CMGS=33<cr><cr><lf>ERROR<cr><lf>]
Message received: 0x64 / 0x0014
03 41 54 2b 43 4d 47 53 3d 33 33 0d 0d 0a 45 52 |  AT+CMGS=33   ER
52 4f 52 0d                                     | ROR
Received message type 64
Got response 8
SMS Send failed (Unknown error - well better than nothing!!)
Serial device: closing device
###########################################3


please help me to fix it.

thanks for help me.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]