BLYNK
HOME       📲 GETTING STARTED       📗 DOCS       ❓HELP CENTER       👉 SKETCH BUILDER

[SOLVED] Reliability of connections to Blynk (using Cloud Server over Satellite Internet)

From the “Middle East” 150ms for 45.55… and 320ms for 188.166… without satellite :slight_smile:

@Costas you mean Cyprus :slight_smile:? As far as I remember Cyprus has very narrow channel to the continent :smile:

Correct, my server in Paris is approx 70ms which is very similar to the geo-dns allocated Blynk server, as stated above, of 65ms.

Here it is as requested. Keith

ping 188.166.206.43
PING 188.166.206.43 (188.166.206.43) 56(84) bytes of data.
64 bytes from 188.166.206.43: icmp_seq=1 ttl=55 time=1047 ms
64 bytes from 188.166.206.43: icmp_seq=2 ttl=55 time=757 ms
64 bytes from 188.166.206.43: icmp_seq=3 ttl=55 time=742 ms
64 bytes from 188.166.206.43: icmp_seq=4 ttl=55 time=750 ms
64 bytes from 188.166.206.43: icmp_seq=5 ttl=55 time=749 ms
64 bytes from 188.166.206.43: icmp_seq=6 ttl=55 time=747 ms
64 bytes from 188.166.206.43: icmp_seq=7 ttl=55 time=778 ms
64 bytes from 188.166.206.43: icmp_seq=8 ttl=55 time=1074 ms
64 bytes from 188.166.206.43: icmp_seq=9 ttl=55 time=788 ms
64 bytes from 188.166.206.43: icmp_seq=10 ttl=55 time=771 ms
64 bytes from 188.166.206.43: icmp_seq=11 ttl=55 time=1028 ms
64 bytes from 188.166.206.43: icmp_seq=12 ttl=55 time=824 ms
64 bytes from 188.166.206.43: icmp_seq=13 ttl=55 time=815 ms
64 bytes from 188.166.206.43: icmp_seq=14 ttl=55 time=1145 ms
64 bytes from 188.166.206.43: icmp_seq=15 ttl=55 time=847 ms
64 bytes from 188.166.206.43: icmp_seq=16 ttl=55 time=845 ms
64 bytes from 188.166.206.43: icmp_seq=17 ttl=55 time=1158 ms
64 bytes from 188.166.206.43: icmp_seq=18 ttl=55 time=1096 ms
64 bytes from 188.166.206.43: icmp_seq=19 ttl=55 time=837 ms
64 bytes from 188.166.206.43: icmp_seq=20 ttl=55 time=824 ms
64 bytes from 188.166.206.43: icmp_seq=21 ttl=55 time=840 ms
64 bytes from 188.166.206.43: icmp_seq=22 ttl=55 time=1235 ms
64 bytes from 188.166.206.43: icmp_seq=23 ttl=55 time=1761 ms
64 bytes from 188.166.206.43: icmp_seq=24 ttl=55 time=1110 ms
64 bytes from 188.166.206.43: icmp_seq=25 ttl=55 time=1143 ms
64 bytes from 188.166.206.43: icmp_seq=26 ttl=55 time=1470 ms
64 bytes from 188.166.206.43: icmp_seq=27 ttl=55 time=836 ms
64 bytes from 188.166.206.43: icmp_seq=28 ttl=55 time=1106 ms
64 bytes from 188.166.206.43: icmp_seq=29 ttl=55 time=1801 ms
64 bytes from 188.166.206.43: icmp_seq=30 ttl=55 time=950 ms
64 bytes from 188.166.206.43: icmp_seq=31 ttl=55 time=752 ms
64 bytes from 188.166.206.43: icmp_seq=32 ttl=55 time=750 ms
64 bytes from 188.166.206.43: icmp_seq=33 ttl=55 time=1089 ms
64 bytes from 188.166.206.43: icmp_seq=34 ttl=55 time=740 ms
64 bytes from 188.166.206.43: icmp_seq=35 ttl=55 time=739 ms
64 bytes from 188.166.206.43: icmp_seq=36 ttl=55 time=797 ms
64 bytes from 188.166.206.43: icmp_seq=37 ttl=55 time=790 ms
64 bytes from 188.166.206.43: icmp_seq=38 ttl=55 time=799 ms
64 bytes from 188.166.206.43: icmp_seq=39 ttl=55 time=819 ms
64 bytes from 188.166.206.43: icmp_seq=40 ttl=55 time=867 ms
64 bytes from 188.166.206.43: icmp_seq=41 ttl=55 time=919 ms
64 bytes from 188.166.206.43: icmp_seq=42 ttl=55 time=952 ms
64 bytes from 188.166.206.43: icmp_seq=43 ttl=55 time=792 ms
64 bytes from 188.166.206.43: icmp_seq=44 ttl=55 time=752 ms
64 bytes from 188.166.206.43: icmp_seq=45 ttl=55 time=811 ms
64 bytes from 188.166.206.43: icmp_seq=46 ttl=55 time=836 ms
64 bytes from 188.166.206.43: icmp_seq=47 ttl=55 time=785 ms
64 bytes from 188.166.206.43: icmp_seq=48 ttl=55 time=802 ms
64 bytes from 188.166.206.43: icmp_seq=49 ttl=55 time=823 ms
64 bytes from 188.166.206.43: icmp_seq=50 ttl=55 time=833 ms
64 bytes from 188.166.206.43: icmp_seq=51 ttl=55 time=837 ms
64 bytes from 188.166.206.43: icmp_seq=52 ttl=55 time=832 ms
64 bytes from 188.166.206.43: icmp_seq=53 ttl=55 time=834 ms
64 bytes from 188.166.206.43: icmp_seq=54 ttl=55 time=825 ms
64 bytes from 188.166.206.43: icmp_seq=55 ttl=55 time=885 ms
64 bytes from 188.166.206.43: icmp_seq=56 ttl=55 time=1699 ms
64 bytes from 188.166.206.43: icmp_seq=57 ttl=55 time=849 ms
64 bytes from 188.166.206.43: icmp_seq=58 ttl=55 time=757 ms
64 bytes from 188.166.206.43: icmp_seq=59 ttl=55 time=839 ms
64 bytes from 188.166.206.43: icmp_seq=60 ttl=55 time=820 ms
64 bytes from 188.166.206.43: icmp_seq=61 ttl=55 time=799 ms
64 bytes from 188.166.206.43: icmp_seq=62 ttl=55 time=864 ms

