Panneaux Solaires

De wiki_pcwiki2
Aller à la navigationAller à la recherche

KEYWORDS: PANNEAUX SOLAIRES

Travaux: http://pcwiki.srv18.pcstreet.org/index.php?title=Solaire::travaux_pour_Phase_I_Solaire_avec_des_panneaux_%C3%A0_micro_onduleur
Installation des panneaux: http://pcwiki.srv18.pcstreet.org/index.php?title=Panneaux_solaires_@_Bois_Dery
Électricité souterraine: http://pcwiki.srv18.pcstreet.org/index.php?title=%C3%89lectricit%C3%A9_souterraine_dans_le_parc
Calculs d’ensoleillement: http://pcwiki.srv18.pcstreet.org/index.php?title=Solaire::Calcul_d%27ensoleillement
Solaire: récapitulation: http://pcwiki.srv18.pcstreet.org/index.php?title=Solaire::r%C3%A9capitulation
Documentation sur le compteur EM340: srv18::/6To/samba/Documents/NOTICES/INFORMATIQUE/COMPTEUR\ TRIPHASE/
Compteur EM340 Carlo Lavazzi: http://pcwiki.srv18.pcstreet.org/index.php?title=Compteur_Triphas%C3%A9::RS485_to_USB
RS 485: http://pcwiki.srv18.pcstreet.org/index.php?title=Unix::RS_485

Le 24/05/2023:
J'ai réussi le dialogue avec le compteur avec une clé USB/RS 485 pure (sans ModBus).
Pour commencer avec l'outil mbpoll, puis en C++ avec la librairie libmodbus
(cf nbk110:/var/tmp/enCours/MODBUS/C++/libmodbus-test-003/makefile)
J'attaquerai la version RS485/ETH plus tard.
Je compte alimenter une base de données avec les infos suivantes:
TimeStamp (en UTC)
Production L1 - Consommation L1 - Injection vers EDF L1
Production L2 - Consommation L2 - Injection vers EDF L2
Production L3 - Consommation L3 - Injection vers EDF L3
NB: Pour le moment, les productions L2 & L3 n'existent pas (attente des 16 panneaux)
mysql -u root --password=fr...ce  << EoF
USE pcNergy;

/* NB: EM340-A = compteur triphasé originel EM340-B = compteur pour les panneaux solaires

  • /

CREATE TABLE Watts

       (
       strUtcTimeSTamp TIMESTAMP PRIMARY KEY,
       intL1_ProdSolaire       int,    /* EM340-B::Reg 3 # 0xyyy # k=10 */
       intL1_Consommation      int,    /* EM340-A::Reg 3 # 0x012 # k=10 */
       intL2_ProdSolaire       int,    /* EM340-B::Reg 3 # 0xyyy # k=10 */
       intL2_Consommation      int,    /* EM340:-A:Reg 3 # 0x014 # k=10 */
       intL3_ProdSolaire       int,    /* EM340-B::Reg 3 # 0xyyy # k=10 */
       intL3_Consommation      int,    /* EM340:-A:Reg 3 # 0x016 # k=10 */
       UNIQUE KEY(strUtcTimeStamp)
       ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

Sur le compteur EM340, les registres de consommation en Watts * 10 sont à partir de l'adresse 0x012