Open hpsaturn opened 6 months ago
Huh... we have been seeing this error: "Cannot call "receive" once a disconnect message has been received." frequently, which I believe is due to the device disconnecting before it receives the data. We will look into this issue and update you here with what we find
is weird, because is clear that the device is connected, because when you stop the server, the firmware send many messages of disconnection, not before to this. But, I understand you, maybe is a internal disconnection?
I built the firmware using CORE_DEBUG_LEVEL=4 to catch more logs, and I found maybe some weird:
21:30:07.066 > [ 53498][D][WiFiClient.cpp:536] connected(): Disconnected: RES: 0, ERR: 128
Also we have a I2S error:
21:30:07.062 > E (53780) I2S: i2s_driver_uninstall(2048): I2S port 0 has not installed
The complete output is here:
21:29:46.470 > [ 32911][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 5 - STA_DISCONNECTED
21:29:46.478 > [ 32911][W][WiFiGeneric.cpp:1061] _eventCallback(): Reason: 202 - AUTH_FAIL
21:29:46.486 > [ 32915][D][WiFiGeneric.cpp:1081] _eventCallback(): WiFi Reconnect Running
21:29:46.542 > [ 32985][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 4 - STA_CONNECTED
21:29:46.566 > [ 33007][D][WiFiGeneric.cpp:1039] _eventCallback(): Arduino Event: 7 - STA_GOT_IP
21:29:46.574 > [ 33007][D][WiFiGeneric.cpp:1102] _eventCallback(): STA IP: 192.168.178.131, MASK: 255.255.255.0, GW: 192.168.178.1
21:29:47.458 > .Connected to Wi-Fi
21:29:47.462 > Served Post connection HTML Page
21:30:06.890 > Connecting to 01OS at xxxx-80-xxx-236-148.ngrok-free.app:80/ping
21:30:06.950 > Started the ping request
21:30:07.050 > Got status code: 200
21:30:07.054 > Setting up websocket to 01OS xxxx-80-xxx-236-148.ngrok-free.app:80
21:30:07.058 > connected to WiFi
21:30:07.062 > E (53780) I2S: i2s_driver_uninstall(2048): I2S port 0 has not installed
21:30:07.066 > [ 53498][D][WiFiClient.cpp:536] connected(): Disconnected: RES: 0, ERR: 128
21:30:07.074 > InitI2sSpeakerOrMic 1
21:30:07.074 > Content length is: 4
21:30:07.078 >
21:30:07.078 > Body:
21:30:07.078 > pongWebsocket connection flow completed
21:30:07.082 >
21:30:07.082 > Connected to 01 websocket!
21:30:07.086 >
21:30:07.086 > Served success HTML Page
21:30:07.138 > [WSc] Connected to url: /
Summary
Server and device is connected and running ok without exceptions, also with Ollama or with OPENAI API key, but not happening anything, the server don't receive M5Echo data, only reaches the first ping and the socket is connected, but I only have:
To Reproduce
Steps to reproduce the behavior:
poetry run 01 --server --expose
Expected behavior Something in the speaker from the IA.
Screenshots
Device output:
Server output
Desktop (please complete the following information):
Additional context
Also I don't have a success test running
poetry run 01
, I have ALSA errors, but I think that this has not relation with this issue, because here I'm running the server.. I guess. Right?