Location Alert APPLICATION - Touch Diamond, MDA Compact IV Themes and Apps

A simple application to alert user when he reaches a destination. It uses the broadcast messages being provided by network. e.g. HUTCH, INDIA. So depends on your network. have seen lot of post regarding this issue so here is my application. Requires .NET CF 2-3, Tested on HTC TOUCH. copy the EXE to any location on your mobile. for alarm the location of wav file should be /windows/Alarm5.wav
You need to setup your phone settings:settings->phone->more->enable broadcast channel, create a new channel name with channel number 050 to receive broadcast message on your windows mobile.

Is it still in development
Hi Mohit,
Curious to know if the location alert app in active development?
Thanks,
Jamal

Related

Data Call between two XDA's

Hi
I am new to this form.
I had a look at the tsril.zip example as it seems from this forum that to make/receive a data call the ril is the only option. Unfortunately the documentation for ril is nonexistent and I want to ask if someone has done an example of a client/server data call, data transfer between to XDA's.
Thanks in advance.
Anton
It all depends on what type of data you want to transfer. I have never used RIL so I don't know the advantages of it, over the normal programming interface. I say normal, not thinking there is anything wrong with RIL but the little I do know is that RIL is operating system level and is normally hidden from the application programmer. There must be times when RIL must be used if Microsoft forgot functions in the normal APIs.
However I would say that for a data link between 2 devices then RAS seems the way forward. One device would be the Server and the other the Client. I have only ever programmed RAS from the client side, making a Telnet link to an already running server.
I just had a look at the help on Embedded Visual C++ 3.0 and under 'Creating a TCP Stream Socket Application' it explains the server side and then links to the client side. Have a read there.
RAS is not an option as it is a server consept, which I think does not even exist as a service on the desktop windows os let alone on a Pocket PC.
What I am looking for is something similar that you would be able to do with a landline modem or a gsm modem connected to a serial port of a pc (even a usb modem) which is to send AT commands to make/accept a call and then to make use of the serial port as if it is an io stream. This is possible on windows, linux using either c#, c++ or java. I can even do this with an embedded gsm module like the siemens TC45 java module.
What I can not understand is why Microsoft and the XDA suppliers (I am using a Qtex running Pocket PC 2002) is making it so difficult to make/answer a data call and let you run your own protocol over the connected stream.
RAS (Remote Access Services) is built into all Windows Operating Systems, including Windows CE. Did you look up the help example I pointed to ? What you do with RAS on an application level is for you to code but the connection itself is handled by the operating system.
As to making a connection similer to a modem and using AT commands. Then no you can't use AT commands directly, but you don't need to. To get that type of connection you need to use TAPI. Once Tapi has made a DATA_MODEM type connection, you use the TAPI callback connect event to then ask for a file handle that you can use with the normal WriteFile and ReadFile commands.
I already have something on this forum about that see:-
http://forum.xda-developers.com/viewtopic.php?p=7857&highlight=#7857
The problem is not so much making the data call but it is accepting/answering the data call that I can not get working on the XDA
Not sure if this is your problem, but in Australia they have a seperate "data" phone number for the same SIM. If yo call one number you get voice, if you call another number you get data on the same sim. Not sure if this may be effecting you.
I just looked into all this ras stuff a bit deeper, and yes I think I may of been talking rubbish. Although RAS does exist in PPC2002, it can't see any functions that allow the device to answer the line. I can see that PPC2003 has a Ras Server and RasIOControl that looks like the answer there.
Also looking into Tapi, I can't see how you answer a data call using that.
So I now understand your problem. It seems PPC is made as a client device.
Is GPRS the answer ? With that the link is always present and then you can use the built in Ras functions on seperate devices. Since you only pay for data actually sent then would it matter if the network link was always present ?
I have only worked out Tapi and Ras from the client side so I have never had this problem, but I agree it is an interesting one. I will have a bow out of this thread for a bit and see if anybody else knows how to Answer a Call.
Thanks for trying.
GPRS is also not the answer as you need a server in between that both XDA's can connect too and use as a router as the XDA's do not get fixed IP adresses but actually a NAT adres from the APN so you can not connect directly between the two.
Now that's an interesting thought, how about using some free web space to act as a pigion hole for your data ?
Believer: A seperate number? How do you know this, and what would the number be?
I can actually make two XDA connecting to each other using TCP. The trick is that I have one client always connect to a server to register it IP address with an ID. Then the caller send a query to the server to look up the callee's IP address.
In this way, accept() and connect() work fine.
I am using AT&T network and not sure about if other networks behave the same.
I wrote two application using TAPI. One is ModemDial and the other is ModemWatch, if I make a voice call the ModemDial dials the number successfully and ModemWatch reports that an incoming call exist. But when I change the behavior of call to DATAMODEM, the ModemWatch couldn't track any incoming call.
Is there any one, had some experience with pick a call for DataModem?
Best regards,
A. Riazi
riazi said:
I wrote two application using TAPI. One is ModemDial and the other is ModemWatch, if I make a voice call the ModemDial dials the number successfully and ModemWatch reports that an incoming call exist. But when I change the behavior of call to DATAMODEM, the ModemWatch couldn't track any incoming call.
Is there any one, had some experience with pick a call for DataModem?
Best regards,
A. Riazi
Click to expand...
Click to collapse
In your ModemWatch application make sure you are calling lineOpen with dwPrivileges (the 7th parameter, 1 based) equal to LINECALLPRIVILEGE_OWNER and dwMediaModes (the 8th parameter) equal to LINEMEDIAMODE_DATAMODEM.
If you're able to answer a voice call successfully, making these changes to the ModemWatch application should allow you to answer a data call.

