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.11

## 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.11.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

  • Download URL: somanet-package-installer-0.0.11.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.11.tar.gz
Algorithm Hash digest
SHA256 37b35f2538a9ad72a50842852a83ec2075bab0df24a76f9faab5935583113c57
MD5 dcf66cee58eb04ee817354027913c5ec
BLAKE2b-256 a42a370e2be1c8be3c1492301acd282e9c2c68688a99b45ca4e47f100549001b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: somanet_package_installer-0.0.11-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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 ccee7ba8056d31453a6d8a62de218373c5d933ac5dc8bdba922b45057eed72f6
MD5 90a81c1ed49521681cddb0fcbec4df78
BLAKE2b-256 5957337cf9c77f07c26e7690665d3efb6ea31575bbe330aaa0cef68d60a88123

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