Schlagwort-Archive: Payload Decoder

QingPing Temperature & Humidity Monitor

Environmental sensors monitor the temperature and humidity levels in different rooms of a building and enable the system to intelligently adjust the HVAC settings. A dynamic control ensures a comfortable and healthy indoor environment

RAKwireless offers the QingPing Temperature & Humidity Pro S a professional-grade sensor specifically tailored for environmental and greenhouse applications.

The device supports configurable reporting and notification options, keeping users informed about critical changes in temperature and humidity levels.

Umgebungssensoren überwachen Temperatur- und Luftfeuchtigkeit in den verschiedenen Räumen eines Gebäudes und ermöglichen eine intelligente Anpassung der HLK-Einstellungen. Eine dynamische Steuerung sorgt für ein angenehmes und gesundes Raumklima.

RAKwireless bietet mit dem QingPing Temperature & Humidity Pro S einen professionellen Sensor, der speziell für Umwelt- und Gewächshausanwendungen entwickelt wurde.

Das Gerät unterstützt konfigurierbare Berichts- und Benachrichtigungs-optionen, die den Benutzer über kritische Änderungen der Temperatur- und Luftfeuchtigkeitswerte informieren.

Features

  • Temperature: ±0.2°C (within 0°C to 50°C range)
  • Humidity: ±2% (within the 10% to 90% range)
  • LoRaWAN bands: EU868 (default), EU433, RU864, CN470, KR920, IN865, AU915, US915, AS923
  • LoRaWAN Class: A
  • Bluetooth 5.0
  • Battery: Rechargeable lithium battery, 2600 mAh
  • Power supply: USB-C, 5 V – 1 A
  • Remotely configurable settings
  • Dimension: 77 x 77 x 28 mm

For Device Configuration and Data Description read the User Manual.

The sensor sends different messages like historical data, real-time data, events, etc.

At this time, QingPing does not offer a payload decoder; therefore, I wrote a simple one for decoding the real-time data message.

Zur Gerätekonfiguration und Datenbeschreibung lesen Sie bitte das Benutzerhandbuch.

Der Sensor sendet verschiedene Nachrichten wie historische Daten, Echtzeitdaten, Ereignisse usw.

Da QingPing derzeit keinen Payload-Decoder anbietet, habe ich einen einfachen Decoder für die Dekodierung der Echtzeitdaten geschrieben.

function decodeUplink(input) {
  var data = {};
  if (input.bytes[1] == 0x41 && input.bytes[3] == 0x01) {
    data.msg = "RTD";
    data.temp = ((((input.bytes[8] << 8) + input.bytes[9]) >> 4) - 500)/10;
    data.humi = ((((input.bytes[9] << 8) + input.bytes[10]) & 0x0FFF))/10;
    data.bat = input.bytes[13];
  } 
  
  return {
    data: data
  };
}

Using this payload decoder, the TTS console shows the following messages. As you can see, only the real-time data messages beginning with 01 41 xx 01 are decoded.

Bei Verwendung dieses Payload-Decoders zeigt die TTS-Konsole die folgenden Meldungen an. Wie Sie sehen können, werden nur die Echtzeitdatenmeldungen, die mit 01 41 xx 01 beginnen, dekodiert.


Thanks to RAKwireless for this LoRaWAN gift at Embedded World 2024 and the good conversations at the booth. It reminds me of my visit there.


2024-04-13/CK