Re: Urgent, COM port problem

From: Paul G. Tobey [eMVP] (ptobey_no_spam_at_instrument_no_spam.com)
Date: 02/27/04


Date: Fri, 27 Feb 2004 15:44:17 -0700

Check the registry on the running device. Is the COM port driver listed in
HKLM/Drivers/Active? If not, check the settings in the registry for the
driver (HKLM/Drivers/BuiltIn). If this is the case, you should probably
capture the debug output from the OS and see if anything shows up.

If the driver *is* listed, what happens when you try to send data to it?
Does the data simply not appear, but CreateFile() works? Does the
WriteFile() call return an error? If so, what error? Are you sure that you
don't have handshaking enabled and one of the handshake signals connected to
the wrong value (telling the port not to send)?

Paul T.

"CE" <hcheng@optonline.net> wrote in message
news:OyFQpzX$DHA.792@TK2MSFTNGP11.phx.gbl...
Blank
I use PB4.2 built a CE 9MB image and I wrote a com port test program, I can
send data to COM port, no problem. Then I add some components to CE image,
now CE image is about 20MB, now I found my program can't send data to COM1.
I have no idea why this happen, I searched components I added, they have
nothing to do with COM port.

Does any body know what caused this and how to fix this? Thank you very
much!



Relevant Pages

  • Re: bluetooth XP SP2 Cannot Set BT COM port
    ... I cleared a settings in the registry ... This made my Widcomm software to add bt enabled port starting with COM5. ... Drivers->Com, even if the property explicitly told the right driver. ... I do not see the differernces in the registry nor elsewhere, ...
    (microsoft.public.pocketpc.activesync)
  • Re: USB device detection via query registry information
    ... the driver writes to the SERIALCOMM key as it is starting up. ... but I wanted to weigh in on this discussion of detecting new USB serial port. ... While I've never gotten "file not found", I have been able to exclusively open the device interface path only to find that the SERENUM filter trashed my settings and installed a mouse driver. ... It is necessary to also poll the list of ports (of course using SetupDi* functions, not registry access, and test the device state) because the user-mode WM_DEVICECHANGE handler needs an arbitrary amount of time to complete and some device insertion notifications are not delivered in this case. ...
    (microsoft.public.development.device.drivers)
  • Re: TAPI Enumeration after boot
    ... I'm not sure how you'd do this for a built-in driver, ... for a Builtin serial port we currently have: ... external modem being added without adding an ExtModems registry entry. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: TAPI Enumeration after boot
    ... the registry settings for the driver to achieve the result that I ... for a Builtin serial port we currently have: ... external modem being added without adding an ExtModems registry entry. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Adding COM Port
    ... " Can you tell me what does the values and registry key means? ... Instance of serial port that the driver manages. ... So, you need to add the registry settings for each instance of yr port, ...
    (microsoft.public.windowsce.platbuilder)