-
-
Notifications
You must be signed in to change notification settings - Fork 350
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
EATON HID: add missing usages and paths (addon) #2660
base: master
Are you sure you want to change the base?
EATON HID: add missing usages and paths (addon) #2660
Conversation
Signed-off-by: Arnaud Quette <[email protected]>
Signed-off-by: Arnaud Quette <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
…s_no_info` Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
…ocs/nut-names.txt Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
…atus` also define in cmdvartab and /docs/nut-names.txt Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
I have x.ChargerType=4 also you have, but I don't have ABM And I have floating when battery.charge =100 |
I have "x.ChargerType=4" it's constant charge (CC) if "x.Status=2" then it charging |
OK, so that clears up where the But this logic is preserved the same in my code (see links): when compared to your code: Lines 1627 to 1632 in ebc0ff4
Lines 395 to 411 in ebc0ff4
Lines 431 to 450 in ebc0ff4
Which leads me back to the question if you tested it with my code and it's not working? 😉 |
Your code will not work for me if you make ABM_UNKNOWN with ABM_DISABLED to return. I checked this befor when tryed same way, aslo original code was not working for me becose always (!chrg and ! dschrg) |
This only to show table of ABM battery type |
Also X.Status in you case =19, this wrong value we should use X.mode in your case. To not change original code but to add fix for 9E |
this was in original code :
this is my code that fine:
|
i wrote you before inyour code that here you break the code logic : |
Also here for status not floating : and all same ... |
This shows exactly that your UPS is Lines 439 to 450 in ebc0ff4
Floating should result in chrg and not !chrg at value 2 of UPS.BatterySystem.Charger.Status according to the HID table. I do not understand why you are forcing !chrg here for any devices ABM_UNKNOWN (or even your own device, for that matter).
Yes, and that is exactly my point, that - I think - it should not work (still run an ABM function) in such a case where your UPS (and any other UPS) is
Yes, and X.mode is used by both your code and my code (see my comment above).
Exactly the same as in your code: Lines 435 to 437 in ebc0ff4
Last, I'm still not convinced about the extra ABM-enabling code of Lines 395 to 421 in ebc0ff4
Anyway, I'm (respectfully) signing off for the day (it is Sunday after all). No offense, I'm really not trying to blast your code and I have great respect for the effort you've put into this, just trying to explain my reservations. It's also up to Jim eventually, I'm also just a contributor (same as you) here and it's just my personal opinion on where safeguards and improvements could be done. For reference, my suggestions remain at: masterwishx#4 |
I think you still not get the point of my code :) So the point of code just to make fix for 9E and other with same tables and leave original code as it already working for any other upses Offcourse @jimklimov will decide what's better looks. |
Becouse otherwise I will have OL CHRG every time also after battery.charge = 100, but when battery.charge = 100 change from 99, I got floating instead of charging in status table. Or like was in original code it was always send (!chrg /!dschrg) |
This part not really important Becouse if My device use Was needed to check if ABM enabled by other than ABM Enabled. |
Yes, but for other part it seems we are going around , maybe you will get it better if you will read from above comments of commits ? From this list you see ABM Eaton models , so mostly what left we have i will try again to explain : For statuses i added missing path for x.Type x.Status etc but i have leaved the original code as is only added fix for 9E Models ! by added :
So |
Yes you right but as i found the x.status table is working fine when charging/floating/discharging however no ABM in real so it let me fix the charging states aslo to see real charging status by this table ! Maybe its like firmware cuted from 9SX that have ABM , i dont know but its working , but not regular chrg/dischrg statuses. in any case again im sorry not started for this another pr than eco :( |
Always this state? Not shure it's correct, also have OB DSCHRG in this case. |
No need to apologize, I appreciate your point of view and effort. To me it just doesn't seem to matter what ABM paths are exposed by devices that are not ABM-capable. I think it's not an improvement to parse ABM paths just because they are there (due to common firmware, leftovers, ...), when the device itself doesn't support ABM. A non-ABM device reporting as "floating" seems to me more of a bug than an improvement. And yes, I'd expect a constant charge type charger to always display either |
The original code was always send !chrg and !dischrg so i was not see any charge and discharge at all |
You're right, my bad, because it incorrectly executed the ABM function when seeing your partial/unused ABM paths despite being |
Yes but dont you think |
Maybe @jimklimov and @arnaudquette-eaton can Reveal more about the right condition in this case? |
For a non-ABM device in constant charge mode it doesn't look correct to me, because my understanding of constant charge is that it's constantly applying charge (= always charging). This also aligns with the HID table and non-ABM paths exposed by your device, which also say it's charging (and are the only paths we should be looking at with a non-ABM-capable device imo):
Let's see what the others say... 🙂 Meanwhile I've updated my improvement recommendations: masterwishx#4 |
If you have time meanwhile, maybe you can check what values for our paths your ups will send in X.type=5 (cc) mode When ABM is disabled also to check statuses? |
Signed-off-by: DaRK AnGeL <[email protected]>
Signed-off-by: DaRK AnGeL <[email protected]>
Adding HE/ECO mode, Bypass On/Off for Eaton USB UPS Online Models + Adding Missing usages and paths
Continue work/addon for #2637
Fixes #2485
Ref #2495
Added:
Added ABM statuses for 9E and other Models with next paths: