Complete

CIQQA-222

Cannot control Activity Timer in Simulator 3.2.4 & newer

Data field activity timer controls are not working properly for me after SDK 3.2.3

After Start Activity Pause Activity is not greyed out but doesn't respond, Stop Activity is available.

After Stop Activity Pause Activity is still not greyed out (and does nothing) Discard & Save Activity are greyed out.

After Stop Activity Start Activity is not showing - still shows Stop Activity - the activity restarts if Stop is chosen.

Parents
  • Here are the steps I used to check things are working as expected with the 3.2.5 SDK on windows...

    1. Load the FieldTimerEvents app into eclipse/vscode
    2. Add System.println() calls to each of the onTimer{Start,Stop,Pause,Resume,Reset} functions so you can see what the simulator is doing.
    3. Build and run FieldTimerEvents
    4. Click Simulation > FIT Data > Simulate Data to enable data simulation
    5. Click Data Fields > Timer. Note that the only option available is Start Activity.
      1. Click Start Activity.
      2. Note that the data field text changes from red to green indicated that the timer has started.
      3. Note that the console displays onTimerStart has executed
    6. Click Data Fields > Timer
      1. Note that Pause Activity, Stop Activity, Lap Activity, Workout Step, and Next Multisport options are available.
      2. Click Pause Activity.
      3. Note that the data field test changes from green to orange to indicate the timer has been paused.
      4. Note that the console displays onTimerPause has executed
    7. Click Data Fields > Timer.
      1. Note that Resume Activity, Stop Activity, and Lap Activity options are available.
      2. Click Resume Activity.
      3. Note that the data field text turns from orange to green to indicate the timer is no longer paused.
      4. Note that the console displays onTimerResume has executed
    8. Click Data Fields > Timer.
      1. Note that Pause Activity, Stop Activity, Lap Activity, Workout Step, and Next Multisport options are available.
      2. Click Stop Activity. In your comments above, you indicate that this does not work.
      3. Note that the data field test changes from green to red to indicate the timer has been stopped.
      4. Note that the console displays onTimerStop has executed
    9. Click Data Fields > Timer.
      1. Note that Discard ActivitySave Activity, Stop Activity, and Lap Activity options are available. 
      2. Click Stop Activity.
      3. Note that the data field test changes from green to red to indicate the timer has been stopped.
      4. Note that the console displays onTimerStop has executed
    10. Click Data Fields > Timer.
      1. Note that Discard ActivitySave Activity, Start Activity, and Lap Activity options are available. 

    At step 6a, I see that Pause Activity is enabled, and at step 6c I've verified that it functions properly after Start Activity. At step 9a I see that Discard Activity and Save Activity options are available and that Pause Activity is not available after pressing Stop Activity. Everything seems to be working just fine.

    If you choose to playback a FIT file (Simulation > FIT Data > Playback File...) the Pause Activity item never becomes available. It is possible that is a bug, but it is not the same as the problems that you point out above.

Comment
  • Here are the steps I used to check things are working as expected with the 3.2.5 SDK on windows...

    1. Load the FieldTimerEvents app into eclipse/vscode
    2. Add System.println() calls to each of the onTimer{Start,Stop,Pause,Resume,Reset} functions so you can see what the simulator is doing.
    3. Build and run FieldTimerEvents
    4. Click Simulation > FIT Data > Simulate Data to enable data simulation
    5. Click Data Fields > Timer. Note that the only option available is Start Activity.
      1. Click Start Activity.
      2. Note that the data field text changes from red to green indicated that the timer has started.
      3. Note that the console displays onTimerStart has executed
    6. Click Data Fields > Timer
      1. Note that Pause Activity, Stop Activity, Lap Activity, Workout Step, and Next Multisport options are available.
      2. Click Pause Activity.
      3. Note that the data field test changes from green to orange to indicate the timer has been paused.
      4. Note that the console displays onTimerPause has executed
    7. Click Data Fields > Timer.
      1. Note that Resume Activity, Stop Activity, and Lap Activity options are available.
      2. Click Resume Activity.
      3. Note that the data field text turns from orange to green to indicate the timer is no longer paused.
      4. Note that the console displays onTimerResume has executed
    8. Click Data Fields > Timer.
      1. Note that Pause Activity, Stop Activity, Lap Activity, Workout Step, and Next Multisport options are available.
      2. Click Stop Activity. In your comments above, you indicate that this does not work.
      3. Note that the data field test changes from green to red to indicate the timer has been stopped.
      4. Note that the console displays onTimerStop has executed
    9. Click Data Fields > Timer.
      1. Note that Discard ActivitySave Activity, Stop Activity, and Lap Activity options are available. 
      2. Click Stop Activity.
      3. Note that the data field test changes from green to red to indicate the timer has been stopped.
      4. Note that the console displays onTimerStop has executed
    10. Click Data Fields > Timer.
      1. Note that Discard ActivitySave Activity, Start Activity, and Lap Activity options are available. 

    At step 6a, I see that Pause Activity is enabled, and at step 6c I've verified that it functions properly after Start Activity. At step 9a I see that Discard Activity and Save Activity options are available and that Pause Activity is not available after pressing Stop Activity. Everything seems to be working just fine.

    If you choose to playback a FIT file (Simulation > FIT Data > Playback File...) the Pause Activity item never becomes available. It is possible that is a bug, but it is not the same as the problems that you point out above.

