-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NUT addon not able to communicate with IMD 3000A UPS #51
Comments
It's likely an Alpine issue, perhaps you could test under that? There may be a library that includes the udev data, it is kind of difficult to actually test any of this without having the hardware... |
I now have the Pi Zero running Alpine OS, but I have no idea on how to get NUT installed on it :/ |
Looking at this again, the rule is already listed (it's in the data you posted), so I am slightly confused. I assume the backtick in your vendor id config is a copy paste issue? |
The backtick is a copy paste issue yes. So then it probably isn't a missing udev permission rule. Then I'm stumped and have no idea |
I have NUT installed on Alpine, but unable to get upsdrvctl to start. I suppose this is now more a Alpine than an addon issue. localhost:~# upsdrvctl start |
I will close this issue, as I don't think it was an addon issue itself. |
Problem/Motivation
NUT seems unable to communicate with Powercom IMD 3000A.
Expected behavior
Powercom IMD3000A works with the usbhid-ups driver
Actual behavior
I tested the UPS connected to a different Raspberry PI, running Hassbian. I then configured a nut server (NOT in a container)
NUT connected successfully to the UPS with the usbhid-ups driver
The ups.conf file:
[myups] driver = usbhid-ups port = auto
I then used the above variables in the NUT addon config in the following format:
I would have expected the config to work, as I confirmed that the ups.conf file within the container was correct. Via docker exec -it /bin/bash I checked the conf was populated correctly.
I do however receive the following error:
Steps to reproduce
I think this can only be reproduced on certain hardware
Proposed changes
I have done to following troubleshooting:
root@a0d7b954-nut:/$ lsusb
Bus 001 Device 096: ID 0d9f:0004 Powercom Co., Ltd
Bus 001 Device 005: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 003: ID 0424:ec00 Microchip Technology, Inc. (formerly SMSC) SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Microchip Technology, Inc. (formerly SMSC) SMC9514 Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
[ 6385.527594] hid-generic 0003:0D9F:0004.03C0: hiddev96,hidraw0: USB HID v1.00 Device [POWERCOM Co.,LTD HID UPS Battery] on usb-3f980000.usb-1.2/input0
[ 6389.187063] usb 1-1.2: USB disconnect, device number 103
[ 6391.787003] usb 1-1.2: new low-speed USB device number 104 using dwc_otg
[ 6391.953416] usb 1-1.2: New USB device found, idVendor=0d9f, idProduct=0004, bcdDevice= 0.02
[ 6391.960669] usb 1-1.2: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[ 6391.964350] usb 1-1.2: Product: HID UPS Battery
[ 6391.967975] usb 1-1.2: Manufacturer: POWERCOM Co.,LTD
[ 6391.971542] usb 1-1.2: SerialNumber: 004-0D9F-000
So the container can definately detect the UPS.
I did however find that the specific vendorid and productid was not in 62-nut-usbups.rules
From https://wiki.archlinux.org/index.php/Network_UPS_Tools#Driver_configuration
It's most likely a problem with permissions for accessing the device. You can fix that by specifying an udev rule that sets the correct group
Can I suggest that the following be added to udev rules:
The text was updated successfully, but these errors were encountered: