Barcode Listener:

This module stores and handles the settings to interface a
barcode scanner with your drupal install.

1. Enable barcode_listener.
2. Visit /admin/settings/barcode-listener
3. Set up your barcode scanner header character,
	  aka preamble (the same character before every code)
	  default is }. Make sure it is a character that does not
	  appear in any of your barcodes.
4. Set up your scanner to press enter after every scan.
    (check the scanners manual)
5. Enable another module to handle barcode information
    (barcode_inventory is included with this module)

This should be an API to listen for scanner(s) and
barcode data only. It will listen for your scanner
and record operations as directed.

It will integrate with the default barcode_inventory 
module and expose API functions for custom use.
The default and sample module is barcode_inventory
is used to track in / out operations and check inventory.


Default Javascript (in /admin/settings/barcode-listener) -

Drupal.behaviors.BarcodeListenerBehaviors = function(context) {
  char = Drupal.settings.barcode_listener.char;
  asc = Drupal.settings.barcode_listener.asc;
  pre = new Array(char, asc);
  characters = new Array(pre);
  Drupal.BarcodeListener(characters, function(code) {
    count=$("#edit-barcode-listener-count").val();
    uid=$("#edit-barcode-listener-user").val();
    url="/?q=barcode-inventory/update/" + Drupal.settings.barcode_listener.op + "/" + uid + "/" + code + "/" + count;
    $("#barcode-listener-action").load(url);
  });
}