Displaying 5 results from an estimated 5 matches for "subdriver_command".
2018 Jul 21
0
Adding drivers to NUT?
...()`,
- ditto for subsequent communications, in `qx_command()`.
For USB devices:
- `qx_usb_id` lists the various VID:PID pairs (with, optionally and
only if needed, the iManufacturer and iProduct strings) of each
supported device, coupled with a function ('fun()' from now on) that
will set `subdriver_command` to point to the function ('command()'
from now on) later used to communicate with the device.
- When nutdrv_qx starts, in `upsdrv_initups()`, it will either pick
the USB subdriver (whose name must be mapped to its relative
'command()' in the `usbsubdriver` list) directly if it was...
2018 Jul 18
2
Adding drivers to NUT?
Dear Daniele,
I'm trying to create a subdriver for 'nutdrv_qx' instead of modifying the Blazer as you suggested, but i honestly don't understand how to integrate usb-serial devices (some of our UPSs have USB but serial protocol Q1). i understand the serial version but not the USB one.
i also checked the "Claim" function, but i can't see drivers that uses the VID
2018 Jul 24
2
Adding drivers to NUT?
...()`,
- ditto for subsequent communications, in `qx_command()`.
For USB devices:
- `qx_usb_id` lists the various VID:PID pairs (with, optionally and
only if needed, the iManufacturer and iProduct strings) of each
supported device, coupled with a function ('fun()' from now on) that
will set `subdriver_command` to point to the function ('command()'
from now on) later used to communicate with the device.
- When nutdrv_qx starts, in `upsdrv_initups()`, it will either pick
the USB subdriver (whose name must be mapped to its relative
'command()' in the `usbsubdriver` list) directly if it was...
2020 Apr 03
0
Patch to support Powercool PCRACK-1200VA
...s/nutdrv_qx.c
@@ -422,6 +422,7 @@ static USBDevice_t usbdevice;
static USBDeviceMatcher_t *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 repor...
2020 Apr 03
0
Powercool PCRACK-1200VA patch update
...tdrv_qx.c
@@ -421,7 +421,6 @@ static usb_dev_handle *udev = NULL;
static USBDevice_t 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...