Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
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
  1. Home
  2. My Project
  3. Smartmeters inverted data software corrected?

Smartmeters inverted data software corrected?

Scheduled Pinned Locked Moved My Project
6 Posts 4 Posters 2.3k Views 4 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.
  • YFandSY Offline
    YFandSY Offline
    YFandS
    wrote on last edited by
    #1

    Re: Smartmeter sensors

    Hello,

    Above post was rather old, so the reply option suggested I create a new topic in reference.
    As of october 3th 2017 2 smartmeters are installed, gas (Honeywell BK GYEteB) and electricity (XS 210 ESMR5).

    As a domotic enthousiast of course I want to monitor the output. I prefer Mysensors with Domoticz. So I looked around and found the solution in the topic above. But almost every solution mention a hardware component to invert the signal, 1 -> 0, 0 -> 1. Why is there not a software solution ? A simple XOR would suffice I think?????

    Can somebody tell me what the pitfall is...

    Thanks
    Frank

    1 Reply Last reply
    0
    • B Offline
      B Offline
      BartE
      Contest Winner
      wrote on last edited by BartE
      #2

      @YFandS for some reason these smartmeters use a inverted implementation of the RS232 serial protocol. While Arduino's etc. use the standardized RS232 implementation.

      As far is i known the UART (the "chip" doing the RSR232 decoding fro Arduino) does not supports inverted mode.

      So yes a signal inverter is needed..

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tbowmo
        Admin
        wrote on last edited by
        #3

        What about implementing it with a software uart? Then you can flip the bits in the software instead. (if I remember right they use a baudrate of 9600, so should be doable in software.

        1 Reply Last reply
        0
        • YFandSY Offline
          YFandSY Offline
          YFandS
          wrote on last edited by
          #4

          Thanks guys, As I now understand from BartE the decoding must be first done by the Arduino RS232 hardware. In my opinion I would 'just' receive the inverted bits (via Arduino RS232 Hardware) and invert them later. But I guess that's not the way to do it. :-(

          On the other hand the sketch used in the above link uses the AltSoftSerial library, so the suggestion made by tbowmo might be an option.

          Regards
          Frank

          1 Reply Last reply
          0
          • YFandSY Offline
            YFandSY Offline
            YFandS
            wrote on last edited by
            #5

            Came across this link http://domoticx.com/p1-poort-slimme-meter-data-naar-domoticz-esp8266/ it uses the SoftwareSerial library (not the one provided with Arduino !!)
            and yes it can invert the P1 signals. Unfortunately it uses ESP8266 to send data to Domoticz.
            I will see if I can convert the sketch to mysensors.

            Frank

            1 Reply Last reply
            0
            • gohanG Offline
              gohanG Offline
              gohan
              Mod
              wrote on last edited by
              #6

              Esp8266 can still be used as gateway with on board sensors, just in case...

              1 Reply Last reply
              0

              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


              13

              Online

              12.0k

              Users

              11.2k

              Topics

              113.4k

              Posts


              Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • MySensors
              • OpenHardware.io
              • Categories
              • Recent
              • Tags
              • Popular