Using the AT Debug Log to obtain GPS commands - P3600 Software Upgrading

Hi,
To be able to enable the GPS on Hermes, a couple of things still need to be researched. One of those is what kind of AT commands are being sent to the Radio ROM to properly initialize the GPS ([email protected] etc.).
On the Hermes, the AT commands (and the resulting NMEA output) can be observed using the HTC AtDbgLog feature. I'm not sure whether the Trinity has the AtDbgLog feature as well, but if it has, somebody with a Trinity should be able to capture the actual [email protected] and related commands.
I would be very grateful if somebody with a Trinity could test the following:
1. Add the following registry keys
\HKLM\Software\HTC\ATDebugLog\Enable=1 for logging
\HKLM\Software\HTC\ATDebugLog\LogMode=1 for logging into file
2. Soft reset (wait a minute or so first to be sure the changes are persisted)
3. Use the GPS with navigation software for a few minutes
and post the results from the \Temp\AtDbg0.txt logfile? (Note: the logfile should first be copied to the device before you can copy it to Windows)
It can be disabled by removing the registry keys again and soft resetting

Bump... can anybody with a Trinity please do a quick check on this? It would really help both Trinity and Hermes users in figuring out the way the Trinity ROM is controlling the GPS!
Cheers

there are only two gps commands - [email protected] and [email protected]. Os do not do any special initialization of gps. Could not provide you with logs 'cause for some reasons i prefer not to publish my gps coords but you can beleve me - nothing interesting there: [email protected] / [email protected] do exactly what they sound for.

Related

AT Commands

Just been looking at this page ... I think some of the info may be helpful in solving the PDA2k (and maybe other models) Bluetooth Audio Gateway problem.
My question is how would I execute these commands? Would I need to build an application or could I do it via an application that already exists?

Helmi_BA_WM2k5_AKU3.5_v1.4.CF2 R2 by baniaczek

