Conversation
for more information, see https://pre-commit.ci
|
No don't assume the DBC is correct :D crosscheck with some log files that capacity seems OK, and also byteorder. |
|
Thanks, are you aware of another other QC log file in addition to the link you sent previously, it would be good to have two files to verify with |
|
I rechecked the |
|
Here is from another source, content from my Kempower charger when I charge my Nissan LEAF, maybe helps? publish: { "content": "carData", "data": { "maxBatteryVoltage": 435, "maxChargeTimeSec": 255, "maxChargeTimeMin": 96, "targetBatteryVoltage": 410, "chargedRateRefConstant": 100, "estChargeTime": 0, "protocolNumber": 2, "chargingCurrentRequest": 1 "faultFlag": "0x00", "statusFlag": "0x81", "chargedRate": 68 }} { "content": "chargerData", "data": { "limitVolt": 435, "limitTime": 5760, "h109MsgSendPending": 0, "state": 21, "protocolNumber": 2, "startAllowed": false, "logicalDiscrepancy": false, "carNotDetected": false, "normalStop": false, "emergencyStop": false, "internalFault": false, "stopReason": "none", "canSendingEnabled": true, "status": "PRECHARGE" }} |
|
Will leave this PR draft until I can connect emulator to my car and directly log the can bus with the emulator or find another QC bus log file to verify changes with 😉 |
|
Hi @dalathegreat I'm trying to understand how the resume charging works after pressing the pause charge button, how do the max charge/discharge values get reset to prior to the pause? |
|
It signals a pause requestin power usage by setting both the maximum and minimum charge values to zero, thereby preventing any inverter operation. After pause is lifted, battery set values can again pass thru |
Thanks, I've found and fixed the issue with values not coming back through when unpausing I hope. |
|
Hi @dalathegreat, to use the CT clamp reliably requires two ADC pins. From what I've read ADC2 should be avoided due to the wifi use, which will require using IO4 which is being used for pin4. How likely is it anyone is using the chademo implementation and could be impacted by any pin change? |
|
Hi @drc38 , I have never heard or seen anyone use it, so feel free to change pins as you please! |



What
Fixes can bus message reading to match Big Endian in dbc QC file,
adds extra status reporting,
refines sequence logic, and
improves logging to avoid spamming log with repeat messages
switches to user defined maximum charging power, current and voltage
Why
Why does it do it?
How
How does it do it?
Tip
You can help test this PR with this guide