Hi everyone, I am writing to you because I bought a Siemens IOT2020 from there.
I state that I have been using Arduino UNO / mega / due cards with wifi and Ethernet shield for a long time as well as Esp 8266 …
I made a test skeg to connect the IOT2020 with Blynk …
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <Ethernet.h>
#include <BlynkSimpleEthernet.h>
char auth[] = "xxxxxxxxxxxxxxxxxxxxxxxxxxx";
int i=1;
void setup()
{
// Debug console
Serial.begin(115200);
Blynk.begin(auth);
// You can also specify server:
//Blynk.begin(auth, "blynk-cloud.com", 80);
//Blynk.begin(auth, IPAddress(192,168,0,80), 8080);
}
void loop()
{
//delay(1000);
i=i+1;
Blynk.virtualWrite(V1,i);
Serial.println(i);
Blynk.run();
}
As you can see from the serial monitor it is very slow, it loops every 10 seconds.
PING 192.168.0.53 (192.168.0.53): 56 data bytes
64 bytes from 192.168.0.53: icmp_seq=0 ttl=64 time=11.032 ms
64 bytes from 192.168.0.53: icmp_seq=1 ttl=64 time=3.628 ms
64 bytes from 192.168.0.53: icmp_seq=2 ttl=64 time=7.241 ms
64 bytes from 192.168.0.53: icmp_seq=3 ttl=64 time=7.731 ms
64 bytes from 192.168.0.53: icmp_seq=4 ttl=64 time=7.261 ms
64 bytes from 192.168.0.53: icmp_seq=5 ttl=64 time=13.162 ms
64 bytes from 192.168.0.53: icmp_seq=6 ttl=64 time=1.998 ms
64 bytes from 192.168.0.53: icmp_seq=7 ttl=64 time=6.416 ms
64 bytes from 192.168.0.53: icmp_seq=8 ttl=64 time=1.862 ms
64 bytes from 192.168.0.53: icmp_seq=9 ttl=64 time=6.390 ms
64 bytes from 192.168.0.53: icmp_seq=10 ttl=64 time=7.094 ms
I did some tests, if I insert in the sketch two Blynk.virtualWrite the waiting time for writing the date doubles, if I put three Blynk.virtualWrite the data update time triples.
Another test I did is to modify the Refresh Iternal on the “Widget” “Value Display”, if I set it on “Push” the transmission time is 5/6 seconds, if or I put 1 according to the application Blynk goes “OffLine”, if I put it at 15 seconds the update time is 15 seconds.
I hope that with this information someone can help me, thanks.
17:07:07.614 ->
17:07:07.614 -> test
17:07:07.614 ->
17:07:07.614 ->
17:07:07.614 -> test
17:07:07.614 ->
17:07:07.614 ->
17:07:07.614 -> test
17:07:07.614 ->
17:07:07.614 ->
17:07:07.614 -> test
17:07:07.614 ->
17:07:07.614 ->
17:07:07.614 -> test
17:07:07.614 ->
17:07:07.614 ->
17:07:07.614 -> test
17:07:07.614 ->
17:07:07.614 ->
17:07:07.614 -> test
17:07:07.614 ->
17:07:07.614 ->
17:07:07.614 -> test
17:07:07.614 ->
17:07:07.614 ->
17:07:07.614 -> test
17:07:07.614 ->
17:07:07.614 ->
17:07:07.614 -> test
17:07:07.614 ->
17:07:07.614 ->
17:07:07.614 -> test
Thank you for your interest, do you have any idea what the reason is?
I am afraid that this IOT2020 chassis is not very compatible with Blynk, and I will have to abandon…
I also tried to remove #define BLYNK_PRINT Serial, it’s always slow …
I also removed the BlynkTimer timer function and the loop is always slow 5 seconds.
I’m not familiar with this Siemens device and I believe it’s not popular in this community. You have 2 options, dig the Blynk library and try to find where it slow it down. Or use the HTTP API
09:11:09.126 -> Reading value
09:11:09.126 -> Connecting to blynk-cloud.com:8080... OK
09:11:09.144 -> Value from server: ["3450"]
09:11:09.144 -> Retard mills : 360.00
09:11:09.698 -> Sending value: 4450
09:11:09.698 -> Connecting to blynk-cloud.com:8080... OK
09:11:09.878 -> Reading value
09:11:09.878 -> Connecting to blynk-cloud.com:8080... OK
09:11:10.054 -> Value from server: ["4450"]
09:11:10.054 -> Retard mills : 384.00
09:11:10.678 -> Sending value: 5450
09:11:10.714 -> Connecting to blynk-cloud.com:8080... OK
09:11:10.861 -> Reading value
09:11:10.861 -> Connecting to blynk-cloud.com:8080... OK
09:11:11.041 -> Value from server: ["5450"]
09:11:11.041 -> Retard mills : 368.00
09:11:11.689 -> Sending value: 6450
09:11:11.689 -> Connecting to blynk-cloud.com:8080... OK
09:11:11.862 -> Reading value
09:11:11.862 -> Connecting to blynk-cloud.com:8080... OK
09:11:12.036 -> Value from server: ["6450"]
09:11:12.036 -> Retard mills : 367.00
09:11:12.676 -> Sending value: 7450
09:11:12.709 -> Connecting to blynk-cloud.com:8080... OK
09:11:12.884 -> Reading value
09:11:12.884 -> Connecting to blynk-cloud.com:8080... OK
09:11:13.023 -> Value from server: ["7450"]
09:11:13.057 -> Retard mills : 356.00
09:11:13.686 -> Sending value: 8450
09:11:13.686 -> Connecting to blynk-cloud.com:8080... OK
09:11:13.856 -> Reading value
09:11:13.888 -> Connecting to blynk-cloud.com:8080... OK
09:11:14.063 -> Value from server: ["8450"]
09:11:14.063 -> Retard mills : 375.00
09:11:14.695 -> Sending value: 9450
09:11:14.695 -> Connecting to blynk-cloud.com:8080... OK
09:11:14.864 -> Reading value
09:11:14.864 -> Connecting to blynk-cloud.com:8080... OK
09:11:15.041 -> Value from server: ["9450"]
09:11:15.041 -> Retard mills : 365.00
09:11:15.683 -> Sending value: 10450