high latency sending signals with usb device

The place where software developers meet

Moderator: marcus

Re: high latency sending signals with usb device

Postby tony » Sat 22. Aug 2009, 09:22

Hi,

I've installed the firmware update and for the last two days I've detected no delays. I will tell you later my further experiences.

Tony
tony
 
Posts: 7
Joined: Wed 29. Jul 2009, 09:07

Re: high latency sending signals with usb device

Postby tony » Sat 22. Aug 2009, 09:55

Hi,

I've installed the firmware update and for the last two days I've detected no delays. I will tell you later my further experiences.

Tony
tony
 
Posts: 7
Joined: Wed 29. Jul 2009, 09:07

Re: high latency sending signals with usb device

Postby igor » Mon 14. Mar 2011, 07:18

Hi, I write app using c# and IRTrans.NET dll (4.0.18.26026)

There is button In my application. When button is pressed app sends commands (using the method IRTransServer.IRSend) with some delay. When button is released, app stop sending commands.

sample

irtServer = new IRTransServer(host);
...
result = irtServer.IRSend(remote, command);

But after the button is released, the device still gets a commands.
As I understand the problem is that there is a buffer in which the accumulated command (or the device or IRTrans server), because the execution time longer than the time between sending commands.
Can I use the API to reset the buffer to stop sending commands?
igor
 
Posts: 1
Joined: Fri 11. Mar 2011, 14:47

Re: high latency sending signals with usb device

Postby IRTrans » Mon 14. Mar 2011, 10:45

Hi,
you are using the wrong approach here.

By sending commands at a very high rate through the repeat you are flooding the irserver with IR Commands. The reason is, that your IR commands are simply longer than your repeat rate.

As these codes are stored a various stages of the command pipeline that cannot be avoided.

To avoid that you need to check the ACK sent by the irserver. You should wait for the ACK until you send a new command. That way it will work correctly.

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

Previous

Return to APIs

Who is online

Users browsing this forum: No registered users and 5 guests