buggnokii - Bugs: bug #36936, Not sending SMS with Nokia C2-05

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #36936: Not sending SMS with Nokia C2-05

Submitted by:  Sergey <sol2008>
Submitted on:  Tue Jul 24 12:09:00 2012  
 
Category: gnokiiSeverity: 3 - Normal
Item Group: major malfunctionStatus: Need Info
Privacy: PublicAssigned to: None
Open/Closed: Open

Sat Aug 4 20:36:43 2012, comment #4:

Maybe the phone doesn't like the SMSC number in the AT+CMGS.
Does it work with the recommended configuration instead of using model=AT?

Use model=series40 like it's suggested in the official documentation and see the wiki for troubleshooting as it probably won't work at the first try

Daniele Forsi <dforsi>
Project Administrator
Wed Jul 25 10:43:58 2012, comment #3:

[root@supp-2 bin]# echo Moskow! Putin! KGB! | ./gnokii --sendsms +79168416898 --smsc +79168999100
GNOKII Version 0.6.31
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 = 0
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>C2-05<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0016
02 41 54 2b 47 4d 4d 0d 0d 0a 43 32 2d 30 35 0d | AT+GMM C2-05
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>Nokia<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0017
02 41 54 2b 43 47 4d 49 0d 0d 0a 4e 6f 6b 69 61 | AT+CGMI Nokia
0d 0a 0d 0a 4f 4b 0d | 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: "PCCP437"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x63 / 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 63
Initialisation completed
=====> ENTER gn_sms_send()
enc_chars: 19
ext_chars: 0
total: 17
size of the input string: 19 bytes
number of characters in the input string: 19 chars
=====> ENTER sms_send_single()
General Data Coding
Default Alphabet
size: 17
offset: 0
encoded size: 17
rawsms length: 19
rawsms user data length: 17
dcs: 0x00
Length: 0x13
user_data_length: 0x11
ValidityIndicator: 2
user_data: CDF77CFDBE8740D03A3DED0E8196476108
Input is 19 bytes long
SMS is 17 octets long
Sending
Message sent: 0x65 / 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: 0x65 / 0x0010
02 41 54 2b 43 4d 47 46 3d 30 0d 0d 0a 4f 4b 0d | AT+CMGF=0 OK
Received message type 65
PDU mode set
Sending initial sequence
Message sent: 0x66 / 0x000b
41 54 2b 43 4d 47 53 3d 33 31 0d | AT+CMGS=31
write: [AT+CMGS=31<cr>]
read : [AT+CMGS=31<cr><cr><lf>> ]
Message received: 0x66 / 0x000f
01 41 54 2b 43 4d 47 53 3d 33 31 0d 0d 0a 3e | AT+CMGS=31 >
Received message type 66
Got response: No error.
Sending frame: 07919761989901F011000B919761486198F80000AA13CDF77CFDBE8740D03A3DED0E8196476108
Message sent: 0x21 / 0x004f
30 37 39 31 39 37 36 31 39 38 39 39 30 31 46 30 | 07919761989901F0
31 31 30 30 30 42 39 31 39 37 36 31 34 38 36 31 | 11000B9197614861
39 38 46 38 30 30 30 30 41 41 31 33 43 44 46 37 | 98F80000AA13CDF7
37 43 46 44 42 45 38 37 34 30 44 30 33 41 33 44 | 7CFDBE8740D03A3D
45 44 30 45 38 31 39 36 34 37 36 31 30 38 1a | ED0E8196476108
write: [07919761989901F011000B919761486198F80000AA13CDF77CFDBE8740D03A3DED0E8196476108^Z]
read : [^A^4919761989901F011000B919761486198F80000AA13CDF77CFDBE8740D03A3DED0E8196476108^Z<cr><lf>+CMS ERROR: 500<cr><lf>]
Message received: 0x21 / 0x0062
04 01 f4 39 31 39 37 36 31 39 38 39 39 30 31 46 | 919761989901F
30 31 31 30 30 30 42 39 31 39 37 36 31 34 38 36 | 011000B919761486
31 39 38 46 38 30 30 30 30 41 41 31 33 43 44 46 | 198F80000AA13CDF
37 37 43 46 44 42 45 38 37 34 30 44 30 33 41 33 | 77CFDBE8740D03A3
44 45 44 30 45 38 31 39 36 34 37 36 31 30 38 1a | DED0E8196476108
0d 0a 2b 43 4d 53 20 45 52 52 4f 52 3a 20 35 30 | +CMS ERROR: 50
30 0d | 0
Received message type 21
SMS Send failed (Unknown error - well better than nothing!!)
Serial device: closing device

