I am wanting to write an AIR app that can access the USB port. Can someone please perhaps point me in the right direction? I would like to 1) read from a mass storage device like a flash drive and 2) read a bit stream from the USB device like a barcode scanner. Is this even possible with AIR?
Okay - have done some further investigation and this might help someone down the line (hopefully)
Firstly, it seems that AIR 2 can access a mass storage device. Found a great blog at http://blogs.adobe.com/cantrell/archives/2009/11/storage_volume_detection_api_demo.html which explains how to do it.
Secondly, it doesn't look like I can read a bit stream from the USB port. Seeing that the client wants to use an AIR application, the only way I can think of getting around this is using a Java USB driver to read the port and then use Merapi (http://www.merapiproject.net/) to message the contents to the AIR app. A bit of a procedure, but I think it might work Will soon find out...