TyTN cellid? - 8525, TyTN, MDA Vario II, JasJam General

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.

Related

Unstable AT-command replies from GSM-radio

I'm programming on a program that uses cell broadcast messages to determine your position. (http://gknavigation.de) - It was a project at "youth research" this year.
It is based on an idea of W.Back...
Now I want to get rid of a external gsm phone at the position determination, because the new Pocket PC Phone Edition have a integrated radio functionality.
I've written a small terminal-prog. for the XDA (http://gknavigation.de/beta.htm), which let's you sent modem-command into the gsm and recieve replies.
On the XDA2 it is working well until the line "AT command interpreter ready" is displayed on the terminal. After that common AT-commands like "AT+CBC" won't work any longer, and result with an "ERROR".
The line (and the errors as result) seems to apear after a few seconds the port is open.
I think I have opened the port and initialized the shared use of the gsm serial communication well. :?
Check out that Sourcecode please:
The .DLL-file-project, which is written in C++ and opens/closes the port:
http://mcflown.net/eVC/XDAcom_func/
The visual basic project, which is for reading and writing operations, and user interface:
http://mcflown.net/eVB/XDAterm/
Greeting and sorry for the hopfully not thaaat bad englisch!
F. Wetzel[/url]
Hasn't really nobody any suggestions?
:?
Florian
Summary
Hi,
Just wanted to let you know that I will have alook and see what I can do
for you.
Have you got a break down of what you are trying to achieve
Click to expand...
Click to collapse
A summ ups are written in German, sorry!
But i will try to describe it briefly:
My prog recieves the messages of the cell broadcast channel 221 by a mobile
phone connected via any inteface. (Bluetooth, IrDA, RS-232)
In Germany this channel contents data about the position and sending
direction of the mobile (fix installed) stations. With some (or many) tricks
i'm able to determinate your own own position up to a 50 meters. (in best
case - depending on the number of installed stations)
This is drawn on a map.
The prog is running under PPC and PC, but the PC version is less
interesting, because the PPC is more portable.
Newerdays, the PPCs have a integrated GSM radio module, so that it should be
possible to recieve those CB-messages vie the internal modem.
By that the users of XDA/MDA/... in Germany would get an alternative to GPS
for navigation/orientation without buying new hardware!
Lateron this prog is perhaps compatible with Tomtom. - I'm checking how to
do it!
Greeting, and thanks in advance!
Florian
hey xda internal access
Hey man i must say i respect you , you have done great work !!!
I am currently working on xda2 as university project and i need to access internal modem of xda ... so might need ur help ... i would wanna help u too and i probly will ... just letting u know i'll try a bit on ur prob and get back to ya ...
any advice ou can give me to access the internal modem ??
great job ! talk soon
On the XDA2 it is working well until the line "AT command interpreter ready" is displayed on the terminal. After that common AT-commands like "AT+CBC" won't work any longer, and result with an "ERROR". Crying or Very sad
The line (and the errors as result) seems to apear after a few seconds the port is open.
I think I have opened the port and initialized the shared use of the gsm serial communication well. Confused
Check out that Sourcecode please:
Click to expand...
Click to collapse
after read your source, i think:
- set Sleep time between each other AT commands > 100ms for response time of GSM modem
- try to close the com port and re-open it before sending another AT-command.
- try to use only RIL port or COM2, don't open them and use them at the same time.
hey i read through the code its good but i dont see how u get "AT Interpreter Ready" in the VB app ... i looked hard !!! can anyone enlighten me ??
I guess "AT Interpreter Ready" is the answer from device.
AT Interpreter Ready is sent by device after radio resets itself. You should never see this reply.
ok - when i get "AT interpreter Ready" from my terminal it allows me to send an AT commands, so in a way i'm guessing that i should get it -
Indeed it happens when the GSM resets does anyone have more explanations on how it appears ???
i get "AT interpreter Ready", too.
Compile
Could someone compile the DLL and EXE and post them here in one zip? Would save me having to install Visual Studio !

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.

CellTracker Alternative

