Page 1 of 1

Using API with IRTRans USB and IRTrans Ethernet

PostPosted: Thu 8. Oct 2009, 22:39
by lagommette
Hello,

I own these devices:
- An USB IRTrans
- An Ethernet IRTrans

How do I send using the API with visual basic distincts commands to the USB device and the Ethernet device ?

The SendIR function does not provide a parameter to indicate which device we wish to communicate with.

In fact, the wizard asks at the end of installation wich device we want to install: USB or Ethernet.

This seems to mean that irtranstray can not drive a USB device and an Ethernet one.

Am I wright ?

Thanks for your response.

Regards

Re: Using API with IRTRans USB and IRTrans Ethernet

PostPosted: Fri 9. Oct 2009, 10:27
by IRTrans
Hi,
the irserver can drive an IRTrans USB and IRTrans Ethernet at the same time.

To do that you will need to modify the commandline that starts irtranstray. Instead of "irtranstray.exe lan" or irtanstray.exe usb" you simply use "irtranstray.exe lan;usb".
Now the Ethernet device will be bus "0" and the USB device bus "1".

Within the APIs you can use the bus parameter to select a device. That means you will need to use SendIR with bus 0 for the first device (here: lan) and bus one for the 2nd (USB).

IRTrans

Re: Using API with IRTRans USB and IRTrans Ethernet

PostPosted: Sat 10. Oct 2009, 22:48
by lagommette
Hello,

Thank you very for your answer.

But what if I have several IRTrans Ethernet and one USB. Will each Ethernet devices work on a separate bus ?

Regards,

lagommette

Re: Using API with IRTRans USB and IRTrans Ethernet

PostPosted: Sat 10. Oct 2009, 23:36
by IRTrans
Correct, each device will have it´s own bus number.

To make sure that all LAN devices are recognized in the correct order you should use the IP Addresses when starting the SW:

irtranstray.exe 192.168.10.1;192.168.10.2;192.168.10.3;usb

If you have more than one USB device the devices will always be sorted by their USB serial number. That means the order of the USB devices will not change.

IRTrans

Re: Using API with IRTRans USB and IRTrans Ethernet

PostPosted: Mon 26. Oct 2009, 22:56
by lagommette
Thank you very much for your answers.

It is all very clear now :)

Best regards,

lagommette