search for: ipresentstatus

Displaying 3 results from an estimated 3 matches for "ipresentstatus".

Did you mean: presentstatus
2024 May 16
1
Supporting a DIY UPS with minimal effort butmaximum gain
...an Arduino device to be recognized as a HID compliant UPS device over USB. You use it by periodically calling a `sendReport` function with various flags set. Ex: PowerDevice.sendReport(HID_PD_REMAININGCAPACITY, &iRemaining, sizeof(iRemaining)); PowerDevice.sendReport(HID_PD_PRESENTSTATUS, &iPresentStatus, sizeof(iPresentStatus)); `iPresentStatus` is a bit field with a ton of info in it, like: PRESENTSTATUS_ACPRESENT, PRESENTSTATUS_DISCHARGING, PRESENTSTATUS_CHARGING, etc. See the project for full details. So, now my Arduino code loop does this: Check status of AC on/off pin. Set/clear PRESENTSTAT...
2024 May 17
1
Supporting a DIY UPS with minimal effort butmaximum gain
...> recognized as a HID compliant UPS device over USB. You use it by > periodically calling a `sendReport` function with various flags set. Ex: > PowerDevice.sendReport(HID_PD_REMAININGCAPACITY, &iRemaining, > sizeof(iRemaining)); > PowerDevice.sendReport(HID_PD_PRESENTSTATUS, &iPresentStatus, > sizeof(iPresentStatus)); > > `iPresentStatus` is a bit field with a ton of info in it, like: > PRESENTSTATUS_ACPRESENT, PRESENTSTATUS_DISCHARGING, > PRESENTSTATUS_CHARGING, etc. See the project for full details. > > So, now my Arduino code loop does this: > Check status o...
2024 May 16
2
Supporting a DIY UPS with minimal effort butmaximum gain
On 5/16/24 08:59, Jim Klimov via Nut-upsuser wrote: > I agree with earlier posters, such documentation can help future > tinkerers. There is probably more than just one to hold the hand and > walk through the ordeals :) > > Perhaps a new page at https://github.com/networkupstools/nut/wiki > <https://github.com/networkupstools/nut/wiki> can be a good location... >