gnokii-users
[Top][All Lists]
Advanced

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

Re: RFD: how to handle timeouts within SendSMS() [was: Re: --sendsms tim


From: Jussi Aalto
Subject: Re: RFD: how to handle timeouts within SendSMS() [was: Re: --sendsms timed out]
Date: Fri, 12 Jul 2002 20:17:35 +0300
User-agent: KMail/1.4.1

>
> I'll do some more tests. By the way, --sendsms worked in 0.4.0pre19. 
Actually the version with working --sendsms was 0.4.0pre20 (gnokii-20020511).

$ gnokii --sendsms 045*******
GNOKII Version 0.4.0pre20
Opened configuration file /.gnokiirc
Added new section global
Adding key/value port//dev/ttyS0
Adding key/value model/AT
Adding key/value initlength/default
Adding key/value connection/serial
Adding key/value bindir//usr/local/sbin/
Adding key/value use_locking/no
Adding key/value serial_baudrate/115200
Adding key/value handshake/hardware
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyS0
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: 0x42 / 0x0009
41 54 2b 43 53 43 53 3f 0d                      | AT+CSCS?
write: [AT+CSCS?<cr>]
read : [AT+CSCS?<cr><cr><lf>+CSCS: "GSM"<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x42 / 0x001f
02 41 54 2b 43 53 43 53 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCS?   +CSC
53 3a 20 22 47 53 4d 22 0d 0a 0d 0a 4f 4b 0d    | S: "GSM"    OK
Received message type 42
Message sent: 0x05 / 0x0008
41 54 2b 43 47 4d 4d 0d                         | AT+CGMM
write: [AT+CGMM<cr>]
read : [AT+CGMM<cr><cr><lf>1101201-BV R320s<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x05 / 0x0022
02 41 54 2b 43 47 4d 4d 0d 0d 0a 31 31 30 31 32 |  AT+CGMM   11012
30 31 2d 42 56 20 52 33 32 30 73 0d 0a 0d 0a 4f | 01-BV R320s    O
4b 0d                                           | K
Received message type 05
Message sent: 0x05 / 0x0008
41 54 2b 43 47 4d 49 0d                         | AT+CGMI
write: [AT+CGMI<cr>]
read : [AT+CGMI<cr><cr><lf>ERICSSON  <cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x05 / 0x001c
02 41 54 2b 43 47 4d 49 0d 0d 0a 45 52 49 43 53 |  AT+CGMI   ERICS
53 4f 4e 20 20 0d 0a 0d 0a 4f 4b 0d             | SON      OK
Received message type 05
Initialisation completed
Please enter SMS text. End your input with <cr><control-D>:test
Message sent: 0x1d / 0x0009
41 54 2b 43 53 43 41 3f 0d                      | AT+CSCA?
write: [AT+CSCA?<cr>]
read : [AT+CSCA?<cr><cr><lf>+CSCA: 
"358450000000",145<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x1d / 0x002c
02 41 54 2b 43 53 43 41 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCA?   +CSC
41 3a 20 22 33 35 38 34 35 30 30 30 30 30 30 30 | A: "358450000000
22 2c 31 34 35 0d 0a 0d 0a 4f 4b 0d             | ",145    OK
Received message type 1d
COUNT: 1
Strlen: 4
Sending SMS to 045******* via message center 358450000000
Message sent: 0x43 / 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: 0x43 / 0x0010
02 41 54 2b 43 4d 47 46 3d 30 0d 0d 0a 4f 4b 0d
Received message type 43
AT mode set
Sending SMS...(18)
00 11 00 0a 81 40 65 47 66 53 00 00 00 04 f4 f2 9c 0e
Sending initial sequence
Message sent: 0x44 / 0x000b
41 54 2b 43 4d 47 53 3d 31 37 0d                | AT+CMGS=17
write: [AT+CMGS=17<cr>]
read : [AT+CMGS=17<cr><cr><lf>> ]
Message received: 0x44 / 0x000f
01 41 54 2b 43 4d 47 53 3d 31 37 0d 0d 0a 3e    |  AT+CMGS=17   >
Received message type 44
Got response 0
Sending frame: 0011000A81406547665300000004F4F29C0E▒
Message sent: 0x1b / 0x0025
30 30 31 31 30 30 30 41 38 31 34 30 36 35 34 37 | 0011000A81406547
36 36 35 33 30 30 30 30 30 30 30 34 46 34 46 32 | 665300000004F4F2
39 43 30 45 1a                                  | 9C0E
write: [0011000A81406547665300000004F4F29C0E^Z]
read : [<cr><lf>+CMGS: 30<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x1b / 0x0013
02 0d 0a 2b 43 4d 47 53 3a 20 33 30 0d 0a 0d 0a |    +CMGS: 30
4f 4b 0d                                        | OK
Received message type 1b
Message sent okay
4
Send succeeded!
serial_close_all() executed




reply via email to

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