| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| ciccioc74 
 
 
 Joined: 23 Mar 2010
 Posts: 45
 
 
 
			        
 
 | 
			
				| txt file transfer over FTP with gprs |  
				|  Posted: Tue Nov 06, 2012 8:30 am |   |  
				| 
 |  
				| 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: 45
 
 
 
			        
 
 | 
			
				| does append is the solution? |  
				|  Posted: Tue Nov 06, 2012 9:35 am |   |  
				| 
 |  
				|  	  | 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
  |  | 
	
		|  | 
	
		| ciccioc74 
 
 
 Joined: 23 Mar 2010
 Posts: 45
 
 
 
			        
 
 | 
			
				|  |  
				|  Posted: Tue Nov 06, 2012 10:09 am |   |  
				| 
 |  
				| no. 
   Syntax
 
 append LocalFile [RemoteFile]
 |  | 
	
		|  | 
	
		| ciccioc74 
 
 
 Joined: 23 Mar 2010
 Posts: 45
 
 
 
			        
 
 | 
			
				| solution... |  
				|  Posted: Tue Nov 06, 2012 10:40 am |   |  
				| 
 |  
				|   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: 1074
 Location: Panama
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Tue Nov 06, 2012 10:48 am |   |  
				| 
 |  
				| 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: 45
 
 
 
			        
 
 | 
			
				|  |  
				|  Posted: Tue Nov 06, 2012 10:55 am |   |  
				| 
 |  
				| 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
 
 
			    
 
 | 
			
				|  |  
				|  Posted: Fri Nov 09, 2012 12:30 am |   |  
				| 
 |  
				| 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: 45
 
 
 
			        
 
 | 
			
				|  |  
				|  Posted: Fri Nov 09, 2012 1:49 am |   |  
				| 
 |  
				| Tks |  | 
	
		|  | 
	
		| ciccioc74 
 
 
 Joined: 23 Mar 2010
 Posts: 45
 
 
 
			        
 
 | 
			
				|  |  
				|  Posted: Sat Nov 17, 2012 9:39 am |   |  
				| 
 |  
				| I use a sim908. Great module and cheap. |  | 
	
		|  | 
	
		|  |