PICO and WIZnet. WIZnet won`t get requests.

Posted on
  • 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.


    3 Attachments

    • 2023-01-24_19-27-41.png
    • 2023-01-24_17-31-40.png
    • getStatus getIP.png
  • 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 https://github.com/espruino/Espruino/iss­ues/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

  • Hello, Gordon,
    thank you for reply.
    Theres no rush, so ill be waiting...
    As far as i can see it doesnt depend on number of requests, but on different clients. I can request server for, lets say dozen of times, reloading the same page and everything works fine including fetch requests, but then should i request server from smartphone or ping it, server stops getting requests. Or i can make just one request after code is uploaded and on the second request from another client or after ping, server wont get requests. And in either way in two consequent requests from the server its again possible to get requests. It looks like this: first request from server reaches host (ethernet relay) but dont get answer from it, on second request from server its possible to get answer from host, and thus possible to request server to serve some page...

  • 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

  • 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.


    1 Attachment

    • 2023-01-27_19-45-02.png
  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

PICO and WIZnet. WIZnet won`t get requests.

Posted by Avatar for Artem @Artem

Actions