Bonjour,
J'utilise maintenant le hardware Mk2PVRouter RF - sans utiliser la RF- acheté il y a quelques années.
-
J'utilise la vesrion arduino-ide_2.3.6_Linux_64bit.AppImage
remplacer le paramètre '-std=gnu++11' par '-std=gnu++17' ne marche pas, dans mon cas il faut remplacer par
'-std=c++17'
-
La version ArduinoJson 7.4.1 provoque un warning
class ARDUINOJSON_DEPRECATED("use JsonDocument instead") StaticJsonDocument
-
Probleme de configuration en monophase, hardware segment avec RF
3.1. NO_OF_DUMPLOADS doit etre toujours supérieur a 2 - je n'ai q'un seul triac en monophasé,
erreur avec la valeur 1
3.2. inline constexpr uint8_t physicalLoadPin[NO_OF_DUMPLOADS]{ 3, 4 } provoque une erreur d'affectation de broches
inline constexpr SerialOutputType SERIAL_OUTPUT_TYPE = SerialOutputType::IoT;
inline constexpr uint8_t NO_OF_DUMPLOADS{ 2 };
inline constexpr bool EMONESP_CONTROL{ false };
inline constexpr bool DIVERSION_PIN_PRESENT{ true };
inline constexpr RotationModes PRIORITY_ROTATION{ RotationModes::OFF };
inline constexpr bool OVERRIDE_PIN_PRESENT{ true };
inline constexpr bool WATCHDOG_PIN_PRESENT{ false }; /< set it to 'true' if there's a watch led */
inline constexpr bool RELAY_DIVERSION{ false }; /< set it to 'true' if a relay is used for diversion */
inline constexpr bool DUAL_TARIFF{ false };
inline constexpr bool TEMP_SENSOR_PRESENT{ false }; /**< set it to 'true' if temperature sensing is needed */
#include "utils_temp.h"
inline constexpr bool OLD_PCB{ true }; /**< set it to 'true' if the old PCB is used */
inline constexpr DisplayType TYPE_OF_DISPLAY{ DisplayType::SEG }; /**< segment */
inline constexpr uint8_t physicalLoadPin[NO_OF_DUMPLOADS]{ 3, 4 };
inline constexpr uint8_t loadPrioritiesAtStartup[NO_OF_DUMPLOADS]{ 0, 1 }; /**< load priorities and states at startup */
////////////////////////////////////////////////////////////////////////////////////////
// Set the value to 0xff when the pin is not needed (feature deactivated)
inline constexpr uint8_t dualTariffPin{ 0xff }; /< for 3-phase PCB, off-peak trigger */
inline constexpr uint8_t diversionPin{ 15 }; /< if LOW, set diversion on standby */
inline constexpr uint8_t rotationPin{ 0xff }; /< if LOW, trigger a load priority rotation */
inline constexpr uint8_t forcePin{ 3 }; /< for 3-phase PCB, force pin */
inline constexpr uint8_t watchDogPin{ 0xff }; /**< watch dog LED */
3.3.
Pour info, sur une autre version, je declarais les variables suivantes, quelle est configuration pour cela fonctionne avec ton programme Mk2_fasterControl_Full en monophasé
constexpr uint8_t physicalLoad_1_pin{3}; /< <-- the "mode" port is active-high */
constexpr uint8_t physicalLoad_0_pin{4}; /< <-- the "trigger" port is active-low */
constexpr uint8_t voltageSensor{3}; /< A3 is for the voltage sensor */
constexpr uint8_t currentSensor_diverted{4}; /< A4 is for CT2 which measures diverted current */
constexpr uint8_t currentSensor_grid{5}; /**< A5 is for CT1 which measures grid current */
-
Peut-on rajouter la valeur divertedEnergyTotal_Wh dans le JSON ?
-
Peut-on modifier la frequence MQTT toutes les 2 ou 3s par exemple sans affecter le routage ?
Bonjour,
J'utilise maintenant le hardware Mk2PVRouter RF - sans utiliser la RF- acheté il y a quelques années.
J'utilise la vesrion arduino-ide_2.3.6_Linux_64bit.AppImage
remplacer le paramètre '-std=gnu++11' par '-std=gnu++17' ne marche pas, dans mon cas il faut remplacer par
'-std=c++17'
La version ArduinoJson 7.4.1 provoque un warning
class ARDUINOJSON_DEPRECATED("use JsonDocument instead") StaticJsonDocument
Probleme de configuration en monophase, hardware segment avec RF
3.1. NO_OF_DUMPLOADS doit etre toujours supérieur a 2 - je n'ai q'un seul triac en monophasé,
erreur avec la valeur 1
3.2. inline constexpr uint8_t physicalLoadPin[NO_OF_DUMPLOADS]{ 3, 4 } provoque une erreur d'affectation de broches
inline constexpr SerialOutputType SERIAL_OUTPUT_TYPE = SerialOutputType::IoT;
inline constexpr uint8_t NO_OF_DUMPLOADS{ 2 };
inline constexpr bool EMONESP_CONTROL{ false };
inline constexpr bool DIVERSION_PIN_PRESENT{ true };
inline constexpr RotationModes PRIORITY_ROTATION{ RotationModes::OFF };
inline constexpr bool OVERRIDE_PIN_PRESENT{ true };
inline constexpr bool WATCHDOG_PIN_PRESENT{ false }; /< set it to 'true' if there's a watch led */
inline constexpr bool RELAY_DIVERSION{ false }; /< set it to 'true' if a relay is used for diversion */
inline constexpr bool DUAL_TARIFF{ false };
inline constexpr bool TEMP_SENSOR_PRESENT{ false }; /**< set it to 'true' if temperature sensing is needed */
#include "utils_temp.h"
inline constexpr bool OLD_PCB{ true }; /**< set it to 'true' if the old PCB is used */
inline constexpr DisplayType TYPE_OF_DISPLAY{ DisplayType::SEG }; /**< segment */
inline constexpr uint8_t physicalLoadPin[NO_OF_DUMPLOADS]{ 3, 4 };
inline constexpr uint8_t loadPrioritiesAtStartup[NO_OF_DUMPLOADS]{ 0, 1 }; /**< load priorities and states at startup */
////////////////////////////////////////////////////////////////////////////////////////
// Set the value to 0xff when the pin is not needed (feature deactivated)
inline constexpr uint8_t dualTariffPin{ 0xff }; /< for 3-phase PCB, off-peak trigger */
inline constexpr uint8_t diversionPin{ 15 }; /< if LOW, set diversion on standby */
inline constexpr uint8_t rotationPin{ 0xff }; /< if LOW, trigger a load priority rotation */
inline constexpr uint8_t forcePin{ 3 }; /< for 3-phase PCB, force pin */
inline constexpr uint8_t watchDogPin{ 0xff }; /**< watch dog LED */
3.3.
Pour info, sur une autre version, je declarais les variables suivantes, quelle est configuration pour cela fonctionne avec ton programme Mk2_fasterControl_Full en monophasé
constexpr uint8_t physicalLoad_1_pin{3}; /< <-- the "mode" port is active-high */
constexpr uint8_t physicalLoad_0_pin{4}; /< <-- the "trigger" port is active-low */
constexpr uint8_t voltageSensor{3}; /< A3 is for the voltage sensor */
constexpr uint8_t currentSensor_diverted{4}; /< A4 is for CT2 which measures diverted current */
constexpr uint8_t currentSensor_grid{5}; /**< A5 is for CT1 which measures grid current */
Peut-on rajouter la valeur divertedEnergyTotal_Wh dans le JSON ?
Peut-on modifier la frequence MQTT toutes les 2 ou 3s par exemple sans affecter le routage ?