15-01-2026, 11:06
(14-01-2026, 04:39)werk_ag Wrote:(10-01-2026, 23:58)dormani Wrote: Later:
The issue is with the OOK transmission. Selecting to send data to Lora module instead of OOK in configuration setting, the process runs without error or reboot, though of course nothing is transmitted to the Pro2 unit.
Hi,
That info is very useful, tank you. I will try to find the issue as soon as possible.
Can you please post your Config_Option.h file just to help me to try with your settings?
Rgs.
Werk_AG
I have attached the configuration file with settings I am using. Thanks for your time on this.
Code:
// --------------------------------------------------------------------------------------
// WeatherDuino - Air Quality Monitor III v6.1_b012
// User Configurable Options
// --------------------------------------------------------------------------------------
// --------------------------------------------------------------------------------------
// Define StationID of this device - Used when sending data by RF to a compatible WeatherDuino receiver
// --------------------------------------------------------------------------------------
const byte Station_ID = 0xA1; // Must be equal to your RX Unit (Value from 0x00 to 0xFF)
const byte Unit_ID = 0; // 0 or 1
// --------------------------------------------------------------------------------------
// Define a unique name for each AQM unit. No spaces or special chars.
// This name is used as unit hostname as also to identify the unit for OTA upload.
// --------------------------------------------------------------------------------------
const char* Device_Name = "My_AQM";
// --------------------------------------------------------------------------------------
// Location Elevation
// --------------------------------------------------------------------------------------
#define ELEVATION 103 // Define the height above sea level of the place where sensor is installed (value in Meters without decimal places)
// --------------------------------------------------------------------------------------
// Define type of Dust sensor
// --------------------------------------------------------------------------------------
#define DUST_SENSORTYPE 0 // 0= PMS7003, 1= nova SDS011, 2 = Sensirion SPS30 (working in I2C mode)
// --------------------------------------------------------------------------------------
// The settings bellow, define the Air Quality Standard and Average Mode that will be used to calculate the Air Quality Index show on the OLED display, if used.
//
// If this unit is used to send data by RF (OOK only) to a Pro2 PLUS or Pro2 Compact receiver, then the PRO2_MODE setting SHOULD be set to 1,
// and other settings will define the AQI Standard and Average Mode that is sent to Pro2 PLUS and Pro2 Compact receivers.
// Settings on the receiver, MUST match the settings defined here.
//
// If this unit is used to send data (RF or WiFi) to a 4Pro receiver, then the PRO2_MODE setting SHOULD be set to 0.
// With WeatherDuino 4Pro receivers the AQI Standard and Average Mode is set on the receiver,
// and can be different of the settings defined here.
//
// --------------------------------------------------------------------------------------
#define AQI_STANDARD 3 // 0= USA (AQI-EPA), 1= EUROPE (EAQI), 2= UK (DAQI), 3= AUSTRALIA (AQC - NSW)
#define AQ_AVGMODE 2 // 1= 1 Hour Average, 2= 3 Hours Average, 3= Nowcast 12H, 4= 24 Hours Average
#define PRO2_MODE 1 // 0= Use 0 to send data to 4PRO receivers, 1= Compatibility mode for Pro2 PLUS and Pro2 Compact receivers
// --------------------------------------------------------------------------------------
// Define type of CO2 sensor
// --------------------------------------------------------------------------------------
#define CO2_SENSORTYPE 2 // 0= Not instaled, 1= Sensirion SDC30, 2= MH-Z19
// --------------------------------------------------------------------------------------
// Settings for the Sensirion SCD30 - CO2 Sensor
// --------------------------------------------------------------------------------------
// The sensirion SDC30 compensate the CO2 readings by using one of two methods: Atmospheric Pressure or a fixed Altitude value.
// Define bellow which one you want to use.
#define SDC30_ELEVATION_CALIBRATION_METHOD 0 // 0= Elevation defined above, 1= Atmospheric Pressure from BME280 sensor (overrides ELEVATION)
// If the SDC30 is intalled, system will use its high quality built-in Temperature / Humidity sensor. BME280 will be used only for Atmospheric Pressure.
// Optionally we can set a temperature offset up to 5.0 °C, stored in non-volatile memory of SCD30
const float SCD30_TemperatureOffset = 2.0; // Format: float
// --------------------------------------------------------------------------------------
// Settings for the MH-Z19 - CO2 Sensor
// --------------------------------------------------------------------------------------
#define Z19_MODEL 2 // 1= Model A, 2= Model B (ATTENTION: Make sure you select the correct model)
#define ENABLE_ABC 0 // 0= Disable (Better for outdoor use), 1= Enable
// Set measure range
#define Z19_RANGE 5 // Don't change (Keeps default factory range 0..5000 ppm)
// Valid values for Model A: 1= 1000ppm, 2= 2000ppm, 3= 3000ppm, 5=5000ppm
// Valid values for Model B: 2= 2000ppm, 5= 5000ppm
const int16_t CO2_OffSet = 0; // Fine adjust to compensate sensor error (This value should be determined case by case. Values between -50 and 50)
// --------------------------------------------------------------------------------------
// Temperature Offset
//
// Note: Applies only when not using the Sensirion SCD30 CO2 sensor!
// --------------------------------------------------------------------------------------
const float Temperature_Offset = 0; // Temperature Fine Adjust in ºC
// --------------------------------------------------------------------------------------
// Define use of OLED Display
// --------------------------------------------------------------------------------------
#define USE_DISPLAY 1 // 0= No Display, 1= Use Display
// --------------------------------------------------------------------------------------
// Define use of LED 1 (Led will Fade IN / Fade OUT sinalizing system is running)
// --------------------------------------------------------------------------------------
#define LED_FADE_EFFECT 1 // 0= No, 1= Yes
// --------------------------------------------------------------------------------------
// Enable / Disable RF data transmission
// --------------------------------------------------------------------------------------
#define RADIO_MODE 2 // 0= No data will be transmitted via RF, 1= Transmit LoRa Mode (4Pro Receivers), 2= Transmit OOK Mode (Pro2 Receivers)
// ======================================================================================
// The WeatherDuino AQM-III can work with or without WiFi connection, however
// many of its functions, like OTA programming, system clock, data upload and others
// will only work if there is WiFi connection.
// ======================================================================================
// --------------------------------------------------------------------------------------
// Enable / Disable WiFi connection
// --------------------------------------------------------------------------------------
#define ENABLE_WIFI 1 // 1= Enable, 0= Disable
#define USE_STATIC_IP 0 // 0= No, use router DHCP (DON'T CHANGE - Static IP isn't fully working)
// If using Static IP address, define addresses
IPAddress local_IP(192,168,1,114);
// Set your Gateway IP address
IPAddress gateway(192,168,1,1);
// Set your Subnet IP address
IPAddress subnet(255,255,255,0);
// ======================================================================================
// Functions from this point bellow only work with WiFi connection active
// ======================================================================================
// --------------------------------------------------------------------------------------
// Define Timezone and rules for auto Summer Time clock adjust
//
// System can use POSIX standard format, or a simpler format.
// Choose and set the one you prefer
// --------------------------------------------------------------------------------------
// Examples:
// In North American Eastern Standard Time (EST) and Eastern Daylight Time (EDT), the normal offset from UTC is 5 hours.
// Since this is west of the prime meridian, the sign is positive (+5 = 5).
// Summer time begins on March’s second Sunday at 2:00am, and ends on November’s first Sunday at 2:00am.
// TZ_info = "EST+5EDT,M3.2.0/2,M11.1.0/2"
//
// Western Greenland Time (WGT) and Western Greenland Summer Time (WGST) are 3 hours behind UTC in the winter.
// Its clocks follow the European Union rules of springing forward by one hour on March’s last Sunday at 01:00 UTC (-02:00 local time)
// and falling back on October’s last Sunday at 01:00 UTC (-01:00 local time).
// TZ_info = "WGT3WGST,M3.5.0/-2,M10.5.0/-1"
//const char* TZ_info = "GMT0BST,M3.5.0/01,M10.5.0/02"; // --> British Time Zone
//const char* TZ_info = "CEST-1CET,M3.2.0/2:00:00,M11.1.0/2:00:00"; // --> Germany Time Zone
//const char* TZ_info = "CET-1CEST,M3.5.0/2,M10.5.0/3"; // --> France Timezone
//const char* TZ_info = "AZOT1AZOST,M3.5.0/01:00:00,M10.5.0/02:00:00"; // --> Açores, Portugal Time Zone
const char* TZ_info = "ACST-9:30ACDT,M10.1.0,M4.1.0/3"; // --> Adelaide Australia
//const char* TZ_info = "NZDT-12NZST,M9.1.0/2,M3.3.0/1"; // --> New Zealand Time Zone
//const char* TZ_info = "WET0WEST,M3.5.0/01:00:00,M10.5.0/02:00:00"; // --> Portugal Time Zone
const long gmtOffset_sec = 0;
const int daylightOffset_sec = 3600;
#define TIMEZONE_DEFTYPE 0 // 0= POSIX, 1= Simple GMT Offset and Summer Time Offset
// --------------------------------------------------------------------------------------
// Prefered NTP Server - Enable only one
// --------------------------------------------------------------------------------------
#define TIMESERVER "pool.ntp.org"
//#define TIMESERVER "time.nist.gov" // ntp1.nl.net NTP server
// --------------------------------------------------------------------------------------
// Defines port used by the buil-in webserver
// Buil-in webserver provides a way to quickly view Air Quality data on a web browser.
// Ex: 192.168.1.200/aqnow
// --------------------------------------------------------------------------------------
#define WEBSERVER_PORT 80 // WebServer port (default 80)
// --------------------------------------------------------------------------------------
// Enable / Disable data transmission to sensor.community
// The AQM-III allows you to share Air Quality data from your location, with the sensor.community project.
// Your sensor and data will be show on a map: https://maps.sensor.community/#2/0.0/0.0
// Just register your sensor at https://devices.sensor.community/ and add your Sensor_UID to Credentials
// --------------------------------------------------------------------------------------
#define ENABLE_SC_UPLOAD 0 // 1= Enable, 0= Disable
// --------------------------------------------------------------------------------------
// Enable / Disable data transmission to ThingSpeak
// --------------------------------------------------------------------------------------
#define ENABLE_TS_UPLOAD 0 // 1= Enable, 0= Disable
// --------------------------------------------------------------------------------------
// Air Quality Monitor - Upload and insert data in a SQL table at your own server ----
// Be sure you have already created the database and table. See AirQuality_LogToSQL.php script for info
// --------------------------------------------------------------------------------------
#define ENABLE_AQM_TO_MYSERVER 0 // 1= Enable, 0= Disable
// ======================================================================================
// Hardware Settings - Most likely there is no need to change anything here
// ======================================================================================
// --------------------------------------------------------------------------------------
// OLED I2C Address - Default address will work most of the times!
// --------------------------------------------------------------------------------------
#define OLED_address 0x3C
// --------------------------------------------------------------------------------------
// Board Type
// --------------------------------------------------------------------------------------
#define PCB_TYPE 1 // 1= Don't change !!!
// ======================================================================================
// Debug helper - Uncomment for debug help
// ======================================================================================
#define PRINT_DEBUG_WIFI
#define PRINT_DEBUG_SYNCTIME
#define PRINT_DEBUG_DUSTSENSOR
#define PRINT_DEBUG_CO2
#define PRINT_DEBUG_TH_SENSOR
//#define PRINT_DEBUG_TS_UPLOAD
//#define PRINT_DEBUG_MYSERVER_UPLOAD
//#define PRINT_DEBUG_SENSORCOMMUNITY
// --------------------------------------------------------------------------------------
//
// --------------------------------------------------------------------------------------
[
