摘要:
public static byte[] strToToHexByte(string hexString) { hexString = hexString.Replace(" ", ""); if ((hexString.Length % 2) != 0) hexString += " "; byt 阅读全文
摘要:
/// <summary> /// CRC16校验 /// </summary> /// <param name="buffer">数组</param> /// <param name="buflen">数组字节长度</param> /// <param name="sidx">帧开头</param 阅读全文
摘要:
/// <summary> /// XRC校验 /// </summary> /// <param name="data">二进制数据</param> /// <param name="datalen">数据长度</param> /// <param name="sidx">校验开始位置</para 阅读全文
摘要:
/// <summary> /// 将bcd字节数组转为10进制字符串 /// </summary> /// <param name="bcd">bcd码字节数组</param> /// <returns>返回转换后的10进制字符串</returns> public static string BC 阅读全文
摘要:
/// <summary> /// 将BCD一字节数据转换到byte 十进制数据 /// </summary> /// <param name="b" />字节数 /// <returns>返回转换后的BCD码</returns> public static byte ConvertBCDToInt 阅读全文