Post a new topicPost a reply Page 1 of 1   [ 10 posts ]
Author Message
 Post subject: Store create text file into SD how to!
PostPosted: Sat Jul 07, 2012 11:33 pm 

Joined: Wed Jun 27, 2012 2:28 pm
Posts: 10
Hello again!I would like to ask something else. I'm getting some values from sensors, and i want to store them in txt file.Then i want to save the txt file in 3G-GPS shield SD card!!!

Is there any lib about that??Is there any difference about the way to save photos that you have it in your website??


Thanks again!!!


Top
 Profile  
 
 Post subject: Re: Store create text file into SD how to!
PostPosted: Mon Jul 09, 2012 6:53 am 

Joined: Mon Sep 28, 2009 11:06 am
Posts: 2207
Hello SiRuS,

You can use this modulo to save a file into a SD.

http://www.cooking-hacks.com/index.php/ ... duino.html

The SD card of the 3G shield is not accesible from the SPI pins. If you want to write in the SD of the 3G you should use the Xmodem protocol.

Regards


Top
 Profile  
 
 Post subject: Re: Store create text file into SD how to!
PostPosted: Tue Jul 10, 2012 6:14 pm 

Joined: Wed Jun 27, 2012 2:28 pm
Posts: 10
I don't need the SD card module, because i've got the new 3G-GPS shield which has SD card reader on it.

My problem!Is there any library which can someone can write values in text files as you told me you should store it with xmodem protocol into SD card!!!

Is there any example about it???

Any idea? I've very very confused about this module.I'm reading the documentation again and again but nothing works.

Problem with SMS-GPS and no clear documentation about SD card.

Please help me if you could.
Thanks!


Top
 Profile  
 
 Post subject: Re: Store create text file into SD how to!
PostPosted: Wed Jul 11, 2012 7:48 am 

Joined: Mon Sep 28, 2009 11:06 am
Posts: 2207
Hi SiRus,

The SD Card of 3G module is not for external use. So there is no documentation about it.
It stores data downloaded from the 3G module (video, email, ...).

If you want to write in the SD of the 3G you should implement your own function using the Xmodem protocol.

The section 15 of the manual (15 File Transmission Related Commands) shows you how to transmit files to the SD of the module using the Xmodem protocol.

http://www.cooking-hacks.com/skin/front ... manual.pdf

If you have any question about SMS-GPS we will answer all your questions.

Regards


Top
 Profile  
 
 Post subject: Re: Store create text file into SD how to!
PostPosted: Fri Jul 13, 2012 12:14 am 

Joined: Wed Jun 27, 2012 2:28 pm
Posts: 10
Ok as for the part of file store into the SD card.But how can i write these values in txt files in order to set the save location??

Do you know any library about it???

That's the biggest problem!!!

Thanks


Top
 Profile  
 
 Post subject: Re: Store create text file into SD how to!
PostPosted: Fri Jul 13, 2012 11:07 am 

Joined: Mon Sep 28, 2009 11:06 am
Posts: 2207
Hello SiRuS:

The file will save in current directory of the module. TO send the files to the 3G module ( or the SD) you need to use the Xmodem protocol.

Regards


Top
 Profile  
 
 Post subject: Re: Store create text file into SD how to!
PostPosted: Sun Jul 15, 2012 9:36 am 

Joined: Wed Jun 27, 2012 2:28 pm
Posts: 10
I don't understan again sir.As for the part of file transmition OK. But is there any library which someone can write into the text file??

Have you got an example about it? I have never use the 3G-GPS module again and i'm very confused.

Can you give me an small piece example source code?

Thanks!


Top
 Profile  
 
 Post subject: Re: Store create text file into SD how to!
PostPosted: Mon Jul 16, 2012 8:14 am 

Joined: Mon Sep 28, 2009 11:06 am
Posts: 2207
Hi SiRuS

Is not possible to write a file in the SD card of 3G module from the Arduino, because there is no library implementation. This SD is used by the module for storing data downloads. For storing your files you could use an Arduino SD module, as we said to you in a previous post.

For writing in the SD card of 3G module, you could research about the Xmodem protocol.

Regards


Top
 Profile  
 
 Post subject: Re: Store create text file into SD how to!
PostPosted: Tue Oct 23, 2012 1:19 pm 

Joined: Tue Oct 02, 2012 3:50 pm
Posts: 9
Hi there,

First of all, let me say that feel a little bit disappointed because I have bought you equipment that doesn’t have libraries to support some basic functionalities (or features) like this one. Are you planning to have this implementation?

Said this, let me ask you something: Assuming that I’m able to attach a SD shield to the 3G module + UNO, will I be able to transfer a file, stored into my SD shield, to the 3G module’s SD card (To be later sent via FTP or other method)???

Thanks for your support!
Best regards,

Bernardo


Top
 Profile  
 
 Post subject: Re: Store create text file into SD how to!
PostPosted: Wed Oct 24, 2012 7:43 am 

Joined: Mon Sep 28, 2009 11:06 am
Posts: 2207
Hi jiber,

The module supports file transmission between the Module and host over Xmodem protocol, and
the transmission is bidirectional using AT+CTXFILE or AT+CRXFILE.

Description

The command is used to select a file which is transmitted from the module to CPU host or received from CPU host to file system of module. If available memory is not enough, file transmission will fail.

libelium_files/ACTXFILE

libelium_files/parameter1

libelium_files/parameter2
Example

libelium_files/example

For more information please see the manual of the module.

Best regards.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 10 posts ]


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

Search for:
cron


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Libelium theme based on 610nm Style by Daniel St. Jules of http://www.gamexe.net


© Libelium Comunicaciones Distribuidas S.L. | Terms of use