Page 1 of 1

Talking to more than one IR Trans XL

PostPosted: Thu 4. Dec 2008, 22:06
by sambuddy
Hello,
I am looking at having two IR trans xl's connected to a server (irtranstray). I want to talk to the server using udp and i will want to talk to eack port individually. So, if i send a command to the server, how do i get it to distinguish between which irtans xl the server is going to send the command too?
e.g.
snd <stb>,<power_on>,<l7>

this should send the power on command for the stb remote to the 7th output, BUT for which ir trans xl?
Thanks for your help

Re: Talking to more than one IR Trans XL

PostPosted: Fri 5. Dec 2008, 12:34
by IRTrans
Hi,
using the UDP interface you can address devices using the bus parameter (b):

for the first device:
snd stb,power_on,l7,b0

for the 2nd device:
snd stb,power_on,l7,b1

Please note that the <> shall not be in the string.

IRTrans

Re: Talking to more than one IR Trans XL

PostPosted: Sun 7. Dec 2008, 23:00
by sambuddy
Thankyou,
I have one more question. I can find out what the devices bus paramater is by using the IRTrans Client software. Can you tell me how the software decides what device will be given what bus number? The reason i ask is, if i write a script to talk to the device on bus zero, will it always be bus zero or could it change to bus one after a computer reboot (and hence need the script to be changed)?
Thanks

Re: Talking to more than one IR Trans XL

PostPosted: Mon 8. Dec 2008, 12:07
by IRTrans
Hi,
you can see the order of the devices if you open the server diagnostics window after you started the server.

To make sure the order is always the same you should start the server with the IP Addresses instead of the parameter "lan":

irtranstray 192.168.0.32;192.168.0.33;192.168.0.34

On Linux you will need to enclose the IP Addresses in double qoutes (" ").

Now the first IP Address will be bus 0, the 2nd 1 and so on.

IRTrans