Skip to content

Commit

Permalink
Update readme and version for 0.2.0 release
Browse files Browse the repository at this point in the history
This adds some basic documentation updates for the
upgrade functionality.

Fix issue #7 by including fixed URLs to documentation
in the repo. Not ideal but better than a dead link.

Tidy the help text for the serialno command.

Tests:
 - Spell check and lint markdown
 - Run tox
 - Verify "oic --help" and "oic serialno --help" displays
    the expected output
  • Loading branch information
davefiddes committed Aug 12, 2024
1 parent 24574e6 commit 30597a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ electric vehicles over a CAN connection.
* Display the current value of each parameter/value on a given device
* Log a list of parameters to a CSV file at regular intervals
* Save and load all parameters to and from a JSON file
* Manage parameter to custom [CAN message mappings](docs/can-mapping.md):
* Manage parameter to custom [CAN message mappings](https://github.com/davefiddes/openinverter-can-tool/blob/main/docs/can-mapping.md):
* Create, remove and list parameter mappings on a device
* Support maps with standard CAN 2.0a and extended CAN 2.0b frames
* Export and import mappings to a local JSON file
* Export mappings to DBC allowing easier debugging with [SavvyCAN](https://savvycan.com/)
* Upgrade firmware or recover devices over CAN
* Display the inverter serial number
* Command the inverter to:
* Start
Expand All @@ -30,7 +31,7 @@ electric vehicles over a CAN connection.
* Reset
* Scan a CAN bus for possible nodes
* Runs on Linux, Windows and MacOS with python 3.8+
* Support [shell completion](docs/shell-completion.md) for commands and options for bash, zsh and fish shells
* Support [shell completion](https://github.com/davefiddes/openinverter-can-tool/blob/main/docs/shell-completion.md) for commands and options for bash, zsh and fish shells
* Works with any CAN adapter supported by [python-can](https://pypi.org/project/python-can/)
* Supports [stm32-sine](https://github.com/jsphuebner/stm32-sine) 5.24.R or later
* Automatic parameter database download and caching (requires stm32-sine 5.27.R or later)
Expand Down Expand Up @@ -137,6 +138,7 @@ To get the usage information for the tool run the `oic` command with no paramete
save Save all parameters in json to OUT_FILE
scan Scan the CAN bus for available nodes
serialno Read the device serial number.
upgrade Upgrade the device firmware.
write Write the value to the parameter PARAM on the device
```

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

setup(
name="openinverter-can-tool",
version="0.1.0",
version="0.2.0",
description="Tool to configure and operate openinverter systems over CAN",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down Expand Up @@ -75,7 +75,7 @@
# No data files are expected within the package
package_data={},

# Pull in all our example parameter databases
# Pull in all our example parameter databases and documentation
data_files=[("parameter-databases",
glob("parameter-databases/*.json")),
("docs",
Expand Down
4 changes: 2 additions & 2 deletions src/openinverter_can_tool/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ def load(cli_settings: CliSettings, in_file: click.File) -> None:
@pass_cli_settings
@can_action
def serialno(cli_settings: CliSettings) -> None:
"""Read the device serial number. This is required to load firmware over
CAN"""
"""Read the device serial number. This can be useful to recover failed
devices using the 'upgrade' command."""

assert cli_settings.node
serialno_data = cli_settings.node.serial_no()
Expand Down

0 comments on commit 30597a4

Please sign in to comment.