Difference between revisions of "Kecheng KC-330B"
Jump to navigation
Jump to search
Line 39: | Line 39: | ||
{| border="0" width="100%" class="alternategrey sigroktable" | {| border="0" width="100%" class="alternategrey sigroktable" | ||
|- | |- | ||
! Command | ! Command | ||
! Response | ! Response | ||
! Description | |||
|- | |- | ||
| 0x01 | |||
| 0x01 | |||
| 0x81 | | 0x81 | ||
| Configure device, 6 bytes payload: | |||
|- | |- | ||
| | | | ||
| | |||
| style="padding: 0; font-size: smaller;" | | |||
{| border="0" width="100%" style="margin: 0; border-collapse: collapse;" class="alternategrey" | {| border="0" width="100%" style="margin: 0; border-collapse: collapse;" class="alternategrey" | ||
|- | |- | ||
Line 78: | Line 80: | ||
|- | |- | ||
| 0x02 | | 0x02 | ||
| 0x82 | | 0x82 | ||
| Identify, response payload is length byte + device model (ASCII) | |||
|- | |- | ||
| 0x03 | |||
| 0x03 | |||
| 0x83 | | 0x83 | ||
| Set date and time, 6 bytes payload: | |||
|- | |- | ||
| | | | ||
| | |||
| style="padding: 0; font-size: smaller;" | | |||
{| border="0" width="100%" style="margin: 0; border-collapse: collapse;" class="alternategrey" | {| border="0" width="100%" style="margin: 0; border-collapse: collapse;" class="alternategrey" | ||
|- | |- | ||
Line 117: | Line 121: | ||
|- | |- | ||
| 0x04 | | 0x04 | ||
| 0x84 | | 0x84 | ||
| Check status | |||
|- | |- | ||
| 0x05 | | 0x05 | ||
| 0x85 | | 0x85 | ||
| Start acquisition (depending on data source), response has 8 bytes payload: | |||
|- | |- | ||
| | | | ||
| | |||
| style="padding: 0; font-size: smaller;" | | |||
{| border="0" width="100%" style="margin: 0; border-collapse: collapse;" class="alternategrey" | {| border="0" width="100%" style="margin: 0; border-collapse: collapse;" class="alternategrey" | ||
|- | |- | ||
Line 144: | Line 150: | ||
|- | |- | ||
| 0x08 | | 0x08 | ||
| 0x88 | | 0x88 | ||
| Get next measurement, response has 2 bytes payload: big-endian integer representing the dB value X 10 | |||
|} | |} |
Revision as of 00:40, 18 June 2013
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
- Silicon Labs F320 8-bit MCU with USB interface
- 2 X SG Micro SGM8522 dual rail-to-rail op-amp, SGM8524 quad rail-to-rail op-amp
- Microchip 24LC512 64KB EEPROM
- Texas Instruments CD4053M triple 2-channel multiplexer
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.
Command | Response | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0x01 | 0x81 | Configure device, 6 bytes payload: | ||||||||||||||||||
| ||||||||||||||||||||
0x02 | 0x82 | Identify, response payload is length byte + device model (ASCII) | ||||||||||||||||||
0x03 | 0x83 | Set date and time, 6 bytes payload: | ||||||||||||||||||
| ||||||||||||||||||||
0x04 | 0x84 | Check status | ||||||||||||||||||
0x05 | 0x85 | Start acquisition (depending on data source), response has 8 bytes payload: | ||||||||||||||||||
| ||||||||||||||||||||
0x08 | 0x88 | Get next measurement, response has 2 bytes payload: big-endian integer representing the dB value X 10 |