PICO and WIZnet. WIZnet won`t get requests. #5078
Replies: 1 comment
-
Posted at 2023-01-26 by @gfwilliams Does this happen after a certain number of HTTP requests to the server? Or do you think it's just a random event? I can try and look into this, but I'm pretty busy at the moment so I'm not sure it'll get done in the next two weeks I'm afraid. I've filed an issue at espruino/Espruino#2321 to keep track of it though All I can suggest for now I'm afraid is to keep doing HTTP requests every few seconds, and that might bring it back to life Posted at 2023-01-26 by Artem Hello, Gordon, Posted at 2023-01-27 by @gfwilliams Interesting, thanks! What happens if you close the web browser that you were making the request on before you make requests with the new one? I wonder if maybe the web browser is leaving the connection open between requests? I believe Espruino usually asks the browser to close the connection, but if it doesn't that could cause a lot of problems Posted at 2023-01-27 by Artem It loses connection after browser reloading, it also loses connection after a short period of time with served page opened. I the same browser session if i close page served by server and reopen it, connection remains active. At all times outgoing messages reached host. i attached error browser emits when fails to connect server. Also when i cannot reach server via browser, no requests from another server will come through. Attachments: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2023-01-25 by Artem
Hello,
I`m using PICO with the latest firmware (with WIZnet) and 'w5500 lite' module.
So after deploying http-server (even as simple, as in examples), server stops getting requests in a few minutes or immediately, if i ping server or make a request from another client (browser fires ERR_CONNECTION_REFUSED, and no requests can be registered in log of IDE). In this state however server can fire requests (i can control ethernet relay from IDE) and after each second outgoing request server can again get client requests... i attached some screenshots with .getIP() and .getStatus() information along with some client requests. Could you please tell if it's possible to make server functioning stably?
Thank you.
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions