Hi, Ive just bought FEZ domino and am attempting to run it with an arduino ethernet shield.
I’ve done the modifications as recommended here and on attempting to run the example webserver gode i get the following exception:
#### Exception System.Exception - 0x00000000 (1) ####
#### Message: Fail[invalid ip,port]
#### GHIElectronics.NETMF.Net.SocketNative::accept [IP: 007f] ####
#### GHIElectronics.NETMF.Net.Sockets.Socket::Accept [IP: 0023] ####
#### MySocketServer::Main [IP: 0085] ####
A first chance exception of type 'System.Exception' occurred in GHIElectronics.NETMF.W5100.dll
An unhandled exception of type 'System.Exception' occurred in GHIElectronics.NETMF.W5100.dll
Additional information: Fail[invalid ip,port]
I get this whether the ethernet cable is connected or not and regardless of what ip/ port combination I supply.
here is some minimal code that can allow you to verify that the shield is working as expected. [url]http://www.tinyclr.com/forum/13/2665/[/url] If you can’t PING the device at that point, then there’s something else wrong.
Hi I’ve just tried that example posted above.
The device still does not respond to ping(I have tried bot direct connection via a crossover cable and through a switch), however, the tx/rx lights blink in sync with the ping requests.
One thing I did notice was that server.LocalEndPoint.ToString() returns 0.0.0.0:0, would this be indicating that it cannot bind to an ip correctly?
The above example works - so that most likely means you have some other issue that’s related to hardware. You did of course change the pin definitions to the actual pins you’re using on your shield, didn’t you??
The TX/RX lights don’t mean much in that context, the wiz5100 chip will do that; I really think you really have a hardware issue. Perhaps you need to confirm you have all the pins connected as you would expect - can you step into a program that just toggles the pins on your shield and measure the voltage with a multimeter, making sure they go to 3v3 when you set them high?
As per modifications I’ve routed the reset pin on the shield to dio pin 9 and ive routed the SPI pins from the ICSP connector on the shield to the appropriate pins on the board.
Network conf and the hardware is definitely ok, I’ve tested the shield on an arduino with the same network settings and it works fine
If so, you probably do not need to reroute the reset to pin Di9.
The problem of the reset had been solved by the manufacturer on this Version of the shield!
The Ethernet Shield shown on the Brochure is an earlier version of the shield.
That version have the problem with the Reset, as mentioned on the Brochure.
As Joe mentioned, if you could show the picture of your Shield, that would help to determine the problem better.
Make sure that you have all the References added, and also make sure that you do not miss any ‘using …’ at the beginning of the code.