all groups > dotnet compact framework > december 2007 >
You're in the

dotnet compact framework

group:

using System.IO.Ports problem in Windows App


using System.IO.Ports problem in Windows App HoustonK
12/28/2007 6:20:01 PM
dotnet compact framework:
Hi,

I have no problem to write and read through my COM1 in my app which created
in Console based application.

So far I tried which are successful in pc win app, pc console app and smart
device console app.

Once I used the Win app in smart device, there is a problem. So, there
isn't any error message when I initialized the com port as shown below:

private SerialPort _serialPort = new SerialPort("COM1", 38400, Parity.None,
8, StopBits.One);

But, I couldn't get the response from my serial device. Is there any
special tricks to initialize com port in CF 2.0 Win App? Or it didn't support.

Thank you.

Re: using System.IO.Ports problem in Windows App Ginny Caughey [MVP]
12/29/2007 9:03:14 AM
Try using a colon after the port name.

--
Ginny Caughey
Device Application Development MVP


[quoted text, click to view]
Re: using System.IO.Ports problem in Windows App Rainer Borchmann
12/29/2007 8:27:38 PM
"HoustonK" <HoustonK@discussions.microsoft.com> schrieb

[quoted text, click to view]

May be you need some other options like
DTS=ON ore DTR=ON

Rainer


AddThis Social Bookmark Button