Skip to content

Latest commit

 

History

History
53 lines (30 loc) · 2.27 KB

File metadata and controls

53 lines (30 loc) · 2.27 KB

emonHP Firmware

This contains the firmware for the emonHP heatpump monitoring system.

Getting started

Note

If you buy a system from the OpenEnergyMonitor shop the Raspberry Pi will be configured and the firmware installed already.

Raspberry Pi

After cloning the repository, in scripts/ run sudo setup_pi.sh. This will enable the required UART instances on the GPIO header. You will need to restart the Pi for this to take effect.

Microcontroller Firmware

Tip

Most users will use pre-built binaries from releases. You only need to compile from source for features or fixes that are not in a release, or if you developing the firmware.

Uploading

When you have the firmware binary available:

  • If you have the Raspberry Pi attached to the GPIO pins, in scripts run flash_pi.sh <path to .elf>.
  • If you are using an external debugger, run openocd -f openocd.cfg -c program <path to .elf> verify reset exit.

Compiling

You will need to have the Rust compiler installed.

To build the firmware, run cargo build. This will build the debug version of the firmware. To build the release version, run cargo build --release.

Tip

It is strongly recommended to compile the firmware on a reasonably powerful device. While it is possible to compile on the Raspberry Pi, it will take around 10-15 minutes on a Raspberry Pi 4 with 1 GB of RAM.

Getting in contact

Issues can be reported:

Please include as much information as possible (run the v command on the serial link, including at least:

  • The emonHP hardware and firmware version.
  • A full description, including a reproduction if possible, of the issue.

Contributing

Contributions are welcome! Small PRs can be accepted at any time. Please get in touch before making large changes.

Note

Please bear in mind that this is an open source project and PRs and enhancements may not be addressed quickly, or at all. This is no comment on the quality of the contribution, and please feel free to fork as you like!