大家好,
通过RS-232串口读取噪音值
RS232 Protocol
1. RS232 Settings :
Baud rate : 9600bps Parity check : None Data bits : 8 Stop bit : 1
2. Recall : To receive data from the meter, input an (any key) command then it will reply
02H + FFH + FFH + FFH + FFH + 03H to recall.
3. Transfer Format :
Content :
Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6
02H Function1 Byte Function2 Byte Data High Byte Data Low Byte 03H
Function1 :
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
x x x
01150-110 00020- 80
10060-120 00130- 90
10170-130 01040-100
Function2 :
Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0
Under Over A / C x x x
00Fast 01Slow
10 x 11 x
4. Command : (After Recalled)
“W” + YY + MM + DD Set RTC’s YY,MM,DD (Year, Month, Date)
“X” + HH + NN + SS Set RTC’s HH,NN,SS (Hour, Minute, Second)
“Z” + x + Second(High Byte) + Second(Low Byte) Set Meter’s Recording Interval
“K” + x + x + 01H A / C
02H Fast / Slow
04H Max / Min
09H Level up
0AH Level down
“R” + x + x + 35H 02H + AAH + x + Interval High Byte + Interval Low Byte + 03H
“R” + x + x + 33H 02H + AAH + x + 3 Bytes of Last Address + 03H
请问下:“Z” + x + Second(High Byte) + Second(Low Byte) Set Meter’s Recording Interval
这个命令代码怎么写啊? 急 |