View previous topic :: View next topic |
Author |
Message |
saddy Guest
|
Using 18F4680 to create an FTP server |
Posted: Fri Oct 31, 2008 9:38 am |
|
|
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
|
|
Posted: Fri Oct 31, 2008 10:13 am |
|
|
There's a FTP server example in the TCP-IP PIC example sources, downloadable for licensed CCS C users. |
|
|
saddy Guest
|
|
Posted: Fri Oct 31, 2008 10:20 am |
|
|
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
|
|
Posted: Fri Oct 31, 2008 11:52 am |
|
|
It's an option in the stacktask(), used in the example ex_st_webserver2.c |
|
|
saddy Guest
|
|
Posted: Fri Oct 31, 2008 1:54 pm |
|
|
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
|
|
Posted: Fri Oct 31, 2008 2:00 pm |
|
|
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
|
|
Posted: Fri Oct 31, 2008 4:31 pm |
|
|
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
|
|
Posted: Fri Oct 31, 2008 5:55 pm |
|
|
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
|
|
Posted: Mon Nov 03, 2008 11:16 am |
|
|
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
|
|
Posted: Tue Nov 04, 2008 2:34 pm |
|
|
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
|
|
Posted: Tue Nov 04, 2008 5:40 pm |
|
|
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
|
|
Posted: Tue Nov 04, 2008 5:42 pm |
|
|
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 |
|
|
|