I am using the Wavecom Software OPEN AT SDK 3.16a with the included Eclipse 3.2 IDE.
The program I am currently writing is to be used on a “New Q24 Series” modem.
So far, I have read several documentations such as the ADL_User_Guide but I can
t find the information or simply dont understand I am looking for.
Basically the code should be quite simple:
I want to read the Ring Pin (by connecting RI with GPI) in a loop. As soon as the Ring Indicator and therefor GPI switches to a High State,
the programm leaves the loop and has to read another input, let
s say GPIO0 (as an input) for example. When a "1" is detected (this pin will be connected to a button later on), the function to answer the call is executed. Thats about it. Actually the modem should read the GPIO0 another time to wait for a second press of the button to hang up the call but thats only the same function again.
But I have some problems with that:
In my library/header-files (wm_io.h in ADL/basic and adl_gpio.h in ADL/itf) i can`t find the correct definitions for my GPIO ports; there are definitions for Wismo Quik/Pak Q24x0, Q24x3, Q23x3, Q24x6, P32x3, P31x3, P32x6, Q31x6, P5186, Q25X1, Q24CLASSIC/PLUS/AUTO/EXTENDED.
Which definitions are the right ones for me ? Which library files (basic or itf) should i use anyway ?
I don`t fully understand the “adl_ioRead”-function. What is a “handle” and how can I access/use it ?
Do I have to execute the adl_ioSubscribe function first ? What are the correct parameters and what kind of data does it return ?
I think the coding in C is not the problem, I have been doing that for some time now, but I`m a complete beginner when it comes to modems or anything other than windows applications. I am thankful for any kind of help, answers in German are also appreciated