RIL or Direct AT Commands in WM2005 - Windows Mobile Development and Hacking General

Hello,
I'm new in developing application for Windows Mobile.
I've a question. In WM2005, is there any way to write application to
use RIL API? If not, is there any alternative way such as directly send AT
command to radio module? (I'm using Dopod 818C (HTC Wave) CDMA pocket
pc phone as developing machine).
Anyway, sorry for my bad English.

Hi -
Were u able to succeed sending AT commands to the RIL? I am able to send some basic commands and get the response using RIL_GetSerialPortHandle API and writing the AT commands to the handle that i receive from it. But i am not able to get certain commands like to get the cell environment, etc. Any idea on how to retrieve that?
Thanks

Hi,
I hope it doesn't sound arrogant but with Google and searching for e.g. "application use RIL API" you will find a WiKi page here on xda-dev and even a MSDN page. Hope this helps.
If you absolutely can not find any answer in the web send me a PM. I will ask a friend.
Cheers,
Derek.

Related

Get the telephone number in a program by starting a call

I develope a software which uses the phone of windows ce. So the user of the software can use the telephone. But it should be forbidden for the users to call any numbers. So I need to check the number the user puts in before he can start the call. How can I do that. Can I work with the RIL? In the past I have worked with the RIL and I get the message when someone starts a call but I don't know how I can get the number.
bye
Barney0021
I am not a programmer but could you not scan the keyboard input for this, used to be easy in the days of basic programming.
Thank you for answering, but I don't think this will work.
Mr.barney
can u provide me the code to use the phone
i dont know how to Initializing TAPI on EVB .... i saw the help file but i couldn't know how to do it well>>>pls
Barney0021: you may hook the COM1 and intercept all AT commands coming to the modem and filter the prohibited ATD commands. Or you can use TAPI functions like lineGetCallInfo. It should return the dialed number of the given call, but I have not tested this.
@ corv3:
I am programming with eVC++. And the phone application I use in my program is not written by myself. Instead I use the telephone application Windows CE owns. In my program I need only to start the telephone application. This is very easy. When you are still interested in the code (eVC++) then mail me again.
Greetings
@ mamaich:
Thanks, this is good, but the function needs a parameter called HCALL. How can I get this?
Greetings
Mr.Barney >>>
i want my program these functions:
-answer call by it self or by win ce phone program
-know the caller number
even on EVC ++
so if u know about the code of these functions pls tell me about them
Barney0021 said:
@ mamaich:
Thanks, this is good, but the function needs a parameter called HCALL. How can I get this?
Greetings
Click to expand...
Click to collapse
Look into TAPI samples coming with PPC 2003 SDK! There are several good examples.
The other variant is visiting www.cryptophone.de and downloading their source code. The code is a bit difficult to understand, but you'll se how everything can be done. Even interception of phone calls so that "Phone" application does not popup. Of cause you cannot use their source code because it is copyrighted, but you can do the similar things.
@ corv3:
At the moment my program only uses the Win CE phone. For this I've programmed a function that opens the telepbone. The following three lines will do that:
SYSTEMTIME systime;
GetSystemTime(&systime);
CeRunAppAtTime(L"\\Windows\\cprog.exe",&systime);
Ohter activities with the phone are still in progress but not properly working.
thanx alot Mr.Barney ....
Hi, I have the same problem
I want to get keypad numbers to block out going calls but i don't know how, key words I used are TAPI Windows mobile get caller number, call control, call management I searched in codeproject.com also but I found nothing, please help...I feel the wrong thing is from me

Voice mail application available?

Hi,
I am looking for an application running on my Magician (VPA compact) that works as a local answering maschine. It should, when reception of course, be able to receive a call, play a prerecorded message and record the caller. From a technical point of you, there should not be any problem. But I could not find any application providing this service.
Maybe one of you global guys heard something?
rgds
Marco
try using search it's been asked many many times before
Hi,
yeah I know, couldnt find any message anyway. And it was more a :
"Any updates, anything new?" as there never was a software, but there may be now, as software can be written and it wasnt a HW related question. But thanks for your input.
regards
Marco
answering machine prob gave more hits then voice mail
as far as i know there is no such thing and some people say it's impossible
to make on xda's
http://forum.xda-developers.com/viewtopic.php?t=21119&highlight=answering+machine

voice GSM