I don't know where else to post this....I found this while looking for an alternative to the SPV Developers CellTracker app. It's an app called NiceTrack...the screenshots tell the rest of the story:
http://www.nicecuppa.com/nicetrack.asp
Background info: http://www.ascendingangels.com/nicecuppa.com/nicetrack.asp?story=1
Screenshots: http://www.ascendingangels.com/nicecuppa.com/nicetrack.asp?story=2
Download: http://www.ascendingangels.com/nicecuppa.com/nicetrack.asp?story=3 (Version 1.2)
The source code for that app can also be downloaded from the Background Info link.
The SPV Developers CellTracker app (Beta version only, hasn't been updated since December) for PocketPCs is located at the way bottom of the page:
http://www.thelogster.34sp.com/celltracker/
NiceTrack updates the tower changes in real-time whereas CellTracker does not. NiceTrack also shows the dbm signal strength on a cool chart and it also includes a logging function that allows you to rename the cells your phone has connected to while the app is active.
Signal strength chart: http://www.ascendingangels.com/nicecuppa.com/images/nicetrack/main-page.gif
Here are a couple hints based on my experience so far:
1) In order to fully save the renamed/logged cell sites, you must first tap Save next to where you renamed the cell site. Then you must also tap Options/Menu --> Save (extreme lower left) to save all changes since the app was launched.
2) Use Menu --> Exit to completely close the app.
I have tested this for use on my MDA II w/Windows Mobile 2003. I don't know if the app is compatible with WM5 PPCs or regular Windows Mobile smartphones.
Enjoy
Thanks for posting.
This software has been discussed before, and it is great:
http://forum.xda-developers.com/viewtopic.php?t=3347&highlight=nicetrack
However, I believe people are having difficulty converting it to WM5 (when I last checked). But great stuff either way.
V
Hi there,
Sharpstuff (NiceTrack author) here..
I've just bought a T-Mobile MDA Vario and have managed to get it working on that ( WM2005 )
The problem was that in the older phones the GSM modem was on COM2 and on my Vario it's now COM9. I've made the Com port configurable now, but it's still not 100%.
You can download it from my site www.nicecuppa.net
Let me know how y'all get on.
Cheers
-sharpstuff
Good stuff sharpstuff Wish I had a gps!
V
sharpstuff said:
Hi there,
Sharpstuff (NiceTrack author) here..
I've just bought a T-Mobile MDA Vario and have managed to get it working on that ( WM2005 )
The problem was that in the older phones the GSM modem was on COM2 and on my Vario it's now COM9. I've made the Com port configurable now, but it's still not 100%.
You can download it from my site www.nicecuppa.net
Let me know how y'all get on.
Cheers
-sharpstuff
Click to expand...
Click to collapse
Sharpstuff, you have an excellent app here. I had to search for a bit to find it but in the end, I'm quite glad to have it . I also like the pun you have for your site...it's quite distinctive since even as a German-American, I know when someone says "cuppa", they normally mean the cup of tea .
Keep up the good work and thanks for taking the time to develop such a great and invaluable app .
oooh.. *bookmark*
Do you have a regular Donate button somewhere? I see the shop, but I'd rather just get X amount straight to you, and not have to be awoken by some crazy delivery guy at 8am for a mug
Thanks for the kind thought...
But, I enjoy doing this stuff, so just click my google ads and I'm happy!
;-)
Got this to work on my 8125, almost... Clicking on 'add' under events causes it to crash with the following error:
NiceTrack.exe
NullReferenceException
Application::Run+0xf
MainForm::Main+0xa
....bummer - so close!
You need to select an event type eg. "Flash backlight" then click "add"..
Needs some validation there.. Plus, the events side of things isn't very useful at the moment, I need to implement some more event types.
Cheers
I installed it on my qtek9100 but it doesn't find a GSM-modem at all.
Also a Qtek9100, EN - found it on COM9 just fine
What would be really neat would be an event "Show Picture". That way it would be easy to make a make-shift map tracking thing. Simply grab a picture of the map off the internet, plunge a big dot on the map where you got the cell, save as image, and have that image displayed when entering that cell %) GIF files on the storage card, shouldn't take up too much space
Alternatively a full-fledged mapping thing could be developed, but that's a lot more work *nod*
@sharpstuff hey I installed it on my XDA EXEC, but when it scans for com and reaches com9 it just freezes...any ideas?
Hi there,
I'm having some problems with the detection code, and general functionality on WM5.
I am looking into it and will post a new version up ASAP, sorry for the problems..
stop being sorry and add that donate button *keeps clicking google ads once a day but hopes google won't start ignoring his IP address for excessive clicking...*
N!co said:
I installed it on my qtek9100 but it doesn't find a GSM-modem at all.
Click to expand...
Click to collapse
After a soft reset its working fine on COM9. Nice app.!
sharpstuff said:
Hi there,
I'm having some problems with the detection code, and general functionality on WM5.
I am looking into it and will post a new version up ASAP, sorry for the problems..
Click to expand...
Click to collapse
So is Release 1.3b a partial fix for WM5 users? I installed it on my MDA II and it detects my modem on COM2 without any problems. Both 1.2 and 1.3 seem to work on WM2003 PPCs.
http://www.nicecuppa.net/
http://www.nicecuppa.com/download/NiceTrack_Release_1_3.zip
TIA
Yep, it's an intermediate release. Basically, it reminds the user on startup to set the Com port in settings
I'm working on v1.4 at present, this has more error checking on the GSM code, and multi-threaded com port detection so the whole app doesn't hang
For what it's worth - it seems to randomly lock up on me - requires an 'end task'. Sometimes when this happens, and I try to fire it back up again, I just get an empty message box dialog; no title, just the close button.
ZeBoxx said:
For what it's worth - it seems to randomly lock up on me - requires an 'end task'. Sometimes when this happens, and I try to fire it back up again, I just get an empty message box dialog; no title, just the close button.
Click to expand...
Click to collapse
I get that messagebox at random even after I closed the app and its not in the list of running programs. Strange...

