OzWrapper.OzSurface.OzSurface

Surface temperature sensor wrapper for the Oizom Ozone gateway.

Communicates with a SAMD-based co-processor over UART (via the drivers.OzLan driver) to read surface temperature measurements through the SensorBase.SensorBase.GenericSensor contract. The wrapper configures the SAMD with a JSON config packet, verifies the probe is alive, and periodically issues surface read commands whose responses are parsed into a single st (surface temperature) value per cycle.

Reference config:

{
  "surface": [
    {
      "en": 1,
      "pn": 411,
      "parameters": [
        {
          "cr": 0,
          "pm": 1,
          "sc": "st",
          "se": 100
        }
      ]
    }
  ]
}

Example

>>> from OzWrapper.OzSurface.OzSurface import OzSurface
>>> wrapper = OzSurface()
>>> wrapper.initialize(config["surface"], {})

Note

The serial port defaults to /dev/ttyACM0 at 115200 baud and can be overridden through the gpio section of the sensor configuration. Hardware access is required; this module is intended to run on the target Raspberry Pi gateway.

Attributes

Classes

OzSurface

Wrapper for surface temperature sensors via a SAMD co-processor.

Module Contents

OzWrapper.OzSurface.OzSurface.basic_logger
OzWrapper.OzSurface.OzSurface.context_logger
OzWrapper.OzSurface.OzSurface.dirname