Click here to Skip to main content
16,012,759 members
Home / Discussions / C#
   

C#

 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 3:25
sitebuilderLuc Pattyn2-Nov-11 3:25 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 3:55
turbosupramk32-Nov-11 3:55 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 4:22
sitebuilderLuc Pattyn2-Nov-11 4:22 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 5:48
turbosupramk32-Nov-11 5:48 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 6:52
sitebuilderLuc Pattyn2-Nov-11 6:52 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 9:00
turbosupramk32-Nov-11 9:00 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 9:11
sitebuilderLuc Pattyn2-Nov-11 9:11 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 9:54
turbosupramk32-Nov-11 9:54 
Luc,

You're the man. Thanks for sticking with me, I really appreciate it ... the CR was what was missing at the end of the byte array.

When I send that, I'm able to send data and have it recognize it. Thanks again for the lesson! I guess the keypress event sends that behind the scenes? I did not know that the chip looked for that before now.

C#
byte[] buff = new byte[7];
buff[0] = (byte)'p';
buff[1] = (byte)'i';
buff[2] = (byte)'n';
buff[3] = (byte)'2';
buff[4] = (byte)'=';
buff[5] = (byte)'3';
buff[6] = (byte)13;
serialPort1.Write(buff, 0, buff.Length);

AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 10:10
sitebuilderLuc Pattyn2-Nov-11 10:10 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 11:03
turbosupramk32-Nov-11 11:03 
AnswerRe: Please help with writing to a serial port Pin
Luc Pattyn2-Nov-11 11:20
sitebuilderLuc Pattyn2-Nov-11 11:20 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 11:37
turbosupramk32-Nov-11 11:37 
GeneralRe: Please help with writing to a serial port Pin
Rob Philpott2-Nov-11 7:34
Rob Philpott2-Nov-11 7:34 
AnswerRe: Please help with writing to a serial port Pin
PIEBALDconsult2-Nov-11 9:00
mvePIEBALDconsult2-Nov-11 9:00 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 9:10
turbosupramk32-Nov-11 9:10 
AnswerRe: Please help with writing to a serial port Pin
Alan N2-Nov-11 10:12
Alan N2-Nov-11 10:12 
GeneralRe: Please help with writing to a serial port Pin
turbosupramk32-Nov-11 11:40
turbosupramk32-Nov-11 11:40 
Questionerror handling Pin
dcof1-Nov-11 17:46
dcof1-Nov-11 17:46 
AnswerRe: error handling Pin
Luc Pattyn1-Nov-11 18:10
sitebuilderLuc Pattyn1-Nov-11 18:10 
GeneralRe: error handling Pin
Wayne Gaylard1-Nov-11 19:09
professionalWayne Gaylard1-Nov-11 19:09 
GeneralRe: error handling Pin
dcof2-Nov-11 4:13
dcof2-Nov-11 4:13 
GeneralRe: error handling Pin
fjdiewornncalwe2-Nov-11 4:21
professionalfjdiewornncalwe2-Nov-11 4:21 
AnswerRe: error handling Pin
Luc Pattyn2-Nov-11 4:25
sitebuilderLuc Pattyn2-Nov-11 4:25 
AnswerRe: error handling Pin
AditSheth1-Nov-11 18:32
AditSheth1-Nov-11 18:32 
GeneralRe: error handling Pin
Pete O'Hanlon1-Nov-11 21:04
mvePete O'Hanlon1-Nov-11 21:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.