Home› Programming
Discussion
Back to discussions page
manusahun
Posts: 3 Apprentice
Not able to read data from port 30002 or rtde 30004 via C# TCP/IP |
664 views
|
Answered | |
/ Most recent by matthewd92
in Programming
|
4 comments |

in Programming
Best Answers
-
matthewd92 Founding Pro, Tactile Sensor Beta Testers Posts: 1,252 Handy
You have to unpack the stream, can’t just convert to a string. The docs on the UR website show you how each packet of the stream has been packed, it’s different depending on the message type. Also, port 30004 is the RTDE port, you have to actually send the setup to the port before it will stream anything back to you. There are good docs on the support site with a python example that we used to base our rtde client on. -
matthewd92 Founding Pro, Tactile Sensor Beta Testers Posts: 1,252 Handy
Im having trouble to read data from port 30002 and 30004, I am already able to use port 29999 and send petitions and read data. Not sure if its done in a different way.
Following I have my client code in C# to connect to 29999 port and by changing its location to 30004/2 it does connect but the commands I send don't return the values specified.
CODE:
Thks again.