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. Socket issues on android platform
Forum Updated to NodeBB v4.3 + New Features

Socket issues on android platform

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
3 Posts 2 Posters 729 Views 1 Watching
  • 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.
  • F Offline
    F Offline
    Fabster
    wrote on 2 Nov 2017, 15:33 last edited by Fabster 11 Feb 2017, 15:39
    #1

    Hey there

    I am developing an android app, which should be able to send and receive data to a stm32-MCU over tcp/ip (using an spwf01sa serial-to-wifi module). The s2w-module provides a server...

    My application can be connected to this server to start communication. The data-transfer is logged and displayed in the app and on the stm32-chip (over a simple lcd).

    So now, everything is working on windows, except some performance issues (exactly every 10 seconds, there is a little timeout, where the data-transfer is stucked but continues after a second maybe).

    The same code using android is also working, but the data-transfer stopps after this little timeout...sometimes the transfer restarts him-self, but stucks again after some seconds.

    I am using the non-blocking approach, very similar to the fortune-example. I guess this is a OS-issue..

    Can anyone help me? I'm very thankful for every comment..thank you

    Kind Regards

    F 1 Reply Last reply 2 Nov 2017, 15:38
    0
    • F Fabster
      2 Nov 2017, 15:33

      Hey there

      I am developing an android app, which should be able to send and receive data to a stm32-MCU over tcp/ip (using an spwf01sa serial-to-wifi module). The s2w-module provides a server...

      My application can be connected to this server to start communication. The data-transfer is logged and displayed in the app and on the stm32-chip (over a simple lcd).

      So now, everything is working on windows, except some performance issues (exactly every 10 seconds, there is a little timeout, where the data-transfer is stucked but continues after a second maybe).

      The same code using android is also working, but the data-transfer stopps after this little timeout...sometimes the transfer restarts him-self, but stucks again after some seconds.

      I am using the non-blocking approach, very similar to the fortune-example. I guess this is a OS-issue..

      Can anyone help me? I'm very thankful for every comment..thank you

      Kind Regards

      F Offline
      F Offline
      Fabster
      wrote on 2 Nov 2017, 15:38 last edited by
      #2
      This post is deleted!
      1 Reply Last reply
      0
      • P Offline
        P Offline
        Pablo J. Rogina
        wrote on 2 Nov 2017, 17:32 last edited by
        #3

        @Fabster have you tried analyzing the network traffic with Wireshark? You might be able to then compare what's going on given the traffic capture for your running Windows versus the Android app.

        In addition, could you please clarify (maybe a block diagram) where the spwf01sa serial-to-wifi module sits? I suspect this module goes together with the stm32-mcu but just to be sure...

        Upvote the answer(s) that helped you solve the issue
        Use "Topic Tools" button to mark your post as Solved
        Add screenshots via postimage.org
        Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        0

        1/3

        2 Nov 2017, 15:33

        • Login

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