COM1: occupied!!! - Windows Mobile Development and Hacking General

Did anyone have the same problem:
Most of the times, opening the serial port on COM1: works fine. But sometimes, after a hard reset for instance, opening the port fails. If one checks through the eVC++ Process viewer, one sees that the corresponding DLL got loaded by device.exe.
I couldn't fathom out what app causes that problem, it must be one that comes with the device, as it happens after hard reset. ActiveSync is activated for 'USB, so this shouldn't cause it.
Any idea what app blocks COM1: ?
Device :Qtek2020
Thanks

Beam?

You can make a wrapper around COM1 driver and log all processes that are trying to open it. This will help you to find the program. But as far as I see only WMODEM app uses COM1. Or maybe system at startup checks all COM ports for a modem.

It was the beam, thanks a lot for your answers. It gets activated by default after hard reset. Looks like a bug to me: that ircomm which is mapped to another virtual port number should block COM1..
phil

Related

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 :?:

Using multiple GPS apps simultaneously - A small investigation

Searched all forums for ( GSP , Comports, Multple, split comport, duplex )
I have no troubles using any GPS app on my Universal (MDA Pro)
However, using...... GPS gate (buyware)
....or the free GPS splitter that comes with
Microsoft Virtual Earth Mobile (freeware, GPS icon suddenly appears under settings-connections after install of Microsoft Virtual Earth Mobile,
....or app found at http://www.gpsmeter.com/ (browse to portsplitter)
i am still unable to successfully run two GPS apps at the same time.
Don't get me wrong, I DO succeed in getting two GPS apps READ the data.
Both apps will show connection , for instance TomTom together with my own app PocketReperion, but tried with Visualgpsce http://www.visualgps.net/VisualGPSce/ and a lot of other apps too.
Symptoms : Even though successfull in setting up various comsplitters to send data to 1 virtual port, and have multiple GPS application accessing them, I am unable to get that situation stable.
So the concept on a lot if ISO layers has been proven, why the hell doesn't it work for longer that say a minute, 4 minutes, not at all, 10 seconds...
It seems that most comsplit apps are rather "reset" intensive (tested on clean device) and even when it does work for a while something will lockup and a reset is again necessary.
Does anybody use the blue GPS icon (free after install virtual earth mobile) to split ports and if so what is your setup ?
Does anybody use GPSGATE to split ports and if so what is your setup ?
Does anybody use the PortSplitter linked to above..to split ports and if so what is your setup ?
Please share your thought and expierences with me as I really really want to solve this issue. Be it for my "own" app, but also for all the other ones out there.
GPS port splitting multiple GPS apps on 1 receiver
Small BUMP : Doesn't anyone use portsplitting in whatever form, or am I really the UeBerGEEK here ?
It Works !!
IT WORKS !!!! BUT YOU HAVE TO CREATE TWO VIRTUAL PORTS - USE PORTSPLITTER !!!
All I had to do is download http://www.gpsmeter.com/ portsplitter as discussed in the other threads, HOWEVER......
Instead of what manuals seem to say, even from other softwarez like GPSGate, create TWO or more VIRTUAL ports in PORTSPLITTER!! Connect each GPS app to a DIFFERENT VIRTUAL PORT.
Also, when pairing and configuring your GPS, try taking a high Comport like 9. Go down one if no success.
Then when configuring PORTSPLITTER, don't be alarmed that your COMPORT isn't in the drop down list, MANUALLY enter "COMx" without the usual ":" where x stands for a number..the high real COM portnumber you configured when pairing/setting up.
You must use your keyboard or the stylus to manually enter the Comport if it is not in your dropdown list in PORTSPLITTER..
for speedreaders :
install PORTSPLITTER http://www.gpsmeter.com
use highest physical COMport available to pair your GPS
Define TWO virtual ports (instead of what seems to be written everywhere or am I really lame?)
Connect each Application to different virtual ports
My setup on a T-Mobile MDA Vario II (with Cingular ROM)
Physical Port 9
Virtual Ports in PORTSPLITTER 4,8
Hardware COMport in PORTSPLITTER (COM9 had to manually enter it, it was unavailable from drop down.... .... ...)
TomTom Navigator mapped to virtual COM8 (Didn't show up in TOMTOM until PORTSPLITTER running and connected to GPS.. ..)
Reperion *sweet favorite GPS app" mapped to Virtual COMPort 4 (Reperion eats all ports, no problems there....)
Please o please report...

WM6, dialog-based application and cprog.exe

I have a simple dialog-based application, created by MS Visual Studio 2005 with WM6 SDK, which shall be auto-started on a WM5 and WM6 smarthpone device through an HKLM/init registry entry. On WM5 everything works perfectly, but not on WM6: When the device boots up, the application starts as expected, but then its impossible to start the device's phone application. Neither through the green HW phone butten, nor through a CreateProcess() or whatsoever.
The phone application only comes up when either the SIM-pin has to be entered, or when there is an incoming call. From these events onwards, everything works perfectly until next reboot. This means, when I use a SIM card with enabled PIN, there is no chance to get the cprog.exe active. If the dialog-based application is closed, everything again works well.
That f... thing drives me crazy, because I see absolutely no reason for this behaviour (as said: on WM5 there are no problems).
On WM6 there are additional problems when connecting via a remote tool (reg editor or process viewer) during the dialog based application runs.
But as also said: There is nothing special in the dialog: Its basded on the VS2005 application wizzard, and the dialog just contains a static text and a picture control ...
Any idea what else I could try to make everying work????

Handy Sniffer v2.0

Hi IT people,
Handy Sniffer v2.0 has been released! It is cardinally altered.
11 protocol parsers are included and now anybody can develop new packet analyzers (.dll).
Unregistered version has a little restrictions but has no trial period.
You can find the program and module sample on our site.
http://winm-soft.atspace.com
Good Luck!
Great Release
Congratulations Alex, you managed to make cellular trafic capture, it's great news! Sorry that i didn't replyed to you about 1.6 but I had some personal problems that time. Anyway when we might expect WM5/6 version?
HS2 is specially designed for WM2003, WM5, WM6 and maybe smartphones (not tested). If there are some artifacts, ect. write me about it. I have WM5 and WM6 devices and HS2 and EDh work well. Play it! It is very great If anybody makes some additional protocol parser. Any ideas? Maybe some Instant Messenger protocol?
One more sample module
This is a sample module that can process each packet captured by sniffer. It replaces the main program module ("modules\hs_ether.dll") and calculates some Rx statistics. Maybe its source can be interested for somebody.
The link not work, now!
I clicked the previous link and all is ok. Copy is here.
Greetings AlexB,
I downloaded your program which sounds great. I installed the SDK certs and tried to get hsniffer running but it fails with an error message:
"Cannot activate the driver!" and then quits.
I'm using a HTC Kaiser with the latest official WM6 ROM from HTC.
If I start the program a second time, it starts without this error and if I click File->Tools->Adapters I get my adapters listed. Trying to start a capture generates the following error message: "Cannot get adapters list!"
Any hints? Did I miss something?
Hi c0rnholio,
I do not know why on some devices the sniffer cannot load the driver module (Windows\hsdriver.dll). The error 2 happens (ActivateDeviceEx, GetLastError, ERROR_FILE_NOT_FOUND) and next you see "Cannot activate the driver!". After this message the program works (you can open sample files) but cannot perform sniffing functions those need driver functionality. I think after this message the main window was behind and after next run you simply bring program window to top.
If anybody knows what causes such driver loading error I will be grateful for help. The program and driver are signed with SDK privileged certificate and it unfortunately does not help... **** happens.
Fixed it. The problem was that a GPRS connection was already established. After closing the existing connection the driver could be loaded and everything is working fine.
It is VERY strange! OK, if anybody ask me why HS does not work I'll say ask c0rnholio how need to do...
Hi,
i'm trying the new Handy sniffer into my TouchHD (Blackstone) but i can only get ARP packets (which are broadcasted). I also installed sdkcert as site advice, but nothing changes.
Alex, can you write down a list of devices which can capture in promiscuous mode?
In particular, how about Trinity and Blackstone?
Thanks!
sorry for my ignorance but what is the purpose of this? can i connect using gprs for free?
No, it's not for that purpose.
Handy Sniffer "Sniffs" (listen to) the traffic into a network. If working in "promiscuous mode" it can track down (and show to user) all the traffic (data in form of TCP packets) inside that network.
What's is supposed to?
There are many uses for this kind of tool, some legal and some ... "not legit".
While "sniffing" traffic of a given network, you can detect if someone is doing a unrightful use of the network, if an intrusion is being made, but also you can see passwords and other sensible data (like personal data).
It's like having a big hear cabable of listening network traffic. By itself, it can do nothing. It's up to the user to be capable of understanding packets of captured traffic.
So, forget a "stole the passwords" button. You'll not find it
woring with the HD2?
Hi, I have the HTC HD2, and I want to know if it was working with my phone?
I have actualy tried it, but the result was not good... (I only get ARP...).
thanks for any help
good for you guys, with my the HTC Kaiser I don't get anything...how do you do/set up the program
Thanks,
DOMy

Bluetooth GPS COM port does not stay selected

The crappy HTC BT stack from HD2 strikes again. I have an external GPS unit and I mapped it on COM2 port. Now every time I try to use that port from a GPS program (like GPSTool or iGo) the damn selection dialog pops up asking me to select WHICH comm port do I want to use?! THERE IS ONLY ONE!!!!
The worse thing is that I don't have a way to change to this external GPS for the whole OS: The External GPS settings dialog doesn't seem to have any effect.
I am using the latest EnergyROM but I believe this problem is also present in the official ROMs.
Any ideas? Thanks!
Same problem here. I sent a request to the HTC support today. Damn WIDCOMM Bluetooth-Stack.
Look at this thread: 632159 (I am not allowed to post direct links )
You have to change the 'GPS driver' selection in the registry.
It's in HKLM\System\CurrentControlSet\GPS Immediate Driver\Drivers\CurrentDriver
You can modify my http://forum.xda-developers.com/showthread.php?p=4373210#post4373210 cab for yourself. I'm releasing a GUI selector for this in CamerAwareBuddy sometime soon. I'm sure somebody make one before also.
HOWEVER, this doesn't disable the useless COM port confirmation each time.
Something that might be interesting for this problem:
showpost.php?p=6397904&postcount=7

Categories

Resources