Sergey <sol2008>
Wed Jul 25 09:52:00 2012, comment #2:

Also the number 89... doesn't look good to me: if it's an international number format it should start with +

Daniele Forsi <dforsi>
Project Administrator
Tue Jul 24 21:07:06 2012, comment #1:

Would you please try gnokii 0.6.31?

Pawel Kot <pkot>
Project Administrator
Tue Jul 24 12:09:00 2012, original submission:

Not sending SMS with Nokia C2-05 in AT mode.

[root@supp-2 etc]# lsusb
Bus 001 Device 003: ID 0421:0577 Nokia Mobile Phones
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
[root@supp-2 etc]#

dmesg:
[1201289.774033] usb 1-2: new full-speed USB device number 3 using ohci_hcd
[1201289.936658] usb 1-2: New USB device found, idVendor=0421, idProduct=0577
[1201289.936743] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[1201289.936889] usb 1-2: Product: C2-05
[1201289.936964] usb 1-2: Manufacturer: Nokia
[1201289.937055] usb 1-2: SerialNumber: 352447054369985
[1201289.958334] cdc_acm 1-2:1.3: ttyACM0: USB ACM device

[root@supp-2 etc]# gnokii --ident
GNOKII Version 0.6.30
Couldn't read /root/.config/gnokii/config config file.
Couldn't read /etc/xdg/gnokii/config 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 = 0
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>C2-05<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0016
02 41 54 2b 47 4d 4d 0d 0d 0a 43 32 2d 30 35 0d | AT+GMM C2-05
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>Nokia<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0017
02 41 54 2b 43 47 4d 49 0d 0d 0a 4e 6f 6b 69 61 | AT+CGMI Nokia
0d 0a 0d 0a 4f 4b 0d | 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: "PCCP437"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x63 / 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 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>C2-05<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0016
02 41 54 2b 47 4d 4d 0d 0d 0a 43 32 2d 30 35 0d | AT+GMM C2-05
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>Nokia<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0017
02 41 54 2b 43 47 4d 49 0d 0d 0a 4e 6f 6b 69 61 | AT+CGMI Nokia
0d 0a 0d 0a 4f 4b 0d | 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>V 08.60<cr><lf>21-12-11<cr><lf>RM-724<cr><lf>(c) Nokia <cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0042
02 41 54 2b 43 47 4d 52 0d 0d 0a 56 20 30 38 2e | AT+CGMR V 08.
36 30 0d 0a 32 31 2d 31 32 2d 31 31 0d 0a 52 4d | 60 21-12-11 RM
2d 37 32 34 0d 0a 28 63 29 20 4e 6f 6b 69 61 20 | -724 (c) Nokia
20 20 20 20 20 20 20 20 20 20 20 0d 0a 0d 0a 4f | 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>352447054369985<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0021
02 41 54 2b 43 47 53 4e 0d 0d 0a 33 35 32 34 34 | AT+CGSN 35244
37 30 35 34 33 36 39 39 38 35 0d 0a 0d 0a 4f 4b | 7054369985 OK
0d |
Received message type 06
IMEI : 352447054369985
Manufacturer : Nokia
No flags section in the config file.
Model : C2-05
Product name : C2-05
Revision : V 08.60
Serial device: closing device
[root@supp-2 etc]#

And now? we send test sms:

