On Wed, Jan 8, 2020 at 10:52 AM Marcos Madeira | Secure Networks <mmade...@securenetworks.pt> wrote: > > Hello again, > > I have a tried a few other things, but without much success. > > In regards to using to using ucycom0 or uhidev0 or ucom0 as the virtual > devices, I was not able to do this, because of how NUT needs a device to > connect to. None of those devices have a file like /dev/ucycom0 . > > In regards to using a serial driver, NUT mentions that the supported > driver is riello_usb. I did try riello_ser, but it makes the system drop > to ddb after service start. The nut driver port in this case is > /dev/cuaU0. I actually reached a somewhat interesting state, where at > every boot the system drops to ddb, because the upsd service is enabled. > I am not sure if this is expected behavior as far as OpenBSD goes. I can > gather more data, but need to get different hardware, because (I assume) > that the problem is in the USB stack resulting in the keyboard not being > available to even do 'show panic'. Should this error be pursued or is it > expected? It can be replicated by using cu -l /dev/cuaU0. The error is > as follows: > > (0, 0, 1) -> e > > kernel: page faut trap, code=0 > > Stopped at usbd_is_dying+0xb: cmpb $0,0x8(%ecx) > > ddb{0}> > > > Finally, when using the riello_usb driver, I get much different upsc > output on Ubuntu as compared to OpenBSD. For example, the ups.status > does not even change when unplugging the UPS. I will be checking this > separately as it could be just a problem with the versions of the nut > port. The following is the relevant output: > > $ upsc ups@127.0.0.1 > > [SNIP] > > Thank you for your consideration, > > Marcos Madeira > Secure Networks Lda > Tel.: 911 881 590 > mmade...@securenetworks.pt > https://www.securenetworks.pt > > On 03/01/20 11:58, Marcos Madeira | Secure Networks wrote: > > > > Hello misc, > > > > I am looking to use several Riello UPSs of model IPG 800 DE with > > OpenBSD through the nut port. These UPSs also go by the name iPlug. > > This is a compact UPS with only a single USB-B connector for > > connectivity as is usual with low-end UPSs. However, I am facing an > > obstacle due to how OpenBSD is discovering the UPS via the USB interface. > > > > > Thank you for your consideration, > > > > -- > > Marcos Madeira >
Just a thought... IIRC on laptops you can access battery info in sysctl(8) - charge level, charge remaining, whether it has AC input, etc. Could you do the same here? -- Aaron Mason - Programmer, open source addict I've taken my software vows - for beta or for worse