Skip to content
  • Blog
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Community Forum

J

jple

@jple
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent

  • [teleinfo] passage du mode historique au mode standard
    J jple

    @Charles
    Merci Charles, je vais suivre tes conseils.
    Je pense malgré tout que ma TIC à 9600 bauds n'est pas correcte.
    Suite à ma demande, Enedis n'arrive pas après plusieurs tentatives, à la remettre en mode historique.
    Je vais essayer de les joindre la semaine prochaine.
    Encore merci

    Téléinfo teleinfo

  • [teleinfo] passage du mode historique au mode standard
    J jple

    Bonjour à tous,

    Je tente de passer du mode TIC historique au mode standard pour avoir les informations de production.

    Mon montage est le suivant :
    montage.jpg

    Le signal à l'entrée de l'Arduino est donné ci-après :
    Signal D3.jpg

    Le code Arduino est indiqué ci-après.
    J'utilise la bibliothèque : LibTeleinfo.

    -----------------------------------------------------------------------------------------
    #include <SoftwareSerial.h>                        // librairie SoftwareSerial
    #include <LibTeleinfo.h>                             // librairie LibTeleinfo 
    
    SoftwareSerial SerialTic(D3,D4);                   // Broches Liaison série TIC
    TInfo tinfo; 
    
    void DataCallback(ValueList * me, uint8_t  flags){
    
      Serial.print(millis()/1000);
      Serial.print(F("s\t"));
    
      if (flags & TINFO_FLAGS_ADDED) 
        Serial.print(F("NEW -> "));
    
      if (flags & TINFO_FLAGS_UPDATED)
        Serial.print(F("MAJ -> "));
    
      Serial.print(me->name);
      Serial.print("=");
      Serial.println(me->value);
    }
    
    void setup(){                                            //Initialisations
      SerialTic.begin(9600);                             // init liaison série TIC
      Serial.begin(115200);                              // init moniteur série
      tinfo.init();                                               // init tinfo
      tinfo.attachData(DataCallback);
      Serial.println(""); 
      Serial.println("Démarrage Téléinfo");
    }
    
    void loop(){                                            // Boucle principale
      if ( SerialTic.available() )                       // si caractère disponible
        tinfo.process(SerialTic.read());           // décodage caractère TIC
    }
    

    Dans le mode historique avec une vitesse TIC de 1200 bauds cela marche parfaitement et sans erreurs. En mode Standard avec une vitesse TIC de 9600 bauds Je n'ai aucune informations de sortie hormis l'information "Démarrage Téléinfo".

    Y-at-il d'autre chose à faire pour le mode standard ?
    Normalement la bibliothèque LibTeleinfo marche aussi en mode standard mais je n'ai jamais trouvé d'exemple pour ce mode.

    Merci de votre aide ....

    Téléinfo teleinfo
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Blog
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups