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
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…
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) 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!
You can either implement it yourself from scratch, or use the one provided in WIP
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
Yes.
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?
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…?
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!
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 )
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…
You can use them directly, but you do not need to use them directly; in other words, it is possible, but not necessary.
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.
And then from myHandler when WIP_BEV_IP_CONNECTED happens, then
http = wip_HTTPClientCreate(NULL,NULL)
wip_getFile(http, “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 @ 00476e20
[HTTP] connect to host: 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.
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