Thanks. This confirms suggestions regarding bad satellite connection. As this server is in Singapore.

I believe I have done as you suggested.
I found Blynk library release 0.4.8 on Github at https://github.com/blynkkk/blynk-library/releases
downloaded Blynk_Release_v0.4.8.zip
followed the instructions on that page, so now an extract of my Arduino/libraries folder looks like this:

/Arduino/libraries/Blynk/
/Arduino/libraries/BlynkESP8266_Lib/
/Arduino/libraries/blynk-library-master/

The last line is the original, the first two are new.

I also have a new folder
/Arduino/tools/ which contains 3 new folders:
BlynkExampleBuilder
BlynkUpdater
BlynkUsbScript

I restarted my Arduino IDE and loaded the original program that I sent to you with some of its results. I just added one new line, which is to print out the version number at the top of the print file (makes it easier to be sure which version you are looking at).

Here is the output so far. I think it looks pretty similar to what I had before.
It is saved on my computer as PushDataLogV2No7.txt

�����>���BlynkPushdataV2

Blynk.begin has started 
17684
[17684] Connecting to tanderra
[24686] Connected to WiFi
[24687] IP: 192.168.0.100
[24687] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.4.7 on Arduino

[24760] Connecting to blynk-cloud.com:8442
[31580] Connecting to blynk-cloud.com:8442
[38679] Connecting to blynk-cloud.com:8442
[40096] Ready (ping: 1228ms).

