Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to open com ports in managed code
PostPosted: Mon Dec 28, 2009 12:03 pm 
Offline

Joined: Sat Mar 15, 2008 11:34 pm
Posts: 5
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: