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 CCS Technical Support

Using 18F4680 to create an FTP server

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







Using 18F4680 to create an FTP server
PostPosted: Fri Oct 31, 2008 9:38 am     Reply with quote

Hey guys,

How can a create an ftp server using 18f4680? Is there any sample code available which can be used to do this?

Thanks

Rumple
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Fri Oct 31, 2008 10:13 am     Reply with quote

There's a FTP server example in the TCP-IP PIC example sources, downloadable for licensed CCS C users.
saddy
Guest







PostPosted: Fri Oct 31, 2008 10:20 am     Reply with quote

What is the example number? I have the TCP/IP program list which I got when I bought the embedded internet kit.
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Fri Oct 31, 2008 11:52 am     Reply with quote

It's an option in the stacktask(), used in the example ex_st_webserver2.c
saddy
Guest







PostPosted: Fri Oct 31, 2008 1:54 pm     Reply with quote

Well the TFTPServerAddr you are talking has not been used in any example, so as I said earlier, is there a working example I can use to refer for my project?

Thanks

Saddy
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Oct 31, 2008 2:00 pm     Reply with quote

Run a text search program such as Examine32 on the CCS TCP-IP
examples directory. Search for: FTP Server
You will get these results:
Code:
c:\program files\picc\tcp-ip\pic examples source\ex_st_webserver2.c
////    Improvement to the TFTP server               ////

c:\program files\picc\tcp-ip\pic examples source\tcpip\ftp.c
SM_FTP           smFTP;          // ftp server FSM state

c:\program files\picc\tcp-ip\pic examples source\tcpip\tftp.c
/// TFTP_PORT - The TCP/IP port the TFTP server will listen to for TFTP

c:\program files\picc\tcp-ip\pic examples source\tcpip\ftp.h
 *              FTP Server Defs for Microchip TCP/IP Stack
saddy
Guest







PostPosted: Fri Oct 31, 2008 4:31 pm     Reply with quote

Thanks PCM,

But I could not find it my folder, is there anyway I can download it from CCS or something?

Saddy
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Fri Oct 31, 2008 5:55 pm     Reply with quote

FvM said this:
Quote:
There's a FTP server example in the TCP-IP PIC example sources, downloadable for licensed CCS C users.


The button for the TCP-IP package is in the bottom right corner of this page:
http://www.ccsinfo.com/compilerupdates.php
You need to have current "maintenance" in effect, to be allowed to
download the files.
saddy
Guest







PostPosted: Mon Nov 03, 2008 11:16 am     Reply with quote

Hi,

I downloaded the example files, but I am still unable to use this, is there a simple example which uses the ftp.c and ftp.h ?

Thanks
Guest_101
Guest







PostPosted: Tue Nov 04, 2008 2:34 pm     Reply with quote

I dont think there is even a documentation on ftp.c and ftp.h . So i think you are on your own.

Best Wishes
meereck



Joined: 09 Nov 2006
Posts: 173

View user's profile Send private message

PostPosted: Tue Nov 04, 2008 5:40 pm     Reply with quote

has anyone written a FTP Client for CCS?
I have a GPRS modem with a TCP/IP stack built, and I am looking for a FTP client library.
cheers
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Nov 04, 2008 5:42 pm     Reply with quote

Quote:
I don't think there is even a documentation on "ftp.c" and "ftp.h".

The CCS driver is based on the Microchip stack. The Microchip appnote
AN833 talks about the "FTP.c" file on page 85. Here's the link:
http://ww1.microchip.com/downloads/en/AppNotes/00833c.pdf
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