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 <jimklimov+nut@gmail.com>
…debug prints Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…ortIDs Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…k, to be clear in troubleshooting Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… assumed_LogMax [networkupstools#1512] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
… Input Voltage" for a fix [networkupstools#1245] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…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 <jimklimov+nut@gmail.com>
68bbe9c to
e5fb936
Compare
…rkupstools#2718] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…orkupstools#2718] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
|
@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 <jimklimov+nut@gmail.com>
…orkupstools#2718] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…riginal error was caught [networkupstools#2718] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
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 <jimklimov+nut@gmail.com>
|
My test was successful: #1512 (comment) |
…workupstools#2718] Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
0745058 to
315a183
Compare
…interruptsize and interruptonly before comm_driver->open_dev() [#1512, #1575]
Follows up from PR #1245 that addressed #439 and a ton of related issues.