Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Solved Question about file exchange between applications

    Mobile and Embedded
    3
    4
    778
    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.
    • N
      Nils last edited by

      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++.

      jsulm 1 Reply Last reply Reply Quote 0
      • jsulm
        jsulm Lifetime Qt Champion @Nils last edited by

        @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 Reply Quote 1
        • N
          Nils last edited by

          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 Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            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 Reply Quote 1
            • First post
              Last post