Skip to main content

Install SOMANET motion drive package to an EtherCAT slave

Project description

# SOMANET Package Installer

Install SOMANET motion drive package to an EtherCAT slave.

## Prerequisite

The Linux OS on which this script is going to be executed must have IgH EtherCAT Master installed and running and slaves have to be powered on. XMOS tools must be added to PATH if you want to erase flash and install bootloader.

## Install

$ python3 -m pip install somanet-package-installer

## Usage
usage: somanet-package-installer [-h] [-p position] [-a package] [-e] [-c]
[-s path secret] [-b bin bsp] [-v] [-t]

Install SOMANET motion drive package to an EtherCAT slave.

optional arguments:
-h, --help show this help message and exit
-p position, --position position
slave selection, default is 0.
-a package, --package package
package in zip format.
-e, --esi print ESI content to stdout.
-c, --clear optionally remove cogging_torque.bin, config.csv and
plant_model.csv.
-s path secret, --stack_info path secret
write stack_info.json to slave.
-b bin bsp, --bootloader bin bsp
erase all memory on the flash device and install
bootloader.
-v, --version show program's version number and exit
-t, --empty install empty firmware.

## Packaging

### Generating distribution archives

$ python3 -m pip install --user --upgrade setuptools wheel
$ python3 setup.py sdist bdist_wheel

### Uploading the distribution archives

$ python3 -m pip install --user --upgrade twine
$ twine upload --repository-url https://test.pypi.org/legacy/ dist/*

### Installing the uploaded package

$ python3 -m pip install --index-url https://test.pypi.org/simple/ somanet-package-installer
$ python3 -m pip --no-cache-dir install --index-url https://test.pypi.org/simple/ somanet-package-installer==0.0.12

## Docker

docker run --rm -v ${firmware_name}:/tmp/${firmware_name} -v $(which ethercat):/usr/bin/ethercat --device=/dev/EtherCAT0 synapticon/somanet-package-installer:latest somanet-package-installer -a /tmp/${firmware_name}


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

somanet-package-installer-0.0.12.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

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

somanet_package_installer-0.0.12-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file somanet-package-installer-0.0.12.tar.gz.

File metadata

  • Download URL: somanet-package-installer-0.0.12.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.7

File hashes

Hashes for somanet-package-installer-0.0.12.tar.gz
Algorithm Hash digest
SHA256 0ee6320e68e91b2484c293337e4a102b03d25ab0e90696dbd18458a384fdc45b
MD5 b891595dac608c22c9395f7b15fe6397
BLAKE2b-256 b7f662bca204c401ec12b4e718a3e9e317c274b5d8fa32d970f58c52cc030185

See more details on using hashes here.

File details

Details for the file somanet_package_installer-0.0.12-py3-none-any.whl.

File metadata

  • Download URL: somanet_package_installer-0.0.12-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.7

File hashes

Hashes for somanet_package_installer-0.0.12-py3-none-any.whl
Algorithm Hash digest
SHA256 2208ecc9054ae5970501fbf928317ac2a80a9b2f8211e8175422a9d5485e2147
MD5 b533ebf21d09c5159c37050d6c06509a
BLAKE2b-256 19401ca0893e6a654489fdf5f0d06b8e1c756f45136e822d6a3855c6cfe6d04b

See more details on using hashes here.

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