"14"得到20
private static byte HexStringToByte(string str) { byte bt; if (str != "") { bt = Convert.ToByte(str, 16); return bt; } return 0; }