Closed Yeesha-R closed 8 months ago
I'm experiencing the same problem, however, in my setup, I have 2 ur10e, one runs smoothly, but the other one is not able to connect via external control. I did notice that the problem is related to the IP address, if I exchange the IP addresses of the robots the one that wasn't connecting is then able to connect and vice versa.
I'm experiencing the same problem, however, in my setup, I have 2 ur10e, one runs smoothly, but the other one is not able to connect via external control. I did notice that the problem is related to the IP address, if I exchange the IP addresses of the robots the one that wasn't connecting is then able to connect and vice versa.
Solved by disabling firewall with sudo systemctl stop ufw
Hi @adetoni1, thank you for your response. I have tried your suggestion sudo systemctl stop ufw
but it does not work for me.
I also tried time echo 'exit' | telnet portquiz.net 50002
but got an error that the connection is closed by foreign host
Trying 35.180.139.74... Connected to portquiz.net. Escape character is '^]'. Connection closed by foreign host.
real 0m0.995s user 0m0.001s sys 0m0.004s
I'm sorry to hear that. But I did read that you already tried to stop the firewall in your problem description so I was expecting this. Btw, I'm no expert, but in your case, it seems very related to the fact that port 50002 is not open, in my case I can see it on my host PC. I suggest understanding why 50002 is not there while waiting for someone more experienced to answer!
Thanks @adetoni1 , that is exactly what I am currently doing.
I noticed that when I run netstat -tuln
, 50002 is not among the active ports displayed
However, after I run nc -l 50002
, then run netstat -tuln
again, the port becomes active, but the program does not start on the teach pendant
I found a way around it. Firstly, I executed the launch file for UR5 robot using roslaunch ur_robot_driver ur5_bringup.launch robot_ip:=192.168.1.2
, then executed the launch file for my UR5e robot roslaunch ur_robot_driver ur5e_bringup.launch robot_ip:=192.168.1.2
.
Thank you for your assistance @adetoni1
Affected ROS Driver version(s)
ROS noetic
Used ROS distribution.
Noetic
Which combination of platform is the ROS driver running on.
Linux with realtime patch
How is the UR ROS Driver installed.
Build the driver from source and using the UR Client Library from binary
Which robot platform is the driver connected to.
Real robot
Robot SW version
5.12.4
How is the ROS driver used.
Through the robot teach pendant using External Control URCap
Issue details
Summary
I am unable to establish connection with my robot using the external control. I get the error "Connection to remote PC could not be established"
Here is my setup:
Version
ROS Driver version: Ubuntu 20.04, ROS noetic Affected Robot Software Version(s): e-Series Affected Robot Hardware Version(s): UR5e URCaps Software version(s): externalcontrol-1.0.5.urcap
Issue details
I have been experiencing issues connecting to my UR5e lately (it started few days ago). I read all issues under "connection refused". I have also read issues about not using the correct IP address, in issues #244, #590, #510. However, none of the solutions worked for my problem.
Steps to Reproduce
When I run
roslaunch ur_robot_driver ur5e_bringup.launch robot_ip:=192.168.1.2
, I get the following output:At this stage, I start the external control on the teach pendant but got the error message "The connection to the remote PC at 192.168.1.1:50002 could not be established. Reason: Connection refused (Connection refused)"
I was able to successfully ping the robot at 192.168.1.2
When I ran
telnet 192.168.1.1 50002
, I gotWhen I ran
nc 192.168.1.2
, I gotnc: missing port number
when I ran
sudo ufw disable
, I gotFirewall stopped and disabled on system startup
and when I ranss -alpn | grep 5000 | column -t
, I noticed that the 50002 port is not among the available portsA screenshot is attached below
Expected Behavior
The establish connection with the robot to enable control via ROS
Actual Behavior
Unable to establish connection with the robot. Teach pendant pops error "The connection to remote PC at 192.168.1.2:50002 could not be established. Reason:COnnection refused (Connection refused)"
I have been using this robot for over one year but this issue started recently. Kindly let me know if you need anymore information. Thank you.
Relevant log output
No response
Accept Public visibility