hacking the SD-GPS driver to support COM6 - Windows Mobile Development and Hacking General

I have the Pharos SD-iGPS hardware (SD card GPS)
It insist on installing to COM4
if it fails, like it does on my XDA II with 1.60 (COM4 = BT)
it reverts to "COM0"
this "COM0" is accessible via software (ZTERM)
but most GPS software can't find it (they are hard-coded COM1-9)
I've searched the SDGPS.DLL, and I can see it exports
COM_Close COM_Deinit etc ... a whole setup of COM io.
I hoped to find, hard-coded "COM4" but I've got no luck:-(
How do I proceed? this is a 19k driver inside s DLL.
Can I disassemble (which tool?) and find what syscall set for COM4?
Can someone tell me what I need to look for in Binary/Hex editor?

index?
Having looked at the way the PPC load devices,
I believe the answer is to add "Index 7" or something similar
to the resitry regarding this driver
\HKLM\Drivers\SDCARD\ClientDrivers\Custom\
MANF-0303-CARDID-0100-FUNC-1
It lists
DLL SDGps
Prefix COM
It is my understading that, "Index" provides the COM port#,
and by default it is the "next up".
The system uses COM1 - serial COM2-phone i/o COM3-InfraRed
so by default it should go to COM4
Yet this causes a problem (MS BUG?) with the COM4/COM5 for BT.
I will try to add to the above registry
Index 7
and see what happens ...

Did this work for you? If so, what registry key did you enter exactly?
Thanks,
Jon.

Related

Bluetooth Device Name

Is there a way to configure the device name.? By default it uses the owner's name and I would rather use something different.
I think its on Settings > About > Device ID. Be warned though as I changed mine and then Active Sync didnt recognise it and only linked as a guest.....had to change it back.
HPJ
PS I knew Batman would use an Exec, yet another cool gadget for him :wink:
HPJ
Thinks for your quick response. This forum is great.
P.S. I've gone by Batman for years now and yes I do love these gadgets.... :lol:
The Bluetooth device name is indeed initially taken from the value you put into "Owner Name", but once set it can be changed and is not dependent upon the two being identical. You can override the bluetooth value by a registry hack.
In the registry, you'll find an entry like the following:
[HKEY_CURRENT_USER\Software\Microsoft\Bluetooth\Settings]
"LocalName"="Fred Bloggs"
You can use a registry file merge to modify this. For example:
====== Reg file entry begins below =======
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Bluetooth\Settings]
"LocalName"="O2 Xda Exec"
====== Reg file ends above here =======
You will need to soft-reset and then re-search for Bluetooth devices on your PC/laptop for the change to be noticed.

How to use the WM5 GPS App?

Hi All
I have performed the reg edit that enables the WM5 GPS App - I also know from threads that it is intended to allow multiple pocket pc applications to use the same GPS. Can someone explain how to use the various settings?
In particular, what is the effect of the different GPS settings on the tab labelled "programs" and that labelled "hardware"? And in what circumstances should one uncheck the "manage GPS automatically box" on the "access" tab?
Many thanks
Chris
WM5 GPS Application
Hi Chris!
I have an O2 XDA Mini S and i am missing the GPS Menue in WM5 and i think it would be helpfull in connecting with my GPS Bluetooth receiver.
It sounds that you know how it is activated so that i can try some changes. Would be nice to hear from you.
Thanks in advance
Carsten
http://forum.xda-developers.com/viewtopic.php?t=36540&highlight=gps
ßeta said:
http://forum.xda-developers.com/viewtopic.php?t=36540&highlight=gps
Click to expand...
Click to collapse
Hello,
I tried your soluce but it doesn't work on my Qtek9100 (Orange SPV M3000). The registry key is changed as shown, but after a soft reset, the "redirect" key reappears and my modifcations are not applied.
Does anyone have an idea ? :roll:
you must make sure that the changes are saved after the registry changes
otherwise as you say nothing happens
Jean,
I had the same thing, couldn't get it to work.
But using PHM regedit and saving the changes it finally did work.
The DWORD “hide” wasn’t in my Qtek.
Cheers
Is anybody able to help with my original question?
Hi All
I have performed the reg edit that enables the WM5 GPS App - I also know from threads that it is intended to allow multiple pocket pc applications to use the same GPS. Can someone explain how to use the various settings?
In particular, what is the effect of the different GPS settings on the tab labelled "programs" and that labelled "hardware"? And in what circumstances should one uncheck the "manage GPS automatically box" on the "access" tab?
Many thanks
Chris
Click to expand...
Click to collapse
lskb: I don't use GPS and don't have one, but I enabled the GPS settings page anyway.
It seems fairly descriptive to me, but I would guess, the Programs page basically deals with programs that have difficulty connecting to certain com ports (ie it's used for com port redirection).
So eg, if TomTom MUST be configured to a GPS receiver on COM2, set your settings in the Programs tab to COM2.
Hardware is the actual "physical" com port the gps receiver is linked to. Again, depends on your bluetooth setup/hardware pairing. But eg if your GPS receiver is connected to COM4, set this to COM4. Baud will typically be dictated by your software/hardware setup.
Access is for apps that don't like sharing the bluetooth/GPS receiver. Leave it as it is, ensure the first two tabs are correct, and if you're having troubles but you're certain they're Tab 1 and 2 are correct, or you know for a fact other people have found it helpful, untick the Access checkbox.
V
Vijay
Thanks for that, but I have a question. When you say hardware, you mean something phyiscally connected to the Wizard or by a bluetooth connection? If you mean the latter, then I am not sure that that is correct as the range of selectable baud rates looks wrong.
Thus, my bluetooth gps is installed on an outgoing com port 6 in the bluetooth settings area. The baud rate specified for my gps is 38400. Am I supposed to set the hardware com port to 6 (despite the fact that it is already set in the bluetooth area)? And if yes, how do I set the baud rate, as 38400 is not capable of selection....
Chris
Jean,
I had the same thing, couldn't get it to work.
But using PHM regedit and saving the changes it finally did work.
The DWORD “hide” wasn’t in my Qtek.
Cheers
Jean,
I had the same thing, couldn't get it to work.
But using PHM regedit and saving the changes it finally did work.
The DWORD “hide” wasn’t in my Qtek.
Cheers
well, i have exactly sam eproblems like Iskb. I set the hardware port to com 6. (Vario and Navilock BT unit). Then, when i am trying to connect to my BT module, there is no chance to establish the connection at this given port. I am forced to choose another one (ie COM7). I thought that the GPS manager would work in some way like GPSgate do, but it seems not to be true
make sure in the original com port area the bt modem is not listed on any port,
after you have enabled the com port in the new gps icon and then selected it in the navigator software, change the new gps icon port back to none, and then you can create a "New Outgoing Port" using the original com ports link.
hope this makes sense to somebody :?:

Disabling superfluous com ports

I'm looking for a way to disable some superfluous com ports in order to increase the number of free ports (for incoming bluetooth devices); mainly the infrared port which i have never used so far.
I think i saw something about that somewhere but a google search does not give any results.
does anyone know?
cheers
You can take thier driver entries out of the registry, then they'll never be loaded. Check out HKLM\drivers\builtin and just delete keys that you don't need. Of course that all goes away after a hard reset....
BTW, why do you need to do this? As I understand it, the bluetooth chipset monitors connected devices completely independently from the COM port setup. The number of COM ports on your device shouldn't limit the number of bluetooth devices you can manage. And I think there is a max of like 7 BT devices you can have connected. Maybe I'm wrong... goodluck!
You can take thier driver entries out of the registry, then they'll never be loaded. Check out HKLM\drivers\builtin and just delete keys that you don't need. Of course that all goes away after a hard reset....
BTW, why do you need to do this? As I understand it, the bluetooth chipset monitors connected devices completely independently from the COM port setup. The number of COM ports on your device shouldn't limit the number of bluetooth devices you can manage. And I think there is a max of like 7 BT devices you can have connected. Maybe I'm wrong... goodluck!
Yo!
This may be related to something called 'Ghosted' or hidden ports...
(read this: http://support.microsoft.com/default...b;en-us;315539)
The MS site above basically says to do this:
Right-click My Computer.
Click Properties.
Click the Advanced (tab).
Click the Environment Variables (tab).
Set the variables in the System Variables box. Click New: Variable name: devmgr_show_nonpresent_devices, Variable Value: 1
Reset PC.
++++++++++++++
Now to delete those nasty COM ports (now that we can SEE THEM!!!)...
Right Click 'My Computer' -> Properties, Hardware Tab -> Device Manager.
View -> Show Hidden Devices
You can now expand the 'Ports(COM & LPT)' tree and see all those extra nasty COM ports: Right click & select 'uninstall' to remove each individually.
Et Viola?
Andy
@awm129,
You would want to do this if you're trying to ActiveSync using BT: There is a 'bug' (restriction?) in AS that means that you can only use COM ports in the range of COM0 to COM9 - Now if your PC that can use COM1 to COM255 (which, stupidily enough, can only assign itself sequential port numbers) is stuck at say COM17, you're buggered (Like I was)!
Now if you think I spouting crap then GREAT - I would love for you to say 'Andy dude, you're spouting crap mate, let me educate you'... :wink:
I say this because a mate of mine said that you >don't< have to match COM ports - i.e. think real world - Just because COM ports on the back of devices are numbered differently, doesn't mean you can't connect them together... The jury's out on this one :?
Andy
Aren't you guys getting confused - I think he's talking about COM ports on his Universal, not on his PC...
Cheers,
Steve.

Finding available ports in HTC P3600 / Trinity

Hi,
My first post here!
I use the following in VB.NET 2005 to obtain a list of available ports in my HTC P3600:
Code:
Dim s As String
For Each s In SerialPort.GetPortNames()
Console.WriteLine(" {0}", s)
Next s
When I run this piece of code, it only finds COM3. I have a ROM in my P3600 that has the GPS activated. GPS is available on COM9, but I don't see this port in the list of portnames. When I connect directly to COM9, I get GPS data, so I know it works.
Any idea why COM9 doesn't show up with the code above? Is this port maybe hidden for developers?
CD
Nobody able to help with this?

Asus VivoTab Smart GPS port

The built-in GPS works fine with the map/GPS programs from Win8 Microsoft Store. I have several desktop map programs (e.g., MapPoint, Microsoft Streets 2013, OziExplorer, etc.) which look for a serial or USB port in order to talk to the GPS unit. Does anyone know how to get these programs talk to the internal GPS unit (e.g., COM port #, baud rate, etc.)? THANKS.
That information may be available in Device Manager. An alternative, somewhat silly but actually viable option: hunt up a copy of Hyperterm (or similar) and, assuming it runs on Win8 (I haven't tried), check your COM ports for GPS traffic and tweak the baud rate until it looks like NMEA (I assume that's what your software expects).
With that said, it's possible that the internal GPS doesn't use the standard ports at all, and instead just uses the new Windows Location APIs. That would probably mean you would need to write a cross-over program that uses the new APIs to retrieve the location, translates them into NMEA, and pushes them to a virtual COM port. Probably possible to write, but not trivial. I hope/assume that the Location framework can be used in desktop apps, but I haven't actually checked; Metro apps may not be able to access COM ports in which case you would need to write to some inter-process-accessible resource that can be reached from the AppContainer - a loopback network connection or possibly a file may be workable, I don't know if named pipes are reachable - and then a desktop application to connect the metro app to the virtual COM port. HUGE kludge, I know.
GoodDayToDie said:
That information may be available in Device Manager. An alternative, somewhat silly but actually viable option: hunt up a copy of Hyperterm (or similar) and, assuming it runs on Win8 (I haven't tried), check your COM ports for GPS traffic and tweak the baud rate until it looks like NMEA (I assume that's what your software expects).
With that said, it's possible that the internal GPS doesn't use the standard ports at all, and instead just uses the new Windows Location APIs. That would probably mean you would need to write a cross-over program that uses the new APIs to retrieve the location, translates them into NMEA, and pushes them to a virtual COM port. Probably possible to write, but not trivial. I hope/assume that the Location framework can be used in desktop apps, but I haven't actually checked; Metro apps may not be able to access COM ports in which case you would need to write to some inter-process-accessible resource that can be reached from the AppContainer - a loopback network connection or possibly a file may be workable, I don't know if named pipes are reachable - and then a desktop application to connect the metro app to the virtual COM port. HUGE kludge, I know.
Click to expand...
Click to collapse
so there is no app that will work with the built in gps even for desktop mode? I tried Maps(that comes with windows 8) and only locates my ip not gps position

Categories

Resources