ZigEmbeddedGroup / serial

Serial port configuration library for Zig
MIT License
61 stars 18 forks source link

Add more verbose port information #8

Open lachlanm-git opened 1 year ago

lachlanm-git commented 1 year ago

Proposal: Add the ability to retrieve information such as VID, PID, serial number.

It is possible to retrieve more information without additional dependencies such as libusb and there seems there is interest in this? Example use-case: filter a comport based on the VID:PID and serial number.

Multi-OS example implementations: (linking to Windows below)...

lachlanm-git commented 1 year ago

I've taken a pass at something for Windows: https://github.com/lachlanm-git/zig-serial-poc.

Would be happy to try and put together a PR if this is desired. Would the idea be to just add to the existing serial.zig or break this out?

ikskuh commented 1 year ago

Imho we can add it to this library for sure, it's definitly a useful thing to have. Feel free to create a PR, i'll take a closer look then and try it out!

lachlanm-git commented 1 month ago

Linux support started with https://github.com/ZigEmbeddedGroup/serial/pull/30