SendRemoteCommand() timing

The place where software developers meet

Moderator: marcus

Re: SendRemoteCommand() timing

Postby jbroeker » Fri 13. Apr 2012, 07:16

Hello IRTrans,

The version info provided by the DLL is 2.6.1.0, 01.07.2011 19:19.

I am using Windows7 Professional. I connect to the IRTrans server with

res = ConnectIRTransServer ("localhost",&irt_server);

IRServer Version is 2.0.5.28302.

Attached the .rem file I am using.

The command I am sending is e.g.:

rc=SendRemoteCommand (irt_server,"cobra", "0 30 68",0,0,0);

Please let me know if you need more info.

Best regards,

Jörg Bröker
Attachments
Cobra.rem
(44.92 KiB) Downloaded 3429 times
jbroeker
 
Posts: 8
Joined: Fri 6. Apr 2012, 14:07

Re: SendRemoteCommand() timing

Postby IRTrans » Fri 13. Apr 2012, 07:39

Hmm, neither 2.6.1 for the DLL nor 2.0.5 for the server are valid versions.

The .NET DLL (IRTrans.NET.DLL) should be something like 4.0.35 and the irserver (irserver.exe or irserve64.exe) should be something like 6.8.30.

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

Re: SendRemoteCommand() timing

Postby jbroeker » Fri 13. Apr 2012, 08:04

...I am using the C DLL IRTransDLL.dll. The version is the one I get if I select Properties/Eigenschaften on the DLL, tab Details.

As for the server, I start the IRTransServer USB as installed in the start menu. The version I cited is what I get when selecting "Über..." in the tray icon.

I have installed a setup_20120129.exe. As far as I recall I downloaded it from your website.

Best regards,

Jörg
jbroeker
 
Posts: 8
Joined: Fri 6. Apr 2012, 14:07

Re: SendRemoteCommand() timing

Postby IRTrans » Fri 13. Apr 2012, 09:11

OK, I thought you where using the .NET DLL.

That obviously changes everything. Then the return status with the empty message is OK, too.

You can see the version of the servier in the diagnostics after starting the server or through the properties of irserver.exe.

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

Re: SendRemoteCommand() timing

Postby jbroeker » Fri 13. Apr 2012, 09:49

...but your statement regarding my initial question with the timing (IR command was sent when SendRemoteCommand returns) is still valid for the C DLL? How would I note in the returned NETWORKSTATUS structure if a command was not sent?

Background: I am doing performance testing for an IR receiver and want to check if messages are lost when sending commands as fast as possible (using SendRemoteCommand). I want to ensure, that all IR commands are transmitted over the IR channel and if I get lost commands, they are lost due to processing in the receiver.

Best regards & thanx for your help,

Jörg
jbroeker
 
Posts: 8
Joined: Fri 6. Apr 2012, 14:07

Re: SendRemoteCommand() timing

Postby IRTrans » Fri 13. Apr 2012, 15:00

Hi,
the same regarding the timing applies to the C-DLL. It will not return until the command has been sent.

In case there is an error sending the command (no overflow - the call will block in case the IRTrans is busy) an error message will be returned.

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 7 guests