yashsingh1/xdaforums huggingface dataset:
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] tbern123:
Trinity reg entries:

1)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver]

"IsEnabled"=dword:00000001

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Drivers]

"CurrentDriver"="AcmeGPSHardware"

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Drivers\AcmeGPSHardware]

"Baud"=dword:000012C0

"fRtsControl"=dword:00000002

"CommPort"="COM9:"

"FriendlyName"="Qualcomm GPS Hardware"

"InterfaceType"="COMM"

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Multiplexer]

"DriverInterface"="GPD1:"

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\GPS Intermediate Driver\Multiplexer\ActiveDevice]

"Index"=dword:00000001

"Prefix"="GPD"

"Context"=dword:12344160

"Flags"=dword:00000002

"Keep"=dword:00000001

"Dll"="GPSID.dll"

2)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Drivers\Active\41]

"Hnd"=dword:003E3600

"Name"="COM9:"

"Key"="Drivers\\BuiltIn\\GPSChannel"

"BusParent"=dword:00032270

"InterfaceType"=dword:00000000

"BusName"="BuiltInPhase1_0_42_0"

3

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Drivers\Active\56]

"Hnd"=dword:008EE640

"Name"="GPD0:"

"Key"="Drivers\\BuiltIn\\GPSID"

"BusParent"=dword:00032270

"InterfaceType"=dword:00000000

"BusName"="BuiltInPhase1_0_35_0"

4

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Drivers\Active\57]

"Hnd"=dword:008E4A00

"Name"="GPD1:"

"Key"="SYSTEM\\CurrentControlSet\\GPS Intermediate Driver\\Multiplexer\\ActiveDevice"

5

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\GPSChannel]

"DevConfig"=hex:20,00,00,00,05,00,00,00,10,01,00,00,00,4B,00,00,00,00,08,00,00,00,00,\

00,00

"FriendlyName"="GPS in COM9"

"DeviceType"=dword:00000000

"Order"=dword:00000003

"Tsp"="Unimodem.dll"

"DeviceArrayIndex"=dword:00000009

"Index"=dword:00000009

"Prefix"="COM"

"Dll"="GPSChannel.DLL"

6

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\GPSID]

"Flags"=dword:00000002

"Context"=dword:00000000

"Index"=dword:00000000

"Prefix"="GPD"

"Keep"=dword:00000001

"Order"=dword:00000010

"Dll"="GPSID.dll"
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Arktronic:
Acme GPS Hardware? LOL... looks like somebody took the MSDN example a bit too literally...
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] tbern123:
I have just copied and pasted the trinity reg from post 108
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Olipro:
well folks, I'm just (re)flashing this trinity radio ROM; my laptop crashed halfway through last time... sods law for you, I'll have a fart around with WM5 after
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
ok.. so i've inserted those registry settings into my hermes.. if you want to do this you have to modify them a little bit.. for example link to gpsid2.dll instead of gpsid.dll.. then upload the gpsid.dll from the trinity to the hermes as gpsid2.dll..

and make sure you're not overwriting any drivers.. alot of the key numbers in the hklm\drivers\builtin\active rootkey are already reserved!

device is still running.. btw, you should also enable the gps control panel applet..

looks like the interface for the OS and applications is "GPD1"... what tool can we use now to test wheter it works or not..
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Arktronic:
I know; I'm referring to the HTC GPS team :)

BTW, that MSDN link might have some useful info. I don't have the balls to flash the Trinity radio ROM, but someone who has done it might want to check it out.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] tbern123:
You could give GPSinfo a try

http://www.usglobalsat.com/downloads/GPSInfo_WM5.zip
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
Someone with trinity should use arisme's XBridge, it installs a dummy driver that records everything that it's sent to RIL, so we can see how the GPS is initialized and handled by trinity, and replicate that from bootloader.

http://arisme.free.fr/hacks/binaries/XBridge.zip
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
man that xbridge is a great idea!!

