PDA

View Full Version : [RIL] - Making a data call and getting the handle...


Marzullo
3rd April 2007, 12:51 AM
I need to make a data call through RIL api.
I deployed 2 different programs on 2 i-mate JASJAR palmars which uses
API. I'm able to make the data call and wait all the connection setup
until i receive from both sides RIL_NOTIFY_CONNECT.
I print those messages on the pocketconsole and the connection
speed is 9.6 kbit/s through the CSD (Circuit Switched Data) channel.
The problem is that when i try to RIL_GetSerialPortHandle and send
data to the other side i receive a strange handle with value 0xffffff.
Trying to call read/write on that handle doesn't work.

Is there any example-code about data calls with RIL?

Thanks.

Marzullo
3rd April 2007, 07:18 PM
RIL
1)Deny to TAPI to drop datacalls (search on this forum)
2)Initialize RIL and set callbacks(RIL_Initialize)
3)For originate - RIL_Dial
4)For answer - RIL_Answer
5)For hangup - RIL_Hangup
6)After connect get COM-device (RIL_GetSerialPortHandle)

I've found this valuable knowledge.
The only thing i'm not doing is the first point and i don't know how to.

Marzullo
5th April 2007, 04:41 PM
Anyone knows?