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

Reconnecting in 3s... (PLEASE HELP)

Hello. I’m trying to connect Arduino to the server but everytime I launch the script this is what happens:

Orion:~ Orion$ bash /Users/Orion/Documents/Arduino/libraries/blynk-library-0.2.2/scripts/blynk-ser.sh 
[ Press Ctrl+C to exit ]
Resetting device /dev/tty.usbmodem621...
Warning: certs/server.crt not found. Skipping server verification (connection may be insecure)!
Connecting: GOPEN:/dev/tty.usbmodem621,raw,echo=0,clocal=1,cs8,nonblock=1,ixoff=0,ixon=0,ispeed=9600,ospeed=9600,crtscts=0 <-> openssl-connect:cloud.blynk.cc:8441,verify=0,nodelay
2015/07/04 18:36:32 socat[886] N opening character device "/dev/tty.usbmodem621" for reading and writing
2015/07/04 18:36:32 socat[886] N opening connection to LEN=16 AF=2 45.55.195.102:8441
2015/07/04 18:36:32 socat[886] N successfully connected from local address LEN=16 AF=2 192.168.1.144:49462
2015/07/04 18:36:32 socat[886] N no check of certificate
2015/07/04 18:36:32 socat[886] N SSL connection using ECDHE-RSA-AES128-GCM-SHA256
2015/07/04 18:36:32 socat[886] N SSL connection compression "none"
2015/07/04 18:36:32 socat[886] N SSL connection expansion "none"
2015/07/04 18:36:32 socat[886] N starting data transfer loop with FDs [3,3] and [4,4]
2015/07/04 18:36:44 socat[886] N socket 2 (fd 4) is at EOF
2015/07/04 18:36:45 socat[886] N inactivity timeout triggered
2015/07/04 18:36:45 socat[886] N exiting with status 0
Reconnecting in 3s...

My Arduino UNO is connected to the port “/dev/tty.usbmodem621” which I specified editing the first part of “blynk-ser.sh”. It also seems it can’t find the certificate even tho beside the “blynk-ser.sh” there’s the folder “certs” with the file “server.crt”.

What am I doing wrong?

Please help!

the script didn’t support to be run like that. See there is a warning like “Warning: certs/server.crt not found. Skipping server verification (connection may be insecure)!”.

you can first “cd” into the scripts folder, and then run it.
Or you can update to the latest master branch - I submitted a fix for that. Hope that works.
Please check and ask new questions if there are some troubles.
Thanks.

Thanks for replying, although I’m a bit confused. You mean I should first run the command "cd /Users/Orion/Documents/Arduino/libraries/blynk-library-0.2.2/scripts" and then run "bash blynk-ser.sh" right? Unfortunately it’s still not working, even if now the warning thing is gone.

What master branch? Where’s your fix?
Sorry but I’m a bit of a newbie.

Ok I get it, I think. I downloaded the latest “blynk-ser.sh” from github but still isn’t working. Please help!

Ok, the next problem is here.
this is a bit stange, actually.
Ok, I tried removing the inactivity timeout. Could you try once again with the latest script?

It’s the same. Here:

Orion:scripts Orion$ bash blynk-ser.sh
[ Press Ctrl+C to exit ]
Resetting device /dev/tty.usbmodem621...
Connecting: GOPEN:/dev/tty.usbmodem621,raw,echo=0,clocal=1,cs8,nonblock=1,ixoff=0,ixon=0,ispeed=9600,ospeed=9600,crtscts=0 <-> openssl-connect:cloud.blynk.cc:8441,cafile=/Users/Orion/Documents/Arduino/libraries/blynk-library-0.2.2/scripts/certs/server.crt,nodelay
2015/07/05 13:02:37 socat[1180] N opening character device "/dev/tty.usbmodem621" for reading and writing
2015/07/05 13:02:37 socat[1180] N opening connection to LEN=16 AF=2 45.55.195.102:8441
2015/07/05 13:02:37 socat[1180] N successfully connected from local address LEN=16 AF=2 192.168.1.163:50150
2015/07/05 13:02:37 socat[1180] N SSL connection using ECDHE-RSA-AES128-GCM-SHA256
2015/07/05 13:02:37 socat[1180] N SSL connection compression "none"
2015/07/05 13:02:37 socat[1180] N SSL connection expansion "none"
2015/07/05 13:02:37 socat[1180] N starting data transfer loop with FDs [3,3] and [4,4]
2015/07/05 13:02:49 socat[1180] N socket 2 (fd 4) is at EOF
2015/07/05 13:02:49 socat[1180] N exiting with status 0
Reconnecting in 3s...

I don’t understand what it could be…

I was recently experiencing same issues. it could be a problem on the server side, or in the library.
It will take some time to investigate. Sorry for inconvenience.

I see. I’ll be waiting for a fix then.
Thank you.

Was this issue ever fixed? I am still experiencing the same problem.

@thermonub yes. In case you are follow exactly step-by-step instruction from sketch you should be fine. If not - please create separate topic with problem description.