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

If disconnect wifi ,can not auto connect. #35

Closed
fareign opened this issue Mar 28, 2021 · 11 comments
Closed

If disconnect wifi ,can not auto connect. #35

fareign opened this issue Mar 28, 2021 · 11 comments

Comments

@fareign
Copy link

fareign commented Mar 28, 2021

Today,I test the distance how long it can be connect.
I walk a long distance,It's always a pink light, actually it's disconnected.

@AronHetLam
Copy link
Owner

AronHetLam commented Mar 28, 2021

Interesting issue. I think I know where to look.

Do you know if it connects to WiFi again once back in range, and just doesn't reconnect to the ATEM, or if it doesn't reconnect to WiFi at all?

@goudi76
Copy link

goudi76 commented Mar 28, 2021

I have Seen something similar. It connects to the WLAN but not to the Atem.
Sometimes it conects after a while.

@AronHetLam
Copy link
Owner

AronHetLam commented Mar 28, 2021

Just for laughs, something's up with time zones... Or git can now tell the future 😂
image

EDIT: Just my pc that hadn't caught up yet.

AronHetLam added a commit that referenced this issue Mar 28, 2021
@AronHetLam
Copy link
Owner

Problem was that when connecting to ATEM it would stop checking if the WiFi connection is lost or not, which could make it get stuck in the connecting to ATEM state. I made the WiFi check run always, so now it should be able to see if WiFi is lost, no matter the state.

I'm not sure why it wouldn't connect to the ATEM automatically once it got WiFi again, even though it didn't show the no WiFi state, because the WiFi reconnection happens automatically, outside the Arduino code (and other parts of my code). If any of you still have that issue, please let me know, and I'll try to look more into it. But I think that should be fine now as well, as now the ATEM connection gets reset properly after WiFi is back. It didn't before, and i suspect that would cause it to break.

@goudi76
Copy link

goudi76 commented Mar 28, 2021

That is exactly the main prob. Always I have the computer connected and the Serial monitor is open, everything works. If the ESP is allone I have seen such effects. But I do not know if this might be a problem with the router or in the software of the Tally light.
Otherwise I would have posted a record, but I couldn't ever grep this. The main Problem is, that I haven't found a way to reproduce this problem. Sometimes it connects - sometimes it does not. @fareign: Is it always the case that it doesn't find the Atem after a loss of the WLan?

@fareign
Copy link
Author

fareign commented Mar 28, 2021

I test a long time . ESP8266 and ESP32 have been used together to do the test.
They all have lost connection from ATEM(one hour about 2-3times,is a little high),allmost at the sametime(why they loss connection at the same time?) .sometimes can be reconnect and sometimes cannot reconnect,must reset ESP. so I think ,the condition about not reconnect is disconnect to WIFI.
so if disconnect to ATEM, we can check the WIFI connection

@AronHetLam
Copy link
Owner

The WiFi related part should work now, but the periodical connection loss to the ATEM I assume isn't a connection loss to WiFi also. Or do you know if those connection losses where related to WiFi as well?

The WiFi problem I solved in commit 7b33888 has been there from the start, and I've never had issues with the ATEM connection, unless i also had WiFi problems. My production units run for hours without problems, but they have a version from before Neopixel support was added. The periodical disconnect (at the same time for units I assume turned on at the same time.) could be caused by the FastLed library, as it messes with interrupts, that are used for tracking time... That might be a harder one to solve...

@fareign
Copy link
Author

fareign commented Mar 29, 2021

thanks ,I try to cut fastled and the second led, and do a test.

@AronHetLam
Copy link
Owner

@fareign 2nd led won't have an impact, that code is on my units as well.

@fareign
Copy link
Author

fareign commented Mar 31, 2021

when I cut Neopixel code ,they works very well. no longer loss connection. THANKS!!

@Andrej65416das
Copy link

@fareign Could you please send me exactly which part should be cut out?

Thanks

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

4 participants