Skip to content

Spurious and delayed events with multiple buttons #57

@avparker

Description

@avparker

I have registered for the event for 3 buttons by passing an array of mac addresses (code below).
I often see one or more of the following (often in combination)

  • an extra spurious event for the previous button
  • an event not firing until the next button is pressed
  • latency of 1 or more minutes (I've seen up to 5 minutes delay)

Example scenario from my real testing

  • Press Button 1 => I see the event for Button 1
  • Wait 1 minute
  • Press Button 2 => I see another event for Button 1 (but no event for Button 2)
  • Wait 1 minute
  • Press Button 3, I see an event to Button 2 (but no event for Button 3)
  • Wait 2 minutes
  • I see an event for Button 3

Another scenario from my real testing

  • Press Button 1 => I see the event for Button 1
  • Wait 1 minute
  • Press Button 2 => I see another event for Button 1 and an event for Button 2
  • Wait 1 minute
  • Press Button 3 => I see another event to Button 2 and and event for Button 3
  • Wait 1 minute
  • Press Button 1 => I do not see any event for Button 1
  • Wait 1 minute
  • Event for Button 1 appears (delayed by 1 minute)
  • Wait 1 minute
  • Press Button 2 => I see an event for Button 2 within 5 seconds
  • Wait 2 minutes
  • I see another event for Button 2 out of the blue

Any idea what's going on?
I am running inside an ubuntu 16.04 (xenial) chroot on an Asus Chromebook C302, with node version 8.3.0.

var b_wilkinson = 'b4:7c:9c:92:26:5b';
var b_attack = '34:d2:70:9d:60:31';
var b_genki = 'b4:7c:9c:31:e0:9d';

var dash = dash_button([b_wilkinson, b_attack, b_genki], 'wlan0', '3000', 'udp');

dash.on("detected", function (dash_id){
  if (dash_id === b_wilkinson) {
    console.log("*** WILKINSON ***");
  } else if (dash_id === b_attack) {
    console.log("*** ATTACK ***");
  } else if (dash_id === b_genki) {
    console.log("*** GENKI ***");
  }
  console.log("  detected at " + new Date().toLocaleString());
});`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions