Acknowledged

Instinct 2S completely hangs with BLE bg wf

i'm developing a BLE background watchface and am seeing complete watch hangs on Instinct 2S after about 1 to 2 days of running the wf (and I believe FR 965M but I have stopped testing that due to its inadequate battery.)

i'm not sure which connect iq calls are causing this but i will try to gather more info. since it happens so infrequently (i've seen it at least 3 times and have never been able to get past 2 days of runtime so i'm sure i'll see it again), i'm starting this bug report now anyway to see if others have seen it.

the only thing i can do to the watch after the hang is hold the light button for a long time to power it down, it responds to nothing else and does not update the wf at all.

Parents
  • Just a guess, but maybe there are times the sensor is taking too long to respond, and after 30 seconds, your background is killed, leaving the device paired and in an odd state on the watch

    For something else, I tried a simple hack in the background, as you can't use a timer there.  I'll see if I still have the code, but it's kind of like this.  In onTemporalEvent I do this:

        Sensor.setEnabledSensors([Sensor.SENSOR_HEARTRATE]);
        Sensor.enableSensorEvents(method(:onSensor));

    so onSensor is called about every second, and after say, 28 times it was called, I did the cleanup of the (ANT) sensor I was trying to use.

    Maybe try something like that?

Comment
  • Just a guess, but maybe there are times the sensor is taking too long to respond, and after 30 seconds, your background is killed, leaving the device paired and in an odd state on the watch

    For something else, I tried a simple hack in the background, as you can't use a timer there.  I'll see if I still have the code, but it's kind of like this.  In onTemporalEvent I do this:

        Sensor.setEnabledSensors([Sensor.SENSOR_HEARTRATE]);
        Sensor.enableSensorEvents(method(:onSensor));

    so onSensor is called about every second, and after say, 28 times it was called, I did the cleanup of the (ANT) sensor I was trying to use.

    Maybe try something like that?

Children