IRTrans WiFi UDP Message Problem

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

Moderator: marcus

IRTrans WiFi UDP Message Problem

Postby ferjuarez » Thu 24. May 2012, 19:59

Message translated by Google:

Good morning!

We are having errors sending UDP messages to a WiFi IRTrans. The issue is: we have installed a network architecture comprising a router and two Cisco access points. Access Points Each generates a different SSID names, such WifiRed1 and WifiRed2. Configure the WiFi network IRTrans WifiRed1, that is always connected to this network which is which has better range. If we connect with a device capable of sending UDP messages to the network WifiRed1, the IRTrans works perfectly. The problem arises when we connect to the WifiRed2, since in this case the device does not respond. The same way TCP / IP works, but UDP does not.
We analyze the situation a bit and noticed that if the message is long (3 bytes or more) works, but not for short messages, since obviously the AP adds characters to the message to complete the package. But we think the solution was to use the ASCII character <CR> <LF> and bottom of the message as to interpret the message ends there, but it's like it does not give importance to these characters, and discard ends or something. There is another solution to send the UDP message and close the frame?

Very Thanks


Original Message:

Buenos días!

Estamos teniendo errores con el envío de mensajes UDP a un IRTrans WiFi. El tema es el siguiente: tenemos instalada una arquitectura de red compuesta un router y por dos Access points Cisco. Cada Access Points genera una SSID de diferentes nombres, por ejemplo WifiRed1 y WifiRed2. Configuramos el IRTrans WiFi con la red WifiRed1, para que siempre se encuentre conectado a esta red que es a la cual tiene mejor alcance. Si nosotros nos conectamos con un dispositivo capaz de enviar mensajes UDP a la red WifiRed1, el IRTrans funciona a la perfección. El problema se presenta cuando nos conectamos a la WifiRed2, ya que en este caso el dispositivo no responde. Esto mismo vía TCP/IP funciona, pero UDP no.
Analizamos un poco la situación y notamos que si el mensaje es largo (3 bytes o mas) funciona, pero para mensajes cortos no, ya que evidentemente el Access Point agrega caracteres al mensaje para completar el paquete. Ahora bien, la solución que pensamos fue utilizar los caracteres ASCII <LF> y <CR> al final del mensaje como para que interprete que el mensaje se termina allí, pero es como que no le dá importancia a estos caracteres, y los termina desechando o algo asi. Existe alguna otra solución para enviar el mensaje UDP y cerrar la trama?

Muchas Gracias
ferjuarez
 
Posts: 4
Joined: Thu 24. May 2012, 13:38

Re: IRTrans WiFi UDP Message Problem

Postby IRTrans » Thu 24. May 2012, 21:17

Hi,
we do not know of any such problem. We have not seen anything like this before.

In general you can always append <CR><LF> to any ASCII message.

Does the irserver connectivity work? (It also uses UDP)

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

Re: IRTrans WiFi UDP Message Problem

Postby TrikomDomotica » Wed 30. May 2012, 12:50

Hi,

We use UDP messaging with IRTRans WiFi DB
The problem is that the IRTrans not cut the message when it encounters characters <CR> <LF>.
For example:
We recorded in the DB:
Remote:TV1 - command: power.

We send the follow UDP message:
snd TV1, power <CR> <LF> abc
but not work

Do not want to add the characters "abc". The router adds garbage to the end of the message.

Thank! Trikom
TrikomDomotica
 
Posts: 1
Joined: Wed 30. May 2012, 11:26

Re: IRTrans WiFi UDP Message Problem

Postby IRTrans » Wed 30. May 2012, 13:20

Hi,
the IRTrans is not supposed to remove any garbage at the end of messages. You should only use the syntax described in the manual.

Some network components do add binary "0" at the end of a message. That is no problem and will be ignored by the IRTrans device.

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

cron