Go Back   xda-developers > Hermes > Hermes upgrading etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 1st February 2007, 11:44 AM
dutty dutty is offline
Senior Member
 
Join Date: Apr 2004
Posts: 494
Default Hermes GPS - Technical Discussion, FACTS ONLY. W.I.P.

[V speaking: PLEASE do not use this thread for rumour or ideas. This thread is for FACT only. Use this thread for ideas etc. Thanks!]

i know its not common practice to do this, but....
i hope this will be the place for the technical discussion of our journey to implement the gps module.
please no non-technical posts, only research here. use the other thread for theories about missing antennas and crippled chips..
this will be a moderated thread.. (sleuth ? ) from Sleuth: I'll make sure of it. PM me with posts you don't think belong here dutty

if you want to participate:

the dumped rgu( reg files ) can be found here:
http://forum.xda-developers.com/atta...2&d=1170260634
both hive files (default reg files) converted to ascii human readable format can be found here:
http://forum.xda-developers.com/atta...7&d=1170257783

my last post with information was:

Quote:
Quote:
Originally Posted by bobstarina View Post
dutty
I'm using Radio ROM 1.22.01.01.

I'm affraid of using 1.29 because of 1.008 loader in it.

Sleuth255
The situation with drivers is not good. It seems to me that we will need all of radio related DLLs from Trinity but at this moment my Hermes is not working propertly with Trinity's RILGSM.DLL.
bobstarina.. i have replaced the following dlls successfully (can be loaded and working properly):
-unimodem.dll
-gpsid.dll
-gpschannel.dll
-gpsapi.dll
-rilgsm.dll
-serialusbfn.dll
-serialUSBFnModem.dll

i tried to replace:
-ril.dll ( phone is unable to start, alot of services need to be started manually: sound, gsm codec etc. - they work properly but the phone is not working, i assume it depends on another dll or service )
-serial_cmd.dll ( can be loaded manually, crashes the device after a few minutes, probably depends on the ril.dll )
-cellcore.dll ( contains the entire API/OS functions related to the telephone. error: OS won't bootup, i assume the reason is that the replaced cellcore.dll hasn't got the proper signing so it would require a manual load but at that time a manual load is not possible )

unfortunately i still cant get the gps to respond... damn..

i have compiled this gps c# application.. it's from the wm5.0 sdk, it makes use of the wm5.0 intermediate gps drivers.. can somebody please test it on the trinity so we have a proper application as testing ground.
usage: unzip both files ( the dll+the exe ) into a directory on your ppc.

goodcompany.. thanks for the offer, can you still read output on the screen or is the device totally broken?

--- we really need the help of a trinity user.. we need to trace the whole process of an application talking to the gps module..

my first question to those (gps'd)trinity users that want to help would be:

whats the bootloader gps nmea output on your device??

grabbing the output is very simple, you won't loose any data on your device:
-put your device into bootloader mode (on the hermes it's left ok, powerbutton + stylus reset)
-kill the activesync process on your windows xp computer ( kill wcsecomm.exe + rapimanager.exe via taskmanager )
-unzip mtty and start it, as connection select the usb driver.
-a terminal will open
-type: "rtask b" enter
-"ate1" enter
-"atv1" enter
then wait until you see output on your terminal. then type:
-"at@startgps" enter

grab some input, leave the device alone for a few minutes.. then save the output (file->save) from mtty and attach it to your post.
thank you!


edit:
second question, i really need a registry dump of a trinity gps device. could somebody please dump the whole registry - but please make sure that there is no personal information stored on the device.
---
okay i've just created my own registry dump from the *.hv files that are in the romdump thats floating around.. but it looks like this is from a test rom because the gps applet seems to be disabled:
"[HKEY_LOCAL_MACHINE\ControlPanel\GPS Settings]
"Hide"=dword:1
"
pof, was that dumped rom you pointed me to the current released dopod rom?

interesting, i have found those strings inside the rilgsm.dll using a hexeditor:
Code:
[D :: VIRSER_COM] [D :: SERIAL_CMD] [D :: FRONTLIGHT] [D :: LED] [D :: PSM ] [D :: GPS] [D :: RIL] [D :: SIR ] [D :: FIR] [D :: CF] [D :: SERIAL_BT] [D :: SERIAL] [D :: AUDIO] [D :: BACKPACK] [D :: WLAN] [D :: SD] [K :: KERNEL] [D :: SPI] [D :: BATTERY] [D :: TOUCHP] [D :: KEY] [D :: I2C] [D :: MISC] [D :: CAMERA] [D :: USB_HOST] [D :: USB_FUNCTION] [D :: Display]
this looks like devicedrivers and , i can find most of these in the registry i got
for example:

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\OEM_Misc]
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RIL]
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\GPSChannel] (gps)
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial] (serial_cmd.dll)
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\CIF]
etc. but i cannot find anything that's close to "virser_com" sounds like "Virtual serial" -> gps port??
maybe the reason i cant find it is that this is a preproduction dump...

