search for: krauler_command

Displaying 9 results from an estimated 9 matches for "krauler_command".

2011 May 14
2
NUT: new blazer_usb subdriver proposal
...supported natively by NUT (even though the monitoring software is UPSilon from megatec). After some investigation, they almost use the krauler-type communication already supported in the blazer_usb driver. However, the UPS won't reply if the language ID is not 0x4095... Therefore, I cloned the krauler_command, adding the language ID and unicode to ASCII conversion (taken from libusb). I also enhanced the error!retry mechanism, as the UPS fails to reply quite often. Please see the attached patch file. Any comment would me more than welcome. Rgds, Aur?lien -------------- section suivante --------------...
2020 Apr 03
0
Patch to support Powercool PCRACK-1200VA
...   *reopen_matcher = NULL;  static USBDeviceMatcher_t        *regex_matcher = NULL;  static int                langid_fix = -1; +static int                buflen_fix = -1;  static int    (*subdriver_command)(const char *cmd, char *buf, size_t buflen) = NULL; @@ -702,8 +703,15 @@ static int    krauler_command(const char *cmd, char *buf, size_t buflen)          { NULL }      }; -    int    i; +    /* check for buflen fix */ +    int blen = buflen; +    if (buflen_fix != -1) { +        /* set reported buflen explicitly */ +        blen = buflen_fix; +    } +    int    i; +dif      upsdebugx(3, &quot...
2020 Apr 03
0
Powercool PCRACK-1200VA patch update
...  usbdevice;  static USBDeviceMatcher_t        *reopen_matcher = NULL;  static USBDeviceMatcher_t        *regex_matcher = NULL; -static int                langid_fix = -1;  static int    (*subdriver_command)(const char *cmd, char *buf, size_t buflen) = NULL; @@ -717,13 +716,7 @@ static int    krauler_command(const char *cmd, char *buf, size_t buflen)          for (retry = 0; retry < 10; retry++) {              int    ret; - -            if (langid_fix != -1) { -                /* Apply langid_fix value */ -                ret = usb_get_string(udev, command[i].index, langid_fix, buf, buflen); - ...
2017 Jun 18
3
Unable to use nut-2.7.4 with Eaton 5E1500I USB
On Jun 16, 2017, at 6:12 AM, Manuel Wolfshant <wolfy at nobugconsulting.ro> wrote: > > running autogen.sh was triggered automatically. but even if I do it explicitly, I still get: > + autoreconf -i > configure.ac:887: warning: AC_LANG_CONFTEST: no AC_LANG_SOURCE call detected in body
2017 Jun 19
0
Unable to use nut-2.7.4 with Eaton 5E1500I USB
...14c62.7.4.1/drivers/nutdrv_qx.c:692: undefined reference to `libusb_strerror' nutdrv_qx-nutdrv_qx.o: In function `fabula_command': /builddir/build/BUILD/nut-v2.7.4-418-gb1314c62.7.4.1/drivers/nutdrv_qx.c:907: undefined reference to `libusb_strerror' nutdrv_qx-nutdrv_qx.o: In function `krauler_command': /builddir/build/BUILD/nut-v2.7.4-418-gb1314c62.7.4.1/drivers/nutdrv_qx.c:770: undefined reference to `libusb_strerror' nutdrv_qx-nutdrv_qx.o: In function `sgs_command': /builddir/build/BUILD/nut-v2.7.4-418-gb1314c62.7.4.1/drivers/nutdrv_qx.c:542: undefined reference to `libusb_strer...
2017 Jun 19
2
Unable to use nut-2.7.4 with Eaton 5E1500I USB
...v_qx.c:692: > undefined reference to `libusb_strerror' > nutdrv_qx-nutdrv_qx.o: In function `fabula_command': > /builddir/build/BUILD/nut-v2.7.4-418-gb1314c62.7.4.1/drivers/nutdrv_qx.c:907: > undefined reference to `libusb_strerror' > nutdrv_qx-nutdrv_qx.o: In function `krauler_command': > /builddir/build/BUILD/nut-v2.7.4-418-gb1314c62.7.4.1/drivers/nutdrv_qx.c:770: > undefined reference to `libusb_strerror' > nutdrv_qx-nutdrv_qx.o: In function `sgs_command': > /builddir/build/BUILD/nut-v2.7.4-418-gb1314c62.7.4.1/drivers/nutdrv_qx.c:542: > undefined r...
2013 Jan 08
1
[blazer_usb] Support for TECNOWARE ERA LCD (FGCERALCD0K85)
...rking). Sniffing results (here: https://docs.google.com/open?id=0B9DltUspeUMtamFnRDlqazhLRTg ) seem to confirm langid_fix value (0409). On the other side, the problem seems to be due to some differences in command string numbering or their prefix: [nut actual blazer_usb code snippet:] static int krauler_command(const char *cmd, char *buf, size_t buflen) { /* * Still not implemented: * 0x6 T<n> (don't know how to pass the parameter) * 0x68 and 0x69 both cause shutdown after an undefined interval */ const struct { const char *str; /* Mega...
2017 Jun 16
0
Unable to use nut-2.7.4 with Eaton 5E1500I USB
.../build/BUILD/nut-libusb-1.0/drivers/nutdrv_qx.c:692: undefined reference to `libusb_strerror' nutdrv_qx-nutdrv_qx.o: In function `fabula_command': /builddir/build/BUILD/nut-libusb-1.0/drivers/nutdrv_qx.c:907: undefined reference to `libusb_strerror' nutdrv_qx-nutdrv_qx.o: In function `krauler_command': /builddir/build/BUILD/nut-libusb-1.0/drivers/nutdrv_qx.c:770: undefined reference to `libusb_strerror' nutdrv_qx-nutdrv_qx.o: In function `sgs_command': /builddir/build/BUILD/nut-libusb-1.0/drivers/nutdrv_qx.c:542: undefined reference to `libusb_strerror' nutdrv_qx-nutdrv_qx.o:/...
2017 Jun 15
2
Unable to use nut-2.7.4 with Eaton 5E1500I USB
Hi Manuel, 2017-06-14 15:16 GMT+02:00 Manuel Wolfshant <wolfy at nobugconsulting.ro>: > Hello > > > > On 06/14/2017 03:32 PM, Arnaud Quette wrote: > > > > On Jun 7, 2017, at 5:47 AM, Manuel Wolfshant <wolfy at nobugconsulting.ro> > wrote: > >> > >>> > If that matters, the OS is a fully updated CentOS 6.9 and this >>>