btw, how can i sign files? i guess i still need to sign the gpsid2.dll and the gpschannel.dll to work with my system.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Olipro:
need to find a way to replace gpsapi.dll I reckon
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] ahlok_hk:
I remember some registry setting allows you to run unsigned application or dll.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Arktronic:
Are you referring to http://blogs.msdn.com/windowsmobile/archive/2006/12/07/why-does-my-signed-cab-prompt.aspx#1236201 ?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
how about this, just change the reference in the registry:

hlkm/drivers/builtin/ril

dll: rilgsm.dll

just copy rilgsm from the trinty to your device\windows and rename it to rilgsm2.dll

change the reference in the registry to rilgsm2.dll and see what happens ;)

edit; there are more references to the rilgsm.dll hklm\system\rilext , modulename: rilgsm.dll

edit2: i've just opened the files that have been uploaded here with a pe-explorer.. is it possible that those files contain a proper PE-header?? i thought they were XIP files dumped from a device -> corrupt PE header
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] bludshot:
guys, you have me stuck to this forum like glue...

keep up the good work! we all appreciate your efforts. whoda thunk we might be gettin gps too?(i mean other than you guys)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
They have proper PE header, I dumped them from OS.nb extracted from trinity GPS dopod ROM using mamaich imgfs tools, not from a device.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] bobstarina:
Current results in my investigations...

Well, I've copied files from ZIP archive which I found at 3rd page of this topic to "Windows" folder. There are 3 files - gpschannel.dll, gpsid.dll, gpsapi.dll.

During copy WM5 warned me that first 2 files are already in system.

Then I made registry changes from the same ZIP file - all OK.

Then I compared installed changes with posted at this page. What I found:

[HKEY_LOCAL_MACHINE\Drivers\Active\41] - In my registry it refers to device named CIF1

[HKEY_LOCAL_MACHINE\Drivers\Active\56] - There is no such a key in my registry

OK. I tried to select COM9 - it's impossible.

Then I started TaskManager v2.3 from FdcSoft and opened "Devices" tab.

What I found there - I have 2 new devices - COM9 and GPD0 but both of them are in unloaded state.

I tried to start them manualy but I get a message "The system cannot find the file specified".

Next I renamed DLLs (add "2" to their names) and edited registry entries.

I tried to start devices manualy one more time.

At this try I SUCESSFULLY started COM9 driver but GPD0 give me the same message "The system cannot find the file specified".

NOW I have "GPS on COM9" port in my TyTN. I am able to choose this port in TomTom and OziExplorer but no NMEA data is translated throw this port.

I still see 3 problems:

1. Why GPD0 is not started?

2. I cannot find RIL files in this topic (as I understand I have to put them on TyTN too) and related registry entries.

3. I cannot find relations in registry between GPSChannel and RIL.

Who can help me in my futher investigations?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] piopawlu:
I guess you can't just rename those dll-s, because they are linked against each other so their names must remain unchanged. I would suggest using 'dependency walker' to find out what dll's we acutally need.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] bobstarina:
About RILGSM.DLL

Tried to put RILGSM.DLL from Trinity to Windows directory.

After that radio not working at all! I can't start GSM from Wireless manager.

After deleting this file all things restored.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] bydandie:
I'm wondering, what is the AKU level of the Trinity ROM? Seeing as the Artemis is AKU 3.x, I'm wondering if there's something in the later AKU that is required? Also does the QuickGPS app have any bearing in the scheme of things bearing in mind it's designed to work with the AGPS AFAIK.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] ibanyard:
Dependancy Walker result

gpsapi.dll requires Coredl.dll

gpschannel.dll requires coredll.dll

gpsid.dll requires coredll.dll and cxport.dll

Functions of gpsapi

gpsclosedevice

gpsgetdevice

gpsgetposition

gpsopendevice

Functions of gpschannel

com_close

com_deinit

