/* translate Hex to String pbDest: the memory to stored encoding string pbSrc: the input hex nLen: the length of hex  */
void HexToStr(unsigned char *pbDest, unsigned char *pbSrc, int nLen)
/* translate Hex to String pbDest: the memory to stored encoding string pbSrc: the input hex nLen: the length of hex  */
void HexToStr(unsigned char *pbDest, unsigned char *pbSrc, int nLen)
{
    char ddl,ddh;
    int i;
    for (i=0; i<nLen; i++) {
        ddh = 48 + pbSrc[i] / 16;
        ddl = 48 + pbSrc[i] % 16;
        if (ddh > 57) ddh = ddh + 7;
        if (ddl > 57) ddl = ddl + 7;
        pbDest[i*2] = ddh;
        pbDest[i*2+1] = ddl;
    }
    pbDest[nLen*2] = '\0';
}