Skip to main content

An implementation of the telemetry and telecommand packet utilization standard (PUS).

Project description

Puslib

Puslib is a Python implementation of the telemetry and telecommand packet utilization standard (PUS). It is a standard widely used in the space industry for the purposes of remote monitoring and control of spacecraft subsystems and payloads.

This package is mainly intended for ground segment tools, e.g.:

  • data extraction and post-processing of telemetry.
  • simulators.
  • EGSE SW, and thus enabling the use of mission control systems for controling and monitoring of EGSE equipment.
  • enable Python based commanding for mission control systems and other PUS based systems.
  • mission-specific tools.
  • student projects.

Install

pip install puslib

Python 3.7 or later is required.

Basic Example

from datetime import datetime
from functools import partial

from puslib import packet
from puslib import time

MyTmPacket = partial(packet.PusTmPacket.deserialize,
                     has_type_counter_field=False,
                     has_destination_field=False)
MyCucTime = partial(time.CucTime, 4, 2, has_preamble=False)

with open('telemetry.dump', 'rb') as f:
    content = f.read()
    data = memoryview(content)

    offset = 0
    cuc_time = MyCucTime()
    while offset < len(data):
        packet_length, packet = MyTmPacket(data[offset:],
                                           cuc_time,
                                           validate_fields=False,
                                           validate_pec=False)
        offset += packet_length
        if packet.service == 3 and packet.subservice == 25:
            print(packet)

Supported Features

  • CCSDS packet handling (telecommands and telemetry packets)
  • CCSDS Unsegmented Time Code (CUC) support
  • Policy handling of mission specific or implementation specific configurations
  • Simple abstraction of application processes
  • Streams for telemetry and telecommand I/O access
  • PUS Services:
    • PUS 1: Request Verification
    • PUS 3: Housekeeping (partial support)
    • PUS 5: Event Reporting
    • PUS 8: Function Management
    • PUS 17: Test (partial support)
    • PUS 20: On-board Parameter Management (partial support)

Links

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

puslib-0.2.2.tar.gz (20.4 kB view details)

Uploaded Source

Built Distribution

puslib-0.2.2-py3-none-any.whl (25.7 kB view details)

Uploaded Python 3

File details

Details for the file puslib-0.2.2.tar.gz.

File metadata

  • Download URL: puslib-0.2.2.tar.gz
  • Upload date:
  • Size: 20.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for puslib-0.2.2.tar.gz
Algorithm Hash digest
SHA256 1df7f28fd3ebeb449e43446496162ba5abf8e0887d3f5f801d5c373ee9455878
MD5 11548720608472be6bd47839e9cd48f3
BLAKE2b-256 cb362ca0d93df9a68f1f8e9249b05e161f9b68aa874c9032c7e0020087e5a7c0

See more details on using hashes here.

File details

Details for the file puslib-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: puslib-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 25.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

File hashes

Hashes for puslib-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4b63d85098a9f2d91b6d8f200fb8dda3a5c2f4f3280406974ab9965b2ba396e4
MD5 e494ebbbd28638a9bf36405e83c4e095
BLAKE2b-256 27d7ce43bbaf8db9c5bd640c003d99a6a7190003f377cf5da0b1eabc47beb617

See more details on using hashes here.

Supported by

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