I'm not sure of anything at this point.tcgetattr() is a command for getting the parameters for a serial port (/dev/ttyS?), it won't work with an USB HID device. Are you sure you are using the right driver? You should use the hidups or newhidups diver with USB HID UPSes. the hidups driver says "Can't connect to UPS [cyberpower] (hidups-hiddev0): No such file or directory . . . dev/hiddev0 is not a UPS" the newhidups driver says "Can't connect to UPS [cyberpower] (newhidups-hiddev0): No such file or directory. . . No USB/HID UPS found" I really dont WANT to use USB except that this motherboard doesnt have a serial port. |