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
-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
-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 sdist bdist_wheel

### Uploading the distribution archives

$ python3 -m pip install --user --upgrade twine
$ twine upload --repository-url dist/*

### Installing the uploaded package

$ python3 -m pip install --index-url somanet-package-installer
$ python3 -m pip --no-cache-dir install --index-url 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.

Files for somanet-package-installer, version 0.0.12
Filename, size File type Python version Upload date Hashes
Filename, size somanet_package_installer-0.0.12-py3-none-any.whl (6.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size somanet-package-installer-0.0.12.tar.gz (4.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page