Skip to main content

TTY/Serial port exerciser for pymctp

Project description

pymctp-exerciser-serial

TTY/Serial port exerciser support for pymctp.

This package provides an exerciser implementation for interfacing with serial/UART devices to send and receive MCTP packets over serial connections.

Installation

pip install pymctp-exerciser-serial

Requirements

  • pymctp >= 0.1.0
  • pyserial
  • Serial/UART hardware or virtual serial ports

Usage

from pymctp.exerciser import TTYSerialSocket

# Open a serial connection
socket = TTYSerialSocket(
    tty='/dev/ttyUSB0',  # Serial port device
    baudrate=115200,     # Baud rate
    addr=0x20            # Target address
)

# Send/receive MCTP packets
from pymctp.layers.mctp import UartTransport

pkt = UartTransport(...)
socket.send(pkt)

response = socket.recv()

Auto-Registration

This package automatically registers itself with pymctp when installed. You can access it through the exerciser registry:

from pymctp.exerciser import get_exerciser

SerialSocket = get_exerciser('serial')

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymctp_exerciser_serial-0.2.5.tar.gz (4.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymctp_exerciser_serial-0.2.5-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file pymctp_exerciser_serial-0.2.5.tar.gz.

File metadata

  • Download URL: pymctp_exerciser_serial-0.2.5.tar.gz
  • Upload date:
  • Size: 4.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pymctp_exerciser_serial-0.2.5.tar.gz
Algorithm Hash digest
SHA256 42c04d64b97c8a4bebc00ecafc21dceb7c8d717a55f16d48ea7577b796a691b9
MD5 0e0993e6c05e85b2de2ff1eace05a117
BLAKE2b-256 27e0147b5df69112f73b72191141da20b892d97bc651f1d9f52d3fbbf4fe94c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymctp_exerciser_serial-0.2.5.tar.gz:

Publisher: publish.yml on jls5177/pymctp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pymctp_exerciser_serial-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for pymctp_exerciser_serial-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4312055d75711722e8db85a6352fdc5ad89847da5ac78ab2e682bed928636006
MD5 13a40c903fe0f93ff176d176db440f60
BLAKE2b-256 1c15426633e639143582db628777f8e066451d76e16ccf502d79a763e7ca18ce

See more details on using hashes here.

Provenance

The following attestation bundles were made for pymctp_exerciser_serial-0.2.5-py3-none-any.whl:

Publisher: publish.yml on jls5177/pymctp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page