[SOLVED] Arduino ethernet shield 2 (W5500)

@naamah75 please share with us your sketch.

It is 100 req-sec

I’m running the sample schetch:
/**************************************************************

  • Blynk is a platform with iOS and Android apps to control
  • Arduino, Raspberry Pi and the likes over the Internet.
  • You can easily build graphic interfaces for all your
  • projects by simply dragging and dropping widgets.
  • Downloads, docs, tutorials: http://www.blynk.cc
  • Blynk community: http://community.blynk.cc
  • Social networks: http://www.fb.com/blynkapp
  •                           http://twitter.com/blynk_app
    
  • Blynk library is licensed under MIT license
  • This example code is in public domain.

  • This example shows how to use Arduino.org Ethernet Shield 2 (W5500)
  • to connect your project to Blynk.
  • Feel free to apply it to any other example. It’s simple!
  • NOTE: You may have to install Arduino.ORG IDE to get it working:
  •     http://www.arduino.org/software
    
  •   Pins 10, 11, 12 and 13 are reserved for Ethernet module.
    
  •   DON'T use them in your sketch directly!
    

**************************************************************/

#define BLYNK_PRINT Serial // Comment this out to disable prints and save space
#include <SPI.h>
#include <Ethernet2.h>
#include <BlynkSimpleEthernet2.h>

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = ā€œYourAuthTokenā€;

void setup()
{
Serial.begin(9600);
Blynk.begin(auth);
// You can also specify server.
// For more options, see BoardsAndShields/Arduino_Ethernet_Manual example
//Blynk.begin(auth, ā€œyour_server.comā€, 8442);
//Blynk.begin(auth, IPAddress(192,168,1,100), 8888);
}

void loop()
{
Blynk.run();
}

Did you see sketch comments?

I was going to say I think you are missing your token.

Please paste the sketch again and then press the </> icon. I don’t need to see your token but I need to know it is not ā€œYourAuthTokenā€.

Yes I deleted the real token for privacy…
Sorry for the </>

I’ve examined my blynk.log on my server…
Every time I try to connect the app the server throw this exception:
`17:22:30.420 INFO - naamah75@gmail.com hardware joined.
17:22:38.698 ERROR - Blynk server IOException.
java.io.IOException: Connessione interrotta dal corrispondente
at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:192)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:357)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:898)
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)
17:22:45.463 INFO - naamah75@gmail.com hardware joined.
17:22:52.235 ERROR - Blynk server IOException.
java.io.IOException: Connessione interrotta dal corrispondente
at sun.nio.ch.FileDispatcherImpl.read0(Native Method)
at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39)
at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223)
at sun.nio.ch.IOUtil.read(IOUtil.java:192)
at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380)
at io.netty.buffer.UnpooledUnsafeDirectByteBuf.setBytes(UnpooledUnsafeDirectByteBuf.java:357)
at io.netty.buffer.AbstractByteBuf.writeBytes(AbstractByteBuf.java:898)
at io.netty.channel.socket.nio.NioSocketChannel.doReadBytes(NioSocketChannel.java:242)
at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:119)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:468)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354)
at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:112)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
at java.lang.Thread.run(Thread.java:745)

`

Changed PIN, so now I not use 10,11,12 and 13, but the problem presist

Does your shield works without Blynk?

I just tested my W5500 with Arduino web server and web client sample sketches and seems to work very well.
I tested also my CC3000, this shield seem hang Arduino, but I would want to do more testing with this (even if the Arduino sample sketches seems to work).
Finally I try my ESP8266MOD… Eureka! this works with both custom and cloud server! No errors at all.
So… Now I have restricted the circle…

  • my blynk server is OK.
  • my network and internet connection is OK.
    Maybe the blynk W5500 library could have some problem?
    Maybe my CC3000 shield could have a problem.

@naamah75 could you please try older Blynk library 0.3.1 for instance?

Okay… I’m very confused… I don’t know why… but today the W5500 works very well, no one disconnection.
Never is changed on my sketch and on my hardware.
I’ve just upgraded the app on my smartphone, but I think this isn’t related to my problem.