Quote:
Originally Posted by Sleuth255 View Post
@dutty: Trinity bootloaders don't have access to the radio command interpreter. The "rtask b" command is missing....

it's never easy damnit....
damnit....

pof, i assume that's the rom the trinity users are flashing to enable gps on their device.. is there a gps tool included in the ext rom?

yesterday night i've played around with the at debug feature of the hermes with all trinity dlls in place.. looks like there's really only one link missing check it out:
the communication between GPSAPP->GPSCHANNEL.DLL->RILGSM.DLL->RIL.DLL works without any problems, but the commincation from the ril to the gpsapp doesn't seem to work.. i don't know why.. yet:
check it out:
Code:
 
1:44:0 Rx:+CSQ: 6,99\r\n0\r
1:44:0 Rx:@HTCCSQ: 2\r\n
1:44:4 Tx:AT@SYSTEMTIME=1,44,3,2007,1,31\r
1:44:4 Rx:0\r
1:44:10 Tx:AT+CSQ\r
1:44:10 Rx:+CSQ: 7,99\r\n0\r
1:44:20 Tx:AT+CSQ\r
1:44:20 Rx:+CSQ: 7,99\r\n0\r
1:44:21 Tx:AT@startGPS\r
1:44:21 Rx:0\r
1:44:23 Rx:NMEA$GPGSV,1,1,00*79\r\nNMEA$GPGGA,
1:44:23 Rx:,,,,,0,,,,,,,,*66\r\nNMEA$GPRMC,,V,
1:44:23 Rx:,,,,,,,,,N*53\r\nNMEA$GPGSA,A,1,,,,
1:44:23 Rx:,,,,,,,,,,,,*32\r\nNMEA$GPVTG,,T,,M
1:44:23 Rx:,,N,,K*4E\r\n
1:44:24 Rx:NMEA$GPGSV,1,1,00*79\r\nNMEA$GPGGA,
1:44:24 Rx:,,,,,0,,,,,,,,*66\r\nNMEA$GPRMC,,V,
1:44:24 Rx:,,,,,,,,,N*53\r\nNMEA$GPGSA,A,1,,,,
1:44:24 Rx:,,,,,,,,,,,,*32\r\nNMEA$GPVTG,,T,,M
1:44:24 Rx:,,N,,K*4E\r\n
1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,,,,,,,N*53\r\nNMEA$GPGSA,A,1,,,,
1:44:36 Rx:,,,,,,,,,,,,*32\r\nNMEA$GPVTG,,T,,M
1:44:36 Rx:,,N,,K*4E\r\n
1:44:37 Tx:AT+CSQ\r
1:44:37 Rx:+CSQ: 7,99\r\n0\r
1:44:37 Tx:AT@stopGPS\r
1:44:37 Rx:[WCDMA] GPS: END\r\n
1:44:37 Rx:0\r
1:44:47 Tx:AT+CSQ\r
1:44:47 Rx:+CSQ: 7,99\r\n0\r
1:44:57 Tx:AT+CSQ\r
1:44:57 Rx:+CSQ: 7,99\r\n0\r
1:45:3 Tx:AT@SYSTEMTIME=1,45,3,2007,1,31\r
1:45:3 Rx:0\r
lets get back here..

