uhi22 / ccs32clara

STM32 with QCA7005 as CCS charge controller
GNU General Public License v3.0
62 stars 20 forks source link

TCP timeout too short #43

Open uhi22 opened 1 month ago

uhi22 commented 1 month ago

At the moment, we give up TCP retries after 10*100ms. This seems to be too fast. In a log we see, that after giving up, the charger finally sent the expected message, with ~2 seconds delay.

Finding discussed here: https://openinverter.org/forum/viewtopic.php?p=76059#p76059

Proposed solution: Increase the TCP retry count from 10 to 30, so that we have 3 seconds tolerated disturbance.

uhi22 commented 1 month ago

log file is here: https://github.com/uhi22/clara-logs/blob/main/2024-10-23_clara_hiro_Fail_and_Success_Double_charging.claralog and https://github.com/uhi22/clara-logs/blob/main/2024-10-23_clara_hiro_Fail_and_Success_Double_charging.claralog.pcap

uhi22 commented 1 month ago

Waiting for a log that confirms the fix.