-
-
Notifications
You must be signed in to change notification settings - Fork 366
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
Add nutdrv_qx driver for Gtec ZP120N #2818
Conversation
Signed-off-by: Lukáš Turek <[email protected]>
Thanks, looks nice. Some comments:
|
Signed-off-by: Jim Klimov <[email protected]>
…etworkupstools#2818] Signed-off-by: Jim Klimov <[email protected]>
…etworkupstools#2818] Signed-off-by: Jim Klimov <[email protected]>
…od [networkupstools#2818] Signed-off-by: Jim Klimov <[email protected]>
…larm, comment about setting of ups.status (multi-token) [networkupstools#2818] Signed-off-by: Jim Klimov <[email protected]>
…etworkupstools#2818] Signed-off-by: Jim Klimov <[email protected]>
I've posted some fixes to the formality points I've raised earlier, and whatever CI was unhappy about. @turekl : One big new question for me is that in While at it, you assign an In any case, after some fixes already done on master for issue #2708, it should be safe to both explicitly I am not quickly sure if an intermediate single token returned via mapping table would be assigned AND announced on the bus - so the value would flip around on short notice, though. If yes, maybe mapping tables handling like this (in various drivers) should use an |
Thanks for the comments and fixes! There can probably be many combinations of status letters, but I have seen only these: I, IM, AI, CKP, KMP. It seems A/C/M are mutually exclusive, as well as I/J/K/L. The Q4 answer includes at least one letter which sets the status, except when the UPS is off, that's why "OFF" is the default. OL + BYPASS is not possible, I'm not sure about OB + LB, I will test it tomorrow. The "!OL" status was taken from It was really hard to find some documentation, I used description of the status letters from this document. Now I have found another one, which also describes the 'P' flag, but it seems redundant (it was always in conjunction with 'K'). What's the best way to report that the battery is disconnected, |
Update: found in |
If you know that disconnection to be the case - yes, I suppose. Alternately (at least with same physical effect that manipulation is needed) you can use the |
…tworkupstools/nut#2818] Signed-off-by: Jim Klimov <[email protected]>
Thanks! I did the test I promised, and the status letters when the battery was running out were "ABI", so OB + LB is really possible. We've had a few dead batteries and the battery test flags were either 'J' or 'K', so these should set the |
Thanks! With |
Gtec ZP120N is already supported by the blazer_usb and nutdrv_qx drivers, but both have two problems:
The new protocol and subdriver need to be both enabled manually in ups.conf: