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

    Is it possible to use device with udp protocol ?

    Scheduled Pinned Locked Moved General Discussion
    5 Posts 2 Posters 2.2k Views 1 Watching
    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.
    • Stephan35S Offline
      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

      jkandasaJ 1 Reply Last reply Reply Quote 0
      • jkandasaJ Offline
        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
        • Stephan35S Offline
          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

          jkandasaJ 1 Reply Last reply Reply Quote 0
          • jkandasaJ Offline
            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
            • Stephan35S Offline
              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

              587

              Users

              529

              Topics

              3.4k

              Posts
              Copyright © 2015-2025 MyController.org | Contributors | Localization