Whats wrong with the Blynk service!

Here is a packet sequence to blynk server which all looks OK at the network level.
This results from using the basic manual ethernet sketch but I also tried the dhcp version with the same problem.
(I also tried various versions of arduino and blynk s/w - see issue ‘Possible bug shows up in serial monitor’
The hardware is arduino uno, 5100 wiz net shield, fortinet router.

So why doesnt the arduino connect to the Blynk network ?
Packet sequence repeats, serial monitor just shows “connecting to cloud blynk”.
APP says arduino is not in network.

Arduino asks for router gateway mac address
2.480158 internal – arp who-has 192.168.5.1 tell 192.168.5.2
0x0000 0001 0800 0604 0001 deed bafe feed c0a8 …
0x0010 0502 0000 0000 0000 c0a8 0501 0000 0000 …
0x0020 0000 0000 0000 0000 0000 0000 0000 …

Router responds with mac address
2.480203 internal – arp reply 192.168.5.1 is-at 0:9:f:54:41:a4
0x0000 0001 0800 0604 0002 0009 0f54 41a4 c0a8 …TA…
0x0010 0501 deed bafe feed c0a8 0502 …

Arduino asks DNS for ip address of blynk server
2.480280 internal – 192.168.5.2.1028 -> 212.104.130.9.53: udp 32
0x0000 4500 003c 0302 4000 8011 db92 c0a8 0502 E…<…@…
0x0010 d468 8209 0404 0035 0028 e38d cdd6 0100 .h…5.(…
0x0020 0001 0000 0000 0000 0563 6c6f 7564 0562 …cloud.b
0x0030 6c79 6e6b 0263 6300 0001 0001 lynk.cc…

DNS server responds with blynk server IP address
2.026845 internal – 212.104.130.9.53 -> 192.168.5.2.1035: udp 163
0x0000 4500 00bf 56b0 0000 3a11 0d62 d468 8209 E…V…:…b.h…
0x0010 c0a8 0502 0035 040b 00ab 8273 b42c 8180 …5…s.,…
0x0020 0001 0001 0002 0003 0563 6c6f 7564 0562 …cloud.b
0x0030 6c79 6e6b 0263 6300 0001 0001 c00c 0001 lynk.cc…
0x0040 0001 0000 0290 0004 2d37 c366 c012 0002 …-7.f…
0x0050 0001 0000 013d 0018 046e 7337 370d 646f …=…ns77.do
0x0060 6d61 696e 636f 6e74 726f 6c03 636f 6d00 maincontrol.com.
0x0070 c012 0002 0001 0000 013d 0007 046e 7337 …=…ns7
0x0080 38c0 41c0 6000 0100 0100 027c bf00 04d0 8.A.......|.... 0x0090 6dff 31c0 6000 1c00 0100 0140 df00 1026 m.1.…@…&
0x00a0 07f2 0803 0200 0000 0000 0000 0000 31c0 …1.
0x00b0 3c00 0100 0100 0292 3100 04d8 45b9 31 <…1…E.1

Arduino asks again for router gateway address (because its a bit simple !)
2.061904 internal – arp who-has 192.168.5.1 tell 192.168.5.2
0x0000 0001 0800 0604 0001 deed bafe feed c0a8 …
0x0010 0502 0000 0000 0000 c0a8 0501 0000 0000 …
0x0020 0000 0000 0000 0000 0000 0000 0000 …

Router responds with mac address.
2.061954 internal – arp reply 192.168.5.1 is-at 0:9:f:54:41:a4
0x0000 0001 0800 0604 0002 0009 0f54 41a4 c0a8 …TA…
0x0010 0501 deed bafe feed c0a8 0502 …

Arduino starts a communication with Blynk server
2.062031 internal – 192.168.5.2.49384 -> 45.55.195.102.8442: syn 796545213
0x0000 4500 002c 03a0 4000 8006 40e4 c0a8 0502 E…,…@…@…
0x0010 2d37 c366 c0e8 20fa 2f7a 50bd 0000 0000 -7.f…/zP…
0x0020 6002 0800 77c4 0000 0204 05b4 0000 `…w…

Blynk server responds and acknowledges
2.150733 internal – 45.55.195.102.8442 -> 192.168.5.2.49384: syn 3367879727 ack 796545214
0x0000 4500 002c 0000 4000 3606 8e84 2d37 c366 E…,…@.6…-7.f
0x0010 c0a8 0502 20fa c0e8 c8bd c42f 2f7a 50be …//zP.
0x0020 6012 7210 80b5 0000 0204 05b4 `.r…

Arduino acknowledges
2.150815 internal – 192.168.5.2.49384 -> 45.55.195.102.8442: ack 3367879728
0x0000 4500 0028 03a1 4000 8006 40e7 c0a8 0502 E…(…@…@…
0x0010 2d37 c366 c0e8 20fa 2f7a 50be c8bd c430 -7.f…/zP…0
0x0020 5010 0800 0283 0000 0000 0000 0000 P…

Blynk servers send s a fin and acknowledge to complete sequence
2.197310 internal – 45.55.195.102.8442 -> 192.168.5.2.49381: fin 1805512158 ack 420454379
0x0000 4500 0028 a58c 4000 3606 e8fb 2d37 c366 E…(…@.6…-7.f
0x0010 c0a8 0502 20fa c0e5 6b9d edde 190f 9feb …k…
0x0020 5011 7210 9324 0000 P.r…$…

i really don’t think you have thought through your question or worked out how to phrase it in a way to derive a useful answer from the forum?

is there a sketch involved somewhere?

and any sort of hardware?

1 Like

Hello. It is better to start from high level details. Your code sketch. Your hardware wiring. Some meaningful problem description. Blynk app and lib versions, etc.

Dave & Dmitry.

Ive edited the issue with software & hardware comments so I hope that is clearer.

Please see past issue “Possible bug shows up in serial monitor” for all the detail.
I got no useful response to that entry.
I use just the basic manual ethernet sketch together with different versions of blynk and arduino firmware. All results are the same packet sequence as above which clearly shows there are no issues with network communication.
I notice from past community notices that others have given up since they had the same issue. IMO the problem is at the application level (blynk server). There really needs to be some way of getting application errors from the blynk server.

Although it may seem redundant to you, but can you post up the code you are using?

Can you post a screen shot of the error on your phone app?

have you tried using the app? to blink an LED?

my blynk app says my arduino “is not in network” lots of times, but it still works…

I just tried switching the onboard LED (D13) with a switch in the APP but no success.
Interesting that you say you also get ‘not in network’.

Here is the sketch (ethernet manual). -

cloud.blynk.cc?? I’m a local server guy but I think it has been changed…please check it.

1 Like

Thanks for the feedback.
blink-cloud.com and cloud.blynk.cc both resolve to the same address 45.55.195.102
Worth checking though.

what happens if you run this one:

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

char auth[] = "YourAuthToken";

void setup()
{
  Serial.begin(9600);
  Blynk.begin(auth);
}

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

Yes, I already tried the dhcp/auto sketch to rule that out. Same result.
With the trace I’ve proved that the network layer is fine.
There is nothing we can adjust at the application layer in the sketch or at the server end and this is where some log output would be an advantage.
My suspicion is that the blynk server is hitting a limit.

Blynk server is up and running and very very far from hitting the limit.

You’ve seen the trace. No doubt you have a log.
Having been in IT for over 25 years I know what time is involved in investigating logs to look for issues !
Where do I go from here?

Arduino is currently getting back packets from the blynk server as shown in the trace above.

If n00bs without 25 years IT experience can get this working, maybe you need to go back to basics and go step by step from the start…

It really is quite simple…

1 Like

If you open the example “Arduino Ethernet Manual”, you will see these notes:

  • This example shows how to configure static IP with Ethernet.
  • Be sure to check ordinary Ethernet example first!!!
  • NOTE: Pins 10, 11, 12 and 13 are reserved for Ethernet module.
  •   DON'T use them in your sketch directly!
    

Add a LED to other pin number and let us know…

Yep, I did that thee times over. which Is why I spent time on the trace.

@peterc let’s start from first step. Please upload basic sketch (without any changes) + enable debug. What does serial output shows?

Thanks for your offer but if you could just confirm that I’m looking for a ‘connect’ followed by an ‘initialise’ then a ‘ready’ in the serial monitor if it connects successfully. That would be useful information.

Also could you please also confirm that the leading digit on the ip address 0.x.y.z is a bug that can be ignored.

I added a LED and series resistor (1k) to D8 and tried to switch this using the Blynck app. No Joy.
Without the serial monitor showing a ready or initialised rather than repeating connect then I wasnt really hopeful anyway. I’m going to try a few more things but thanks for all the feedback so far.