Re: Modemmanager - how to send sms? - receiving is ok



Hi,

I tried the sms-send.py from the master branch (cloned 5 days ago, no changes in the repo), with Huawei E173s-2 modem and I got Operation not allowed error message. Receiving info and sms are ok with the python scripts.

I attached the gammu log, which was able to send sms, to analyze and fix the issue with this kind of modem.

Anyway, with that modem we must set usbserial via modprobe, using vendor/product id, otherwise it does not recognised as modem.

Is that possible to fix this issue into MM_05 and/or master branch?

Anyway, if you need more info, please let me know, I will provide it.

Thank you!

István
[Gammu            - 1.31.0 built 09:32:55 Dec 22 2011 using GCC 4.6]
[Connection       - "at"]
[Connection index - 0]
[Model type       - ""]
[Device           - "/dev/ttyUSB0"]
[Running on       - Linux, kernel 2.6.34.1-vortex86-sg (#1 Wed Jul 14 16:05:42 CST 2010)]
Serial device: DTR is down, RTS is down, CAR is down, CTS is down
Setting DTR failed, disabling setting of DTR/RTS signals.
Setting RTS failed, disabling setting of DTR/RTS signals.
[Module           - "auto"]
Escaping SMS mode
SENDING frametype 0x00/length 0x02/2
1B |0D                                                          ..              
Sending simple AT command to wake up some devices
SENDING frametype 0x00/length 0x03/3
41A|54T|0D                                                      AT.             
1 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x04/4
4FO|4BK|0D |0A                                                  OK..            
Enabling echo
SENDING frametype 0x00/length 0x05/5
41A|54T|45E|311|0D                                              ATE1.           
1 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x04/4
4FO|4BK|0D |0A                                                  OK..            
Trying Motorola mode switch
SENDING frametype 0x00/length 0x0A/10
41A|54T|2B+|4DM|4FO|44D|45E|3D=|322|0D                          AT+MODE=2.      
1 "AT+MODE=2"
2 "COMMAND NOT SUPPORT"
Checking line: COMMAND NOT SUPPORT
AT reply state: 3
RECEIVED frametype 0x00/length 0x21/33
41A|54T|2B+|4DM|4FO|44D|45E|3D=|322|0D |0D |0A |43C|4FO|4DM|4DM AT+MODE=2...COMM
41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO|52R|54T|0D  AND NOT SUPPORT.
0A                                                              .               
Seems not to be supported
Enabling CME errors
SENDING frametype 0x00/length 0x0A/10
41A|54T|2B+|43C|4DM|45E|45E|3D=|311|0D                          AT+CMEE=1.      
1 "AT+CMEE=1"
2 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x10/16
41A|54T|2B+|43C|4DM|45E|45E|3D=|311|0D |0D |0A |4FO|4BK|0D |0A  AT+CMEE=1...OK..
SENDING frametype 0x00/length 0x09/9
41A|54T|2B+|43C|53S|43C|53S|3F?|0D                              AT+CSCS?.       
1 "AT+CSCS?"
2 "+CSCS: "UCS2""
3 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x20/32
41A|54T|2B+|43C|53S|43C|53S|3F?|0D |0D |0A |2B+|43C|53S|43C|53S AT+CSCS?...+CSCS
3A:|20 |22"|55U|43C|53S|322|22"|0D |0A |0D |0A |4FO|4BK|0D |0A  : "UCS2"....OK..
SENDING frametype 0x00/length 0x08/8
41A|54T|2B+|43C|47G|4DM|49I|0D                                  AT+CGMI.        
1 "AT+CGMI"
2 "huawei"
3 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x18/24
41A|54T|2B+|43C|47G|4DM|49I|0D |0D |0A |68h|75u|61a|77w|65e|69i AT+CGMI...huawei
0D |0A |0D |0A |4FO|4BK|0D |0A                                  ....OK..        
Manufacturer info received
[Manufacturer: Huawei]
SENDING frametype 0x00/length 0x0A/10
41A|54T|2B+|43C|53S|43C|53S|3D=|3F?|0D                          AT+CSCS=?.      
1 "AT+CSCS=?"
2 "+CSCS: ("IRA","UCS2","GSM")"
3 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x2F/47
41A|54T|2B+|43C|53S|43C|53S|3D=|3F?|0D |0D |0A |2B+|43C|53S|43C AT+CSCS=?...+CSC
53S|3A:|20 |28(|22"|49I|52R|41A|22"|2C,|22"|55U|43C|53S|322|22" S: ("IRA","UCS2"
2C,|22"|47G|53S|4DM|22"|29)|0D |0A |0D |0A |4FO|4BK|0D |0A      ,"GSM")....OK.. 
Chosen GSM as normal charset
Chosen UCS2 as unicode charset
SENDING frametype 0x00/length 0x0E/14
41A|54T|2B+|43C|53S|43C|53S|3D=|22"|47G|53S|4DM|22"|0D          AT+CSCS="GSM".  
1 "AT+CSCS="GSM""
2 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x14/20
41A|54T|2B+|43C|53S|43C|53S|3D=|22"|47G|53S|4DM|22"|0D |0D |0A  AT+CSCS="GSM"...
4FO|4BK|0D |0A                                                  OK..            
SENDING frametype 0x00/length 0x09/9
41A|54T|2B+|43C|53S|43C|53S|3F?|0D                              AT+CSCS?.       
1 "AT+CSCS?"
2 "+CSCS: "GSM""
3 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x1F/31
41A|54T|2B+|43C|53S|43C|53S|3F?|0D |0D |0A |2B+|43C|53S|43C|53S AT+CSCS?...+CSCS
3A:|20 |22"|47G|53S|4DM|22"|0D |0A |0D |0A |4FO|4BK|0D |0A      : "GSM"....OK.. 
Getting model
SENDING frametype 0x00/length 0x08/8
41A|54T|2B+|43C|47G|4DM|4DM|0D                                  AT+CGMM.        
1 "AT+CGMM"
2 "E173"
3 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x16/22
41A|54T|2B+|43C|47G|4DM|4DM|0D |0D |0A |45E|311|377|333|0D |0A  AT+CGMM...E173..
0D |0A |4FO|4BK|0D |0A                                          ..OK..          
[Model name: `E173']
[Model data: `E173']
[Model data: `E173']
[Connected model  - "E173"]
Checking for OBEX support
SENDING frametype 0x00/length 0x0B/11
41A|54T|2B+|43C|50P|52R|4FO|54T|3D=|3F?|0D                      AT+CPROT=?.     
1 "AT+CPROT=?"
2 "COMMAND NOT SUPPORT"
Checking line: COMMAND NOT SUPPORT
AT reply state: 3
RECEIVED frametype 0x00/length 0x22/34
41A|54T|2B+|43C|50P|52R|4FO|54T|3D=|3F?|0D |0D |0A |43C|4FO|4DM AT+CPROT=?...COM
4DM|41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO|52R|54T MAND NOT SUPPORT
0D |0A                                                          ..              
Checking for SYNCML/OBEX support
SENDING frametype 0x00/length 0x0C/12
41A|54T|2B+|53S|59Y|4EN|43C|4DM|4CL|3D=|3F?|0D                  AT+SYNCML=?.    
1 "AT+SYNCML=?"
2 "COMMAND NOT SUPPORT"
Checking line: COMMAND NOT SUPPORT
AT reply state: 3
RECEIVED frametype 0x00/length 0x23/35
41A|54T|2B+|53S|59Y|4EN|43C|4DM|4CL|3D=|3F?|0D |0D |0A |43C|4FO AT+SYNCML=?...CO
4DM|4DM|41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO|52R MMAND NOT SUPPOR
54T|0D |0A                                                      T..             
Checking for SYNCML/OBEX support
SENDING frametype 0x00/length 0x0D/13
41A|54T|24$|54T|53S|53S|50P|43C|53S|57W|3D=|3F?|0D              AT$TSSPCSW=?.   
1 "AT$TSSPCSW=?"
2 "COMMAND NOT SUPPORT"
Checking line: COMMAND NOT SUPPORT
AT reply state: 3
RECEIVED frametype 0x00/length 0x24/36
41A|54T|24$|54T|53S|53S|50P|43C|53S|57W|3D=|3F?|0D |0D |0A |43C AT$TSSPCSW=?...C
4FO|4DM|4DM|41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO OMMAND NOT SUPPO
52R|54T|0D |0A                                                  RT..            
[Module           - "A2D|iPAQ|at|M20|S25|MC35|TC35|C35i|S65|S300|5110|5130|5190|5210|6110|6130|6150|6190|6210|6250|6310|6310i|6510|7110|8210|8250|8290|8310|8390|8850|8855|8890|8910|9110|9210"]
Escaping SMS mode
SENDING frametype 0x00/length 0x02/2
1B |0D                                                          ..              
Sending simple AT command to wake up some devices
SENDING frametype 0x00/length 0x03/3
41A|54T|0D                                                      AT.             
1 "AT"
2 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x09/9
41A|54T|0D |0D |0A |4FO|4BK|0D |0A                              AT...OK..       
Enabling echo
SENDING frametype 0x00/length 0x05/5
41A|54T|45E|311|0D                                              ATE1.           
1 "ATE1"
2 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x0B/11
41A|54T|45E|311|0D |0D |0A |4FO|4BK|0D |0A                      ATE1...OK..     
Trying Motorola mode switch
SENDING frametype 0x00/length 0x0A/10
41A|54T|2B+|4DM|4FO|44D|45E|3D=|322|0D                          AT+MODE=2.      
1 "AT+MODE=2"
2 "COMMAND NOT SUPPORT"
Checking line: COMMAND NOT SUPPORT
AT reply state: 3
RECEIVED frametype 0x00/length 0x21/33
41A|54T|2B+|4DM|4FO|44D|45E|3D=|322|0D |0D |0A |43C|4FO|4DM|4DM AT+MODE=2...COMM
41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO|52R|54T|0D  AND NOT SUPPORT.
0A                                                              .               
Seems not to be supported
Enabling CME errors
SENDING frametype 0x00/length 0x0A/10
41A|54T|2B+|43C|4DM|45E|45E|3D=|311|0D                          AT+CMEE=1.      
1 "AT+CMEE=1"
2 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x10/16
41A|54T|2B+|43C|4DM|45E|45E|3D=|311|0D |0D |0A |4FO|4BK|0D |0A  AT+CMEE=1...OK..
SENDING frametype 0x00/length 0x09/9
41A|54T|2B+|43C|53S|43C|53S|3F?|0D                              AT+CSCS?.       
1 "AT+CSCS?"
2 "+CSCS: "GSM""
3 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x1F/31
41A|54T|2B+|43C|53S|43C|53S|3F?|0D |0D |0A |2B+|43C|53S|43C|53S AT+CSCS?...+CSCS
3A:|20 |22"|47G|53S|4DM|22"|0D |0A |0D |0A |4FO|4BK|0D |0A      : "GSM"....OK.. 
SENDING frametype 0x00/length 0x08/8
41A|54T|2B+|43C|47G|4DM|49I|0D                                  AT+CGMI.        
1 "AT+CGMI"
2 "huawei"
3 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x18/24
41A|54T|2B+|43C|47G|4DM|49I|0D |0D |0A |68h|75u|61a|77w|65e|69i AT+CGMI...huawei
0D |0A |0D |0A |4FO|4BK|0D |0A                                  ....OK..        
Manufacturer info received
[Manufacturer: Huawei]
SENDING frametype 0x00/length 0x0A/10
41A|54T|2B+|43C|53S|43C|53S|3D=|3F?|0D                          AT+CSCS=?.      
1 "AT+CSCS=?"
2 "+CSCS: ("IRA","UCS2","GSM")"
3 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x2F/47
41A|54T|2B+|43C|53S|43C|53S|3D=|3F?|0D |0D |0A |2B+|43C|53S|43C AT+CSCS=?...+CSC
53S|3A:|20 |28(|22"|49I|52R|41A|22"|2C,|22"|55U|43C|53S|322|22" S: ("IRA","UCS2"
2C,|22"|47G|53S|4DM|22"|29)|0D |0A |0D |0A |4FO|4BK|0D |0A      ,"GSM")....OK.. 
Chosen GSM as normal charset
Chosen UCS2 as unicode charset
Checking for OBEX support
SENDING frametype 0x00/length 0x0B/11
41A|54T|2B+|43C|50P|52R|4FO|54T|3D=|3F?|0D                      AT+CPROT=?.     
1 "AT+CPROT=?"
2 "COMMAND NOT SUPPORT"
Checking line: COMMAND NOT SUPPORT
AT reply state: 3
RECEIVED frametype 0x00/length 0x22/34
41A|54T|2B+|43C|50P|52R|4FO|54T|3D=|3F?|0D |0D |0A |43C|4FO|4DM AT+CPROT=?...COM
4DM|41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO|52R|54T MAND NOT SUPPORT
0D |0A                                                          ..              
Checking for SYNCML/OBEX support
SENDING frametype 0x00/length 0x0C/12
41A|54T|2B+|53S|59Y|4EN|43C|4DM|4CL|3D=|3F?|0D                  AT+SYNCML=?.    
1 "AT+SYNCML=?"
2 "COMMAND NOT SUPPORT"
Checking line: COMMAND NOT SUPPORT
AT reply state: 3
RECEIVED frametype 0x00/length 0x23/35
41A|54T|2B+|53S|59Y|4EN|43C|4DM|4CL|3D=|3F?|0D |0D |0A |43C|4FO AT+SYNCML=?...CO
4DM|4DM|41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO|52R MMAND NOT SUPPOR
54T|0D |0A                                                      T..             
Checking for SYNCML/OBEX support
SENDING frametype 0x00/length 0x0D/13
41A|54T|24$|54T|53S|53S|50P|43C|53S|57W|3D=|3F?|0D              AT$TSSPCSW=?.   
1 "AT$TSSPCSW=?"
2 "COMMAND NOT SUPPORT"
Checking line: COMMAND NOT SUPPORT
AT reply state: 3
RECEIVED frametype 0x00/length 0x24/36
41A|54T|24$|54T|53S|53S|50P|43C|53S|57W|3D=|3F?|0D |0D |0A |43C AT$TSSPCSW=?...C
4FO|4DM|4DM|41A|4EN|44D|20 |4EN|4FO|54T|20 |53S|55U|50P|50P|4FO OMMAND NOT SUPPO
52R|54T|0D |0A                                                  RT..            
Getting firmware versions
SENDING frametype 0x00/length 0x08/8
41A|54T|2B+|43C|47G|4DM|52R|0D                                  AT+CGMR.        
1 "AT+CGMR"
2 "21.017.09.00.55"
3 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x21/33
41A|54T|2B+|43C|47G|4DM|52R|0D |0D |0A |322|311|2E.|300|311|377 AT+CGMR...21.017
2E.|300|399|2E.|300|300|2E.|355|355|0D |0A |0D |0A |4FO|4BK|0D  .09.00.55....OK.
0A                                                              .               
Received firmware version: "21.017.09.00.55"
Number version is "21,017090"
[Firmware version - "21.017.09.00.55"]
[Connected]
Checking used: UDH len 0, UsedBytes 0, FreeText 160, UsedText 0, FreeBytes 140
Adding text
Copy 160 (max 22)
Defalt text, length 22 22
Text added
Checking at the end: UDH len 0, UsedBytes 20, FreeText 138, UsedText 22, FreeBytes 120
22 22
Entering GSM_GetSMSC
Getting SMSC
SENDING frametype 0x00/length 0x09/9
41A|54T|2B+|43C|53S|43C|41A|3F?|0D                              AT+CSCA?.       
1 "AT+CSCA?"
2 "+CSCA: "+36309888000",145"
3 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x2C/44
41A|54T|2B+|43C|53S|43C|41A|3F?|0D |0D |0A |2B+|43C|53S|43C|41A AT+CSCA?...+CSCA
3A:|20 |22"|2B+|333|366|333|300|399|388|388|388|300|300|300|22" : "+36309888000"
2C,|311|344|355|0D |0A |0D |0A |4FO|4BK|0D |0A                  ,145....OK..    
SMSC info received
Parsing +CSCA: "+36309888000",145 with +CSCA: @p, @i
Grabbed string from reply: "+36309888000" (parsed 14 bytes)
Parsed phone string "+36309888000"
Phone string decoded as "+36309888000"
Parsed int 145
Leaving GSM_GetSMSC
Entering GSM_SendSMS
Trying SMS PDU mode
SENDING frametype 0x00/length 0x0A/10
41A|54T|2B+|43C|4DM|47G|46F|3D=|300|0D                          AT+CMGF=0.      
1 "AT+CMGF=0"
2 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x10/16
41A|54T|2B+|43C|4DM|47G|46F|3D=|300|0D |0D |0A |4FO|4BK|0D |0A  AT+CMGF=0...OK..
SMS Submit
Recipient number "+36204489581"
SMSC number "+36309888000"
SMS class -1
SMS validity ff
TPMR: 00 0
7 bit SMS, length 20, 22
Falevel-kitorlos-vadon
Waiting for modem prompt
SENDING frametype 0x00/length 0x0B/11
41A|54T|2B+|43C|4DM|47G|53S|3D=|333|344|0D                      AT+CMGS=34.     
1 "AT+CMGS=34"
2 "> "
Checking line: > 
AT reply state: 7
RECEIVED frametype 0x00/length 0x0F/15
41A|54T|2B+|43C|4DM|47G|53S|3D=|333|344|0D |0D |0A |3E>|20      AT+CMGS=34...>  
Sending SMS
SENDING frametype 0x00/length 0x54/84
300|377|399|311|366|333|300|333|388|399|388|388|300|300|46F|300 07916303898800F0
311|311|300|300|300|42B|399|311|366|333|300|322|344|344|399|388 11000B9163024498
388|355|46F|311|300|300|300|300|46F|46F|311|366|43C|366|333|300 85F10000FF16C630
42B|42B|366|43C|322|46F|42B|333|355|42B|45E|42B|333|344|46F|44D BB6C2FB35BEB34FD
322|44D|366|377|42B|46F|45E|377|322|44D|377|42B|399|388|46F|43C 2D67BFE72D7B98FC
377|366|300|333                                                 7603            
SENDING frametype 0x00/length 0x01/1
1A                                                              .               
Leaving GSM_SendSMS
1 "AT+CMGS=34"
2 "> 07916303898800F011000B916302449885F10000FF16C630BB6C2FB35BEB34FD2D67BFE72D7B98FC7603"
3 "+CMGS: 0"
4 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x76/118
41A|54T|2B+|43C|4DM|47G|53S|3D=|333|344|0D |0D |0A |3E>|20 |300 AT+CMGS=34...> 0
377|399|311|366|333|300|333|388|399|388|388|300|300|46F|300|311 7916303898800F01
311|300|300|300|42B|399|311|366|333|300|322|344|344|399|388|388 1000B91630244988
355|46F|311|300|300|300|300|46F|46F|311|366|43C|366|333|300|42B 5F10000FF16C630B
42B|366|43C|322|46F|42B|333|355|42B|45E|42B|333|344|46F|44D|322 B6C2FB35BEB34FD2
44D|366|377|42B|46F|45E|377|322|44D|377|42B|399|388|46F|43C|377 D67BFE72D7B98FC7
366|300|333|1A |0D |0A |2B+|43C|4DM|47G|53S|3A:|20 |300|0D |0A  603...+CMGS: 0..
0D |0A |4FO|4BK|0D |0A                                          ..OK..          
SMS sent OK
Parsing +CMGS: 0 with +CMGS: @i
Parsed int 0
Sent SMS on device: "/dev/ttyUSB0"
[Terminating]
[Closing]


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