gnokii-users
[Top][All Lists]
Advanced

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

send sms: Data format is not valid


From: Carles Pina i Estany
Subject: send sms: Data format is not valid
Date: Thu, 31 Jul 2008 13:09:44 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

Hello,

I have a Motorola C330 with USB cable. The gnokiirc looks like:
------------
[global]
port = /dev/ttyACM0
model = AT
initlength = default
connection = serial
use_locking = yes
serial_baudrate = 19200
smsc_timeout = 10

[xgnokii]
allow_breakage = 0

[gnokiid]
bindir = /usr/local/sbin/

[logging]
debug = on
rlpdebug = off
xdebug = off
------------

Gnokii version: 0.6.26

gnokii --monitor looks fine

I need to send a SMS, I'm getting:
carles:/home/carles# echo hola | gnokii --sendsms 68513XXXX
GNOKII Version 0.6.26
Couldn't read /root/.gnokiirc config file.
Couldn't read /root/.gnokiirc config file.
SMS Send failed (Data format is not valid.)
carles:/home/carles#

(I've tried using national number format, international, etc.)

If I enable the logs:
----------------------

---------------------
echo hola | gnokii --sendsms 685188XXXX
GNOKII Version 0.6.26
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/ttyACM0
connection = serial
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 1
sm_retry = 0
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyACM0
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 / 0x0007
41 54 2b 47 4d 4d 0d                            | AT+GMM
write: [AT+GMM<cr>]
read : [AT+GMM<cr><cr><lf>+GMM: 
"GSM900","GSM1800","GSM1900","GSM850","MODEL=C330"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0049
02 41 54 2b 47 4d 4d 0d 0d 0a 2b 47 4d 4d 3a 20 |  AT+GMM   +GMM:
22 47 53 4d 39 30 30 22 2c 22 47 53 4d 31 38 30 | "GSM900","GSM180
30 22 2c 22 47 53 4d 31 39 30 30 22 2c 22 47 53 | 0","GSM1900","GS
4d 38 35 30 22 2c 22 4d 4f 44 45 4c 3d 43 33 33 | M850","MODEL=C33
30 22 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>+CGMI: "Motorola CE, Copyright 
2000"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0036
02 41 54 2b 43 47 4d 49 0d 0d 0a 2b 43 47 4d 49 |  AT+CGMI   +CGMI
3a 20 22 4d 6f 74 6f 72 6f 6c 61 20 43 45 2c 20 | : "Motorola CE,
43 6f 70 79 72 69 67 68 74 20 32 30 30 30 22 0d | Copyright 2000"
0a 0d 0a 4f 4b 0d                               |    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: "GSM"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x61 / 0x001f
02 41 54 2b 43 53 43 53 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCS?   +CSC
53 3a 20 22 47 53 4d 22 0d 0a 0d 0a 4f 4b 0d    | S: "GSM"    OK
Received message type 61
Initialisation completed
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>+CSCA: "+34656000311",145<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x23 / 0x002c
02 41 54 2b 43 53 43 41 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCA?   +CSC
41 3a 20 22 2b 33 34 36 35 36 30 30 30 33 31 31 | A: "+34656000311
22 2c 31 34 35 0d 0a 0d 0a 4f 4b 0d             | ",145    OK
Received message type 23
General Data Coding
dcs: 0x0
Length: 0x4
user_data_length: 0x4
ValidityIndicator: 2
user_data: E8373B0C
Sending
Message sent: 0x63 / 0x000a
41 54 2b 43 4d 47 46 3d 30 0d                   | AT+CMGF=0
write: [AT+CMGF=0<cr>]
read : [^A1+CMGF=0<cr><cr><lf>+CMS ERROR: 305<cr><lf>]
Message received: 0x63 / 0x001d
04 01 31 2b 43 4d 47 46 3d 30 0d 0d 0a 2b 43 4d |   1+CMGF=0   +CM
53 20 45 52 52 4f 52 3a 20 33 30 35 0d          | S ERROR: 305
Received message type 63
PDU mode not supported
SMS Send failed (Data format is not valid.)
Serial device: closing device
-----------------

Any idea how I could make it to send sms?

Thank you,

-- 
Carles Pina i Estany            GPG id: 0x17756391
        http://pinux.info




reply via email to

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