Problem:
there is a GSM Module in my car. It has three functions:
1) Send alarm warnings (when someone is trying to steal the car or CD player) to my phone (XDA2) as a SMS.
2) Retermine car's location, when it is stolen
3) Remote control of Webasto heater (when standard radio remote control can't reach the car - max. distance is 800m)
Each of these function has a small problem:
ad1) XDA just once silently beeps when SMS is received. It is fine for regular messages, but not for that message saying "Someone si trying to steal your car!". So I need a different sound for received messages, depending on sender - the sound for SMS sent by my car must be louder and longer, than SMS sent by my wife! How to do that?
ad2) I'm using T-Mobile Locator service for that. I don't know if TMO offers it in all countries, but here, if you know LocatorPIN of some mobile phone, you'll immediately receive a SMS containing location of that phone. I also have a great navigation software and maps (2CDs) from TMO - so when your phone is connected to the PC, you can track location of your car (or even of your wife). But without the PC, you'll only receive a text message with approximate location (calculated from one BTS). On PC you'll get more precise position calculated from more BTSes. So I need to use my XDA as the PC - I want to see accurate position on the map. But I'm not sure if some PocketPC navigation map software (such as TomTom) is able to read the coordinates automatically from SMS in inbox. On PC you can use any GPS software with "T-Mobile Locator", because TMO provides a driver, which simulates GPS, but in fact it sends SMS location requests, reads the SMS responses and sends coordinates from them to the navigation software.
ad3) To start or stop or control other heaters functions, you need to send a SMS to your car in special format (syntax). There must be a 7-digits password for the car's GSM gate and SMS also must contain commands for the heater in proper syntax. So I'd love some application simillar to those applications for infrared remote controls - the fullscreen panel with buttons such as "Start heating", "Stop heating", "Turn winter mode on", "Turn summer mode on", "Auto switch-off after XXX minutes", etc... (all commands accepted by heater and/or climatronic). I'd define SMSes in proper format under these buttons (just once) and then I would be just pressing these buttons and XDA will automatically send the SMS. Is there such a piece of software (remote control software sending SMS mesages instead of infrared beams)?
In a worst case I would create that software by myslef. I just received a DVD with latest VisualStudio.NET from M$, I also have the devkit for WM2003. But I don't know, how to send SMS, how to read it from inbox, atc...
1 you need a 3th party program written by yourself or somebody else which pass all your emails looking for a code or frace which makes the xda react diffrently then when it gets other sms's
so you got alot of work ahead if you are doing it yourself or you may have to pay somebody money to make it or if you are really lucky there already is a program free or otherwise which you can use
2 i would look in the gsm api for any function you may also need to keep a list of locations to match what the gsm provider give you with something you can use for anything
not to mention using that list to make some map program know where you are at
3
well here all you have to do is make a today plugin which auto send predefines sms msg when you press them
i would think that all these wishes would require some programming some of them some serious programming
of cause i could be wrong and there already is a super tool which does all these things and make toast
good luck
I can't believe there's no such app!
Have you tried doing a search ?
I am pretty sure that exactly the same question came up a little while back.
Rgds,
Rob.
What is the GSM Module? Also does it have a GPS module as well and can you connect it to the XDA II to give a GPS feed for Sat Nav purposes?
I am after a device similar to the one you've described but I want it to also feed GPS data.
Hello.
Has anyone implemented an application, using lineSendUSSD() and
lineGetUSSD() functions from cellcore.dll?
I would be very interested about Smartphone 2003 (Qtek 8080), but working code sample on PPC would do just fine. I can take it further from there
The problem itself is very simple:
- I need to open the line and send a USSD command, for example *100#
- I receive sort of menu, i need to parse it and send a specific command,
like 123
- I read the response to this command and end USSD session.
I have managed to do it with 'one step query', similar to '*100*123#'. Program makes the call (using lineMakeCall) and catches the LINE_USSD event successfully, after that lineGetUSSD() retrieves the correct data.
The LINE_USSD event seems to be generated only in case of operator ending the USSD session.
lineSendUSSD() claims, that everything goes OK, but nothing happens.
I hope someone has experimented a lot further with this functionality and can help me...
lineGetUSSD
Were you able to catch data using lineGetUSSD? Can you please post your code sample here?
I was able to open the line and send USSD. I was able to get LINE_DEVSPECIFIC message via lineGetMessage when network sends the response, but after that lineGetUSSD() return LINEERR_OPERATIONFAILED. At the same time popup with the USSD response appears on the screen.
The questions are:
1. What are the parameters for lineGetUSSD call?
2. How I can disable standard USSD listener?
Thanks in advance
i can't get ussd message also with lineGetUSSD function. in smartphone, the return code is LINEERR_OPERATIONUNAVAIL, someone say it is caused by program signature. but in PPC, the return code is LINEERR_OPERATIONFAILED, i have no idea about this error.
i can send ussd data with lineSendUSSD in PPC, but can not in smartphone, the return code is LINEERR_OPERATIONUNAVAIL
is anybody know how?
A lot of people trying to write programs that can transfer data over a phone call seem to end up giving up because they think their device is not capeable of it. I put this little app together to make it possible to demonstrate the data transfer on ppc phones. If this works on your device then you can implement similar functionality.
download bellow:
http://odeean.veritel.com.au/ORDTapiUser/myTapiUser.exe
It will only work if the program is running on both the calling and answering ppc at the same time.
Instructions:
0)Make sure the phones on your ppc's are turned on.
1)copy the exe to both devices.
2)run the exe on both devices.
3)press "startup" on both devices.
4)(both devices) a series of dialogs will pop up, if you see one labeled "celular line" press yes. If you know your phone uses a line called something else press yes to that instead. If you press no to everything the program will try to get the correct line, but may fail. If you want to choose again restart the program.
5)on the calling device put a phone number in the edit box at the top. I am no expert on numbers around the world so I have just let whatever you put there go straight in. If the number fails its got nothing to do with this program.
6)on the calling device press "dial". wait until it says connected.
7)on the answering device the incoming call will be shown. If a caller id is available it will be displayed. The ppc inbuilt phone is not stopped by this app so you will not be able to press the answer button. Instead wait (normally the default is 3 rings) and my program will answer the call itself.
8)two way communication is now posible. Data sent from the "data to send" edit box on one ppc will be displayed on the "received data" window on the other ppc. As this is a simple program the display will just show the last 25 digits to keep the latest info in the window.
9)when done press "hangup" on one of the ppc's
The data is not just sent in a direct way. It gets broken up into packets and they are timed as they are transmitted along with some error checking. The timing is rather generous so it slows the transmition down a bit, that along with all the actions being displayed to the user.
This works well between my xda mini and xda I. It dose not work on windows mobile 2005. Because of the expense involved in phone calls it is dificult to debug. If any messages do pop up it would be nice if you could post the number on the dialog and a description of what was going on. This program cost me $150 in phone expence, so enjoy.
.
could you post the code , please ?
i have to make an application that need to receive file from server with data call.
(excuse my english)
best regards
I will not post the entire code, this is to let you know if it is worth the effort trying. Almost everything contained within this program that is related to tapi can be seen in posts already on this board. If you have a specific question I would be glad to post code relating to it.
When you say you need to retreive a file from a server, you should know that tapi data calls do not go through the mechanism that ras or sockets use to let the operating system get a ip and port for communication. Your program is responsible directly for the communication. It would be terrific if you could write code to replace the missing incoming ras components from pocket pc. I have not so I could not show any code for that.
If the server you want to connect to is not a pocket pc based device, ie it is a normal pc, then tapi is not the best solution for you. I suggest using sockets, its designed for that kind of thing. ppc to ppc tapi data calling is like a last resort kind of programming. It is forced on us because either the phone networks don't give us usefull ip's for sockets or the api's are not fully implemented in ras. Alternately you could look into using the compact framework 2.0 and c#, I think I read somewhere that incoming ras would be included there.
just one question...your application uses TAPI, isn't it?so TAPI is supported by mostly different mobile device?Am I right?
thanx
ppc 2000 supports tapi outbound only.
ppc 2002, wm2003, wm2005 all support tapi inwards and out.
The hardware can vary, I only have the devices listed in my sig. For all of those (that are phones) tapi data, in/out is fully functional. If you are using a phone card (ie one that plugs into the expansion port) its capeabilities may be different. Often those only support gprs (not tapi). If you have anything with XDA in the name its OK.
Thank you for your advise but I have a specific problem using HTC
Wizard. I need to connect a server using a V110 modem in order to create
data link between a PDA and this server. I developed a code (VB .net)
for PDA and independent cellular phone using standard AT commands. I
tried to develop a similar approach with HTC Wizard but it seems it is
not possible to send AT commands to the modem (cellular line). To
develop your code you should have solved this problem using TAPI. Could
you explain me how to initiate the cellular line so that I could create
a V110 link.
Thx
I understand more clearly what you want to do now. Unfortunately I have never attempted to use at commands. You said I should have solved this problem in my app, but the point of using tapi is to not have to deal with at commands. Tapi is good for sending data, its my "guess" that whatever the commands you want to send could be generated by tapi to look like whats expected on the other end (assuming the typs of transmitted data match. eg dose the size of one at command correspond to >= the size of one char?).
I think that you would not be able to communicate directly with the modem with at commands until you have stopped tapi/ril from using the port. Again, I have not done this. Search this board to find how to do that. Once you have, try your origional code again. I doubt your normal phone functionality would work after that.
Sorry I could not be of more real help.
I dont have PPC but I do have smartphone instead..
Does the program require CSD line or can use normal GSM? Can you create one similar program that can be used in Samartphone wm5?
It uses normal gsm, ie a voice call. The underlying class in my program can probably work on smartphones, but I do not have one. To be honest I think smartphones are dying. Normal ppc phones are the same size now so to put too much effort into smarphones seems less attractive.
My PPC wm5 cannot dial, the other PPC show CONNECT but...
I was using HP Ipaq and Dopod PPC, The HP Ipaq when dialed it show dial number but nothing dialed to other party. Latter Dialed from Dopod It was shown CONNECT but no connection is establish to other party...
Could you give me the reason. If I am using WM5 is the case, what OS that you are using?
How about using CSD line instead could it possible running properly? Do I need to install certificate and signing the application(exe) as to make the program running in WM5, is what happen to smartphone certain API under privilage zone.
It is my mistake the MyTapUser.exe find in both HP and Dopod
I am sorry since I just bought the SIM card and the provider put some procedure before I can use the line. After consulted the shoper, The shoper activated it for me. Walla! I tested again it worked fine...thanks to you...master!
Some networks can also cause problems. I use vodafone and its 100% ok but I put an optus prepaid in and nothing happened at all. If I understand correctly the network should only be interested in the bearer mode. I use LINEBEARERMODE_VOICE - the same as a voice call so it should be ok. When experimenting with that sim, they will not do anything with a call that contains a LINEMEDIAMODE_DATAMODEM in the call params. Very strange considering they have no use for knowing this.
I am pleased it worked for you. This is realy very old and I will be removing it from my site soon when my new stuff comes out. Even if the myTapiUser seems to work, remember that it is not checking the contents of the transmition. Bad weather for example could cause information to be missed. There are probably problems receiving on the HP that you may not have noticed. Is it the same HP made by quanta? If the HP can receive data after answering an incoming call I would love to know about it. Can you confirm this?
This is my report..
I am using prepaid no csd line.
Device Info
========
1.HP iPAQ TI OMAP1510 - 2003 PPC(memory-57.04MB)
2.DOPOD PXA270-520MHZ WM5(5.1.1..1700)(memory-50.19MB)
HP Dialed Dopod
===========
- HP received data from DOPOD immediately after data was sent.
- DOPOD received data from HP after next sequence of data transmit from HP(sometime error 0052 occur)
DOPOD Dialed HP
============
- HP received immediately data from DOPOD
- DOPOD receiving data from HP after the next sequence of data transmitting.
- error trigger 0052(assembly packet...) in DOPOD
data send perfect 100% correct...
May I know whether, If this method can be used sending digital stream of data, such as, compress voice or image?
Yes it can. I have not done voice because the flow of the transfer would be very different from what I want. If you want to see voice transfer in action over data calls google cryptophone.
In about 15 hours I will be releasing my program. Come back then to see what it can really do. I need to make a page for it on my site and get screen captures etc. Its 2am here so I can't do it now.
incoming call how to get connectted?
I can dial to the receiving phone. My receiving phone use ril to detect the incoming call. After the detection, I can press the green button to answer. My problems is why everytime I answered the call it failed.
I did like below procedure, when ril detect the incoming signal
-lineOpen
-lineAnswer
-lineGetID
Is it the correct way to answer the call? Why 'lineOpen' produce error result?
Can You give the correct way to answer the incoming call for modem like communication.
Thank in advance,
As far as ril goes I know little. You should have opened the line before the call was offering, this includes negotiating the version of tapi to use then finding the correct line then using lineopen. All this has been covered in other threads. The values returned from the api calls are self explanitory so checking them is useful.
The use of linegetid is less straight forward but again it has also been covered in other threads. The thing to remember is that after you use lineanswer to answer an offering call, do not imediately call linegetid. You need to wait for the connected line state. Also check the dwCallbackInstance when looking at line states because as I found with the atom, you need to be sure the results are relevant to your program.
I know that what you really would like is some code but its too complicated to sumarize in a few lines. The best thing to do is start from the beginning ( lineInitializeEx ) and work to the end result ( LineGetID ) checking your errors along the way. You will need another thread to do the checking of the state of the line, and it will have to be properly synchronized if you don't want unexplained crashes. If your program is answering the call, don't touch the phone buttons. When you answer the call cprog.exe owns it and you will not be able to access it. Also is there a reason you are mixing ril with tapi? I would guess it complicates the issue, why not just use tapi or just use ril?
Ril or TAPI
Yes! You are right, either one can be used. I am a little bit confused about the two. Just remember I am new to this kind of development. After sometime I am testing the use of RIL and TAPI both can give the same answer, but better use TAPI from the beginning. And I have to kill the cprog.exe and RegisterHotKey for green button first.
I want to ask you something. Why after several attempt of LINEDEVSTATE_RINGING event, there is no LINECALLSTATE_OFFERING trigger, as this event use to lineAnswer? And what should I do when the LINEDEVSTATE_RINGING event trigger?
Thank in advance
Sorry, I may have been a bit loose with the terminology. Its a while since I coded that part - Line states, line messages I mean. LINECALLSTATE_OFFERING is obtaine this way....
First off, use the event notification method, not the callback window. Wait for the event using WaitForSingleObject then Use lineGetMessage to get a LINEMESSAGE. If the dwMessageID of the LINEMESSAGE is LINE_CALLSTATE then check what call state it is (eg is dwParam1 equal to LINECALLSTATE_OFFERING etc). You can then take action depending on what you want to do, like answer when offering.
I never see LINEDEVSTATE_RINGING because it is not needed by my app because the line messages suffice. Killing cprog.exe on a users device before its neccesary could lead to missed calls, also when it is not running the caller just hears the ringing tone so it seems like they are being ignored. I have also found that the os restarts it again anyway after a while (actually it seems like it dose this after the device has powered down and when a new call comes in).
What is the different when using event and callback function
What I understood that we can use either event or callback function to gain message from TAPI. I am using the callback function to get the LINECALLSTATE_OFFERING, which is different than you, where you are possibly using the Event method (lpLineInitializeExParams->dwOptions = LINEINITIALIZEEXOPTION_USEEVENT - I think you are using this one!).
I still cannot get the status of LINECALLSTAE_OFFERING. Some of the events caught are LINEDEVSTATE_CLOSE and LINEDEVSTATE_OPEN. What is the meaning of LINEDEVSTATE_OPEN stated in the MSDN line is open by other application, does it means that cprog.exe is conqured the line?
The reason I said to use the event method is that I have only done this with it. I could not give any advice about the call back method (although i guess it should give the same results), if you can get it to work then its fine. How are you getting LINEDEVSTATE_CLOSE & LINEDEVSTATE_OPEN? LINEDEVSTATE_XXXXX have nothing to do with LINECALLSTATE_OFFERING. Are you checking for a LINE_CALLSTATE in your call back? I think in the call back method this should be sent to your program.
ie
case:LINE_CALLSTATE;
{
if(dwParam1==LINECALLSTATE_OFFERING)
{
//it is offering
}
}
break;
All LINEDEVSTATE_OPEN is telling you is that cprog is also using the phone to wait for calls (normally cellular line).
If LINE_CALLSTATE it means a call is comming and you can find out about it (eg if its offering). cprog.exe dose not do anything to the call unless the user presses a button or taps on the notification. It dose nothing to the line, cprog will be aware of the same messages that you are and if you set up tapi to use data on a line then unfortunately cprog will also ring when data calls come but other than that there are no issues with it to worry about. If you need proof of this just donwload the current version of GSMbeam and in the settings change the spelling of cprog. When a data call comes in you will see GSMbeam monitoring it then the cprog notification will come up over that monitoring the same call. The program that answers the call first is the one that owns it, until then its not altered.
Ok this is a long shot but I'm hoping someone may be able to answer this question.
I need to know if it's possible to develop an application to replace the native sms messaging facility in Android (I would like to know if it's possible on other platforms too but I use froyo on my HD2)
according to GSM technical specification http://affon.narod.ru/GSM/GSM0340.pdf as long as the SMSC supports it then it should be possible to set the TP PID to create replacement codes in an SMS.
This allows you to send an SMS to someone with a code set and then send another message to them with the same code. The phone should recognise the same code and overwrite the message.
There are already ways that you can do this using a GSM modem and SMS gateway software such as Nowsms, Bulk SMS and Kannell etc. There is plenty of information on google. however these all require you to have hardware and send the messages from a computer.
The question I have is, would it be possible for someone to develop an app which allowed the user to specify if the sms was sent with the code set, directly from the handset?
Thanks in advance!
Just a bit of additional info from the nowsms support forums
“PID” – Specifies a protocol id field to be associated with the message. The web interface of NowSMS includes checkbox settings for specifying a “Message Type” value. Setting one of the “Replacement Type” values means that if the gateway sends a subsequent message with the same replacement type value, this will replace any previous messages that were sent by the same sender with the same replacement type value. When submitting an SMS message via URL parameters, replacement type values 1 thru 7 correspond to settings of PID=41 thru PID=47.
http://www.nowsms.com/discus/messages/1/13536.html
Also it seems like it may be possible, at least on winmo
http://msdn.microsoft.com/en-us/library/aa921493.aspx