SICKAG / sick_scan_xd

A versatile driver for a wide range of SICK LiDAR and RADAR devices, providing support for both Linux (native, ROS 1, ROS 2) and Windows (native, ROS 2) platforms.
Apache License 2.0
111 stars 85 forks source link

How to change the device name by windows without ROS ? #389

Closed sjeffreydong closed 3 weeks ago

sjeffreydong commented 2 months ago

Dear

How to change the device name by windows without ROS ? Please share the method.

rostest commented 2 months ago

Thank you for your feedback. We recommend to use SOPAS ET or SOPAS Air to change the device name and store it in the EEPROM of the lidar.

Alternatively you can use the SOPAS command sWN LocationName to set a device name:

image See the telegram listing for details.

Without ROS, SOPAS commands can be sent using the SickScanApiSendSOPAS API function:

image See the API description for details.

sjeffreydong commented 2 months ago

I used SOPAS TO change the name but have the error : “status_code:2, status_message Error unexpected Sopas answer for request sWN EIHstCola 0x01 CRC:<0x09>, giving up after 1 unexpected answers.” should i eidt the launch file?

rostest commented 2 months ago

Thank you for your reply. Which lidar are you using?

The SOPAS command sWN EIHstCola 1 changes the SOPAS Cola dialect to Cola binary. This is the communication mode used by the sick_scan_xd driver for most lidars. If the lidar is initially in Cola-A mode (ASCII telegrams), the driver will switch to Cola-B (binary telegrams) and restart. This should happen automatically and the lidar initialisation should work after this restart.

Please post a complete logfile of the initialisation phase after startup.