-
Notifications
You must be signed in to change notification settings - Fork 7
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
Issues with adapter 3.1 #40
Comments
I would first concentrate on point 2, because point 2 may also be causing distortions on the GDoor PCB as well. (If nothing above helps there may be further solutions which would required hardware changes on the GDoor adapter to test/improve) |
@DaSchaef: thanks for the hints. I have used a usb powerbank to connect the wemos and the buzzing is gone. Will try different power supplies next and hopefully find a suitable one. If not, I will see if I can use another phase than the one of the Gira controller. |
Ok, so it seems to be in the power supply or earth/neutral connection.
The core can be easily purchased, e.g. first amazon link: |
@DaSchaef thanks again for the tips. I rewired everything and changed both usb cable and power supply. Using a good old apple power supply did the trick. Now I don’t have any noise on the audio channel anymore. No need to use the core, but this would have been the next step, even had one at home. |
I still have not found a solution for the regular outage of the gdoor adapter. After changing the power supply I had thought that it would have solved the regular connection losses, but they now reoccured... I still have not figured out how to get debug messages via MQTT. I activated the debug mode in the menu, but where can I retrieve the respective debug messages via MQTT or check the log file on the ESP itself. Could you please help me here. Thanks |
Debug messages are only send out over the USB port (baudrate: 115200). |
OK, I connected it via USB. Where do I find the debug information in the data stream? |
During a reconnect there should be more output, as now also die Wifi Library is in debug mode
While the connection is stable it should be rather quiet, only the IDLE / HomeAssistent Keepalive packets will show up. |
same here. 3.1 usb powered and it discconnects after X hours with no pattern. another problem is the IP. cant change it using DHCP or anyhting. once it picked an IP in my LAN it wont take any other IP no matter what IP the DHCP tries to assign the next time. |
For Wifi, we use WifiManager, I think we need debug logs of connection (DHCP issue) and disconnect to dig deeper. |
More "ideas" I had:
EDIT: Debug log should give us hints for above points - I hope :) |
OK, the issue with connection loss reoccurred today and I can now compare Mqtt and Serial output. Serial Output: MQTT: While there is no more output via MQTT after this connection loss, the serial adapter continues to do something. Here's an extract of the log - this sequence was triggered multiple times as the event_id counter goes up from 31 to 131 in only 4h! Maybe this helps to find a root cause... GDoor-Serial wechselte zu {"action": "BUS_IDLE", "parameters": "0000", "source": "000000", "destination": "000000", "type": "TYPE_GDOOR", "event_id": "31"} GDoor-Serial wechselte zu {"debug": "MQTT_PRINTER read()"} GDoor-Serial wechselte zu {"debug": "MQTT_PRINTER publish()"} GDoor-Serial wechselte zu {"debug": "Output bus data via Serial and MQTT, done"} GDoor-Serial wurde unbekannt GDoor-Serial wechselte zu {"debug": "MQTT_PRINTER read()"} GDoor-Serial wechselte zu {"debug": "MQTT_PRINTER publish()"} GDoor-Serial wechselte zu {"debug": "Received data from bus"} GDoor-Serial wechselte zu {"debug": "Gira RX was successfully parsed"} GDoor-Serial wechselte zu {"debug": "Gira RX done"} |
Your log is missing any deeper debug messages, no output from WiFiManager. |
Yes, I am also a bit disappointed by the debug info. But this is all I get via HA "logbuch". I also don't know how to extract it as txt-file. GDoor-Serial wechselte zu {"action": "BUS_IDLE", "parameters": "0000", "source": "000000", "destination": "000000", "type": "TYPE_GDOOR", "event_id": "0"} GDoor-Serial wechselte zu {"debug": "MQTT_PRINTER read()"} GDoor-Serial wechselte zu {"debug": "MQTT_PRINTER publish()"} GDoor-Serial wechselte zu {"debug": "Successfully connected MQTT"} GDoor-Serial wechselte zu {"debug": "Newly connected WIFI detected in MQTT loop"} GDoor-Serial wechselte zu {"debug": "1.65"} GDoor-Serial wechselte zu {"debug": "RX Sensitivity: "} GDoor-Serial wechselte zu {"debug": "22"} GDoor-Serial wechselte zu {"debug": "RX Pin: "} GDoor-Serial wechselte zu {"debug": "GDoor Setup done"} GDoor-Serial wechselte zu *wm:Starting Web Portal GDoor-Serial wechselte zu *wm:STA IP Address: ........ (entfernt) GDoor-Serial wechselte zu *wm:AutoConnect: SUCCESS GDoor-Serial wechselte zu *wm:connectTimeout not set, ESP waitForConnectResult... GDoor-Serial wurde unbekannt |
I think HA is "hiding" debug messages from us ;-( |
try it with USB direct connected to your HA. Configuration.ymal :
ttyUSB1 can be different in your case. Check: System/Hardware/Gesamte Hardware I'm running two options in parallel. received LOG only from one installation |
@mikburnz: I already have the adapter connected via serial. The log from GDoor-Serial is what I get via serial port. @DaSchaef: I also think that HA is hiding some of the debug messages. How can I directly log the raw serial data from the adapter in the background via console? |
Sorry I'm no HA user, and as an embedded linux developer, my toolchain is rather "complicated" :-/ From my memory typical programs are: On Windows: Hterm
|
I also checked the HA log and found another hint. The HA log shows an issue to set the state starting at 16:09 with 105 repeats, until at 18:10 the adapter finally loses connection and the mqtt-based entity shows the following: GDoor Adapter Bus Data wurde nicht verfügbar Logger: homeassistant.helpers.entity Failed to set state for sensor.gdoor_serial, fall back to unknown |
This seems to be that HA tries to parse some debug output from GDoor and fails - maybe? |
I have now disabled the debug mode in the adapter and I now get a lot more messages via serial. Very strange, but I will now wait until the disconnect reoccurs, maybe I will see some useful info then… |
I think I have the same problem. Can I somehow support with the analysis |
I need the "wm:" debug messages from the serial debug console. |
I need to check if i'm able to connect it to usb for that. Didn't see any pattern yet. Happened once after running for 2-3 weeks. Last time it happened already after a few days. |
On my end I did not experience an outage of the adapter since turning off the debug mode. In the meantime I believe it’s the debug mode itself in combination with HA that leads to a strange behavior and produces all these strange messages via serial and finally freezes the adapter. With debug disabled, I only see correct messages via serial and mqtt and no freezing anymore. Problem solved for now. |
I think I found the reason/pattern now. Is it possible that there is an issue in the software with wifi reconnect handling? |
I can confirm issues with Wifi reconnect: when I turn on the wifi time schedule of my router, e.g. that it turns Wifi off during night, it happens that GDoor doesn't reconnect when Wifi is on again. |
I would need serial logs of this, so we can narrow it down. I think it is important that the GDoor is reliable and stable, therefore we should have a stable baseline. But I can not reproduce it here with my FritzBox Wifi on/off (but I know such things from other ESP projects, so yes I understand how frustrating such things can be). |
I can try to get some serial logs, but I have a question before doing that.
How should I get the logs now. Disconnect the adapter from the MeanWell power supply and connect it via USB to the computer, while the adapter is still connected to the Gira Bus? Regarding reproducing the issue, how long did you turn off the Wifi. My Access Points need almost 5 minutes to reboot, maybe turning it off for the same time makes it reproduceable. |
Sorry I somehow missed your post! I would propose to power it via USB so, only one connection.
Yes :) |
No worries. Getting the logs that way from gdoor is a bit complicated with my setup/available devices. As there is a lot of progress currently going on with the esphome custom component I'm looking into that direction and will switch to that as soon as possible. |
Hi gDoor Community,
I have recently installed a gDoor adapter v3.1 and connected it to HA. Everything works fine, but I have 2 issues and would like to get your advice.
thanks for your support, Ben
The text was updated successfully, but these errors were encountered: