CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Problem with run ex_st_webserver2.c

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Requan



Joined: 11 May 2008
Posts: 74

View user's profile Send private message

Problem with run ex_st_webserver2.c
PostPosted: Thu Dec 04, 2014 8:08 am     Reply with quote

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
Requan



Joined: 11 May 2008
Posts: 74

View user's profile Send private message

PostPosted: Wed Dec 10, 2014 2:36 am     Reply with quote

Problem solved - I used CCS bat file to transfer bin by TFTP and start working.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group