Updated version of http://forum.xda-developers.com/showpost.php?p=1156153
Modifications:
Fixed mail body/mail attachments errors.
Default Crossbow theme: Remake.
Net.CF: Fixed errors. Upgraded to Net.CF2.SP2. Managed V1 libraries (Microsoft.WindowsMobile.Configuration Microsoft.WindowsMobile Microsoft.WindowsMobile.Forms Microsoft.WindowsMobile.PocketOutlook Microsoft.WindowsMobile.Status Microsoft.WindowsMobile.Telephony) imported from WM6 SDK.
Phone application imported from AKU 3.3 (smartdial still works). Used a bit different phone skin (gray molski.biz). There is attached gray smartdial - compatible with phone skin.
SqlCeSe.sys.dll: imported from WM6 ROM. A bit newer version than used in WM5.
Deleted all predefined favorites. They are not mine favorites.
Corrected Sim Toolkit.
Added Windows Mobile Updates for Daylight Saving Time
Reorganized "Programs" and "Settings". Removed ActiveSync (still available via Comm manager), InternetSharing and ModemLink - available in Settings/Connections. "Backlight" applet moved to "Personal" tab. I think, it is the most often used applet. Removed "Button Lock" - use: Settings/Personal/Buttons/Lock tab instead.
Modified today items order, date plugin set to single line.
PIE: some tweaks. Mostly performance tweaks. Cache limited to 10880kB - the rest of RamDisk can be used for storing mails.
Startup items removed from \Windows\StartUp folder. They are launched from [HKLM\init]. This saves some vital resources.
MSN (in the ExtRom folder) - slightly modified. Other ExtRom CABs are nearly the same. All CABs are disabled by default. Modify \ExtROM\cfg.txt to suit your needs.
Modified some graphics (smallest ones imported from WM6) and sounds. Removed fatutil.dll.0409.mui
[*]COM6 set as GPS intermediate port (look at GPS applet). Don't use COM6 for other purposes unless you undefine that.
Maintenance:
Remove (by hand) \Windows\StartUp\Camera_Detect.lnk.
Known problems:
Button SpeakerOn button doesn't work. Press and hold green phone hardware button instead. Probably I'll not fix it in the nearest future.
Changing themes: After changing theme and reverting back to the default, BaseHue is not restored. I think it is WM5 error (there is somewhere hardcoded default value). To restore: set [HKLM\Software\Microsoft\Color] value BaseHue to b0d57e (hex).
Net.CF: Resco keygen and some other poorly written applications expects to use Net.CF.2 without any service pack. Ask software vendor.
Ringtones are not clear. IMO they have to be loud. They are encoded to have files as small as possible.
Main update files:
Update: Rapidshare
Mirror: MegaUpload (thanks to blackflagsvn)
Mirror: SendSpace (thanks to jakubd)
Mirror: micmeo (thanks to micmeo)
Mirror: isis2.uitm.edu.my (thanks to bizkut)
Misc files:
Reenable sound on screen taps: ClicksClacks.cab
Updated version again - previous version was not working: A bit customized, simplest (sorry, wmpaint is my friend) version of gray SmartDial_V2.5 Uninstall previous version of smartdial before. Other versions (Greek, Hebrew, Cyrillic) you can find here: http://forum.xda-developers.com/showthread.php?p=1100370#post1100370
If you think, that you have to reinstall sms_alert_fix - try this. Updated version: SMS_alert_fix_patch_1, uses InitLauncher. It is Ok to install over previous version
Network update. It is part of next release, but I believe it can resolve some problems with wifi connection. http://forum.xda-developers.com/attachment.php?attachmentid=37063&stc=1&d=1176410905
Thanks:
Many thanks to: helmi_c, mamaich, bepe, logout, tuatara, xplode, saman and supporting user. Happy Easter.
Tips:
Turn on WiFi: Do it only once after soft reset. This procedure will load WiFi driver into system drivers. Start Comm Manager. Select from menu: Settings/WLANsettings. Tap "Turn on WLAN". If there are any WiFi networks available - device will try to connect to. Provide proper parameters (network name, authentication, encryption, keys etc). Probably device would not connect. Go back to "Comm Manager". Turn WiFi off. Since that use only Comm Manager to turn WiFi on and off. There is easy way to recognize if it is required to load WiFi driver, or it is enough to turn on. Look at todays wireless plugin. If there is listed WiFi in any state - there is no need to load driver tapping "Turn on WLAN". Resolving this issue is not easy. If you are interested - read this: http://www.teksoftco.com/forum/viewtopic.php?t=194
COM ports: There are free only COM7 and COM8. COM1 - serial (bottom connector), COM2 - serial_cmd (to send AT commands to the phone) (I'm not sure), COM3 - IrDA, COM4 - BlueTooth, COM5 - BlueTooth DUN, COM6 - GPS intermediate driver, COM7 - free, COM8 - free, COM9 - Virtual COM (virser_data).
NetCF, WiFi and BT GPS together - WiFiFoFum. Setup: add new bluetooth device. Follow pairing procedure. Check "Serial port" service to use from this device. Select "CommPorts/NewOutgoingPort". Use COM7 or COM8. Goto GPS applet (Settings/Connections/GPS). Select "Hardware" tab. Enter previously selected port COM7 or COM8. Verify "Programs" tab - COM6 should be selected. Ok. Turn on WiFi (see previous tips), turn on BT, start WiFiFoFum. Goto Options/GPS. Select COM6 (the same, as selected in GPS applet in the "Programs" tab). Enjoy.
Devices randomly wakes up if BlueTooth is on: this is well known issue and nobody is working on it. Look at this: http://forum.xda-developers.com/showthread.php?t=267389 If it is a problem for you, look for something that can lock device after WakeUp. For example: http://forum.xda-developers.com/showthread.php?t=261277
Back up
Hi Baniaczek,
Great to see another release from you and downloading it rite now.
My question is:
Can I back up all my data (using sunnysoft backup manager), upgrade my IIs with this new rom, and then restore my data from the older rom?
Just cant be bothered re-installing all the softwares needed.
Thanks
joseph.sapri said:
Hi Baniaczek,
Great to see another release from you and downloading it rite now.
My question is:
Can I back up all my data (using sunnysoft backup manager), upgrade my IIs with this new rom, and then restore my data from the older rom?
Just cant be bothered re-installing all the softwares needed.
Thanks
Click to expand...
Click to collapse
No. There is a lot of modifications in registry. Restoring backup you will restore ald values. I thin - all.
hic i will lost a day to reinstall software but i must ,downloading...
thank baniaczek very much
no need for SetOperator anymore?
arnarn911 said:
no need for SetOperator anymore?
Click to expand...
Click to collapse
I can't find any reason to use SetOperator.
If anybody needs it - please use SetOperator from any previous update. It should work.
oops sorry double post... just flashed the firmware... am restoring contacts now.... this is using apache wifi driver right?
thanks
and happy Easter
OMG wifi will not connect...
....great job
btw, who can email micmeo so that he can upload the rom to his website... downloading from rapidshare takes years...
happy ....
downloading...
thank you very much
Great baniaczek!
I'll install now! thank you!
http://forum.xda-developers.com/member.php?u=251591
Is it okay not to run EXTROM? I noticed this EXTROM does not have DelCDetect. Is it not important? Thank you very much.
Thanks Baniaczek I'm going to download
Great work!!! i am testing one hour and all is ok, ROm is very fast. Thanks
will test ocer easter and provide feedback! Thxs in advance!!!!
MS Voice Command 1.6
Thanks a lot baniaczek, much appreciated.
Did anyone try MS Voice Command 1.6 on this ROM ? Is it functioning properly ?
In a previous version,Voice command would still use the microphone instead of the bluetooth handset.
Cheers
Chris
downloading
happy to download this new version
a can't turn on BT
Great!
Thanks!!!
Downloading!

Active Sync Push password timer

Hello,
I have the HTC Touch Diamond with WM6.1. I love the phone but my exchange administrator has implemented password protection for my email account. So every hour my phone is locked until I enter the password. Does anyone know how to extend the time or disable the password in the registry. I have found several references to the registry setting in WM5 but that did not work so I am wondering if it is a different entry in WM6.1 Any ideas?
Can anyone help me with this?
This should work on WM6.1:
\hklm\security\policies\policies
Change value name "00001023" from '0' to '1'.
Or: http://cid-79cd30393341a619.skydrive.live.com/self.aspx/Public/WMSimulateKeyPress.zip
Or: http://www.modernnomads.info/wiki/i...ation+when+your+PocketPC+is+on+external+power
Or: http://mobilitytoday.com/forum/showthread.php?t=13030&page=2
Btw, think about it before you remove this policy. The sysadmin does not enforce this policy for nothing. I learned to live with it, it also has some advantages (for example when your device is stolen and you won't accidently push any buttons)
Thanks for the reply. the 3rd link which is Zen's program does not seem to work in WM6.1 in the Diamond. The registry entry definitely does not work because I have set it and reset the phone and it still locks. You have a point about why the password is there but it becomes a safety issue when I am driving and need to make a phone call. I am not sure what the Simulate Key press does could you provide any more information?
I am finding that with the HTC diamond alot of the customization has changed alot of the functions for the registry. I wish I could find someone that has figured all this out.

MSM72xx chipset-level configuration tools

**BE VERY CAREFUL WITH THESE TOOLS. IT IS ENTIRELY POSSIBLE TO DO IRREPAIRABLE DAMAGE.**
Ripped from the Xperia ROM, these programs allow control over a number of settings in the device.
RegisterEditor should allow direct reading and writing of registers on the qualcomm msm72xx chipset, which will allow control over virtually every setting available, just need to determine addresses and potential values, etc
TBattery talks directly to the battery chipset, and returns values such as mAh capacity, battery temperature, current draw, percentage remaining, etc.
DbgTerm allows real time display of Debug Log on device.
DebugTool allows among other things redirecting of KITL output to USB. You can also configure the level of logging for the Debug Log and have it save the log to SD.
Save Kernel KITL Log to SD:
1.) Open DebugTool.exe, input value 43D in [5]DebugFlags, click menu -> write
2.) Shut Down with Power Button (long press), and start up
3.) Do actions you want to be logged (load program that fails, drivers, etc.)
4.) Plug phone into usb, connect w/activesync and copy off /Storage Card/HtcLog/*.txt
5.) Open DebugTool.exe, input value 0 in [5]DebugFlags, click menu -> write
FMTuner allows direct advanced control over the FM Radio chipset, among other things allows activation without headphones (although I don't see a way to route audio to the speaker)
Uni-AT allows issuing of AT commands to the ROM.
dump a raphael ROM and open up rilphone.dll in a hex editor, look for the strings like +CRING, @AGPSADDRESS, $HSUPA_STATUS, these are AT Commands that can be issued to the radio ROM, to query status and alter settings.
Query an existing setting like so:
AT+CRING?
AT$HSUPA_STATUS?
[email protected]?
Querying a command should give you some input as to the required format.
Change a setting like so:
AT+CRING=1
AT$HSUPA_STATUS=1
[email protected]=1
For a setting with multiple parameters, such as AT+HTCNV, set it like so: AT+HTCNV=param1,param2,param3
Useful AT Commands:
AT+RADIOVER : returns radio rom version
AT+HTCNV : returns +HTCNV: 1,10,8 - param1 = DTM support, 1/0, param2 = MCS support 8/10/12, param3 = HSDPA Category 6/8/12
AT+HTCENS : ENS support 1/0
Reserved for more stuff
WOW!!!!!!!!
this would get alot more views in the diamond section.... thanx for posting it still
Looks like most of these tools were posted in Diamond section already here: http://forum.xda-developers.com/showthread.php?t=416334&highlight=htc+debug+tools
However everyone seemed to miss the significance of RegisterEditor entirely, it's listed in the linked Wiki as a 'very basic registry editor' but it has nothing to do with the registry at all..
Anyway, this is a dup post. Doh! But these versions are newer, and i'll try to make it more useful by including more knowledge about the apps
Wow! Kudos for this! Amazing. Register Editor is very powerful. Gotta map this out
Interesting. I wonder if these tools could be useful in unlocking the FM radio on CDMA Touch Pros.
[Edit: I noticed that you specified these were for the 72XX chipset. Any idea what kind of compatibility they have with the 75XX?]
Not sure, worth a try since they are similar, the api might be the same. You should be able to try a read operation without harming anything..
FMTUner Tested on Raphael
I've tested FMtuner on Raphael CDMA but nothing happens, I mean, the tool works, but no frequency is detected.
Fabian
bedoig said:
Interesting. I wonder if these tools could be useful in unlocking the FM radio on CDMA Touch Pros.
[Edit: I noticed that you specified these were for the 72XX chipset. Any idea what kind of compatibility they have with the 75XX?]
Click to expand...
Click to collapse
there is CDMA debugtools set, grab it from any cdma beta rom (maybe posted on ppcgeeks, if not, i can upload it here), similar to gsm but for example the AT tool differs (UNI_AT will not work on CDMA) etc etc.
bump for adding new AT commands
Is there some documentation for tBattery explaining exactly what each reading is?
Also have a suggestion if possible that it include a time hack with each sampe it saves to the log instead of just a start and end time.
Thanks in advance.
cmonex said:
there is CDMA debugtools set, grab it from any cdma beta rom (maybe posted on ppcgeeks, if not, i can upload it here), similar to gsm but for example the AT tool differs (UNI_AT will not work on CDMA) etc etc.
Click to expand...
Click to collapse
Could you post the CDMA debugtools set?
Thankyou very much
someone asked me in PM today to post the tools, see attachment.
tbattery
how exactly do i install this program? do i just copy it to my SD card and open it from my phone? thanks in advance
yup, copy to eg SDcard to DebugTools folder and run the debugtool

How to init the Diamond's GPS

Hello all,
Iam trying to write a small program to receive the NMEA strings out of the GPS, I opened the COM4: port but the GPS is sending nothing...
does anyone how to initialize the GPS? is it connected to any GPIO?
regards,
Please give us more details like which environment you're using to code? It's very easy to get GPS co-ordinates if you're working on .net Compact Framework 2.0+ The SDK even has a sample GPS application to get started.
Carty said:
Please give us more details like which environment you're using to code? It's very easy to get GPS co-ordinates if you're working on .net Compact Framework 2.0+ The SDK even has a sample GPS application to get started.
Click to expand...
Click to collapse
Yeah I do use the .net CF, particularly C#, can u please provide me the link to that sample app?
I use AstroGPS app to init gps in HTC diamond
Update:
I got the app to work Iam getting the Latitude, longitude, speed, direction, sat counts. Update time is relatively good.
one thing is still open, the first time i start the application (after soft reset), it does need about 3-5 min to start. the same is happening with the GPS test application!
does anyone has a solution for that problem?

Categories

Resources