Serial Port Communication In Visual Studio 2010

Serial Port Communication In Visual Studio 2010 Rating: 4,9/5 39votes
Serial Port Communication In Visual Studio 2010Serial Port Communication In Visual Studio 2010

Hello, I was so excited to find this post and can't wait to play. I did run into one problem I am having with the code. Will I Am Willpower Album Download 320kbps. I went ahead and threw it into C# and compiled.

I've got a clarification question regarding the receiving of data from across a serial port from an Arduino. Specifically, I'm using a Sparkfun Pro Micro 5v/16MHz and.

The program detects my one and only COM port, COM12 and adds it to the port drop down box like it should. However, when I hit the Open Port button, it throws up an error in the Rich Text Box which says that COM1 does not exist. Of course that was not a mistype.

I select COM12 and yet it tries to connect to COM1. I took a look at the code and followed the _portName variable but was unable to see why it would cut off the 2 in 12. It would seem it should not as the variable is setup as a string. Quick Info: Windows Vista Business Microsoft.Net Visual Studio 2008 Express Arduino USB Microcontroller Card Port Settings (should be): COM12, 9600, None, 1, 8 Programs Receiving COM12: Arduino Software, Putty, & Realterm Am I missing something? You help is greatly appreciated. One thing I noticed.I went into Device Manager and changed the USB Virtual COM port to use COM1 and for some reason the program works fine.

Also works great if changed to COM2 in Device Manager. * Needs to read up on variable tracing *. Nice tutorial,But ı have a problem, when I hit the Open Port button, it throws up an error in the Rich Text Box which says that 'Access to the port COM1 is denied'. Iam using Windows XP and ı use this Serialcommunicator program to communicate with my mouse which ı plug it to COM1 at the same time, can anybody help me??? But when I take off the my Serial Mouse, Program work correctly. How To Get Activation Key For Movavi.

Waht can ı do? I have a project, taking serial mouse data and display them on the screen. This post has been edited by **silver**: 29 April 2008 - 02:57 AM.

Hi It's nice code indeed, but has at least one small fault which has made problems to some people and also to me now. The code will run correctly as long as you are working with COM1 (Default). For working with any other Com-Port you need to amend the Method cmdOpen_Click, adding (insert before comm.OpenPort()) the line comm.PortName = cboPort.Text; With this correction done, the desired port opens, but I'm still having problems receiving data. But I think my new problem could be particular to my device and therefore I'm assuming, the code is fine now. Regards Pirmin This post has been edited by Pirmin: 30 April 2008 - 10:44 PM.

Hello All, I am having configuration Windows XP. I had default 2 COM port are working. I had configured Null Modem and activate 2 new ports COM3 and COM4. I am opening two instance of our application and try to open individual ports COM3 and COM4 with same configuration settings.

But when I send any text information it will shows this text into same text area part. But it will not send whole text to another PORT. Only first character is shown. Other are junk characters. I do not know how it works.

Can any one give me workaround for this. Thanking you in Advance. Thanks for a great little program. Besides trying to learn everything I can about it, I've been using it to control an Insteon PowerLinc Modem.

This is a programable device that can send X10 codes through the power lines. This program works great with the PLM by sending house/unit codes in hex, turning remote X10 modules on & off, etc. I especially like the way the PLM acknowledgement comes back and shows in the program's receive data window. I do have a couple questions perhaps someone can answer. The PLM requires the baud rate set to 19200, but that isn't a choice in the drop down list of baud rates. I do have my computer's COM1 port set to 19200. I did discover I could change this line in the Main Form to cboBaud.SelectedText = '19200'; to set the proper baud rate for my PLM.