[Nut-upsuser] APC 750VA UPS not recognized by NUT?

Andrew Min Chang laplacezhang at 126.com
Fri Mar 9 03:59:37 UTC 2012


Hi, Charles!

    I think you got the point. Though I still could not solve that.

    First of all, I configured USB debug level as 1, and:
# /usr/local/ups/bin/upsdrvctl start
Network UPS Tools - UPS driver controller 2.6.3
Network UPS Tools - Generic HID driver 0.35 (2.6.3)
USB communication driver 0.31
usb_set_debug: Setting debugging level to 1 (on)
usb_os_init: No USB VFS found, is it mounted?
No matching HID UPS found
Driver failed to start (exit status=1)



# /usr/local/ups/bin/usbhid-ups -a APC_SMT_USB -DDD
Network UPS Tools - Generic HID driver 0.35 (2.6.3)
USB communication driver 0.31
   0.000000     debug level is '3'
   0.005722     upsdrv_initups...
usb_set_debug: Setting debugging level to 1 (on)
usb_os_init: No USB VFS found, is it mounted?
   0.006152     No appropriate HID device found
   0.006217     No matching HID UPS found


    Then we looked into the source and found that that error message came from libusb.
libusb check USB device path from /dev/bus/usb or /proc/bus/usb. And this is the point I believe. The system of my board does NOT provide regular USB support: the /proc/bus/usb/ path contains nothing, while /dev/bus/usb/ even does NOT exist!

    There is a path looks like USB path but actually totally different, which is /sys/bus/usb. If you are interested in that, I attached the information of that (tmp.txt in the attachment). It contains a lot of links, and they are so complicated that I do not know how to show you the whole content of them.


    Finally, If I set the USB path to this one, error still occured.


# export USB_DEVFS_PATH='/sys/bus/usb/devices/'
# /usr/local/ups/bin/upsdrvctl start >upsStart.log 2>&1
# /usr/local/ups/bin/usbhid-ups -a APC_SMT_USB -DDD >upsDebug.log 2>&1

    The two files are also attached.

    What can I do? I think this is the configuration of my Linux kernel. I asked Google but we could not find anything about how to get /dev/bus/usb or /proc/bus/usb back. Have you ever met this problem? Do you know where to enable these two path?


Bset wishes
--
Andrew Chang
2012-03-09


At 2012-03-08 21:11:15,"Charles Lepple" <clepple at gmail.com> wrote:
>On Mar 8, 2012, at 1:11 AM, Andrew Min Chang wrote:
>
>> # /usr/local/ups/bin/usbhid-ups -a APC_SMT_USB -DDD
>> Network UPS Tools - Generic HID driver 0.35 (2.6.3)
>> USB communication driver 0.31
>>    0.000000     debug level is '3'
>>    0.007846     upsdrv_initups...
>>    0.008253     No appropriate HID device found
>>    0.008335     No matching HID UPS found
>
>Are either of the /proc/bus/usb or /dev/bus/usb filesystems mounted? ('mount' will list all of them)
>
>I'm confused that you can see output from lsusb, but maybe that is consulting /sys/bus/usb.
>
>>     Another information: I tried installing NUT on my host PC (with Redhat). The configurations are the same except for using gcc instead of cross compiling. Still neither UPS is recognized. But this time it printed a lot and the program seemed endless. 
>>     Part of the message is attched. 
>
>Correct, running the driver with any -D flags will log debug output to the console, and will prevent the driver from going into the background.
>
>-- 
>Charles Lepple
>clepple at gmail
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20120309/a8a54ff5/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logs.tar.gz
Type: application/x-gzip
Size: 5712 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20120309/a8a54ff5/attachment-0001.bin>


More information about the Nut-upsuser mailing list