IRTrans Crash on Fast TCP Asnd's

Ethernet specific questions and answers - IRTrans LAN, LAN Controller devices

Moderator: marcus

IRTrans Crash on Fast TCP Asnd's

Postby rhodesy22 » Fri 13. May 2011, 00:23

Hey,

I used to have this working but now it seems to crash and I don't know if it's just since I updated (which I did using http://www.irtrans.de/downloads/Firmwar ... i_irdb.zip on 01/02/2011)

I'm sending multiple ASCII IR codes that turn the volume up. Currently it works with 0.4 second interval but I used to have it working as low as 0.1. I'm not sure if it would affect it but I didn't used to learn as RAW and now I do.

I have it going with a queue process which adds a code to the queue s and then when the TCP protocol returns saying IRTrans has fre espace, it sends the next one in the queue.

Below you can see a section of the log including the time between sends. You can see that it was at 0.2 second intervals though the IRTrans said it had space after just 0.01 seconds.

Thanks!

Code: Select all
2011-05-13 00:57:56.032 Engineer[34588:d70f]SEND IR: , Asndhex LB HD80030000000CE28100001294C494C944C4A4B4A4C944C494C4A4C944C494C4A4B4A4C49000CDF00012A4B4A4C944C494C4A4C944C494C4A4B954B4A4C494C4A4B4A000CDD0001294C4A4C944C494C4A4B954B4A4C494C944C4A4C494C494C4A000CDE0001294C4A4B954B4A4C494C944C4A4C494C944C4A4B4A4C494C4A000CDD00012A4C494C944C4A4C494C944C4A4B4A4C944C494C4A4B4A4C49000CDE00012A4C494C944C4A4B4A4C944C494C4A4B954B4A4C494C4A4C49000CDE00012A4B4A4C944C494C4A4B954C494C494C944C4A4C494C4A4B00
2011-05-13 00:57:56.033 Engineer[34588:6c07] IR HAS SPACE
2011-05-13 00:57:56.434 Engineer[34588:d70f]SEND IR: , Asndhex LB HD80030000000CE28100001294C494C944C4A4B4A4C944C494C4A4C944C494C4A4B4A4C49000CDF00012A4B4A4C944C494C4A4C944C494C4A4B954B4A4C494C4A4B4A000CDD0001294C4A4C944C494C4A4B954B4A4C494C944C4A4C494C494C4A000CDE0001294C4A4B954B4A4C494C944C4A4C494C944C4A4B4A4C494C4A000CDD00012A4C494C944C4A4C494C944C4A4B4A4C944C494C4A4B4A4C49000CDE00012A4C494C944C4A4B4A4C944C494C4A4B954B4A4C494C4A4C49000CDE00012A4B4A4C944C494C4A4B954C494C494C944C4A4C494C4A4B00
2011-05-13 00:57:56.436 Engineer[34588:6c07] IR HAS SPACE
2011-05-13 00:57:56.836 Engineer[34588:d70f]SEND IR: , Asndhex LB HD80030000000CE28100001294C494C944C4A4B4A4C944C494C4A4C944C494C4A4B4A4C49000CDF00012A4B4A4C944C494C4A4C944C494C4A4B954B4A4C494C4A4B4A000CDD0001294C4A4C944C494C4A4B954B4A4C494C944C4A4C494C494C4A000CDE0001294C4A4B954B4A4C494C944C4A4C494C944C4A4B4A4C494C4A000CDD00012A4C494C944C4A4C494C944C4A4B4A4C944C494C4A4B4A4C49000CDE00012A4C494C944C4A4B4A4C944C494C4A4B954B4A4C494C4A4C49000CDE00012A4B4A4C944C494C4A4B954C494C494C944C4A4C494C4A4B00
2011-05-13 00:57:56.838 Engineer[34588:6c07] IR HAS SPACE
2011-05-13 00:57:57.239 Engineer[34588:d70f]SEND IR: , Asndhex LB HD80030000000CE28100001294C494C944C4A4B4A4C944C494C4A4C944C494C4A4B4A4C49000CDF00012A4B4A4C944C494C4A4C944C494C4A4B954B4A4C494C4A4B4A000CDD0001294C4A4C944C494C4A4B954B4A4C494C944C4A4C494C494C4A000CDE0001294C4A4B954B4A4C494C944C4A4C494C944C4A4B4A4C494C4A000CDD00012A4C494C944C4A4C494C944C4A4B4A4C944C494C4A4B4A4C49000CDE00012A4C494C944C4A4B4A4C944C494C4A4B954B4A4C494C4A4C49000CDE00012A4B4A4C944C494C4A4B954C494C494C944C4A4C494C4A4B00
2011-05-13 00:57:57.241 Engineer[34588:6c07] IR HAS SPACE
2011-05-13 00:57:57.640 Engineer[34588:d70f]SEND IR: , Asndhex LB HD80030000000CE28100001294C494C944C4A4B4A4C944C494C4A4C944C494C4A4B4A4C49000CDF00012A4B4A4C944C494C4A4C944C494C4A4B954B4A4C494C4A4B4A000CDD0001294C4A4C944C494C4A4B954B4A4C494C944C4A4C494C494C4A000CDE0001294C4A4B954B4A4C494C944C4A4C494C944C4A4B4A4C494C4A000CDD00012A4C494C944C4A4C494C944C4A4B4A4C944C494C4A4B4A4C49000CDE00012A4C494C944C4A4B4A4C944C494C4A4B954B4A4C494C4A4C49000CDE00012A4B4A4C944C494C4A4B954C494C494C944C4A4C494C4A4B00
2011-05-13 00:57:57.646 Engineer[34588:6c07] IR HAS SPACE
2011-05-13 00:57:58.050 Engineer[34588:d70f]SEND IR: , Asndhex LB HD80030000000CE28100001294C494C944C4A4B4A4C944C494C4A4C944C494C4A4B4A4C49000CDF00012A4B4A4C944C494C4A4C944C494C4A4B954B4A4C494C4A4B4A000CDD0001294C4A4C944C494C4A4B954B4A4C494C944C4A4C494C494C4A000CDE0001294C4A4B954B4A4C494C944C4A4C494C944C4A4B4A4C494C4A000CDD00012A4C494C944C4A4C494C944C4A4B4A4C944C494C4A4B4A4C49000CDE00012A4C494C944C4A4B4A4C944C494C4A4B954B4A4C494C4A4C49000CDE00012A4B4A4C944C494C4A4B954C494C494C944C4A4C494C4A4B00
2011-05-13 00:57:58.052 Engineer[34588:6c07] IR HAS SPACE
2011-05-13 00:57:58.452 Engineer[34588:d70f]SEND IR: , Asndhex LB HD80030000000CE28100001294C494C944C4A4B4A4C944C494C4A4C944C494C4A4B4A4C49000CDF00012A4B4A4C944C494C4A4C944C494C4A4B954B4A4C494C4A4B4A000CDD0001294C4A4C944C494C4A4B954B4A4C494C944C4A4C494C494C4A000CDE0001294C4A4B954B4A4C494C944C4A4C494C944C4A4B4A4C494C4A000CDD00012A4C494C944C4A4C494C944C4A4B4A4C944C494C4A4B4A4C49000CDE00012A4C494C944C4A4B4A4C944C494C4A4B954B4A4C494C4A4C49000CDE00012A4B4A4C944C494C4A4B954C494C494C944C4A4C494C4A4B00
rhodesy22
 
Posts: 27
Joined: Mon 1. Feb 2010, 10:51

Re: IRTrans Crash on Fast TCP Asnd's

Postby IRTrans » Fri 13. May 2011, 10:21

Hi,
I will investigate that. Which firmware version does your device have?

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: IRTrans Crash on Fast TCP Asnd's

Postby IRTrans » Mon 16. May 2011, 22:02

Hi,
one further note: The needed pause depends on the length of the IR Codes. That means if you send a longer IR code you will need to wait longer until you send the next code.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: IRTrans Crash on Fast TCP Asnd's

Postby IRTrans » Mon 16. May 2011, 22:23

Hi,
we have checked that here. The call works as it should.

The IR Code is rather long, sending of this code takes around 500ms. The IRTrans device sends the "RESULT OK" back after 525ms. Immediately after this result comes back the next code can be sent.

What do you mean with "when the TCP protocol returns saying IRTrans has free space" ? There is no such message coming from the IRTrans.

You will always need to wait for the "RESULT OK". How long that takes depends on the IR Code you are sending.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: IRTrans Crash on Fast TCP Asnd's

Postby rhodesy22 » Fri 20. May 2011, 00:33

Hey,

Thanks for the reply. I've now got the code only sending out the next queued command once result ok has been received. I've also started using Standard commands, though the user has the option of switching to RAW when needed.

So now it works as I expected - increasing the volume rapidly.

However it's quite common that it will stutter - as in it'll be increasing at the standard rate as it should and then pause, send the odd command, and then go again at the previous rate. But then other times I can get it to do 100 volume up commands in a row with no issues.

Any ideas?
rhodesy22
 
Posts: 27
Joined: Mon 1. Feb 2010, 10:51

Re: IRTrans Crash on Fast TCP Asnd's

Postby IRTrans » Fri 20. May 2011, 13:09

I suppose ocasionally a packets gets lost and needs to be resent. That causes the "stutter". There is nothing we can do about that.

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32


Return to Ethernet

Who is online

Users browsing this forum: No registered users and 8 guests

cron