Hello Charles, On Sun, 2008-11-09 at 09:40 -0500, Charles Lepple wrote:
> Can you try again after running 'export USB_DEBUG=2'? Certainly! [EMAIL PROTECTED]:~/nut-2.2.2 # export USB_DEBUG=4 [EMAIL PROTECTED]:~/nut-2.2.2 # drivers/megatec_usb -u _ups -a atlantisland -DDDDDD Network UPS Tools 2.2.2 - Megatec protocol driver 1.5.14 [megatec_usb] Carlos Rodrigues (c) 2003-2008 Serial-over-USB transport layer for Megatec protocol driver [megatec_usb] Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) 2007 debug level is '6' usb_set_debug: Setting debugging level to 4 (on) usb_os_find_busses: Found /dev/usb0 usb_os_find_busses: can't open /dev/usb4: Permission denied usb_os_find_busses: can't open /dev/usb5: Permission denied usb_os_find_devices: Found /dev/ugen0 on /dev/usb0 usb_control_msg: 128 6 512 0 0xcfbc0b18 8 1000 usb_control_msg: 128 6 512 0 0x82917300 27 1000 skipped 1 class/vendor specific interface descriptors Checking device (0001/0000) (/dev/usb0//dev/ugen0) usb_control_msg: 128 6 768 0 0xcfbc0a70 255 1000 usb_control_msg: 128 6 769 1033 0xcfbc0a70 255 1000 usb_control_msg: 128 6 768 0 0xcfbc0a70 255 1000 usb_control_msg: 128 6 770 1033 0xcfbc0a70 255 1000 - VendorID: 0001 - ProductID: 0000 - Manufacturer: UIS_ABLER - Product: USB to Serial - Serial Number: unknown - Bus: /dev/usb0 Trying to match device Device matches Starting UPS detection process... Asking for UPS status [Q1]... set_data_krauler: index [03] usb_control_msg: 128 6 768 0 0xcfbc2130 255 1000 usb_control_msg: 128 6 771 1033 0xcfbc2130 255 1000 (len = 47/255).0 195.0 226.0 013 49.0 27.5 30.0 00001000 Q1 => OK [(226.0 195.0 226.0 013 49.0 27.5 30.0 00001000] Asking for UPS status [Q1]... set_data_krauler: index [03] usb_control_msg: 128 6 768 0 0xcfbc2130 255 1000 usb_control_msg: 128 6 771 1033 0xcfbc2130 255 1000 (len = 47/255).0 195.0 226.0 013 49.0 27.5 30.0 00001000 Q1 => OK [(226.0 195.0 226.0 013 49.0 27.5 30.0 00001000] Asking for UPS status [Q1]... set_data_krauler: index [03] usb_control_msg: 128 6 768 0 0xcfbc2130 255 1000 usb_control_msg: 128 6 771 1033 0xcfbc2130 255 1000 (len = 47/255).0 195.0 226.0 013 49.0 27.5 30.0 00001000 Q1 => OK [(226.0 195.0 226.0 013 49.0 27.5 30.0 00001000] Asking for UPS status [Q1]... set_data_krauler: index [03] SUCCESS! SUCCESS! SUCCESS!!!!!!! OK, here's what happened: since I'm a total n00b at USB, I was stuck when megatec_usb couldn't find the device. Your advice of running with USB_DEBUG did the trick. The first time I ran the driver, I noticed it complained about the permissions on /dev/usb*. I was concentrating on /dev/ugen*, while it was actually /dev/usb0 that the UPS managed to attach. So, it was just a matter of setting the permissions appropriately. I can't thank people from NUT project/lists, and in particular you and Henning enough, for the precious help, at last I can get this UPS to work with OpenBSD. --Vic Below: running with USB_DEBUG disabled [EMAIL PROTECTED]:~/nut-2.2.2 # drivers/megatec_usb -u _ups -a atlantisland -DDDDDD Network UPS Tools 2.2.2 - Megatec protocol driver 1.5.14 [megatec_usb] Carlos Rodrigues (c) 2003-2008 Serial-over-USB transport layer for Megatec protocol driver [megatec_usb] Andrey Lelikov (c) 2006, Alexander Gordeev (c) 2006-2007, Jon Gough (c) 2007 debug level is '6' Checking device (0001/0000) (/dev/usb0//dev/ugen0) - VendorID: 0001 - ProductID: 0000 - Manufacturer: UIS_ABLER - Product: USB to Serial - Serial Number: unknown - Bus: /dev/usb0 Trying to match device Device matches Starting UPS detection process... Asking for UPS status [Q1]... set_data_krauler: index [03] (len = 47/255).0 195.0 226.0 015 49.0 27.5 30.0 00001000 Q1 => OK [(226.0 195.0 226.0 015 49.0 27.5 30.0 00001000] Asking for UPS status [Q1]... set_data_krauler: index [03] (len = 47/255).0 195.0 228.0 014 49.0 27.5 30.0 00001000 Q1 => OK [(228.0 195.0 228.0 014 49.0 27.5 30.0 00001000] Asking for UPS status [Q1]... set_data_krauler: index [03] (len = 47/255).0 195.0 228.0 015 49.0 27.5 30.0 00001000 Q1 => OK [(228.0 195.0 228.0 015 49.0 27.5 30.0 00001000] Asking for UPS status [Q1]... set_data_krauler: index [03] (len = 47/255).0 195.0 226.0 014 49.0 27.5 30.0 00001000 Q1 => OK [(226.0 195.0 226.0 014 49.0 27.5 30.0 00001000] Asking for UPS status [Q1]... set_data_krauler: index [03] (len = 47/255).0 195.0 228.0 014 50.0 27.5 30.0 00001000 Q1 => OK [(228.0 195.0 228.0 014 50.0 27.5 30.0 00001000] 0 out of 5 detection attempts failed (minimum failures: 2). Cancelling any pending shutdown or battery test. set_data_krauler: index [0b] -> String: UPS No Ack (len = 10/255) set_data_krauler: retry [UPS No Ack] Asking for UPS information [I]... set_data_krauler: index [0c] (len = 39/255)---------- ------ VT12046Q I => OK [#------------- ------ VT12046Q ] Megatec protocol UPS detected [------------- ------ VT12046Q]. Parameter [ignoreoff]: [false] Asking for UPS power ratings [F]... set_data_krauler: index [0d] (len = 22/255).0 000 024.0 50.0 F => OK [#220.0 000 024.0 50.0] 24.0V battery, interval [19.4V, 27.4V]. Done setting up the UPS. Asking for UPS status [Q1]... set_data_krauler: index [03] (len = 47/255).0 195.0 228.0 014 50.0 27.5 30.0 00001000 Q1 => OK [(228.0 195.0 228.0 014 50.0 27.5 30.0 00001000] Calculated battery charge: 100.0% dstate_init: sock /var/db/nut/megatec_usb-atlantisland open on fd 5 Asking for UPS status [Q1]... set_data_krauler: index [03] (len = 47/255).0 195.0 228.0 015 50.0 27.5 30.0 00001000 Q1 => OK [(228.0 195.0 228.0 015 50.0 27.5 30.0 00001000] Calculated battery charge: 100.0% Asking for UPS status [Q1]... set_data_krauler: index [03] (len = 47/255).0 195.0 226.0 013 49.0 27.5 30.0 00001000 Q1 => OK [(226.0 195.0 226.0 013 49.0 27.5 30.0 00001000] Calculated battery charge: 100.0% Asking for UPS status [Q1]... set_data_krauler: index [03] (len = 47/255).0 195.0 228.0 014 49.0 27.5 30.0 00001000 Q1 => OK [(228.0 195.0 228.0 014 49.0 27.5 30.0 00001000] Calculated battery charge: 100.0% Asking for UPS status [Q1]... set_data_krauler: index [03] (len = 47/255).0 195.0 226.0 014 49.0 27.5 30.0 00001000 Q1 => OK [(226.0 195.0 226.0 014 49.0 27.5 30.0 00001000] Calculated battery charge: 100.0% Asking for UPS status [Q1]... set_data_krauler: index [03] (len = 47/255).0 195.0 226.0 014 50.0 27.5 30.0 00001000 Q1 => OK [(226.0 195.0 226.0 014 50.0 27.5 30.0 00001000] Calculated battery charge: 100.0% Asking for UPS status [Q1]... set_data_krauler: index [03] (len = 47/255).0 195.0 226.0 014 49.0 27.5 30.0 00001000 Q1 => OK [(226.0 195.0 226.0 014 49.0 27.5 30.0 00001000] Calculated battery charge: 100.0% ^CSignal 2: exiting _______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

