The company that sells them offer a binary blob driver, but I wanted something that I could extend and modify. I also want it to work with my RaspberryPi.
PowerUSB Basic connected to a RaspberryPi |
[andrew@andrew-rpi-1 pwrusbctl]$ ./pwrusbctl --reset_charge_accumulator --device_info --log_indefinitely --power --energy --interval 2000000 Found PowerUSB device type: Basic Power: 32.200001W Energy: 0.000000kWh Power: 32.200001W Energy: 0.000537kWh Power: 27.599998W Energy: 0.000537kWh Power: 27.599998W Energy: 0.000537kWh Power: 50.599998W Energy: 0.000537kWh Power: 172.500000W Energy: 0.000537kWh Power: 342.700012W Energy: 0.000537kWh Power: 519.799988W Energy: 0.000537kWh Power: 545.099976W Energy: 0.000537kWh