i noticed that my device crashes when its low on battery and the rilgsm.dll is loaded... we really need to figure out all depending drivers, services and other dlls...
__________________

dutty's good NBH Tool - unpacks/packs any NBH file!
the rom koch v2 - soon!
WM6 Premium v2 - the most definite wm6 release

___________________________
->Please donate<- some money for a studentīs hard work.

Last edited by Sleuth255; 1st February 2007 at 06:19 PM..
Reply With Quote
Sponsored Links

  #2  
Old 1st February 2007, 11:55 AM
vijay555's Avatar
vijay555 vijay555 is offline
Moderator
 
Join Date: Jun 2005
Location: Witch Space
Posts: 5,760
Default

Temporarily stickied.

V
__________________
releases: www.vijay555.comtwitterdonatefrappr
Reply With Quote

  #3  
Old 1st February 2007, 02:51 PM
bobstarina's Avatar
bobstarina bobstarina is offline
Member
 
Join Date: Oct 2006
Location: Moscow
Posts: 80
Default

dutty
Now I'm deep inside the RGU files from Trinity.

Some interesting findings:
1. HKLM\Comm\Security\SystemCertificates\Privileged Execution Trust Authorities - maybe we can put needed certificates into this branch for an automatic start of Trinity DLLs (another choice is to find the differences between RGU file and Hermes registry - who knows maybe there are some special certificates in Trinity's testing ROM?) I will check it later.

2. In RGU file there is the registry branch HKLM\Drivers\RegisteredDevice\BTD_COM9. I cannot find it in registry of my Hermes. I will try to add it and will see what happens next.
Added: After adding this entry and soft reset I'm able to start COM9 manually (as you remember I was not able to start it during last 2 days) !!!

3. \HKLM\Drivers\BuiltIn\QCTUSB_PCD9
In Hermes registry I have this branch empty.
In Trinity RGU file there are some keys inside this branch:
Dll="QCTUSB.DLL"
Prefix="PCD"
Index=9
DeviceArrayIndex=5
Tsp="Unimodem.dll"
Order=3
DeviceType=0
FriendlyName="Virtual PCD9"
DevConfig=20,00,00,00,05,00,00,00,10,01,00,00,00,4 B,00,00,00,00,08,00,00,00,00,00,00

And SOMETHING INTERESTING:
\HKLM\Software\Microsoft\RIL\DataPort="PCD9:"
(In Hermes registry this key refers to "PCD1:")

Maybe this is what we looking for?
It looks like "virser_port" that you are looking...
__________________
HTC TyTN + SuperCID + ROM WM6 LVSW 25.03.2007 + Hard-SPL_V7 + Radio 1.41.00.10
Jabra BT-620s

Last edited by bobstarina; 1st February 2007 at 03:22 PM..
Reply With Quote

  #4  
Old 1st February 2007, 03:46 PM
Koksie Koksie is offline
Senior Member
 
Join Date: Dec 2004
Posts: 533
Default

In the registry of my Herm200 (Vario II, T-Mobile radio ROM, no Trinity radio flashed),

HKLM\Drivers\RegisteredDevice\BTD_COM9 points to btd.dll, flags =0, index=9, pefix is COM.

On my Hermes, \HKLM\Drivers\BuiltIn\QCTUSB_PCD9 has the same values as you found in the Trinity RGU file.

\HKLM\Software\Microsoft\RIL\DataPort="PCD9:" is indeed pointing to PCD1 on my Hermes.

It seems to me that the first two reg keys are identical to the original ones on my Hermes, only the contents of the .dll files may or may not differ between Trinity and Hermes.

edit: I did a search in my registry and found this in HKLM\Drivers\Active\63
HND=Dword 305664 decimal
Key=System/CurrentControlset/GPSIntermediateDriver/Multiplexer/ActiveDevice. Does this key point to the GPS Driver that works between the GPS and the OS? How is this in the trinity reg dump? Hmmm, I looked at it, it points to the GPSID.dll file. not much help I am afraid. let me know if I can help in any way.

Last edited by Koksie; 1st February 2007 at 04:05 PM..
Reply With Quote

  #5  
Old 1st February 2007, 05:07 PM
Olipro's Avatar
Olipro Olipro is offline
Senior Member
 
Join Date: Sep 2005
Location: Your SPL
Posts: 1,862
Default

is there anyone with a trinity who can post more Registry data pertaining to the COM9 port?

particularly what's in their QCTUSB_PCD9

Last edited by Olipro; 1st February 2007 at 05:10 PM..
Reply With Quote

  #6  
Old 1st February 2007, 05:16 PM
Bimboy Bimboy is offline
Senior Member
 
Join Date: Dec 2006
Posts: 115
Default

Quote:
Originally Posted by Olipro View Post
is there anyone with a trinity who can post more Registry data pertaining to the COM9 port?

particularly what's in their QCTUSB_PCD9
From the dumped trinity reg from the other thread (post 390)
Quote:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\QCTUSB_PCD9]
"DevConfig"=hex:20,00,00,00,05,00,00,00,10,01,00,0 0,00,4B,00,00,00,00,08,00,00,00,00,00,00
"FriendlyName"="Virtual PCD9"
"DeviceType"=dword:0
"Order"=dword:3
"Tsp"="Unimodem.dll"
"DeviceArrayIndex"=dword:5
"Index"=dword:9
"Prefix"="PCD"
"Dll"="QCTUSB.DLL"
Reply With Quote

  #7  
