Hey there, enginerds!
I made this thing
a few whiles ago and now i'm fed up of manually starting the thing every time. I want to "daemonize" the driving shell script. I want it to be started automatically on boot. I intend to modify the driver script and create a systemd unit file (which i will publish in the project thread).
In my case there are, at times, multiple serial devices (/dev/tty[USB]?*) connected to the host, and i'd like to pick _that one target device_.
The first approach, i thought of is to iterate every /dev/tty**?? (serial port, on Linux), connect to it, read, and expect a certain reply string, e.g. "OhaiIAmTheTargetDevice" …then pick that serial port.
1) Am i taking a detour, or is it the right direction?
2) Is there an industry standard method for iteratively identifying "ttyserial" devices, i'm not yet aware of?
3) Examples, Experiences, HowTos, Guides, Links… anyone?