Hi,
I have been creating a GUI in C# to interface with a MC I have. I've had success doing just this using one computer but when I switch it to a laptop I get the error:
"The port selected is not a COM/com port, or does not resolve to a valid serial port.
Parameter name: portName"
I'm not 100% what the problem is. The Arduino interface works fine using the laptop, but only when I use my GUI on the laptop does it not work.
I have been using the following code:
string[] ports = System.IO.Ports.SerialPort.GetPortNames();
//Check ports to find the one that board is connected to
foreach (var port in ports)
{
timeoutcheck = 0;
try
{
usb.BaudRate = 38400;
usb.PortName = port;
//usb.PortName = "COM10:";
MessageBox.Show(port,port,MessageBoxButtons.OK);
usb.Open();
Now what confuses me is that It works perfectly on another computer I am using, and the arduino interface has no problem connecting on the laptop.
The Board seems to connect on "COM10" on the laptop. I've read on other forums that my printer drivers may be blocking the port. If thats so is there an easy way to either create a completely new and unused port that the laptoc can detect when I plug in my board, OR bypass the blockage?
Any thoughts on the subject would be a great help.
Thanks