syntax for irclient command

Software related support

Moderator: marcus

syntax for irclient command

Postby ecklundk » Mon 28. Jul 2008, 15:37

Hello - I have tried looking in all the documentation, but I cannot find anywhere that describes some of the features of the irclient syntax. I would specifically like to be able to send a command from the linux command line to a irTrans LANcontroller XT on one LED only. I've found the following from just calling irclient with no parameters:

usage : ./irclient <ip>
send : ./irclient <ip> <remote> <command>
send : ./irclient <ip> <remote> <command> <sendmask> <bus>
send : ./irclient <ip> <remote> <command> <sendmask> <bus> <led>
shutdown : ./irclient <ip> -shutdown
reload IRDB: ./irclient <ip> -reload
Flash IRDB : ./irclient <ip> -flashirdb <bus number> <actionstring> <remotelist>
Load IRDB : ./irclient <ip> -loadirdb <bus number> <filename>
receive : ./irclient <ip> -receive
Send RS232 : ./irclient <ip> -rs232send <data>
switch : ./irclient <ip> -switch <switch> <value>
LED : ./irclient <ip> -led <mode> <value>

But this doesn't tell me what format the sendmask, bus or led parameters should be in. Since I only have one irTrans device (the LANcontroller XT) I don't know what to use for bus or sendmask. I assume I can just give a number for led (like 4 - 11).

Thanks,

Kreig
ecklundk
 
Posts: 3
Joined: Mon 28. Jul 2008, 15:29

Re: syntax for irclient command

Postby IRTrans » Mon 28. Jul 2008, 19:33

Hi,
if you only have one device you can use 0 for mask and bus.

The LED parameter currently only allows to select internal or all external LEDs. However, that is no problem we will modify it to select individual LEDs.
Please send us an email to support@irtrans.de so that we can send you a modified irclient version for linux.

Of course these changes will be part of the next SW release, too.

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

Re: syntax for irclient command

Postby IRTrans » Mon 28. Jul 2008, 21:56

Hi,
in the meantime we have uploaded a new version of the IRTrans SW including a new ASCII client for Windows & LINUX.

The syntax to select an output (parameter led) is as follows:

I Internal LEDs
E External LEDs (all)
A All LEDs (Internal + all External)
L0 First output
L1 2nd output
L2 3rd output

and so on.

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

Re: syntax for irclient command

Postby ecklundk » Tue 29. Jul 2008, 00:14

Great - I've downloaded the new version and will give it a try tomorrow.

Thanks!

- Kreig
ecklundk
 
Posts: 3
Joined: Mon 28. Jul 2008, 15:29

Re: syntax for irclient command

Postby ecklundk » Tue 29. Jul 2008, 00:22

Hmmm -
I've got the new version installed and I send it the following command, but get an error about the bus not existing:

[root@montebello irtrans]# ./irclient montebello dstv1 exit 0 0 L5
IRTrans ASCII Client Version 5.11.03
IR Error: Specified Bus does not exist
[root@montebello irtrans]#

looking at the irserver running in debug_code mode with loglevel 4, I see:

IRTRANS TCP/IP Socket connection request
IRTRANS TCP/IP Client 0 accepted from 172.20.2.14
Netcommand: 1 [0]
Send dstv1-exit [a8000000 - B:128 M:0x0 L:0 Ext L: 5]
IR Error: Specified Bus does not exist
Client [0] disconnect

So it looks like it worked, but can I get rid of the error?

Thanks,

Kreig
ecklundk
 
Posts: 3
Joined: Mon 28. Jul 2008, 15:29

Re: syntax for irclient command

Postby IRTrans » Tue 29. Jul 2008, 10:41

We will check that ...

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

Re: syntax for irclient command

Postby IRTrans » Tue 29. Jul 2008, 12:03

OK, we have found that problem.

The LINUX SW is ready for download from our website.

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


Return to Software

Who is online

Users browsing this forum: No registered users and 61 guests