Displaying 8 results from an estimated 8 matches for "sun_libusb".
2009 Dec 29
1
SUN_LIBUSB
...I've been trying to get a TrippLite 700DV communicating with nut in
Solaris. The problem was that I would successfully send a message to the
ups, but wouldn't be able to receive anything. After some snooping
around I found this bit of code in libusb.c libusb_get_interrupt().
#ifdef SUN_LIBUSB
/*
usleep(timeout * 1000);
*/
return 0;
#else
/* FIXME: hardcoded interrupt EP => need to get EP descr
for IF descr */
ret = usb_interrupt_read(udev, 0x81, (char *)buf,
bufsize, timeout);
if (ret > 0) {...
2014 Dec 19
2
usbhid-ups on OmniOS (Solaris 10 derivate)
...alue got updated, but this was very rare occasion (status was always OL).
> System reboot helped to get recent values.
>
> I?ve tried apcupsd and it worked flawlessly.
> Then I wnt back to nut and I?ve noticed that interrupt processing is was
> disabled in NUT:
>
> #if 1 //ndef SUN_LIBUSB
> bool_t use_interrupt_pipe = TRUE;
> #else
> bool_t use_interrupt_pipe = FALSE;
> #endif
>
> A hack to a hack to enable it? fixed it. Now it works as it should.
>
> It seems that SUN (well, Oracle) has fixed/updated their implementation?
> and requires IRQ to be processe...
2014 Dec 19
0
usbhid-ups on OmniOS (Solaris 10 derivate)
...this was very rare occasion (status was always OL).
>> System reboot helped to get recent values.
>>
>> I?ve tried apcupsd and it worked flawlessly.
>> Then I wnt back to nut and I?ve noticed that interrupt processing is was disabled in NUT:
>>
>> #if 1 //ndef SUN_LIBUSB
>> bool_t use_interrupt_pipe = TRUE;
>> #else
>> bool_t use_interrupt_pipe = FALSE;
>> #endif
>>
>> A hack to a hack to enable it? fixed it. Now it works as it should.
>>
>> It seems that SUN (well, Oracle) has fixed/updated their implementation? an...
2008 Sep 26
0
FreeBSD usbhid-ups problem
...ppropriate HID device found
> upsdrv_updateinfo...
> Got to reconnect!
Maybe FreeBSD requires that the existing connection to a USB device is
closed before it can be opened again. Currently the libusb_open()
function (in 'drivers/libusb.c') only closes an existing connection if
SUN_LIBUSB is defined (lines 106-109) to work around a double free
corruption in Linux if devices are detached (since the kernel will do
this already). But it could very well be that this is required in
FreeBSD (or other systems) as well.
Best regards, Arjen
--
Please keep list traffic on the list
2008 Feb 03
2
USB UPS on Solaris
Is anyone here running a USB UPS on Solaris? I'm looking to upgrade my
UPS (from a SmartUPS 620 with RS232 comms), and most of the modern UPSs
use USB ...
TX,
Huge.
2007 Feb 16
5
MGE Nova AVR 600 USB on FreeBSD
Hi,
I've seen a few emails in the archives about problems polling MGE UPSs
via USB under FreeBSD, but unfortunately I didn't find a solution in
them that works for me.
A few details about my setup.. The UPS is a MGE Nova AVR 600 connected
via USB to a FreeBSD 6.2 box. I have tried both the nut port (2.0.5)
and the svn trunk but have had no success yet. I am running nut as
root to
2007 Feb 16
5
MGE Nova AVR 600 USB on FreeBSD
Hi,
I've seen a few emails in the archives about problems polling MGE UPSs
via USB under FreeBSD, but unfortunately I didn't find a solution in
them that works for me.
A few details about my setup.. The UPS is a MGE Nova AVR 600 connected
via USB to a FreeBSD 6.2 box. I have tried both the nut port (2.0.5)
and the svn trunk but have had no success yet. I am running nut as
root to
2007 Aug 23
1
[nut-commits] svn commit r1073 - in trunk: . drivers
...; +HIDDevice_t *HIDOpenDevice(hid_dev_handle_t **udevp, HIDDevice_t *hd, HIDDeviceMatcher_t *matcher, int *mode)
> {
> int ReportSize;
> unsigned char ReportDesc[4096];
>
> - if (mode == MODE_REOPEN) {
> + if (*mode == MODE_REOPEN) {
> #if defined(SHUT_MODE) || defined(SUN_LIBUSB)
> /* Cause a double free corruption in USB mode on linux! */
> if (*udevp != NULL) {
> @@ -623,7 +674,7 @@
> if (ReportSize < 0)
> return NULL;
>
> - if (mode == MODE_REOPEN) {
> + if (*mode == MODE_REOPEN) {
> upsdebugx(4, "Device reopened succes...