Children
  • "You have to click 'Newest' above the comments to see the new ones." Thanks Travis, don't know why I didn't do that Disappointed

    Anyway I still don't see what you see, so I've also done a screen recording to demonstrate.

    https://1drv.ms/u/s!AlUxkCayjY3Yiv4ojdi7bUohv3pvyg?e=fkwtCK

  • - You're not seeing all the messages in the thread. You have to click 'Newest' above the comments to see the new ones.

    I'm using the 3.2.5 SDK with the vivoactive_hr and I'm seeing the text change from green to orange when pausing, then back to green when resuming, and then to red when stopping. I've done a screen recording to demonstrate.

    https://1drv.ms/u/s!Ak71bikqehCh9DGC5AwIHgMrPrJT?e=rv5bWw

  • Thanks again for your 2nd reply - I thought I'd responded, don't know what happened to my message.

    In brief, no, unfortunately everything is not working as expected.

    In my step 3 the data field test does not change from green to orange - nothing happens when I click Pause Activity.

    In my step 5 (after a Stop Activity), there's no Start Activity option but Stop Activity restarts the activity.

    Discard Activity and Save Activity are never available.

    (I understand about Workout Step and Next Multisport.)

  • No, wrong I'm afraid. If you look at my report more carefully you'll see the following. (I understand the missing Workout Step and Next Multisport options, I was simulating a VAHR.) If I go back to SDK 3.2.3 everything works just as you describe.

    1. At your step 6 you said: Click Data Fields > Timer
      1. Note that Pause ActivityStop ActivityLap ActivityWorkout Step, and Next Multisport options are available.
      2. Click Pause Activity.
      3. Note that the data field test changes from green to orange to indicate the timer has been paused.
      4. Note that the console displays onTimerPause has executed
    2. But at my equivalent step (3). I said: Click Data Fields > Timer.
      1. Only Pause Activity, Stop Activity and Lap Activity appear to be available. Workout Step and Next Multisport are greyed out.
      2. Click Pause Activity.
      3. The data field test does not change from green to orange.
      4. The console displays nothing.
    3. At your original step 9 (now struck-though) you said: Click Data Fields > Timer.
      1. Note that Discard ActivitySave Activity, Start Activity, and Lap Activity options are available. 
    4. But at my equivalent step (5). I said: Click Data Fields > Timer.
      1. Pause Activity, Stop Activity, Lap Activity appear to be available, as before, nothing else. i.e. Stop Activity hasn’t worked properly - there’s no Discard Activity etc and Stop Activity is still there.
    5. I also followed this with: Click Stop Activity.
      1. The data field text changes from red to green indicating that the timer has started.
      2. The console displays onTimerStart has executed. i.e. Stop Activity has executed Start Activity.
  • Workout Step, and Next Multisport were never available.

    This will be the case if you are simulating a device that doesn't have ConnectIQ 3.x support. Such devices don't support those features. I believe I was creating the test procedure by simulating an fr945.

     but it was already red from step 8c. At 9a you say Stop Activity is available

    Looks like a typo as step 9 is a verbatim copy of step 8.

    Independent of that it seems like everything is working as expected, right?