I am trying to change from USB to Ethernet shield, for reliability. I removed the USB, plugged in the ethernet, all the pretty lights are flashing. But there is no new IP address on my networked (confirmed with 2 network sniffers and my router's built in utility).
did some googling, and it seems that some ethernet shields need to be programmed to have an IP address?
When I read this link, #2 stuck out at me:
2. Network Settings
The shield must be assigned a MAC address and a fixed IP address using the Ethernet.begin() function. A MAC address is a globally unique identifier for a particular device. Current Ethernet shields come with a sticker indicating the MAC address you should use with them. For older shields without a dedicated MAC address, inventing a random one should work, but don't use the same one for multiple boards. Valid IP addresses depend on the configuration of your network. It is possible to use DHCP to dynamically assign an IP to the shield. Optionally, you can also specify a network gateway and subnet.
This link provides a way to do that, apparently.
Problem is, I'm a noob. How do I do that? My guess would be to close down HS, connect via USB, copy the text from that link into a new sketch and do some library things, and upload things...but I don't know anything beyond that, ie. what to do once that's been done (in terms of switching the board back to the HS sketch that I have now).
anyone want to hold my hand?
did some googling, and it seems that some ethernet shields need to be programmed to have an IP address?
When I read this link, #2 stuck out at me:
2. Network Settings
The shield must be assigned a MAC address and a fixed IP address using the Ethernet.begin() function. A MAC address is a globally unique identifier for a particular device. Current Ethernet shields come with a sticker indicating the MAC address you should use with them. For older shields without a dedicated MAC address, inventing a random one should work, but don't use the same one for multiple boards. Valid IP addresses depend on the configuration of your network. It is possible to use DHCP to dynamically assign an IP to the shield. Optionally, you can also specify a network gateway and subnet.
This link provides a way to do that, apparently.
Problem is, I'm a noob. How do I do that? My guess would be to close down HS, connect via USB, copy the text from that link into a new sketch and do some library things, and upload things...but I don't know anything beyond that, ie. what to do once that's been done (in terms of switching the board back to the HS sketch that I have now).
anyone want to hold my hand?
Comment