Displaying 3 results from an estimated 3 matches for "report_buf".
Did you mean:
report_bug
2007 Feb 01
2
Re: [Nut-upsuser] Ablerex 625L USB version
...zeroes
> + All constants are hardcoded in windows driver
> + */
> +
> + #define AGILER_REPORT_SIZE 8
> + #define AGILER_REPORT_COUNT 6
> + #define AGILER_TIMEOUT 5000
> +
> + static int set_data_agiler(const char *str)
> + {
> + unsigned char report_buf[AGILER_REPORT_SIZE];
> +
> + if (strlen(str)>AGILER_REPORT_SIZE)
> + {
> + upslogx(LOG_ERR,
> + "set_data_agiler: output string too large");
> + return -1;
> + }
> +
> + memset(report_buf,0,sizeof(report_buf));
>...
2007 Jan 23
2
Voltage override in megatec and megatec-over-usb [was: Re: nut-2.0.5 megatec + Online Xanto]
On 1/23/07, Henning Brauer <hb-nut@bsws.de> wrote:
> good new first: the megatec driverin 2.0.5 now works with the Online
> Xanto S3000R here - well, for the very basics.
>
> the UPS has NO way ofidentifying itself. It also does not respond to
> the power ratings query ("F"). I previously used a hacked up fentonups
> driver. This means the driver cannot figure out
2006 Dec 05
3
megatec over USB - new driver patch
...Data comes in as 6 8-byte reports per line , padded with zeroes
+ All constants are hardcoded in windows driver
+*/
+
+#define AGILER_REPORT_SIZE 8
+#define AGILER_REPORT_COUNT 6
+#define AGILER_TIMEOUT 5000
+
+static int set_data_agiler(const char *str)
+{
+ unsigned char report_buf[AGILER_REPORT_SIZE];
+
+ if (strlen(str)>AGILER_REPORT_SIZE)
+ {
+ upslogx(LOG_ERR,
+ "set_data_agiler: output string too large");
+ return -1;
+ }
+
+ memset(report_buf,0,sizeof(report_buf));
+ memcpy(report_buf,str,strlen(str));
+
+ return...