• Categories
  • Recent
  • Tags
  • Popular
  • Register
  • Login
  • 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.3k 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.
  • S Offline
    Stephan35
    last edited by 3 Mar 2017, 08:00

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

    J 1 Reply Last reply 3 Mar 2017, 15:13 Reply Quote 0
    • J Offline
      jkandasa @Stephan35
      last edited by 3 Mar 2017, 15:13

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

      1 Reply Last reply Reply Quote 0
      • S Offline
        Stephan35
        last edited by 3 Mar 2017, 17:48

        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

        J 1 Reply Last reply 5 Mar 2017, 14:21 Reply Quote 0
        • J Offline
          jkandasa @Stephan35
          last edited by 5 Mar 2017, 14:21

          @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
          • S Offline
            Stephan35
            last edited by 5 Mar 2017, 18:16

            @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
            5 out of 5
            • First post
              5/5
              Last post

            0

            Online

            631

            Users

            532

            Topics

            3.4k

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