Hi all, my name is Josev and I'm a newbie here.
I'm working to build receiver program with visual studio (C#) to receive data from my microcontroller. My PC connected to XBee via USB and read the data through COM port. The string data from microcontroller has been encrypted using aes128. But some characters can't be recognized by my PC, resulting in decrypting process failure. Here some example of my data :
real data : @A1@3.2@4.5@ (string)
data sent from my micro : »ËÌùû3arå*\
data received by my pc : ??????3ar??*\
Some characters can't be recognized and become "?"
I use ReadLine() to read COM port and catch it in string variable like this.
String data = ComPort.ReadLine();
But when I check it by print it on my checkbox, some characters become "?". I took a screenshot in this
link.
Please, really need help.