UDP communication ports RMPX440LE

RMP 210, 220, 440LE, 440SE, 440 Omni
Post Reply
gvw
Posts: 7
Joined: Fri Oct 19, 2012 5:43 am
Contact:

UDP communication ports RMPX440LE

Post by gvw » Sun Dec 02, 2012 8:44 am

Hi,

I noticed that I can configure IP address and port number of the onboard controller. How does it work on the PC side? The Python demo code uses a port 55 (?) when creating the socket. On Linux this (below 1024) privileged port, that requires th process to be run by root. This is a bit unconvenient. Since UDP is connectionless: Do I have to configure this somewhere in the onbard computer, when I change to port on the PC side? (I admit that I have not tested this yet...)

Best,

Georg

sdnalloh
Posts: 47
Joined: Tue Aug 07, 2012 1:27 pm
Contact:

Re: UDP communication ports RMPX440LE

Post by sdnalloh » Mon Dec 03, 2012 10:31 am

The RMP and computer must both communicate on the same port. You can set RMP_CMD_ETH_PORT_NUMBER to any port you want, but know that the RMP both sends and receives on that port and will not see any traffic on other ports.

After changing Ethernet settings (including port number), you must reboot the RMP for the changes to take effect.

gvw
Posts: 7
Joined: Fri Oct 19, 2012 5:43 am
Contact:

Re: UDP communication ports RMPX440LE

Post by gvw » Thu Feb 14, 2013 5:48 pm

Hi again,

after having my code running in principle, I tried to change the port using the python demo program. Unfortunately it does not allow me to enter non privileged ports. I did not try the ful range of port numbers, but I definiely canot sent port numbers bigger that 1024. I now use setiud flags to let the driver run as root, but do not really like this. Any ideas?

Best

Georg

User avatar
phussey
Posts: 79
Joined: Fri Apr 20, 2012 8:12 am
Contact:

Re: UDP communication ports RMPX440LE

Post by phussey » Fri Feb 15, 2013 11:07 am

Please download the linux version of the OCU. This has been fixed in that version.

http://rmp.segway.com/viewtopic.php?f=9&t=83
PATRICK HUSSEY
Principal Engineer

STANLEY INNOVATION, INC
www.stanleyinnovation.com

gvw
Posts: 7
Joined: Fri Oct 19, 2012 5:43 am
Contact:

Re: UDP communication ports RMPX440LE

Post by gvw » Thu Feb 21, 2013 8:30 am

Thanks, I will try that.

Best,

Georg

User avatar
phussey
Posts: 79
Joined: Fri Apr 20, 2012 8:12 am
Contact:

Re: UDP communication ports RMPX440LE

Post by phussey » Thu Feb 21, 2013 8:43 am

There will be a new version up shortly with a slight modification that supports 64-bit linux if you are using it. The version on there has been verified to work on 32-bit Ubuntu 12.04 LTS
PATRICK HUSSEY
Principal Engineer

STANLEY INNOVATION, INC
www.stanleyinnovation.com

User avatar
phussey
Posts: 79
Joined: Fri Apr 20, 2012 8:12 am
Contact:

Re: UDP communication ports RMPX440LE

Post by phussey » Thu Feb 21, 2013 11:48 am

The latest version compatible with 64-bit Ubuntu 12.04 LTS is located here, there are other minor corrections for the controller mapping so please use this even if you are already running in x86:

http://rmp.segway.com/viewtopic.p ... p=206#p206
PATRICK HUSSEY
Principal Engineer

STANLEY INNOVATION, INC
www.stanleyinnovation.com

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests