Home› Programming
Discussion
Back to discussions page
Obenyaala
Posts: 6 Apprentice
ori_connection = socket_open("192.168.0.3", 7777, "orientation")
sleep(0.100)
if(not ori_connection):
textmsg("Could not establish a connection to 192.168.0.3:7777")
error = True
end
ori_message = socket_send_line("GetORI", "orientation")
sleep(1)
if(not ori_message):
textmsg("Could not send GetORI to 192.168.0.3:7777")
error = True
end
ori_correction = socket_read_line("orientation", 10)
textmsg("Got this: ",ori_connection)
I do receive from ori_correction => True, after 10s I get a timeout error.
From the server :
=> I save each connection once receiving a valid command I send to the client as follows :
Client.Send(StringValueToByteArray(StringToHex("HI" + Environment.NewLine)))
I used SocketTest to test the communication, and it worked just fine, so I am lost on where the problem is.
sending a request from UR10e and receiving a response from server over TCP/IP |
33 views
|
Not answered yet | |
/ Started by Unknown
in Programming
|
0 comments |

Hello,
I tried looking for similar questions but unfortunately couldn't find a solution to my problem.
I am running a TCP Socket server using C# Socket, and I am trying to this script of the UR10e :
ori_connection = socket_open("192.168.0.3", 7777, "orientation")
sleep(0.100)
if(not ori_connection):
textmsg("Could not establish a connection to 192.168.0.3:7777")
error = True
end
ori_message = socket_send_line("GetORI", "orientation")
sleep(1)
if(not ori_message):
textmsg("Could not send GetORI to 192.168.0.3:7777")
error = True
end
ori_correction = socket_read_line("orientation", 10)
textmsg("Got this: ",ori_connection)
From the server :
=> I save each connection once receiving a valid command I send to the client as follows :
Client.Send(StringValueToByteArray(StringToHex("HI" + Environment.NewLine)))
I used SocketTest to test the communication, and it worked just fine, so I am lost on where the problem is.
I would appreciate your help.
Thanks,
Best Regards