gnokii-users
[Top][All Lists]
Advanced

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

Problem with AT driver.


From: Jan Derfinak
Subject: Problem with AT driver.
Date: Tue, 28 Jan 2003 14:41:53 +0100 (CET)

Hi.

I tried AT driver in gnokii with siemens GSM module MC35. Most of functions
work good, but I have problem with SMS sending (which is the most important
part for me :( ). Below is the log from gnokii.
My another question is if AT driver supports sending of binary SMS's (logos,
...)?

./gnokii --sendsms +42072123456
GNOKII Version 0.5.0pre4
Opened configuration file /home/ja/.gnokiirc
Added new section global
Adding key/value port//dev/ttyS1
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/19200
Adding key/value smsc_timeout/10
Added new section connect_script
Adding key/value TELEPHONE/12345678
Added new section disconnect_script
phone instance config:
model: AT
port_device: /dev/ttyS1
connection_type: 0
init_length: 0
serial_baudrate: 19200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script:
disconnect_script:
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyS1
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: 0x06 / 0x0008
41 54 2b 43 47 4d 4d 0d                         | AT+CGMM
write: [AT+CGMM<cr>]
read : [AT+CGMM<cr><cr><lf>MC35<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0016
02 41 54 2b 43 47 4d 4d 0d 0d 0a 4d 43 33 35 0d |  AT+CGMM   MC35
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>SIEMENS<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0019
02 41 54 2b 43 47 4d 49 0d 0d 0a 53 49 45 4d 45 |  AT+CGMI   SIEME
4e 53 0d 0a 0d 0a 4f 4b 0d                      | NS    OK
Received message type 06
Message sent: 0x52 / 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: 0x52 / 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 52
Initialisation completed
Message sent: 0x22 / 0x0009
41 54 2b 43 53 43 41 3f 0d                      | AT+CSCA?
write: [AT+CSCA?<cr>]
read : [AT+CSCA?<cr><cr><lf>+CSCA:
"+420602909909",145<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x22 / 0x002d
02 41 54 2b 43 53 43 41 3f 0d 0d 0a 2b 43 53 43 |  AT+CSCA?   +CSC
41 3a 20 22 2b 34 32 30 36 30 32 39 30 39 39 30 | A: "+42060290990
39 22 2c 31 34 35 0d 0a 0d 0a 4f 4b 0d          | 9",145    OK
Received message type 22
Please enter SMS text. End your input with <cr><control-D>:test
Message sent: 0x54 / 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: 0x54 / 0x0010
02 41 54 2b 43 4d 47 46 3d 30 0d 0d 0a 4f 4b 0d
Received message type 54
AT mode set
Sending initial sequence
Message sent: 0x55 / 0x000b
41 54 2b 43 4d 47 53 3d 32 35 0d                | AT+CMGS=25
write: [AT+CMGS=25<cr>]
read : [AT+CMGS=25<cr><cr><lf>> ]
Message received: 0x55 / 0x000f
01 41 54 2b 43 4d 47 53 3d 32 35 0d 0d 0a 3e    |  AT+CMGS=25   >
Received message type 55
Got response 0
Sending frame: 079124602009999011000B912470123254F60000AA04F4F29C0Ey
Message sent: 0x20 / 0x0035
30 37 39 31 32 34 36 30 32 30 30 39 39 39 39 30 | 0791246020099990
31 31 30 30 30 42 39 31 32 34 37 30 31 32 33 32 | 11000B9124701232
35 34 46 36 30 30 30 30 41 41 30 34 46 34 46 32 | 54F60000AA04F4F2
39 43 30 45 1a                                  | 9C0E
write: [079124602009999011000B912470123254F60000AA04F4F29C0E^Z]
read :
[079124602009999011000B912470123254F60000AA04F4F29C0E^Z<cr><lf>ERROR<cr><lf>]
Message received: 0x20 / 0x003e
03 30 37 39 31 32 34 36 30 32 30 30 39 39 39 39 |  079124602009999
30 31 31 30 30 30 42 39 31 32 34 37 30 31 32 33 | 011000B912470123
32 35 34 46 36 30 30 30 30 41 41 30 34 46 34 46 | 254F60000AA04F4F
32 39 43 30 45 1a 0d 0a 45 52 52 4f 52 0d       | 29C0E   ERROR
Received message type 20
SMS Send failed (Command failed.)
Serial device: closing device


Thanks.

                                jano

-- 
When play dies it becomes the Game.
When sex dies it becomes Climax.

All games contain the idea of death.
                        Jim Morrison's Poetry - The Lords - Notes of Vision





reply via email to

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