The problem with sending commands via UDP

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

Moderator: marcus

Re: The problem with sending commands via UDP

Postby simples » Fri 20. Jul 2012, 09:17

Here is it
Code: Select all
[REMOTE]
  [NAME]ctrl

[TIMING]
  [0][N]8[1]216 752[2]208 888[3]216 1280[4]216 1568[5]216 2120[6]216 2680[7]208 2824[8]216 12992[RC]1[RP]0[FREQ]38
  [1][N]9[1]248 720[2]240 856[3]248 1256[4]248 1400[5]240 2096[6]248 2232[7]240 2656[8]240 2792[9]240 12968[RC]1[RP]0[FREQ]38

[COMMANDS]
  [vol+][T]0[D]050622147030004000
  [vol+c][T]0[D]050622147053004000
  [vol+f][T]0[D]07082215907300500A070822159064005000

  [vol-][T]0[D]060722148030005000
  [vol-c][T]0[D]070822149063005000
  [vol-f][T]0[D]090A2215B08300600C090A2215B074006000

  [onoff][T]0[D]040522136010005000
  [onoff-c][T]0[D]060722158043007000
  [onoff-f][T]0[D]060722158043007009060722158034007000

  [tv][T]0[D]050622137020004000
  [tv-c][T]0[D]060722148053005000
  [tv-f][T]0[D]08092215A07300700B08092215A064007000

  [radio][T]0[D]070833169050042000
  [radio-c][T]0[D]070833169005042000
  [radio-f][T]0[D]08093317A00504200B08093317A096042000

  [text][T]0[D]060722158040023000
  [text-c][T]0[D]060722158074023000
  [text-f][T]0[D]07082216908402300A070822169075023000

  [help][T]0[D]060722158040032000
  [help-c][T]0[D]060722158074032000
  [help-f][T]0[D]07082216908403200A070822169075032000
simples
 
Posts: 26
Joined: Mon 10. Oct 2011, 12:13

Re: The problem with sending commands via UDP

Postby IRTrans » Fri 20. Jul 2012, 09:57

Hi,
this is a code format with short pulses and lots of different pause values. Mostly those code formats are almost impossible to recognize correctly each time.

Could you try a different remote control (e.g. RC5 or RC6) to make sure that it is not a problem with the IR Codes?

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

Re: The problem with sending commands via UDP

Postby simples » Fri 20. Jul 2012, 11:53

Unfortunately, for reasons beyond our control, we cannot use another remote. I understand that the IRTrans does not have an algorithm to correct recognition XMP codes. However, choosing the right timing in the "Device status - IR Receive" and using a suitable external receiver, we have achieved that the IRServer recognizes these codes correctly. The problem apparently lies within the fact that the firmware recognizes a codes other way than the IRServer, what in our opinion, is not entirely correct.
simples
 
Posts: 26
Joined: Mon 10. Oct 2011, 12:13

Re: The problem with sending commands via UDP

Postby IRTrans » Fri 20. Jul 2012, 12:43

The firmware uses the same algorithm to detect an IR Code. In fact the string in the code is simply compared. The server does not do any postprocessing of the code. Therefore a code that is correctly recognized by the server will be recognized by the firmware, too.

Right now I have no idea where to look for that problem as nobody else so far had such a problem.

Therefore I would suggest to use a different remote control (just for testing) so that we have a chance to see where the problem lies.

Another test you can make is to connect to the IRTrans device using the old irremote.exe client. irremote.exe will show the received IR Codes at the bottom in the status line. Please start irremote.exe from the command line with the IP Address of the IRTrans as an argument (e.g. "irremote.exe 192.168.0.32").
Do not start it without an argument - then it will connect to the irserver and that will not help us.

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

Re: The problem with sending commands via UDP

Postby simples » Fri 20. Jul 2012, 13:38

I did it. You can see the results in the image below. Codes are displayed correctly in the "Detected IR Commands", but nothing appears in the status line of irremote.exe
With the other remote (Sony TV) codes appear correctly in the status line of irremote.exe and in the "Detected IR Commands". Furthermore, with this remote all commands are successfully sent through the UDP.
Attachments
IRremote.jpg
IRremote.jpg (39.38 KiB) Viewed 69188 times
simples
 
Posts: 26
Joined: Mon 10. Oct 2011, 12:13

Re: The problem with sending commands via UDP

Postby IRTrans » Fri 20. Jul 2012, 14:31

Very strange. We will need to check that here. I hope we succeed as this seems to be a problem with your specific remote control.

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

Re: The problem with sending commands via UDP

Postby IRTrans » Fri 20. Jul 2012, 15:38

Are you using a current SW version?

Last year we fixed an error in the IRDB loading code of the irserver that might have made problems with UDP IR Receive. It was fixed with version 6.08.29 of the irserver. When you are using an older version please download our latest SW from our website.

You will need to reflash the IRDB with that new SW version.

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

Re: The problem with sending commands via UDP

Postby IRTrans » Fri 20. Jul 2012, 15:58

Hi,
I just tried that out here. I have used your ctrl.rem file and two IRTrans devices as I do not have the remote control for testing.

All command recognized by the irserver (ctrl+f was not recognized by the IRTrans device & the irserver, maybe due to the device settings) where also recognized by the IRDB Firmware of the IRTrans.

The only thing I can imagine is the irserver problem I have mentioned before (if you are using old SW versions).

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

Re: The problem with sending commands via UDP

Postby IRTrans » Fri 20. Jul 2012, 16:05

I have just checked the changes we made in the irserver - the error might indeed cause the problems you have with receiving.

Sorry that I did not recall that earlier but we fixed that almost one year ago and it did not cause any problems before.

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

Re: The problem with sending commands via UDP

Postby IRTrans » Fri 20. Jul 2012, 17:04

Hi,
it would be great if you could post the settings you are using to receive and recognize the XMP codes.

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

PreviousNext

Return to Ethernet

Who is online

Users browsing this forum: No registered users and 3 guests

cron