Patent ID: 8224701

Claim:
A detecting device for a cash drawer, wherein the cash drawer has an electromagnetic switch and a micro switch and is connected to a control host via a connection wire to obtain operation power for the electromagnetic switch and to receive a signal to drive and enable the electromagnetic switch to automatically open the cash drawer, wherein when the cash drawer is automatically opened the micro switch is short-circuited, when the cash drawer is closed the micro switch is open-circuited, and the detecting device for the cash drawer is located in the control host, comprising: an operation logic circuit having a first input terminal, a second input terminal and an output terminal, wherein the first input terminal is coupled with a first terminal of the micro switch, the second input terminal is coupled with a second terminal of the micro switch, and each of the first input terminal and the second input terminal is supplied with a high level voltage; and a switch element, which is coupled between the electromagnetic switch and the first input terminal, having a first terminal coupled with the electromagnetic switch, a second terminal coupled with the first input terminal of the operation logic circuit, and a third terminal serving as a grounding terminal, wherein when the cash drawer is opened in response to the signal outputted from the control host and is connected to the host controller via the connection wire a conduction of the switch element, which is achieved by the switching element obtaining the operation power via the electromagnetic switch, causes the switch element to output a low level voltage to the first input terminal of the operation logic circuit, when the cash drawer is disconnected from the control host, the switch element is turned off, outputting the high level voltage to the first input terminal of the operation logic circuit, and when the cash drawer is connected to the host controller and is closed the conduction of the switch element causes the first input terminal of the operation logic circuit to receive the low level voltage; wherein, when the detecting device and the cash drawer is disconnected or the cash drawer is opened when the detecting device and the cash drawer are connected both the first input terminal and the second input terminal receive voltages of a same logic voltage level, and the operation logic circuit outputs a voltage of a first logic level to the output terminal, and when the detecting device and the cash drawer is connected and the cash drawer is closed the first input terminal and the second input terminal receive the voltages of different logic voltage levels, and the operation logic circuit outputs a voltage of a second logic level to the output terminal.