I get an error with your startethernet
could you help me
Arduino: 1.5.3 (Windows 7), Board: "Intel® Galileo"
StartEthernet.ino: In function 'void setup()':
StartEthernet.ino:15:40: error: invalid operands of types 'void' and 'int' to binary 'operator=='
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
In "arduino-1.5.3/reference/EthernetBegin.html" it states:
The DHCP version of this function, Ethernet.begin(mac), returns an int: 1 on a successful DHCP connection, 0 on failure. The other versions don't return anything.
So, "if (Ethernet.begin(mac,ip) == 0)" isn't valid. Clay, did this compile for you?
This does not seem to work for me. I get
Attempting to start Ethernet
Your IP address: 255.255.255.255
I tried changing the MAC address to the one printed on the ethernet connector on my board and I see nothing. I get no response to a ping at the IP address in the sketch and the DHCP server on my network does not show that it has given out an IP address to anything new. Any suggestions? I have ordered a serial cable but am eager to proceed!
Answered my own question. The I was using an ethernet cable that was not plugged into my switch :} When I plugged it in it worked. Now to figure out why it isn't booting from the SD card so I can get ssh. It am able to connect by starting telnet as suggested in another post:
Hi, I am now booting Galileo via the SD card - However, the DHCP is choosing the IP address to be 192.168.1.23
Here's the boot log -
Once booted I tried to override the ip address with StartEthernet program that you have attached and want to change the IP address to a static one - But it still retains the original 192.168.1.23 address every time it boots
Probably there is a Linux way of doing it - but I just want to know why the sketch way of doing it doesn't work
Use the LAN connection direct to your PC (via SSH).
- You will need an Ethernet cable to connect to your PC.
- By default Galileo does not start the LAN connection, but you can use an Arduino sketch to start the LAN connection.
- see attached file
- You will need to give the Galileo and your PC a static IP address.
- Once the network connection is established you can use Putty or your favorite SSH client software.
Note: you don't need to configure a static IP address on your PC, see: Using Galileo Linux over Ethernet(Telnet)