Amps is displayed incorrectly (divided by 10)
Closed this issue · 3 comments
zstephen commented
This is a fantastic piece of software, I can charge batteries with this and check their status from my office via SSH, very convenient. Thanks for a great software tool for this equipment.
Versions and devices in use
- Lubuntu 20.04, python3
- Riden RD6024
Issue Summary
- The Amps(Output, Set, OCP) displays incorrectly on the rd6006 output, being divided by 10
How to reproduce issue
- The RD6024 is charging a power tool battery with a current limit of 4A @ 22V, OCP of 5A, it's in CC mode and can be seen delivering 3.99A (item 1 in screenshot)
- The laptop is connected to the RD6024 via USB and rd6006.py is run
- All data is correctly displayed Output Amps, which seems to be reduced by a factor of 10.
- Note it shows an output of 0.399A (item 2, 3 & 4 in screenshot)
Additional Information
Baldanos commented
Hi !
My guess is that the 6024 also uses a different resolution for current (like RD6012 and RD6018).
If so, a simple change on
Line 17 in 1d4b69d
Before I'll do that, can you please confirm that the type is 6024
?
from rd6006 import RD6006
r = RD6006('/dev/ttyUSB3')
print(r.type)
zstephen commented
can you please confirm that the type is
6024
?
Here is my output from your test
python 3.8.10 (default, Jun 22 2022, 20:18:18)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from rd6006 import RD6006
>>> r = RD6006('/dev/ttyUSB3')
RD6006 or other detected
>>> print(r.type)
6024
>>>
Baldanos commented
Thanks for the info.
I pushed a fix, it should work correctly for your unit now.