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. Release 1.5 and Ethernet Gateway

Release 1.5 and Ethernet Gateway

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 4 Posters 3.6k 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.
  • Carl HC Offline
    Carl HC Offline
    Carl H
    wrote on last edited by
    #1

    Hi,

    Since upgraded to version 1.5, I uploaded the new EthernetGateway for upgrade my Arduino Uno (with Ethernet shield) without any problem but now when I connect to my gateway, the client must be send a character before gateway recognize the client. After the client send a character, gateway debugger print Finishing and now the client receive all sensor message from gateway.

    MYSController can' t connect to this new gateway because after he try to connect, is not sending any character to gateway.

    It is new for version 1.5 because with version 1.4, it's working without this strange behavior.

    Sorry for my english !

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

      The gateway sends a GATEWAY_READY when a new client connects.
      https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/examples/EthernetGateway/EthernetGateway.ino#L171-L179

      It doesn't look like it waits for a new incoming character before writing to the client:
      https://github.com/mysensors/Arduino/blob/master/libraries/MySensors/examples/EthernetGateway/EthernetGateway.ino#L138

      A good thing to do after connecting (from the controller side) is to request version from gateway to see that everything is working.

      1 Reply Last reply
      0
      • Carl HC Offline
        Carl HC Offline
        Carl H
        wrote on last edited by
        #3

        After some test I found what is new. I don't know why but this line:

        EthernetClient newclient = server.available();

        When the client is trying to connect, server.available() wait for client sent character before returning true (1). Is it new for Arduno 1.6?

        1 Reply Last reply
        0
        • Carl HC Offline
          Carl HC Offline
          Carl H
          wrote on last edited by
          #4

          It is normal when I connect my EthernetGateway with MYController, I saw connected in the log but after connecting, MYController not send any request for request gateway version? If a send any request with send buton, after that, now all is working because I recevice Gateway ready message.

          This behavior is new for me after upgrading my EthernetGateway to Arduino 1.7 and My Sensors 1.5!

          upload-375f8654-a111-4f06-a20b-2e9158f31bb5

          1 Reply Last reply
          0
          • hekH Offline
            hekH Offline
            hek
            Admin
            wrote on last edited by
            #5

            Thanks @Carl H.

            Fix pushed:
            https://github.com/mysensors/Arduino/commit/d98bacb56764428f5871a69bd887f5e9c37972dd

            1 Reply Last reply
            0
            • Q Offline
              Q Offline
              Qu3Uk
              wrote on last edited by
              #6

              Seems to have fixed my ethernet gw issues.
              :D

              1 Reply Last reply
              0
              • netsigiN Offline
                netsigiN Offline
                netsigi
                wrote on last edited by
                #7

                Uh, that was a mean one.... updated today from 1.4.1 to 1.5 and MYSController did not work anymore.
                After change client.write(serialBuffer); to server.write(serialBuffer); old behavior was back.

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


                18

                Online

                11.7k

                Users

                11.2k

                Topics

                113.1k

                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