Introduction
The NSRT_mk3_Dev is a new variant of the NSRT_mk3 series that introduces an open virtual Com port communication protocol. That means that the instrument can be used on any platform that has a generic driver to support the CDC (Communication) USB class. Nowadays most platforms support that class, including Windows, Mac and Linux. That instrument is targeted at developers. Because its communication protocol is open, developers can design their own application supporting the instrument. In addition to the Com port, the NSRT_mk3_Dev can have an optional USB Audio interface to stream the actual Audio signal captured by the microphone.
Usage
Connect the NSRT mk3 dev to the computer
Check the virtual Com port under which it was enumerated:
Windows: WIN + type: Device Manager
Look for the extra device:
USB Serial Device (COM20)
Indicating the device can be found on COM20
Linux: type:
dmesg | grep -i usb
and look for:
[22339.508035] usb 1-1.2: Product: NSRT_mk3_Dev [22339.508044] usb 1-1.2: Manufacturer: Convergence Instruments [22339.520711] cdc_acm 1-1.2:1.1: ttyACM0: USB ACM device
Indicating that the device can be found on /dev/ttyACM0
Install the package:
pip install nsrt-mk3-dev
Create a script to access the device:
import nsrt_mk3_dev nsrt = nsrt_mk3_dev.NsrtMk3Dev('COM20') model = nsrt.read_model() serial_number = nsrt.read_sn() firmware_revision = nsrt.read_fw_rev() date_of_birth = nsrt.read_dob() date_of_calibration = nsrt.read_doc() print(f'Sound level meter model: {model}\n' f'serial number: {serial_number}, firmware revision number: {firmware_revision}\n' f'manufactured on: {date_of_birth}, calibrated on: {date_of_calibration}') leq_level = nsrt.read_leq() weighting = nsrt.read_weighting() weighted_level = nsrt.read_level() print(f'current leq level: {leq_level:0.2f} dB, {weighting} value: {weighted_level:0.2f}')
Test
The GIT repo contains a pytest which tests all the API functions. The test_device_parameters testcase will need to be updated to the device under test as it reads out device specific data. To execute the test run the following command in the GIT repo’s root directory:
pytest tests
Metadata
Release files for nsrt-mk3-dev 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nsrt_mk3_dev-1.0.0.tar.gz | 10.0 kB | Without provenance | Details for nsrt_mk3_dev-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nsrt_mk3_dev-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for nsrt_mk3_dev-1.0.0-py3-none-any.whl |
Total release size: 16.1 kB
Release files / nsrt_mk3_dev-1.0.0.tar.gz
| Download URL | nsrt_mk3_dev-1.0.0.tar.gz |
|---|---|
| Size | 10.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3c50b76589bd5d092846324d68c338201eab10645ef9d2096119282870e94589
|
|
BLAKE2b-256 checksum How to use checksums |
388946dc937ed87a8f7eb0661f1ec421092731e50de5bb62ed6675781b28a3e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6
|
Release files / nsrt_mk3_dev-1.0.0-py3-none-any.whl
| Download URL | nsrt_mk3_dev-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5fe443607cf918d592c059a063bffb1ffd82d953292560017a5b398af7f2b488
|
|
BLAKE2b-256 checksum How to use checksums |
9415be5efacd5b22c619245e7c926dc0fd6e280cf02106afa25f288a5d704dac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.6
|
Security for nsrt-mk3-dev 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.