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

Won't Stay Connected #200

Open
omayhemo opened this issue Aug 21, 2022 · 6 comments
Open

Won't Stay Connected #200

omayhemo opened this issue Aug 21, 2022 · 6 comments

Comments

@omayhemo
Copy link

omayhemo commented Aug 21, 2022

This is the first HASPone I installed. It's no longer staying connected and constantly reboots to the QR code. Most of the time sits on connecting to Wi-Fi. I've tried setting it up with the BPs again, but it's hard to keep online, usually crashes and heads back to the Wi-Fi connecting screen or QR code.

I've attempted to follow these instructions https://github.com/HASwitchPlate/HASPone/wiki/Flashing-HASPone-to-an-ESP8266
that I found recommended for a similar now closed issue, but when I plug it into the computer it never registers a port, the blue light on the ESP lights briefly then goes out and no further activity. Seems like it maybe bricked.

Got it to connect to the PC as a COM, attempting flash.

After flash (with erasure as instructed), I get back to the QR code and I can see the hotspot, but I cannot connect to it.

@omayhemo
Copy link
Author

Still won't connect to the wifi, I'm assuming the ESP wifi is bricked.

@aderusha
Copy link
Collaborator

aderusha commented Aug 27, 2022

Any chance you have a debug log to share to see if the device is trying to tell us something? Does moving the device physically result in a different outcome? Trying to figure out if we're seeing a signal issue or code issue or a failed ESP8266. I've yet to see just the WiFi fail, but hey there's a first time for everything maybe?

@omayhemo
Copy link
Author

omayhemo commented Aug 27, 2022

I have 4 UniFi APs in my home. One of them is within 15' of the HASP, I've tuned my WiFi by measuring every corner of my home because I'm obsessive like that, signal strength is definitely not a problem. You may (or probably not) remember I recently had a problem with a rogue automation that was preventing me from using the BPs to program things. You suggested I reset. I did that, it didn't solve the problem but eventually I found a solution. When I reset it, that's when it started dropping offline intermittently. So I flashed it.

I can't get the HASP online at all anymore, since I flashed it, so I don't believe I can provide a debug log. At this time, it's sitting at the QR code (and has been since flash), and I cannot connect to it's internal AP, so I can't do anything with it.

@aderusha
Copy link
Collaborator

If the device is showing the QR code then it's alive in some sense and should be spitting out debug logs via serial while doing so. I don't want to have you running in too many circles here, so if you'd like to setup a return, hit me up at [email protected] and we can get that worked out that way.

Otherwise, getting a serial debug log will require disassembling the device. Another alternative is to try out the latest dev build of 1.06 which has several fixes around the wifi stack that has improved connection performance for my devices here where I also have 4 Unifi APs. That can be flashed using the process you linked above and you can find that build here: https://github.com/HASwitchPlate/HASPone/raw/dev-1.06/Arduino_Sketch/HASwitchPlate.ino.d1_mini.bin

@omayhemo
Copy link
Author

I'll try flashing 1.06 and see if I can get the logs too, will be a useful exercise for me.

@ssurovich
Copy link

ssurovich commented Sep 6, 2022

I flashed 1.06 and it just sends my panel into an endless loop of Connecting to WiFi and you can see the initial screen with my buttons but then it reboots - endless loop of this.

If the stack dump helps, here it is:

======================y=========================================================
[+0.078s] SYSTEM: Starting HASPone v1.06
[+0.083s] SYSTEM: heapFree: 28360 heapMaxFreeBlockSize: 28216
[+0.089s] SYSTEM: Last reset reason: Fatal exception:28 flag:2 (Exception) epc1:0x4024034c epc2:0x00000000 epc3:0x00000000 excvaddr:0x11900000 depc:0x00000000
SYSTEM: Crashdump data discovered:Crash information recovered from EEPROM
Crash # 1 at 3134 ms
Restart reason: 2
Exception cause: 28
epc1=0x4024034c epc2=0x00000000 epc3=0x00000000 excvaddr=0x11900000 depc=0x00000000
>>>stack>>>
3ffffd30: 00000015 3fff63bc 3ffffd7c 3fff0a6c
3ffffd40: 3ffe86b3 11900000 3ffffd7c 4022df9b
3ffffd50: 3ffe86b3 3fff0e0f 3fff0918 4022dfcd
3ffffd60: 3ffe86b3 3fff0e0f 3fff0918 402174b4
3ffffd70: 00000000 002f002f 00000000 00000000
3ffffd80: 002f002f 00000000 00000000 0050005f
3ffffd90: 00000000 00000000 392e312e 00000000
3ffffda0: 00000000 004f004f 00000000 00000000
3ffffdb0: 0047004f 00000000 00000000 362e312e
3ffffdc0: 00000000 00000000 002e002f 00000000
3ffffdd0: 00000000 0025002f 00000000 00000000
3ffffde0: 001f001f 00000000 4023bf5c 4301020a
3ffffdf0: 00000000 00000000 3ffe86f8 00000000
3ffffe00: 00000000 000f000f 00000000 00000000
3ffffe10: 000d000f 00000000 3fff61e4 401012ea
3ffffe20: 40239ff8 3ffffe60 3ffffe40 4022dad1
3ffffe30: 40239ff8 3fffff00 3ffffe60 4022ab46
3ffffe40: 00000000 002b002f 3ff.V▒~▒▒
▒▒1
3ffffe50: 40239ff8 3fffff00 3fff0ff0 40208566
3ffffe60: 4023be5c 00000000 000003e8 4021ea14
3ffffe70: 00000000 08ff01ff 00000000 01090000
3ffffe80: 00290100 0000056d 00ffff00 00000000
3ffffe90: 00000000 39921b25 00000000 00000000
3ffffea0: 00000000 4022a7b8 3ffffe60 3fff0e0f
3ffffeb0: 000008e3 3fff641c 0022002f 80000000
3ffffec0: 3fff63e4 0020002f 80000000 3fff63bc
3ffffed0: 0015001f 80000000 3fff6394 001b001f
3ffffee0: 80000000 3fff0818 3fffff00 4022dad1
3ffffef0: 3fff0a90 3fff0a9c 3fff0ea0 4020b6d4
3fffff00: 00000000 002b002f 002b002f
Incomplete stack trace saved!
<<<stack<<<
No more EEPROM space available to save crash information!

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

3 participants