×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

SOLVED: please help me repair udev usb-serial designations?

  • Posts: 300
  • Thank you received: 57
In ubuntu 20.04 LTS (with KStars 3.5.3 stable) I added a new device with a USB serial port and now all my ports are messed up. How do I fix this?

After months of great consistent connections of a bunch of devices in an INDI profile, I added a new device and now I have loads of conflicts with different devices trying to use the same /dev/ttyUSBn ports. 

Do I need to just delete the profile and try to start from scratch? Is there a way to systematically assign each device to its own persistent port, perhaps by directly editing dev rules?

I feel like I've trial-and-errored my way through this process every time and never learned a systematic and reliable way to introduce new devices without blowing up my INDI setup.
Last edit: 2 years 10 months ago by Scott Denning.
2 years 10 months ago #71353

Please Log in or Create an account to join the conversation.

  • Posts: 349
  • Thank you received: 107
2 years 10 months ago #71354

Please Log in or Create an account to join the conversation.

  • Posts: 111
  • Thank you received: 41
Connect your device and type the following in the terminal
$ sudo dmesg && lsusb
These commands list the Vendor and Product ID's which are required for the udev rule.
Once you have the ID's create for each serial USB device a file in directory
/usr/lib/udev/rules.d
E.g. for Pegasus Power Box:
$cat 99-indi_aux_ppb.rules
SUBSYSTEM=="tty", ATTRS{idVendor}=="0403", ATTRS{product}=="*PPB*", SYMLINK+="ttyPPB", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="0424", ATTRS{idProduct}=="2517", MODE="0666"

Then either reboot your PC/RPI or type
$sudo udevadm trigger

Once you attach a the Pegasus Power Box, the device gets a symbolic link: /dev/ttyPPB which is persistant and can be accessed by this symbolic link.
2 years 10 months ago #71371

Please Log in or Create an account to join the conversation.

  • Posts: 300
  • Thank you received: 57
Thanks very much to you both!
2 years 10 months ago #71377

Please Log in or Create an account to join the conversation.

  • Posts: 2247
  • Thank you received: 223
If your issue is solved, please edit the subject with [SOLVED] as it helps other members.
2 years 10 months ago #71403

Please Log in or Create an account to join the conversation.

Time to create page: 0.782 seconds