• header.categories
    • header.recent
    • header.tags
    • header.popular
    • register
    • login

    Is it possible to use device with udp protocol ?

    scheduled pinned locked moved General Discussion
    5 posts 2 posters 2.5k views 1 watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • Stephan35S offline
      Stephan35
      global: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 one-reply-to-this-post last-reply-time reply quote 0
      • jkandasaJ offline
        jkandasa @Stephan35
        global:last-edited-by,

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

        one-reply-to-this-post last-reply-time reply quote 0
        • Stephan35S offline
          Stephan35
          global: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 one-reply-to-this-post last-reply-time reply quote 0
          • jkandasaJ offline
            jkandasa @Stephan35
            global: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?

            one-reply-to-this-post last-reply-time reply quote 0
            • Stephan35S offline
              Stephan35
              global: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.

              one-reply-to-this-post last-reply-time reply quote 0
              • first-post
                last-post

              0

              online

              644

              users

              532

              topics

              3.4k

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