Skip to content
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

Stick won't connect back to WiFi #12

Closed
Belaial opened this issue Jul 8, 2023 · 2 comments
Closed

Stick won't connect back to WiFi #12

Belaial opened this issue Jul 8, 2023 · 2 comments

Comments

@Belaial
Copy link
Contributor

Belaial commented Jul 8, 2023

First of I found this issue libretiny-eu/libretiny#113 but that seems to be resolved or at least closed so not sure if this is a new issue or the same.

Regarding versions and so on running on the stick I just got my stick to work last night (07 July 2023) so everything is the latest there is to my knowledge following the guide here https://github.com/hn/ginlong-solis#replacing-the-main-application

The stick worked perfect last night for a few hours when I was testing things out, this morning when I woke up everything was still working, the stick goes offline during the night on my inverter but that is expected since the inverter powers down the COM-port, I know this from running this project https://github.com/incub77/solis2mqtt before getting my stick re-flashed, I had to use external power on the Pi to keep it running during the night.

This morning I tested more things, when I powered down a access point I have in the house all of a sudden I lost the Solis stick, I waited a few minutes expecting it to reconnect back but it did not, I powered on the access point again and waited but the stick did not reconnect. I have now power cycled the stick 4 times, waited 10-20 minutes in between but it has not reconnected.

I don't have easy serial access to the stick right now since I assembled the case again but I guess that is the next step to see what is going on unless someone have some other tips for me.

The only thing that worries me is this line I noticed during boot of the Solis stick

[W][ota:102]: Last Boot was an unhandled reset, will proceed to safe mode in 7 restarts

I saw this number go down every time I booted the stick with serial connected so.... maybe the stick is stuck in safe mode now?

..... Now all of a sudden it just works again.....

So.... during the time I was writing this ticket (20 minutes maybe since last stick power cycle) the stick just all of a sudden connected back after 2927 seconds (had a rolling ping towards it that is how I know the number of second, it was rebooted several times during these 2927 seconds so why it decided to work now I have no clue...)

I will post this ticket anyway now in case there is some discussion to have regarding this, if this is excepted behavior I guess we can just close this ticket.

@hn
Copy link
Owner

hn commented Jul 9, 2023

A fundamental WiFi problem (which caused WiFi not to work at all) was fixed here.

The "WiFi reconnection problem" still exists, at least to my knowledge (my WiFi is stable and therefore I had no problems). As far as I understand, this is caused by the RealTek SDK and can not be fixed within this project.

Maybe it's a good idea to implement some kind of ESPhome time trigger which resets the stick after not beeing able to connect via WiFi. I don't know :)

@hn hn closed this as completed Jul 9, 2023
@Belaial
Copy link
Contributor Author

Belaial commented Jul 9, 2023

Ah ok, I see.

I know the WiFi network as a whole is not the issue since I have other WiFi devices in the same area as the Solis stick, those devices have 100% uptime for many days in a row.

This is a ping monitoring in Home Assistant towards the Solis stick

image

The large gray area between 00:30-04:00 can be ignored, that is when my inverter powers down the COM-port leaving the stick without power, therefore also a long period when it's offline, the smaller gray gaps are when the stick is randomly drops connection going offline for XX amount of minutes.

I have experimented some with moving a access point closer / further away from the Solis stick but it does not help, the issue looks to be the same at -55dBm as it does now on -75dBm

image

My data collection is very short still so hard to say how it would look over a longer period of time.

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