Configuring HydraFerret on ESP32

A Blog of Random Tivial Things


Introduction

Once the firmware has been flashed to the esp32 module and it boots for the first time, it will need some configuration to define its environment. As a general rule: "All configuration is optional, but some configuration will be required". The suggested sequence is:

Define a unique name for the module.

In order to distinguish each module it needs a unique name. In a small environment this might be as simple as naming the unit after its location, eg "kitchen". In bigger environments a matrix or block naming scheme might be more appropriate, eg "aisle_1a", "aisle_1b" or "aisle_3c". It may help for consistency to keep names all lowercase, ie not capitalised. But that is purely a preference option! eg:

devicename riverRd_20

Set processor speed

This is an optional step to set the processor speed. HydraFerret should perform well at the lowest speed, but sometimes a demanding application may require more CPU cycles. Acceptable speeds are 80, 160 and 240 MHz. Faster speeds will cause the CPU to run a little warmer and consume a bit more power.

cpuspeed 160

Define network connections.

Up to 4 networks may be defined. While normally only one network is required, it is sometimes useful to define networks in multiple locations in a module moves physical location or may be covered by more than one network.

Define pins used to connect to sensors

Use as few or as many of these as you require.

Define any outputs

HydraFerret will work without any outputs, but it can support up to 8 outputs. These permit a limited amount of control of external devices. When evaluating outputs these are processed sequentially from the lowest numbered output (0) to the highest (7). Thus these may be considered as a small and simple program.

output [<0-7> disable]
output [<0-7> default <value>]
output [<0-7> <pin> <relay|pwm|servo|var> <name> <rpn expression>]

Define the xymon server to report to.

Enable/disable options

Running the command "enable" will list various options and their on/off status. HydraFerret should work fine without setting any of these, but they do allow greater customisation of each unit. The opposite effect is made with the disable command. Where enable is shown as an option disable will work too.

Other options




Thank you for visiting camelthorn.cloudHome