how to get dispenser connection status

Support for the Milan Intelligent interface, sold by Money Controls as the Paylink USB unit and for the earlier PCI card version.

Moderators: aardvark, davebush, Admin

Post Reply
lee
Posts: 16777214
Joined: Sat Oct 09, 2010 4:06 pm

how to get dispenser connection status

Post by lee »

I am attempting to recognize when the device is disconnected from the system and so far have been unable.

I have tried calling the USBDriverStatus, but that returns the status of the driver, not the system.

I've tried calling methods that I assumed would need to read from the device (SerialNumber, ReadDispenserDetails, etc) but have only received the last known information back.

Since I know calling OpenMHE returns the correct error if my dispenser is disconnected at startup I've tried calling that, but once the driver is up and running it will always return with no error.

Since I can see in the USB driver log that it knows the device was disconnected I know the information is available, I just can't seem to get at it. Is there something obvious I am missing?

Thanks,
Lee
davebush
Posts: 492
Joined: Fri Oct 22, 2004 12:20 pm

Post by davebush »

Hi,

The return values to USBDriverStatus also let you know when the USB cable is unplugged.

STANDARD_DRIVER means that the driver is loaded, and talking to the Paylink.

USB_ERROR means that the driver is loaded, and can't access the Paylink. (Usually because the cable is unplugged).

Dave

I'm sorry about the late reply - the BB system failed and didn't notify me of new posts.
Aardvark software developer. Please put all communication on the problem through the board for the benefit of others.
Post Reply