I want to create a USB barcode scanner listener that would read in the scanned barcode, and place the barcode in a field in my AIR App even if the program wasn't focused on that particular field in the App. If the client was using the application at the time for something else the scan would be buffered in AIR till requested or the AIR App has been idle for x period of time where upon the field would be brought into focus.
I thought after some research that I could make a Java App (if all else fails) that listens and buffers the input and passes it along using a socket but JUSB doesn't work on Windows properly.
I'm not stuck on any one particular implementation or idea just want to get development underway so... Any ideas? or suggestions would be awesome. I've googled a lot but haven't found any examples or solid suggestions, so any URL pointing to that information would be great too, if you know of a good one, then I'd be able to read up on any suggestion.
AIR doesn't support a USB interface (except as a normal disk drive). The only way to do this using AIR would be the socket approach that you mention.
Just for anyone else. I bought a Metologic Scanner - VoyagerCG. I was trying to get it to work using Java USB for a bit with no luck. But if you get this scanner or one like it, it can be configured as a Virtual COM Port. Which is very very easy in Java to set up as a listener and use sockets to transfer the data and listen within AIR.
This PDF has links to drivers and instructions if this is useful to anyone.
All the best,