Displaying 5 results from an estimated 5 matches for "ups_sync".
Did you mean:
ms_sync
2007 Jun 19
2
Microdowell (cpsups) driver segfault
...ll ups (BBox BP 1000) connected to a Gentoo box by serial cable.
If I try to start the driver , I see the following :
Network UPS Tools - CyberPower text protocol UPS driver .05 (2.0.5)
Warning: This is an experimental driver.
Some features may not function correctly.
debug level is '13'
ups_sync: send [\rP4\r]
ups_sync: got ret 46 [#1000VA ,2.107,000000000000,CYBER POWER ]
ups_sync: got line beginning with #, looks usable, returning
get_ident: got [#1000VA ,2.107,000000000000,CYBER POWER ]
Detected MicroDowell B.Box BP 1000 2.107 on /dev/ttyS0
Segmentation fault
It segfaults...
2007 Apr 13
2
Problem with GeekSquad GS-1500 (Cyberpower 1500 avr lcd)
...39;ve tried cpsups, cyberpower and powerpanel.
here's the output of the different drivers
./cpsups -DDD /dev/ttyS1
Network UPS Tools - CyberPower text protocol UPS driver .05 (2.0.5)
Warning: This is an experimental driver.
Some features may not function correctly.
debug level is '3'
ups_sync: send [\rP4\r]
ups_sync: got ret -1 []
ups_sync: send [\rP4\r]
ups_sync: got ret -1 []
ups_sync: send [\rP4\r]
ups_sync: got ret -1 []
ups_sync: send [\rP4\r]
ups_sync: got ret -1 []
ups_sync: send [\rP4\r]
ups_sync: got ret -1 []
Unable to detect a CyberPower text protocol UPS
./cyberpower -DDD...
2008 Feb 06
2
Problem with bestfcom and old Ferrups
I have an old (1997) Best Ferrups (model FE18KVA) that I am trying to
monitor for the first time, but all the Best drivers fail to communicate
with it.
In ups_sync() in bestuferrups.c and bestfcom.c, the "time" command is
sent and a one-line response is read. However, on my UPS, that command
returns the current time and then prompts for a new time setting. I
worked around that by just sending another "\r" (on an UPS that doesn't
prom...
2008 Jul 10
2
[PATCH] tripplite driver updates
...(ret == -1)
- return -1;
+ goto out;
if (c == IGNCHAR || c == ENDCHAR)
continue;
buf[i++] = c;
} while (c != ENDCHAR && i < len);
buf[i] = '\0';
- ser_flush_in(upsfd, NULL, 0);
- return i;
+ ret = i;
+out:
+ ser_flush_io(upsfd);
+ return ret;
}
static void ups_sync(void)
@@ -301,14 +285,17 @@ void upsdrv_initinfo(void)
int va;
long w, l;
-
/* Detect the UPS or die. */
ups_sync();
- send_cmd(":W\r", w_value, sizeof w_value);
- send_cmd(":L\r", l_value, sizeof l_value);
- send_cmd(":V\r", v_value, sizeof v_value);
- se...
2011 Oct 03
2
patch: Replace many usleep and some sleep calls with nanosleep
...;CyberPower UPS not found on %s", device_path);
Index: b/drivers/bestups.c
===================================================================
--- a/drivers/bestups.c 2011-05-31 13:36:49.000000000 +0300
+++ b/drivers/bestups.c 2011-08-17 00:40:17.000000000 +0300
@@ -252,7 +252,7 @@ static void ups_sync(void)
if ((ret > 0) && (buf[0] == '('))
return;
- usleep(250000);
+ struct timespec delay = {0, 250e6}; nanosleep(&delay, NULL);
}
fatalx(EXIT_FAILURE, "Unable to detect a Best/SOLA or Phoenix protocol UPS");
@@ -333,7 +333,7 @@ void upsdrv_updatein...