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. Troubleshooting
  3. Response from the Ethernet Gateway.

Response from the Ethernet Gateway.

Scheduled Pinned Locked Moved Troubleshooting
ethernet gatewa
5 Posts 2 Posters 1.8k Views 1 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.
  • A Offline
    A Offline
    Andreas
    wrote on last edited by
    #1

    Hello.

    Using mysensors version 1.4 and Arduino 1.5.8.

    I’m working on a Ethernet gatway to domoticz. A run in to problems when implementing the V_DIMMER type. I have implemented a button in the sketch to make it possible to change the dim level from a light button. When sending new dim level from domoticz to the sensor (Dimmer) it works great. The sensor responds back with its actual dim level.
    But when changing the dim level from the button and sending the new dim level to domoticz the gateway responds whit the old dim level. This makes my LED to fade back to the old dim level.

    This is whats happens in chronological order.

    Sending the new level using
    gw.send( dimmerMsg.set(currentLevel),false );

    Sensor Log(Dimmer):
    send: 55-55-0-0 s=0,c=1,t=3,pt=2,l=2,st=ok:0

    Gatway Logg:
    0;0;3;0;9;read: 55-55-0 s=0,c=1,t=3,pt=2,l=2:0
    55;0;1;0;3;0

    Sensor Log(Dimmer):
    read: 0-1-55 s=0,c=1,t=3,pt=0,l=3:60 (Where is this coming from?? 60 is the last known value in the gateway)

    Gatway Logg:
    0;0;3;0;9;read: 55-55-0 s=0,c=1,t=3,pt=2,l=2:60

    Why does the gateway responds with its old value?
    This will repeat when sending new dim level from the sensor. But if sending from the controller (domoticz) the gateway will use that dim level instead of the 60 as in the example.

    Best regards
    Andreas

    1 Reply Last reply
    0
    • hekH Online
      hekH Online
      hek
      Admin
      wrote on last edited by
      #2

      Hmm.. so 60 is transmitted to sensor.. but you don't see any Send from gateway?

      Sure you don't have some other sensors/gateway in the radio network?

      1 Reply Last reply
      0
      • A Offline
        A Offline
        Andreas
        wrote on last edited by
        #3

        Hello.
        I’m sure there is no other sensor network around.
        No I can’t see anything telling me that the gateway will send a response.

        Dose the Gateway store the last sent value sent to the DimmableLEDActuator?
        It only happens when the dimmableLEDactuator changes the value and sends it to the gateway.It seams that the gateway responds with the last value that was sent from the gateway? It responds even when ack is set to 0.

        Best regards
        Andreas

        1 Reply Last reply
        0
        • hekH Online
          hekH Online
          hek
          Admin
          wrote on last edited by
          #4

          Nope.. it does not store anything. And you don't seem to have ack enabled in your gw.send call either.

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Andreas
            wrote on last edited by
            #5

            Hello.
            Thanks for all the fast responses.
            I will look at my gateway code and see if I have missed something.
            Best regards
            Andreas

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            14

            Online

            11.7k

            Users

            11.2k

            Topics

            113.0k

            Posts


            Copyright 2019 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