Skip to content

Implementing Robotic Arm UDP Feedback via Serial Port.

Make Sure the Computer and Robotic Arm Are Connected Successfully

First, make sure that the computer and the robotic arm are successfully connected. The IP addresses of both need to be set to the same network segment. (The robotic arm IP in this tutorial is 192.168.10.18, and the computer IP is 192.168.10.111).

Press the shortcut key win+R to open the Run dialog, enter cmd and press Enter the key to open the Command Prompt window. Enter the following command. If the following response is received, it proves that the connection is successful.

cmd
ping RoboticArm IP

PING return value

Turn off the Computer Firewall and Security Settings

Since the computer's firewall and antivirus software may intercept by mistake, it is necessary to turn off all firewalls and antivirus software of the host computer (the target device for feedback). We would not introduce any closing method of the corresponding settings of the antivirus software. Please search on the Internet and study detailed steps to close different antivirus software.

Turn off Windows Defender Firewall

  1. Press the shortcut key win+R to open the Run dialog, enter control and press the key Enter to open the control panel.

    PING return value

  2. Click System and Security.

    PING return value

  3. Click Window Defender Firewall.

    PING return value

  4. Click Turn Windows Defender Firewall on or off.

    PING return value

  5. Turn off Windows Defender Firewall and click OK.

    PING return value

Turn off Windows Security Settings

  1. Click on the computer Start menu bar and select Settings.

    PING return value

  2. Select ​Privacy & Security and click Windows Security.

    PING return value

  3. Select ​Virus & threat Protection, find the Microsoft Defender anti-virus option, and turn off various types of protection.

    PING return value PING return value

Configure UDP Feedback Transmission

  1. Open the Bingo serial port and select the protocol type as TCP Client.

  2. Enter the IP address and port number of the robot arm in Remote host address and Remote host port (the author's robotic arm IP is 192.168.10.18, and the port number is 8080).

  3. Click Open to enable TCP mode.

  4. Enter the JSON command.

    json
    {"command":"set_realtime_push","cycle":10,"enable":true,"port":8099,"ip":"192.168.10.111"}

    For the description of JSON instructions, please refer to Set the UDP robot arm status active reporting configuration set_realtime_push.

  5. Click Send.

    Send JSON command

  6. If {"command":"set_realtime_push","state":true} appears, it means the sending is successful. As shown in the figure below:

    Json command response

  7. Click Exit to exit TCP mode.

    Exit TCP mode

  8. Select the protocol type as UDP.

    Set UDP protocol type

  9. Set the local host port to the custom port value in the Json instruction. The value set this time is 8099.

  10. Click Open to turn on the UDP return mode.

  11. The robotic arm sends back the current status of the robotic arm in real time at a set cycle.

    UDP feeds back the status of robotic arm.