com_iocontrol

com_init

com_open

com_powerdown

com_powerup

com_read

com_seek

com_write

Functions of gpsid

com_close

com_deinit

com_iocontrol

com_init

com_open

com_read

com_write

gpd_close

gpd_deinit

gpd_iocontrol

gpd_init

gpd_open

gpd_read

gpd_write

I cant trace the depandant dlls at the moment, will post if able...
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
the dependencies of the coredll are not important.. this is a kernel library, i doubt that the trinity has another kernel..

you should enable the GPS applet of your hermes so you can change GPD0 to COM4 or COM5... and select it in most common GPS applications.

the reason why you can't select COM9 is because that's the virtual port our gps reciever is attached to.. it's blocked, just like the at-modems com port.. you would need to issue a iocontrol call to unblock it.

i also couldn't find an import function relation between any of the dlls and the ril.. but it must depend on the core ril, its just logical.

i could try to manually load these dlls in my own prog but i don't have the function headers. but i suck at reverse engineering and i guess there are no open docs for them available as for the ril..

besides that i think the reason we don't get it to work is because we haven't got the dlls signed
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] bobstarina:
dutty

As you can see from one of my previous posts I din't have any problems with selecting COM9 port.

I can select it in my GPS related programs and the port itself opened after that but there is no NMEA data on it.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
interesting.. i just installed it, i can't select it in ozi explorer.. can you be more specific which dlls you've used? the one from the zip with 6 regkeys included?

but i still think that's the wrong way.. since the driver is based on microsofts GPS intermediate driver... you need to enable the applet, and specify your comport for applications there!
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] bobstarina:
Yep, it was ZIP file with 3 DLLs and 6 REG files.

I enabled GPS control panel applet long time ago. After installing ZIP file settings in this applet became as you pointed - COM9 for hardware port and GPD0 as software port.

But I can't see GPD0 in settings of OziExplorer and TomTom.

After manual start of COM9 device (it cannot start automatically - I think because some registry edits are incorrect) I can see this port in the list of available ports at TomTom (or OziExplorer). It opens when I choose it.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
ok.. sounds like you're as far as i am.. so what happens if you change GD0 to com4 or com0?

how do you manually start the comport?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] bobstarina:
I do it by using TaskManager v2.3 from FdcSoft on "Devices" tab.

Here is the link: http://xdaforums.com/showthread.php?t=280104&highlight=taskmanager

I tried to use program port for GPS with the help of microsoft applet. The behaviour of navigation programs is the same as in case of use COM9 directly.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
hmm.. i can't restart the drivers.. i always get "the system cannot find the specific file" .. probably because i'm running on a german device and not wwe.. or because i haven't signed the files?

weird..
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] bobstarina:
I've just copied this files to Windows directory (I'm not so familiar with signing of files). But I have signature test disabled (\HKLM\Security\Policies\Policies\0000101a=1 )

Try to perform a soft reset...
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
yes i also have signature test disabled.. weird.. but maybe i crippled something else so a hardreset is required now ;)
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Sleuth255:
Here's a bit on services, drivers and signing. Services and drivers won't start automatically unless they're signed. You can override this behavior with services by installing SPB Pocket plus. An "undocumented feature" of this app is that it adds a registry entry for every service called "UnsignedService". This works in conjunction with a little startup app it installs called "Services". At startup, this little app manually startes all services where "UnsignedService" = 1.

Not sure what to do about devices however.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
i actually got it to work.. just did another softreset and i was able to start the devices.. now GPSUtilities detects the gps on comport 9 but as previously said it gets no NMEA databack

i guess we need a proper ril library
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] vijovame:
Well, I saw both board and them are very diferent, the metal part of the trinity is solded to the boad and in the hermes there is no points to solder it, the GSM antenna plug is located in a another place so its another build board, but if we found were to attach the GPS antenna we can get it work. Please, can some one test the satellite signal without the back housing of the hermes?, this will help to get a better signal...
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] bobstarina:
dutty

