• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Is it possible to use device with udp protocol ?

    General Discussion
    2
    5
    1788
    Loading More Posts
    • 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.
    • Stephan35
      Stephan35 last edited by

      Hello
      What do you think about UDP ?
      Is it possible to add an udp listener ? (like node-red)
      Thanks.
      Best regards

      jkandasa 1 Reply Last reply Reply Quote 0
      • jkandasa
        jkandasa @Stephan35 last edited by

        @Stephan35 Yes, this good request. However when we use UDP, we may end up with data loss.

        1 Reply Last reply Reply Quote 0
        • Stephan35
          Stephan35 last edited by

          Thanks,
          I know about dataloss with udp .
          Too many data send may flood lan.
          Also i tried async udp with esp8266 , created a mesh with other esp work fine.
          in fact i losed data when sending or receiving tcp request pendind udp request.
          best regards

          jkandasa 1 Reply Last reply Reply Quote 0
          • jkandasa
            jkandasa @Stephan35 last edited by

            @Stephan35 We have to design UDP based structure to send receive data. Let me find out a way. Give me some hints, if you have any?

            1 Reply Last reply Reply Quote 0
            • Stephan35
              Stephan35 last edited by

              @jkandasa said:

              Give me some hints, if you have any?

              ok, i go again with udp and node-red , i will send you back all i understood.

              2 way for node ,
              first in loop every 150ms max , listen udp port (i will confirm back).
              second , use async udp of menodev wich work fine for me.

              So that mean MyController maybe have to get also async udp to unmiss udp data.

              I meet some issue with broadcasting, because i created mesh in udp.

              Also i used ascii udp datagramm , basic but easiest way for me : something like "down|nodename|get|gpio1"
              "up|nodename|result|gpio1|0"
              "down|nodename|set|gpio1|1"

              Every node can read udp, so , it is very important to specify way and kind of action.

              Hope will help.

              Best regards.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post

              0
              Online

              638
              Users

              495
              Topics

              3.2k
              Posts

              Copyright © 2015-2022 MyController.org | Contributors | Localization