Skip to main content

Python library for sscma

Project description

Python SSCMA-Micro

Description

This is a client for the sscma_micro, which is a microcontroller at server for the SSCMA models.

More information about the sscma_micro can be found at here

Usage

Install

pip install python-sscma
sscma.cli --help
Usage: sscma.cli [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  client
  flasher
  server

Client

sscma.cli client --help
Usage: sscma.cli client [OPTIONS]

Options:
  -B, --broker TEXT       Specify the MQTT broker address
  -U, --username TEXT     Specify the MQTT username
  -P, --password TEXT     Specify the MQTT password
  -D, --device TEXT       Specify the Device ID
  -p, --port TEXT         Specify the Port to connect to
  -b, --baudrate INTEGER  Specify the Baudrate for the serial connection
  --sample                Enable the Sample mode, default is Invoke mode
  -s, --save              Enable the save mode
  -o, --save_dir TEXT     Specify the Directory for saveing images
  -h, --headless          Run the program without displaying the images
  -v, --verbose           Show detailed information during processin
  --help                  Show this message and exit.

Client with Serial

sscma.cli client ---port /dev/ttyUSB0 

Client with MQTT

sscma.cli client --broker mqtt.broker.com --username username --password password -device device_id 

Sample

sscmai client --port /dev/ttyUSB0 --save 

Flasher

sscma.cli flasher --help
Usage: sscma.cli flasher [OPTIONS]

Options:
  -p, --port TEXT         Port to connect to
  -f, --file TEXT         File to write to the device
  -b, --baudrate INTEGER  Baud rate for the serial connection
  -o, --offset TEXT       Offset to write the file to
  -s, --sn                Write serial number
  --help                  Show this message and exit.
sscma.cli flasher -p /dev/ttyUSB0 -f firmware.bin 
sscma.cli flasher -p /dev/ttyUSB0 -s

Contributing

If you have any idea or suggestion, please open an issue first.

If you want to contribute code, please fork this repository and submit a pull request.

License

MIT License

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

python-sscma-0.5.5.tar.gz (1.0 MB view details)

Uploaded Source

File details

Details for the file python-sscma-0.5.5.tar.gz.

File metadata

  • Download URL: python-sscma-0.5.5.tar.gz
  • Upload date:
  • Size: 1.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for python-sscma-0.5.5.tar.gz
Algorithm Hash digest
SHA256 2dd9d06dd22ac130f0aa0f3c55a49ca0d24b3b0b61993acca49b013edba1595f
MD5 29bc8574d0664f3aeca22cd29df9521d
BLAKE2b-256 383f90ab06875b2c207d2400773d19055b7a4f3e57ea2dd522908a06d5c4e59f

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