PC Review


Reply
Thread Tools Rate Thread

Can't debug serial comm's on COM1:

 
 
Andy
Guest
Posts: n/a
 
      8th Mar 2004
I have a program running on an iPAQ 2210. It communicates successfully
via
COM1 on the iPAQ and COM1 on the PC to Hyperterminal, provided I start
it from VS with ctrl-F5 (Start without debugging).

If I run the debugger (F5), the debug connection drops out and the
program
terminates whenever I send data from the iPAQ to the PC.

Data goes from the PC to the iPAQ without problems.

ActiveSync is running over USB. In the "Connection Settings" dialog,
the COM
port option is not enabled.

It's as though the debugger or ActiveSync are trying to use COM1 even
when they are configured to use USB.

Can anyone shed light on this problem.
 
Reply With Quote
 
 
 
 
Ginny Caughey [MVP]
Guest
Posts: n/a
 
      8th Mar 2004
Andy,

I think it's likely that there is contention over the com port, although I
don't really know. I have debugged serial communications using a device
connected via wireless, but it's still hit or miss since a lot what goes on
in serial communications is time sensitive. I found using a log file to be
more useful for serial communications (and also for multithreaded apps) than
stepping through the debugger, so perhaps this would work for you too.
--
Ginny Caughey
..Net Compact Framework MVP

"Andy" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a program running on an iPAQ 2210. It communicates successfully
> via
> COM1 on the iPAQ and COM1 on the PC to Hyperterminal, provided I start
> it from VS with ctrl-F5 (Start without debugging).
>
> If I run the debugger (F5), the debug connection drops out and the
> program
> terminates whenever I send data from the iPAQ to the PC.
>
> Data goes from the PC to the iPAQ without problems.
>
> ActiveSync is running over USB. In the "Connection Settings" dialog,
> the COM
> port option is not enabled.
>
> It's as though the debugger or ActiveSync are trying to use COM1 even
> when they are configured to use USB.
>
> Can anyone shed light on this problem.



 
Reply With Quote
 
Dick Grier
Guest
Posts: n/a
 
      9th Mar 2004
Hi,

Is your device cradled? You cannot use the USB and serial ports
simultaneously in this case, I think. If your PPC has a "serial/USB 'Y'
cable" then, you might be able to do it. Otherwise, I'd suggest that you
connect to the PPC using either a wired or wireless connection for
debugging. Personally, I use a wireless (802.11b) card.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 3rd
Edition ISBN 1-890422-27-4 (391 pages) published February 2002.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
diag.Debug.Writeline output going to the COM1 serial port. Jay Microsoft Dot NET Compact Framework 6 9th Sep 2008 03:19 AM
Serial Comm joaquimfpinto@solverde.pt Microsoft C# .NET 0 31st Aug 2006 10:58 AM
serial comm dohko Microsoft Dot NET Compact Framework 2 13th Mar 2004 03:44 PM
COM1 Serial Port GLH Windows XP General 2 28th Dec 2003 01:07 AM
serial (COM1) communications in .NET Neel Word Microsoft Dot NET 2 26th Nov 2003 07:22 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:16 AM.