Hi everybody
I finally got a valid handle using lineGetID opening the "Cellular Line" device.
I also mastered the wavein/wavout APIs.
What is the configuration that I should set for the various communication structures (DCB, COMSTAT, COMMTIMEOUTS)?
Right now I'm trying to implement a normal voice GSM modem, so I will be able to talk to users with analog telephones. I have i-mate jam with WM2003 (and TAPI 2.0).
Thanks ahead
Kobi
I solved the problem, but I think there left some more...
Hi everybody
I just thought about an idea of getting this information from the CPROG.EXE. I opened the cellular line device, in a OWNER || MONITOR state and I didn't kill CPROG.EXE. Then I used the lineGetID to retrieve the IO handle and get the communication structures, which I displayed using several message boxes.
Now, I have a question that I can't solve in such a way.
Are there any special things about implementing a GSM voice modem communication, i.e. special data frames I should send/receive the encoded voice, special protocol messages? Where can I find this information?
Thanks ahead
Kobi
Can I access the voice streams during conversation?
Hi everybody
I discovered that whenever a call is established, automatically I can make talks with my i-mate jam, without any code which implements queues between the microphone/speaker and the line.
Can I manage alone the streams of voice from the mic/speaker to/from line, or at least can I access these data blocks (in order to encrypt/decrypt it) ???
Thanks ahead
Kobi
Re: Can I access the voice streams during conversation?
you cannot. When the call is in progress your mic/speaker is directly connected to GSM chip by a hardware. Audio does not go through windows.
Little more question
Hi mamaich
First of all, thank you for your answer.
Second, I still have a question about it:
Does this direct hardware connection exist in all smartphones or just in the smartphone I'm using? (and generally how I can know it? does this feature have a name?)
Thanks ahead
Kobi
more informations
Hi mamaich,
Do you mind pointing me to appropriate documentation backing up the fact that a windows application has no control over the transmited voice once the communication is established ? It's not by lack of trust, I had reached the same conclusion but I need documentation backing me up on this for the company I work for (and that's how I found your post
I am currently working on an application that acts as a voice filter for GSM voice communications. Some codecs require that the communication suffer no loss, no noise nor desynch (that is, it must be able to recover from an error). So far I've come up with several mechanisms to resynch or recover from a "bad state", but they are theorical and I can't figure out how to implement them since they need to act at the transmission level.
Any documentation ? Anything backing up the fact that it is, or not, doable ?
Thanks a lot, feel free to mail me
Re: Can I access the voice streams during conversation?
mamaich said:
you cannot. When the call is in progress your mic/speaker is directly connected to GSM chip by a hardware. Audio does not go through windows.
Click to expand...
Click to collapse
You can still access the sound to encrypt decrypt...
What you are trying to do exists for WM5... www.securegsm.com
That can only access the sound comming and going because it runs at each end. The microphone and speakers work fine and programs that use them can send the data they collect over a call as data to be replayed at the other end. This dose not mean that securegsm (or any program I have seen) can access the streams that normal voice calls use. Many (including myself http://forum.xda-developers.com/viewtopic.php?t=9761&highlight=wave+tapi ) have showed evidence of this lack of functionality in one way or another in other threads. I think the only way to reslove this so that this question stops coming up is for someone to pull apart a device and show what each pin dose on the chips in question. Until then maybe we need a sticky called "answering machines for ppc".
The only proof I would be willing to accept that this can be done would be a working program that can play a message over a call to a person at the other end who is not running any other software ( and not using the system speaker ). Other evidence that the device cannot do this kind of thing can be seen in the inability to generate custom tones. The only tones that work are the standard predefined ones used in linegeneratetone.
do a search for "voice mail" or answering machine or something
those threads have piles of info about the gsm module and windows not being intergrated and voice mail and so gsm voiceover is not possible
It's nearly off topic but can anyone tell me where I can get information about the functions stored in a dll file?
I need to collect some information (e.g. the state of the telephone or the gsm unit). In the easiest way is to call an API function and read a structure filled by the function, isn't it?
But where can I find information about which function is stored in which dll file or which functions exist, respectively?
Thanks in advance.
Monty

How to receive incoming call notification

1st of all - hello!
This is my first post in this Forum and I feel very uncomfortable at this point because I got a question, which has been hit many times before. Further it won't be the exact right place here to ask, because I dont own a XDA but a Motorola MPx200 with Windows Mobile 2003 Smartphone Edition. Nevertheless, I guess you can help me because developement in .NET is quite the same - and most of the features will work there too.
But getting startet...
I'm trying to write a program, which will indicate on my desktop computer if there is a incoming call on my mobile. Further it has to show me the incoming callers ID, maybe from the buildin phonebook of the mobile. For that Programm i have to write a little "listener" for my mobile, which calls a function (which talks to my desktop) when a incoming call is received.
Unfortunatly I can't write C++, but I think there must also be a solution in C# .NET over a API call. But I don't know, which method in which DLL I should call to receive the information if there is an incoming call or not.
Can anybody please help figuring out how to do this.
What I know now is, that it has to do with RIL and TAPI, but I must read myself in RIL to understand that.
Your my last chance - i googled the whole day, even read about 20 pages on google groups but there wasn't the "All-i-need-to-be-happy"-solution at all. I also have searched the wiki in here...
Sorry if you don't understand some parts of this text - i come from germany, so english isn't my native language.
Thanks so long.
Marcus
Hi
for WM2003 it is kind of hard and involves a lot of study concernaing TAPI.
with WM5 it should be quite easy using .net compact framework 2.0 as there is a new namespace Microsoft.WindowsMobile.Status and a System Property called: SystemProperty.PhoneIncomingCall yet I have not tried that route.
One more Option which I didn't try - but could be a chance for you without learning TAPI is to register a small console.exe within the notifcation queue to run on the appropriate system event! (memmaid is a good explorer for the notiication queue)
This option will most likely just tell you that there is a call - and now details - I have no time to research this right now.
BR
Daniel
http://msdn.microsoft.com/library/en-us/apisp/html/sp_extapi_linegetnumbercalls.asp?frame=true
V
Progress
And is it working??
I thought I was the only one who wants to get this working...
Let us know !

Sending SMSs with destination port number

Hi All!!!
Although I've been reading this forum from a long time, this is my first post.
I'm developing an application that integrates a GPS application (implemented in C++ using WM6 SDK) that should send a SMS to a Midlet application wich is a tracking application. In this journey I faced what seems to be a tough problem: I need to send an SMS from a C++ application to a Midlet application with the GPS coordinates.
It seems to be easy at first glance but as the J2ME community knows, Midlet applications can only receive messages that comes to a specific port number registered by the application.
I know to which port number I have to send the damm message, but WM6 SDK SMS API doesn't even mention a "port number". So I don't know how to specify it to the SmsSendMessage function.
My gess is that it has to be encoded in the parameter pbProviderSpecificData but I have no idea of how it should be encoded there.
WM6 SDK SMS API reference: http://msdn2.microsoft.com/en-us/library/aa919102.aspx
Any one has faced this problem before or could point me to the right direction?
Any comment on this is welcome.
Thanks in advance.

Categories

Resources