[root@supp-2 etc]# echo Moskow! Putin! KGB! | gnokii --sendsms 89168416898 --smsc +79168999100
GNOKII Version 0.6.30
Couldn't read /root/.config/gnokii/config config file.
Couldn't read /etc/xdg/gnokii/config 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 = 0
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>C2-05<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0016
02 41 54 2b 47 4d 4d 0d 0d 0a 43 32 2d 30 35 0d | AT+GMM C2-05
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>Nokia<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0017
02 41 54 2b 43 47 4d 49 0d 0d 0a 4e 6f 6b 69 61 | AT+CGMI Nokia
0d 0a 0d 0a 4f 4b 0d | 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: "PCCP437"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x63 / 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 63
Initialisation completed
=====> ENTER gn_sms_send()
General Data Coding
Default Alphabet
encoded size: 17
rawsms length: 19
rawsms user data length: 17
dcs: 0x00
Length: 0x13
user_data_length: 0x11
ValidityIndicator: 2
user_data: CDF77CFDBE8740D03A3DED0E8196476108
Input is 19 characters long
SMS is 17 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 : [AT+CMGF=0<cr><cr><lf>OK<cr><lf>]
Message received: 0x65 / 0x0010
02 41 54 2b 43 4d 47 46 3d 30 0d 0d 0a 4f 4b 0d | AT+CMGF=0 OK
Received message type 65
PDU mode set
Sending initial sequence
Message sent: 0x66 / 0x000b
41 54 2b 43 4d 47 53 3d 33 31 0d | AT+CMGS=31
write: [AT+CMGS=31<cr>]
read : [AT+CMGS=31<cr><cr><lf>> ]
Message received: 0x66 / 0x000f
01 41 54 2b 43 4d 47 53 3d 33 31 0d 0d 0a 3e | AT+CMGS=31 >
Received message type 66
Got response: No error.
Sending frame: 07919761989901F011000B819861486198F80000AA13CDF77CFDBE8740D03A3DED0E8196476108
Message sent: 0x21 / 0x004f
30 37 39 31 39 37 36 31 39 38 39 39 30 31 46 30 | 07919761989901F0
31 31 30 30 30 42 38 31 39 38 36 31 34 38 36 31 | 11000B8198614861
39 38 46 38 30 30 30 30 41 41 31 33 43 44 46 37 | 98F80000AA13CDF7
37 43 46 44 42 45 38 37 34 30 44 30 33 41 33 44 | 7CFDBE8740D03A3D
45 44 30 45 38 31 39 36 34 37 36 31 30 38 1a | ED0E8196476108
write: [07919761989901F011000B819861486198F80000AA13CDF77CFDBE8740D03A3DED0E8196476108^Z]
read : [^A^4919761989901F011000B819861486198F80000AA13CDF77CFDBE8740D03A3DED0E8196476108^Z<cr><lf>+CMS ERROR: 500<cr><lf>]
Message received: 0x21 / 0x0062
04 01 f4 39 31 39 37 36 31 39 38 39 39 30 31 46 | 919761989901F
30 31 31 30 30 30 42 38 31 39 38 36 31 34 38 36 | 011000B819861486
31 39 38 46 38 30 30 30 30 41 41 31 33 43 44 46 | 198F80000AA13CDF
37 37 43 46 44 42 45 38 37 34 30 44 30 33 41 33 | 77CFDBE8740D03A3
44 45 44 30 45 38 31 39 36 34 37 36 31 30 38 1a | DED0E8196476108
0d 0a 2b 43 4d 53 20 45 52 52 4f 52 3a 20 35 30 | +CMS ERROR: 50
30 0d | 0
Received message type 21
SMS Send failed (Unknown error - well better than nothing!!)
Serial device: closing device
[root@supp-2 etc]#

Sergey <sol2008>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by dforsi (Posted a comment)
  • -unavailable- added by pkot (Posted a comment)
  • -unavailable- added by sol2008 (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Aug 4 20:36:43 2012dforsiStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1