Hello,
I have a MacBook Pro and an android phone and I have been trying to use blynk to control an arduino project over serial usb. I follow all directions found here
http://docs.blynk.cc/#hardware-set-ups-arduino-over-usb-no-shield
but when I type my serial port into terminal it connects but then it immediately says “socket closed by peer”.
Jeffrey-Thogmartins-MacBook-Pro:~ jeffthogmartin$ cd /Users/jeffthogmartin/Documents/Arduino/libraries/Blynk/scripts
Jeffrey-Thogmartins-MacBook-Pro:scripts jeffthogmartin$ ./blynk-ser.sh -c /dev/cu.usbmodem411 -b 9600 -s blynk-cloud.com -p 8442
Resetting device /dev/cu.usbmodem411…
[ Press Ctrl+C to exit ]
Connecting: GOPEN:/dev/cu.usbmodem411,raw,echo=0,clocal=1,cs8,nonblock=1,ixoff=0,ixon=0,ispeed=9600,ospeed=9600,crtscts=0 <-> openssl-connect:blynk-cloud.com:8442,cafile=/Users/jeffthogmartin/Documents/Arduino/libraries/Blynk/scripts/certs/server.crt,nodelay
2017/02/26 19:23:50 socat[20282] N opening character device “/dev/cu.usbmodem411” for reading and writing
2017/02/26 19:23:50 socat[20282] N opening connection to LEN=16 AF=2 45.55.96.146:8442
2017/02/26 19:23:50 socat[20282] N successfully connected from local address LEN=16 AF=2 192.168.0.18:57268
2017/02/26 19:23:50 socat[20282] E SSL_connect(): socket closed by peer
2017/02/26 19:23:50 socat[20282] N exit(1)
Reconnecting in 3s…
Can anyone help? I am in a little over my head with this but I have been trying desperately to get it to work. I have tried googling what socket closed by peer means and trying all the fixes for that but nothing is seeming to work. I feel like a firewall or something may be blocking the connection to the server, so i turned my firewall off and it still didn’t work. I don’t know If my guesses are even close to being the actual problem. Please Help!!! and Thank you in advance.
-Jeff