We are testing the tool serial port communication through the ROS driver but we are facing several communication errors.
We are wondering it the serial communication has a baud rate upper limit which is smaller than the 5Mbaud provided on the robot interface (our device communicates with 2Mbaud rate).
The following command gets the same parameters used for our URCap:
From a driver development perspective I can add that we never tested such high baud rates.
You could start investigating this by having a look at your network traffic. Also, you can try launching the tool communication without the driver running:
@mauch do I need to run the externalControl node on the robot before the rosrun?
Because if I do not start the driver I get socket.error: [Errno 111] Connection refused.
And to run the externalControl I need to launch the whole driver, isn’t it?
Without running ExternalControl and the driver, you’ll need to manually activate tool communication on the robot in Installation->General->Tool and set the tool voltage in IO->Tool Output
Usually, this gets setup by the driver as part of the URScript running inside the program.
Thank you @mauch, now it starts correctly.
We have tried the 2M baud communication, but the initial error persists even without the whole driver loaded.
We are going to try the communication with a lower baud rate and see if it works (e.g. using at least at 460k baud).
I’ll let you know as soon as possible.