# Download filesfrom a server via GPRS

**URL:** <https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305>\
**Category:** Around the water cooler\
**Created:** [May 8, 2007, 12:46pm UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305 "2007-05-08T12:46:23Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aismail](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@aismail](https://forum.sierrawireless.com/u/aismail)\
**Post date:** [May 8, 2007, 12:46pm UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/1 "2007-05-08T12:46:23Z")

</div>

Hello,

I need to develop an application (using GPRS module) where I can order the module via SMS to connect to a server (via GPRS),and dowload files.

What’s the most cost effective H/W and S/W that I need to buy,in order to build such application. Any idea of how easy it is ? require S/W skills?

Best regards,  
Medhat

---

<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 8, 2007, 1:55pm UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/2 "2007-05-08T13:55:46Z")

</div>

> [@mmahmoud](#):
>
> I need to develop an application (using GPRS module) where I can order the module via SMS to connect to a server (via GPRS),and dowload files.

What file(s) are you going to download?

What are you going to do with them once they’re downloaded?

> [@](#):
>
> What’s the most cost effective H/W and S/W that I need to buy

Asking on a Wavecom forum, you’re bound to get answers biased towards Wavecom!

With Open-AT, you can do this download into the module without requiring any external hardware!

Open-AT development requires - surprise, surprise - the Open-AT Software Development Kit (SDK), obtainable from your local Wavecom distributor.

> [@](#):
>
> Any idea of how easy it is ?

That depends almost entirely upon your level of skill and experience!

It’s not trivial, but shouldn’t be too hard for a competent embedded developer…

> [@](#):
>
> require S/W skills?

Most definitely, yes!

---

<div class="post-metadata">

**Author:** ![aismail](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@aismail](https://forum.sierrawireless.com/u/aismail)\
**Post date:** [May 8, 2007, 6:30pm UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/3 "2007-05-08T18:30:22Z")

</div>

Thanks so much for the quick responses.

The answers to your questions are:  
What Files I will download: Media Files (up to 2-3M) like photos, MPG, …etc.

What I will do with the files :  
A: the downlÃ¶aded files will be sent to external device via Standard Interface like RS232

Can I still do this with wavecome kit ?r

> [@awneil](#):
>
> > [@mmahmoud](#):
> >
> > I need to develop an application (using GPRS module) where I can order the module via SMS to connect to a server (via GPRS),and dowload files.
> 
> What file(s) are you going to download?
> 
> What are you going to do with them once they’re downloaded?
> 
> > [@](#):
> >
> > What’s the most cost effective H/W and S/W that I need to buy
> 
> Asking on a Wavecom forum, you’re bound to get answers biased towards Wavecom!
> 
> With Open-AT, you can do this download into the module without requiring any external hardware!
> 
> Open-AT development requires - surprise, surprise - the Open-AT Software Development Kit (SDK), obtainable from your local Wavecom distributor.
> 
> > [@](#):
> >
> > Any idea of how easy it is ?
> 
> That depends almost entirely upon your level of skill and experience!
> 
> It’s not trivial, but shouldn’t be too hard for a competent embedded developer…
> 
> > [@](#):
> >
> > require S/W skills?
> 
> Most definitely, yes!

---

<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 8, 2007, 9:53pm UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/4 "2007-05-08T21:53:54Z")

</div>

> [@mmahmoud](#):
>
> the downloaded files will be sent to external device

What is the external device?

Does it have the intelligence to manage the downloads (ie, “Pull”),  
or must the modem “Push” the data into the device?

> [@](#):
>
> via Standard Interface like RS232

What do you mean by “like” RS232?  
How does it differ from RS232?  
How is it similar to RS232?

---

<div class="post-metadata">

**Author:** ![aismail](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@aismail](https://forum.sierrawireless.com/u/aismail)\
**Post date:** [May 9, 2007, 4:18pm UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/5 "2007-05-09T16:18:40Z")

</div>

Yes, the external device will have to manage the dowloaded files. However, the modem should have “Push” mechanism to send the files out to the device, anyway.

The interface to the external device is STANDARD RS232, but if there is any recommended better interface that the modem can support, we will look into it as a better alternative

Thanks,

> [@awneil](#):
>
> > [@mmahmoud](#):
> >
> > the downloaded files will be sent to external device
> 
> What is the external device?
> 
> Does it have the intelligence to manage the downloads (ie, “Pull”),  
> or must the modem “Push” the data into the device?
> 
> > [@](#):
> >
> > via Standard Interface like RS232
> 
> What do you mean by “like” RS232?  
> How does it differ from RS232?  
> How is it similar to RS232?

---

<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 9, 2007, 8:16pm UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/6 "2007-05-09T20:16:19Z")

</div>

> [@mmahmoud](#):
>
> Yes, the external device will have to manage the dowloaded files. However, the modem should have “Push” mechanism to send the files out to the device, anyway.

Even if the modem “Pushes” the data to the device, you are going to have to implement some sort of protocol in the device to receive that data, and turn it back into files.

If the device has enough intelligence to manage files, and you’re going to have to write some software on it anyhow to receive the data, then wouldn’t it be just as easy to do the whole lot in the device, and have the modem as just a “dumb” unit?

Your device then just controls the modem using standard AT commands.  
This also means that you’re not locked to Wavecom…

---

<div class="post-metadata">

**Author:** ![aismail](https://avatars.discourse-cdn.com/v4/letter/a/7bcc69/32.png) [@aismail](https://forum.sierrawireless.com/u/aismail)\
**Post date:** [May 10, 2007, 6:23am UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/7 "2007-05-10T06:23:29Z")

</div>

Thanks,

What Type of wavecome modem , do you recomend (most cost effecient) to achieve this. Also, what S/W ( or kit) to buy?

> [@awneil](#):
>
> > [@mmahmoud](#):
> >
> > Yes, the external device will have to manage the dowloaded files. However, the modem should have “Push” mechanism to send the files out to the device, anyway.
> 
> Even if the modem “Pushes” the data to the device, you are going to have to implement some sort of protocol in the device to receive that data, and turn it back into files.
> 
> If the device has enough intelligence to manage files, and you’re going to have to write some software on it anyhow to receive the data, then wouldn’t it be just as easy to do the whole lot in the device, and have the modem as just a “dumb” unit?
> 
> Your device then just controls the modem using standard AT commands.  
> This also means that you’re not locked to Wavecom…

---

<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 10, 2007, 6:44am UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/8 "2007-05-10T06:44:41Z")

</div>

> [@I](#):
>
> wouldn’t it be just as easy to do the whole lot in the device, and have the modem as just a “dumb” unit? … This also means that you’re not locked to Wavecom…

> [@mmahmoud](#):
>
> What Type of wavecome modem , do you recomend (most cost effecient)

That’s the point: if you do the software in your device, then any standard GPRS modem will do!

> [@](#):
>
> Also, what S/W ( or kit) to buy?

Again, if you do the software in your device, then no separate software development is required!

---

<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 10, 2007, 6:47am UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/9 "2007-05-10T06:47:25Z")

</div>

For a standalone modem from Wavecom, use a Fastrack:

Current model: [wavecom.com/modules/movie/sc … aresM1306B](http://www.wavecom.com/modules/movie/scenes/support/index.php?fuseAction=publicArea&rubric=WMPuSupportHardFirmwares&article=WMPuSupportHardFirmwaresM1306B)

Coming soon: [wavecom.com/modules/movie/sc … ackSupreme](http://www.wavecom.com/modules/movie/scenes/support/index.php?fuseAction=publicArea&rubric=WMPuSupportHardFirmwares&article=WMPuSupportHardFirmwaresFastrackSupreme)

---

<div class="post-metadata">

**Author:** ![tatiana](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@tatiana](https://forum.sierrawireless.com/u/tatiana)\
**Post date:** [December 21, 2008, 1:41pm UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/10 "2008-12-21T13:41:49Z")

</div>

Hello guys,

I intend to do almost the same as aismail but i already have the Q2686 Open AT with 6.60 firmware. I would like my modem to visit a webpage (ie [maps.google.com/maps/geo?q=37.94 … utput=JSON](http://maps.google.com/maps/geo?q=37.949713779200465,23.63210678100586&output=JSON)) and get the file given by this location (geo). Is this possible through GPRS? I have written code using adl\_gprssubscribe, adl\_gprssetup, adl\_gprsact and I connect to the internet. But then I cannot figure out how I can go in this address. I know that I have to use fcm functions and especially adl\_fcmsubscribe and adl\_fcmsenddata. I have also read pinggprs sample application, but I cannot understand in which point and how I should give this address and how to handle the file downloaded from there!

Can anyone help me?

Thank you very much!

---

<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:** [December 21, 2008, 2:35pm UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/11 "2008-12-21T14:35:52Z")

</div>

> [@tatiana](#):
>
> I would like my modem to visit a webpage (eg [maps.google.com/maps/geo?q=37.94 … utput=JSON](http://maps.google.com/maps/geo?q=37.949713779200465,23.63210678100586&output=JSON))

That will require an HTTP Client

You can either implement it yourself from scratch, or use the one provided in WIP

> [@](#):
>
> and get the file given by this location (geo).

You will have to determine how it is given - most likely either HTTP (again) or FTP.

If it’s FTP then, again, you will require an FTP Client

> [@](#):
>
> Is this possible through GPRS?

Yes.

> [@](#):
>
> I have written code using adl\_gprssubscribe, adl\_gprssetup, adl\_gprsact and I connect to the internet. But then I cannot figure out how I can go in this address. I know that I have to use fcm functions and especially adl\_fcmsubscribe and adl\_fcmsenddata.

No, you don’t have to use those functions - you can use WIP instead - or even Lua.

If you do use FCM directly, then you are going to have to implement the HTTP (and FTP, or whatever else) clients yourself from scratch - but it doesn’t really sound like you’re equipped for that?

Maybe you should look at WIP instead - or even Lua?

> [@](#):
>
> I have also read pinggprs sample application, but I cannot understand in which point and how I should give this address and how to handle the file downloaded from there!

PING uses yet another different internet protocol!

I think your problem here is not so much with Wavecom or Open-AT as with the basic operation of the internet and its various different protocols…?

---

<div class="post-metadata">

**Author:** ![tatiana](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@tatiana](https://forum.sierrawireless.com/u/tatiana)\
**Post date:** [December 22, 2008, 12:09am UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/12 "2008-12-22T00:09:33Z")

</div>

> [@awneil](#):
>
> I think your problem here is not so much with Wavecom or Open-AT as with the basic operation of the internet and its various different protocols…?

Yes that is true! I am still confused about when using a GPRS connection and when using WIP. For example when sending in a server data packets then GPRS and fcm functions are needed, right? But when accessing internet to download a file then just WIP functions are needed? Please somebody to explain this to me!

Thanks again!

---

<div class="post-metadata">

**Author:** ![blackyblack](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@blackyblack](https://forum.sierrawireless.com/u/blackyblack)\
**Post date:** [December 22, 2008, 6:17am UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/13 "2008-12-22T06:17:36Z")

</div>

tatiana, where are you from?  
You don’t really need to use adl\_gprs functions. But you surely can do it. Moreover you can achieve better robustness for your application using both WIP and ADL functions.  
The same you can say 'bout WIP. You don’t really need to use it. But it is much simpler than ADL functions (well edSoft was even better ☹ )

---

<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:** [December 22, 2008, 7:02am UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/14 "2008-12-22T07:02:53Z")

</div>

> [@tatiana](#):
>
> Yes that is true! I am still confused about when using a GPRS connection and when using WIP.

I think the problem is more fundamental than that - before even thinking of GPRS or WIP, you need to know how the internet itself works with protocols like TCP/IP, HTTP, FTP, etc.

These protocols are independent of the “bearer” used to transport them - which could be a wired LAN, a wireless LAN (WiFi), a phone line dial-up modem, a GPRS connection, or whatever…

> [@](#):
>
> For example when sending in a server data packets then GPRS and fcm functions are needed

You can use them directly, but you do not need to use them directly; in other words, it is possible, but not necessary.

> [@](#):
>
> But when accessing internet to download a file then just WIP functions are needed?

Not at all.

WIP is a higherl-level “abstraction” - it uses the underlying services of GPRS and FCM without you having to worry about the details.

You really should be talking to your Wavecom Distributor about this - they will be able to explain it to you face-to-face, and in your own language.

---

<div class="post-metadata">

**Author:** ![tatiana](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@tatiana](https://forum.sierrawireless.com/u/tatiana)\
**Post date:** [December 22, 2008, 9:28am UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/15 "2008-12-22T09:28:17Z")

</div>

Thanks Madouc!

> [@blackyblack](#):
>
> tatiana, where are you from?

I am from Greece!

> [@blackyblack](#):
>
> You don’t really need to use adl\_gprs functions. But you surely can do it. Moreover you can achieve better robustness for your application using both WIP and ADL functions.  
> The same you can say 'bout WIP. You don’t really need to use it. But it is much simpler than ADL functions (well edSoft was even better ☹ )

So GPRS is the type of connection to the internet but wip determines the type of protocol! Am I right?

---

<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:** [December 22, 2008, 10:03am UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/16 "2008-12-22T10:03:01Z")

</div>

> [@tatiana](#):
>
> So GPRS is the type of connection to the internet but wip determines the type of protocol! Am I right?

No.

As I said earlier:

> [@I](#):
>
> WIP is a higherl-level “abstraction” - it uses the underlying services of GPRS and FCM without you having to worry about the details.

> [@I also](#):
>
> [size=150]You really should be talking to your Wavecom Distributor about this - they will be able to explain it to you face-to-face, and in your own language.[/size]

---

<div class="post-metadata">

**Author:** ![tatiana](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@tatiana](https://forum.sierrawireless.com/u/tatiana)\
**Post date:** [December 22, 2008, 10:13am UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/17 "2008-12-22T10:13:16Z")

</div>

> [@awneil](#):
>
> > [@I also](#):
> >
> > [size=150]You really should be talking to your Wavecom Distributor about this - they will be able to explain it to you face-to-face, and in your own language.[/size]

Yes, I saw that!I am not blind! You don’t need to shout at me!

---

<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:** [December 22, 2008, 11:35am UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/18 "2008-12-22T11:35:18Z")

</div>

> [@tatiana](#):
>
> You don’t need to shout at me!

I’m sorry, but you seemed to be ignoring it.

Please, do speak to your distributor - that’s what they’re there for!

---

<div class="post-metadata">

**Author:** ![tatiana](https://avatars.discourse-cdn.com/v4/letter/t/e79b87/32.png) [@tatiana](https://forum.sierrawireless.com/u/tatiana)\
**Post date:** [December 23, 2008, 9:24pm UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/19 "2008-12-23T21:24:02Z")

</div>

Hi guys!

Trying to connect to the internet using WIP and dowloading a file from […](http://.....), I use the following sequence of functions:

wip\_netInit()  
wip\_bearerOpen (&MyBearer, “GPRS”, myHandler, NULL)  
wip\_bearerSetOpts (MyBearer, WIP\_BOPT\_GPRS\_APN, “…”, WIP\_BOPT\_LOGIN, “…”, WIP\_BOPT\_PASSWORD,"…", WIP\_BOPT\_END)!=0)  
wip\_bearerStart(MyBearer)

And then from myHandler when WIP\_BEV\_IP\_CONNECTED happens, then  
http = wip\_HTTPClientCreate(NULL,NULL)  
wip\_getFile(http, “[http://www.wavecom](http://www.wavecom)”, http\_event, NULL);

The TRACES I get are the followings:

GPRS: open: -\> DISCONNECTED  
BEARER CONFIGURED  
GPRS: start: -\> CONNECTING  
GPRS: GPRS EVENT SETUP OK (cid=1): GPRS activate  
GPRS: GPRS EVENT: 27 (cid=1)  
GPRS: GPRS EVENT ACTIVATE OK (cid=5): FCM open  
GPRS: FCM subscribe: 0  
GPRS: FCM EVENT FLOW OPENNED: -\> CONNECTED  
ip connected  
http session established  
[HTTP] new request [wavecom](http://www.wavecom) @ 00476e20  
[HTTP] connect to host: [wavecom:80](http://www.wavecom:80)  
[HTTP] channel = 00476bc0  
[WIPEV] WIP\_CEV\_ERROR @ 0x476bc0 (errno = -993)  
[HTTP] error -993 @ 00476e20  
[HTTP] channel closed by server  
[WIPEV] WIP\_CEV\_ERROR @ 0x476e20 (errno = -993)  
error in socket!

Could somebody please tell me what is wrong with this? Error -993 stands for DNS FAILURE, but I have used the example from the WIP datasheet and I don’t know what can have gone wrong.

Thanks!

---

<div class="post-metadata">

**Author:** ![basrottier](https://avatars.discourse-cdn.com/v4/letter/b/ba8739/32.png) [@basrottier](https://forum.sierrawireless.com/u/basrottier)\
**Post date:** [December 24, 2008, 12:38pm UTC](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305/20 "2008-12-24T12:38:18Z")

</div>

Hello,

I need to send data from a microcontroller (that has RS232 interface) to a unit that can send SMS or transfer files through SMS. I can’t find any doc from the Supreme and extreme unit (besides of compliance docs etc…).  
Do you know if this unit can do the job and if yes, where can I find the relevant doc

Regards  
Bas Rottier

[Next page](https://forum.sierrawireless.com/t/download-filesfrom-a-server-via-gprs/1305.md?page=2)
