Reading data from ANT+ garmin USB
<p>I am trying to read the data from <code>ANT+</code> garmin usb and following this tutorial, <a href="https://www.johannesbader.ch/2014/06/track-your-heartrate-on-raspberry-pi-with-ant/" rel="nofollow noreferrer">https://www.johannesbader.ch/2014/06/track-your-heartrate-on-raspberry-pi-with-ant/</a></p>

<p>but I am getting this error,</p>

<pre><code>starting node
Traceback (most recent call last):
  File "garmin_ant_demo.py", line 71, in &lt;module&gt;
    sys.exit(0)
  File "garmin_ant_demo.py", line 39, in __exit__
    self.stop()
  File "garmin_ant_demo.py", line 33, in stop
    self.antnode.stop()
  File "build/bdist.linux-x86_64/egg/ant/core/node.py", line 167, in stop
ant.core.exceptions.NodeError: Could not stop ANT node (not started).
</code></pre>

<p>when running  </p>

<pre><code>python garmin_ant_demo.py
</code></pre>

<p>After I failed with the above approach, I cloned the following repo from git,</p>

<p><a href="https://github.com/Loghorn/ant-plus" rel="nofollow noreferrer">https://github.com/Loghorn/ant-plus</a></p>

<p>and tried running the sample program given (<a href="https://github.com/Loghorn/ant-plus/blob/master/sample/sample.js" rel="nofollow noreferrer">https://github.com/Loghorn/ant-plus/blob/master/sample/sample.js</a>) , but I keep getting the following error,</p>

<pre><code>    this.device.__claimInterface(this.id)
                ^

Error: LIBUSB_ERROR_BUSY
    at Error (native)
    at Interface.claim (/home/suf/node_modules/ant-plus/node_modules/usb/usb.js:168:14)
    at GarminStick3.USBDriver.open (/home/suf/node_modules/ant-plus/build/ant.js:295:20)
    at Object.&lt;anonymous&gt; (/home/suf/final/ant/ant-plus/sample/sample.js:64:12)
    at Module._compile (module.js:409:26)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
</code></pre>

<p>I tried researching the error <code>Error: LIBUSB_ERROR_BUSY</code> but had no luck at all, in fact someone had the same issue <a href="https://stackoverflow.com/questions/37309311/how-to-solve-libusb-error-busy-on-raspberry-pi-debian-running-node-js">How to solve LIBUSB_ERROR_BUSY on Raspberry Pi (Debian) running Node.js</a> but didn't get any response.</p>