gnokii-users
[Top][All Lists]
Advanced

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

messages sent as concatenated, not being received correctly.


From: A.Mcnamara
Subject: messages sent as concatenated, not being received correctly.
Date: Fri, 27 Mar 2009 14:58:29 -0000



I have a very strange error and wondered if anybody would be able to shed light on it. I run shell scripts which send SMS at specified times. These are concatenated SMS using the long option. Although gnokii always reports sending the long SMS successfully, it does not always arrive at the destination. On some occasions this appears to be because a large chunk at the beginning of the message is similar to an earlier text sent to that destination, are their any other network issues that may cause this non-receive. This non-receive occurs when script1.sh (which is in perpetual loop), calls script2.sh which calls script3.sh. It never happen if I test the system by running script2.sh to call script3.sh. I have put in sleep commands into the perpetual loop but I wondered if any other users have experienced this kind of problem?

Many thanks if anyone has any suggestions on what is the problem, apologies if this is not the correct forum to discuss this problem.

Adam

Below you can find my gnokiirc file & output after sending SMS

linux-vvi7:/home/am0032/gnokii_quack # grep -v '#' /root/gnokiirc
[global]
port = /dev/ttyS0
model = 6230i
initlength = default
 connection = dku2
use_locking = yes
serial_baudrate = 19200
smsc_timeout = 10
[xgnokii]
allow_breakage = 0
[gnokiid]
bindir = /usr/sbin/
[connect_script]
TELEPHONE = 12345678
[disconnect_script]
[logging]
debug = on
rlpdebug = off
xdebug = off


There is no difference in the debug output of successfully received messages and unsuccessfully received messages, as can be typically seen below:

