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

  1. Home
  2. Categories
  3. Téléinfo
  4. Téléinfo
  5. tlf_check_frame() no correct frame '(null)'

tlf_check_frame() no correct frame '(null)'

Scheduled Pinned Locked Moved Téléinfo
broadcastteleinfo
3 Posts 2 Posters 2.4k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nickous
    wrote on last edited by nickous
    #1

    salut
    j’essaye d’appliquer le super travail de Charles-Henri et je bute sur l’intégration dans ma base MySQL.

    teleinfo -m t -q -v

    tlf_check_frame() no correct frame ‘(null)’
    Unknown column ‘PPOT’ in ‘field list’
    HCHP 018418659 =
    PTEC HP..
    IINST1 001 I
    IINST2 001 J
    IINST3 000 J
    IMAX1 030 3
    IMAX2 029 <
    IMAX3 023 7
    PMAX 09620 7
    PAPP 00400 %
    HHPHC C .
    MOTDETAT 000000 B
    PPOT 00 #
    ADCO 040930031594 =
    OPTARIF HC.. <
    ISOUSC 20 8
    HCHC 017952204 $
    HCHP 018418660 5
    PTEC HP..
    IINST1 001 I
    IINST2 001 J
    IINST3 000 J
    IMAX1 030 3
    IMAX2 029 <
    IMAX3 023 7
    PMAX 09620 7
    PAPP 00410 &
    HHPHC C .
    MOTDETAT 000000 B
    ——————- Received 251 char Frame.
    ADCO 040930031594 =
    OPTARIF HC.. <
    ISOUSC 20 8
    HCHC 017952204 $
    HCHP 018418660 5
    PTEC HP..
    IINST1 001 I
    IINST2 001 J
    IINST3 000 J
    IMAX1 030 3
    IMAX2 029 <
    IMAX3 023 7
    PMAX 09620 7
    PAPP 00410 &
    HHPHC C .
    MOTDETAT 000000 B
    PPOT 00 #
    ——————-Frame OK
    INSERT INTO DbiTeleinfo
    (DATE,ADCO,OPTARIF,ISOUSC,HCHC,HCHP,PTEC,IINST1,IINST2,IINST3,IMAX1,IMAX2,IMAX3,PMAX,PAPP,HHPHC,MOTDETAT,PPOT)
    VALUES
    (NOW(),’040930031594′,’HC..’,’20’,’017952204′,’018418660′,’HP..’,’001′,’001′,’000′,’030′,’029′,’023′,’09620′,’00410′,’C’,’000000′,’00’);
    1054: Unknown column ‘PPOT’ in ‘field list’
    …
    …
    teleinfo 1.0.8 Statistics

    Frames Sent : 0
    Frames checked : 1
    Frames OK : 1
    Checksum errors : 0
    Frame format Errors : 0
    Frame size Errors : 0
    MySQL init OK : 1
    MySQL init errors : 0
    MySQL connect OK : 1
    MySQL connect errors: 0
    MySQL queries OK : 0
    MySQL queries errors: 1
    EmonCMS total post : 0
    EmonCMS post OK : 0
    EmonCMS post errors : 0
    EmonCMS timeout : 0
    ————————–
    Succeded to do my job

    Je suis en triphasé avec option HC/HP. Peut-être une adaptation à faire??!!

    j’ajoute juste que la table DbiTeleinfo est créée selon la description en fin d’article
    et la connexion se fait bien…
    …j’ai suivi les explications à la lettre (vraiment bien documenté, bravo!)
    je ne comprends pas cette erreur champs PPOT…

    merci de toute aide

    1 Reply Last reply
    • CharlesC Offline
      CharlesC Offline
      Charles
      wrote on last edited by
      #2

      Salut,
      Disons que je me coucherais moins bête ce soir, tu viens de me faire découvrir le champ PPOT dont j’ignorais l’existence. C’est une étiquette spécifique à un contrat triphasé visiblement. C’est cool enfin un testeur en Tri 🙂
      Comme il n’existe pas dans la base, l’erreur provient de là.

      En revanche c’est une valeur Hexadécimale à convertir, donc je dois modifier le code pour cela et pour le moment je suis un peu pris par le temps. Néanmoins, pour régler ton problème (un gros quick & dirty fix) est de créer ce champ (PPOT) de type varchar(2) dans ta base et ton problème sera réglé en attendant un vrai fix.

      soit tu l’ajoute à la main depuis un outil d’admin mysql soit tu ajoutes la ligne suivante dans le fichier de création après la ligne IMAX3 et tu le relances (attention supprimer l’ancienne base DbiTeleinfo avant)

      'PPOT' varchar(2) DEFAULT NULL,
      Attention bien mettre des backquotes pas des quotes ici çà passe pas avec les backquotes sur le forum
      Une fois Ok çà devrait fonctionner.

      Tiens nous au courant.

      1 Reply Last reply
      • N Offline
        N Offline
        nickous
        wrote on last edited by
        #3

        Super, c’est du support du tonnerre 😉
        J’ai ajouté le champ ‘PPOT’ et l’intégration se fait maintenant bien.
        Merci beaucoup

        Il y a bien toujours l’erreur “tlf_check_frame() no correct frame ‘(null)'”, mais c’est pas grave tant que çà envoie et stocke (MySQL/Emoncms)…

        1 Reply Last reply

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        2

        Online

        5.8k

        Users

        565

        Topics

        5.3k

        Posts

        Top Topics

        Popular Tags

        teleinfo
        25 topics
        arduino
        19 topics
        remora
        16 topics
        esp8266
        10 topics
        arduipi
        10 topics
        raspberry
        8 topics
        wifinfo
        7 topics
        broadcast
        7 topics
        Copyright © 2022 Charles-Henri Hallard | Return to blog page | Powered by NodeBB
        • Login

        • Don't have an account? Register

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