char ConvertHexChar(char ch)
{
if((ch >= "0") && (ch
return ch-0x30;
else if((ch >= "A") && (ch
return ch-"A"+10;
else if((ch >= "a") && (ch
return ch-"a"+10;
else return (-1);
}
QByteArray QString2Hex(QString str)
QByteArray senddata;
int hexdata,lowhexdata;
int hexdatalen = 0;
int len = str.length();
senddata.resize(len/2);
char lstr,hstr;
for(int i=0; i
char ConvertHexChar(char ch)
{
if((ch >= "0") && (ch
return ch-0x30;
else if((ch >= "A") && (ch
return ch-"A"+10;
else if((ch >= "a") && (ch
return ch-"a"+10;
else return (-1);
}
QByteArray QString2Hex(QString str)
{
QByteArray senddata;
int hexdata,lowhexdata;
int hexdatalen = 0;
int len = str.length();
senddata.resize(len/2);
char lstr,hstr;
for(int i=0; i