Problem of missing TAPI notifications - Windows Mobile Development and Hacking General

We have some problems using TAPI in our application on MDA2 (PPC2003). The application is relatively big and written with C++/MFC. During our tests a lot of outgoing/incoming voice calls have been done/received. And somtimes TAPI does not send important messages back to the application. The errors that we have observed are
- lineDrop missing LINE_REPLY
- lineMakeCall missing LINE_REPLY
- call state missing notification
For example, in the last case the call had reached the called party, was answered and dropped in 3 seconds but we didn't receive the corresponding notification. Sometimes the correct notification comes after subseqent call to lineDrop function.
Besides, the functionality works well on MDA (PPC2002).
Could you give us some hints how the problem could be solved or investigated, please?

Are you using a callback or a thread listening for events via lineGetMessage? You should use a thread and message processing should be very quick.

mamaich said:
Are you using a callback or a thread listening for events via lineGetMessage? You should use a thread and message processing should be very quick.
Click to expand...
Click to collapse
Thank you very much for the quick and helpful answer
Calling to lineGetMessage was there in a separate thread with normal priority. That thread, however, performed the whole postprocessing of the messages, so really it may lead to delays in processing of the following messages.
Today morning I have rewritten the corresponding piece of code and created the special thread with highest priority which waits for a TAPI event, calls lineGetMessage and puts the result into a queue. Indeed, the application seems to work more stable now, but, unfortunately, the problem remains
Besides we have another problem in our application on MDA2 that sometimes some synchronous TAPI functions freeze the respective threads. When we try to terminate such a thread with frozen function in order to reload the modem application quickly (we had to move all the modem functionality into separate process in attempt to make the application more stable for the user) TerminateThread function returns error 87 (incorrect parameter). Something seems to be wrong in the TAPI-core, I think. So maybe the problem is that we perform several TAPI tasks in parallel threads (network signal, sending/receiving sms and so on) simultaneously? Could it be? What do you think about this?
It is very strange and even mysterious problem, because the application works well on MDA device as I said in the previous message.

Det said:
So maybe the problem is that we perform several TAPI tasks in parallel threads (network signal, sending/receiving sms and so on) simultaneously?
Click to expand...
Click to collapse
This may be the reason. In my project I've called all TAPI functions in the same thread. You may try to use RIL, but it would require to rewrite lots of code,

mamaich said:
This may be the reason. In my project I've called all TAPI functions in the same thread. You may try to use RIL, but it would require to rewrite lots of code,
Click to expand...
Click to collapse
Do you have any problems with unfriendly delays in receiving or making phone calls while SMS are being sent or receivedthen ?
mamaich said:
You may try to use RIL, but it would require to rewrite lots of code,
Click to expand...
Click to collapse
We need some preferencies of TAPI, like simultaneous access to the modem from different applications. And I do not know if RIL supports such a feature. I would say I do not know much about RIL at all

Det said:
Do you have any problems with unfriendly delays in receiving or making phone calls while SMS are being sent or receivedthen ?
Click to expand...
Click to collapse
I have not tested this.
RIL supports simultaneous access. It is used by OS in several applications.

mamaich said:
Det said:
I have not tested this.
RIL supports simultaneous access. It is used by OS in several applications.
Click to expand...
Click to collapse
I see. Thank you
I've read some info about RIL on this very helpful site. Maybe it would be the only possible choise since the application still does not work properly But it actually requires a lot of reworking. And it does not guarantee that the error would not appear again, I think.
Click to expand...
Click to collapse

Hey, i'm trying to Use some RIL functions in an MFC application. However i dont understand how to initialize it (RIL_Initialize) could i get some help ??? I'm trying to write an app which would change the PIN code of the sim card as described in the RIL patent. Using this function.
HRESULT RIL_ChangeLockingPassword(
HRIL hRil,
DWORD dwFacility,
LPCSTR lpszOldPassword,
LPCSTR lpszNewPassword
);
My problem is the HRIL hRil , @parm handle to RIL instance returned by <f RIL_Initialize>
No too sure how to do it !!! Need Help !!!!

