-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
usbhid-ups
generally: apply disable_fix_report_desc…; cps-hid
: fix mismatched LogMax between input/output voltages (bad encoding)
#2718
Conversation
usbhid-ups
generally: apply disable_fix_report_desc…; cps-hid
: fix mismatched LogMax between input/output voltages (bad encoding)
I guess I collected observations properly ↓↓↓↓ Built from
Result of Both
Result of
Real values for input and output are the same, but measurement difference is 2254 - 206 = 2048
|
Thanks @AlexJakeGreen! This couple of data-dumps (and their comparison) looks most helpful. Reports differ in one byte (note Note that we see readings and conversions twice - in initial discovery and attempt to parse the HID report there, and (after
I am not sure if the fixup is related to issues occasionally seen after
Seemingly more offtopic right now: there are also quite a few entries (for different Reports) like:
...where on one hand, we do not even know the mapping of numeric HID path components to their logical roles/names, and on another - something overflows. I did not investigate what happens, but we might expect a number by default and get a string (too large for a buffer) or something else - just guessing based on it being an unknown report, and that we SETINFO strings (mfr, model, etc.) just after those. Also more specifically about string fetches (which I think #2604 should have solved, unless this dialog is broken in some other way):
|
…ruptsize and interruptonly before comm_driver->open_dev() [networkupstools#1512, networkupstools#1575] Signed-off-by: Jim Klimov <[email protected]>
…debug prints Signed-off-by: Jim Klimov <[email protected]>
…ortIDs Signed-off-by: Jim Klimov <[email protected]>
…k, to be clear in troubleshooting Signed-off-by: Jim Klimov <[email protected]>
… assumed_LogMax [networkupstools#1512] Signed-off-by: Jim Klimov <[email protected]>
… Input Voltage" for a fix [networkupstools#1245] Signed-off-by: Jim Klimov <[email protected]>
…ed LogMax for input/output voltages [networkupstools#1512] Note: not bumping version, as it was done in another commit of same PR networkupstools#2718 Signed-off-by: Jim Klimov <[email protected]>
68bbe9c
to
e5fb936
Compare
…rkupstools#2718] Signed-off-by: Jim Klimov <[email protected]>
…orkupstools#2718] Signed-off-by: Jim Klimov <[email protected]>
@AlexJakeGreen: thanks again for the logs, I caught the bug I think (got distracted and mixed up the languages, mindlessly used Can you please re-check with the descriptor fix-up? Please note that I had to force-push the changes after an update from Or if you're comfortable with git, try something like this to change the workspace files "in place":
|
…rkupstools#2718] Signed-off-by: Jim Klimov <[email protected]>
…orkupstools#2718] Signed-off-by: Jim Klimov <[email protected]>
Sounds plausible. I think I'll pick this up for a comment in LogMax fixup. As for 327V... maybe 3-phase devices can claim 420V. I guess we'd see if there are any practical bug reports against 32767 (or their makers get specs right). |
…ogMin/LogMax error origins [networkupstools#1024, networkupstools#1512, networkupstools#2718] Signed-off-by: Jim Klimov <[email protected]>
…riginal error was caught [networkupstools#2718] Signed-off-by: Jim Klimov <[email protected]>
In the 60Hz part of the world it's a different story and I'm not an expert, but in our European 50Hz grid single phase is 230 V ± 10%/23 V so between 207V and 253V. Three-phase used to be 380V and 415V, they now met in the middle at 400V ± 10% setting the maximum to 440V. That's just power theory though and I don't have a clue about USB drivers. |
Ok, so to err on the safe side, I'll assume 65535 for the 16-bit maximum (=>655V)? Or... wait... with |
I know of industrial setups with 690V three-phase power with 400V on each phase but haven't heard of UPSes for those and would assume anything that high would be over-voltage for everything used in IT. |
…workupstools#2718] Signed-off-by: Jim Klimov <[email protected]>
My test was successful: #1512 (comment) |
…workupstools#2718] Signed-off-by: Jim Klimov <[email protected]>
0745058
to
315a183
Compare
…p for input_logmin/input_logmax vs. high voltage transfer [#1245, #2718] Signed-off-by: Jim Klimov <[email protected]>
…interruptsize and interruptonly before comm_driver->open_dev() [#1512, #1575]
Follows up from PR #1245 that addressed #439 and a ton of related issues.