Using API with IRTRans USB and IRTrans Ethernet

The place where software developers meet

Moderator: marcus

Using API with IRTRans USB and IRTrans Ethernet

Postby lagommette » Thu 8. Oct 2009, 22:39

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
lagommette
 
Posts: 35
Joined: Wed 29. Jul 2009, 20:38

Re: Using API with IRTRans USB and IRTrans Ethernet

Postby IRTrans » Fri 9. Oct 2009, 10:27

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
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: Using API with IRTRans USB and IRTrans Ethernet

Postby lagommette » Sat 10. Oct 2009, 22:48

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
lagommette
 
Posts: 35
Joined: Wed 29. Jul 2009, 20:38

Re: Using API with IRTRans USB and IRTrans Ethernet

Postby IRTrans » Sat 10. Oct 2009, 23:36

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
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: Using API with IRTRans USB and IRTrans Ethernet

Postby lagommette » Mon 26. Oct 2009, 22:56

Thank you very much for your answers.

It is all very clear now :)

Best regards,

lagommette
lagommette
 
Posts: 35
Joined: Wed 29. Jul 2009, 20:38


Return to APIs

Who is online

Users browsing this forum: No registered users and 7 guests

cron