[SOLVED] Socat error - cannot connect Arduino Uno via USB

Hi everyone,

first of all, great job! I discovered Blynk a couple of days ago and I managed to get a led blinking in a couple of minutes!

However, yesterday and today I’m experiencing issues connecting my Arduino Uno to the Blynk Cloud using USB cable and blynk-ser.sh on OS X.

I haven’t touched anything and it was working before. It seems that socat cannot establish a connection. The error message is below:

2016/03/17 10:16:30 socat[2875] N starting data transfer loop with FDs [5,5] and [6,6]
2016/03/17 10:16:46 socat[2875] N socket 2 (fd 6) is at EOF
2016/03/17 10:16:47 socat[2875] N exiting with status 0
Reconnecting in 3s...
Connecting: GOPEN:/dev/tty.usbmodem1411,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/*******/Documents/Arduino/libraries/Blynk/scripts/certs/server.crt,nodelay
2016/03/17 10:16:50 socat[2878] N opening character device "/dev/tty.usbmodem1411" for reading and writing
2016/03/17 10:16:50 socat[2878] N opening connection to LEN=16 AF=2 45.55.195.102:8441
2016/03/17 10:16:50 socat[2878] N successfully connected from local address LEN=16 AF=2 10.15.46.20:58797
2016/03/17 10:16:50 socat[2878] N trusting certificate, commonName matches
2016/03/17 10:16:50 socat[2878] N SSL connection using ECDHE-RSA-AES128-GCM-SHA256
2016/03/17 10:16:50 socat[2878] N SSL connection compression "none"
2016/03/17 10:16:50 socat[2878] N SSL connection expansion "none"
2016/03/17 10:16:50 socat[2878] N starting data transfer loop with FDs [5,5] and [6,6]

it will keep saying that and Blynk app won’t find the Arduino.

I’m sure the serial port is correct and I’ve tried in two different Macs with the same result.

Thanks a lot!
pperi

That doesn’t look like an error message to me. The final line states the socat loop is running.

1 Like

Hi Costas,

It does not complain explicitly nor stops running, but it keeps reconnecting continuously and there is no data transfer as the Arduino pins are completely inactive.

A few seconds after that last line, it will reconnect as showed in the first line.

Cheers

So I think socat is fine and you have another issue.

Can we see your Arduino sketch? Do you have the correct token in your sketch?

@pperi hello. Could you please post your code.

It’s working now! There was a problem with the SoftwareSerial pins.

Thanks for the prompt answers.

1 Like