-
-
Notifications
You must be signed in to change notification settings - Fork 368
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
Bad data from riello_usb driver for Riello Net Power NPW 800 #750
Comments
You may find the discussion in issue #530 relevant. Apparently, 255 is the placeholder value used when a Riello UPS does not support a variable. |
Battery level a placeholder for a ups? Also a weird battery capacity.
|
Well, other than Do you have a chance to test how it behaves with NUT v2.8.0 release, or with current master (there were some fixes for Qx drivers since the last release). For that matter, if a different driver like |
Will do and report.
…On Sat, 16 Sep 2023, 16:05 Jim Klimov, ***@***.***> wrote:
Well, other than 255 values, the 4095 or 409.5 above also look fishy (
4096-1, where 4096 is a power of 2)...
Do you have a chance to test how it behaves with NUT v2.8.0 release, or
with current master (there were some fixes for Qx drivers since the last
release). For that matter, if a different driver like nutdrv_qx would
fare better, by chance?
—
Reply to this email directly, view it on GitHub
<#750 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AANT2RIGTJY7ZGX6OA76Z3LX2W54LANCNFSM4J4QTMQA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Here you go.
|
|
I've also got a Riello NPW 1500 and using nut as packaged in Debian 10
Using riello_usb I am getting similar strange values as OP for
Is this improved in any later version of nut or does this device simply not expose this information? Though like OP, a UPS that can't show battery charge seems weird. I haven't yet tried Riello's own software to see if it sees useful values. This device also has a serial port (as well as USB). Is there any chance that useful info might come from a serial cable? I'm assuming not as the USB is just a USB serial and the protocol is the same, right? |
CC @mzampieri70 : Would you by chance know if the "weird" numbers like 255 and 4095 (or 10-based multiples of that), which I suppose mean |
Built from HEAD using the instructions at https://github.com/networkupstools/nut/wiki/Building-NUT-on-Debian,-Raspbian-and-Ubuntu and while I do see a newer version of riello_usb, all it seems to do differently is filter out As mentioned, this device also has a DB9 serial port. If I connect that and use riello_ser would I expect any different behaviour? This is a disappointment as looking at Riello NPW 1500 on the HCL it shows up with riello_usb as green and 5 stars. Wish I had done a more thorough search to find this issue. 🙁 |
Well, I think it would not hurt to try the serial port, if you have the chance. I know some UPS vendors do have certain internal data representation in the controller, and filter code to represent that over Serial, USB, SNMP, Web, on-board LCD panel etc. and the results are sometimes different, both in precision and in the general collection of data points or commands made available. I have no idea if specifically Riello devices have similar architecture/behavior. |
I'll try the serial cable tomorrow as I just discovered that it needs a male-female serial cable and all my cables are female-female. In the meantime I ran Riello's own PowerShield software for Linux and it only shows the same data as nut does. In light of numerous issues I can find here in github it seems like the low end Riello devices mostly do not provide charge or runtime data. Is there some way to get that info into the HCL? Over in issue #1685 I see someone contributed a riello_usb option to locally guess runtime and charge from nominal values and current battery voltage. Am I right in thinking this hasn't yet been committed and there is nothing like it currently in nut, so if I wanted to do that I'd need to patch that into riello_usb myself? |
Yes, so far that issue (and PR #1692 from it) has not got merged; I remember there was something in the review that stalled me - but gotta look again if it was anything serious. For now, updated that PR's source branch with master-branch code, so testing with custom builds are easier. |
Using in ups.conf:
with a usb connected Riello Net Power NPW 800 USB, the following reported data values are good/bad:
Note: The load values remain unchanged even when running from the battery (no mains).
Update needed for the Riello NPW series of UPS?
Thanks,
Martin
The text was updated successfully, but these errors were encountered: