Hi folks,
I'm using Ethernet Library included with Arduino-0022 and am having trouble with specification of the IP for the Ethernet Interface. The Arduino Ethernet Shield is the updated microSD version. Platform is MEGA
The problem is that I'm not able to correctly specify an IP with 0 as the 3rd octet. When I specify 192.168.1.xyz there is no problem, whatever number I use for xyz is configured correctly when I upload the sketch.
When I specify 192,168.0.xyz, the number used as xyz is configured as 0.
So for example in the code below 192.168. 0.10
Is configured as 192.168.0.0
Here are the relevant portions of the code:
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
#include <Ethernet.h>
#define SLAVE 0x01
const byte gateway[] = { 192, 168, 0, 1 };
const byte mac[] = { 0xDE, 0xAD, 0xBE, 0xf6, 0x33, 0x66 };
const byte ip[] = { 192, 168, 0,10}; // Arduino has this IP
“”””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
This is what I get back in serial monitor:
“””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””””
Avail. mem: 77.87%
Configuring Ethernet interface: IP: 192.168.0.0.
Server started on port 502
ACK error 1
ACK error 1
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
I'm not able to ping 192.168. 0.10
I'm not aware what the ACK errors refer to.
Everything works fine when the the 3rd octet is 1, but the network I'm tying in to uses 0.
I've tried and retried and keep getting 0 for the 4th octet. Any suggestions much appreciated.