GNOKII Version 0.6.26
LOG: debug mask is 0x1
Config read from file /root/.gnokiirc.
phone instance config:
model = 6230i
port = /dev/ttyS0
connection = dku2libusb
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 1
sm_retry = 0
Connecting
Serial device: opening device USB
Ignoring extra header, type 171, length 5
Found FBUS interface
Can't set configuration: -16
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |                
Message received: 0x1b / 0x0032
01 43 00 08 00 01 58 2c 00 26 56 20 30 33 2e 38 |  C    X, &V 03.8
38 0a 32 38 2d 4a 75 6c 2d 30 36 0a 52 4d 37 32 | 8 28-Jul-06 RM72
5f 37 33 5f 2d 0a 47 53 4d 20 50 31 2e 0a 57 00 | _73_- GSM P1. W
00 00                                           |                
Received message type 1b
model length: 9
Received model RM72_73_-
Message sent: 0x02 / 0x0006
00 01 00 14 01 00                               |                
Message received: 0x02 / 0x002e
01 84 00 15 00 01 0b 28 01 e1 00 00 b7 02 82 0c |        (       
02 08 07 91 44 87 20 90 02 53 81 14 10 00 00 4f |     D    S     O
00 32 00 20 00 53 00 43 00 50 00 31 00 00       |  2   S C P 1   
Received message type 02
Frame of type 0x02 (SMS handling) received!
SMSC Received
General Data Coding
dcs: 0x0
Length: 0x112
user_data_length: 0xf0
ValidityIndicator: 2
user_data: D1980B7445A7C768D09C1EA697DB65371D949E83DAEF391D141E8FEBF230BDFC03055DA020885D9EA7DF6E10FD0DA2A3CB20B13C9C7683C2F27218648D81E4E5799D4D9F83D26E105CFE9EBFE1E1B3FB3D4F875D20A10B1404B1CBF3F4DB0DA2BF41747419249687D36E50585E0E83AC3190BC3CAFB3E97350DA0D12B3D36EF23C7D46D35DA0A10B1404B1CBF3F4DB0DA2BF41747419249687D36E50585E0E83AC3190BC3CAFB3E97350DA0D4A93CB617AFAED0EB34161B83C8C4F875D20A20B1404B1CBF3F4DB0DA2BF41747419249687D36E50585E0E83AC3190BC3CAFB3E97350DA0D7AC3E9E931284C0FE3D36117
SMS is too long? 240
Will need 2 sms-es
I have a very strange error and wondered if anybody would be able to shed light on it. I run shell scripts which send SMS at specified times. These are concatenated SMS using the long option. Although gnokii always reports sending the long SMS successfully, it does not always arrive at the destination. On some occasions this appears to be because a large chunk at the beginning of the message is similar to an earlier text sent to that destination, are their any other network issues that may cause this non-receive. This non-receive occurs when script1.sh (which is in perpetual loop), calls script2.sh which calls script3.sh. It never happen if I test the system by running script2.sh to call script3.sh. I have put in sleep commands into the perpetual loop but I wondered if any other users have experienced this kind of problem?

Many thanks if anyone has any suggestions on what is the problem, apologies if this is not the correct forum to discuss this problem.

Adam

Below you can find my gnokiirc file & output after sending SMS

linux-vvi7:/home/am0032/gnokii_quack # grep -v '#' /root/gnokiirc
[global]
port = /dev/ttyS0
model = 6230i
initlength = default
 connection = dku2
use_locking = yes
serial_baudrate = 19200
smsc_timeout = 10
[xgnokii]
allow_breakage = 0
[gnokiid]
bindir = /usr/sbin/
[connect_script]
TELEPHONE = 12345678
[disconnect_script]
[logging]
debug = on
rlpdebug = off
xdebug = off


There is no difference in the debug output of successfully received messages and unsuccessfully received messages, as can be typically seen below:

GNOKII Version 0.6.26
LOG: debug mask is 0x1
Config read from file /root/.gnokiirc.
phone instance config:
model = 6230i
port = /dev/ttyS0
connection = dku2libusb
initlength = default
serial_baudrate = 19200
serial_write_usleep = -1
handshake = software
require_dcd = 0
smsc_timeout = 10
rfcomm_channel = 1
sm_retry = 0
Connecting
Serial device: opening device USB
Ignoring extra header, type 171, length 5
Found FBUS interface
Can't set configuration: -16
Getting model...
Message sent: 0x1b / 0x0006
00 01 00 07 01 00                               |                
Message received: 0x1b / 0x0032
01 43 00 08 00 01 58 2c 00 26 56 20 30 33 2e 38 |  C    X, &V 03.8
38 0a 32 38 2d 4a 75 6c 2d 30 36 0a 52 4d 37 32 | 8 28-Jul-06 RM72
5f 37 33 5f 2d 0a 47 53 4d 20 50 31 2e 0a 57 00 | _73_- GSM P1. W
00 00                                           |                
Received message type 1b
model length: 9
Received model RM72_73_-
Message sent: 0x02 / 0x0006
00 01 00 14 01 00                               |                
Message received: 0x02 / 0x002e
01 84 00 15 00 01 0b 28 01 e1 00 00 b7 02 82 0c |        (       
02 08 07 91 44 87 20 90 02 53 81 14 10 00 00 4f |     D    S     O
00 32 00 20 00 53 00 43 00 50 00 31 00 00       |  2   S C P 1   
Received message type 02
Frame of type 0x02 (SMS handling) received!
SMSC Received
General Data Coding
dcs: 0x0
Length: 0x112
user_data_length: 0xf0
ValidityIndicator: 2
user_data: D1980B7445A7C768D09C1EA697DB65371D949E83DAEF391D141E8FEBF230BDFC03055DA020885D9EA7DF6E10FD0DA2A3CB20B13C9C7683C2F27218648D81E4E5799D4D9F83D26E105CFE9EBFE1E1B3FB3D4F875D20A10B1404B1CBF3F4DB0DA2BF41747419249687D36E50585E0E83AC3190BC3CAFB3E97350DA0D12B3D36EF23C7D46D35DA0A10B1404B1CBF3F4DB0DA2BF41747419249687D36E50585E0E83AC3190BC3CAFB3E97350DA0D4A93CB617AFAED0EB34161B83C8C4F875D20A20B1404B1CBF3F4DB0DA2BF41747419249687D36E50585E0E83AC3190BC3CAFB3E97350DA0D7AC3E9E931284C0FE3D36117
SMS is too long? 240
Will need 2 sms-es
Sending sms #0
Adding ConcatMsg header
General Data Coding
dcs: 0x0
Length: 0xa0
user_data_length: 0x8c
ValidityIndicator: 2
user_data: 050003CE0201A23117E88A4E8FD1A0393D4C2FB7CB6E3A283D07B5DF733A283C1ED7E5617AF9070ABA404110BB3C4FBFDD20FA1B44479741627938ED0685E5E530C81A03C9CBF33A9B3E07A5DD20B8FC3D7FC3C367F77B9E0EBB40421728086297E7E9B71B447F83E8E832482C0FA7DDA0B0BC1C0659632079795E67D3E7A0B41B2466A7DDE479FA8CA6BB40
Sending
Sending SMS...(190)
Message sent: 0x02 / 0x00be
00 01 00 02 00 00 00 55 55 01 02 b4 51 00 00 00 |        UU   Q  
00 04 82 0c 01 08 0c 91 44 87 50 62 19 72 82 0c |         D Pb r 
02 08 07 91 44 87 20 90 02 53 80 90 8c a0 05 00 |     D    S     
03 ce 02 01 a2 31 17 e8 8a 4e 8f d1 a0 39 3d 4c |      1   N   9=L
2f b7 cb 6e 3a 28 3d 07 b5 df 73 3a 28 3c 1e d7 | /  n:(=   s:(< 
e5 61 7a f9 07 0a ba 40 41 10 bb 3c 4f bf dd 20 |  az    @A  <O  
fa 1b 44 47 97 41 62 79 38 ed 06 85 e5 e5 30 c8 |   DG Aby8     0
1a 03 c9 cb f3 3a 9b 3e 07 a5 dd 20 b8 fc 3d 7f |      : >      =
c3 c3 67 f7 7b 9e 0e bb 40 42 17 28 08 62 97 e7 |   g {   @B ( b 
e9 b7 1b 44 7f 83 e8 e8 32 48 2c 0f a7 dd a0 b0 |    D    2H,    
bc 1c 06 59 63 20 79 79 5e 67 d3 e7 a0 b4 1b 24 |    Yc yy^g     $
66 a7 dd e4 79 fa 8c a6 bb 40 08 04 01 a9       | f   y    @     
Message received: 0x02 / 0x000e
01 84 00 03 00 01 0c 08 00 00 14 55 55 00       |            UU  
Received message type 02
Frame of type 0x02 (SMS handling) received!
SMS sent (reference: 20)
Sending sms #1
Adding ConcatMsg header
General Data Coding
dcs: 0x0
Length: 0x80
user_data_length: 0x70
ValidityIndicator: 2
user_data: 050003CE0202862E5010C42ECFD36F3788FE06D1D16590581E4EBB416179390CB2C640F2F2BCCEA6CF416937284D2E87E9E9B73BCC0685E1F2303E1D7681882E5010C42ECFD36F3788FE06D1D16590581E4EBB416179390CB2C640F2F2BCCEA6CF416937E80DA7A7C7A0303D8C4F875D
Sending
Sending SMS...(166)
Message sent: 0x02 / 0x00a6
00 01 00 02 00 00 00 55 55 01 02 9c 51 00 00 00 |        UU   Q  
00 04 82 0c 01 08 0c 91 44 87 50 62 19 72 82 0c |         D Pb r 
02 08 07 91 44 87 20 90 02 53 80 78 70 80 05 00 |     D    S xp  
03 ce 02 02 86 2e 50 10 c4 2e cf d3 6f 37 88 fe |      .P  .  o7 
06 d1 d1 65 90 58 1e 4e bb 41 61 79 39 0c b2 c6 |    e X N Aay9  
40 f2 f2 bc ce a6 cf 41 69 37 28 4d 2e 87 e9 e9 | @      Ai7(M.  
b7 3b cc 06 85 e1 f2 30 3e 1d 76 81 88 2e 50 10 |  ;     0> v  .P
c4 2e cf d3 6f 37 88 fe 06 d1 d1 65 90 58 1e 4e |  .  o7     e X N
bb 41 61 79 39 0c b2 c6 40 f2 f2 bc ce a6 cf 41 |  Aay9   @      A
69 37 e8 0d a7 a7 c7 a0 30 3d 8c 4f 87 5d 55 55 | i7      0= O ]UU
55 55 08 04 01 a9                               | UU             
Message received: 0x02 / 0x000e
01 84 00 03 00 01 0c 08 00 00 15 55 55 00       |            UU  
Received message type 02
Frame of type 0x02 (SMS handling) received!
SMS sent (reference: 21)
Send succeeded!
Serial device: closing device
adam is sent Q1. Which statement is most accurate? A. A lesion to the brain area V1 results in prosopagnosia. B. A lesion to the brain area V1 results in blindsight. C. A lesion to the brain area V1 results in ideational apraxia. D. A lesion to the brain area V1 results in optic ataxia.



Sending sms #0
Adding ConcatMsg header
General Data Coding
dcs: 0x0
Length: 0xa0
user_data_length: 0x8c
ValidityIndicator: 2
user_data: 050003CE0201A23117E88A4E8FD1A0393D4C2FB7CB6E3A283D07B5DF733A283C1ED7E5617AF9070ABA404110BB3C4FBFDD20FA1B44479741627938ED0685E5E530C81A03C9CBF33A9B3E07A5DD20B8FC3D7FC3C367F77B9E0EBB40421728086297E7E9B71B447F83E8E832482C0FA7DDA0B0BC1C0659632079795E67D3E7A0B41B2466A7DDE479FA8CA6BB40
Sending
Sending SMS...(190)
Message sent: 0x02 / 0x00be
00 01 00 02 00 00 00 55 55 01 02 b4 51 00 00 00 |        UU   Q  
00 04 82 0c 01 08 0c 91 44 87 50 62 19 72 82 0c |         D Pb r 
02 08 07 91 44 87 20 90 02 53 80 90 8c a0 05 00 |     D    S     
03 ce 02 01 a2 31 17 e8 8a 4e 8f d1 a0 39 3d 4c |      1   N   9=L
2f b7 cb 6e 3a 28 3d 07 b5 df 73 3a 28 3c 1e d7 | /  n:(=   s:(< 
e5 61 7a f9 07 0a ba 40 41 10 bb 3c 4f bf dd 20 |  az    @A  <O  
fa 1b 44 47 97 41 62 79 38 ed 06 85 e5 e5 30 c8 |   DG Aby8     0
1a 03 c9 cb f3 3a 9b 3e 07 a5 dd 20 b8 fc 3d 7f |      : >      =
c3 c3 67 f7 7b 9e 0e bb 40 42 17 28 08 62 97 e7 |   g {   @B ( b 
e9 b7 1b 44 7f 83 e8 e8 32 48 2c 0f a7 dd a0 b0 |    D    2H,    
bc 1c 06 59 63 20 79 79 5e 67 d3 e7 a0 b4 1b 24 |    Yc yy^g     $
66 a7 dd e4 79 fa 8c a6 bb 40 08 04 01 a9       | f   y    @     
Message received: 0x02 / 0x000e
01 84 00 03 00 01 0c 08 00 00 14 55 55 00       |            UU  
Received message type 02
Frame of type 0x02 (SMS handling) received!
SMS sent (reference: 20)
Sending sms #1
Adding ConcatMsg header
General Data Coding
dcs: 0x0
Length: 0x80
user_data_length: 0x70
ValidityIndicator: 2
user_data: 050003CE0202862E5010C42ECFD36F3788FE06D1D16590581E4EBB416179390CB2C640F2F2BCCEA6CF416937284D2E87E9E9B73BCC0685E1F2303E1D7681882E5010C42ECFD36F3788FE06D1D16590581E4EBB416179390CB2C640F2F2BCCEA6CF416937E80DA7A7C7A0303D8C4F875D
Sending
Sending SMS...(166)
Message sent: 0x02 / 0x00a6
00 01 00 02 00 00 00 55 55 01 02 9c 51 00 00 00 |        UU   Q  
00 04 82 0c 01 08 0c 91 44 87 50 62 19 72 82 0c |         D Pb r 
02 08 07 91 44 87 20 90 02 53 80 78 70 80 05 00 |     D    S xp  
03 ce 02 02 86 2e 50 10 c4 2e cf d3 6f 37 88 fe |      .P  .  o7 
06 d1 d1 65 90 58 1e 4e bb 41 61 79 39 0c b2 c6 |    e X N Aay9  
40 f2 f2 bc ce a6 cf 41 69 37 28 4d 2e 87 e9 e9 | @      Ai7(M.  
b7 3b cc 06 85 e1 f2 30 3e 1d 76 81 88 2e 50 10 |  ;     0> v  .P
c4 2e cf d3 6f 37 88 fe 06 d1 d1 65 90 58 1e 4e |  .  o7     e X N
bb 41 61 79 39 0c b2 c6 40 f2 f2 bc ce a6 cf 41 |  Aay9   @      A
69 37 e8 0d a7 a7 c7 a0 30 3d 8c 4f 87 5d 55 55 | i7      0= O ]UU
55 55 08 04 01 a9                               | UU             
Message received: 0x02 / 0x000e
01 84 00 03 00 01 0c 08 00 00 15 55 55 00       |            UU  
Received message type 02
Frame of type 0x02 (SMS handling) received!
SMS sent (reference: 21)
Send succeeded!
Serial device: closing device
adam is sent Q1. Which statement is most accurate? A. A lesion to the brain area V1 results in prosopagnosia. B. A lesion to the brain area V1 results in blindsight. C. A lesion to the brain area V1 results in ideational apraxia. D. A lesion to the brain area V1 results in optic ataxia.



reply via email to

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