Minimum delay after Receive and send.

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

Moderator: marcus

Minimum delay after Receive and send.

Postby joshhall6 » Mon 7. Feb 2011, 01:32

I noticed that if I send commands too quickly or if I send a command too soon after I recieve a command, then the command is lost.

I also noticed that the new irTrans I recieved sends acknowledge commands which the first didn't.

How quickly can I send a command after recieving one?
How quickly can I send a second command (Immediately after Acknowledge)?
How quickly can I send a second command with V2.2 HW, that doesn't have an acknowledge?
joshhall6
 
Posts: 13
Joined: Thu 25. Feb 2010, 03:57

Re: Minimum delay after Receive and send.

Postby IRTrans » Mon 7. Feb 2011, 12:06

Hi,
regarding your question:

I suppose you are using the UDP ASCII Interface.

In general all devices are sending ACKs. The only difference is, that the latest FW versions do send the ACK by default to the UDP source port. Older versions are sending the ACK to port 21000. If you want to have the ACK sent to the source port simply use the option "ps" when sending: "snd sony_tv,vol+,ps".
Of course the newer devices will accept this option, too.

In general you will need to wait until the ACK to send a new command. Otherwise commands might get lost.
You can send the next command immediaetly after the ACK.

It is difficult to wait a fixed time because the time depends on the length of the IR Code itself.

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

Re: Minimum delay after Receive and send.

Postby joshhall6 » Wed 9. Feb 2011, 02:54

I am using port 21000 with a binary message from my application.

I used a packet sniffer and verify that with the old hardware I didn't receieve any acknowledgement at all, broadcast or direct.

That irTrans is several years old.

How quickly can I send a message after I receive a message.
I have an application which will recieve the broadcast and determine which of the two outputs the irTrans should use and then reply.
I found that if I sent it too soon after receiving then some commands are lost. Is there a maximum time?
Currently I am using 600ms, to support the old hardware.
joshhall6
 
Posts: 13
Joined: Thu 25. Feb 2010, 03:57

Re: Minimum delay after Receive and send.

Postby IRTrans » Sat 12. Feb 2011, 16:52

Hi,
in general there should be no time limit for sending an IR Code after receiving another one.

Are there codes lost with the new device, too?

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

Re: Minimum delay after Receive and send.

Postby joshhall6 » Sat 12. Feb 2011, 19:21

I haven't tried the new one, but knew it to be an issue with the old one. That is good to know. Thank you.
joshhall6
 
Posts: 13
Joined: Thu 25. Feb 2010, 03:57


Return to Ethernet

Who is online

Users browsing this forum: No registered users and 7 guests