Click here to Skip to main content
15,898,849 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
i am using c#.net from serial port communication in my project, but i am unable to handle hex values greater than 7F, so can i use VC++ for my project.
Posted

I don't think that there is a problem with c# and serial port communication. If you face an issue, there seems to be a problem in your code. If you need advice on how to solve this, please show what you have done so far.
 
Share this answer
 
That is the Problem with C# SerialPort Communication,

You have to change the Encoding of your serialport to UTF-8

use the below code to set Encoding.. in C#

SerialPort port = new SerialPort();
port.Encoding  = System.Text.Encoding.GetEncoding(1252);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900