XDA2:Is there some software handler possible on GSM voice?

There's a need in mobile PC/GSM device which allows to put a software filter on voice which is transmitted via GSM network when talking.
Can it be done on XDA2 and if not which models will you suggest?
The filtering needs to be done on digital signal not packed to GSM packets, in both directions, during the talk - in realtime.
Thanks in advance.
Re: XDA2:Is there some software handler possible on GSM voic
This is impossible on XDA1,2,3 and Anextek SP230. Probably this is a limitation of PocketPC 2003 (even SE) OS. Wait for a device with a PPC 2005, maybe it would support this.
sure
it IS possible.
but you must delete default Phone application and services. and then you can run your own implementation of phone features with filter or anything other inside the voice channels.
please note: default Phone is invoked by several services, you have to lock all these ways.

Useful Utility for PocketPC - Comments please....

I connect to 4 or 5 different wireless lans in the various places I work and also to GPRS.
For each one the connection to the internet will be with a different provider and therefore the SMTP server I need to use for sending mail will be different, or may even be a POP service running on a local Exchange server.
This is a pain. I have written a utility that solves this problem by allowing you to switch smtp server for all your mail acccounts in any mail client quickly on the fly.
Basically you configure any mail clients to use an smtp server called virtualsmtp and then you set up all the different smtp servers you use by IP address in the utility.
The utility sets a host record in the registry for virtualsmtp pointing to whichever smtp server you want to run.
It's called SMTPSwitcher (very imaginatively) and runs from a notification icon in the system tray.
It's a bit flaky at the moment (mainly windowing problems and issues with the NotifyIcon) and I also can't delete the server entries because RegDeleteKey always returns error 5 : Access Denied.
If anyone wants to test it or has any ideas or comments please post here.
I'd be happy to test it for you
nice software. I was wishing for it last thursday when I had to send mails from the wifi access point of a friend.
I would be glad to test it (qtek 2020, windows mobile 2003), once my phone decide to work (it did a quick 3 seconds journey in my wc today. oops)
OK. I can post the app here.
1) There is no install program at the moment, just an exe file.
The best way to install is to just copy to your PPC.
You can run by clicking on exe or create a shortcut in your startup folder.
2) It is written in c# for the .NET compact framework so you must have the .net CF installed which you probably have anyway.
3) The biggest problem at the moment is that the Remove button does not work properly.
If you need to delete entries from the list you will need to use a registry editor. The entries are stored in HKEY_LOCAL_MACHINE\Software\SMTPSwitcher.
4) Sometimes the app stops responding and wont display its form when you click on the icon. If this happens you can try to terminate it using the Settings->System->Memory->RunningPrograms option or do a soft reset.
I will be trying to fix the Remove button and unless I can find a fix for some of the problems that cause the app to stop responding I will probably remove the feature that lets you run it as an icon.
I had this problem ages ago where i would go to a friends house or a wifi hot spot but of corse could not send email.
To get round this i purchased a domain name and email account with easyspace. this works well for me, as it done not matter how i am connected either GPRS, or WiFi i can still send emails from just the one account.
The only problem just noticed the other day is if i use orange UK it works fine on GPRS connection but not if its a 3g connection, Orange are looking into this.
Please dont take this as critisisum your program is a excellent idea, I just like the idea of not having to take any notice of how i am connected and email working
John
Subscribing to a roaming smtp service is another way round the problem as is using webmail.
My problem is that I have 5 or 6 mail accounts in different domains and a lot of roaming smtp services will not relay for any domains other than the ones you have with them.
I have uploaded a new version which has a DNS resolver built in.
Instead of typing in the IP address of any smtp server you want tp use you can enter the name and it will look up the ip address assuming you are connected to a network.

How to natively (C++) receive notifications when there is an Internet Connection ( 3G

Hello All,
I'm developing a C++ application for the android that needs to talk
with a server whenever there is an internet connection available. If
the internet connection is cut-off the application needs to "sleep" in
order to reduce the battery consumption. If the internet connection is
back the application should "awake".
I'm searching for any kind of event notification available for C++. I
don't want to use pooling.
I know that in java we receive these notifications from the
connectivity service.Can we trap them natively?
Thanks,
Carlos B.

Advice on the choice of querying a remote DB

Hello everyone,
I come to you for some advice about an application I'm developing for Android 1.6 and higher.
Specifically, this application must be able to query a remote MySQL database and display the retrieved data. It need also be able to UPDATE data on this databse and that is where things get complicated ...
For selection queries, I wrote a small PHP script on the remote server that retrieves the desired data in the database and encodes them in JSON. From my Android application, I have no problem to retrieve, process and display them.
Now I wonder about the solution (if there is one ...) to run UPDATE from my application on the remote database. For now, I see only two solutions:
- Develop a webService on the server with an update method. Several problems with that: it seems webServices on Android are not easy (not native, have to go through external libs). Moreover, as it's UPDATE query, I want to make sure nobody else can use this webService.
- Alternatively, write a PHP script that makes the UPDATE and call it via HTTP. Same problem as webService: I want to secure this call to be sure that only I can use this script. These scripts can be integrated into an application already present on my server and which is secured by login / password. So, if it is possible to manage PHP sessions from Android, it's won! but Ican't find anything about it ...
What do you think? Ideas?
Thx!

Categories

Resources