Re: commands, responses and log
Sylvain Ard <[email protected]> Thu, 15 Dec 2016 10:15:30 +0100
| Newsgroups | gmane.linux.drivers.gammu |
|---|---|
| Message-ID | <CAA86q2GSkNc3GRcreAKFLGdprF7gMJ8z65Ske4BN-bp7ZEJi5A@mail.gmail.com> |
I join the log for your command 2016-12-15 0:43 GMT+01:00 gilberto dos santos alves <[email protected]>: > but i understand you already go to step that send sms, and i tell that > this example that is on gammu manual is not good to explain what is going > on. > why? > because we need step by step to understand things lets go avanti! > > put on gammu command explicit place where you want write your log file, > what name and extension you want for your logfile, what type log you want > and what level (1 to 255 (255 is very details)), so my advice for teste > your sms: > > gammu -c /path/your-config-gammurc -d textall -f > /path/your-log-file-for-sms.log sendsms TEXT number-destination > 'your-message-delimited-by-apost' > > -- > gilberto dos santos alves > +55(11)9-8646-5049 > sao paulo - sp - brasil > > > > > > 2016-12-14 21:28 GMT-02:00 gilberto dos santos alves <[email protected]>: > >> congratulations! now that we have commands working and log we cold read >> and analyze! >> >> -- >> gilberto dos santos alves >> +55(11)9-8646-5049 >> sao paulo - sp - brasil >> >> >> >> >> >> 2016-12-14 7:58 GMT-02:00 Sylvain Ard <[email protected]>: >> >>> Hi, >>> >>> OK I have change my config file to : >>> >>> device=/dev/ttyUSB0 >>> connection = at >>> logfile = /home/pi/gammuraspy.log >>> logformat = textalldate >>> gammucoding = utf8 >>> >>> Then I run these commands and got theses results : >>> >>> pi@raspberrypi:~ $ gammu -c /home/pi/gammurc.cfg identify >>> Erreur à l'ouverture du périphérique : périphérique inconnu, occupé ou >>> problème de permissions. >>> pi@raspberrypi:~ $ sudo service gammu-smsd stop >>> pi@raspberrypi:~ $ gammu -c /home/pi/gammurc.cfg identify >>> Périphérique : /dev/ttyUSB0 >>> Fabricant : Huawei >>> Modèle : E169 (E169) >>> Firmware : 11.314.13.51.156 >>> IMEI : 359638018980742 >>> SIM IMSI : 208150009082056 >>> >>> Then I tried to send a sms : >>> I got : >>> >>> pi@raspberrypi:~ $ echo "SMS" | gammu --sendsms TEXT 0778380991 >>> If you want break, press Ctrl+C... >>> Sending SMS 1/1....waiting for network answer..erreur 500, message >>> reference=-1 >>> Erreur inconnue. >>> >>> I join the log >>> Thank you >>> Bye >>> >>> >>> >>> 2016-12-14 10:36 GMT+01:00 Michal Čihař <[email protected]>: >>> >>>> Hi >>>> >>>> Sylvain Ard píše v Po 12. 12. 2016 v 19:42 +0100: >>>> > Hi, >>>> > I do what Gilberto Dos Santos Alves said but I got : >>>> > >>>> > pi@raspberrypi:~ $ gammu -c /home/pi/gammurc.cfg identify >>>> > Warning: Configuration could not be parsed! >>>> > Avertissement: No configuration read, using builtin defaults! >>>> > Erreur à l'ouverture du périphérique: il n'existe pas. >>>> > and my gammurc.cfg is : >>>> > >>>> > connection = at19200 >>>> > logfile = /home/pi/gammuraspy.log >>>> > logformat = textalldate >>>> > gammucoding = utf8 >>>> > I tried with free, at and at19200 but I got always the same error >>>> > Thank you for helping me >>>> >>>> Your file is missing [gammu] section header, see our docs: >>>> >>>> https://wammu.eu/docs/manual/config/index.html#examples >>>> >>>> -- >>>> Michal Čihař | https://cihar.com/ | https://weblate.org/ >>>> >>>> ------------------------------------------------------------ >>>> ------------------ >>>> Check out the vibrant tech community on one of the world's most >>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >>>> _______________________________________________ >>>> Gammu-users mailing list - https://lists.sourceforge.net/ >>>> lists/listinfo/gammu-users >>>> >>>> >>> >>> ------------------------------------------------------------ >>> ------------------ >>> Check out the vibrant tech community on one of the world's most >>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >>> _______________________________________________ >>> Gammu-users mailing list - https://lists.sourceforge.net/ >>> lists/listinfo/gammu-users >>> >>> >> > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Gammu-users mailing list - https://lists.sourceforge.net/ > lists/listinfo/gammu-users > > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users
gammu-sms.log
(application/octet-stream, 13.6 KB)
[Gammu - 1.33.0 built 08:46:05 Aug 14 2013 using GCC 4.6]
[Connection - "at"]
[Connection index - 0]
[Model type - ""]
[Device - "/dev/ttyUSB0"]
[Running on - Linux, kernel 4.4.34-v7+ (#930 SMP Wed Nov 23 15:20:41 GMT 2016)]
Serial device: DTR is up, RTS is up, CAR is up, CTS is up
Setting speed to 19200
[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 "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","GSM","UCS2")"
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"|47G|53S|4DM|22"|2C, S: ("IRA","GSM",
22"|55U|43C|53S|322|22"|29)|0D |0A |0D |0A |4FO|4BK|0D |0A "UCS2")....OK..
Chosen GSM as normal charset
Chosen UCS2 as unicode charset
Getting model
SENDING frametype 0x00/length 0x08/8
41A|54T|2B+|43C|47G|4DM|4DM|0D AT+CGMM.
1 "AT+CGMM"
2 "E169"
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|366|399|0D |0A AT+CGMM...E169..
0D |0A |4FO|4BK|0D |0A ..OK..
[Model name: `E169']
[Model data: `E169']
[Model data: `E169']
[Connected model - "E169"]
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","GSM","UCS2")"
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"|47G|53S|4DM|22"|2C, S: ("IRA","GSM",
22"|55U|43C|53S|322|22"|29)|0D |0A |0D |0A |4FO|4BK|0D |0A "UCS2")....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 "11.314.13.51.156"
3 "OK"
Checking line: OK
AT reply state: 1
RECEIVED frametype 0x00/length 0x22/34
41A|54T|2B+|43C|47G|4DM|52R|0D |0D |0A |311|311|2E.|333|311|344 AT+CGMR...11.314
2E.|311|333|2E.|355|311|2E.|311|355|366|0D |0A |0D |0A |4FO|4BK .13.51.156....OK
0D |0A ..
Received firmware version: "11.314.13.51.156"
Number version is "11,314135"
[Firmware version - "11.314.13.51.156"]
[Connected]
Checking used: UDH len 0, UsedBytes 0, FreeText 160, UsedText 0, FreeBytes 140
Adding text
Copy 160 (max 4)
Defalt text, length 4 4
Text added
Checking at the end: UDH len 0, UsedBytes 4, FreeText 156, UsedText 4, FreeBytes 136
4 4
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: "+33695000695",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|333|366|399|355|300|300|300|366|399|355|22" : "+33695000695"
2C,|311|344|355|0D |0A |0D |0A |4FO|4BK|0D |0A ,145....OK..
SMSC info received
Parsing +CSCA: "+33695000695",145 with +CSCA: @p, @i
Grabbed string from reply: "+33695000695" (parsed 14 bytes)
Parsed phone string "+33695000695"
Phone string decoded as "+33695000695"
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 "0778380991"
SMSC number "+33695000695"
SMS class -1
SMS validity ff
TPMR: 00 0
7 bit SMS, length 4, 4
ddC3
Waiting for modem prompt
SENDING frametype 0x00/length 0x0B/11
41A|54T|2B+|43C|4DM|47G|53S|3D=|311|377|0D AT+CMGS=17.
1 "AT+CMGS=17"
2 "> "
Checking line: >
AT reply state: 7
RECEIVED frametype 0x00/length 0x0F/15
41A|54T|2B+|43C|4DM|47G|53S|3D=|311|377|0D |0D |0A |3E>|20 AT+CMGS=17...>
Sending SMS
SENDING frametype 0x00/length 0x32/50
300|377|399|311|333|333|399|366|300|355|300|300|399|366|46F|355 07913396050096F5
311|311|300|300|300|41A|388|311|377|300|388|377|388|333|399|300 11000A8170878390
311|399|300|300|300|300|46F|46F|300|344|366|344|46F|322|377|300 190000FF0464F270
300|366 06
SENDING frametype 0x00/length 0x01/1
1A .
Leaving GSM_SendSMS
1 "AT+CMGS=17"
2 "> 07913396050096F511000A8170878390190000FF0464F27006"
3 "+CMS ERROR: 500"
Checking line: +CMS ERROR: 500
AT reply state: 5
RECEIVED frametype 0x00/length 0x56/86
41A|54T|2B+|43C|4DM|47G|53S|3D=|311|377|0D |0D |0A |3E>|20 |300 AT+CMGS=17...> 0
377|399|311|333|333|399|366|300|355|300|300|399|366|46F|355|311 7913396050096F51
311|300|300|300|41A|388|311|377|300|388|377|388|333|399|300|311 1000A81708783901
399|300|300|300|300|46F|46F|300|344|366|344|46F|322|377|300|300 90000FF0464F2700
366|0D |0A |0D |0A |2B+|43C|4DM|53S|20 |45E|52R|52R|4FO|52R|3A: 6....+CMS ERROR:
20 |355|300|300|0D |0A 500..
Error 500
Sent SMS on device: "/dev/ttyUSB0"
CMS Error 500: "unknown error"
[Terminating]
[Closing]