Cannot connect arduino with WIFI-Shield to Cayenne


#1

Hey,
I have an arduino uno and a wifi-shield.
[0] [0] Connecting to passath…
[10001] My IP: 10.0.0.5
[10001] Connecting to arduino.mydevices.com:8442
[21013] Connecting to arduino.mydevices.com:8442
[31016] Connecting to arduino.mydevices.com:8442
[41018] Connecting to arduino.mydevices.com:8442
[51020] Connecting to arduino.mydevices.com:8442
[61023] Connecting to arduino.mydevices.com:8442
[71026] Connecting to arduino.mydevices.com:8442
[81028] Connecting to arduino.mydevices.com:8442
[92030] Connecting to arduino.mydevices.com:8442
[102034] Connecting to arduino.mydevices.com:8442
[112036] Connecting to arduino.mydevices.com:8442
[122038] Connecting to arduino.mydevices.com:8442
[132040] Connecting to arduino.mydevices.com:8442
[142042] Connecting to arduino.mydevices.com:8442
[152045] Connecting to arduino.mydevices.com:8442
[164047] Connecting to arduino.mydevices.com:8442
[174049] Connecting to arduino.mydevices.com:8442
[184051] Connecting to arduino.mydevices.com:8442
[194053] Connecting to arduino.mydevices.com:8442
[204056] Connecting to arduino.mydevices.com:8442
[214059] Connecting to arduino.mydevices.com:8442
[224061] Connecting to arduino.mydevices.com:8442
[235064] Connecting to arduino.mydevices.com:8442
[245066] Connecting to arduino.mydevices.com:8442
[255069] Connecting to arduino.mydevices.com:8442
[265072] Connecting to arduino.mydevices.com:8442
[275075] Connecting to arduino.mydevices.com:8442

thats what serial output generates…
what can I do ?
thanks in advance
niki


#2

Welcome to Cayenne!

Are you behind a restrictive firewall such as school or corporate environment? In most cases that’s the issue. If not can you try to ping arduino.mydevices.com from another computer on the network to see if it’s a DNS issue? If you can ping the address try to telnet to the port with another computer on the network (raspberry pi is easiest if you have one). You should see output like this if it succeeds

pi@raspberrypi:~ $ telnet arduino.mydevices.com 8442
Trying 54.86.250.218...
Connected to arduino.mydevices.com.
Escape character is '^]'.

#3

:slight_smile:
I tried the serial connection over usb and it works fine.
i exactly get these results you mentioned above with telnet.
and its the classic wifi should i use with the arduino uno. (but the shield works and connects with the wifi network).
thanks in advance
niki


#4

So are you saying with wireless you are still unable to connect, but with the USB modem you can?


#5

it means with the wifi-shield it does not work.
with serial over usb and cayenne-ser.sh it works well.
see
[ Press Ctrl+C to exit ]
Resetting device /dev/cu.usbmodem1411…
Warning: Server connection may be insecure!
Connecting: GOPEN:/dev/cu.usbmodem1411,raw,echo=0,clocal=1,cs8,nonblock=1,ixoff=0,ixon=0,ispeed=9600,ospeed=9600,crtscts=0 <-> TCP:arduino.mydevices.com:8442,nodelay
2016/09/19 16:47:44 socat[24287] N opening character device “/dev/cu.usbmodem1411” for reading and writing
2016/09/19 16:47:44 socat[24287] N opening connection to LEN=16 AF=2 54.86.250.218:8442
2016/09/19 16:47:44 socat[24287] N successfully connected from local address LEN=16 AF=2 100.78.147.88:52408
2016/09/19 16:47:44 socat[24287] N starting data transfer loop with FDs [5,5] and [8,8]

has it maybe something to do with ssl and old wifi shield ?


#6

What security settings are you using on your access point?


#7

i used different networks. at all the same behavior. and i want to use it in my classes on university (i am teaching on art school and design school). there is no possibilities to change any settings…


#8

Do you know what security the access point is using? We will need to know that to come up with a config to match it. If you don’t know you should be able to just ask the IT Department there.


#9

one system i use is the access point of OS X with a mobile internet stick. so the wifi network is created by the mac. if i connect another pc to this wifinetwork i can access arduino.mydevices.com but not with the arduino with wifi shield in the same network…


#10

See this:


#11

Hi Olab!
what do you mean with “Delete the arduino.mydevices.com:8442 address and substitute it with 54.174.252.197” where i can do this?
Thanks
Luigi


#12

You have to modify the library, see below:


#13

In the library…