Skip to content

2020 PHEV connection issues. #25

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

Open
SelfDestructor opened this issue Mar 28, 2023 · 3 comments
Open

2020 PHEV connection issues. #25

SelfDestructor opened this issue Mar 28, 2023 · 3 comments

Comments

@SelfDestructor
Copy link

Hi!

I've just set up phev2mqtt and have gotten it connected to Home Assistant and everything shows up and seems to be reading properly for about a minute or two but after that it all becomes unavailable.

I'm also not able to turn on anything. If I do, it flips back off and the logs says the following:

level=info msg="Topic: [phev/set/parkinglights] Payload: [on]"
level=info msg="Error setting register 0xb: timed out attempting to set register 0b"

It eventually fails and disconnects.

level=error msg="Disconnecting due to too many errors"
level=info msg="Error setting register 0xb: timed out attempting to set register 0a"
level=info msg="%PHEV_TCP_CONNECTED%"
level=debug msg="%%PHEV_START_AWAIT%%"

Once it connects again, it runs and endless loop of level=debug msg="%PHEV_TCP_SEND_MSG%: [00] PING REQ (id 1)" and the "id" keeps going up and up until it does level=debug msg="%%PHEV_START_TIMEOUT%%" and level=error msg="timed out waiting for start"

While watching the logs, I also noticed that this just popped in:

level=debug msg="%%PHEV_TCP_READER_ERROR%%: read tcp 192.168.8.47:40010->192.168.8.46:8080: i/o timeout"
level=debug msg="%PHEV_TCP_READER_CLOSE%"
level=debug msg="%PHEV_TCP_SEND_MSG%: [00] PING REQ (id 3b)"
level=error msg="%PHEV_TCP_WRITER_ERROR%: write tcp 192.168.8.47:40010->192.168.8.46:8080: use of closed network connection"
level=debug msg="%PHEV_TCP_WRITER_CLOSE%"

After rebooting I randomly get level=error msg="dial tcp 192.168.8.46:8080: connect: connection refused" and it doesn't reconnect to the car unless I reboot the Pi.

Do you have any advice on how to troubleshoot this further or fix this?

@altserg
Copy link

altserg commented Mar 14, 2025

I have made various stability/mqtt/log fixes in my repo https://github.com/altserg/phev2mqtt
The repo is not yet synced with main but it already has most of recent fixes ported manually.
Can you try it and let me know if it works better for you ?
If confirmed to work stable, I will re-create the branch from scratch and push my changes in a nice manner

@SelfDestructor
Copy link
Author

Hello! I will spin up a Pi this weekend or some time next week and give it a try. I'll keep you updated :)

@SelfDestructor
Copy link
Author

I have not been able to find my spare Pi so I haven't been able to test it yet. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants