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}
Metadata
Release files for somanet-package-installer 0.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| somanet-package-installer-0.0.12.tar.gz | 4.9 kB | Without provenance | Details for somanet-package-installer-0.0.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| somanet_package_installer-0.0.12-py3-none-any.whl | Python 3 | none | any | Details for somanet_package_installer-0.0.12-py3-none-any.whl |
Total release size: 11.7 kB
Release files / somanet-package-installer-0.0.12.tar.gz
| Download URL | somanet-package-installer-0.0.12.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0ee6320e68e91b2484c293337e4a102b03d25ab0e90696dbd18458a384fdc45b
|
|
BLAKE2b-256 checksum How to use checksums |
b7f662bca204c401ec12b4e718a3e9e317c274b5d8fa32d970f58c52cc030185
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / somanet_package_installer-0.0.12-py3-none-any.whl
| Download URL | somanet_package_installer-0.0.12-py3-none-any.whl |
|---|---|
| Size | 6.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2208ecc9054ae5970501fbf928317ac2a80a9b2f8211e8175422a9d5485e2147
|
|
BLAKE2b-256 checksum How to use checksums |
19401ca0893e6a654489fdf5f0d06b8e1c756f45136e822d6a3855c6cfe6d04b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for somanet-package-installer 0.0.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.