R
RAFFI SEMERJIAN
Guest
I need to convert the data in the Text box into a HEX number and send it through serial port.
Here is the code to send through Serial Port that I am using. port.Write(textBox1.Text);
If I enter 1000 in the text box, I see in the serial terminal program HEX values 31 30 30 30. Which is correct.
This data will be read by the micro-controller. I need to convert this number into Hex format before sending and send only 2 bytes 03 E8.
Please help. Thank you.
Continue reading...
Here is the code to send through Serial Port that I am using. port.Write(textBox1.Text);
If I enter 1000 in the text box, I see in the serial terminal program HEX values 31 30 30 30. Which is correct.
This data will be read by the micro-controller. I need to convert this number into Hex format before sending and send only 2 bytes 03 E8.
Please help. Thank you.
Continue reading...