How to open com ports in managed code

This forum is for users of Atmel's SAM Series and who are interested in using WinCE OS.

Moderator: nferre

apaszczak
Posts: 5
Joined: Sat Mar 15, 2008 11:34 pm

How to open com ports in managed code

Mon Dec 28, 2009 12:03 pm

Hi,

I am working with AT91SAM9261 EK, with WinCE 6.0 (BSP Source codes are included),

I am trying to open COM port in managed code in some just created application, and I run into IOException for every time regardless which COM port I am trying to open,

my code in managed app:

SerialPort com;

string[] a = SerialPort.GetPortNames();

com = new SerialPort("COM1",115200, System.IO.Ports.Parity.None, 8, System.IO.Ports.StopBits.One);
com.Open();

Hope you can help me, also I can say that com ports are visible with GerPortNames()

BR, Adrian

Return to “WinCE”

Who is online

Users browsing this forum: No registered users and 1 guest