Print serial port path/name in output of ola_dev_info

Offen
#2,002 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
52/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Veraltet
Tech-Stack
cpp
Bereich
cli

Rechercherichtung

Start with the ola_dev_info command and the device-info output it produces, then trace how serial device details are obtained. Check the libserialport sp_get_port_name(port) API referenced in the issue and test with an ENTTEC device; done means the output includes its path or name, such as /dev/ttyUSB0 or COMx.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

In response to comment in https://github.com/OpenLightingProject/ola/issues/2000 :

Btw, is it possible to somehow get the corresponding device path of ENTTEC (for me, /det/ttyUSB0) from OLA? I know ola_dev_info output something like "Device 2: Enttec Usb Pro Device .... port 0, OUT, patched to universe 1, RDM supported", but there is no /dev/ttyUSB0 device path there (I have to look for startup messages in syslog like "olad: plugins/usbpro/WidgetDetectorThread.cpp:215: Found potential USB Serial device at /dev/ttyUSB0" to find the device path).

Not if you can't currently see it on ola_dev_info, and if you could it would probably still be down to parsing a string that might change. Do you want to open a new issue for this as maybe we should extend our device info stuff to have some sort of path (be that on the device or as an IP) as a specific separate piece of info:

It would be great if the OLA device info could be expanded to also print this information.

In support of this, I'd like to note that I've used the https://sigrok.org/gitweb/?p=libserialport.git;a=tree in an executable, and the command sp_get_port_name(port) returns /dev/ttyUSB0 on Raspberry Pi, and COMx on Windows.

Vorherrschende Sprache
C++
Sterne
773
Forks
233
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus OpenLightingProject/ola

Alle Issues in OpenLightingProject/ola

Ähnliche Issues

Weitere Issues zu C++

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.