nodejs USB data reader

1,446 views
Skip to first unread message

Sankaran Kaliappan

unread,
Jan 26, 2012, 2:16:11 AM1/26/12
to nod...@googlegroups.com
Hi,

I am new to NodeJs, I have a MagTek card swipe this will push data via USB Hid interface and I have phidgets to get realtime data. I am looking at a way to read all these datas with nodejs. googled on this subject seems like it is possible. but I have no idea how to do that. I have tried filesystem.createReadStream but I haven't able to find the device stream. any help on this to get usb reader with node js. Thanks in advance for helping.

Regards,
Sankaran Kaliappan

Dave Clements

unread,
Jan 26, 2012, 12:08:05 PM1/26/12
to nodejs
Hi Sankaran,

This module may help:

https://github.com/voodootikigod/node-serialport

Dave

On Jan 26, 7:16 am, Sankaran Kaliappan

Sankaran Kaliappan

unread,
Jan 26, 2012, 12:13:52 PM1/26/12
to nod...@googlegroups.com
Hi Dave,

Thanks for your response buddy, the device is connected to usb hub. do you think this serialport module will work for that?
just to make sure...


Thanks & Regards,
Sankaran Kaliappan

--
Job Board: http://jobs.nodejs.org/
Posting guidelines: 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 post to this group, send email to nod...@googlegroups.com
To unsubscribe from this group, send email to
nodejs+un...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Tim Caswell

unread,
Jan 27, 2012, 12:58:33 PM1/27/12
to nod...@googlegroups.com
Well, USB is Universal *Serial* Bus. Last time I asked Chris, he said
it (node-serialport) works fine for USB. Just be aware that USB is a
lot more complicated than vanilla serial. You may want a higher-level
library like libusb bindings depending on the device to interface
with.
Reply all
Reply to author
Forward
0 new messages