Playback FIT file in simulator?

Does anyone use the "Playback File..." functionality when testing their apps? And if so, should the FIT files taken directly from an actual device work properly?

I have been trying to test out a data field and I have been using FIT files from my D2 Bravo, which contains elevation information and should likely contain other information such as temperature, speed (groundspeed) and heading. However, when playing back the file the only thing that seems to be set within the Activity.Info object that is passed to the compute() method is position. Elevation, speed and heading are all zero and/or null. I saw all old thread from 2014/2015 that mentioned something about missing data but surely this isn't *STILL* the case? If it is still the case and FIT file playback is only partially working, then how are other people testing out their apps and/or data fields other than the obvious (and undesirable) option of building for their device and testing in the wild?

Thanks,
Douglas
  • There is a ticket logged to add support for the enhanced speed and altitude values to FIT file parsing, but it is not going to be in the next Simulator release. I think it has a decent chance of being in the one after next, but it is impossible to say for sure.


    Any movement on this ticket?
  • Former Member
    Former Member over 8 years ago
    This unfortunately hasn't been done yet. I've bumped it to see if it can get some traction.
  • **BUMP** To be moved into the new Connect IQ Bug Reports forum.
  • I'm not sure this post belongs there. It is an enhancement request and it doesn't meet the requirements for putting into that forum. Additionally there is already an issue filed on the Garmin side, so I'm not sure what benefit moving it would provide.

    Travis
  • I'm not sure this post belongs there. It is an enhancement request and it doesn't meet the requirements for putting into that forum. Additionally there is already an issue filed on the Garmin side, so I'm not sure what benefit moving it would provide.


    I'm afraid I must respectfully disagree. I don't see this as an enhancement; the simulator does not replay a FIT file produced by one of their flagship products (and I think it's a problem with the fenix 3 also since the Tactix Bravo also deals with high, aircraft speeds with the Jumpmaster app, but I'll confirm that shortly).

    As for moving it, if Garmin wants the bug report forum to be the central location for all bugs (which I 100% agree with), then any outstanding forum posts for bugs, regardless of obscurity or number of developers encountering it, should be moved there. That will ensure that there's one place to go look for existing bugs and to find out the status of open or closed bugs.

    Cheers,
    Douglas
  • Former Member
    Former Member over 8 years ago
    I added support for enhanced speed and enhanced altitude to the fit parser, so it will be available in our next SDK update.
  • Hi all,
    I'm trying to playback a file from a river surf session (recorded with my app) in a simulator in order to review accelerometer values and some stuff to improve it, but I can't feel it does nothing.

    I can't understand the activity data simulation dialog...
    What's the difference between "FIT/GPX playable file" and "Workout FIT file"?
    I assume a session is a workout (I hope so), ok.

    What does Data Field Timer Controls mean?
    Impossible to know. I assume this is not necessary for me. I just want playback, some traces, breakpoints... etc.

    I play file and... my app looks like it has data (gps enabled). I suppose I must start the app.
    Inside my app nothing happens. Heart rate, speed, baro, etc looks like data simulation (it does not look like a real value), my app doesn't detect waves, my traces look like fake data... I think I'm doing something wrong but where is some documentation of the simulator? Never found it.

    So finally my questions are:

    What can I expect from playback FIT on a simulator?

    How can I work with it?

    Somebody knows its limitations?

    Maybe my laptop is misconfigured?
    I'm working with W11, Visual Studio Code, SDK ConnectIQ 4.1.4. Same watch in simulator and FIT file that I try to playback.


    Any help would be much appreciated!

  • What's the difference between "FIT/GPX playable file" and "Workout FIT file"?
    I assume a session is a workout (I hope so), ok.

    A FIT/GPX playable file is a recorded activity session (e.g. if I go out and run 5 km, then the recorded activity is saved in the form of a FIT file). A workout FIT file represents a custom workout (e.g. if I design an 8 x 800m track workout in Garmin Connect, it gets copied to my watch in the form of a FIT file).

  • Thank you so much for your clarification. So I'll try with a "playable file"...

    Regards,

  • I think now it works!
    The only thing is I don't know how to debug accel.
    I do a System.println(info.accel) and get nothing....
    Heart Rate instead I can debug... maybe not info is available?

    Best,