I Seem to have made some progress in getting nut-2.0.5 installed, but hidups still has a version number of 0.13. First is hidups 0.13 the correct version? if not how do I find the correct version. Second if my Geek Squad GS1285U UPS is not supported how do I proceed. I have been a programmer for 35 years(mostly high level computer aided design), written code in 20 some languages, am retired and it is cold outside so I am mostly at my computers. I have very limited work on Linux/Unix. I did get Apache web server running (redden.homeip.net). If someone can point me in the right direction I will try to get it working. Cyber Power Systems makes the GS1285U and they say that it shares some of the commands with the Cyber Power Systems 685AVR. Here is the info from my system. I ran hidups on all my USB devices. From /usr/local/ups/etc/ups.conf These are the only non-comment lines. [GeekSquad1] driver = hidups port = /dev/bus/usb/001/002 desc = "Geek Squad GS1285U" gary@redden-p700:~$ sudo /usr/local/ups/bin/hidups -DDDD -u root -a GeekSquad1 Network UPS Tools: HID UPS driver 0.13 (2.0.5) Warning: This is an experimental driver. Some features may not function correctly. debug level is '4' /dev/bus/usb/001/001 is not a UPS gary@redden-p700:~$ sudo /usr/local/ups/bin/hidups -DDDD -u root -a GeekSquad1 Network UPS Tools: HID UPS driver 0.13 (2.0.5) Warning: This is an experimental driver. Some features may not function correctly. debug level is '4' /dev/bus/usb/001/002 is not a UPS gary@redden-p700:~$ sudo /usr/local/ups/bin/hidups -DDDD -u root -a GeekSquad1 Network UPS Tools: HID UPS driver 0.13 (2.0.5) Warning: This is an experimental driver. Some features may not function correctly. debug level is '4' /dev/bus/usb/001/003 is not a UPS gary@redden-p700:~$ sudo lsusb Bus 001 Device 003: ID 0553:0202 STMicroelectronics Imaging Division (VLSI Vision) Aiptek PenCam 1 Bus 001 Device 002: ID 0764:0501 Cyber Power System, Inc. Bus 001 Device 001: ID 0000:0000 gary@redden-p700:~$
Gary, did you receive Charles' reply to your question yesterday? He wrote:> The new driver is called ***** 'newhidups' *****The 'hidups' driver has been discontinued. -- Peter Gary Redden wrote:> > I Seem to have made some progress in getting nut-2.0.5 installed, but > hidups still has a version number of 0.13. First is hidups 0.13 the > correct version? if not how do I find the correct version. Second if my > Geek Squad GS1285U UPS is not supported how do I proceed. I have been a > programmer for 35 years(mostly high level computer aided design), > written code in 20 some languages, am retired and it is cold outside so > I am mostly at my computers. I have very limited work on Linux/Unix. I > did get Apache web server running (redden.homeip.net). If someone can > point me in the right direction I will try to get it working. Cyber > Power Systems makes the GS1285U and they say that it shares some of the > commands with the Cyber Power Systems 685AVR. > > Here is the info from my system. I ran hidups on all my USB devices. > > From /usr/local/ups/etc/ups.conf These are the only non-comment lines. > [GeekSquad1] > driver = hidups > port = /dev/bus/usb/001/002 > desc = "Geek Squad GS1285U" > > gary@redden-p700:~$ sudo /usr/local/ups/bin/hidups -DDDD -u root -a > GeekSquad1 > Network UPS Tools: HID UPS driver 0.13 (2.0.5) > > Warning: This is an experimental driver. > Some features may not function correctly. > > debug level is '4' > /dev/bus/usb/001/001 is not a UPS > > gary@redden-p700:~$ sudo /usr/local/ups/bin/hidups -DDDD -u root -a > GeekSquad1 > Network UPS Tools: HID UPS driver 0.13 (2.0.5) > > Warning: This is an experimental driver. > Some features may not function correctly. > > debug level is '4' > /dev/bus/usb/001/002 is not a UPS > > gary@redden-p700:~$ sudo /usr/local/ups/bin/hidups -DDDD -u root -a > GeekSquad1 > Network UPS Tools: HID UPS driver 0.13 (2.0.5) > > Warning: This is an experimental driver. > Some features may not function correctly. > > debug level is '4' > /dev/bus/usb/001/003 is not a UPS > > gary@redden-p700:~$ sudo lsusb > Bus 001 Device 003: ID 0553:0202 STMicroelectronics Imaging Division > (VLSI Vision) Aiptek PenCam 1 > Bus 001 Device 002: ID 0764:0501 Cyber Power System, Inc. > Bus 001 Device 001: ID 0000:0000 > gary@redden-p700:~$ > > > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser >
When I try to build newhidups I seem to be missing a file (usb.h) or should be setting a parameter SHUT_MODE. I did a search of my system and do not have the file usb.h. I also poked around on WebSvn but could not turn up the file. I think SHUT_MODE is for a different device than I have. Where do I find usb.h? Is this the correct list for this problem? Error messages gary@redden-p700:/home/nut/nut-2.0.5/drivers$ make newhidups gcc -I../include -O -Wall -Wsign-compare -c newhidups.c In file included from newhidups.c:25: libhid.h:50:18: error: usb.h: No such file or directory In file included from newhidups.c:25: libhid.h:51: error: syntax error before ?hid_dev_handle? libhid.h:51: warning: type defaults to ?int? in declaration of ?hid_dev_handle? libhid.h:51: warning: data definition has no type or storage class libhid.h:178: error: syntax error before ?*? token libhid.h:183: error: syntax error before ?*? token libhid.h:184: error: syntax error before ?*? token libhid.h:186: error: syntax error before ?*? token libhid.h:188: error: syntax error before ?*? token libhid.h:190: error: syntax error before ?*? token libhid.h:201: error: syntax error before ?*? token libhid.h:206: error: syntax error before ?*? token libhid.h:211: error: syntax error before ?*? token libhid.h:216: error: syntax error before ?*? token libhid.h:227: error: syntax error before ?*? token libhid.h:232: error: syntax error before ?*? token libhid.h:237: error: syntax error before ?*? token In file included from newhidups.c:26: newhidups.h:39: error: syntax error before ?*? token newhidups.h:39: warning: type defaults to ?int? in declaration of ?udev? newhidups.h:39: warning: data definition has no type or storage class newhidups.c:69: error: syntax error before ?*? token newhidups.c:69: warning: type defaults to ?int? in declaration of ?udev? newhidups.c:69: warning: data definition has no type or storage class make: *** [newhidups.o] Error 1 gary@redden-p700:/home/nut/nut-2.0.5/drivers$ Code from libhid.h #ifdef SHUT_MODE struct shut_dev_handle_s { int upsfd; /* point to main.c/upsfd */ char *device_path; }; typedef struct shut_dev_handle_s shut_dev_handle; typedef shut_dev_handle hid_dev_handle; #else #include <usb.h> typedef usb_dev_handle hid_dev_handle; #endif
On 1/19/07, Gary Redden <redden@skybest.com> wrote:> When I try to build newhidups I seem to be missing a file (usb.h) or > should be setting a parameter SHUT_MODE. I did a search of my system and > do not have the file usb.h. I also poked around on WebSvn but could not > turn up the file. I think SHUT_MODE is for a different device than I > have. Where do I find usb.h? Is this the correct list for this problem? > Error messagesusb.h is from libusb. Depending on your Linux distribution (I am assuming you are running linux since libhid built for you), you need both the "libusb" runtime package and the "libusb-dev" or "libusb-devel" package with the headers. -- - Charles Lepple
>From the file INSTALL, step 1:1. Configure the source tree for your system. Add the --with-user switch to set the user name that you created above. ./configure --with-user=nut If you need any other switches for configure, add them here. For example: * to build and install USB drivers, add --with-usb (note that you need to install libusb development package or files). That last sentence answers your question. Libusb is at: http://libusb.sourceforge.net/ (or type "libusb" into Google). -- Peter Gary Redden wrote:> > When I try to build newhidups I seem to be missing a file (usb.h) or=20 > should be setting a parameter SHUT_MODE. I did a search of my system and=20 > do not have the file usb.h. I also poked around on WebSvn but could not=20 > turn up the file. I think SHUT_MODE is for a different device than I=20 > have. Where do I find usb.h? Is this the correct list for this problem? > Error messages > > gary@redden-p700:/home/nut/nut-2.0.5/drivers$ make newhidups > gcc -I../include -O -Wall -Wsign-compare -c newhidups.c > In file included from newhidups.c:25: > libhid.h:50:18: error: usb.h: No such file or directory > In file included from newhidups.c:25: > libhid.h:51: error: syntax error before =91hid_dev_handle=92 > libhid.h:51: warning: type defaults to =91int=92 in declaration of=20 > =91hid_dev_handle=92 > libhid.h:51: warning: data definition has no type or storage class > libhid.h:178: error: syntax error before =91*=92 token > libhid.h:183: error: syntax error before =91*=92 token > libhid.h:184: error: syntax error before =91*=92 token > libhid.h:186: error: syntax error before =91*=92 token > libhid.h:188: error: syntax error before =91*=92 token > libhid.h:190: error: syntax error before =91*=92 token > libhid.h:201: error: syntax error before =91*=92 token > libhid.h:206: error: syntax error before =91*=92 token > libhid.h:211: error: syntax error before =91*=92 token > libhid.h:216: error: syntax error before =91*=92 token > libhid.h:227: error: syntax error before =91*=92 token > libhid.h:232: error: syntax error before =91*=92 token > libhid.h:237: error: syntax error before =91*=92 token > In file included from newhidups.c:26: > newhidups.h:39: error: syntax error before =91*=92 token > newhidups.h:39: warning: type defaults to =91int=92 in declaration of =91> udev=92 > newhidups.h:39: warning: data definition has no type or storage class > newhidups.c:69: error: syntax error before =91*=92 token > newhidups.c:69: warning: type defaults to =91int=92 in declaration of =91> udev=92 > newhidups.c:69: warning: data definition has no type or storage class > make: *** [newhidups.o] Error 1 > gary@redden-p700:/home/nut/nut-2.0.5/drivers$ > > Code from libhid.h > > #ifdef SHUT_MODE > struct shut_dev_handle_s { > int upsfd; /* point to main.c/upsfd */ > char *device_path; > }; > typedef struct shut_dev_handle_s shut_dev_handle; > typedef shut_dev_handle hid_dev_handle; > #else > #include <usb.h> > typedef usb_dev_handle hid_dev_handle; > #endif > > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser >
On 1/19/07, Gary Redden <redden@skybest.com> wrote:> I Seem to have made some progress in getting nut-2.0.5 installed, but > hidups still has a version number of 0.13. First is hidups 0.13 the > correct version? if not how do I find the correct version. Second if my > Geek Squad GS1285U UPS is not supported how do I proceed. I have been a > programmer for 35 years(mostly high level computer aided design), > written code in 20 some languages, am retired and it is cold outside so > I am mostly at my computers. I have very limited work on Linux/Unix. I > did get Apache web server running (redden.homeip.net). If someone can > point me in the right direction I will try to get it working. Cyber > Power Systems makes the GS1285U and they say that it shares some of the > commands with the Cyber Power Systems 685AVR. > > Here is the info from my system. I ran hidups on all my USB devices.Please try again with the 'newhidups' driver in 2.0.5. By 'newhidups', I don't mean 'a new version of hidups'. Rather, the 'hidups' driver is an experimental driver from way back when, and 'newhidups' was a total rewrite that was designed to be more modular (and portable). Right now, 'newhidups' has support for many different USB UPSes (including the 685AVR from what I have heard from other developers), whereas 'hidups' only supported a subset of the protocol, and only on Linux at that. Since 'newhidups' is not a drop-in replacement for 'hidups', both are being kept in the source code until the end of the 2.0.x version series. The 'hidups' driver is deprecated, though, and when we eventually get to 2.2.x, 'hidups' will be gone, and 'newhidups' will be called 'usbhid-ups' so that we can start from a clean slate. -- - Charles Lepple