Tool for inspecting, updating and interfacing with Harp devices, with automatic firmware and interface code generation.
-
Navigate to the Harp.Toolkit NuGet tool package
-
Click
.NET CLI (Local)and copy the two suggested commands. E.g.:dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local Harp.Toolkit -
To view the tool help reference documentation, run:
dotnet harp.toolkit --help
-
To list all available system serial ports:
dotnet harp.toolkit list
-
To display info about a device connected to a specific serial port:
dotnet harp.toolkit --port COM4
Each read waits up to 2000 milliseconds for a response. Pass
--timeoutto change that default, or--timeout -1to wait indefinitely. -
To update the device firmware from a local HEX file:
dotnet harp.toolkit update --port COM4 --path Behavior-fw3.2-harp1.13-hw2.0-ass0.hex
-
To restore the tool at any point, run:
dotnet tool restore
harp.toolkit can also generate device interface and firmware code from a device.yml metadata file. With a device.yml in the current directory, the following generates the .NET device interface, targeting Bonsai.Harp:
dotnet harp.toolkit generate interfaceTo generate the Harp Python interface instead:
dotnet harp.toolkit generate interface pythonSee Code Generation for authoring device metadata, generating firmware, and the available options.
Bug reports and contributions are welcome at the GitHub repository.
Harp.Toolkit is released as open-source under the MIT license.