Send correct ascii to serialport

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Aug 2009
Posts: 40
Reputation: procomp65 is an unknown quantity at this point 
Solved Threads: 0
procomp65 procomp65 is offline Offline
Light Poster

Re: Send correct ascii to serialport

 
0
  #11
Sep 7th, 2009
I am developing the software for the manufacturer and he needs a \004 to trigger an event in the microcontroller.
If I press alt 004 in tera term and hyperterminal it works. I need to emulate that same sequence or character or byte to beable to communicate with the device. If you enter a "Alt 004" at the cursor on these 2 terminal programs, what is sent to the serialport?
BTW I am using VS2010 beta on Vista, could that also be a factor?
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 40
Reputation: procomp65 is an unknown quantity at this point 
Solved Threads: 0
procomp65 procomp65 is offline Offline
Light Poster

Re: Send correct ascii to serialport

 
0
  #12
Sep 7th, 2009
Thanks I changed ASCIIEncoding to UTF8Encoding now it works perfectly. I used a serial port monitor to capture the returned data. Exactly as it should be. Problem now, I can capture the data on the port monitor, but where is it going in my code. I need to read it into an array and then acess it to draw a graph. Any Ideas on how and where I should code it?
Reply With Quote Quick reply to this message  
Join Date: Aug 2009
Posts: 40
Reputation: procomp65 is an unknown quantity at this point 
Solved Threads: 0
procomp65 procomp65 is offline Offline
Light Poster

Re: Send correct ascii to serialport

 
0
  #13
Sep 7th, 2009
this resolved my problem for receiving and displaying the data
http://social.msdn.microsoft.com/For...0-863ccd4c67f3
thanks for the help
Last edited by procomp65; Sep 7th, 2009 at 3:23 pm.
Reply With Quote Quick reply to this message  
Reply

Tags
communication

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for communication
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC