Difference between revisions of "PCE PCE-322A"

From sigrok
Jump to navigation Jump to search
(Created page with "{{Infobox sound level meter | image = 180px | name = PCE PCE-322A | status = in progress | source_code_dir...")
 
(Expand protocol description)
Line 74: Line 74:
| 0xaa 0xf8
| 0xaa 0xf8
| Power Off
| Power Off
|-
| 0x7e 0x00 ...
| Setup Logging (see below)
|-
| 0xad 0xda
| Memory Status
|-
| 0xd3 0xda 0x''XX'' 0x00
| Transfer ''XX''-th block of data (block length: 256)
|-
| 0xaa 0xc1
| Clear Memory
|-
|-
|}
|}
Line 98: Line 110:
|-
|-
| 0x7f
| 0x7f
| colspan="2" | Measurement
| colspan="2" | Flags/Mode
| ?
| ?
| colspan="6" | Date
| 0x00
|}
=== Memory ===
==== Setup Request ====
A recording can be setup remotely (which will start instantly or after pressing a button).
{| border="0" class="alternategrey sigroktable"
|-
| style="width: 3em; text-align: center;" | 1
| style="width: 3em; text-align: center;" | 2
| style="width: 3em; text-align: center;" | 3
| style="width: 3em; text-align: center;" | 4
| style="width: 3em; text-align: center;" | 5
| style="width: 3em; text-align: center;" | 6
| style="width: 3em; text-align: center;" | 7
| style="width: 3em; text-align: center;" | 8
| style="width: 3em; text-align: center;" | 9
| style="width: 3em; text-align: center;" | 10
|-
| 0x7e
| ?
| ?
| ?
| Interval
| ?
| colspan="6" | Date
| ?
| Flags
| ?
|}
| ?
 
| ?
==== Status Response ====
| ?
 
| ?
{| border="0" class="alternategrey sigroktable"
| ?
|-
| style="width: 3em; text-align: center;" | 1
| style="width: 3em; text-align: center;" | 2
| style="width: 3em; text-align: center;" | 3
| style="width: 3em; text-align: center;" | 4
| style="width: 3em; text-align: center;" | 5
| style="width: 3em; text-align: center;" | 6
| style="width: 3em; text-align: center;" | 7
| style="width: 3em; text-align: center;" | 8
| style="width: 3em; text-align: center;" | 9
|-
| 0xd1
| 0x05
| 0x00
| 0x01
| 0xd2
| colspan="3" | Used Memory
| 0x10
|}
 
==== Header ====
 
Each recording starts with a header:
 
{| border="0" class="alternategrey sigroktable"
|-
| style="width: 3em; text-align: center;" | 1
| style="width: 3em; text-align: center;" | 2
| style="width: 3em; text-align: center;" | 3
| style="width: 3em; text-align: center;" | 4
| style="width: 3em; text-align: center;" | 5
| style="width: 3em; text-align: center;" | 6
| style="width: 3em; text-align: center;" | 7
| style="width: 3em; text-align: center;" | 8
| style="width: 3em; text-align: center;" | 9
| style="width: 3em; text-align: center;" | 10
| style="width: 3em; text-align: center;" | 11
|-
| 0x7f
| 0xf7
| 0x01
| 0x00
| 0x00
| 0x0a
| colspan="6" | Date
|}
|}



Revision as of 22:12, 30 April 2016

PCE PCE-322A
PCE-322A.png
Status in progress
Source code pce-322a
Connectivity USB
Frequency range 31.5Hz - 8kHz
Measurement range (A) 30dB - 130dB
Resolution 0.1dB
Accuracy (94dB@1kHz) 1.4dB
Frequency weighting A, C
Time weighting F, S
Standards IEC 61672-1 Class 2
Website pce-instruments.com

The PCE-322A is an IEC 61672-1 class 2 compliant sound level meter with USB connectivity.

Hardware

TODO

Photos

Protocol

The device communicates at 115200 baud, no parity, 8 data bits, and 1 stop bit (115200/8n1).

Commands

None of the following commands are needed to receive live measurements from the device; see the next section.

The commands are always 2 byte and take no parameters.

The following commands are supported:

Command Description
0xac 0xff Connect
0xca 0xff Disconnect
0xaa 0xf1 Toggle dBA/dBC
0xaa 0xf2 Toggle Scale (Auto, 30-80, 50-100, 80-130)
0xaa 0xf3 Toggle Min/Max/Current
0xaa 0xf4 Toggle Fast/Slow
0xaa 0xf5 Toggle Hold
0xaa 0xf6 Toggle Backlight
0xaa 0xf7 Toggle Time/Date
0xaa 0xf8 Power Off
0x7e 0x00 ... Setup Logging (see below)
0xad 0xda Memory Status
0xd3 0xda 0xXX 0x00 Transfer XX-th block of data (block length: 256)
0xaa 0xc1 Clear Memory

Measurements and settings

Current settings and measurements are continually streamed over the serial bus, without any prompting from the PC. Data is encapsulated in packets of 13 bytes. The packets are structured as follows:

1 2 3 4 5 6 7 8 9 10 11 12 13
0x7f Measurement Flags/Mode ? Date 0x00

Memory

Setup Request

A recording can be setup remotely (which will start instantly or after pressing a button).

1 2 3 4 5 6 7 8 9 10
0x7e ? Interval Date Flags

Status Response

1 2 3 4 5 6 7 8 9
0xd1 0x05 0x00 0x01 0xd2 Used Memory 0x10

Header

Each recording starts with a header:

1 2 3 4 5 6 7 8 9 10 11
0x7f 0xf7 0x01 0x00 0x0a Date

Resources

User Manual