Attiny Over Serial Configuration: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 15: | Line 15: | ||
=RPICT Configuration tool= | =RPICT Configuration tool= | ||
The configuration tool can be downloaded directly from | The configuration tool can be downloaded directly from the raspberrypi: | ||
$ wget lechacal.com/RPICT/lcl-rpict-config.py | $ wget lechacal.com/RPICT/lcl-rpict-config.py.zip | ||
$ unzip lcl-rpict-config.py.zip | |||
==Reading current configuration== | |||
Using the configurator without option will jsut read the configuration stored in the board. | |||
$ ./lcl-rpict-config.py | |||
This will yield | |||
# RPICT Configuration Utility | |||
# Read only | |||
# Now reset RPICT hardware | |||
Once the board has received the reset the configuration will be shown. | |||
# | |||
# Configuration in memory: | |||
# | |||
# Structure: 0xa0 | |||
# Format: 0 | |||
# NodeId: 11 | |||
# Polling: 5000 | |||
# ICAL: 83.330002 | |||
# VCAL: 560.000000 | |||
# VEST: 240.000000 | |||
# |
Revision as of 18:14, 14 April 2017
Overview
RPICT board using Attiny microcontroller can be configured over serial using a utility written in python.
Current version allows changes of
- Output format (csv or Emoncms)
- Nodeid (emoncms only)
- Polling (polling interval of data)
- Ical (current calibration value)
- Vcal (Voltage calibration value
- Vest (estimated voltage for power estimate)
RPICT Configuration tool
The configuration tool can be downloaded directly from the raspberrypi:
$ wget lechacal.com/RPICT/lcl-rpict-config.py.zip $ unzip lcl-rpict-config.py.zip
Reading current configuration
Using the configurator without option will jsut read the configuration stored in the board.
$ ./lcl-rpict-config.py
This will yield
# RPICT Configuration Utility # Read only # Now reset RPICT hardware
Once the board has received the reset the configuration will be shown.
# # Configuration in memory: # # Structure: 0xa0 # Format: 0 # NodeId: 11 # Polling: 5000 # ICAL: 83.330002 # VCAL: 560.000000 # VEST: 240.000000 #