tags:

views:

69

answers:

2

I would like to send the character 'a' to the serial port.

I tried:

serialPort1.WriteLine("a");

but it's not actually sending the character 'a' to my board.

Any ideas?

A: 

Are you using the serial port class?

http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx

Darel
A: 

How do you know that it isn't sending the character? Is it possible that the baud/word length/parity setting are off and your board is just not recognizing the character?

Also, why c#? Just seems an odd choice for hardware IO.

Adam Shiemke
why is it odd? or what should i be using. Sorry i'm a newbie...
jan
You're free to use whatever you like, the language depends on the solution. C# is rather far from HW, but that is just my personal bias :) I've had good experiences with C and Python in the past.
Adam Shiemke
+1 .... I see no reason at all why this answer was down voted - its a suitable answer to the question...
Dal