Blynk.begin has returned after 23056 ms. millis=40740
[67875] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=71 Blynk connection flag=0 millis=71007
sending millis/1000+1 to Blynk V1 value=72 Blynk connection flag=0 millis=71060
sending millis/1000+2 to Blynk V2 value=73 Blynk connection flag=0 millis=71144
sending millis/1000+3 to Blynk V3 value=74 Blynk connection flag=0 millis=71229
Not Connected counts = 1 1 1 1 cycles = 1
[73008] Login timeout
[76008] Connecting to blynk-cloud.com:8442
[83026] Connecting to blynk-cloud.com:8442
[88022] Login timeout
[91022] Connecting to blynk-cloud.com:8442
[97250] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=104 Blynk connection flag=0 millis=104325
sending millis/1000+1 to Blynk V1 value=105 Blynk connection flag=0 millis=104381
sending millis/1000+2 to Blynk V2 value=106 Blynk connection flag=0 millis=104468
sending millis/1000+3 to Blynk V3 value=107 Blynk connection flag=0 millis=104554
Not Connected counts = 2 2 2 2 cycles = 2
[104608] Connecting to blynk-cloud.com:8442
[111549] Connecting to blynk-cloud.com:8442
[118649] Connecting to blynk-cloud.com:8442
[123168] Ready (ping: 994ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=130 Blynk connection flag=1 millis=130740
sending millis/1000+1 to Blynk V1 value=136 Blynk connection flag=0 millis=135742
sending millis/1000+2 to Blynk V2 value=137 Blynk connection flag=0 millis=135773
sending millis/1000+3 to Blynk V3 value=138 Blynk connection flag=0 millis=135859
Not Connected counts = 2 3 3 3 cycles = 3
[135914] Connecting to blynk-cloud.com:8442
[141998] Connecting to blynk-cloud.com:8442
[149172] Connecting to blynk-cloud.com:8442
[156247] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=163 Blynk connection flag=0 millis=163396
sending millis/1000+1 to Blynk V1 value=164 Blynk connection flag=0 millis=163452
sending millis/1000+2 to Blynk V2 value=165 Blynk connection flag=0 millis=163539
sending millis/1000+3 to Blynk V3 value=166 Blynk connection flag=0 millis=163625
Not Connected counts = 3 4 4 4 cycles = 4
[163679] Connecting to blynk-cloud.com:8442
[170621] Connecting to blynk-cloud.com:8442
[177670] Connecting to blynk-cloud.com:8442
[184795] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=191 Blynk connection flag=0 millis=191869
sending millis/1000+1 to Blynk V1 value=192 Blynk connection flag=0 millis=191926
sending millis/1000+2 to Blynk V2 value=193 Blynk connection flag=0 millis=192012
sending millis/1000+3 to Blynk V3 value=195 Blynk connection flag=0 millis=192098
Not Connected counts = 4 5 5 5 cycles = 5
[192153] Connecting to blynk-cloud.com:8442
[198302] Ready (ping: 892ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=223 Blynk connection flag=1 millis=223772
sending millis/1000+1 to Blynk V1 value=225 Blynk connection flag=1 millis=224239
sending millis/1000+2 to Blynk V2 value=227 Blynk connection flag=1 millis=225232
sending millis/1000+3 to Blynk V3 value=233 Blynk connection flag=0 millis=230234
Not Connected counts = 4 5 5 6 cycles = 6
[230237] Connecting to blynk-cloud.com:8442
[231549] Ready (ping: 1068ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=250 Blynk connection flag=1 millis=250740
sending millis/1000+1 to Blynk V1 value=256 Blynk connection flag=0 millis=255742
sending millis/1000+2 to Blynk V2 value=257 Blynk connection flag=0 millis=255773
sending millis/1000+3 to Blynk V3 value=258 Blynk connection flag=0 millis=255859
Not Connected counts = 4 6 6 7 cycles = 7
[255914] Connecting to blynk-cloud.com:8442
[262315] Connecting to blynk-cloud.com:8442
[268577] Ready (ping: 1ms).
[273581] Login timeout
[273581] Connecting to blynk-cloud.com:8442
[277589] Login timeout
[280589] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=287 Blynk connection flag=0 millis=287513
sending millis/1000+1 to Blynk V1 value=288 Blynk connection flag=0 millis=287569
sending millis/1000+2 to Blynk V2 value=289 Blynk connection flag=0 millis=287656
sending millis/1000+3 to Blynk V3 value=290 Blynk connection flag=0 millis=287742
Not Connected counts = 5 7 7 8 cycles = 8
[287797] Connecting to blynk-cloud.com:8442
[294663] Connecting to blynk-cloud.com:8442
[301837] Connecting to blynk-cloud.com:8442
[304032] Login timeout
[307032] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=313 Blynk connection flag=0 millis=313912
sending millis/1000+1 to Blynk V1 value=314 Blynk connection flag=0 millis=313968
sending millis/1000+2 to Blynk V2 value=316 Blynk connection flag=0 millis=314054
sending millis/1000+3 to Blynk V3 value=317 Blynk connection flag=0 millis=314141
Not Connected counts = 6 8 8 9 cycles = 9
[314195] Connecting to blynk-cloud.com:8442
[321061] Connecting to blynk-cloud.com:8442
[328111] Connecting to blynk-cloud.com:8442
[329939] Ready (ping: 1120ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=345 Blynk connection flag=0 millis=345120
sending millis/1000+1 to Blynk V1 value=346 Blynk connection flag=0 millis=345176
sending millis/1000+2 to Blynk V2 value=347 Blynk connection flag=0 millis=345263
sending millis/1000+3 to Blynk V3 value=348 Blynk connection flag=0 millis=345349
Not Connected counts = 7 9 9 10 cycles = 10
[345406] Connecting to blynk-cloud.com:8442
[352309] Connecting to blynk-cloud.com:8442
[359409] Connecting to blynk-cloud.com:8442
[365883] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=370 Blynk connection flag=0 millis=370740
sending millis/1000+1 to Blynk V1 value=371 Blynk connection flag=0 millis=370796
sending millis/1000+2 to Blynk V2 value=372 Blynk connection flag=0 millis=370882
sending millis/1000+3 to Blynk V3 value=373 Blynk connection flag=0 millis=370969
Not Connected counts = 8 10 10 11 cycles = 11
[371552] Ready (ping: 1238ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=400 Blynk connection flag=1 millis=400740
sending millis/1000+1 to Blynk V1 value=402 Blynk connection flag=1 millis=401254
sending millis/1000+2 to Blynk V2 value=403 Blynk connection flag=1 millis=401665
sending millis/1000+3 to Blynk V3 value=409 Blynk connection flag=0 millis=406667
Not Connected counts = 8 10 10 12 cycles = 12
[406670] Connecting to blynk-cloud.com:8442
[413055] Connecting to blynk-cloud.com:8442
[415955] Ready (ping: 1489ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=430 Blynk connection flag=1 millis=430740
sending millis/1000+1 to Blynk V1 value=432 Blynk connection flag=1 millis=431875
sending millis/1000+2 to Blynk V2 value=437 Blynk connection flag=1 millis=435046
sending millis/1000+3 to Blynk V3 value=438 Blynk connection flag=1 millis=435765
Not Connected counts = 8 10 10 12 cycles = 13
[440770] Connecting to blynk-cloud.com:8442
[442502] Ready (ping: 1361ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=460 Blynk connection flag=1 millis=460740
sending millis/1000+1 to Blynk V1 value=464 Blynk connection flag=1 millis=463692
sending millis/1000+2 to Blynk V2 value=465 Blynk connection flag=1 millis=463923
sending millis/1000+3 to Blynk V3 value=467 Blynk connection flag=1 millis=464055
Not Connected counts = 8 10 10 12 cycles = 14
[469057] Connecting to blynk-cloud.com:8442
[471012] Ready (ping: 1226ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=490 Blynk connection flag=1 millis=490740
sending millis/1000+1 to Blynk V1 value=491 Blynk connection flag=1 millis=490884
sending millis/1000+2 to Blynk V2 value=493 Blynk connection flag=1 millis=491043
sending millis/1000+3 to Blynk V3 value=494 Blynk connection flag=1 millis=491162
Not Connected counts = 8 10 10 12 cycles = 15
[518752] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=525 Blynk connection flag=0 millis=525273
sending millis/1000+1 to Blynk V1 value=526 Blynk connection flag=0 millis=525329
sending millis/1000+2 to Blynk V2 value=527 Blynk connection flag=0 millis=525416
sending millis/1000+3 to Blynk V3 value=528 Blynk connection flag=0 millis=525502
Not Connected counts = 9 11 11 13 cycles = 16
[525560] Connecting to blynk-cloud.com:8442
[532423] Connecting to blynk-cloud.com:8442
[539422] Connecting to blynk-cloud.com:8442
[542922] Ready (ping: 1584ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=550 Blynk connection flag=1 millis=550740
sending millis/1000+1 to Blynk V1 value=551 Blynk connection flag=1 millis=550963
sending millis/1000+2 to Blynk V2 value=553 Blynk connection flag=1 millis=551166
sending millis/1000+3 to Blynk V3 value=554 Blynk connection flag=1 millis=551396
Not Connected counts = 9 11 11 13 cycles = 17
[580274] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=584 Blynk connection flag=0 millis=584202
sending millis/1000+1 to Blynk V1 value=585 Blynk connection flag=0 millis=584258
sending millis/1000+2 to Blynk V2 value=586 Blynk connection flag=0 millis=584345
sending millis/1000+3 to Blynk V3 value=587 Blynk connection flag=0 millis=584431
Not Connected counts = 10 12 12 14 cycles = 18
[586203] Login timeout
[589203] Connecting to blynk-cloud.com:8442
[595669] Connecting to blynk-cloud.com:8442
[602718] Connecting to blynk-cloud.com:8442
[609793] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=611 Blynk connection flag=0 millis=611545
sending millis/1000+1 to Blynk V1 value=612 Blynk connection flag=0 millis=611601
sending millis/1000+2 to Blynk V2 value=613 Blynk connection flag=0 millis=611688
sending millis/1000+3 to Blynk V3 value=614 Blynk connection flag=0 millis=611774
Not Connected counts = 11 13 13 15 cycles = 19
[613546] Login timeout
[616546] Connecting to blynk-cloud.com:8442
[622892] Connecting to blynk-cloud.com:8442
[629916] Connecting to blynk-cloud.com:8442
[632093] Login timeout
[635093] Connecting to blynk-cloud.com:8442
[638336] Ready (ping: 1200ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=640 Blynk connection flag=1 millis=640740
sending millis/1000+1 to Blynk V1 value=644 Blynk connection flag=1 millis=643098
sending millis/1000+2 to Blynk V2 value=645 Blynk connection flag=1 millis=643299
sending millis/1000+3 to Blynk V3 value=646 Blynk connection flag=1 millis=643452
Not Connected counts = 11 13 13 15 cycles = 20
[654437] Connecting to blynk-cloud.com:8442
[660629] Ready (ping: 1125ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=670 Blynk connection flag=1 millis=670740
sending millis/1000+1 to Blynk V1 value=676 Blynk connection flag=0 millis=675742
sending millis/1000+2 to Blynk V2 value=677 Blynk connection flag=0 millis=675773
sending millis/1000+3 to Blynk V3 value=678 Blynk connection flag=0 millis=675859
Not Connected counts = 11 14 14 16 cycles = 21
[675919] Connecting to blynk-cloud.com:8442
[682338] Connecting to blynk-cloud.com:8442
[683635] Ready (ping: 1108ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=700 Blynk connection flag=1 millis=700740
sending millis/1000+1 to Blynk V1 value=701 Blynk connection flag=1 millis=700874
sending millis/1000+2 to Blynk V2 value=703 Blynk connection flag=1 millis=701030
sending millis/1000+3 to Blynk V3 value=704 Blynk connection flag=1 millis=701178
Not Connected counts = 11 14 14 16 cycles = 22
[719794] Connecting to blynk-cloud.com:8442
[726535] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=732 Blynk connection flag=0 millis=732748
sending millis/1000+1 to Blynk V1 value=733 Blynk connection flag=0 millis=732804
sending millis/1000+2 to Blynk V2 value=734 Blynk connection flag=0 millis=732890
sending millis/1000+3 to Blynk V3 value=735 Blynk connection flag=0 millis=732977
Not Connected counts = 12 15 15 17 cycles = 23
[733036] Ready (ping: 289ms).
[738069] Login timeout
[738069] Connecting to blynk-cloud.com:8442
[744659] Connecting to blynk-cloud.com:8442
[746952] Ready (ping: 0ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=760 Blynk connection flag=1 millis=760740
sending millis/1000+1 to Blynk V1 value=766 Blynk connection flag=0 millis=765742
sending millis/1000+2 to Blynk V2 value=767 Blynk connection flag=0 millis=765773
sending millis/1000+3 to Blynk V3 value=768 Blynk connection flag=0 millis=765859
Not Connected counts = 12 16 16 18 cycles = 24
[765919] Connecting to blynk-cloud.com:8442
[772832] Connecting to blynk-cloud.com:8442
[775243] Ready (ping: 1156ms).
[790408] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=794 Blynk connection flag=0 millis=794285
sending millis/1000+1 to Blynk V1 value=795 Blynk connection flag=0 millis=794341
sending millis/1000+2 to Blynk V2 value=796 Blynk connection flag=0 millis=794427
sending millis/1000+3 to Blynk V3 value=797 Blynk connection flag=0 millis=794514
Not Connected counts = 13 17 17 19 cycles = 25
[795466] Ready (ping: 1181ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=820 Blynk connection flag=1 millis=820740
sending millis/1000+1 to Blynk V1 value=826 Blynk connection flag=0 millis=825742
sending millis/1000+2 to Blynk V2 value=827 Blynk connection flag=0 millis=825773
sending millis/1000+3 to Blynk V3 value=828 Blynk connection flag=0 millis=825859
Not Connected counts = 13 18 18 20 cycles = 26
[825919] Connecting to blynk-cloud.com:8442
[832378] Connecting to blynk-cloud.com:8442
[839403] Connecting to blynk-cloud.com:8442
[846528] Connecting to blynk-cloud.com:8442
[847996] Ready (ping: 1129ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=850 Blynk connection flag=1 millis=850740
sending millis/1000+1 to Blynk V1 value=851 Blynk connection flag=1 millis=850886
sending millis/1000+2 to Blynk V2 value=853 Blynk connection flag=1 millis=851117
sending millis/1000+3 to Blynk V3 value=854 Blynk connection flag=1 millis=851268
Not Connected counts = 13 18 18 20 cycles = 27
[863969] Connecting to blynk-cloud.com:8442
[870576] Connecting to blynk-cloud.com:8442
[877676] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=884 Blynk connection flag=0 millis=884775
sending millis/1000+1 to Blynk V1 value=885 Blynk connection flag=0 millis=884831
sending millis/1000+2 to Blynk V2 value=886 Blynk connection flag=0 millis=884918
sending millis/1000+3 to Blynk V3 value=887 Blynk connection flag=0 millis=885004
Not Connected counts = 14 19 19 21 cycles = 28
[885064] Connecting to blynk-cloud.com:8442
[895399] Connecting to blynk-cloud.com:8442
[902049] Connecting to blynk-cloud.com:8442
[909098] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=916 Blynk connection flag=0 millis=916223
sending millis/1000+1 to Blynk V1 value=917 Blynk connection flag=0 millis=916279
sending millis/1000+2 to Blynk V2 value=918 Blynk connection flag=0 millis=916366
sending millis/1000+3 to Blynk V3 value=919 Blynk connection flag=0 millis=916452
Not Connected counts = 15 20 20 22 cycles = 29
[916512] Connecting to blynk-cloud.com:8442
[923398] Connecting to blynk-cloud.com:8442
[930547] Connecting to blynk-cloud.com:8442
[932057] Ready (ping: 1199ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=940 Blynk connection flag=1 millis=940740
sending millis/1000+1 to Blynk V1 value=941 Blynk connection flag=1 millis=940945
sending millis/1000+2 to Blynk V2 value=943 Blynk connection flag=1 millis=941200
sending millis/1000+3 to Blynk V3 value=944 Blynk connection flag=1 millis=941358
Not Connected counts = 15 20 20 22 cycles = 30

Timer Event triggered
sending millis/1000   to Blynk V0 value=970 Blynk connection flag=1 millis=970740
sending millis/1000+1 to Blynk V1 value=971 Blynk connection flag=1 millis=970948
sending millis/1000+2 to Blynk V2 value=973 Blynk connection flag=1 millis=971280
sending millis/1000+3 to Blynk V3 value=974 Blynk connection flag=1 millis=971461
Not Connected counts = 15 20 20 22 cycles = 31
[976463] Connecting to blynk-cloud.com:8442
[979124] Login timeout
[982124] Connecting to blynk-cloud.com:8442
[983521] Ready (ping: 1230ms).
[1000679] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=6 Blynk connection flag=0 millis=1006817
sending millis/1000+1 to Blynk V1 value=7 Blynk connection flag=0 millis=1006870
sending millis/1000+2 to Blynk V2 value=8 Blynk connection flag=0 millis=1006956
sending millis/1000+3 to Blynk V3 value=10 Blynk connection flag=0 millis=1007042
Not Connected counts = 16 21 21 23 cycles = 32
[1007103] Connecting to blynk-cloud.com:8442
[1013917] Connecting to blynk-cloud.com:8442
[1021091] Connecting to blynk-cloud.com:8442
[1028166] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=35 Blynk connection flag=0 millis=1035290
sending millis/1000+1 to Blynk V1 value=36 Blynk connection flag=0 millis=1035346
sending millis/1000+2 to Blynk V2 value=37 Blynk connection flag=0 millis=1035432
sending millis/1000+3 to Blynk V3 value=38 Blynk connection flag=0 millis=1035518
Not Connected counts = 17 22 22 24 cycles = 33
[1035579] Connecting to blynk-cloud.com:8442
[1042515] Connecting to blynk-cloud.com:8442
[1047981] Ready (ping: 229ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=60 Blynk connection flag=1 millis=1060740
sending millis/1000+1 to Blynk V1 value=61 Blynk connection flag=1 millis=1060896
sending millis/1000+2 to Blynk V2 value=63 Blynk connection flag=1 millis=1061040
sending millis/1000+3 to Blynk V3 value=64 Blynk connection flag=1 millis=1061239
Not Connected counts = 17 22 22 24 cycles = 34

Timer Event triggered
sending millis/1000   to Blynk V0 value=90 Blynk connection flag=1 millis=1090740
sending millis/1000+1 to Blynk V1 value=91 Blynk connection flag=1 millis=1090908
sending millis/1000+2 to Blynk V2 value=93 Blynk connection flag=1 millis=1091063
sending millis/1000+3 to Blynk V3 value=94 Blynk connection flag=1 millis=1091213
Not Connected counts = 17 22 22 24 cycles = 35
[1106632] Heartbeat timeout
[1109635] Connecting to blynk-cloud.com:8442
[1110904] Ready (ping: 976ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=120 Blynk connection flag=1 millis=1120740
sending millis/1000+1 to Blynk V1 value=126 Blynk connection flag=0 millis=1125742
sending millis/1000+2 to Blynk V2 value=127 Blynk connection flag=0 millis=1125774
sending millis/1000+3 to Blynk V3 value=128 Blynk connection flag=0 millis=1125861
Not Connected counts = 17 23 23 25 cycles = 36
[1125922] Connecting to blynk-cloud.com:8442
[1132909] Connecting to blynk-cloud.com:8442
[1139984] Connecting to blynk-cloud.com:8442
[1147033] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=154 Blynk connection flag=0 millis=1154208
sending millis/1000+1 to Blynk V1 value=155 Blynk connection flag=0 millis=1154265
sending millis/1000+2 to Blynk V2 value=156 Blynk connection flag=0 millis=1154352
sending millis/1000+3 to Blynk V3 value=157 Blynk connection flag=0 millis=1154440
Not Connected counts = 18 24 24 26 cycles = 37
[1154500] Connecting to blynk-cloud.com:8442
[1156396] Ready (ping: 1468ms).
[1171648] Connecting to blynk-cloud.com:8442
[1178581] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=180 Blynk connection flag=0 millis=1180740
sending millis/1000+1 to Blynk V1 value=181 Blynk connection flag=0 millis=1180797
sending millis/1000+2 to Blynk V2 value=182 Blynk connection flag=0 millis=1180884
sending millis/1000+3 to Blynk V3 value=183 Blynk connection flag=0 millis=1180972
Not Connected counts = 19 25 25 27 cycles = 38
[1181903] Ready (ping: 1825ms).
[1186907] Login timeout
[1186908] Connecting to blynk-cloud.com:8442
[1193880] Connecting to blynk-cloud.com:8442
[1200930] Connecting to blynk-cloud.com:8442
[1208079] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=215 Blynk connection flag=0 millis=1215179
sending millis/1000+1 to Blynk V1 value=216 Blynk connection flag=0 millis=1215236
sending millis/1000+2 to Blynk V2 value=217 Blynk connection flag=0 millis=1215324
sending millis/1000+3 to Blynk V3 value=218 Blynk connection flag=0 millis=1215411
Not Connected counts = 20 26 26 28 cycles = 39
[1215471] Connecting to blynk-cloud.com:8442
[1218507] Login timeout
[1221507] Connecting to blynk-cloud.com:8442
[1228378] Connecting to blynk-cloud.com:8442
[1235453] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=242 Blynk connection flag=0 millis=1242552
sending millis/1000+1 to Blynk V1 value=243 Blynk connection flag=0 millis=1242609
sending millis/1000+2 to Blynk V2 value=244 Blynk connection flag=0 millis=1242697
sending millis/1000+3 to Blynk V3 value=245 Blynk connection flag=0 millis=1242784
Not Connected counts = 21 27 27 29 cycles = 40
[1242845] Connecting to blynk-cloud.com:8442
[1252901] Connecting to blynk-cloud.com:8442
[1259801] Connecting to blynk-cloud.com:8442
[1266926] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=274 Blynk connection flag=0 millis=1274000
sending millis/1000+1 to Blynk V1 value=275 Blynk connection flag=0 millis=1274057
sending millis/1000+2 to Blynk V2 value=276 Blynk connection flag=0 millis=1274145
sending millis/1000+3 to Blynk V3 value=277 Blynk connection flag=0 millis=1274232
Not Connected counts = 22 28 28 30 cycles = 41
[1274293] Connecting to blynk-cloud.com:8442
[1281225] Connecting to blynk-cloud.com:8442
[1288324] Connecting to blynk-cloud.com:8442
[1292144] Ready (ping: 1631ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=300 Blynk connection flag=1 millis=1300740
sending millis/1000+1 to Blynk V1 value=301 Blynk connection flag=1 millis=1300894
sending millis/1000+2 to Blynk V2 value=303 Blynk connection flag=1 millis=1301106
sending millis/1000+3 to Blynk V3 value=304 Blynk connection flag=1 millis=1301235
Not Connected counts = 22 28 28 30 cycles = 42
[1306239] Connecting to blynk-cloud.com:8442
[1310125] Login timeout
[1313125] Connecting to blynk-cloud.com:8442
[1319672] Connecting to blynk-cloud.com:8442
[1326672] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=333 Blynk connection flag=0 millis=1333746
sending millis/1000+1 to Blynk V1 value=334 Blynk connection flag=0 millis=1333803
sending millis/1000+2 to Blynk V2 value=335 Blynk connection flag=0 millis=1333891
sending millis/1000+3 to Blynk V3 value=336 Blynk connection flag=0 millis=1333978
Not Connected counts = 23 29 29 31 cycles = 43
[1334039] Connecting to blynk-cloud.com:8442
[1340971] Connecting to blynk-cloud.com:8442
[1348070] Connecting to blynk-cloud.com:8442
[1355145] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=362 Blynk connection flag=0 millis=1362245
sending millis/1000+1 to Blynk V1 value=363 Blynk connection flag=0 millis=1362302
sending millis/1000+2 to Blynk V2 value=364 Blynk connection flag=0 millis=1362389
sending millis/1000+3 to Blynk V3 value=365 Blynk connection flag=0 millis=1362477
Not Connected counts = 24 30 30 32 cycles = 44
[1362537] Connecting to blynk-cloud.com:8442
[1369519] Connecting to blynk-cloud.com:8442
[1376569] Connecting to blynk-cloud.com:8442
[1383568] Connecting to blynk-cloud.com:8442
[1390643] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=397 Blynk connection flag=0 millis=1397717
sending millis/1000+1 to Blynk V1 value=398 Blynk connection flag=0 millis=1397774
sending millis/1000+2 to Blynk V2 value=399 Blynk connection flag=0 millis=1397862
sending millis/1000+3 to Blynk V3 value=400 Blynk connection flag=0 millis=1397949
Not Connected counts = 25 31 31 33 cycles = 45
[1398010] Connecting to blynk-cloud.com:8442
[1404842] Connecting to blynk-cloud.com:8442
[1411916] Connecting to blynk-cloud.com:8442
[1419141] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=426 Blynk connection flag=0 millis=1426140
sending millis/1000+1 to Blynk V1 value=427 Blynk connection flag=0 millis=1426198
sending millis/1000+2 to Blynk V2 value=428 Blynk connection flag=0 millis=1426285
sending millis/1000+3 to Blynk V3 value=429 Blynk connection flag=0 millis=1426373
Not Connected counts = 26 32 32 34 cycles = 46
[1426433] Connecting to blynk-cloud.com:8442
[1433340] Connecting to blynk-cloud.com:8442
[1440414] Connecting to blynk-cloud.com:8442
[1447539] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=454 Blynk connection flag=0 millis=1454564
sending millis/1000+1 to Blynk V1 value=455 Blynk connection flag=0 millis=1454621
sending millis/1000+2 to Blynk V2 value=456 Blynk connection flag=0 millis=1454708
sending millis/1000+3 to Blynk V3 value=457 Blynk connection flag=0 millis=1454796
Not Connected counts = 27 33 33 35 cycles = 47
[1454856] Connecting to blynk-cloud.com:8442
[1456807] Ready (ping: 1805ms).
[1472424] Connecting to blynk-cloud.com:8442
[1478912] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=486 Blynk connection flag=0 millis=1486012
sending millis/1000+1 to Blynk V1 value=487 Blynk connection flag=0 millis=1486069
sending millis/1000+2 to Blynk V2 value=488 Blynk connection flag=0 millis=1486156
sending millis/1000+3 to Blynk V3 value=489 Blynk connection flag=0 millis=1486244
Not Connected counts = 28 34 34 36 cycles = 48
[1486304] Connecting to blynk-cloud.com:8442
[1493236] Connecting to blynk-cloud.com:8442
[1500336] Connecting to blynk-cloud.com:8442
[1507485] Connecting to blynk-cloud.com:8442

Timer Event triggered
sending millis/1000   to Blynk V0 value=514 Blynk connection flag=0 millis=1514535
sending millis/1000+1 to Blynk V1 value=515 Blynk connection flag=0 millis=1514592
sending millis/1000+2 to Blynk V2 value=516 Blynk connection flag=0 millis=1514679
sending millis/1000+3 to Blynk V3 value=517 Blynk connection flag=0 millis=1514767
Not Connected counts = 29 35 35 37 cycles = 49
[1514827] Connecting to blynk-cloud.com:8442
[1521759] Connecting to blynk-cloud.com:8442
[1525437] Ready (ping: 1330ms).

Timer Event triggered
sending millis/1000   to Blynk V0 value=543 Blynk connection flag=0 millis=1543102
sending millis/1000+1 to Blynk V1 value=544 Blynk connection flag=0 millis=1543160
sending millis/1000+2 to Blynk V2 value=545 Blynk connection flag=0 millis=1543247
sending millis/1000+3 to Blynk V3 value=546 Blynk connection flag=0 millis=1543335
Not Connected counts = 30 36 36 38 cycles = 50
[1543395] Connecting to blynk-cloud.com:8442

I will leave it running over night. By morning there should be a bigger sample.

This states you are still running 0.4.7.

Thank you for that reminder… such a silly oversight, but out of the 22 different display type widgets in my one project, I still had 5 set to 1sec update :blush:

Setting those to PUSH has restored the reliability I lost since switching to ESP link :+1:

@farmerkeith And having had some experience with Satellite and long range terrestrial WiFi, I concur that Satellite Internet is your most likely cause of your “reliability” issues. Satellite will always have long pings & poor latency, simply due to the distances involved… yay physics :slight_smile: Always bad for higher speed interactive communication like gaming and data intensive IOT.

Local Server will go a long way towards solving your reliability issue (good code also helps), and with port forwarding, you can still have remote access anywhere in the world.

1 Like

After some troubles, I have now succeeded in changing the library and it shows 0.4.8 on the log trace.
It got to 78 cycles with no failures at all, then 1 so far out of 107. Continuing to run.
I did a chart of the failures from last night, which may be informative.

The cycles are at 30 second intervals, so we get 120 cycles per hour. The start of this chart is at about 10 pm local time here (UTC+10) and the end at about 8 am 23 July.
You will observe there are 3 patterns. First there is a period of intermittent successes and failures. then a period of continuous failure. Then another period of intermittent, mixed successes and failures. And finally a period of continous success. It is clearly the case that this protocol can succeed. There must be some influence that causes it to fail sometimes, which comes and goes.
I will give you an update when I have more on the performance of 0.4.8.
Keith

Yes it’s called a satellite link.

Increase your baud from 9600 to 115200, 9600 is just for old Arduino’s using ESP’s as a shield.

It doesn’t look like your ESP is resetting but if it does try adding the following line as the first line of your myTimerEvent() function:

ESP.wdtFeed();

1 Like

It’s a bit crude but the other possible fix would be as follows:

Update V0 and then with setTimeout() part of Blynk (Simple) Timer trigger the V1 update after say 100ms, then V2 after 100ms and finally V3 after 100ms.

Perhaps use a Blynk slider to vary the 100ms and see what works best for your specific satellite system.

but with the vagaries of a satellite link at the server side :slight_smile:

I think the satellite link is there all the time. It does not come and go.
I have put in the changes you suggested (increase serial.print rate, and ESP.wdtFeed() in the myTimerEvent() function, and restarted.
This is what I had at the point of restart:

BlynkPushdataV2

Blynk.begin has started 
17742
[17742] Connecting to tanderra
[29246] Connected to WiFi
[29246] IP: 192.168.0.100
[29246] 
    ___  __          __
   / _ )/ /_ _____  / /__
  / _  / / // / _ \/  '_/
 /____/_/\_, /_//_/_/\_\
        /___/ v0.4.8 on Arduino

[29320] Connecting to blynk-cloud.com:8442
[30824] Ready (ping: 879ms).

Blynk.begin has returned after 13334 ms. millis=31076

Timer Event triggered
sending millis/1000   to Blynk V0 value=61 Blynk connection flag=1 millis=61076
sending millis/1000+1 to Blynk V1 value=62 Blynk connection flag=1 millis=61184
sending millis/1000+2 to Blynk V2 value=63 Blynk connection flag=1 millis=61306
sending millis/1000+3 to Blynk V3 value=64 Blynk connection flag=1 millis=61463
Not Connected counts = 0 0 0 0 cycles = 1

and at the end

Timer Event triggered
sending millis/1000   to Blynk V0 value=961 Blynk connection flag=1 millis=12961076
sending millis/1000+1 to Blynk V1 value=962 Blynk connection flag=1 millis=12961199
sending millis/1000+2 to Blynk V2 value=963 Blynk connection flag=1 millis=12961402
sending millis/1000+3 to Blynk V3 value=964 Blynk connection flag=1 millis=12961557
Not Connected counts = 34 52 54 55 cycles = 431
[12967703] Connecting to blynk-cloud.com:8442
[12974086] Login timeout

As you can see from this there are still NotConnected events occurring with release 0.4.8, although they may be less frequent overall.

I don’t understand why the ping response times are so variable. I did a distribution chart and got the following:

as you can see there is a cluster around 800 ms, and another around 880, and then a long tail out to about 1800ms. In another run I saw a ping at 2175 ms.
How these long tails arise is not obvious. Possibly there is an ARQ system on the satellite link that results in repeated transmissions. Being rare, the long tails will just cause sporadic failures, not continuous like we are seeing on the test program.
I will send more data when available.
Keith

True… such is the nature of Satellite Internet. But not nearly as likely to cause the hardware to reset :wink: I think the the App <–> Server link is more flexible.

Population around 300 in 84 dwellings from 600 to 1000m above sea level and apparently flat terrain.

Aren’t there any WISP’s available?

I have worked a with terrestrial based wireless internet providers… in competition with a Satellite based supplier. The link itself doesn’t “disappear” but the lag is always bad, with a chance of worse and the odd moments of crappy :stuck_out_tongue_winking_eye:

It is not noticeable with general surfing or buffered streaming, but with something that constantly (every few seconds) needs to communicate back and forth… Well, your issue is the Satellite.

Setup a Local Server and test it for yourself :wink:

1 Like

Preferably not fed from that same satellite :smiley: I have seen that, and it isn’t pretty when a client unknowingly jumps from the pan to the fire.

1 Like

Perhaps we should ask what @farmerkeith plans to use Blynk for.

I’m guessing that many permanent rural dwellers don’t have the same IOT requirements as a city dweller.
Local server for local access, without port forwarding, may be all that’s required.

1 Like

I am guessing that a WISP is a Wireless Internet Service Provider - for which my satellite service would qualify of course. But no, there are no other choices here. Maybe one day the Australian National Broadband Network will install a terrestrial wireless system here, but there is no plan at the moment as far as I can find out.
As for the IoT needs of rural people, I think they are different, and much greater, than the needs of city dwellers. There are lots of data that is interesting (like soil moisture, temperature, wind, humidity in different microclimates around the property, water storage levels); and controls such as irrigation pumps and greenhouse ventilation.
So for the future, I think this unreliability, whether it is the result of latency or something else, is an important issue to address and solve.
I do not accept the thesis that long latency is an inevitable source of unreliability. Poorly designed protocols will break with long latency, yes - the one I mentioned earlier, fax, is a prime example. But I don’t think TCP suffers from that problem.
I will post some more statistics and the time distribution of the problem as they become available.
Thank you for your continued attention.
Keith

Yes but you would be more likely to control all this locally with Blynk rather than a cloud based server, more suited to City dwellers.