Have you used the advice of Sleuth255?

How do you make it?

I tried to add keys UnsignedService=1 to \HKLM\Drivers\BuiltIn\GPSChannel and GPSID but it's make no difference to me.

How are you started them both?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
i heard in another forum that the qualcomm chip uses one antenna for all services (.. but i cannot confirm that..

but why should it matter, i get indoors a minimum of 3 sattelites...

here is the datasheet of the qualcom 6275: http://www.cdmatech.com/download_library/pdf/msm6275_chipset.pdf

it looks like all features like bluetooth, gsm, umts,gps rely on one antenna.. the "switchplexer" handles the frequency seperation.. but i'm not really sure as i'm studying business information systems and not systems engineering ;)

besides that, we already held a hermes directly under a strong gps repeater and the output was no difference.

bobstarina, those dlls are not services. these are device drivers.. it looks like they work without beeing signed.. since gpsutilities recognizes the driver as gps modul but it just doesnt get a repsonse (i.e. timeout) it looks like the communication from gpsutilities->gpschannel is ok, but the communication from gpschannel->ril has a problem...
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] baudy2:
Wanna be a part of the Hermes-GPS team -

Have some questions:

1. Which radio is safer to flash ?

Hermes_GPS_Enabled_Radio_1.29_EXPERIMENTAL or

Trinity_GSM_GPS_ENABLED_radioROM

2. Would RADIO upgrade erase my device content (programs and data) ? I think not.

I run SPL 1.01 MFG and have SupeCID (Thanx to pof !) if it does make sense.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] jompao:
Did you not read this thread?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] pof:
All your questions have been answered before, if you want to be part of the GPS team and not be noise in the thread please read all the thread completely before asking repeated questions.

Trinity_GSM_GPS_ENABLED_radioROM

No.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Sleuth255:
It's also very likely that the driver dlls you guys are working with are signed. I don't believe the SPB service starter works for devices though. If you still can't get these to start automatically (but dotfred's task manager starts them ok) then it may be they were signed with a operator level cert.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] ionide:
You overlooked the seperate GPS and BT antennas in the diagram. Only GSM/UMTS uses the same antenna, all other radios have separate antennas.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
be easy :) they just try to help.

well no.. but if you're playing around with the registry in undocumented areas of the os you should be prepared for a hardreset.. backup your device before doing anything!
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
okay.. but maybe it is possible they use the same antenna (design decision to use seperate antennas, maybe its possible to use one antenna?)..

because if there would be no antenna at all the hermes would never be able to detect that many gps satellites.. for example, if you disconnect the antenna from a FM reciever you don't recieve anything but noise.. same with a tv, and those signals are broadcastes locally.. the gps signal is broadcasted from space..

last but not least.. we already had a hermens under a gps repeater and the signal detection was the same....

but lets get away from the antennas discussion.. we need to get the gps module up and running in the OS..
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] vijovame:
Yes, I read about first 15 pages...
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] vijovame:
Good, I you can see, there is another external antenna port near the GPS antenna in the trinity, I think is for GPS by the location, but I dont have a trinity to test. well, we need someone with a trinity to do more tests, anyone here? maybe in the another post that I did not read.....;)

Yes, better.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] hellejoep:
Keep up the good work guys!
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] RonenB:
Bravo. This is ecactly what I am saying. We should not give up but find out what is missing. This technical discussion is a little beyond my powers but I will be happy to test with the repeater and send test application to those who need it. I believe that we are very close to have a GPS on the Hermes.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Olipro:
whether the GPS device has a signal or not; we should still be able to actually talk to the device and get a response from it (in WM) so getting that cracked is the critical thing
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
okay.. so we're all on the same level now :)

let's recap:

*we have the gps module exposed to the system by flashing the radio rom from the trinity

*we are able to talk to the gps module on a lowlevel (bootloader) and it works (detects sats)

