SICKAG / sick_scan_xd

Based on the sick_scan drivers for ROS1, sick_scan_xd merges sick_scan, sick_scan2 and sick_scan_base repositories. The driver supports both Linux (native, ROS1, ROS2) and Windows (native and ROS2).
Apache License 2.0
90 stars 83 forks source link

Failed to open TCP connection..LMS1XX #280

Closed erknl closed 3 months ago

erknl commented 5 months ago

I can successfully ping my device. However, I am unable to perform the command 'nc -z -v -w5 $SCANNERIPADDRESS 2112'. I have submitted the outputs in the attachment. I cannot complete the startup process. I need your assistance. Thank you, and have a great day. hata1.odt hata2.odt

rostest commented 5 months ago

Thanks for your feedback. A missing TCP connection can have several reasons like network errors or firewall rules. Please try SOPAS Engineering Tool (SOPAS ET) for diagnostic, network setup and configuration of the lidar.

erknl commented 4 months ago

Thank you for your response. I've checked what you mentioned and, as a final attempt, I'm addressing the issue. I configure the IP settings of my device using a tool (sopas et) and successfully obtain an image from the device. While in online mode, I connect the lidar sensor to my Jetson device. "I can ping it, but I'm encountering problems with other operations.

rostest commented 4 months ago

Thanks for your reply. I assume you still get the error message Failed to open TCP connection to 169.254.223.1:2112, i.e. sick_scan_xd running on the Jetson can not establish a tcp connection to the lidar.

Missing TCP connections can have several reasons like network errors or firewall rules. Can you open a TCP connection from the Jetson to the lidar on port 2112 e.g. by telnet 169.254.223.1 2112 and traceroute -T -p 2112 169.254.223.1? If not, a firewall might restrict access. In this case, deactivate any firewall on the Jetson or between Jetson and your lidar.

erknl commented 4 months ago

Screenshot from 2024-02-19 16-45-40 I might be a bit of an amateur, sorry for that, and thank you for your response. If I didn't misunderstand, I sent a visual of the process you mentioned.

rostest commented 4 months ago

Thanks for following up. According to the logfile, sick_scan_xd tries to connect to ip address 169.254.223.1. In the screenshot on the other hand the ip address is 192.168.6.151. Please make sure you got the correct ip address of your lidar and run ros2 launch sick_scan_xd sick_tim_7xx.launch.py hostname:=192.168.6.151 (resp. the lidars ip address).

erknl commented 4 months ago

I made some adjustments after my initial post to address the issue. That's why the IP addresses are different between the posts.

The output of the command is attached. (error 3) hata3.odt

ros2 launch sick_scan_xd sick_lms_1xx.launch.py ​​hostname:=192.168.6.151 Images of the sick_lms_1xx.launch file, ping and ifconfig commands are also attached. Screenshot from 2024-02-20 10-52-24 The sopas connection settings screen on Windows PC is also attached. sopas

rostest commented 4 months ago

Thanks for your screenshots. According to ifconfig, it looks like the Jetson has ip address 192.168.6.151:

image

According to SOPAS ET, the lidar seems to have the same ip address 192.168.6.151:

image

Please make sure that each device in your network has a unique ip address.

erknl commented 4 months ago

Thank you for your quick response. I'm sorry about this simple issue that I overlooked. I think I'm getting a little closer... Screenshot from 2024-02-20 16-58-47

rostest commented 4 months ago

This looks very promising! 👍