Thank u for the reply but the problem is i will send the data as
Ex: 3A 54 31 32 33 .....
9B 82 0D 0A
here the underlined data is nothing but the sum of all the bytes iam sending to the antenna (excluding 3A, 0D, 0A: those are start and end of communication)
the last but 2 bytes are the checksum by which the authentication is done, so it must be sent as it is to the antenna.
I don't know about 8 bit of ASCII just let me know about it.
SerialPort.Write(hex2ascii(3A5431323334353637383942545695965835679BA50D0A));
Thread.sleep(500);
string resp = SerialPort.ReadExisting;
response = resp.Length;
string token = resp.substring(14,1);
if(token == 04)
{
.....
}
the resp is the response from the antenna here it gives the data and i have to split and find the checksum and validate the data and start transfer of the data after the response from the antenna is correct