Old 1st February 2007, 05:25 PM
Olipro's Avatar
Olipro Olipro is offline
Senior Member
 
Join Date: Sep 2005
Location: Your SPL
Posts: 1,862
Default

cheers, and also; is there anything about COM9 (or the GPS) in HKLM\Comm
Reply With Quote

  #8  
Old 1st February 2007, 05:48 PM
Bimboy Bimboy is offline
Senior Member
 
Join Date: Dec 2006
Posts: 115
Default

Quote:
Originally Posted by Olipro View Post
cheers, and also; is there anything about COM9 (or the GPS) in HKLM\Comm
Nothing specific to COM9, port 9, virtual ports, or GPS. Only mention of generic USB Serial linkage which must be for synching.

If you need to, you can see the reg dump file @ http://forum.xda-developers.com/show...&postcount=390
Reply With Quote

  #9  
Old 1st February 2007, 06:19 PM
Olipro's Avatar
Olipro Olipro is offline
Senior Member
 
Join Date: Sep 2005
Location: Your SPL
Posts: 1,862
Default

just another mention; but I have installed the privileged developer certificates on my Hermes and have signed the rilgsm dll with that signature; after doing this, the dll starts *AUTOMATICALLY*!

UPDATE2: GPS DLL's are signed; GPS device now starts automatically

UPDATE3: signed unimodem.dll and cellcore.dll; phone still functions with these installed

UPDATE4: signed serial_cmd.dll; this makes my device white-out and die... can someone find out what DLL's this one depends on so I can load it without crashing

Last edited by Olipro; 1st February 2007 at 07:11 PM..
Reply With Quote

  #10  
Old 1st February 2007, 07:25 PM
bobstarina's Avatar
bobstarina bobstarina is offline
Member
 
Join Date: Oct 2006
Location: Moscow
Posts: 80
Default

Dear Olipro,

Could you put these signed files in this topic?
All other people involved in research will be very much grateful to you.
__________________
HTC TyTN + SuperCID + ROM WM6 LVSW 25.03.2007 + Hard-SPL_V7 + Radio 1.41.00.10
Jabra BT-620s
Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:14 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.