IO Exception upon opening COM port on Ebox2300
Navigates to RoboticsConnection.com Home RoboticsConnection.com HomePage
RoboticsConnection User Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



IO Exception upon opening COM port on... Expand / Collapse
Author
Message
Posted Saturday, April 26, 2008 9:50 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Saturday, April 26, 2008 1:06 PM
Posts: 1, Visits: 4

Hello,

I am trying to access either of the serial port of Ebox2300 but IO Exception is raised at sp.Open(); line of the following program:


SerialPort sp = new SerialPort("COM1", 19200, Parity.None, 8, StopBits.One);
//SerialPort sp = new SerialPort("COM2", 19200, Parity.None, 8, StopBits.One);
//The error is raised even if I change COM1 to COM2
if (sp.IsOpen)
{
sp.Close();
}
sp.Open(); // Here exception is raised.
sp.Close();

---------------------------------------
I have downloaded ICOP_Vortex86_60CS_BSP.msi and built my image as per eBox-2300 Jump Start Guide.
I have added Serial Port Support, Com_Card, Com16550 and Com16550 (Second Instance) in addition to the items mentioned in Jump start guide.
To test that cable is properly working, I created a Direct connection for COM1/2 on WinCE running on Ebox2300. And then connected the other end of serial port to my PC. On hypertrm, it shows CLIENT CLIENT... which indicates that serial cable is working correctly.
I have also checked that whether COM1 is mapped to COM2 for output by connecting cable to COM2 but writing COM1 in the code, but here also it raises the IO exception at sp.Open(); line.
Your help will be greatly appreciated.
Thanks!
 



Best Regards,
Ankur Verma
Post #465
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: jsummerour

Permissions Expand / Collapse

All times are GMT -8:00, Time now is 11:06pm

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 10 queries. Compression Disabled.