gnokii-users
[Top][All Lists]
Advanced

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

Weird sendsms beahviour


From: nemir nemiria
Subject: Weird sendsms beahviour
Date: Sun, 14 May 2006 02:28:56 +0000

Hi.

I recently upgraded to gnokii 0.6.12.

~>gnokii --identify
GNOKII Version 0.6.12
IMEI         : 351109206189890
Manufacturer : Nokia
Model        : NPL-1
Revision     : V 5.10


When I use my shell script to send smses it works fine:

:~>cat send_sms
#for x in 23423423423,  23423423423,  2342342342

for x in 2342423423
do
echo $1 | /usr/local/bin/gnokii --sendsms $x
sleep 30
done
echo $1 >> /usr/local/nagios/logs

~>./send_sms "Here is a simple SMS to test sending SMS messages via the send_sms shell script I created."
GNOKII Version 0.6.12
Send succeeded!

HOwever, wehen I try to send an sms using gnokii --sendsms it always tiems out:


:~>gnokii --sendsms 234234234
GNOKII Version 0.6.12
Please enter SMS text. End your input with <cr><control-D>:askdah
^D
SMS Send failed (Command timed out.)

Teh full debug output looks like this:

:~>gnokii --sendsms 234234234
GNOKII Version 0.6.12
LOG: debug mask is 0x1
phone instance config:
model: 6510
port_device: /dev/tty01
connection_type: 2
init_length: 0
serial_baudrate: 19200
serial_write_usleep: -1
hardware_handshake: 0
require_dcd: 0
smsc_timeout: 100
connect_script:
disconnect_script:
rfcomm_cn: 1
sm_retry: off
Connecting
Serial device: opening device /dev/tty01
Serial device: setting RTS to low and DTR to low
Serial device: setting RTS to high and DTR to high
Serial device: setting speed to 19200
Switching to FBUS mode
Serial device: setting speed to 115200
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |
[Received Ack of type 1b, seq: 80]
[Sending Ack of type 1b, seq: 0]
Message received: 0x1b / 0x0032
01 2f 00 08 00 01 58 2d 00 26 56 20 35 2e 31 30 |  /    X- &V 5.10
20 20 20 20 20 0a 31 31 2d 30 39 2d 30 32 0a 4e |       11-09-02 N
50 4c 2d 31 0a 28 63 29 20 4e 4d 50 2e 0a 54 00 | PL-1 (c) NMP. T
00 00                                           |
Received message type 1b
model length: 5
Received model NPL-1
Message sent: 0x02 / 0x0006
00 01 00 14 01 00                               |
[Received Ack of type 02, seq:  1]
[Sending Ack of type 02, seq: 1]
Message received: 0x02 / 0x003e
01 5d 00 15 00 01 0b 38 01 fd 00 ff ff 02 82 0c |  ]     8  ??
02 08 07 91 16 14 78 60 07 f0 81 24 1e 00 00 4d |       x`  $   M
00 4f 00 42 00 49 00 4c 00 45 00 4e 00 45 00 54 |  O B I L E N E T
00 20 00 53 00 4d 00 53 00 43 00 00 00 00       |    S M S C
Received message type 02
Frame of type 0x02 (SMS handling) received!
SMSC Received
Please enter SMS text. End your input with <cr><control-D>:askdah
General Data Coding
dcs: 0x0
Length: 0x6
user_data_length: 0x6
ValidityIndicator: 2
user_data: E1F99A1C4603
Sending
Sending SMS...(62)
Message sent: 0x02 / 0x003e
00 01 00 02 00 00 00 55 55 01 02 34 11 00 00 00 |        UU  4
00 04 82 0c 01 07 0a 81 40 70 25 92 72 00 82 0c |         @p% r
02 08 07 91 16 14 78 60 07 f0 80 10 06 06 e1 f9 |       x`
9a 1c 46 03 55 55 55 55 55 55 08 04 01 a9       |   F UUUUUU   ?
SM_Block: exiting the retry loop
SMS Send failed (Command timed out.)
Serial device: closing device


Chau

nemir






reply via email to

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