//命令码0x8001转为int为32769,发送时反序
byte[] bt = new byte[] { 0x01, 0x80 };
int lt1 = BitConverter.ToUInt16(bt, ); //int to byte[]
int i = ;
byte[] b = BitConverter.GetBytes(i); //byte[] to int
byte[] bb = new byte[] { , , , };
uint j = BitConverter.ToUInt32(bb,);
//sTemp=0x 57-18-00-00
string sTemp = BitConverter.ToString(bb);
05-13 15:21