gnokii-users
[Top][All Lists]
Advanced

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

CMS Error 500


From: Benedikt Carda
Subject: CMS Error 500
Date: Fri, 07 Feb 2014 12:38:54 +0100
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0

Hello,

I am having difficulties to get gnokii running with my HUAWEI E156g modem on my Centos 6.x box:

Here is the output of gnokii --identify:

GNOKII Version 0.6.30
LOG: debug mask is 0x1
Config read from file /etc/gnokiirc.
phone instance config:
model = AT
port = /dev/ttyUSB1
connection = serial
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyUSB1
Serial device: setting RTS to high and DTR to high
Message sent: 0x00 / 0x0004
41 54 5a 0d                                     | ATZ
write: [ATZ<cr>]
read : [^BOOT:22443556,0,0,0,86<cr><lf>ATZ<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0023
02 5e 42 4f 4f 54 3a 32 32 34 34 33 35 35 36 2c |  ^BOOT:22443556,
30 2c 30 2c 30 2c 38 36 0d 0a 41 54 5a 0d 0d 0a | 0,0,0,86  ATZ
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>E156G<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0016
02 41 54 2b 47 4d 4d 0d 0d 0a 45 31 35 36 47 0d |  AT+GMM   E156G
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>huawei<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0018
02 41 54 2b 43 47 4d 49 0d 0d 0a 68 75 61 77 65 |  AT+CGMI   huawe
69 0d 0a 0d 0a 4f 4b 0d                         | i    OK
Received message type 06
Message sent: 0x63 / 0x0009
41 54 2b 43 53 43 53 3f 0d                      | AT+CSCS?
write: [AT+CSCS?<cr>]
read : [AT+CSCS?<cr><cr><lf>+CSCS: "IRA"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x63 / 0x001f
02 41 54 2b 43 53 43 53 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCS?   +CSC
53 3a 20 22 49 52 41 22 0d 0a 0d 0a 4f 4b 0d    | S: "IRA"    OK
Received message type 63
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>E156G<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0016
02 41 54 2b 47 4d 4d 0d 0d 0a 45 31 35 36 47 0d |  AT+GMM   E156G
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>huawei<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0018
02 41 54 2b 43 47 4d 49 0d 0d 0a 68 75 61 77 65 |  AT+CGMI   huawe
69 0d 0a 0d 0a 4f 4b 0d                         | i    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>11.608.05.00.156<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0022
02 41 54 2b 43 47 4d 52 0d 0d 0a 31 31 2e 36 30 |  AT+CGMR   11.60
38 2e 30 35 2e 30 30 2e 31 35 36 0d 0a 0d 0a 4f | 8.05.00.156    O
4b 0d                                           | K
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>358181022443556<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0021
02 41 54 2b 43 47 53 4e 0d 0d 0a 33 35 38 31 38 |  AT+CGSN   35818
31 30 32 32 34 34 33 35 35 36 0d 0a 0d 0a 4f 4b | 1022443556    OK
0d                                              |
Received message type 06
IMEI         : 358181022443556
Hersteller : huawei
Kein Abschnitt flags in der Konfigurationsdatei.
Modell       : E156G
Produktname: E156G
Revision     : 11.608.05.00.156
Serial device: closing device

So far so good, but no matter what other command I issue, I get a CMS 500 error.
For example if I issue the command gnokii --getsms ME 1 end > /home/admin/mymessages.txt I get this output:

GNOKII Version 0.6.30
LOG: debug mask is 0x1
phone instance config:
model = AT
port = /dev/ttyUSB1
connection = serial
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyUSB1
Serial device: setting RTS to high and DTR to high
Message sent: 0x00 / 0x0004
41 54 5a 0d                                     | ATZ
write: [ATZ<cr>]
read : [^BOOT:22443556,0,0,0,86<cr><lf>ATZ<cr><cr><lf>OK<cr><lf>]
Message received: 0x00 / 0x0023
02 5e 42 4f 4f 54 3a 32 32 34 34 33 35 35 36 2c |  ^BOOT:22443556,
30 2c 30 2c 30 2c 38 36 0d 0a 41 54 5a 0d 0d 0a | 0,0,0,86  ATZ
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>E156G<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0016
02 41 54 2b 47 4d 4d 0d 0d 0a 45 31 35 36 47 0d |  AT+GMM   E156G
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>huawei<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0018
02 41 54 2b 43 47 4d 49 0d 0d 0a 68 75 61 77 65 |  AT+CGMI   huawe
69 0d 0a 0d 0a 4f 4b 0d                         | i    OK
Received message type 06
Message sent: 0x63 / 0x0009
41 54 2b 43 53 43 53 3f 0d                      | AT+CSCS?
write: [AT+CSCS?<cr>]
read : [AT+CSCS?<cr><cr><lf>+CSCS: "IRA"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x63 / 0x001f
02 41 54 2b 43 53 43 53 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCS?   +CSC
53 3a 20 22 49 52 41 22 0d 0a 0d 0a 4f 4b 0d    | S: "IRA"    OK
Received message type 63
Initialisation completed
Message sent: 0x1a / 0x000a
41 54 2b 43 50 4d 53 3d 3f 0d                   | AT+CPMS=?
write: [AT+CPMS=?<cr>]
read : [AT+CPMS=?<cr><cr><lf>+CPMS: ("ME","MT","SM","SR"),("ME","MT","SM","SR"),("ME","MT","SM","SR")<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x1a / 0x005c
02 41 54 2b 43 50 4d 53 3d 3f 0d 0d 0a 2b 43 50 |  AT+CPMS=?   +CP
4d 53 3a 20 28 22 4d 45 22 2c 22 4d 54 22 2c 22 | MS: ("ME","MT","
53 4d 22 2c 22 53 52 22 29 2c 28 22 4d 45 22 2c | SM","SR"),("ME",
22 4d 54 22 2c 22 53 4d 22 2c 22 53 52 22 29 2c | "MT","SM","SR"),
28 22 4d 45 22 2c 22 4d 54 22 2c 22 53 4d 22 2c | ("ME","MT","SM",
22 53 52 22 29 0d 0a 0d 0a 4f 4b 0d             | "SR")    OK
Received message type 1a
strings[0] = "ME"
strings[1] = "MT"
strings[2] = "SM"
strings[3] = "SR"
Message sent: 0x00 / 0x000d
41 54 2b 43 50 4d 53 3d 22 4d 45 22 0d          | AT+CPMS="ME"
write: [AT+CPMS="ME"<cr>]
read : [^A^4+CPMS="ME"<cr><cr><lf>+CMS ERROR: 500<cr><lf>]
Message received: 0x00 / 0x0020
04 01 f4 2b 43 50 4d 53 3d 22 4d 45 22 0d 0d 0a |    +CPMS="ME"
2b 43 4d 53 20 45 52 52 4f 52 3a 20 35 30 30 0d | +CMS ERROR: 500
Received message type 00
Getting message #1 from ME
Message sent: 0x00 / 0x000d
41 54 2b 43 50 4d 53 3d 22 4d 45 22 0d          | AT+CPMS="ME"
write: [AT+CPMS="ME"<cr>]
read : [^A^4+CPMS="ME"<cr><cr><lf>+CMS ERROR: 500<cr><lf>]
Message received: 0x00 / 0x0020
04 01 f4 2b 43 50 4d 53 3d 22 4d 45 22 0d 0d 0a |    +CPMS="ME"
2b 43 4d 53 20 45 52 52 4f 52 3a 20 35 30 30 0d | +CMS ERROR: 500
Received message type 00
Getting SMS failed (location 1 from ME memory)! (Unbekannter Fehler - naja besser als garnichts!!)
Serial device: closing device

Or if I try to send an SMS with the command gnokii --sendsms +43660xxxxxxx --smsc +4366000660

GNOKII Version 0.6.30
Konnte Konfigurationdatei /root/.config/gnokii/config nicht lesen
Konnte Konfigurationdatei /etc/xdg/gnokii/config nicht lesen
Konnte Konfigurationdatei /root/.gnokiirc nicht lesen
LOG: debug mask is 0x1
Config read from file /etc/gnokiirc.
Kann die Logdatei /root/.cache/gnokii/gnokii-errors nicht öffnen
WARNUNG: Kann die Logdatei nicht öffnen, Logs werden auf den Stderr umgeleitet
phone instance config:
model = AT
port = /dev/ttyUSB1
connection = serial
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 0
sm_retry = 0
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyUSB1
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>E156G<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0016
02 41 54 2b 47 4d 4d 0d 0d 0a 45 31 35 36 47 0d |  AT+GMM   E156G
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>huawei<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0018
02 41 54 2b 43 47 4d 49 0d 0d 0a 68 75 61 77 65 |  AT+CGMI   huawe
69 0d 0a 0d 0a 4f 4b 0d                         | i    OK
Received message type 06
Message sent: 0x63 / 0x0009
41 54 2b 43 53 43 53 3f 0d                      | AT+CSCS?
write: [AT+CSCS?<cr>]
read : [AT+CSCS?<cr><cr><lf>+CSCS: "IRA"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x63 / 0x001f
02 41 54 2b 43 53 43 53 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCS?   +CSC
53 3a 20 22 49 52 41 22 0d 0a 0d 0a 4f 4b 0d    | S: "IRA"    OK
Received message type 63
Initialisation completed
Bitte geben Sie den Nachrichtentext ein. Beendes Sie die Eingabe mit: <cr><Strg-D>:
This is a test=====> ENTER gn_sms_send()
General Data Coding
Default Alphabet
        encoded size: 13
        rawsms length: 14
        rawsms user data length: 13
dcs: 0x00
Length: 0x0e
user_data_length: 0x0d
ValidityIndicator: 2
user_data: 54747A0E4ACF416110BD3CA703
Input is 14 characters long
SMS is 13 octets long
Number of extended alphabet chars: 0
Sending
Message sent: 0x65 / 0x000a
41 54 2b 43 4d 47 46 3d 30 0d                   | AT+CMGF=0
write: [AT+CMGF=0<cr>]
read : [^BOOT:22443556,0,0,0,86<cr><lf><cr><lf>^BOOT:22443556,0,0,0,86<cr><lf>AT+CMGF=0<cr><cr><lf>OK<cr><lf>]
Message received: 0x65 / 0x0044
02 5e 42 4f 4f 54 3a 32 32 34 34 33 35 35 36 2c |  ^BOOT:22443556,
30 2c 30 2c 30 2c 38 36 0d 0a 0d 0a 5e 42 4f 4f | 0,0,0,86    ^BOO
54 3a 32 32 34 34 33 35 35 36 2c 30 2c 30 2c 30 | T:22443556,0,0,0
2c 38 36 0d 0a 41 54 2b 43 4d 47 46 3d 30 0d 0d | ,86  AT+CMGF=0
0a 4f 4b 0d                                     |  OK
Received message type 65
PDU mode set
Sending initial sequence
Message sent: 0x66 / 0x000b
41 54 2b 43 4d 47 53 3d 32 37 0d                | AT+CMGS=27
write: [AT+CMGS=27<cr>]
read : [AT+CMGS=27<cr><cr><lf>> ]
Message received: 0x66 / 0x000f
01 41 54 2b 43 4d 47 53 3d 32 37 0d 0d 0a 3e    |  AT+CMGS=27   >
Received message type 66
Got response: Kein Fehler.
Sending frame: 0691346600600611000C913466405063350000AA0E54747A0E4ACF416110BD3CA703
Message sent: 0x21 / 0x0045
30 36 39 31 33 34 36 36 30 30 36 30 30 36 31 31 | 0691346600600611
30 30 30 43 39 31 33 34 36 36 34 30 35 30 36 33 | 000C913466405063
33 35 30 30 30 30 41 41 30 45 35 34 37 34 37 41 | 350000AA0E54747A
30 45 34 41 43 46 34 31 36 31 31 30 42 44 33 43 | 0E4ACF416110BD3C
41 37 30 33 1a                                  | A703
write: [0691346600600611000C913466405063350000AA0E54747A0E4ACF416110BD3CA703^Z]
read : [^A^491346600600611000C913466405063350000AA0E54747A0E4ACF416110BD3CA703<cr><lf>+CMS ERROR: 500<cr><lf>]
Message received: 0x21 / 0x0057
04 01 f4 39 31 33 34 36 36 30 30 36 30 30 36 31 |    9134660060061
31 30 30 30 43 39 31 33 34 36 36 34 30 35 30 36 | 1000C91346640506
33 33 35 30 30 30 30 41 41 30 45 35 34 37 34 37 | 3350000AA0E54747
41 30 45 34 41 43 46 34 31 36 31 31 30 42 44 33 | A0E4ACF416110BD3
43 41 37 30 33 0d 0a 2b 43 4d 53 20 45 52 52 4f | CA703  +CMS ERRO
52 3a 20 35 30 30 0d                            | R: 500
Received message type 21
SMS senden fehlgeschlagen (Unbekannter Fehler - naja besser als garnichts!!)
Serial device: closing device

I read in the wiki that CMS Error 500 is an undefined error but should have something to do with the network (no connection, etc.). But as I get the same error when only reading SMS from the memory, I believe it must be something different.

Anybody can help or do you think this is worth a bug report?

Best Regards,
Benedikt.

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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