Kecheng KC-330B

From sigrok
Revision as of 01:32, 18 June 2013 by Bert (talk | contribs) (→‎Protocol)
Jump to navigation Jump to search
Kecheng KC-330B
Kecheng KC-330B.png
Status in progress
Connectivity USB
Measurement range (A) 30dB - 130dB
Resolution 0.1dB
Accuracy (94dB@1kHz) 1.5dB
Frequency weighting A, C
Time weighting F, S

The Kecheng KC-330B is a sound level meter and data logger with USB connectivity.

See Kecheng KC-330B/Info for more details (such as lsusb -vvv output) about the device.

Hardware

Photos

Protocol

The host sends commands to the device via endpoint 2, and receives responses via endpoint 1. A command consists of a single byte, with the MSB (bit 7) cleared, followed by any arguments to the command. The response from the device consists of at least one byte: the command, with the MSB set.

Description Command Response
Configure 0x01 + 6 bytes 0x81
1 Sample rate 0-6, representing 125ms, 500ms, 1s, 2s, 5s, 10s, 60s respectively.
2 Alarm low threshold
3 Alarm high threshold
4 Time weighting: 0=Fast, 1=Slow
5 Frequency weighting: 0=dBA, 1=dBC
6 Data source: 0=memory, 1=real time
Identify 0x02 0x82 + length byte + device model (ASCII)
Set date and time 0x03 + 6 bytes 0x83
1 Last two digits of year, e.g. 0x0d for 2013
2 Month, 1-12
3 Day of month, 1-31
4 Hours
5 Minutes
6 Seconds
Check status 0x04 0x84
Start acquisition (depending on data source) 0x05 0x85 + 8 bytes
1-6 Configuration settings of acquired data, same format as 0x01 command (except 0x11...)
7 ?
8 ?
Get next measurement 0x08 0x88 + 2 bytes: big-endian integer representing the dB value X 10