Multiple switch events are sent by sip&puff interface users

Bug #655945 reported by Jorge Silva
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Tecla Access
Status tracked in Android
Android
Fix Released
High
Jorge Silva

Bug Description

When hard sips or puffs are sent on a sip&puff interface, the switches pass through their soft equivalents, thus sending multiple switch events to the Tekla shield. An optional filter may be used to eliminate this effect.

Revision history for this message
Jorge Silva (jorge-silva) wrote :

It may be better to fix this on the Arduino board since the transition between soft and hard switch events should be shorter than the maximum typical reaction time for user interfaces (~200ms). Will try setting a ~100ms digital filter to see if that solves the problem without causing a noticeable delay.

Revision history for this message
Jorge Silva (jorge-silva) wrote :

A counter filter set at 75ms seemed to be the best solution. A potential disadvantage may be that ALL switch events are delayed by that amount (~75ms). But it does not seem to have any significant impact right now.

As pointed out by Eric, it may be best to transfer this filter to each app, since it is easier to update the app than to update the hardware's firmware.

Changed in meadl:
milestone: none → android-v0.2-alpha
status: Confirmed → Fix Committed
Revision history for this message
Jorge Silva (jorge-silva) wrote :

On a second thought, this should actually be solved on the phone's app. Eric's point is very valid and important, so I will keep the bug open considering the fix is only temporal until we can transfer the filter to the switch event provider on the phone.

Changed in meadl:
status: Fix Committed → Incomplete
Revision history for this message
Jorge Silva (jorge-silva) wrote :

Starting on 0.4-alpha, the Tekla app introduces switch de-bouncing. Thus, this bug will be closed in order to relay any further issues to that feature. If the problem persists, the best solution may be to add an "Advanced" preference that allows users to control the length of the de-bouncing filter.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.