search for: upsdrv_init_nofc

Displaying 8 results from an estimated 8 matches for "upsdrv_init_nofc".

2014 Feb 07
2
BestPower Ferrups driver glitch with f commands
...Uninterruptible Power System By Powerware Corporation 8609 Six Forks Road Raleigh, NC 27615 USA Sales: (800) 356-5794 Service: (800) 356-5737 FAX : (608) 565-2221 Copyright (C) 2001 Powerware Corporation Model: FE2.1KVA Unit ID: FE2.1K27433 Serial #: FE2.1K27433 Version: 9.28 = in upsdrv_init_nofc() . 20.428359 Driver failed to start (exit status=1) ---------------------------------------------------------------
2014 Feb 10
2
BestPower Ferrups driver glitch with f commands
...wrote: > Greetings to you all, > > We are attempting to use NUT to interface with a BestPower FerrUPS FE2.1KVA. We are using the bestfcom driver because the driver listed our UPS as supported. The driver fails, however, because "fc" commands do not exist on the unit. There is a upsdrv_init_nofc() function, but it seems to be brittle in its string matching. > We are running NUT v2.7.1 on CentOS 6.5 with the bestfcom driver. We setup a serial tap and see the UPS error out on the fc command issued for the model, which than causes the driver to not identify the model correctly. > >...
2014 Feb 10
0
BestPower Ferrups driver glitch with f commands
...diff -rupN release-orig/nut-2.7.1/drivers/bestfcom.c release-patched/nut-2.7.1/drivers/bestfcom.c --- release-orig/nut-2.7.1/drivers/bestfcom.c 2013-07-31 13:41:31.000000000 -0700 +++ release-patched/nut-2.7.1/drivers/bestfcom.c 2014-02-10 10:22:35.405305828 -0800 @@ -582,6 +582,13 @@ void upsdrv_init_nofc(void) fc.type = FERRUPS; snprintf(fc.name, sizeof(fc.name), "%s", "Ferrups"); } else + /* For FE2.1KVA running 9.28 firmware */ + if (strstr(rstring, "Model: FE2.1KVA") + || strstr(rstring, "Model...
2014 Feb 08
0
BestPower Ferrups driver glitch with f commands
...rote: > Greetings to you all, > > We are attempting to use NUT to interface with a BestPower FerrUPS FE2.1KVA. We are using the bestfcom driver because the driver listed our UPS as supported. The driver fails, however, because "fc" commands do not exist on the unit. There is a upsdrv_init_nofc() function, but it seems to be brittle in its string matching. > We are running NUT v2.7.1 on CentOS 6.5 with the bestfcom driver. We setup a serial tap and see the UPS error out on the fc command issued for the model, which than causes the driver to not identify the model correctly. > >...
2014 Feb 10
0
Patch for bestfcom driver
...diff -rupN release-orig/nut-2.7.1/drivers/bestfcom.c release-patched/nut-2.7.1/drivers/bestfcom.c --- release-orig/nut-2.7.1/drivers/bestfcom.c 2013-07-31 13:41:31.000000000 -0700 +++ release-patched/nut-2.7.1/drivers/bestfcom.c 2014-02-10 10:22:35.405305828 -0800 @@ -582,6 +582,13 @@ void upsdrv_init_nofc(void) fc.type = FERRUPS; snprintf(fc.name, sizeof(fc.name), "%s", "Ferrups"); } else + /* For FE2.1KVA running 9.28 firmware and possibly older */ + if (strstr(rstring, "Model: FE2.1KVA") + || strstr(r...
2007 Dec 02
1
Driver bestfcom - Timing problem with Fortress LI1420
..., result, resultsize, '\015', "\012", 3, 0); ? @@ -741,7 +744,9 @@ ????????????????exit(EXIT_FAILURE); ????????} ? +???????sleep(UPSDELAY); ????????execute("fc\r", rstring, sizeof(rstring)); +???????sleep(UPSDELAY); ????????if (strlen(rstring) < 80 ) { ????????????????upsdrv_init_nofc(); ????????} else { ############################################################ ?end diff ############################################################ ? Am I the only one facing this? Or is my UPS (manufactured 1998) the last of it's kind? I hope this helps other Fortress users. H.Kegel
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
2011 Oct 03
2
patch: Replace many usleep and some sleep calls with nanosleep
...er, sizeof(buffer), ENDCHAR, IGNCHARS, 3, 0); while (ser_get_line(upsfd, buffer, sizeof(buffer), '>', "\012", 3, 0) <= 0) { printf("."); ser_send(upsfd, "\r"); - sleep(UPSDELAY); + nanosleep(&delay, NULL); } } @@ -537,7 +538,7 @@ void upsdrv_init_nofc(void) ser_send(upsfd, "id\r"); /* prevent upsrecv from timing out */ - sleep(UPSDELAY); + struct timespec delay = {UPSDELAY, 0}; nanosleep(&delay, NULL); ser_get_line(upsfd, rstring, sizeof(rstring), '>', "", 3, 0); Index: b/drivers/bestfortress.c ====...