Page 1 of 1

Minimum delay after Receive and send.

PostPosted: Mon 7. Feb 2011, 01:32
by joshhall6
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?

Re: Minimum delay after Receive and send.

PostPosted: Mon 7. Feb 2011, 12:06
by IRTrans
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

Re: Minimum delay after Receive and send.

PostPosted: Wed 9. Feb 2011, 02:54
by joshhall6
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.

Re: Minimum delay after Receive and send.

PostPosted: Sat 12. Feb 2011, 16:52
by IRTrans
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

Re: Minimum delay after Receive and send.

PostPosted: Sat 12. Feb 2011, 19:21
by joshhall6
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.