Reed Hedges
2013-Jun-21 01:48 UTC
[Nut-upsuser] help creating custom genericups configuration - RNG only!
Hello, I am trying to understand how to create a custom configuration for the genericups driver. My system simply signals RI on a serial port on low battery. That's it, nothing else. This serial port is also being used for communications so the other lines are going to be changing all the time, unrelated to the UPS state. Is there a "null" upstype I can use, and then add LB=RNG? Or can I choose one of the other upstypes and clear or unset the conditions associated with the other serial port lines? I previously used genpowerd and configured it like this: ... UPSTYPE=robot UPSPORT=/dev/ttyS0 # type cablep kill t powerok battok cableok robot --- RI 0 /RI --- --- ... Is there an equivalent of "---" in genericups? I couldn't tell whether this can be done after reading the section on contact closure hardware in the developers guide. Is there more documentation on genericups? I'm setting up nut 2.6.3 on Ubuntu 12.04. If you're wondering, it's not a UPS, it's an interface to a mobile robot. Normally there is more comprehensive monitoring of the battery health by software through other means, but if the software isn't running, this is a fallback to shut down the computer. I realize this is a pretty degenerate case but hope there is some way to make it work with NUT. Thanks! Reed -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20130620/46cdee09/attachment.html>
Charles Lepple
2013-Jun-21 02:13 UTC
[Nut-upsuser] help creating custom genericups configuration - RNG only!
On Jun 20, 2013, at 9:48 PM, Reed Hedges wrote:> UPSPORT=/dev/ttyS0 > > # type cablep kill t powerok battok cableok > robot --- RI 0 /RI --- --- > ? > > Is there an equivalent of ?---? in genericups?I think it's pretty much any value other than a valid signal name. The man page mentions "none" and "???" in various places. What about something like this? [robot] driver = genericups port = /dev/ttyS0 upstype = 9 CP = none SD = none OL = -RNG LB = RNG (The upstype setting is arbitrary in this case, as all of the settings get overridden.) -- Charles Lepple clepple at gmail
Reed Hedges
2013-Jun-21 13:39 UTC
[Nut-upsuser] help creating custom genericups configuration - RNG only!
OK, I'll try "none" and see what happens. -----Original Message----- From: Charles Lepple [mailto:clepple at gmail.com] Sent: Thursday, June 20, 2013 10:14 PM To: Reed Hedges Cc: nut-upsuser at lists.alioth.debian.org Subject: Re: [Nut-upsuser] help creating custom genericups configuration - RNG only! On Jun 20, 2013, at 9:48 PM, Reed Hedges wrote:> UPSPORT=/dev/ttyS0 > > # type cablep kill t powerok battok cableok > robot --- RI 0 /RI --- --- > ... > > Is there an equivalent of "---" in genericups?I think it's pretty much any value other than a valid signal name. The man page mentions "none" and "???" in various places. What about something like this? [robot] driver = genericups port = /dev/ttyS0 upstype = 9 CP = none SD = none OL = -RNG LB = RNG (The upstype setting is arbitrary in this case, as all of the settings get overridden.) -- Charles Lepple clepple at gmail