943,671 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Marked Solved
  • Views: 4842
  • C# RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Sep 7th, 2009
0

Re: Send correct ascii to serialport

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?
Reputation Points: 10
Solved Threads: 0
Light Poster
procomp65 is offline Offline
48 posts
since Aug 2009
Sep 7th, 2009
0

Re: Send correct ascii to serialport

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?
Reputation Points: 10
Solved Threads: 0
Light Poster
procomp65 is offline Offline
48 posts
since Aug 2009
Sep 7th, 2009
0

Re: Send correct ascii to serialport

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.
Reputation Points: 10
Solved Threads: 0
Light Poster
procomp65 is offline Offline
48 posts
since Aug 2009
Oct 29th, 2010
0
Re: Send correct ascii to serialport
Hello,

I am just wondering if you are still having problems with the serial port. If so, I developed a serial port programming language in C# and I believe it solves nearly all of the problems that everybody encounters with.

Would you please take a look and try it ?

For example; I think you want to send <EOT> control character to the serial port. You can do it easily with this application.
C# Syntax (Toggle Plain Text)
  1. state Init
  2. send("<EOT>");
  3. end state
Project is freely available on sourceforge and if you have any questions, please feel free to ask.

Project homepage
Download Link

Thank you,

Orhan
Reputation Points: 21
Solved Threads: 0
Newbie Poster
albay is offline Offline
5 posts
since Oct 2010
Oct 29th, 2010
0
Re: Send correct ascii to serialport
albay,

Please do not resurrect threads that are years old. By doing so you run the risk of confusing current posters.Have a look at forum rules.
Moderator
Reputation Points: 2136
Solved Threads: 1228
Posting Genius
adatapost is offline Offline
6,527 posts
since Oct 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: How to delete data in table via sql Compact server
Next Thread in C# Forum Timeline: tutorial question - need help please





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC