十六进制字符命令:03 03 00 00 1F 2D 8A
public static byte[] hexStrToBytes(String hexStr) {
String[] hexs = splitString(hexStr);
byte[] hexBytes = new byte[hexs.length];
for (int i = 0; i < hexs.length; i++) {
hexBytes[i] = hexToByte(hexs[i]);
}
return hexBytes;
}
结果: