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. Question about file exchange between applications
QtWS25 Last Chance

Question about file exchange between applications

Scheduled Pinned Locked Moved Solved Mobile and Embedded
4 Posts 3 Posters 939 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.
  • N Offline
    N Offline
    Nils
    wrote on last edited by
    #1

    Hello,
    I'm not sure if this is the right place for my topic but I will ask nevertheless.
    I'm developing an Android/ iOS App which show and log data from the Sensors. Additionally I will have a desktop program, not done yet, to manage the data files.
    The data from the smartphone app has to be transferred to the desktop application, with the use of a web server.
    The data can be saved as a txt, xml or csv file. In most of the time it will be xml.

    So here is my question.
    I'm not that familiar with the networking stuff. So I missing the starting point. I try one of the example which uses qml web sockets but it dosen't work right.
    So if someone can give me a hint how to do the file transfer I would be very thankful.

    For my developing I use QML with V-Play and C++.

    jsulmJ 1 Reply Last reply
    0
    • N Nils

      Hello,
      I'm not sure if this is the right place for my topic but I will ask nevertheless.
      I'm developing an Android/ iOS App which show and log data from the Sensors. Additionally I will have a desktop program, not done yet, to manage the data files.
      The data from the smartphone app has to be transferred to the desktop application, with the use of a web server.
      The data can be saved as a txt, xml or csv file. In most of the time it will be xml.

      So here is my question.
      I'm not that familiar with the networking stuff. So I missing the starting point. I try one of the example which uses qml web sockets but it dosen't work right.
      So if someone can give me a hint how to do the file transfer I would be very thankful.

      For my developing I use QML with V-Play and C++.

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on last edited by
      #2

      @Nils You can start here: http://doc.qt.io/qt-5/qtnetwork-programming.html
      And take a look at Qt examples.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • N Offline
        N Offline
        Nils
        wrote on last edited by
        #3

        So I read the page and try to use the QUdpSocket example.
        I implementiert the sender in my Android application and the receiver in a second application on my computer. In the wireless network of our lab the communication works and I can receive the datagrams from my android app.
        Now is the questions what I have to do next to send my xml files over the sockets?

        At the moment I would try to search for network partners Wirth a Udo Broadcast to establish a direct connection with Tcp and send my data through the Tcp Socket.
        Is this right or do I miss something?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          That's one way to do. Another one would be to use Zeroconf to discover the service you want to connect to. It might make things easier.

          Hope it helps

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          1

          • Login

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