Displaying 3 results from an estimated 3 matches for "low_batt".
Did you mean:
lobatt
2010 Apr 19
1
Patch for the bestfortress driver 0.02
...ot;
-#define DRIVER_VERSION "0.02"
+#define DRIVER_VERSION "0.03"
/* driver description structure */
upsdrv_info_t upsdrv_info = {
@@ -203,20 +203,26 @@
int loadva;
int len;
int retry;
+ char ch;
int checksum_ok, is_online=1, is_off, low_batt, trimming, boosting;
for (retry = 0; retry < 5; ++retry) {
upsflushin (0, 0, "\r ");
upssend ("f\r");
+ while (ser_get_char(upsfd, &ch, 0, UPSDELAY) > 0 && ch != '\n'); // response starts with \r\n...
2005 Dec 05
3
Powerware 5125 works ?
Hi there.
At the moment I'm trying to get my HP T1500 XR (Powerware 5125) UPS to
work with NUT.
NUT registers that the UPS is on battery/online, but I just cant get the
program to shut down the computer
I'm using the original cable (thus I didn't enter anything in the
ups.conf file)
If I remove the cable and run the daemon/program the computer will
shutdown after x minutes defined in
2009 Aug 14
2
Bestfortress driver, network serial patch for nut-2.0
...WAIT_USEC);
}
static int upsflushin(int f,int verbose,const char *ignset) {
return ser_flush_in(upsfd, ignset, verbose);
}
/* read out UPS and store info */
void upsdrv_updateinfo(void) {
char temp[256];
char *p;
int loadva;
int len;
int retry;
int checksum_ok, is_online=1, is_off, low_batt, trimming, boosting;
for (retry = 0; retry < 5; ++retry) {
upsflushin (0, 0, "\r ");
upssend ("f\r");
do {
if (upsrecv (temp+2, sizeof temp - 2, ENDCHAR, IGNCHARS) <= 0) {
upsflushin (0, 0, "\r ");
upssend ("f\r");
}...