Related

I've managed to compile cryptophone for PocketPC 2003

I've build a version of crypto phone for PocketPC 2003. ( unsing the sources from www.cryptophone.de ),
with some workarrounds for license test.
I don't have two phone to test it yet. If anyone can test it please send feedback.
As i see it use data call as link layer so your provider must suport it.
PS: Who's testing it , please send feedback.
I've tested in my Qtek 2020, (XDA II, MDA II…).
Is it working? I was able to compile it too, but it died on exchanging keys.
mamaich said:
Is it working? I was able to compile it too, but it died on exchanging keys.
Click to expand...
Click to collapse
Don't work. :-(
I have programmed 2 xda 1 with wm2003 and the crypto, it works perfectly. The only bug is the "file" bar vanishes after a call is placed or received, other than that its great. 8)
Can you post what you changed in the source file in order we could reply your compiled code?
The idea is simple, if we can have access to the original source code and can do the changes you documented, generating the same code as you, with the same hash value for the encrypted code, we can assure that your code have the same security of cryptophone.
dumb ?
what is cryptophone?
Hi,
i am very interested in this (or a similar) software for
the Wallaby or Himalaya platform.
Anyone here who has a working & easy too install binary?
(Or are there any real free & opensource applications like cryptophone?).
kind regards,
Ben
Has anyone managed to get cryptophone working on the XDA ??
... or find a similar program ??
Regards
There are several similar commercial projects. Just wait some time for their announcements.
mamaich said:
There are several similar commercial projects. Just wait some time for their announcements.
Click to expand...
Click to collapse
Hi mamaich,
thnx for that prompt reply
I know about cryptophone.de, raseac.com.br & caspertech.com
Are there any others I have missed ??
Regards
John
2-3 russian companies are also working on similar projects. I don't know their sites.
cryptophone Somebody to compiled? for motorola smartphone mpx220 :?
one more company.
http://www.securegsm.com
and question - where is source download page on http://www.cryptophone.de ?
in general "cryptophone" application isn't difficult
- good vocoder
- some crypto
- good realtime data transfer - CSD for GSM network
- some audio components like AEC
could some one point me to good ARM implementation of vocoder with 2.4-4.8kbitps bitrate? ARM9(v5) PXAxxx ~100MIPS.
Free is preferable, but reasonable commertial offers are welcome too.
just a question,
isn`t it possible with the sourcecode of this software and the sdk for windows mobile 2003 smartphones to make a installer?
is very interesting, or?
is there any other software for ppc or smartphone avalable?
a free wm5 client for this should be awesome! coders go compile now!
is the encryption limited to "only" this version of application ?
- or is there some sort of standard ?
ryhor said:
one more company.
http://www.securegsm.com
and question - where is source download page on http://www.cryptophone.de ?
in general "cryptophone" application isn't difficult
- good vocoder
- some crypto
- good realtime data transfer - CSD for GSM network
- some audio components like AEC
could some one point me to good ARM implementation of vocoder with 2.4-4.8kbitps bitrate? ARM9(v5) PXAxxx ~100MIPS.
Free is preferable, but reasonable commertial offers are welcome too.
Click to expand...
Click to collapse
here
http://www.cryptophone.de/support/downloads/downloads.html
Lord Ashmedai said:
I've tested in my Qtek 2020, (XDA II, MDA II…).
Click to expand...
Click to collapse
Hi, did you manage to get it to work?
I tried on my O2 xda... it hung on the key exchange part...
It concerns me that this program starts two processs, spcore.exe and ui2003.exe. I have not looked over the code, but can you tell me why it must use two. Furthermore once they are going there is no way to stop the spcore.exe. My guess is that if that process contains the thread that is waiting for tapi events, its stopping mechanism has not been implemented properly. If you want to make a thread that is waiting for the event for line state then when the user wants to stop the thread/process, the event interest needs to be reset. eg SetCommMask(hSerialHandle,0); ,but it must be done from the ui thread not the waiting thread because obviously the waiting thread cant do anything. Once it is set to 0 (as apposed to EV_RXCHAR for example) the waiting thread will finish waiting imeadiately.
I tried sending a message to destroy the window with no effect, I then tried using terminatethread to stop it but that did not work so it must be in an api call (such as waiting).
On my mini it starts up ok, and dose not interfear with the phone. I could not test the functionality because the only other phone I had with me was my xda and it dose not install corectly on that. No error messages on intalation but the icon in the program files is not shown properly and it fails when I try to start it.

RECORDING CALLS, DTMF SEND, PHONE S/W MOD - CODERS REQUIRED

Hi on my older phones like siemens there was an option to send dtmf tones which i used a lot.
EG.
1) I call 0800 CALLING CARD number and get a dialtone from the callco
2) I quickly go into my contacts and pull out the relevant contact and send the number as a dtmf tone
3) I get through to the contact
I really need to be able to send dtmf tones asap!
[PLEASE READ POST 8 FOR DETAILS ABOUT RECORDING CALLS AND MODIFYING PHONE SOFTWARE]
seems to be some software which does it but if any other ideas or software please let me know.
http://www.mobidial.com/mD/
Try dialDTMF at http://sourceforge.net/projects/dialdtmf
On my Jam it works flawlessly.
--------------
i-Mate Jam
ROM: 1.12.00 WWE
ROM Date: 05/28/05
Radio Ver. 1.13.00
Protocol Ver. 1337.43
ExtRom Ver. 1.12.128 WWE
Hi there thank you for the pointer!
I am about to try it out later today but have been reading about dialDTMF on here:
http://dialdtmf.sourceforge.net/
It sounds like it is designed before pocket pc's became phones simply to send a dtmf tone through to another phone by holding the pocket pc over the mic of the other phone. In this sense I would describe it as "Emitting DTMF tones" as oppose to "Sending DTMF tones".
This is different in the sense I would like to call a freephone number on the magician and then send the tones on the magician from my contacts. This is what I am calling "Sending DTMF tones".
Im hoping that even though it is designed to *emit* DTMF tones the sound is loud enough to go through to the freephone calling card company!!
Fingers crossed.
If anyone knows of a "Send DTMF tones" solution for the HTC Typhoon - SPV C500 / Sp3 please also post it, thank you!
Hi All,
I'm the developer of dialDTMF, Glad to hear it works out for some people,
As for cell phone support, you are correct it does not send DTMF's using the cell phone api it just makes sounds. You could try upping the volume and hope the mic picks it up like sainthalo mentioned.
The alternative would be to take the source code and update it to send the DTMF tone rather than play it. This would fairly easy for a cell phone developer to do (I don't have time or a cell phone that runs wm2003), should just be a couple of new functions. I'm happy to discuss (via email) though if some one wants to try, The source code is freely available. You could also check out http://artax.karlin.mff.cuni.cz/~jsyk7570/Xialer/ but it doesn't really handle calling cards.
I've a potentiall silly question: Are 0800 numbers free to call from mobile phones in the UK now? The last time I was over there they weren't (only from landlines). It maybe that using a calling card won't save any money.
Chris
Hi there clach04,
Thanks for signing up to these forums to help in this quest!
DialDTMF works as it is designed - as a Pocket PC DTMF tone generator but not to send DTMF tones down the Magician phoneline.
Okay, i'm sad to report that it does not work because it is not using the api and so is a "DTMF Emitter" rather than a "DTMF Sender".
There are several coders around here who are very active so god willing one of them will be along to help although it's something like this which gives the real urge to learn how to code. DO you have any advice for me (links, tools, etc) if I were to try and achieve this myself?
As for the 0800 codes there are some tarriffs left in the UK where you are entitled to call 0800 numbers to come off free minutes or simply as genuine free phone calls - thankfully I have one of these older contracts and therefore I can use calling card services.
Best regards
sainthalo
Guys, I would love to help out but with my upcoming nuptials it might be difficult.
However, I'm thinking thus:
Emitting DTMF is easy, play it out of the speaker.
Sending dtmf will require interfacing with the Phone part of the PDA; you should be aware that our PDA Phones are actually two semi-independant devices, phone and PDA; have you noticed you can switch off the PDA and still continue with a call? The two devices communicate through a virtual COM port:- this is done through AT commands and/or RIL. This is not an area of the PDA I have had much experience with yet, but what I understand so far is that it is very difficult to send data through to the Phone part of the PDA, from the PDA part.
This sounds absurd, and I may be absurdly wrong, but I suspect it is a similar problem to the existing issue about recording in-progress telephone calls. We don't yet know how, or if it is possible at all to interface directly into that part of the PDA and interact with the data, and so recording both sides of a phone calls is currently considered impossible.
I know user Pai has done a lot of work on Cell ID and other interfacing on that side of things. I suggest giving him a bell (no pun intended!) and asking his opinion.
I'll try to monitor this thread though.
clach04 - Do you have any further thoughts on this?
V
EDIT: Guys, I just had a thought. In the very old modem days school, we used to dial using at commands AT P (for pulse dialling, or AT T for tone)
eg AT P 123 would dial 123
It would do this by generating DTMF tones!
It should be possible I presume to send DTMF tones in this way as discussed above (RIL/AT). Anyone concur? This can be tested I presume with a terminal program, or just find COM code on this board. I'll try to find it if I get a chance.
V
Hey thanks Vijay, i'll keep my fingers crossed you come back to think about this in the future!
I have had another thought following Vijay's post and realised that a few other bugbears which many people find a tad annoying and would like to circumvent are possibly linked to this case. I have read on here people would like to play a recording/song from the Magician to a caller they are speaking to. I have done this many times on a Siemens SL45i but not on HTC Typhoon or Magician.
Im guessing the inability to play a Magician located recording/song down the Magician phoneline is down to the same reason that the dtmfDialer will not make a noise during a call - something is blocking out use of the speaker by PPC based software. Im assuming it is the PHONE software which locks out other PPC software.
If we can hack the PHONE calling software so that it allows other software to operate as normal it may well impact/solve the following problems:
Recording both sides of voice calls clearly
Sending DTMF tones
Playing recordings/music to other side of call
The dtmfDialer definitely does something during a call and I think i can hear some suppressed clicking when attempting to send a dtmfDialer tone during a phone call but sadly no audible tones. This possibly confirms my theory that the PHONE CALL SOFTWARE is blocking use of the speaker.
Well what do you all think? Possibly an awesome fix to many problems if the phone dialer can be hacked...
Saint, with regard to recording calls, there are other threads on this issue where much better men than I have said it's impossible, at least right now.
As I understand it, there's no direct connection between the phone and the pda bit, so playing something out of the speaker isn't playing it down the line - so the best we've got is "emission" rather then send.
This isn't a limitation by the caller program, it's a hardware limitation caused by the way our PDA phones are hacked together.
However, I think the AT P commands should crack this. I'll look into it at some point, if I can find example code.
V
Saint, with regard to recording calls, there are other threads on this issue where much better men than I have said it's impossible, at least right now.
As I understand it, there's no direct connection between the phone and the pda bit, so playing something out of the speaker isn't playing it down the line - so the best we've got is "emission" rather then send.
This isn't a limitation by the caller program, it's a hardware limitation caused by the way our PDA phones are hacked together.
However, I think the AT P commands should crack this. I'll look into it at some point, if I can find example code.
V
vijay555 said:
you should be aware that our PDA Phones are actually two semi-independant devices, phone and PDA;
....
The two devices communicate through a virtual COM port:- this is done through AT commands and/or RIL.
..
clach04 - Do you have any further thoughts on this?
Click to expand...
Click to collapse
Not really, my comments about how easy it would be to extend dialDTMF were from the dialDTMF contacts plugin perspective. It sounds like the SDK/api for these devices (for phone use) is pretty thin :-( If you do find that a modem AT style dial works you can replace the dtmf player in dialDTMF with a dial-string generator - the hard bit will be the interface to the phone. The dialing rules library I put into dialDTMF actually has a demo program that dumps dial strings to stdout (when ran on the desktop) - but until the phone api is resolved that is only midly interesting/useful now.
The AT style dial string approach sounds workable from the description.
sainthalo said:
DO you have any advice for me (links, tools, etc) if I were to try and achieve this myself?
Click to expand...
Click to collapse
That's one of those open ended questions that are really tricky to answer, I suspect this forum you are on is the best place to start as I suspect they have links to everything you will need:
You need a Cross compiler for WinCE:
http://www.microsoft.com/downloads/...3D-50D1-41B2-A107-FA75AE960856&displaylang=en
I guess youwill need a phone sdk:
http://www.microsoft.com/downloads/...99-EC5C-427C-807C-4C0F96765A81&displaylang=en
I'm not clear from reading the comments that this is for your device though..
.
If you nead to learn C then your learning curve will be pretty steep, try http://www.cyberdiem.com/vin/learn.html as a starting point
http://www.cs.virginia.edu/~lcc-win32/ is a nice small system and has tutorials to get you started with simple desktop programs
As for the actual phone SDK/api - I've no idea (and no phone) sorry I can't be of more help. Once the basic how to send DTMF's through the phone is solved converting dialDTMF will be pretty straight forward and I can point people in the right direction with that,
Chris
clach - I agree it should be very easy to converter over your DTMF code to AT or equivalent once someone hacks in AT commands.
General:
see here:
http://forum.xda-developers.com/viewtopic.php?t=19866&highlight=commands
There's code here: http://forum.xda-developers.com/vie...start=25&sid=3e4fdf4cec07bfe39e806da375db69c3
that I'm going to look into for CellID at some point. However, if you look through you can see how they're sending standard AT commands.
Hope that points someone somewhere!
Re: learning c++. I've only been using it for < 1 month, and it is a steep learning curve, but there are some things that can only be done in C++ and EVB isn't worth touching generally IMHO. So, steep learning curve it is. I'll be on the beach with C++ for Dummies :wink:
V
Guys i need some help with a programe
Something fun
1, Phone captures the UPC barcode/ISBN number (manually/scanning/etc)
2, Software converts UPC to ISBN (this is done via a simple formula)
3, Software converts ISBN to DTMF (or touch tone)
4, Software ready to accept new UPC barcode/ISBN number
(manually/scanning/etc) :roll:
Let me know if anyone wants to take on this project
[email protected]
RIL (Radio Interface Layer)
I got this from google - it may be the key. I've not looked into it yet but thought I'd post it to see if anyone has gone down the RIL road yet and if they've got any ideas:
"
how to send DTMF on smartphone?
I found RIL_SendDTMF function of RIL API
but I don't know how to use it?
May I LoadLibrary of RILGSM.dll and GetProcAddress of RIL_SendDTMF function
to realize send DTMF?
or have another simply method?
Thanks£¡
-
Best IE Helper Object: Ai.RoboForm
http://roboform.go.51.net
http://www.roboform.com/dist/affs/AiRoboForm-win32.exe
Siber Oct 19, 4:13 am show options
Newsgroups: microsoft.public.pocketpc.developer
From: "Siber" <[email protected]> - Find messages by this author
Date: Wed, 19 Oct 2005 12:13:21 +0800
Local: Wed, Oct 19 2005 4:13 am
Subject: Re: how to send DTMF on smartphone?
Reply | Reply to Author | Forward | Print | Individual Message | Show original | Report Abuse
I Got iT
lineGenerateDigits()
"
Anyone using C# to use this?
Pat
RIL
FYI:
RILGSM.dll can also be known as RIL.dll

SMS Notifier released – a great application for PPCPE users!

Finnish Aali Alikoski, Academic Developer Evangelist of Microsoft Finland, has just released a highly useful application, SMS Notifier, along with its source code.
The application offers some really nice and, up to now, to my knowledge, on the Pocket PC Phone Edition platform, unprecedenced functionality: it waits for unanswered incoming calls and, depending on the configuration settings, it either sends an SMS message to the caller (with configurable contents), possibly containing also the end time of current appointment (this is also configurable) or adds an item to the system-level Windows Mobile calendar (containing the caller info).
The latter functionality is nothing new – you can check the caller's identity and the call date/time in any low-end mobile phone. The former – that is, the SMS feedback –, however, is really long-awaited!
Downloading and Installation
You can download the application here. Transfer the CAB file to your PDA and execute it there.
If, after installing and upon starting SMS Notifier, you're presented this error message, make sure you download and install .NET CF 2.0 from Microsoft. Make sure you install it in the main memory. Also note that, as the application heavily relies on the new, connectivity/database-related libraries of .NET CF2, it's not very easy to port it to run under the earlier Compact Framework library. (For CAB lovers, you will only need c:\Program Files\ Microsoft.NET\SDK\CompactFramework\ v2.0\WindowsCE\wce500\armv4i\NETCFv2.wm.armv4i.cab ; you can also download it from here (to avoid having to download the 24 Mbyte-long MSI installer).
Configuration
On the main set-up screen, there're some checkboxes in AND relationship. The first one, Send SMS to unanswered callers, instructs the application to send an SMS to everybody that tries to call you but his or her calls remain unanswered. Using (not disabling) the second two checkboxes, however, you may make the application not send a SMS to anyone that calls you, just to the ones that call you during an active/busy appointment.
The checkbox/text input area at the bottom makes it possible to report the end of the current appointment so that he or she can know when you are reachable again.
The Calendar tab contains only one checbox, which instructs the application to enter all the incoming calls into Calendar.
Note that the configuration settings are not correctly saved/restored, as the author also points out.
Usage
To use the application, just start and configure it to your liking. Do not click the Quit button – then, it won't send your callers any SMS. Just let it run. You can, of course, suspend the PDA while you do so and also minimize the application. This also means you can safely start it from \Windows\Startup (just like the other highly recommended application, PMRecorder – please see this article on it if interested) – if it's running in the background, it'll safely catch all unanswered calls.
Other stuff
I also recommend the author's blog here. Don't be taken aback of some of the material's being in Finnish: there's nothing really interesting in them for non-Finns (the Finnish blog posts are only about local, Finnish meetings, conferences). Unfortunately, some of the other Finnish .NET bloggers (see the links in the lower left of the page) post exclusively in Finnish, even highly technical stuff that would be interesting for non-Finnish speakers too. (Feel free to ask me in my blog for a public translation for some of them if really interested.)
thanx man .. jus tried it . this application actually works .rockinnn
I can't seem to be able to install the .net Framework 2.o on my new T-Mobile MDA - USA (Wizard)
I get the same error from .cab install or activesynch install:
"Installation error. Stop all applications and processes, maximize all available storage space, and run installation again. Support info:4"
Any suggestions?
oops
PhoneGuy said:
I can't seem to be able to install the .net Framework 2.o on my new T-Mobile MDA - USA (Wizard)
I get the same error from .cab install or activesynch install:
"Installation error. Stop all applications and processes, maximize all available storage space, and run installation again. Support info:4"
Any suggestions?
Click to expand...
Click to collapse
Did you try to install it in the main storage or the storage card? Only install it in the main storage.
Yeah, the options were "Device" or "Storage Card".
I tried Devicce but no luck...
PhoneGuy said:
Yeah, the options were "Device" or "Storage Card".
I tried Devicce but no luck...
Click to expand...
Click to collapse
I've encountered the same when I first tried to install it on a storage card. Then, subsequent installs to the main memory didn't succeed either. A hard reset helped.
I have installed it and it seems to work well. My only concern is that it seems to use the notification application of the phone rather than the call list of the phone. The reason I say this is because it puts a calendar entry in when I miss a call then adds another entry when I check the notification of missed calls.
is this what is supposed to happen? would it send 2 text messages in this case (when the call comes in and when I check the notification that the call did come in)?
thanks,
Edwin
also, it seems if I am on the phone when I miss a call it uses the name of the person I was on the phone with and not the person I missed.
Ruttensoft also has a similar program call minder - works well but not as many features as above program but you don't need NET thing - hate those addons
ethorn said:
is this what is supposed to happen? would it send 2 text messages in this case (when the call comes in and when I check the notification that the call did come in)?
Click to expand...
Click to collapse
That's what happens for me... I stopped using it because of the duplicated sms's...
meschle said:
Ruttensoft also has a similar program call minder - works well but not as many features as above program but you don't need NET thing - hate those addons
Click to expand...
Click to collapse
Tried it. Keep getting "Cound not find resource assembly" error.
Strange works sweet for me.
this is the link I used
http://www.freewareppc.com/communication/callassistant.shtml
meschle said:
Ruttensoft also has a similar program call minder - works well but not as many features as above program but you don't need NET thing - hate those addons
Click to expand...
Click to collapse
after using the Ruttensoft on my Qtek, i can no longer creat SMS, when I click on new, only a while screen appear, cannot input both phone number and Text.... did anyone meet the same ???
meschle said:
Strange works sweet for me.
this is the link I used
http://www.freewareppc.com/communication/callassistant.shtml
Click to expand...
Click to collapse
No it didn't... you didn't use this program. we are trying to give feedback to the author of this program which has so much more potential than the limited software you used.
No sms works for me even when activated. my qtek rom is 1.6.7.1 maybe that's the diff. Sorry ethorn could start a new thread if you like but may help some people if the other prog don't work for them.
Hi
I have a XDA 2i & a XDA Mini S and use a program called Do Not Disturb by Jguisoft, a very small footprint and easily configurable
no I am all for putting ideas of other products, but the way you worded it sounded like this program that Menneisyys worked on worked on your phone and that the version of his program you used was at another link.... my problem is that neither are true. Software Guru did things right and just introduced another alternative.
thanks guys
Software Guru said:
Hi
I have a XDA 2i & a XDA Mini S and use a program called Do Not Disturb by Jguisoft, a very small footprint and easily configurable
Click to expand...
Click to collapse
Can you provide a link? Did a google and no results found.
Cannot download the SMSNotifierSetup cab
Can someone please post this as i cannot seem to download it.
thanks

Shutdown an application on the PDA from PC

I developed a small application to commnicate from my PC with my PDA via WiFi
(based on the examples in VS2005)
So I can do the following:
Write a SMS on the PC and send it
Read the items from Pocket Outlook and display it on the PC
and so one
All the stuff working very well.
Now I want to shutdown the application on the PDA from the PC, because I'm very lazy.
So I've a method:
On_Close_Message_Received() {
this.Close();
}
Here I get an exception. The exception message is not very convenient,
I try to translate:
An exception message can't be shown, because the optional ressource of the assembly containing the exception message cant't be found.
How to call the method On_Close_Message_Received (via event handler from another thread) doesn't matter in this case, because I've tested that the method is really called.
In the FormClosing event I do all the work to stop communication and so one.
Has anybody an idea.
Thanks.
PS. Sorry for my bad English
Getting meaningful exception messages
In order to save space, .Net Compact Frame left out the text for exceptions. If you install the the "system resources" cab you can appropriate messages.
I think it's either System_SR_enu_wm.cab or System_SR_enu.cab for english. There are versions for other languages. For example, I think System_SR_de.cab is the German version.
If you have one of the .Net framework SDKs on your PC, you probably also have these files. Just search for them.
Good luck.
Thanks SeTok for this tipp. For my problem I got already a solution. I don't call
this.Close directly. With dllImport I call SendMessage and with ShowWindow I can Hide and Show the app on the PDA. One little problem still occurs. After hiding and again I'll show it, the app is still in the background. But I think that's a small problem and I'll find a solution. But it works really well.
Walter_vdV said:
Thanks SeTok for this tipp. For my problem I got already a solution. I don't call
this.Close directly. With dllImport I call SendMessage and with ShowWindow I can Hide and Show the app on the PDA. One little problem still occurs. After hiding and again I'll show it, the app is still in the background. But I think that's a small problem and I'll find a solution. But it works really well.
Click to expand...
Click to collapse
hi, i have a problem with my applications when i call on me.hide, i cannot call them back again using me.show
i think using SendMessage will do the trick for me.
if you dont mind, would you please post a code snippet from you application? Thank you

TyTN cellid?

Hi. I am writing a freeware social networking application based on location services ( http://www.fightersoft.ro/mts/index.htm ). Although many devices are supported, it seems that the HTC TyTN isn't. To that end I acquired one and now I am on the quest on getting the cellid in my application.
The approach that should of worked was the COM port. However, no matter what COM port I open, I get a create file error. I am guessing that maybe the internal modem uses a weird port name such as COM550 or other letters instead of COM. I know that another way of getting the cellid is by using ril.dll (or even getting the handle to the gsm modem com port). However, in WM5 this is not documented at all on msdn.com - BUT for WM6 there is documentation.
Firstly, I want to ask anyone if they have extra information about this issue and secondly if by upgrading to WM6, the using the COM port approach works from the box (usually COM9)?
hi, I tryed many programs, which have actually support for cellid information, but no one work on herm, no matter if it was WM5 or WM6. on all phones, I had before it worked correctly... phone alarm also have this functionality, but shown only something like 00-00...
This is so frustrating. Every mobile device with GSM capabilities has a GSM modem insinde. That modem SHOULD be accesible from the OS by the means of COM ports. My guess is that this port is hidden or under a different name than the rest of the HTC devices where it resides on COM9.
CommMgrPro shows Cell Id and Location Area Code correctly on TyNT
I started this thread in the hopes that people will contribute with ideas towards getting this task done. Can you reveal any technical information on how you get the cellid information?
stargatesg1 said:
I started this thread in the hopes that people will contribute with ideas towards getting this task done. Can you reveal any technical information on how you get the cellid information?
Click to expand...
Click to collapse
Sure. Ril.dll gives you access to this information and works properly in WM5-WM6. And technically is easier than manager serial drivers......
Documentation isnt included in WM5 so it isnt "official" but realky It is included. The only problem for "not official" issue is you wont get support from microsoft....
Ask me what you want...
stargatesg1, if you have searched the forum, you'd already have the answer. For instance, this thread:
http://forum.xda-developers.com/showthread.php?t=280476&highlight=cellid
has a reference to RIL API. And I do remember I told you this some months ago in your another thread...
Here it is:
http://forum.xda-developers.com/showpost.php?p=1040464&postcount=27
It was at October 26 last year!
Basically I only need the cellid and the lac. I found that msdn.com offers documentation for ril.dll for WM6. This also works for WM5?
From what I learned from msdn.com is that I should do a ril.initialize first and then I should get the cell info using a fuction that I can't remember right now. Is this approach correct?
Lurker0, I know about this approach (I have mentioned it in my first post) however, I need more information because c++ native is not my primary envoirement for developing. That's why I kept searching for a way of getting the lac-cid from com ports so that I could do it directly from managed code.
stargatesg1 said:
Basically I only need the cellid and the lac. I found that msdn.com offers documentation for ril.dll for WM6. This also works for WM5?
From what I learned from msdn.com is that I should do a ril.initialize first and then I should get the cell info using a fuction that I can't remember right now. Is this approach correct?
Click to expand...
Click to collapse
Exactly. I downloaded Platform builder to have includes and libraries.
1) Initialize Ril
2.a) Request Position explicitally using a RIL_gettowerinfo
2.b) When you initializa Ril you can pass a callback to be notified upon location changes....
Did you read the source code for RIL interface that I pointed you to?
danielherrero, I see. Regarding the callback function is not neccessary in my app - the user or the app set on auto mode searches for changes in location. Thank you very much for your info.
Lurker0, yes I did, but like I said, I am not a very experienced c++ programmer and I need some documentation to get me started. I am also very greatful for your help and I am sure that I will use information from rilclass.cpp.
Thank you both, I will post back with the results as soon as I will have any.
Good luck
Hi StargateSG,
Did you succeeded in getting MTS working on Tytn?
Rgds
I had to leave the country on a business trip. I'll get back in a few days and I will start working on the problem.
danielherrero said:
CommMgrPro shows Cell Id and Location Area Code correctly on TyNT
Click to expand...
Click to collapse
Does nothing on the Blue Angel.

Categories

Resources