I don't want to use stdin because I am using the keyboard (the real one) for other purpose.<br><br>In /dev/input I only have nodes related to mice on the system, but that would be very convenient to have a node there. I am using a USB-serial adaptor in an other project and the kernel creates a node at /dev/ttyUSB0 that is really convenient to use.
<br>When I plug in the scanner, a node is created in /dev/bus/usb/00X/00X. I tried to cat it but it just returns gibberish and exits.<br><br>Brice<br><br><br><br><div><span class="gmail_quote">On 11/6/06, <b class="gmail_sendername">
Peter Stuge</b> &lt;<a href="mailto:stuge-libhid@cdy.org">stuge-libhid@cdy.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, Nov 06, 2006 at 10:53:11AM +0800, Brice Rebsamen wrote:<br>&gt; I have a USB barcode scanner that acts like a keyboard: whenever a<br>&gt; barcode is read it sends the code where the keyboard would normally<br>&gt; write. I am writing some code in C to read from the scanner.
<br><br>Is it impossible for you to take advantage of this fact?<br><br>Ie. just read from stdin or /dev/input/*<br><br><br>//Peter<br><br>_______________________________________________<br>libhid-discuss mailing list<br>
<a href="mailto:libhid-discuss@lists.alioth.debian.org">libhid-discuss@lists.alioth.debian.org</a><br><a href="http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss">http://lists.alioth.debian.org/mailman/listinfo/libhid-discuss
</a><br></blockquote></div><br>