Home Programming

Discussion

Left ArrowBack to discussions page
ObenyaalaObenyaala Posts: 6 Apprentice
edited June 24 in Programming
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)

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.
I would appreciate your help. 

Thanks,
Best Regards



Tagged:

Comments

Sign In or Register to comment.
Left ArrowBack to discussions page