Connecting Issue with Arduino uno and Cayenne Via Ethernet Shield W5100


#1

Hi, First I’m setting Ethernet static ip for my laptop is 10.0.0.22. Then I open the cayenne website, After that Choose Arduino board, Then Selecting Arduino Uno, then open the Manual connection, copy and paste it into the Arduino IDE then Flash the code into Arduino board, the Serial monitor shows,

[0] Using static IP
[1300] My IP: 10.0.0.20
[5001] Connecting to arduino.mydevices.com:8442
[10002] Connecting to arduino.mydevices.com:8442

But It didn’t connect to Cayenne. I was struggling to connect arduino to cayenne via Ethernet shield W5100. Please replay me the solution.

Thanks & Regards,
Prasanth S.


#2

Are you able to ping your arduino form your laptop? (To confirm your arduino is functioning on the LAN).

i.e. ping 10.0.0.20 from your laptop.


#3

Ya it’s pinging if only manual connection program is executed…
and It’s not working with Ethernet shield W5100 program.


#4

Something else…

The Ethernet shield WS5100 uses DHCP to provide the arduino with an IP address. Do you have a DHCP server on your network that the arduino will get an address from?


#5

I didn’t install DHCP Server…
Which version do i want to install…


#6

Having a DHCP server on your network is not part of the Arduino setup etc. and is not related to Cayenne - it’s a basic network side item required if you want your network devices to use auto-assigned IPs instead of hard coding IPs for your network devices.


#7

Is there is a need for DHCP server to run the manual Connection program ( That means to Set the
Static IP )


#8

No - the manual connection sketch would not need the DHCP server.


#9

Here is the screen shot of what i did in Manual Connection program execution. But it’s not Connected with Cayenne.
.


#10


#11

You haven;t added your authentication token to your sketch before you upload it to the arduino…

this is your auth. token:


Insert that here:


#12

I tried what u said but it also not working


#13

I’ve run out of ideas then :sob: Everything looks correct.


#14

What is the IP address of your router?

Is it also in the 10.0.0.x range? or is it 192.168.x.y?


#15

No, I’m not connected with Router…
I’m connecting with laptop to Ethernet shield.

My laptop is connected with MTS WiFi network.
and my LAN connection Static IP is fixed by myself.
Static IP is 10.0.0.22
Ethernet shield getting network by sharing form my laptop.


#16

So you have a network cable between your laptop and your arduino?


#17

@prasanthsselvam, I suggest you try another ethernet device on that cable such as another laptop, xbox, etc. This will help you isolate if it is an issue with your Arduino setup, or your Internet Connection Sharing.

Try that, and get back to us if it seems to still be an Arduino/Cayenne issue.

Cheers,

Craig


#18

ICS doesn’t like static IP addresses. Best to set everything to dynamic and let it do it’s thing. Also, try @kreggly suggestion of connecting something else to see if it works.


#19

I have another one doubt…
I can send a code to arduino uno without connect Ethernet shield…
But I cannot send a code to arduino uno with Ethernet shield…
If i send a code with Ethernet shield, Port is often disconnected…
I don’t know, What is the problem…


Arduino can' t connect
#20

You have reminded me of a couple things that have happened to me-

  1. When the shield is installed, make sure the pins from the ethernet socket don’t short out on the USB socket. Made things very hot and did not work, didn’t kill anything, just got warm.

  2. At one point I ordered 3 ethernet shields from Amazon. One of them was DOA, fortunately, I had others to troubleshoot with and was able to quickly sort out the problem. I understand you may not have this option.

Hope this helps,

-Ian


Unable to reach arduino.mydevices.com:8442 - putty advice
Server error