March 20, 2019, 01:28:32 AM
Robotforum | Industrial Robots Community

 UDP Sockets

Author Topic:  UDP Sockets  (Read 1195 times)

0 Members and 1 Guest are viewing this topic.

February 20, 2018, 03:02:00 PM
Read 1195 times


Hello All,
I have a fairly complex application utilising a couple of sockets for UDP coms between agents and I have recently introduced a 3rd socket for intermittent file transfers between robot and PC.
The third socket does weird stuff.

in a standalone application it works great, transfers file all OK.

in the greater application i get  a funny comment coming through the syso Datagram Socket @96eac and the socket connects nor opens or transfers the file.

Do I have a limit on the LBR controller for maximum number of sockets?

Many Thanks

Today at 01:28:32 AM
Reply #1



February 20, 2018, 07:17:17 PM
Reply #1


Every SunriseWorkbench comes with a manual. Did you look in there? Because there is your answer!

Chapter: 15.5 Network communication via UDP and TCP/IP
Certain ports are enabled on the robot controller for communication with external
devices via UDP or TCP/IP.
The following port numbers (client or server socket) can be used in a robot application:
30,000 to 30,010


February 21, 2018, 07:43:40 AM
Reply #2


Hi Razzo,
I did read the manual, my request for help was a little more embellished - although I always hope for a simple fix - its not always apparent.

To reiterate I have two working sockets, the third doesn't appear to work - although it works when in a standalone application....

Best regards

February 21, 2018, 07:54:26 PM
Reply #3


I am sorry if i was/sounded a little bit impolite, but I missunderstood/did not read carefully your problem.

Actually you do have a limit of sockets which should be 11, afaik.
But why do you need to open 3 different sockets? I mean, you listen on a socket, accept the incoming connection and let the work being done by a thread, so that you can listen to the next incoming connection. And while that you can do you transfering stuff.
Or is there any reason why you want to have 3 different sockets?

March 20, 2018, 05:17:43 PM
Reply #4


I had my fair share of errors when it comes to sockets on Sunrise, but it's hard to tell from your question, as this might occur for different reasons. Can you elaborate or post the code?
I have some questions, though. At what frequency are you sending/receiving date on your third socket? Do you close the port before reopening it?

May 09, 2018, 11:42:26 AM
Reply #5


Hi kiiwa,
I resolved the problem with this - it turns out I had somehow managed to setup a client-server socket doing a server client type task.. Once I realised this and corrected it (also shed UDP for TCPIP) everything worked like it should. Multi-thread programming on two separate machines communicating via ethernet can very easily lead to confusion, in this case it was intermittent faults as well (the worse kind)..
Best regards

Share via facebook Share via linkedin Share via pinterest Share via reddit Share via twitter

sockets? anyone?

Started by JoanM on KUKA Robot Forum

4 Replies
Last post March 18, 2016, 12:31:32 PM
by JoanM
IIWA open sockets

Started by WolfSpirit on KUKA Robot Forum

2 Replies
Last post November 03, 2015, 05:20:53 PM
by WolfSpirit
KUKA motor sockets

Started by fluke on KUKA Robot Forum

2 Replies
Last post February 25, 2015, 09:07:16 PM
by fluke