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
Posted Tuesday, June 30, 2009 10:48 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: Tuesday, June 30, 2009 10:42 AM
Posts: 1, Visits: 1
I have the same exact problem. I double checked all my code for parameter errors when declaring the serial port, and they're all correct. I even compiled the program on my desktop and it worked!

For some reason when I try to run the program on the Ebox2300, i get an IOException at serialPort.Open()...

Does anyone know why this is?
Post #1231
Posted Wednesday, July 01, 2009 6:39 PM
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Forum Members
Last Login: Friday, April 22, 2011 6:18 PM
Posts: 153, Visits: 547
HI toast,
I dont have a ebox and have never used one but I did look around a bit and find that
the ebox-2300 may have 2 com ports. Com-1 is defaulted to the console and will have
to be finagled to be usable. Here is a link here on the forum that is related.
http://www.roboticsconnection.com/userForums/Topic115-21-1.aspx
I hope you get yours working. There is a lot of related info out there.

Don Lewis


Don Lewis
Post #1232
« 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 4:14pm

Powered By InstantForum.NET v4.1.4 © 2012
Execution: 0.094. 7 queries. Compression Disabled.