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.
On Wednesday, January 14, 2015 at 6:29:53 AM UTC-6, Ap0g33 wrote: > > 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, > -- Job board: http://jobs.nodejs.org/ New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md Old group rules: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/073f27ac-fcb9-4432-948a-b5484cffb30c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
