phev2mqtt icon indicating copy to clipboard operation
phev2mqtt copied to clipboard

Works first time.....but stops after a day?

Open kicomoco opened this issue 1 year ago • 4 comments

I have a Raspberry Pi connecting to the car's wifi.

This Pi is registered, and running phev2mqtt works....until the next day for example.

When its failing the Pi loses the car's wifi whenever phev2mqtt runs, as if its being kicked off the network.

The -v=debug log is as follows:

INFO[0000] %PHEV_TCP_CONNECTED% DEBU[0000] %%PHEV_START_AWAIT%% DEBU[0000] %%PHEV_TCP_READER_ERROR%%: EOF DEBU[0000] %PHEV_TCP_READER_CLOSE% DEBU[0000] %PHEV_TCP_SEND_MSG%: [00] PING REQ (id a) ERRO[0000] %PHEV_TCP_WRITER_ERROR%: write tcp 192.168.8.47:37878->192.168.8.46:8080: use of closed network connection DEBU[0000] %PHEV_TCP_WRITER_CLOSE% DEBU[0020] %%PHEV_START_TIMEOUT%% ERRO[0020] timed out waiting for start

Any help would be appreciated!

kicomoco avatar Apr 26 '24 18:04 kicomoco

Not sure if this will help anyone else.....but I appear to have improved stability.

I had the Raspberry Pi registered as the second device....and I believe setting a static IP of .47 caused issues. Allowing the pi to use DHCP it got .48 and this seems to be working fine so far.

Possibly an issue because it was second device and my phone the first was expected to be .47?

kicomoco avatar May 01 '24 10:05 kicomoco

See my post here, it might be related? I certainly found this thread when I was looking for an answer...

NocturnalNick avatar Apr 02 '25 10:04 NocturnalNick

Try my branch with fixes, maybe it helps https://github.com/altserg/phev2mqtt

altserg avatar Apr 14 '25 17:04 altserg