What happens when a scanner is not attached/turned on?

What happens when a scanner is not attached/turned on?

This is how the logic flow works when a check scanner is not attached:
  1. The application calls Ranger.Startup()
  2. Ranger loads each plug-in and calls InitializePlugin() and AreDevicesAttached().
  3. If no devices are attached to a plug-in, then it is unloaded.
  4. If no plug-ins are attached to a device, then Ranger fires the application's TransportIsDead() event.
  5. The application typically prompts the user to attach and turned on the check scanner.
  6. Once the user acknowledges that the scanner is attached, the application calls Ranger.Startup() again and the steps above are repeated.

In short, your plug-in will be reloaded and AreDevicesAttached() will be called again when the user attaches your scanner.

Ranger® - The universal check scanner interface
Copyright © 2023 Silver Bullet Technology
www.sbullet.com