# File Creation Using OpenAT?

**URL:** <https://forum.sierrawireless.com/t/file-creation-using-openat/3232>\
**Category:** Legacy AirPrime modules\
**Created:** [May 13, 2009, 1:18pm UTC](https://forum.sierrawireless.com/t/file-creation-using-openat/3232 "2009-05-13T13:18:46Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![aravind](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@aravind](https://forum.sierrawireless.com/u/aravind)\
**Post date:** [May 13, 2009, 1:18pm UTC](https://forum.sierrawireless.com/t/file-creation-using-openat/3232/1 "2009-05-13T13:18:46Z")

</div>

Iam new to Wavecom programming,  
Iam having following queries regarding Wavecom programming,  
Is it possible to creates Files(.txt/.dat) inside Wavecom memory?  
My purpose is to create some text file and send the files using FTP.  
Could any one send Code snippets/Tutorials related to File management in Wavecom  
Thanks in advance,  
Aravind

---

<div class="post-metadata">

**Author:** ![Madouc](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Madouc](https://forum.sierrawireless.com/u/Madouc)\
**Post date:** [May 13, 2009, 3:23pm UTC](https://forum.sierrawireless.com/t/file-creation-using-openat/3232/2 "2009-05-13T15:23:55Z")

</div>

isn’t a file just like any other (serialized) data?  
you can just connect to an ftp server, tell it you want to save a file, and send the data, terminated by the appropriate termination strings.

---

<div class="post-metadata">

**Author:** ![aravind](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@aravind](https://forum.sierrawireless.com/u/aravind)\
**Post date:** [May 14, 2009, 5:00am UTC](https://forum.sierrawireless.com/t/file-creation-using-openat/3232/3 "2009-05-14T05:00:58Z")

</div>

Thanks for the reply,  
iam studying the features Q24 chip,  
I will briefly explain the purpose  
I want to save the Recieved sms as text file in wavecom memory and send those files to remote server using FTP  
For this how to access Wavecom memory,and create a text file in Wavecom flash(32MB)  
Does all ANSI C commands Work on Wavecom OpenAT OS?  
Please Help,  
Thanks ,  
Aravind

---

<div class="post-metadata">

**Author:** ![Madouc](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Madouc](https://forum.sierrawireless.com/u/Madouc)\
**Post date:** [May 14, 2009, 5:55am UTC](https://forum.sierrawireless.com/t/file-creation-using-openat/3232/4 "2009-05-14T05:55:07Z")

</div>

do you intend to store them in the flash memory and send somthing like a daily ‘digest’, of do you just want to ‘forward’ them to the ftp server?  
if you send them to the ftp server using the ‘ascii’ mode, you just send the content of the sms to the ftp server and the server saves that in the appropriate way.  
(see this [wikipedia page](http://en.wikipedia.org/wiki/File_Transfer_Protocol#Data_format) on ftp)

You don’t need to save it as a ‘file’ in the local memory. there’s no filesystem inside the wavecom module.  
You can look at the Aplication and Data Storage Service in the adl documentation

---

<div class="post-metadata">

**Author:** ![aravind](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@aravind](https://forum.sierrawireless.com/u/aravind)\
**Post date:** [May 14, 2009, 6:13am UTC](https://forum.sierrawireless.com/t/file-creation-using-openat/3232/5 "2009-05-14T06:13:32Z")

</div>

Thanks for the Reply,

> [@Madouc](#):
>
> do you intend to store them in the flash memory and send somthing like a daily ‘digest’, of do you just want to ‘forward’ them to the ftp server?  
> if you send them to the ftp server using the ‘ascii’ mode, you just send the content of the sms to the ftp server and the server saves that in the appropriate way.  
> (see this [wikipedia page](http://en.wikipedia.org/wiki/File_Transfer_Protocol#Data_format) on ftp)
> 
> You don’t need to save it as a ‘file’ in the local memory. there’s no filesystem inside the wavecom module.  
> You can look at the Aplication and Data Storage Service in the adl documentation

For my Application I need to store data (as .txt ) in Flash memory,basically like a event log ,can it be done? ,later i will do FTP to Server  
I went through the link ,understood FTP.

> [@](#):
>
> there’s no filesystem inside the wavecom module

could you please make this clear

Aravind

---

<div class="post-metadata">

**Author:** ![Madouc](https://avatars.discourse-cdn.com/v4/letter/m/b782af/32.png) [@Madouc](https://forum.sierrawireless.com/u/Madouc)\
**Post date:** [May 14, 2009, 6:26am UTC](https://forum.sierrawireless.com/t/file-creation-using-openat/3232/6 "2009-05-14T06:26:27Z")

</div>

By "as ‘.txt’ " you mean ‘plain text’ i presume.  
plain text is basicly a long string, and that’s hou you would store it in the memory.

something like ‘.txt’ only has a meaning in a filesystem.

in the wavecom module, you would request a handle to the memory, append your new sms to the contents of the memory, and close the handle  
actually pretty similar to how you handle a file.  
The exact details of how to append something to this memory is something that i do not know, but there are others around here that undoubtly do.  
Also if you look at the documentation, surely you can figure out how to do it.

---

<div class="post-metadata">

**Author:** ![aravind](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@aravind](https://forum.sierrawireless.com/u/aravind)\
**Post date:** [May 14, 2009, 6:49am UTC](https://forum.sierrawireless.com/t/file-creation-using-openat/3232/7 "2009-05-14T06:49:08Z")

</div>

> [@Madouc](#):
>
> By "as ‘.txt’ " you mean ‘plain text’ i presume.  
> plain text is basicly a long string, and that’s hou you would store it in the memory.
> 
> something like ‘.txt’ only has a meaning in a filesystem.
> 
> in the wavecom module, you would request a handle to the memory, append your new sms to the contents of the memory, and close the handle  
> actually pretty similar to how you handle a file.  
> The exact details of how to append something to this memory is something that i do not know, but there are others around here that undoubtly do.  
> Also if you look at the documentation, surely you can figure out how to do it.

Thanks for the mail ,  
I went through ADL Documentation  
So we can make use of handle to do read write operation instead of text files.  
Please correct me if iam wrong,  
Any other alternative?  
Thanks again  
Aravind

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [May 14, 2009, 7:07am UTC](https://forum.sierrawireless.com/t/file-creation-using-openat/3232/8 "2009-05-14T07:07:43Z")

</div>

The trouble with posting the same question in two different places is that you get two disjointed sets of answers to the same question!

See: [viewtopic.php?f=3&t=3485&p=13222#p13222](http://www.wavecom.com/modules/movie/scenes/forums/viewtopic.php?f=3&t=3485&p=13222#p13222)

If you are going to “cross-post”, please be sure to say that you’ve done it, and provide links between them!

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [May 14, 2009, 7:10am UTC](https://forum.sierrawireless.com/t/file-creation-using-openat/3232/9 "2009-05-14T07:10:41Z")

</div>

> [@aravind](#):
>
> I want to save the Recieved sms as text file in wavecom memory and send those files to remote server using FTP

Is there any particular reason for using a modem to do this?

If it’s for a genuine commercial application, you would probably be far better off to use an SMS gateway service…

---

<div class="post-metadata">

**Author:** ![aravind](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@aravind](https://forum.sierrawireless.com/u/aravind)\
**Post date:** [May 14, 2009, 7:17am UTC](https://forum.sierrawireless.com/t/file-creation-using-openat/3232/10 "2009-05-14T07:17:15Z")

</div>

> [@awneil](#):
>
> > [@aravind](#):
> >
> > I want to save the Recieved sms as text file in wavecom memory and send those files to remote server using FTP
> 
> Is there any particular reason for using a modem to do this?
> 
> If it’s for a genuine commercial application, you would probably be far better off to use an SMS gateway service…

We are planning to use modem for sending/recieving SMS and do some actions,GPRS,FTP,Storing text files etc.

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [May 14, 2009, 8:35am UTC](https://forum.sierrawireless.com/t/file-creation-using-openat/3232/11 "2009-05-14T08:35:02Z")

</div>

> [@aravind](#):
>
> We are planning to use modem for sending/recieving SMS and do some actions,GPRS,FTP,Storing text files etc.

But do you actually need to use a modem?

Everything you mentioned (SMS, FTP) can be done over a standard internet connection - rather than GPRS

And files will certainly be easier on a PC (or similar) than on any kind of embedded device…

---

<div class="post-metadata">

**Author:** ![aravind](https://avatars.discourse-cdn.com/v4/letter/a/e8c25b/32.png) [@aravind](https://forum.sierrawireless.com/u/aravind)\
**Post date:** [May 14, 2009, 9:13am UTC](https://forum.sierrawireless.com/t/file-creation-using-openat/3232/12 "2009-05-14T09:13:29Z")

</div>

> [@awneil](#):
>
> > [@aravind](#):
> >
> > We are planning to use modem for sending/recieving SMS and do some actions,GPRS,FTP,Storing text files etc.
> 
> But do you actually need to use a modem?
> 
> Everything you mentioned (SMS, FTP) can be done over a standard internet connection - rather than GPRS
> 
> And files will certainly be easier on a PC (or similar) than on any kind of embedded device…

We are developing a tracking Application ,hence modem will not be connected to PC.
