Monitor USB status

47 views
Skip to first unread message

Ap0g33

unread,
Jan 14, 2015, 7:29:53 AM1/14/15
to nod...@googlegroups.com
Hi,

  This is my first week in nodeJS world and I am comming from C stuffs...

  My attempt to use nodeJS is to replace a currently C program used to monitor a USB device. This monitoring flow consists in just send command to usb port and read the response, it should be performed twice a second as we cant miss any status changes.

  In this way what is the best (most used, more supported..) nodeJS module to handle USB device?

Thx,

Amir Yasin

unread,
Jan 14, 2015, 2:52:20 PM1/14/15
to nod...@googlegroups.com
NodeJS isn't really designed to handle "hard realitime" (must happen x times per second w/o fail) problems like this.  Your best bet if you really want to use node is to solve the hard realtime part of the problem in C and hook up the signal via Addons (http://nodejs.org/api/addons.html).  Then you can do the rest of your work in NodeJS/javascript and not have to worry about missing a signal.
Reply all
Reply to author
Forward
0 new messages