Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

serial number #1

Open
EastEriq opened this issue Jul 5, 2020 · 3 comments
Open

serial number #1

EastEriq opened this issue Jul 5, 2020 · 3 comments

Comments

@EastEriq
Copy link
Owner

EastEriq commented Jul 5, 2020

self-note: find a way to store in the class also some sort of unique identifier, in case more than one focuser are connected to the same computer. Notably via USB, the numbering of the serial port is dynamic and arbitrary. In that case identifying the serial # oft the FTDI chip may help.

If the focuser was connected to a true serial port, numbering would be fixed. If it was connected with a serial cable, but via an USB-232(TTL) dongle, ditto as above.

@EastEriq
Copy link
Owner Author

EastEriq commented Jul 5, 2020

Ideas:
look at:
/dev/serial/by-id/ single empty file, e.g usb-FTDI_FT232R_USB_UART_A1085VJH-if00-port0

udevadm info --query all --name /dev/ttyUSB0 --attribute-walk

https://unix.stackexchange.com/questions/81754/how-to-match-a-ttyusbx-device-to-a-usb-serial-device

https://unix.stackexchange.com/questions/144029/command-to-determine-ports-of-a-device-like-dev-ttyusb0

look at /sys/bus/usb-serial/devices/ which contains links to the physical device, e.g. ttyUSB0 -> ../../../devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/ttyUSB0

@EastEriq
Copy link
Owner Author

EastEriq commented Jul 6, 2020

Tackling it with https://github.com/EastEriq/LAST_USBserial

@PolishookDavid
Copy link
Collaborator

PolishookDavid commented Jul 6, 2020

Shit, and the answer is: "usb-Celestron_Celestron_Focuser_MF_v1-if00". No serial number or the like. (~Enrico on LAST-PC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants