Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android: lost UDP datagram
QtWS25 Last Chance

Android: lost UDP datagram

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 363 Views
  • 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.
  • KroMignonK Offline
    KroMignonK Offline
    KroMignon
    wrote on last edited by
    #1

    Hi,

    I am facing to a strange problem with my Android device (Android 7.1.2).
    I want to send UDP Datagram to a PC via WIFI, WIFI is on and connected to the right access point.
    I send Datagram with unicast IP address, but datagram never reached the PC.
    Wenn I remove the SIM card from the Android device datagram arrives to PC!!

    Is there something special to do with android device to use QUdpSocket?

    It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

    1 Reply Last reply
    0
    • K Offline
      K Offline
      kuzulis
      Qt Champions 2020
      wrote on last edited by
      #2

      It's normal for Android && WiFi network.

      KroMignonK 1 Reply Last reply
      -1
      • K kuzulis

        It's normal for Android && WiFi network.

        KroMignonK Offline
        KroMignonK Offline
        KroMignon
        wrote on last edited by
        #3

        @kuzulis What do you mean with normal? I want to send an UDP Datagram to a device with is on the connected Wifi network.
        I send to a given IP with is in WIFI IP address range, so why it is not send on this subnet?

        This not normal

        It is an old maxim of mine that when you have excluded the impossible, whatever remains, however improbable, must be the truth. (Sherlock Holmes)

        1 Reply Last reply
        0
        • K Offline
          K Offline
          kuzulis
          Qt Champions 2020
          wrote on last edited by kuzulis
          #4

          We faced with this similar issues too. Some UDP frames were delivered, some were dropped/lost, some were deferred (delivered later, after some time). This depends on an Android device (on some devices it does work, and on some devices the frames gets dropped). We even created own 'UDP' class, but it does not help. Seems, it depends on an Android device and Android version. It was a hell for us... So, it is normal on Android (we did not win it).. :)

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved