I have an UPS attached via USB port to my linux machine. Unfortunately the UPS is unsupported and doesn't show up as a reconized device. However it DOES show up correctly with the lsusb command.
I'd like to read the battery status from my UPS via a simple bash script (triggered by cron for example). I don't want a fully functional script as it would require to know the protocol of the specific UPS; I just want to create a script to write raw commands and read raw responses to/from the UPS given the known USB address, then it will be up to me to encode the actual command and parse the response.
Thank you.