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

txt file transfer over FTP with gprs

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



Joined: 23 Mar 2010
Posts: 30

View user's profile Send private message Visit poster's website MSN Messenger

txt file transfer over FTP with gprs
PostPosted: Tue Nov 06, 2012 8:30 am     Reply with quote

Hello everyone! For several days, look for a solution to my problem. I did an FTP Through a GPRS module. I opened the channel for commands and one for data. I created a directory and now I have to transfer a txt file. How do I create a file in RAM without using the library fat.ce mmcsc.c? I could create an array and as the last character EOF. But where to put the file name?
ciccioc74



Joined: 23 Mar 2010
Posts: 30

View user's profile Send private message Visit poster's website MSN Messenger

does append is the solution?
PostPosted: Tue Nov 06, 2012 9:35 am     Reply with quote

Quote:
APPEND (with create) (APPE)

This command causes the server-DTP to accept the data
transferred via the data connection and to store the data in
a file at the server site. If the file specified in the
pathname exists at the server site, then the data shall be
appended to that file; otherwise the file specified in the
pathname shall be created at the server site.

from the specs of ftp
so i use the filesistem of server....
I try Question
ciccioc74



Joined: 23 Mar 2010
Posts: 30

View user's profile Send private message Visit poster's website MSN Messenger

PostPosted: Tue Nov 06, 2012 10:09 am     Reply with quote

no.
Mad
Syntax

append LocalFile [RemoteFile]
ciccioc74



Joined: 23 Mar 2010
Posts: 30

View user's profile Send private message Visit poster's website MSN Messenger

solution...
PostPosted: Tue Nov 06, 2012 10:40 am     Reply with quote

Idea
I send a command "append" with a file name that does not exist (eg utc time) followed by the coordinates. It sucks but I put all the files to a directory whose name is the coordinate. In this way, only use the channel "commands"
Gabriel



Joined: 03 Aug 2009
Posts: 1067
Location: Panama

View user's profile Send private message

PostPosted: Tue Nov 06, 2012 10:48 am     Reply with quote

I think everyone fails to see the connection to CCS, and thus there is no response to your query.
_________________
CCS PCM 5.078 & CCS PCH 5.093
ciccioc74



Joined: 23 Mar 2010
Posts: 30

View user's profile Send private message Visit poster's website MSN Messenger

PostPosted: Tue Nov 06, 2012 10:55 am     Reply with quote

Question:
in CCS how do I send a file "Text1.txt" from the pic 18lf46k80 to the server with ftp? the command is:
Code:
 fputs ("AT + CIPSEND = 0", GSM) / / send at command to prepare the server
fputs ("STOR test01.txt" GSM);/ / send the file to the server.

I would like to create a file in RAM and send it.
ckielstra



Joined: 18 Mar 2004
Posts: 3680
Location: The Netherlands

View user's profile Send private message

PostPosted: Fri Nov 09, 2012 12:30 am     Reply with quote

Even when you put the CCS name in the question, it still isn't a question related to the compiler but a generic programming question or perhaps a question for the GPRS module.

I think you are searching in the wrong direction. For creating the file you only have to transmit what is 'in' the file. you don't need libraries like fat.c or mmc.c because the server will take care of storing the data on a physical medium.

On this forum people people do discuss embedded hardware related issues but response rate may be low. Tip: search the internet for "sipsend". Many from the results find a nice forum that is hardware related, even better, find one for your GPRS module. Also mention which GPRS module you are using.
ciccioc74



Joined: 23 Mar 2010
Posts: 30

View user's profile Send private message Visit poster's website MSN Messenger

PostPosted: Fri Nov 09, 2012 1:49 am     Reply with quote

Tks
ciccioc74



Joined: 23 Mar 2010
Posts: 30

View user's profile Send private message Visit poster's website MSN Messenger

PostPosted: Sat Nov 17, 2012 9:39 am     Reply with quote

I use a sim908. Great module and cheap.
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