Lazarus
Programming => Operating Systems => Topic started by: jcdammeyer on April 06, 2018, 03:30:49 am
-
Under the Oracle VM Virtual Box in a terminal window the command lsusb returns what are supposed to be the USB ports with VID:PID numbers.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 002: ID 80ee:0021 VirtualBox USB Tablet
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
These aren't what are actually on the PC running WIN-7 and the virtual box.
Under Raspian it returns the real VID:PID of the USB devices and also under Debian on a Beaglebone.
Under windows reading the registry can return the COM ports but the USB VID:PID is harder to get at.
What I'd like is an approach to get the USB VID:PID and description strings via Lazarus from any of the three target Operating systems. And then of course be able to open a USB COM port and read/write form/to it.
Suggestions?
Thanks
John
-
for linux use udev
https://github.com/daltomi/formatmydrive-pascal
linux or windows
https://sourceforge.net/projects/doublecmd/files/Double%20Commander%20Source/