search for: hiddevice

Displaying 10 results from an estimated 10 matches for "hiddevice".

Did you mean: iddevice
2006 Jun 03
1
RFC: allow HID subdriver's to register ups.conf settings
...-x on the command line), as per the normal serial drivers. DESCRIPTION OF CHANGES: - In newhidups.h, add an extra line to the subdriver_s struct; void (*extendvartable)(void); so it becomes; struct subdriver_s { char *name; int (*claim)(HIDDevice *hd); usage_tables_t *utab; hid_info_t *hid2nut; int (*shutdown)(int ondelay, int offdelay); char *(*format_model)(HIDDevice *hd); char *(*format_mfr)(HIDDevice *hd); char *(*format_serial)(HIDDevice *hd...
2007 Feb 08
3
Re: [nut-commits] svn commit r801 - in branches/megatec-usb: . drivers
...======================================================= > --- branches/megatec-usb/drivers/megatec_usb.c (original) > +++ branches/megatec-usb/drivers/megatec_usb.c Thu Feb 8 16:43:43 2007 > @@ -152,7 +152,7 @@ > } > } > > - ret = usb->open(&udev,&hiddevice,&match,u.report_desc,MODE_OPEN); > + ret = usb->open(&udev,&hiddevice,&match,u.report_desc,MODE_REOPEN); > if (ret<0) > usb_open_error(port); > > > _______________________________________________ > nut-commits mailing list > nut-comm...
2006 Dec 30
3
Newpoint 200897 UPS
...rently not used */ /* Default method */ upsdebugx(2, "Trying load.off."); if (instcmd("load.off", NULL) == STAT_INSTCMD_HANDLED) { return 1; } upsdebugx(2, "Shutdown failed."); return 0; } static char *powercom_format_model(HIDDevice *hd) { return hd->Product; } static char *powercom_format_mfr(HIDDevice *hd) { return hd->Vendor ? hd->Vendor : "Powercom"; } static char *powercom_format_serial(HIDDevice *hd) { return hd->Serial; } /* this function allows the subdriver to "claim" a device: re...
2007 Feb 16
1
Re: [nut-commits] svn commit r808 - in trunk: . drivers
I get the following error on r809 (but it looks like the code change happened here). Does HIDDevice_t need to be defined/changed in one of the headers? if gcc -DHAVE_CONFIG_H -I. -I../../drivers -I../include -I../../include -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -DINET6 -O2 -D_REENTRANT -DNETSNMP_USE_INLINE -Wall -Dlinux -I. -I/usr/...
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
2009 Jul 26
1
Problems connecting via USB to APC Back-UPS ES 700 (Model BE700-GR)
...FW:D3 Jul 27 00:08:06 kate kernel: [16001.477941] usb 3-1: Manufacturer: APC Jul 27 00:08:06 kate kernel: [16001.477941] usb 3-1: SerialNumber: 3B0908X39177 lsusb doesnt show it. (maybe because usb is statically compiled in?) kate:/# grep -w CONFIG_USB /boot/config-`uname -r` CONFIG_USB=y but the hiddevice is there kate:/# ls -la /dev/hid* crw-rw-r-- 1 root root 180, 96 27. Jul 00:08 /dev/hiddev0 crw-rw---- 1 root root 250, 0 27. Jul 00:08 /dev/hidraw0 tried using usbhid-ups driver and even with setting the option variable "cable" to "940-0127E" i had no luck. genericups with al...
2006 Nov 11
1
Help with newhidups subdriver for Dynex UPS
...currently not used */ /* Default method */ upsdebugx(2, "Trying load.off."); if (instcmd("load.off", NULL) == STAT_INSTCMD_HANDLED) { return 1; } upsdebugx(2, "Shutdown failed."); return 0; } static char *dynex_format_model(HIDDevice *hd) { return hd->Product; } static char *dynex_format_mfr(HIDDevice *hd) { return hd->Vendor ? hd->Vendor : "dynex"; } static char *dynex_format_serial(HIDDevice *hd) { return hd->Serial; } /* this function allows the subdriver to "claim" a device: return 1 if...
2007 Feb 01
2
Re: [Nut-upsuser] Ablerex 625L USB version
...erial device one > + only needs to implement device-specific get/set functions and add > an entry into > + KnownDevices table. > + > + */ > + > + static communication_subdriver_t *usb = &usb_subdriver; > + static usb_dev_handle *udev=NULL; > + static HIDDevice hiddevice; > + > + static int comm_usb_recv(char *buffer,size_t buffer_len,char > endchar,const char *ignchars); > + > + typedef struct > + { > + uint16_t vid; > + uint16_t pid; > + int (*get_data)(char *buffer,int buffer_size...
2006 Dec 05
3
megatec over USB - new driver patch
...etc. So in order to add support for another usb-to-serial device one +only needs to implement device-specific get/set functions and add an entry into +KnownDevices table. + +*/ + +static communication_subdriver_t *usb = &usb_subdriver; +static usb_dev_handle *udev=NULL; +static HIDDevice hiddevice; + +static int comm_usb_recv(char *buffer,size_t buffer_len,char endchar,const char *ignchars); + +typedef struct +{ + uint16_t vid; + uint16_t pid; + int (*get_data)(char *buffer,int buffer_size); + int (*set_data)(const char *str); +} usb_up...
2007 Aug 23
1
[nut-commits] svn commit r1073 - in trunk: . drivers
...NULL) { > return 0; > } > + > if (s1 == NULL) { > return -1; > } > + > if (s2 == NULL) { > return 1; > } > + > return strcmp(s1, s2); > } > > -/* private callback function for exact matches */ > -static int match_function_exact(HIDDevice_t *d, void *privdata) > +/* private callback function for exact matches > + * note: the exact matcher ignores the "Bus" field, > + * because it can change during a reconnect. > + */ > +static int match_function_exact(HIDDevice_t *hd, void *privdata) > { > - HIDDevice...