Re: communication freeze after send sms
gilberto dos santos alves <[email protected]>
| Newsgroups | gmane.linux.drivers.gammu |
|---|---|
| Message-ID | <CAP9G-NLMcARAp3iG=9_mAa3ptCSh0ooLuMkhhyFMHwsV_fcn7A@mail.gmail.com> |
hummm. you are using direct at command. please if possible using gammu -c gammurc -d textalldate -f gammu6.log identify where gammurc is [gammu] device = /dev/ttyUSB2 connection = at9600 and gammu6.log will output (be sure use root user) see your device at dmesg file. see that there are some delay abount 7 seconds to gammu say that is not a device there but we need display what is going on. root@brzpcrv415:/home/usradm/gammu16abril# cat gammu6.log Sun 2016/04/03 16:06:03: [Gammu - 1.37.0] Sun 2016/04/03 16:06:03: [Connection - "at9600"] Sun 2016/04/03 16:06:03: [Connection index - 0] Sun 2016/04/03 16:06:03: [Model type - ""] Sun 2016/04/03 16:06:03: [Device - "/dev/ttyUSB2"] Sun 2016/04/03 16:06:03: [Running on - Linux, kernel 4.2.0-34-generic (#39-Ubuntu SMP Thu Mar 10 22:13:01 UTC 2016)] Sun 2016/04/03 16:06:03: Serial device: DTR is up, RTS is up, CAR is up, CTS is up Sun 2016/04/03 16:06:03: Setting speed to 9600 Sun 2016/04/03 16:06:03: [Module - "auto"] Sun 2016/04/03 16:06:03: Escaping SMS mode Sun 2016/04/03 16:06:03: SENDING frame type 0x00/length 0x02/2 Sun 2016/04/03 16:06:03: 1B |0D .. Sun 2016/04/03 16:06:03: Sending simple AT command to wake up some devices Sun 2016/04/03 16:06:03: SENDING frame type 0x00/length 0x03/3 Sun 2016/04/03 16:06:03: 41A|54T|0D AT. Sun 2016/04/03 16:06:24: Enabling echo Sun 2016/04/03 16:06:24: SENDING frame type 0x00/length 0x05/5 Sun 2016/04/03 16:06:24: 41A|54T|45E|311|0D ATE1. Sun 2016/04/03 16:06:34: Phone does not support enabled echo, it can not work with Gammu! Sun 2016/04/03 16:06:34: Init:GSM_TryGetModel failed with error TIMEOUT[14]: Sem resposta no tempo especificado. Provávelmente celular desconectado. Sun 2016/04/03 16:06:34: [Terminating] Sun 2016/04/03 16:06:34: [Closing] 2016-04-03 13:11 GMT-03:00 Cyrille Giquello <[email protected]>: > Thanks Gilberto, > > I initially posted 2 urls for details. > > Here an example: > > $ gammu --identify > Device : /dev/ttyACM0 > Manufacturer : Broadcom > Model : unknown (GT-S5360) > Firmware : BCM21553_Modem_SI1220.2_V2.4 > > $ sudo picocom /dev/ttyACM0 > ... > AT > OK > AT+CMGF=1 > OK > AT+CMGS=06xxxxxxxx > > coucou > ctrl+z > > After "ctrl+z" gammu infinitly waiting for netwok response ... I do a > crtl+c to get back the shell. Nothing append. > But when I unplug the phone, Hop! The sms goes on the air and arrived in > the destination phone. > So SMS send works, but not like attended, and it's not usable ;-( > > The only idea I got, but perhaps it's a wrong way : > > Because of the unplug phone behavior I think about that the modem is > waiting for a state change on a pin, like the DCD (Data Carrier Detect) > that the SMS specification talk about for +CMGS command: > > http://www.etsi.org/deliver/etsi_gts/07/0705/05.03.00_60/gsmts_0705v050300p.pdf > page 56 > - the DCD signal shall be in ON state while text is entered > > I had a read in gammu 1.3.7 source code and found nothing about that. > > Thanks again > Cyrille. > > > Le 03/04/2016 17:40, gilberto dos santos alves a écrit : > > please post exactly sms command are you using. please shadow sensible > information. > thanks. > > > 2016-04-03 10:37 GMT-03:00 Cyrille Giquello <[email protected]>: > >> Hi, >> thanks for your answer, but the problem is not with characters or >> encoding. For testing I only use one simple word like "test" or "coucou". >> I'd tested with gammu and picocom. >> >> Cheers >> Cyrille. >> >> >> Le 03/04/2016 04:41, gilberto dos santos alves a écrit : >> >> hi. if you look carefully at this mailing list you will find same problem >> that you describe. >> look about characters on bash: >> ' apostrofe or single quote >> " double quote >> ` acent acute in portuguese we say crase >> ´ acent acute in portuguese we say grave >> >> when you use a bash script some of these are special meaning like used on >> mysql database, like used on rst files used for documents. >> >> try manualy send a sms using a terminal (prefer using utf8 encode or >> latin1 encode) >> >> using gammu manual or examples from this mailinglist. >> >> use your nokia with gammu. >> >> >> 2016-04-02 16:59 GMT-03:00 Cyrille Giquello < <[email protected]> >> [email protected]>: >> >>> Hi, >>> >>> For 2 days I try to send sms but at the end of the send sms process the >>> communcation freeze, and the sms goes in the air only after cable >>> unpluged. Nothing found on Internet about this diagnostic. >>> >>> I wrote more details here: >>> on a gammu closed issue: <https://github.com/gammu/gammu/issues/204> >>> https://github.com/gammu/gammu/issues/204 >>> then at stackoverflow: >>> >>> http://stackoverflow.com/questions/36371993/serial-communication-freeze-at-sms-send-gammu-picocom-on-linux >>> >>> I did tests with a Raspberry Pi 1 running "Raspbian", a laptop running >>> "Ubuntu 14.04 LTS" and phones "Samsumg Galaxy Y (Broadcom GT-S5360)" and >>> "Nokia 6303i classic". The problem occurs with each couple of hardware. >>> >>> AT commands work fine, the problem occurs at the end of sms send >>> process, after the crtl+z : the communication is freezed until I do a >>> ctrl+c or a kill. And the writed sms goes on the air when I unplug the >>> phone ; so that mean the communication was fine, but not finished. >>> >>> I lost lost lost. >>> >>> Thanks for reading >>> Cyrille. >>> >>> -- >>> >>> Cyrille Giquello - 06 32 33 02 18 - <[email protected]> >>> [email protected] - 37000 Tours >>> >>> (¯`·._.·[ Coopérateur @ Artefacts - <http://artefacts.coop> >>> http://artefacts.coop ]·._.·´¯) >>> ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¸¸,ø¤º°`°º¤ø¸¸,ø¤º°`°º¤ø >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> Transform Data into Opportunity. >>> Accelerate data analysis in your applications with >>> Intel Data Analytics Acceleration Library. >>> Click to learn more. >>> http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 >>> _______________________________________________ >>> Gammu-users mailing list - >>> <https://lists.sourceforge.net/lists/listinfo/gammu-users> >>> https://lists.sourceforge.net/lists/listinfo/gammu-users >>> >> >> >> >> -- >> gilberto dos santos alves >> +55(11)9-8646-5049 >> sao paulo - sp - brasil >> >> >> >> >> >> >> ------------------------------------------------------------------------------ >> Transform Data into Opportunity. >> Accelerate data analysis in your applications with >> Intel Data Analytics Acceleration Library. >> Click to learn more.http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 >> >> >> >> _______________________________________________ >> Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users >> >> >> -- >> >> Cyrille Giquello - 06 32 33 02 18 - [email protected] - 37000 Tours >> >> (¯`·._.·[ Coopérateur @ Artefacts - http://artefacts.coop ]·._.·´¯) >> ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¸¸,ø¤º°`°º¤ø¸¸,ø¤º°`°º¤ø >> >> >> >> ------------------------------------------------------------------------------ >> Transform Data into Opportunity. >> Accelerate data analysis in your applications with >> Intel Data Analytics Acceleration Library. >> Click to learn more. >> http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 >> _______________________________________________ >> Gammu-users mailing list - >> https://lists.sourceforge.net/lists/listinfo/gammu-users >> >> > > > -- > gilberto dos santos alves > +55(11)9-8646-5049 > sao paulo - sp - brasil > > > > > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more.http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 > > > > _______________________________________________ > Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users > > > -- > > Cyrille Giquello - 06 32 33 02 18 - [email protected] - 37000 Tours > > (¯`·._.·[ Coopérateur @ Artefacts - http://artefacts.coop ]·._.·´¯) > ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¸¸,ø¤º°`°º¤ø¸¸,ø¤º°`°º¤ø > > > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 > _______________________________________________ > Gammu-users mailing list - > https://lists.sourceforge.net/lists/listinfo/gammu-users > > -- gilberto dos santos alves +55(11)9-8646-5049 sao paulo - sp - brasil ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 _______________________________________________ Gammu-users mailing list - https://lists.sourceforge.net/lists/listinfo/gammu-users