gnokii-users
[Top][All Lists]
Advanced

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

Re: SMS writing in AT mode


From: The Weak Idea
Subject: Re: SMS writing in AT mode
Date: Sat, 6 Jul 2002 15:46:52 +0700 (SE Asia Standard Time)

Spamming coming
 
-------Original Message-------
 
Date: Friday, July 05, 2002 07:56:41 PM
Subject: SMS writing in AT mode
 
Hi all,
got Segmentation faults sending SMS in AT mode. Phone is a Siemens S45.

Thanks for your work on gnokii.
Joerg

# ./gnokii --sendsms 0170xxxxxxx
GNOKII Version 0.4.0pre20
CFG_ReadFile - open /root/.gnokiirc: No such file or directory
Opened configuration file /etc/gnokiirc
Added new section global
Adding key/value port//dev/ttyS0
Adding key/value model/AT-HW
Adding key/value initlength/default
Adding key/value connection/serial
Adding key/value bindir//usr/sbin/
Adding key/value use_locking/yes
Adding key/value serial_baudrate/19200
Added new section connect_script
Added new section disconnect_script
Lockfile /var/lock/LCK..ttyS0 is stale. Overriding it..
Initializing AT capable mobile phone ...
Serial device: opening device /dev/ttyS0
Serial device: setting RTS to high and DTR to high
Serial device: setting RTS to high and DTR to low
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: 0x43 / 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: 0x43 / 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 43
Message sent: 0x06 / 0x0008
41 54 2b 43 47 4d 4d 0d | AT+CGMM
write: [AT+CGMM<cr>]
read : [AT+CGMM<cr><cr><lf>S45<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x06 / 0x0015
02 41 54 2b 43 47 4d 4d 0d 0d 0a 53 34 35 0d 0a | AT+CGMM S45
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
Initialisation completed
Message sent: 0x1e / 0x0009
41 54 2b 43 53 43 41 3f 0d | AT+CSCA?
write: [AT+CSCA?<cr>]
read : [AT+CSCA?<cr><cr><lf>+CSCA:
"+491710760000",145<cr><lf><cr><lf>OK<cr><lf>]
Message received: 0x1e / 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 39 31 37 31 30 37 36 30 30 30 | A: "+49171076000
30 22 2c 31 34 35 0d 0a 0d 0a 4f 4b 0d | 0",145 OK
Received message type 1e
Please enter SMS text. End your input with <cr><control-D>:test
Segmentation fault

Program received signal SIGSEGV, Segmentation fault.
0x40153bd6 in EncodeByLayout (data="" clayout=0x4017cfc0, num=0) at
sms-layout.c:232
232 char *message = data->RawData->Data;
(gdb) bt
#0 0x40153bd6 in EncodeByLayout (data="" clayout=0x4017cfc0, num=0)
at sms-layout.c:232
#1 0x4016c454 in AT_SendSMS (data="" state=0x805e760) at atgen.c:603
#2 0x4016ca6e in Functions (op=GOP_SendSMS, data="" state=0x805e760)
at atgen.c:708
#3 0x40156cd8 in SM_Functions (op=GOP_SendSMS, data="" sm=0x805e760)
at gsm-statemachine.c:263
#4 0x40153008 in SendSMS (data="" state=0x805e760) at gsm-sms.c:1282
#5 0x0804abc9 in sendsms (argc=1, argv=0x8065dd0) at gnokii.c:623
#6 0x08054592 in main (argc=3, argv=0xbffff8c4) at gnokii.c:3936
#7 0x401a5627 in __libc_start_main (main=0x805414c <main>, argc=3,
ubp_av=0xbffff8c4, init=0x8049420 <_init>,
fini=0x80583a0 <_fini>, rtld_fini=0x4000dcc4 <_dl_fini>,
stack_end=0xbffff8bc) at ../sysdeps/generic/libc-start.c:129
(gdb)



_______________________________________________
gnokii-users mailing list
address@hidden
http://mail.freesoftware.fsf.org/mailman/listinfo/gnokii-users
____________________________________________________
  IncrediMail - Email has finally evolved - Click Here

reply via email to

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