Timout when sending key repeatedly

Software related support

Moderator: marcus

Timout when sending key repeatedly

Postby TL_Bert » Thu 30. Jan 2014, 15:02

I'm sending a volume key to a device in bursts of 25 times with 0.1 seconds between keys.
Between the bursts other various keys are sent at a much lower rate.

At random times this produces some sort of timeout in the server and the connection closes. I have to restart the server for it to work again.

I'm sending the keys from custom software in c++ using the irtrans library.
I'm using a LAN controller XL.

I set loglevel to debug and these are the last line

Code: Select all
Send [2] remname- vol- [10001 - B:0  M:0x1  LED: Default]
Time ACK Wait: 1.200000 ms[SEQ: 29]
Time ACK End : 12.300000 ms
Send Status 16 - 16 [30]
Netcommand Size: 112/112
Netcommand: 1 [2]
Send [2] remname- vol- [10001 - B:0  M:0x1  LED: Default]
LAN SEND - RESEND [49.800000 ms]
TimeoutSend Status 272 - 272 [1]
Netcommand Size: 112/112
Netcommand: 1 [2]
Send [2] remname- vol- [10001 - B:0  M:0x1  LED: Default]
LAN SEND - RESEND [50.600000 ms]
TimeoutSend Status 272 - 272 [1]
Netcommand Size: 112/112
Netcommand: 1 [2]
Send [2] remname- vol- [10001 - B:0  M:0x1  LED: Default]
LAN SEND - RESEND [49.700000 ms]
TimeoutSend Status 272 - 272 [1]
Netcommand Size: 112/112
Netcommand: 1 [2]
Send [2] remname- vol- [10001 - B:0  M:0x1  LED: Default]
LAN SEND - RESEND [50.200000 ms]
TimeoutSend Status 272 - 272 [1]
Network connection [2] closed


And this is from our programs logging file:
Code: Select all
ERROR.IRCONTROLLER.SEND_KEY: TL_IrController::SendKey Retry on Error:TimeoutTL_IrController::SendKey Fatal Error: Timeout


This is from the latest software version, but initially had the problem in a previous version as well.
Does anyone have any idea if we're doing something wrong?
Thanks in advance.

Edit:forgot to mention that I'm using Windows 8.1 64bit
TL_Bert
 
Posts: 3
Joined: Mon 1. Oct 2012, 06:55

Re: Timout when sending key repeatedly

Postby TL_Bert » Mon 17. Feb 2014, 10:02

Still have this problem. And I noticed it also happens randomly after a time of use, not only when sending keys rapidly.
I also noticed that, even though I get the timeout error every time, it still sends out the keys.

Switched to the USB irtrans and didn't have this problem but is obviously not a good solution.
TL_Bert
 
Posts: 3
Joined: Mon 1. Oct 2012, 06:55

Re: Timout when sending key repeatedly

Postby eric » Mon 17. Feb 2014, 10:08

Hi,

I suppose you are encountering some kind of buffer overflow. One IR Code can easily be around 200ms long. If you send bursts of 25 codes with 100ms intervals they are stored in a buffer until the IRTrans is ready to send a new code and at some point the buffer overflows.
This also might explain why you don't have this problem with the USB module: There the buffer can be the size of your RAM!

I suggest you slow down the repetition rate or you learn a long button press for this kind of command.

best regards,
Eric
eric
Administrator
 
Posts: 157
Joined: Mon 22. Oct 2012, 10:05


Return to Software

Who is online

Users browsing this forum: No registered users and 1 guest

cron