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. Transfer log files off iPad
QtWS25 Last Chance

Transfer log files off iPad

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
ios ipad
5 Posts 2 Posters 1.2k 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.
  • D Offline
    D Offline
    DRoscoe
    wrote on 16 Aug 2016, 14:20 last edited by
    #1

    My iOS app writes logs to the Documents folder of my app bundle. The app is written using the Qt framework. I have a need to programmatically transfer log files from the device to another location as part of the app's initialization.

    I was wondering if anyone else has had similar needs? The logs are shareable and I can manually export them via iTunes or iExplorer, but I need an automated way to do this from within the app. I could write a custom socket transfer routine to do this, but that involves more details such as communicating the original file name, etc. I am hoping for a more turnkey approach I can integrate with my app.

    I appreciate any suggestions

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 16 Aug 2016, 20:51 last edited by
      #2

      Hi,

      Something's not clear: do you want to transfer that to your user PC or to a central server ?

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

      D 1 Reply Last reply 17 Aug 2016, 14:30
      0
      • S SGaist
        16 Aug 2016, 20:51

        Hi,

        Something's not clear: do you want to transfer that to your user PC or to a central server ?

        D Offline
        D Offline
        DRoscoe
        wrote on 17 Aug 2016, 14:30 last edited by
        #3

        @SGaist I'm not sure why that matters. In no scenario is there a physical connection to the iPad containing the log files I wish to transfer. All of the possible destinations are hosts on the same network, and my IPC is TCP sockets, so I don't think it matters where I want to send it with regards to the solution required, as long as the receiver is prepared to receive the files and there are no network obstacles in the way. As I mentioned, all of the potential recipients are on the same network with no intervening firewalls or such.

        Basically, the iPad app launches and connects to another application running on a Linux host. Once that connection is made, I want the iPad app to send any log files from the previous run, sitting in the Documents folder of the bundle, to this service over the socket. Once that is complete, the iPad app finishes its initialization and starts operation. New log files which will be created and transferred the next time the app is initialized.

        Right now, I am looking at creating a custom message containing the filename in the header with the rest of the log file as the payload. The receiving side will parse the header and save the payload using the transferred filename to recreate the original file. I am just hoping there is a more turn-key solution

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 17 Aug 2016, 21:32 last edited by
          #4

          AFAIK, there isn't. You can use the fortune client/server as a base to send your file to the server. If your server provides a REST API for the upload then QNAM is your friend. You can post files with it pretty easily. One last thing might be to add zeroconf in the mix so you can make your application discover where to send the data automagically.

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

          D 1 Reply Last reply 18 Aug 2016, 02:33
          1
          • S SGaist
            17 Aug 2016, 21:32

            AFAIK, there isn't. You can use the fortune client/server as a base to send your file to the server. If your server provides a REST API for the upload then QNAM is your friend. You can post files with it pretty easily. One last thing might be to add zeroconf in the mix so you can make your application discover where to send the data automagically.

            D Offline
            D Offline
            DRoscoe
            wrote on 18 Aug 2016, 02:33 last edited by
            #5

            @SGaist Thanks! I will look into it!

            1 Reply Last reply
            0

            5/5

            18 Aug 2016, 02:33

            • Login

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