I'm writing a Ruby gem that will communicate to devices over serial via USB. There are a few different communication formats I need to deal with, the format is determined using a combination of PID/VID values.
I'd like for the gem to be cross platform (Linux/Mac/Windows), but I would settle for just Linux and Mac.
What is the most portable way in Ruby, using the fewest number of gems, to reliably detect USB PID/VID info of a serial port?
I ended up parsing the output from command line programs under Mac & Linux, there doesn't seem to be a solution under windows with out writing a custom C extension.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments