gnokii-users
[Top][All Lists]
Advanced

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

returns 0 on failure to communicate to phone!!


From: JPiper
Subject: returns 0 on failure to communicate to phone!!
Date: Mon, 26 May 2003 16:36:25 +1000


Hi,

I have just upgraded to gnokii version 0.5.0 from a modified 0.3.5. As part of the testing I do I pulled out the serial cable from the computer to check that gnokii returns and error in this instance- and I was shocked to find that it didn't. Both getsms and sendsms fail with return 0 and no output to stdout (without debug on of course), so I am not able to determine where the bug is. Here is the output with debugging output on.... Any clues..?

spy:/tmp/gnokii# gnokii --getsms SM 1 15 -d
GNOKII Version 0.5.0
cfg_file_read - open /root/.gnokiirc: No such file or directory
Opened configuration file /etc/gnokiirc
Added new section global
Adding key/value port//dev/ttyS1
Adding key/value model/6110
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
Adding key/value TELEPHONE/12345678
Added new section disconnect_script
Added new section sms
Adding key/value timeout/120
Lockfile /var/lock/LCK..ttyS1 is stale. Overriding it..
phone instance config:
model: 6110
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: 1200
connect_script:
disconnect_script:
Serial device: opening device /dev/ttyS1
Serial device: setting speed to 115200
Serial device: setting RTS to low and DTR to high
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
SM_Block Retry - 0
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
SM_Block Retry - 1
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
SM_Block Retry - 0
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
SM_Block Retry - 1
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
SM_Block Retry - 0
Message sent: 0x40 / 0x0004
00 01 64 01                                     |   d
spy:/tmp/gnokii# echo $?
0

Any help would be appreciated.. ;)

Cheers, James.
reply via email to

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