I really need some help here.
Hi guys, I´m having some problems when trying to configure manually the IP address of ex_stwebserver.c and ex_st_webserver2.c examples that come with CCS Embedded Ethernet.
It seems that the webserver examples only work with DHCP enabled.
I tried to change the Lines in code Hardware.h manually.
to my IP addresses. Nothing happened.
----------------------------------------------------------------------
#define MY_DEFAULT_IP_ADDR_BYTE1 192 //IP ADDRESS
#define MY_DEFAULT_IP_ADDR_BYTE2 168 // This unit's IP address.
#define MY_DEFAULT_IP_ADDR_BYTE3 0
#define MY_DEFAULT_IP_ADDR_BYTE4 15
#define MY_DEFAULT_MASK_BYTE1 255 //NETMASK
#define MY_DEFAULT_MASK_BYTE2 255 // Netmask tells the IP / ARP stack which
#define MY_DEFAULT_MASK_BYTE3 255 // IP's are on your local network.
#define MY_DEFAULT_MASK_BYTE4 0
#define MY_DEFAULT_GATE_BYTE1 192 //GATEWAY IP ADDRESS
#define MY_DEFAULT_GATE_BYTE2 168 // Gateway acts as a conduit between two networks.
#define MY_DEFAULT_GATE_BYTE3 0
#define MY_DEFAULT_GATE_BYTE4 1
#if STACK_USE_MAC
#define STACK_USE_DHCP FALSE //for auto resolution of IP address
#define STACK_USE_ARP TRUE //needed to resolve MAC addresses of IP addresses
#define STACK_USE_UDP TRUE //needed for dhcp and announce
#define STACK_USE_ANNOUNCE TRUE //announce our IP periodically to the network
#endif
After these Changes. the LCD output the IP Address of 0.0.0.0 .
And I can´t access the WEbserver.
But If I DEFINE DHCP Enabled in ex_st_Webserver2.c everything comes to normal?
Any Suggestions?
Rodrigo Rios
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Fri Jun 25, 2010 12:59 pm
There are two versions of the hardware.h file in the TCP-IP directory:
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum