Attention.VibeProfile doesn't work for changing vibration pattern on S62.

I would like to generate several vibration pattern in my App. But two code below resulted in the same vibration pattern on both simulator and actual device.  I tried it with S62. 

And simulator with other devices like vivoactive behaves the same.

Can someone help to solve this ?

Code1)

var vibrateData = [
     // new Attention.VibeProfile(50, 2000), // On for two seconds
        new Attention.VibeProfile(0, 0), // Off for two seconds
] as Array<VibeProfile>;

Attention.vibrate(vibrateData);

Code2)

var vibrateData = [
      new Attention.VibeProfile(50, 2000), // On for two seconds
     //  new Attention.VibeProfile(0, 0), // Off for two seconds
] as Array<VibeProfile>;

Attention.vibrate(vibrateData);

  • I don't see this mentioned in the API doc, but from years back I seem to recall that this only works on some watches and it's based on the HW for the vibration motor.  I think they all support length, but not all support duty cycle.

  • Thank you for your reply.

    I red the article too. 

    In my case, length value doesn't work as well as duty cycle. These values seem to be ignored.

    And S62 has settings for vibration strength in menu natively. So I believe S62 HW is supporting the duty cycle.

  • Are you sure it's not working for cycles?  I put together a simple test app that switched between 50 and 100 and ran it on a va4 (very similar to the s62 CIQ wise),.

    There was a difference between 50 and 100, but very minor, so not like 50 was 1/2 of 100.  You may also find that even on the same model watch the vibrations can vary between the two.

  • I tested it again with my S62 HW. Now I could recognize duty cycles and length change accordingly after executing "clean" in project menu. I don't know the reason exactly.

    But animation for vibration in IQ connect Device simulator is not affected by these two parameters at all. It may have confused me.

    Anyway I could close this issue.

    Thank you.