Git Product home page Git Product logo

sensortransmitter's Introduction

CI GitHub release License: MIT

SensorTransmitter

Sensor Data FSK Transmitter based on RadioLib using SX1276 or CC1101

This project is closely related to BresserWeatherSensorReceiver

Use Cases

  • Emulation of sensors for testing purposes
  • Emulation of sensors while replacing the data with entirely different sensor values, e.g. using the manufacturer's temperature sensor protocol to display snow depth instead.
  • Repeater (combined with receiver)

Supported Protocols

  • Bresser 5-in-1
  • Bresser 6-in-1
  • Bresser 7-in-1
  • Bresser Lightning
  • Bresser Leakage

Sensor Data Provisioning Options

See sensor types in WeatherSensor.h

Select option in SensorTransmitter.h.

Raw Data

uint8_t payload[] = {0xEA, 0xEC, 0x7F, 0xEB, 0x5F, 0xEE, 0xEF, 0xFA, 0xFE, 0x76, 0xBB, 0xFA, 0xFF,
                      0x15, 0x13, 0x80, 0x14, 0xA0, 0x11, 0x10, 0x05, 0x01, 0x89, 0x44, 0x05, 0x00};

JSON Data as Constant String

const char json[] =
   "{\"sensor_id\":255,\"s_type\":1,\"chan\":0,\"startup\":0,\"battery_ok\":1,\"temp_c\":12.3,\
     \"humidity\":44,\"wind_gust_meter_sec\":3.3,\"wind_avg_meter_sec\":2.2,\"wind_direction_deg\":111.1,\
     \"rain_mm\":123.4}";

JSON Data as Input from Serial Console - Examples

Bresser 5-in-1 Protocol - Weather Sensor

{"sensor_id": 255, "s_type": 1, "chan": 0, "startup": 0, "battery_ok": 1, "temp_c": 12.3, "humidity": 44, "wind_gust_meter_sec": 3.3, "wind_avg_meter_sec": 2.2, "wind_direction_deg": 111.1, "rain_mm": 123.4}

Bresser 6-in-1 Protocol - Soil Temperature and Moisture

{"sensor_id": 4294967295, "s_type": 4, "chan": 0, "startup": 0, "battery_ok": 1, "temp_c": 12.3, "moisture": 44}

Bresser 6-in-1 Protocol - Weather Sensor

{"sensor_id": 4294967295, "s_type": 1, "chan": 0, "startup": 0, "battery_ok": 1, "temp_c": 12.3, "humidity": 44, "wind_gust_meter_sec": 3.3, "wind_avg_meter_sec": 2.2, "wind_direction_deg": 111.1, "rain_mm": 123.4, "uv": 7.8}

Bresser 7-in-1 Protocol - Weather Sensor

{"sensor_id": 65535, "s_type": 1, "chan": 0, "startup": 0, "battery_ok": 1, "temp_c": 12.3, "humidity": 44, "wind_gust_meter_sec": 3.3, "wind_avg_meter_sec": 2.2, "wind_direction_deg": 111.1, "rain_mm": 123.4, "uv": 7.8, "light_klx": 123.456}

Bresser 7-in-1 Protocol - Particulate Matter Sensor

{"sensor_id": 65535, "s_type": 8, "chan": 0, "startup": 0, "battery_ok": 1, "pm_2_5": 2345, "pm_10": 1234}

Bresser 7-in-1 Protocol - CO2 Sensor

{"sensor_id": 65535, "s_type": 10, "chan": 0, "startup": 0, "battery_ok": 1, "co2_ppm": 1234}

Bresser 7-in-1 Protocol - HCHO/VOC Sensor

{"sensor_id": 65535, "s_type": 11, "chan": 0, "startup": 0, "battery_ok": 1, "hcho_ppb": 1234, "voc": 1}

Bresser Lightning Sensor

{"sensor_id": 65535, "s_type": 9, "chan": 0, "startup": 0, "battery_ok": 1, "strike_count": 11, "distance_km": 7}

Bresser Leakage Sensor

{"sensor_id":4294967295, "s_type": 5, "chan": 0, "startup": 0, "battery_ok": 1, "alarm": 1}

Serial Port Control

Note: No additional spaces are allowed in commands! (But spaces are permitted in JSON strings.)

Command Examples Description
{...} see above Set JSON message data
enc[oder]=<encoder> enc=bresser-5in1
enc=bresser-6in1
enc=bresser-7in1
enc=bresser-lightning
enc=bresser-leakage
Select encoder
int[erval]=<interval> int=20 Set transmit interval in seconds
(must be > 10)

sensortransmitter's People

Contributors

matthias-bs avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

inkiiin

sensortransmitter's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.