Requan
Joined: 11 May 2008 Posts: 74
|
Problem with run ex_st_webserver2.c |
Posted: Thu Dec 04, 2014 8:08 am |
|
|
Hi,
I tried to run ex_st_webserver2.c.
I have the newest library (2014-09-15_tcpip) and the newest CCS (5.032).
I work on CCS 18f67j60 Ethernet board, so i set up:
Code: | #define STACK_USE_CCS_PICEEC 1 //18f67j60 |
I connect board to router and router to PC.
Router see webserver, on LCD board i see dhcp IP: 192.168.100.190.
On UART i get info from board:
Code: |
{0D}{0A}{0A}CCS TCP/IP TUTORIAL, CCS HTTP2 SERVER{0D}{0A}{0D}{0A}{0A}CCS CGI Example{0D}{0A}WaitingMAC Linked: FALSE{0D}{0A}MAC Address: 00:02:03:04:05:06{0D}{0A}DHCP Enabled: TRUE Bound: FALSE{0D}{0A}IP Address: 0.0.0.0 Netmask: 255.255.255.0{0D}{0A}Gateway: 192.168.100.1 DNS: 192.168.100.1{0D}{0A}HTTP 'admin' password: {0D}{0A}{0D}{0A}C) Config TCP/IP H) HTTP password{0D}{0A}Z) Reset EEPROM {0D}{0A} |
, so i type in Browser: 192.168.100.190 and get message: 500 Error.
It is means problem with server.
Ping is ok:
Code: | C:\>ping 192.168.100.190
Pinging 192.168.100.190 with 32 bytes of data:
Reply from 192.168.100.190: bytes=32 time=5ms TTL=100
Reply from 192.168.100.190: bytes=32 time=2ms TTL=100
Reply from 192.168.100.190: bytes=32 time=2ms TTL=100
Reply from 192.168.100.190: bytes=32 time=2ms TTL=100
Ping statistics for 192.168.100.190:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 2ms, Maximum = 5ms, Average = 2ms |
Could You tell me where can be problem?
P.S.
I disable DHCP by comment a line in TCPIP_CONFIG.H:
Code: | #define STACK_USE_DHCP_CLIENT |
connect board to PC - i get also error 500 |
|