HI,
I am trying to send data through gprs, this is are the steps iam following,
1.adl_fcmSubscribe
subscribing gprs by making
flow = ADL_FCM_FLOW_GPRS
(my need requires sending data through gprs, where the data is stored in some memory location after the same from uart.)
adl_fcmSwitchV24State() // For making v24 in data state.
adl_fcmSenddatat() // for sending data from which memory location.
4.adl_fcmGetStatus // for deciding direction of data.
Please suggest me whether this approach is ok, or i need to use “direct access” for configuring gprs.Please give me a fair idea regarding sending data through gprs.
As i am newbie , please take this consideration while giving your valuable comment.
awneil,
Is it possible for using flow control manager(fcm) for 2 devices at same time.(i mean using fcm for uart and gprs at same time).
My need is to read data through uart2 store it in memory, then send it through GPRS. I want to use fcm for uart2 and “direct access” approach for gprs.The sample code in sdk i.e ping.c uses fcm port for gprs as well.
i am following this method for sending data through gprs,
1.subscribe to gprs, using
a.adl_gprsSubscribe.
b.write GPRS HANDLER.
C.used adl_flhSubscribe, adl_flhGetIDCount etc.(for storing the parameters on flash).
2.subscribed to Channel using
a.adl_fcmSubscribe.
and also i wrote Control handler and Data handler.
(used the one mentioned in ping.c)
3.My idea is to establish a socket connection(tcp socket) making my q2687 module as Client and my pc as server.
For that i may have use WIP(wavecom IP).
When ever i need to send data or read,if i use wip_write/wip_read,will that work.
Hey,if any one is having sample code for reading and writing data through gprs,can you PLEASE send to me.
hi,
the following is the response i got,can you guys please tell what this ,GPRS EVENT:27, indicates.My code is unable to send data through gprs,the tcp client gets closed after 20sec.
hi,
for server code i have a tcpsocket running on my local machine,do i have to make any special settings so that my module gets communicated with server socket.
I have the same problem as you, can you share with your code here? I can send data through GPRS, but i have problems with read/write memory in q2687 and in receiving data from UART (may be it’s just because i have only UART1).
So you don’t have the same problem! The problem was, “Sending data through GPRS” - if you can do that, then you obviously don’t have that problem!
Those are completely separate from sending data over GPRS - or any other bearer, for that matter!
Reading/Writing memory always works the same way irrespective of what data you’re reading/writing, where it came from, where it’s going to, how it gets there, or what it means!
The UART always works the same way irrespective of what data you’re sending/receiving, where it came from, where it’s going to, how it gets there, or what it means!
You need to see these as separate “modules” - get each working on its own, then bring them together;
Or, start with one, then add one, then another, etc…
This is a standard way to build any complex system.
Yes, I’m understand this, but I have troubles with RTOS understanding. Every time when I get event I must do something.
Lets have a look at simple algorithm (geting data from UART and sending it through GPRS):
My first events generated on adl_simSubscribe( evh_sim, PINCODE ). Than I switch my UART1 in data-mode and when it receive some data it generate new event. Correct?
Whan it happens UARTDataHandler (u16 DataLen, void * Data) will be called automatically. Correct?
In the UARTDataHandler I must call adl_gprsSubscribe to establish connection and than send my data. Correct?
But on UART1 I allready have new data and my cycle starts again without sending old data. Were is my misstake?