Talking to more than one IR Trans XL

Ethernet specific questions and answers - IRTrans LAN, LAN Controller devices

Moderator: marcus

Talking to more than one IR Trans XL

Postby sambuddy » Thu 4. Dec 2008, 22:06

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
sambuddy
 
Posts: 12
Joined: Thu 4. Dec 2008, 21:48

Re: Talking to more than one IR Trans XL

Postby IRTrans » Fri 5. Dec 2008, 12:34

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

Re: Talking to more than one IR Trans XL

Postby sambuddy » Sun 7. Dec 2008, 23:00

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
sambuddy
 
Posts: 12
Joined: Thu 4. Dec 2008, 21:48

Re: Talking to more than one IR Trans XL

Postby IRTrans » Mon 8. Dec 2008, 12:07

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


Return to Ethernet

Who is online

Users browsing this forum: No registered users and 56 guests