Device Not Online (Connecting Arduino Uno via USB)

I am trying to connect my Arduino Uno with the blynk app via USB on MacOS. When I run blynk-ser.sh script, everything goes smoothly and I see “starting data transfer loop with FDs [5,5] and [8,8]”. But on the app, my device is still not online.

I’ve used this before and it worked like half a year ago, but I can’t really figure out what the problem might be. Can anyone give me some ideas, thanks.

What version of the Blynk library are you using?
What code are you running on the Arduino?
What does the terminal screen say - exactly?

Pete.

I am using Blynk 0.6.1 and I am simply running the ‘Arduino_Serial_USB’ example code. After entering ./blynk-ser.sh and typing in the specific port name, I get this:

1 ports found. You can specify port manually using -c option

Select serial port [ /dev/tty.usbserial-DN035N1P ]: /dev/tty.usbserial-DN035N1P

Resetting device /dev/tty.usbserial-DN035N1P...

[ Press Ctrl+C to exit ]

Connecting: GOPEN:/dev/tty.usbserial-DN035N1P,raw,echo=0,clocal=1,cs8,nonblock=1,ixoff=0,ixon=0,ispeed=9600,ospeed=9600,crtscts=0 <-> openssl-connect:blynk-cloud.com:443,cafile=/Users/jeff/Documents/Arduino/libraries/Blynk/scripts/certs/server.crt,nodelay

2019/05/26 20:31:09 socat[4248] N opening character device "/dev/tty.usbserial-DN035N1P" for reading and writing

2019/05/26 20:31:09 socat[4248] N opening connection to LEN=16 AF=2 188.166.206.43:443

2019/05/26 20:31:10 socat[4248] N successfully connected from local address LEN=16 AF=2 10.0.1.19:51752

2019/05/26 20:31:11 socat[4248] N trusting certificate, commonName matches

2019/05/26 20:31:11 socat[4248] N SSL connection using ECDHE-RSA-AES128-GCM-SHA256

2019/05/26 20:31:11 socat[4248] N SSL connection compression "none"

2019/05/26 20:31:11 socat[4248] N SSL connection expansion "none"

2019/05/26 20:31:11 socat[4248] N starting data transfer loop with FDs [5,5] and [8,8]

I assume that you’ve added your Auth code?
If it’s been a while since you used that Auth code then you might want to refresh it in the app.

Pete.

This is a new project and yes I did update the example code with the new Auth Token. In the App, I also have the project set as Arduino Uno connecting via USB. Would it be a problem occurring on the APP end, since smoothly running blynk-ser.sh means Arduino is connected to the Blynk Cloud?

I use a Windows PC, so I am unsure if what I see means “smoothly running” or not :stuck_out_tongue: but as long as it is, and you keep that window open! then the device should be properly connected to the server.

In some windows situations I have seen the antivirus/firewall blocking proper operation of the USB link… worth checking out.

That really only determines the pinouts available in the widget settings… you could just as easily have it set for RPi and ethernet and it would still connect (well, assuming whatever is blocking your connection is removed).

When in doubt, refresh the Auth in the app again and reflash that new, new auth in the device code. Also stop and restart the script and confirm that it is set to the correct com port of the device.

I tried removing all firewall on my Mac but nothing seems to change. I have also refreshed and restarted everything I could think of (the computer, auth code, script, etc etc) and still no connection to the app. Is there anything wrong in following terminal response? If there isn’t, then is there a way I can check if that my iPhone is blocking any incoming data? Thank you.

./blynk-ser.sh
1 ports found. You can specify port manually using -c option
Select serial port [ /dev/tty.usbserial-DN035N1P ]: /dev/tty.usbserial-DN035N1P
Resetting device /dev/tty.usbserial-DN035N1P...
[ Press Ctrl+C to exit ]
Connecting: GOPEN:/dev/tty.usbserial-DN035N1P,raw,echo=0,clocal=1,cs8,nonblock=1,ixoff=0,ixon=0,ispeed=9600,ospeed=9600,crtscts=0 <-> openssl-connect:blynk-cloud.com:443,cafile=/Users/jeff/Documents/Arduino/libraries/Blynk/scripts/certs/server.crt,nodelay
2019/05/30 21:09:50 socat[39596] N opening character device "/dev/tty.usbserial-DN035N1P" for reading and writing
2019/05/30 21:09:50 socat[39596] N opening connection to LEN=16 AF=2 188.166.206.43:443
2019/05/30 21:09:50 socat[39596] N successfully connected from local address LEN=16 AF=2 10.0.1.19:63503
2019/05/30 21:09:50 socat[39596] N trusting certificate, commonName matches
2019/05/30 21:09:50 socat[39596] N SSL connection using ECDHE-RSA-AES128-GCM-SHA256
2019/05/30 21:09:50 socat[39596] N SSL connection compression "none"
2019/05/30 21:09:50 socat[39596] N SSL connection expansion "none"
2019/05/30 21:09:50 socat[39596] N starting data transfer loop with FDs [5,5] and [8,8]