Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Problem with Arduino ethernet shield


  • Please log in to reply
7 replies to this topic

#1 Eduardo

Eduardo

    Member

  • Members
  • PipPip
  • 22 posts
  • LocationSo Paulo, Brasil

Posted 01 September 2011 - 11:38 PM

Could someone help me find where I am wrong?
I connected the shield in netduino, and the shield to my laptop (or router), but the program, in debug, reach the first line:

SecretLabs.NETMF.Net.Wiznet5100 wiznet = new SecretLabs.NETMF.Net.Wiznet5100(SPI.SPI_module.SPI1, Pins.GPIO_PIN_D10);


but does not reach the second:

NetworkInterface networkInterface = NetworkInterface.GetAllNetworkInterfaces()[0];

Project attached.

Attached Files


O coração tem razões que a própria razão desconhece.

#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 01 September 2011 - 11:49 PM

Hi Eduardo, If you press the pause button in Visual Studio, what line of code is it stuck on? Also, more importantly...do you have your Netduino plugged in via the power barrel? I believe that the Arduino Ethernet Shield needs external power to operate (i.e. will not power off of USB). Chris

#3 Earthed

Earthed

    Member

  • Members
  • PipPip
  • 20 posts
  • LocationAustralia

Posted 02 September 2011 - 12:26 AM

One thing to be careful of in all shields is: + Arduino shields are designed for 5.0Vdc + Netduino is 3.3Vdc ask the Manufacturer if it works on netduino before you buy (I made the mistake with the Omilex GM862 Arduino shield, but managed to modify the shield for use with NetduinoPlus - A good shield b.t.w.)

#4 Eduardo

Eduardo

    Member

  • Members
  • PipPip
  • 22 posts
  • LocationSo Paulo, Brasil

Posted 02 September 2011 - 09:26 PM

Hello Chris Walker, this is my shield, I redo the test with Netduino on energy, apparently nothing has changed, with or without the power network and ON LEDs are connected, is it really necessary that I keep the card linked directly to energy ?

I pressed the pause and it appears in different parts of the routine
private byte ReadRegister(UInt16 address)
in class Wiznet5100, as if in a loop.

Hi Earthed, i think my shield work because he is in the driver topic;
O coração tem razões que a própria razão desconhece.

#5 Eduardo

Eduardo

    Member

  • Members
  • PipPip
  • 22 posts
  • LocationSo Paulo, Brasil

Posted 08 September 2011 - 06:17 PM

Reading this post I believe I have found the problem, according to the words of hari:

"You are using the new (revised) Arduino Ethernet Shield. You see those 6 odd headers on the bottom? They need to attach to pins on the Netduino. If you solder a 3x2 "ICSP" header onto your Netduino, you should be good to go. Otherwise, you will not get any response from the shield. Very few shield ever require these optional pins--but that one does."

I'll try to solder the pins of the two plates today. I return to report the result.
O coração tem razões que a própria razão desconhece.

#6 Eduardo

Eduardo

    Member

  • Members
  • PipPip
  • 22 posts
  • LocationSo Paulo, Brasil

Posted 14 September 2011 - 01:21 AM

Attaching the ISCP from netduino to the ethernet shield made me take a step forward, but still can not make a ping, when I ping the light of the ethernet shield RX flashes, but received no response. For this test I used the program from klotz MyFirstWebPage (I reach the code "listenSocket.Listen(1);"), also tried all the mac address indicated by Chris Walker. I'm out of ideas to continue, someone has gone through this?
O coração tem razões que a própria razão desconhece.

#7 Eduardo

Eduardo

    Member

  • Members
  • PipPip
  • 22 posts
  • LocationSo Paulo, Brasil

Posted 15 October 2011 - 03:59 PM

Finally got it! After trying many things (changing the router, cable, and code) I did the only thing left, weld the ISCP again, I do not know what was wrong the first time but now it worked. I would like to thank Hari for put me on track, Earthed and Chris Walker who made suggestions in the post.
O coração tem razões que a própria razão desconhece.

#8 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 15 October 2011 - 09:37 PM

Hi Eduardo, So glad that it's working for you. Thanks for the update! Chris




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.