RobotStudio event

Communicating via socket in Python with GoFa CRB 1500

Options
  • We succeeded in communicating with GoFa in this configuration via socket with C++ code.
  • PC has a manually set IP.
  • Ping to GoFa IP is OK
  • Ethernet cable is plugged on  WAN
  • Code in Python is:
    HOST = "192.168.100.61"
    PORT =  20000
    serversocket = socket.socket()
    if serversocket :
      serversocket.connect((HOST, PORT))
Feedback is :
TimeoutError: [WinError 10060]  ....

same thing when trying:
serversocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

Any idea ?
Thank you

Comments

  • Florimond
    Options
    Server must be started on GoFa and this works:

    HOST = "192.168.100.61"
    PORT =  20000

    s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
    if s :
      s.connect((HOST, PORT))