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

Crash when controlling AXA Remote 2.0 synchronous #7

Open
rpoelstra opened this issue Jun 15, 2024 · 4 comments
Open

Crash when controlling AXA Remote 2.0 synchronous #7

rpoelstra opened this issue Jun 15, 2024 · 4 comments

Comments

@rpoelstra
Copy link
Contributor

Hi,

I'm using your code to control both a 'normal' AXA Remote 2.0 as well as a 'synchronous' version that has two motors connected.
The single motor version works fine, but with the double motor version there occurs a crash every now and then.
I'm new to ESPHome development, so I'm wondering how I can debug this issue.

Can you provide some support?

@galagaking
Copy link
Owner

Hi, i do not have two AXA modules to test. May be the serial port gives some feedback and you have to put a trace on the serial ouput to give some clue what is going on? The code will put also some logging to the LOG feed (accessible via Esphome LOG).

@rpoelstra
Copy link
Contributor Author

Hi, Thank you for your answer. I've been able to drastically reduce the crashes by performing a bounds check when writing to the buff array in the while(available()) loop.
It still crashes about 4 times a day, but it's useable now. The communication isn't 100% reliable as the commands from ESPHome might interfere with the master slave communication in which case both messages are lost.
Unfortunately I don't have a spare set, otherwise it would be much easier to dive into the communication to see whether reliability can be improved.

@austwhite
Copy link

@rpoelstra
I think you'll find the crash related to the ESP chip losing power or browning out due to the extra draw from the dual motor setup. I have had occasional errors with that even with the single motor setup device (the 2.0)
You may need to increase track size for the DC power rails to the AXA and the ESP chip.

@rpoelstra
Copy link
Contributor Author

I’ve monitored the power supply and it’s rock steady. I’m using the AXA supplied adapter and power the esp from there with a step down converter.
The crashes also only happen when the motors are idle so doesn’t seem related to the power that’s available to the esp.
I’ll try to find some time to dive deeper into the communication to try and find the remaining crashes.

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