Question Passing ups via usb to docker container

Currently reading
Question Passing ups via usb to docker container

9
1
NAS
DS918+
My Eaton UPS 5PX works with their own software (IPP) that they offer a linux .deb version for.

Yes I can use NUT, but there are a few variables like battery voltage, that for some reason are not exposed with NUT.

So I've tried to run their IPP in a docker container (there are a few version floating around on Docker hub), but I can't get the container to see the USB device

I've tried --privilged, I've tried -v /dev/bus/usb:/dev/bus/usb

but the software can't see the UPS.

When I load a windows VM on my Mac and attach the USB port to the VM, it sees the UPS

I'm not sure if having syno's NUT server running would somehow bind the USB port and stop me attaching it to the container ?
 

fredbert

Moderator
NAS Support
Subscriber
1,696
692
NAS
DS1520+, DS218+, DS215j
Router
  1. RT2600ac
  2. MR2200ac
Operating system
  1. macOS
Mobile operating system
  1. iOS
If DSM grabs USB UPS devices for its own management then somehow the device needs to be released and then attached to the Docker container. I haven't a solution but it's the reason I've shied away from moving my Weewx server from Rasp-Pi to Docker on the NAS ... my weather station's data feed is via USB connection.

Likewise I've also been able to use VirtualBox to run apcuspd (APC UPS monitor/config) on my Mac and have attached the USB to the VM.
 
9
1
NAS
DS918+
If DSM grabs USB UPS devices for its own management then somehow the device needs to be released and then attached to the Docker contain
Thanks

I tried killing upsmon and upsd but it made no difference (other than DSM not recognizing the usb as attached). The only other process I can see related is the ups-hid driver, but I assume it would need this to work via usb at all
 

jeyare

Subscriber
1,602
540
Reason why I gave up from USB/UPS connection and move it to Network based communication.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Similar threads

Similar threads

Top