*we are able to start the GPS os driver and applications recognize it and try to talk to the gps module but recieve a timeout -> why? i guess because our rilgsm doesn't know how to handle at@startgps commands.. i'm not sure how it works but i assume applications send atcommands(encapsulated in functions like RIL_CheckSignalLevel) to the ril, the ril verifiys these commands and sends them to the modem..

it would be *very* good if anybody has a trinity, then he could install xbridge and sniff on rilgsm and see if rilgsm is the missing link...

any takers?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Olipro:
I've got rilgsm from the trinity working on my Hermes (manually) and it does nothing; so all indications would suggest no.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
you have got it working? i mean, is your phonepart still working? can you dial numbers etc.?

how did you do it? i copied rilgsm from the trinity to the hermes and changed the registry to link to rilgsm2.dll instead of rilgsm.dll .. result: wm5.0 told me there is no phonereciever connected to the device.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Olipro:
easy peasy; use the taskmanager program posted earlier to enable the RIL: device
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Olipro:
I have a program here from Microsoft that enables you to completely disable all signing requirements and unlock the RAPI etc;

http://www.microsoft.com/downloads/...8c-d587-47e0-908b-09fee6ea517a&displaylang=en
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Karzi:
Does it actually use agps or gps ?
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Olipro:
the chip *can* use AGPS if your provider gives you this service, although essentially speaking, if GPS is made possible on hermes, the AGPS feature will be unlikely to be available.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
i tried the tool you posted.. but it doesn't seem to work, my drivers still don't get loaded properly :(

source: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=122467&SiteID=1

edit: just used remote process viewer and ril2.dll, gpschannel.dll and gpsid.dll do not get loaded.. so it MUST be a signing problem.. i'll try to resign them manually now
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Olipro:
just use the Task Manager then.
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
that's what i'm trying... it tells me either "can't find the file" or "loaded successfully" but spying the device with the remote process viewer tells me the driver is not loaded. (spying on device.exe tells us the loaded drivers) besides that, the messagebox title is "error loading driver" no matter what the message is...

i really don't know why my device refuses to start the driver even though i've installed all dev. certificates plus signed the files..
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] fluxs2:
following this thread for the last 15 pages... f5 button is starting to wear out:)

just wanted to say.. great work guys!!! and im sure this little quest is going to be solved!!!
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] Olipro:
in which case that means there's some entries in the Drivers\Builtin\GPS*** registry keys that you don't need there; go back to page 28 (or 27) of this thread to check it
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
i used the original entries that have been posted...

anyways, that takes too much of my time..

i'll hardreset my device and manually create driver entries in my registry.. one by one and see if they get loaded.

if that still wont work i'll write my own driverloader.. i can't stand these senseless error messages anymore :P
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] tadzio:
That seems to indicate it's not a problem related to signatures or certificates. My guess wold be that the DLLs you try to load are unhappy about the environment - a missing registry entry, wrong version of a needed file, something like that.

What I'm trying to say: let's not focus too much on certificate problems, but also look at other possibilities.

One thing I didn't understand yet, pof: these DLLs were taken out of an upgrade ROM file. Could it not be that they still are in XIP format? If they were regular PEs, then the flash program would have to "locate" (change to XIP) them during the flash procedure, and I doubt that the flasher is that intelligent. If the absolute memory address at which a file will end up in ROM is known when the ROM image is built, then the Platform Builder could easily make such a file XIP beforehand.

Does anyone know the Platform Builder well enough to tell us how XIP files are handled?

Cheers

Daniel
[8525, TyTN, MDA Vario II, JasJam Software Upgradin] dutty:
yes.. i'll shift away from the cert problems.. i've just checked, the files that have been dumped are already signed so that cannot be the problem.

the files that are dumped already contain vaild pe headers so they are usable (checked with pe-explorer)...

but don't ask me how they have been dumped, all i know is that they are intact.