PDA

View Full Version : RIL - Telepfone


ballrock2
3rd January 2004, 12:17 PM
Hi,

here my second problem :?

Has someone of you an idea how to Answer a call automaticly? I tried RIL_Answer and it seams to work, but i can't talk because the speaker and micro seems to be off.

Also I tried to dial with RIL_Dial - but there seems nothing to go on.

Greetings from hanovre again and
many many thanks for every idea
Andreas :o)

PS: Is there somewhere a RIL-Command to send AT-Commands directly (in text, not in HEX)?

itsme
3rd January 2004, 02:19 PM
PS: Is there somewhere a RIL-Command to send AT-Commands directly (in text, not in HEX)?
unfortunately there is not.

JGUI
8th January 2004, 06:31 PM
to make auto answer of phone call, just simulate the hardware key is pressed. not too hard to write in mVC+.

the question is: what next?
auto-answer works fine when you can switch to the speakerphone mode automatically right after the software did pick-up the call

I cannot do that, I tried in several ways but it is not working.

I cannot simulate "longer-press" of hardware buttons as you know you can turn on/off the speakerphone mode

ecp0009
16th March 2004, 01:40 PM
Hi.

I'm also trying to use RIL_Dial. The way I'm running this function is:

RIL_Dial (g_hRil, (CHAR*)_T("696761699"), RIL_CALLTYPE_VOICE, RIL_DIALOPT_NONE)

My XDA seems to accept and try to establish the call since it opens the phone interface (without displaying the passed number). But then I get this answer back from the phone: UNKNOWN APPLICATION

Anyone knows how I can establish a call with this function?

Thanks,

Erik.

Quan
8th April 2004, 05:59 AM
@ballrock2:

To answer a call using RIL_Answer do this:

- Call RIL_Answer
- Sleep(100)
- Send a VK_F4 down
- Sleep(100)
- Send a VK_F4 Up

You can then talk.

Quan

JGUI
13th April 2004, 10:34 PM
you dream,

keybd_event(VK_F4, MapVirtualKey(VK_F4, 0), 0, 0);
return one shot of button down emulation
no matter how long you are awaiting for the next
keybd_event(VK_F4, MapVirtualKey(VK_F4, 0), KEYEVENTF_KEYUP | KEYEVENTF_SILENT, 0);

so, in this way we cannot emulate tap-and-hold of the green phone button to turn on the speakerphone mode

nutitija
25th September 2005, 10:39 AM
can you explain or just post how you managed to initialize RIL ?? i dont seem to figure it out !!

thanks.

IIIu30uD
26th September 2005, 08:54 AM
nutitija
Use Search

In Last Time

/*
callback for result of async functions
*/
void CALLBACK ril_result_callback(DWORD dwCode, HRESULT hrCmdID, const void* lpData, DWORD cbData, DWORD dwParam)
{
....
}

/*
callback for phony notifications (like incoming call)
*/
void CALLBACK ril_notify_callback(DWORD dwCode, const void* lpData, DWORD cbData, DWORD dwParam)
{
...
}

...
HRIL ril = NULL;
......
/*
1 - for RIL1: device
RIL1: device for COM2: device
*/
if (RIL_Initialize(1, ril_result_callback, ril_notify_callback, RIL_NCLASS_CALLCTRL | RIL_NCLASS_NETWORK | RIL_NCLASS_SUPSERVICE | RIL_NCLASS_RADIOSTATE, 0, &ril) < 0)
return;
.....

nutitija
26th September 2005, 12:39 PM
ok i kinda got the whole idea of it now, this is my implementation to try to initialize RIL however i get the following error :

error C2660: 'RIL_Initialize' : function does not take 6 parameters

Anybody can help me here ? i'm guessing maybe gotta do something with the RIL header file or lib or exp ?

************************************************
// Global Variables
HRESULT result;
DWORD dwNotificationClasses = 0xFF0000;
DWORD g_dwParam = 0x55AA55AA;
HRIL g_hRil = NULL;

// RL initilize
void CTerminalDlg::RIL_Initialize()
{

result = RIL_Initialize(1, ril_result_callback, ril_notify_callback, dwNotificationClasses, g_dwParam, &g_hRil);

}

IIIu30uD
26th September 2005, 02:49 PM
************************************************
// Global Variables
HRESULT result;
DWORD dwNotificationClasses = 0xFF0000;
DWORD g_dwParam = 0x55AA55AA;
HRIL g_hRil = NULL;

// RL initilize
void CTerminalDlg::RIL_Initialize()
{

result = ::RIL_Initialize(1, ril_result_callback, ril_notify_callback, dwNotificationClasses, g_dwParam, &g_hRil);

}

learn C++