Skip to main content

USB-TMC Shell

Overview

Interactive command shell for USB Test and Measurement device Class (TMC) device.

Installation

It can be installed from GitHub using pip:

pip install git+https://github.com/Enchan1207/tmcsh

After installation, command tmcsh will be available.

Usage

1. Choosing a communication device

When you start tmcsh, you will be prompted to select a device.

$ tmcsh
USB-TMC shell v0.1.0
Connected USB-TMC devices:
  [0] Tektronix TDS2012B (0699:0367)
Enter the index of the device you want to communicate with.
Type 'r' to reload, ^C or ^D to abort.
>

Type index for communicate with:

0

After it, shell tries to establish connection.

Establish connection...

If that succeeds, you'll see a REPL-like prompt.

>>> 

2. Query the device

You can send IEEE 488 common commands...

>>> *IDN?
TEKTRONIX,TDS 2012B,C062851,CF:91.1CT FV:v22.01
>>> *ESR?
128

model-specific commands...

>>> DATA?
RPBINARY;REFA;CH2;1;2500;1

or commands that return binary.

>>> DATA:SOURCE?
CH2
>>> DATA:SOURCE CH1
>>> CURVE?
0000: 23 34 32 35 30 30 81 81 80 80 80 80 80 81 80 81
0001: 81 81 80 80 80 80 80 81 80 80 80 81 80 81 80 81
0002: 80 80 80 80 81 80 81 80 80 80 80 81 81 80 80 80
0003: 80 81 80 80 80 81 80 80 80 80 81 80 80 81 81 80
0004: 80 81 80 81 81 81 81 80 80 81 80 80 81 80 80 80
0005: 80 80 81 80 80 80 81 80 80 80 80 81 81 80 80 80
0006: 80 80 80 81 80 80 80 81 80 81 80 80 80 80 80 80
0007: 81 81 80 81 80 81 80 80 80 80 80 81 80 81 80 81
0008: 80 81 80 80 80 80 81 80 80 80 80 80 81 80 80 80
0009: 81 80 80 81 80 80 81 81 81 81 81 80 80 81 81 80
...

License

This repository is published under MIT License.

Metadata

Release files for tmcsh 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tmcsh 0.1.0
File Size Uploaded Provenance Actions
tmcsh-0.1.0.tar.gz 4.5 kB Without provenance Details for tmcsh-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tmcsh 0.1.0
File Interpreter ABI Platform Actions
tmcsh-0.1.0-py3-none-any.whl Python 3 none any Details for tmcsh-0.1.0-py3-none-any.whl

Total release size: 10.1 kB

Release files / tmcsh-0.1.0.tar.gz

Download URL tmcsh-0.1.0.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
4c40d7d9e95fd39b5474df7f828db6e63a00ab62c413e4204747816c7f7ead1d
BLAKE2b-256 checksum
How to use checksums
8b38dc83991ae58fd1d9fbd5015ee50d5eb4bda38ee90d0c6d68a3f81d3ccd78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Release files / tmcsh-0.1.0-py3-none-any.whl

Download URL tmcsh-0.1.0-py3-none-any.whl
Size 5.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b324355574415f837f5fa5c284d28324a4535bc105460cddb42cf53cf4e08ea6
BLAKE2b-256 checksum
How to use checksums
eee5f02ede827e900e6e428bd5138ff82b4298fb0f6cf01ee337ecad7b5d55a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.1 CPython/3.11.4

Security for tmcsh 0.1.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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page