Reading the Cell ID (not displaying cell messages)

Can anyone point me in the right direction for a bit of code to read the current CellID from a windows mobile phone? (Hermes - but I'd like to make it work on all phones if possible and release it here)
I'm trying to reimplement an application that I had on my Symbian phone that was incredibly useful and for it to work I need to read the Cell ID..
When I search I find a few app's that do it and display the info.. but that's not really what i need.. I just need to read the Cell ID itself into my code. (none of the apps i've found that do it have sources unfortunately)
TIA, Sam
You can use RIL_Initialize. .. and RIL_GetCellTowerInfo.. This is an asyncronus call .. so you'll need to implement a callback/ handler for this..
It's worth to be noted.. that i believe RIL is a restriced API .. so you'll either need to unlock your phone.. or add a trusted certificate that you sign your dll/exe with..

Non GPS location WM6.1

Hi I'm developing an application for WM that will use location. I don't think I will have too much trouble with implementing GPS but does anyone know of any information to get the devices rough location without GPS using GSM towers or however google maps 'my location' works when GPS is turned off.
Also a quick question I have an idea for what I think is a simple (not related) application and I think such a useful idea that I'm surprised it hasn't already been made. My question is if I ask about how I may go about creating the application is there any chance of someone thinking its a good idea making it themselves and somehow copy writing it so I can't make it myself?
many thanks.
Just bumping in case anyone can help.
As far as I know GSM triangulation only works when your service provider allows it, which is a rarely the case. Google uses the internet via GPRS or WLAN to estimate a user's position. So you'd have to find out how to get the node information to display it on a map.
edit: try to use IP tracing
I think Google finds your location from your CellID. Using the devices that have both GPS and Google Maps installed, it builds up a CellID database which is used to locate phones when no GPS is available.
You can do something similar by a) getting the device CellID and b) using the OpenCellID service to "translate" the CellID to a location.
Look at this:
http://dalelane.co.uk/blog/?p=241
And this:
http://www.opencellid.org/api
Also check out these threads by joubertvasc, he's using CellID and the OpenCellID APIs in his programs, and if I remember correctly they're open source, so those should help you a lot.
http://forum.xda-developers.com/showthread.php?t=394203&highlight=cellid
http://forum.xda-developers.com/showthread.php?t=456626&highlight=cellid
ALSO! Next time please ask your question here:
http://forum.xda-developers.com/forumdisplay.php?f=456
Thanks guys you have given me loads of great information to be getting on with. Sorry about posting in the wrong place didn't notice the Q&A section. Thanks again.
I tried to reverse engineer the protocol used by Live for it's location server and I posted my results here. I haven't indulged any further since things have gotten busy around here but it's a good start.
Google Maps lookup service has already been reverse engineered by a guy on code project here.
I've also looked at Fire Eagle's implementation based on wireless hotspots and it uses skyhook.
Luis Espinosa's TrackMe also queries multiple cell id databases, you can even choose which ones you want to draw from (Google, OpenID, etc). His code isn't open as far as I know but he might be willing to answer some questions.
http://forum.xda-developers.com/showthread.php?t=340667
you guys are great thanks so much for the links I'll be sure to upload my program here first if its any good that is.
Is there any way to use Google's location services? The code project link is down :/
DeadVirus said:
Is there any way to use Google's location services? The code project link is down :/
Click to expand...
Click to collapse
No one? :/
Post #19
http://forum.xda-developers.com/show...=725568&page=2
badasschris said:
Thanks guys you have given me loads of great information to be getting on with. Sorry about posting in the wrong place didn't notice the Q&A section. Thanks again.
Click to expand...
Click to collapse
I tried to reverse engineer the protocol used by Live for it's location server and I posted my results here. I haven't indulged any further since things have gotten busy around here but it's a good start.
Google Maps lookup service has already been reverse engineered by a guy on code project here.
I've also looked at Fire Eagle's implementation based on wireless hotspots and it uses skyhook.

Categories

Resources