Illegal UDP Command

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

Moderator: marcus

Illegal UDP Command

Postby sambuddy » Mon 22. Mar 2010, 04:46

Hello All,
I am currently trying to send a command to the irserver with no success. I am sending the command using udp. I have used this method with irtrans XL before with no problem but now that i am using an irtrans (ethernet), the ir server is telling me i am sending it an illegal command.
The command i am sending it is
"snd austar,austar,lE,b0,p21001"

Can anyone tell me why this would be wrong?
Are the commands different between the ethernet and the xl versions?

Thanks
Stuart
sambuddy
 
Posts: 12
Joined: Thu 4. Dec 2008, 21:48

Re: Illegal UDP Command

Postby IRTrans » Mon 22. Mar 2010, 09:37

Hi,
this interface is only fully supported when you are directly talking to the device.

If you have a device without Flash memory the UDP interface through the irserver is not fully supported.
Sending in the format "snd <remote>,<command>" should work though.

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

Re: Illegal UDP Command

Postby sambuddy » Mon 22. Mar 2010, 10:41

<snip>
this interface is only fully supported when you are directly talking to the device.
<snip>
Is this only for the Ethernet version? because it does work through the irserver when talking to an XL version.

<snip>
If you have a device without Flash memory the UDP interface through the irserver is not fully supported.
Sending in the format "snd <remote>,<command>" should work though.
<snip>
The device i am using does have flash memory...BUT...I currently only have one device connected to the irserver (the ethernet version). I read on another thread that the "b0" option is only valid when you have more than one device connected to the irserver, Is this correct?
Thanks
Stuart
sambuddy
 
Posts: 12
Joined: Thu 4. Dec 2008, 21:48

Re: Illegal UDP Command

Postby IRTrans » Mon 22. Mar 2010, 17:03

Hi Stuart,
hmm, talking to the XL or the standard Ethernet device through the irserver should not make any difference at all. Both devices are controlled the same way by the irserver.

I am not sure if the UDP interface of the irserver does support the "-b0" option.

Please try it without any options first and then try the other options step by step.

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

Re: Illegal UDP Command

Postby ero-baka » Sun 23. Jan 2011, 15:47

Hi,

I'm trying to send data to irserver using a TCP connection. I'm programming in java.
I try to send an infrared command like that: "0011000000000"
What do i have to send to irserver?
I'm getting the following error:

IRTRANS TCP/IP Socket connection request
IRTRANS TCP/IP Client 0 accepted from 127.0.0.1
IRTRANS TCP/IP Socket connection request
IRTRANS TCP/IP Client 1 accepted from 127.0.0.1
Illegal Network command [115]
Illegal Network command [110]
Illegal Network command [100]
Netcommand Size: 112/13
ExecuteNetCommand: Illegal Protocol Version 8084644.32 (should be 2.9)
Client [0] disconnect
Client [1] disconnect

do i have to send something like "snd <remote>, <command>"?

Thanks for your help.
ero-baka
 
Posts: 1
Joined: Sun 23. Jan 2011, 15:34

Re: Illegal UDP Command

Postby IRTrans » Sun 23. Jan 2011, 16:14

Hi,
"0011000000000" is no IR command.

If you want to send an IR command you will need to learn it first (through the GUI Client).

Each learned command has got a name (remote control + command).

These commands can then be sent using the name of the remote and command. To send it please use the syntax described in the TCP ASCII Interface manual.

You can find it here: http://www.irtrans.de/download/Docs/IRT ... ace_EN.pdf

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 4 guests