Ian created a new topic ' Persistent Serial Port Mapping' in the forum. 3 years ago

Using IndiLib on RPi, KStars/Ekos on Mac and an iEQ45 mount, I can't get persistent serial port mapping to work.

Setup rules.d as described in https://indilib.org/support/tutorials/157-persistent-serial-port-mapping.html

astronomy.rules:

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", ATTRS{serial}=="A104E4YQ", MODE="0666", SYMLINK+="ttymount"


On the RPi, relevant bit of ls /dev output gives

tty7
tty8
tty9
ttyAMA0
ttymount
ttyprintk
ttyUSB0
uhid
uinput

Although on the screen most other devices (and all other tty devices) are in yellow text but the "ttymount" is in turquoise text (so something different.

Set the iEQ45 config to connect on "ttymount" but when I start IndiLib from Ekos I get

020-09-29T14:19:10: [INFO] iOptron iEQ45 is online.
2020-09-29T14:19:10: [WARNING] Communication with /dev/ttymount @ 9600 failed. Starting Auto Search...
2020-09-29T14:19:10: [ERROR] Failed to connect to port (/dev/ttymount). Error: Port failure Error: Invalid argument. Check if device is connected to this port.


And the connection config reverts to ttyUSB0.

It then works fine over ttyUSB0 (as I'm building up my config getting it working step by step and this is the first serial port so no ambiguity (at the moment, hence wanting to setup persistent serial port for the future ...)

My (beginner) impression:
the rules.d file seems to be working as it created the "ttymount" device (but I have no idea how to test it outside Indilib) and am unsure exactly what might be causing the error (maybe it's not that the port can't be found?)

Any ideas what I might be doing wrong. Or what to try next?

Many thanks
Ian

Read More...