Tricky question this and I am not sure it can be resolved.
I am developing an EPOS system which runs entirely in the browser (preferring Google Chrome)
A couple of customers have mentioned the apparent need for it to be able to open a till drawer when they complete a sale.
The user presses the "Save Sale" button (which by the way submits using AJAX so if Javascript can be used in a solution, that'd be handy!) and then an invoice PDF is produced. On pressing the button, to achieve what we need, I need to be able to send a pulse to the USB port to trigger a solenoid on their till drawer.
Is it possible AT ALL for a browser to communicate with the USB port in this way?
If it is possible, an extension to this would be to also enable a feature to send, also by USB, a transaction total to a credit card terminal.
Having looked around a bit, I suspect, I will need to create a small piece of software which the user downloads to their local machine, which the browser then communicates with and this local application does the talking to USB, but I am afraid I have no idea where to begin in either direction with this.
Any pointers, tutorials or help at all would be very much appreciated!
Thanks in advance
EDIT:
I have found this: https://developer.chrome.com/apps/app_usb
But I think I am right in saying this is only suitable if I am developing a Chrome App rather than a website running in Chrome?