This is the first time I program something with the Fastrack supreme.
I have to program a “M2M” system. I get information like the temp. over a serial connection and I have to send these information to a server over GSM/GPRS.
So I have to program the receiving of the information and the transmitting to the Server. Is that possible to handle?
Can someone help me how to program the Fastrack supreme and where can I get some sample applications?
Yes what you want to do is possible For GPRS sample please look through C:\OpenAT\Plug-ins\WIP<ver>\WIP\Samples. For collecting data from the serial port, please look over the FCM service in the ADL User Guide. ADL samples can be found in C:\OpenAT\OS<ver>\ADL\samples
But I cant find a sample how to read data from the serial port. For sending data I found this samples about the UDP or TCP Client/Server.
It would be ice if you could give me some more information about reading data from the serail port.
Hi Dollitz,
I write here below is the simple sample for reading and sending data through serial port. It is just a exp, you can make family with these APIs via ADL User Guide (with more detail and sample)
Hi Dollitz,
Why do you put the “i=5” into the fcm_V24DataHandler? It is a variable for detecting character ‘\x1a’ for end of Data mode. This variable will be changed from 0 to the DataLength, so when you put it =5, it off-course error.
ttt
When i add to the fcm_V24DataHandler something like this:
bool fcm_V24DataHandler ( u16 DataLength, u8 * Data )
{
bool bEnd = FALSE;
u16 i;
[b]u16 variable;[/b]
....
I receive the same error. Maybe I make a mistake to build the RTE. I do exactly the same, whats written in the TU_Tutorial_for_open_AT.pdf to build it.
I only wanna work with this incomming data and write them into a nother array, how can i do this?
Look at the error carefully, and think about what it says:
“arg 2” is short for “argument 2” - so, count the arguments in the call to ‘adl_fcmSubscribe’, and see which is number two;
You know that ‘C’ has the concept of types - yes?
Do you know what “incompatible” means?
Look in the ADL User Guide to see what type adl_fcmSubscribe requires for its second parameter;
Look at the type of the parameter you’ve actually provided - are they compatible?
The programm is working fine at the beginning, i build it and send it to my Fastrack Supreme.
I send some String to the device and I can see the answer and everything.
But now my problem starts,after i put in this spezial String and my application stops, I add only u16 variable, into the project like this:
bool fcm_V24DataHandler ( u16 DataLength, u8 * Data )
{
bool bEnd = FALSE;
u16 i;
u16 variable;
TRACE (( 1, "V24 data (size %d)", DataLength ));
for ( i = 0 ; i < DataLength ; i++ )
......
It changes nothing only creating a new variable. When i go than to Re build all i get the Problem.
But if i earase this variable after this try and try to re build everything, still the same problem.
Why is it working in the beginning and not after this try?
Hi Dollitz,
This appl I had written for Q24, that mean base on OpenAT OS 3… and it compile ok when you add a varible. But when you use it for Q26, that mean base on OpenAT OS 4…, it will compile error. You should read the ADL-User guide and build a new appl base on OS 4…
Hope have you,
ttt
how did you able to read and work with the incoming data from the serial port? i was hoping if you would be able to send me a sample code that you have with regards to reading and sending data in the serial port?
if you could not send me a sample code (for proprietary reasons…), hopefully you could describe the step by step process and the adl functions that you used…thanks…
I worked with Fastrack Supreme 10 and 20, but always using AT commands wipsoft. I want to make it work Stand-Alone (without PC), but I don’t know which programm I should use, you are experienced so what you suggest me? I don’t see the difference and which is better between M2M Studio and Open AT SDK? I can programm C/C++ and read some examples on the forum.
My Fastrack Supreme need some cables or a programmer to change to my own Open At software? O it can be done with the serial cable? Or what do I need?
Sorry… I downloaded M2M Studio and installed, and finally downloaded OpenATSoftwareSuite from Download page for Fastrack Supreme, and you are rigth, is the same.