On 12/26/18 8:55 AM, Charles Lepple wrote:> On Dec 25, 2018, at 4:07 AM, David Melik wrote: >> Lately I got (used) an APC Back UPS Pro 1000 and Back UPS NS 1080. I got an [8P8C]-to-USB cable from another UPS, but the Pro isn't detected (with usbhid-ups.) I haven't tried the NS yet but it seems to not be on the list though looks just like the Pro. >> > There are a few different angles we can approach this one from. What error message do you get from usbhid-ups, and what does "lsusb -d 051d:" show?root at 0.darwinheim:~# rc.ups start Network UPS Tools - UPS driver controller 2.7.4 Network UPS Tools - Generic HID driver 0.41 (2.7.4) USB communication driver 0.33 No matching HID UPS found Driver failed to start (exit status=1) root at 0.darwinheim:~# lsusb -d 051d: root at 0.darwinheim:~# Maybe it's not a standard ethernet-to-UPS cable?> Here are the APC USB IDs that the latest NUT code recognizes: > > https://github.com/networkupstools/nut/blob/master/drivers/apc-hid.c#L87-L92I don't really understand that section...> (Unless you have rebuilt from the latest Git sources, your packages are probably older, and may not include all of these IDs.)
On 12/26/18 7:59 PM, David Melik wrote:> Maybe it's not a standard ethernet-to-UPS cable?It's not an Ethernet cable. It's an 8-pin modular to USB cable. (APC custom at its best) -Ben
On Dec 26, 2018, at 8:59 PM, David Melik wrote:> > root at 0.darwinheim <mailto:root at 0.darwinheim>:~# lsusb -d 051d: > root at 0.darwinheim <mailto:root at 0.darwinheim>:~#If you leave off the "-d 051d:" part, do you see anything in the listing that looks like it could be the UPS? (The 051d vendor ID is for the vast majority of APC UPS models, but we have seen a few other IDs here and there - mostly from acquisitions.) For instance, this is what one of my development boxes shows for a Smart-UPS C1000: $ lsusb Bus 009 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 010 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 008 Device 004: ID 1c4f:0003 SiGma Micro HID controller Bus 008 Device 002: ID 051d:0003 American Power Conversion UPS Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 004 Device 002: ID 06cd:0107 Keyspan USA-19 PDA Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Another thing to try is to unplug the USB cable, run something like "dmesg -w" ("-w" to follow the output; otherwise just run "dmesg | tail" afterwards) and see if you see any messages about new USB devices after you re-insert the USB cable. If the Linux kernel can't see the device, neither can NUT.> Maybe it's not a standard ethernet-to-UPS cable?That's Ben's point - either it is actual Ethernet (usually found on an add-on UPS SNMP monitoring card, where the jack typically has two status LEDs, one on either side of the notch for the modular plug tab) that needs to go to another Ethernet jack on a NIC or a switch, or it is a proprietary APC cable that vaguely resembles an Ethernet cable on one end. (I was incorrect when I said 8P8C before - MGE uses 8P8C modular jacks for similar USB/serial proprietary cables.) It might be this 10-pin modular connector: http://pinoutguide.com/UPS/apc_usb_cable_pinout.shtml <http://pinoutguide.com/UPS/apc_usb_cable_pinout.shtml> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20181227/e8a59302/attachment.html>
> >> Maybe it's not a standard ethernet-to-UPS cable? > > That's Ben's point - either it is actual Ethernet (usually found on an add-on UPS SNMP monitoring card, where the jack typically has two status LEDs, one on either side of the notch for the modular plug tab) that needs to go to another Ethernet jack on a NIC or a switch, or it is a proprietary APC cable that vaguely resembles an Ethernet cable on one end. (I was incorrect when I said 8P8C before - MGE uses 8P8C modular jacks for similar USB/serial proprietary cables.) > > It might be this 10-pin modular connector: http://pinoutguide.com/UPS/apc_usb_cable_pinout.shtml <http://pinoutguide.com/UPS/apc_usb_cable_pinout.shtml>Correction to my correction: apparently APC uses both 8-pin and 10-pin modular jacks. The SmartUPS C1000 has a 10-pin jack labeled serial (and the industry-standard USB Type B jack for USB, hooray), but for your models, a few images online seem to show an 8-pin jack labeled "data port" for the BackUPS Pro 1000 and BackUPS NS 1080. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20181227/0fac02f0/attachment.html>
On 12/27/18 8:09 AM, Charles Lepple wrote:> [...] That's Ben's point - either it is actual Ethernet (usually found > on an add-on UPS SNMP monitoring card, where the jack typically has > two status LEDs, one on either side of the notch for the modular plug > tab) that needs to go to another Ethernet jack on a NIC or a switch, > or it is a proprietary APC cable that vaguely resembles an Ethernet > cable on one end. (I was incorrect when I said 8P8C before - MGE uses > 8P8C modular jacks for similar USB/serial proprietary cables.) [...]On 12/27/18 8:17 AM, Charles Lepple wrote:> [...] Correction to my correction: apparently APC uses both 8-pin and > 10-pin modular jacks. > > The SmartUPS C1000 has a 10-pin jack labeled serial (and the > industry-standard USB Type B jack for USB, hooray), but for your > models, a few images online seem to show an 8-pin jack labeled "data > port" for the BackUPS Pro 1000 and BackUPS NS 1080. [...]On 12/28/18 12:30 AM, Manuel Wolfshant wrote:> [...] No, they are USB cables with dubious connectors :) > You could look for the pinout on internet and make one. That's what I did. After all there are only 4 wires. 2 for data, V+ and V-.I guess I'm a bit off-topic now, but found zero results for 'APC eight-pin cable' in Google. Does anyone have the image, or if I asked my local PC shop to make cables, do you think they would know? I'll probably ask them as they gave/sold me the UPSes and I don't feel skilled with hardware... --D