CN112346370B - Cashbox system and control method thereof - Google Patents

Cashbox system and control method thereof Download PDF

Info

Publication number
CN112346370B
CN112346370B CN201910730310.1A CN201910730310A CN112346370B CN 112346370 B CN112346370 B CN 112346370B CN 201910730310 A CN201910730310 A CN 201910730310A CN 112346370 B CN112346370 B CN 112346370B
Authority
CN
China
Prior art keywords
cashbox
micro
signal
control device
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910730310.1A
Other languages
Chinese (zh)
Other versions
CN112346370A (en
Inventor
畲建桦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Mitac Computer Shunde Ltd
Mitac Computing Technology Corp
Original Assignee
Mitac Computer Shunde Ltd
Mitac Computing Technology Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitac Computer Shunde Ltd, Mitac Computing Technology Corp filed Critical Mitac Computer Shunde Ltd
Priority to CN201910730310.1A priority Critical patent/CN112346370B/en
Publication of CN112346370A publication Critical patent/CN112346370A/en
Application granted granted Critical
Publication of CN112346370B publication Critical patent/CN112346370B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Power Sources (AREA)

Abstract

A cashbox system and a control method thereof are combined with a control host. The control host includes a power signal port. The cashbox system comprises a detection unit, a general input/output module, a multiplexing module, a micro-control device and an interface switch connected with the power signal port. The micro-control device comprises a detection pin, a first general input pin, a first basic input and output pin and a second basic input and output pin. The detection unit is used for detecting the design of the power signal port and the micro-control device is matched to control the interface switch to be conducted and connected to the general input/output module according to the power signal and to be connected to the general input/output module by matching with the first general input pin; or controlling the interface switch to connect to the multiplexing module, and connecting to the multiplexing module by matching with the first basic input/output pin and the second basic input/output pin to receive the signal of the main connection port.

Description

Cashbox system and control method thereof
Technical Field
The present invention relates to a cashbox system, and more particularly, to a cashbox system with high versatility and a control method thereof.
Background
In recent years, a pos (point of sales) device, which is a control host and is used in conjunction with a cashbox, is commonly used for financial transactions to provide a payment amount by swiping a card and cash collection for consumers. Generally, the cashboxes commonly associated with the control host are divided into two types according to the communication interfaces used by the cashboxes, one type is to receive the control signals transmitted by the control host through the communication interface of a General Purpose input/output (GPIO) interface, the other type is to receive the control signals through the communication interface of a Universal Serial BUS (USB) interface, usually, the design of the control host only has one type of communication interface, the cashbox only has one communication interface, but because the signal format and the power type used by the GPIO control interface and the USB control interface are different, therefore, the cashboxes with corresponding communication interfaces are often selected and matched according to the GPIO control interfaces or USB control interfaces of the control host, which causes inconvenience in use and poor universality of the cashboxes, and still requires practitioners to carefully discuss, study and improve schemes.
Disclosure of Invention
The invention aims to provide a cashbox system with good universality and a control method thereof.
In order to solve the technical problem, a cashbox system is combined with a control host. The control host includes a power signal port connected to the cashbox system. The cashbox system comprises a mainboard, a detection unit arranged on the mainboard, a general input/output module arranged on the mainboard, a multiplexing module arranged on the mainboard, a micro-control device arranged on the mainboard, an interface switch arranged on the mainboard and a cashbox opened under the control of the micro-control device.
The main board includes a main connection port connected to the power signal port of the control host. The detecting unit is connected to the main connection port and can detect the power signal port through the main connection port. The general input/output module is controlled to be connected with the main connection port in a conduction mode. The multiplexing module is controlled to be connected to the main connection port.
The micro control device comprises a detection pin connected with the detection unit, a first general input pin connected with the general input/output module, a first basic input/output pin connected with the multiplexing module, and a second basic input/output pin connected with the multiplexing module.
The interface switch is connected with the main connection port and the micro-control device and comprises a signal switching module connected with the main connection port. The signal switching module is controlled by the micro-control device to be switched between a first switching mode and a second switching mode, and is connected with the main connecting port and the general input/output module in a conducting manner in the first switching mode; when the second switching mode is used, the signal switching module is connected with the main connecting port and the multiplexing module in a conducting manner.
When the detecting unit detects a first voltage mode of the power signal port through the main connecting port, a first control interface signal is generated, when the micro control device receives the first control interface signal through the detecting pin, the micro control device executes a general input/output mode and controls the signal switching module to switch and connect to the first switching mode, at the moment, the signal switching module conducts and connects the main connecting port and the general input/output module, when the control host transmits a starting instruction to the general input/output module from the power signal port through the main connecting port and the signal switching module, the micro control device receives the starting instruction through the general input/output module and controls the cashbox to be started according to the received starting instruction; when the detecting unit detects a second voltage mode of the power signal port through the main connecting port, a second control interface signal is generated, when the micro-control device receives the second control interface signal through the detecting pin, the micro-control device executes a universal serial bus mode and controls the signal switching module to switch to be connected to the second switching mode, at the moment, the signal switching module is conducted and connected with the main connecting port and the multiplexing module, when the control host transmits the starting instruction to the multiplexing module from the power signal port through the main connecting port and the signal switching module, the micro-control device receives the starting instruction received by the multiplexing module through the first basic input and output pin and the second basic input and output pin and controls the cashbox to be started.
Another technical problem to be solved by the present invention is to provide a control method for a cashbox system with good versatility and convenience for use.
Accordingly, the cashbox system control method is applied to the combination of the cashbox system and a control host. The control method of the cashbox system comprises a detection step, a switching step and a cashbox opening step.
In the detecting step, the detecting unit detects the power signal port through the main connection port, generates a first control interface signal when the detecting unit detects a first voltage mode of the power signal port, and generates a second control interface signal when the detecting unit detects a second voltage mode of the power signal port.
In the switching step, when the micro-control device receives the first control interface signal through the detection pin, the micro control device executes a general input/output mode and controls the signal switching module to switch and connect to a first switching mode, at this time, the signal switching module is connected to the main connection port and the general purpose input/output module, and the first general purpose input pin of the micro control device is connected to the general purpose input/output module, the micro control device executes a universal serial bus mode and controls the signal switching module to switch to a second switching mode, at this time, the signal switching module is connected with the main connection port and the multiplexing module in a conducting way and is matched with the micro-control device to be respectively connected with the multiplexing module through the first basic input and output pin and the second basic input and output pin.
In the step of opening the cashbox, the control host transmits an opening instruction from the power signal port to the main connecting port, when the micro control device executes the general input and output mode, the opening instruction is transmitted from the main connecting port to the general input and output module through the signal switching module, the micro control device receives the opening instruction through the general input and output module and controls the cashbox to be opened, when the micro control device executes the general sequence bus mode, the opening instruction is transmitted from the main connecting port to the multiplexing module through the signal switching module, and the micro control device receives the opening instruction through the multiplexing module and controls the cashbox to be opened.
Compared with the prior art, the cashbox system and the control method thereof have the advantages that the detection unit detects the signal of the power signal port and the micro-control device is matched with the design that the micro-control device receives the signal transmitted by the detection unit through the detection pin, so that the micro-control device can execute the general input and output mode and control the signal switching module to be switched and connected to the first switching mode according to the received first control interface signal, and the first general input pin is matched with the general input and output module to be conducted and connected; or according to the received second control interface signal, executing the universal serial bus mode and controlling the signal switching module to switch and connect to the second switching mode, and respectively connecting to the multiplexing module through the first basic input/output pin and the second basic input/output pin, thereby effectively achieving that the cashbox system can support the signal of the power signal port of the control host in the first voltage mode or the second voltage mode, and further improving the convenience of the cashbox system in use and having good universality.
[ description of the drawings ]
FIG. 1 is a block diagram illustrating an embodiment of the cashbox system of the present invention.
FIG. 2 is a flow chart illustrating an embodiment of a cashbox system control method of the present invention.
[ detailed description ] embodiments
Referring to fig. 1 and 2, the cashbox system 1 of the present invention is combined with a control host 9. The control host 9 includes a power signal port 91 connected to the cashbox system 1. The cashbox system 1 comprises a main board 2, a detecting unit 3 arranged on the main board 2, a general input/output module 4 arranged on the main board 2, a multiplexing module 5 arranged on the main board, a micro control device 6 arranged on the main board 2, an interface switch 65 arranged on the main board, a cashbox 7 controlled to be opened by the micro control device 6, a sensing unit 80 arranged in the cashbox 7 and connected with the micro control device 6 and used for detecting the opening and closing state of the cashbox 7, and a cashbox state module 81 arranged on the main board 2.
The motherboard 2 includes a main connection port 21 connected to the power signal port 91 of the control host 9. The detection unit 3 is connected to the main connection port 21 and can detect the power signal port 91 through the main connection port 21. The general purpose input/output module 4 is controlled to be connected to the main connection port 21. The multiplexing module 5 is controlled to be electrically connected to the main connection port 21.
The micro-control device 6 includes a detecting pin 61 connected to the detecting unit 3, a first general input pin 62 connected to the general input/output module 4, a first basic input/output pin 63 connected to the multiplexing module 5, and a second basic input/output pin 64 connected to the multiplexing module 5. The cashbox status module 81 connects the main port 21 and the micro-control device 6.
The interface switch 65 connects the main port 21 and the micro-control device 6, and includes a signal switching module 651 connected to the main port 21. The signal switching module 651 is controlled by the micro-control device 6 to switch between a first switching mode and a second switching mode, and when the first switching mode is switched, the signal switching module 651 is connected to the main connection port 21 and the general input/output module 4; in the second switching mode, the signal switching module 651 is electrically connected to the main port 21 and the multiplexing module 5, that is, the signal switching module 651 is electrically connected to the main port 21 and the gpio module 4 in the first switching mode, but not electrically connected to the main port 21 and the multiplexing module 5; the signal switching module 651 is electrically connected to the main port 21 and the multiplexing module 5, but not to the main port 21 and the GPIO module 4 in the second switching mode.
When the detecting unit 3 detects a first voltage mode of the power signal port 91 through the main port 21, a first control interface signal is generated, when the micro-control device 6 receives the first control interface signal through the detecting pin 61, the micro-control device 6 executes a general input/output mode and controls the signal switching module 651 to switch to the first switching mode, in the first switching mode, the signal switching module 651 is controlled by the micro-control device 6 to conduct and connect the main port 21 and the general input/output module 4, and is matched with the first general input pin 62 of the micro-control device 6 to conduct and connect to the general input/output module 4, and when the control host 9 transmits a start command from the power signal port 91 through the main port 21 and the signal switching module 651 to the general input/output module 4, and the micro-control device 6 receives the start command through the first general input 62 and according to the start command Controlling the cashbox 7 to be opened; when the detecting unit 3 detects a second voltage mode of the power signal port 91 through the main connection port 21, a second control interface signal is generated, when the micro-control device 6 receives the second control interface signal through the detecting pin 61, the micro-control device 6 executes a USB mode and controls the signal switching module 651 to be connected to the second switching mode, in the second switching mode, the signal switching module 651 is controlled by the micro-control device 6 to connect the main connection port 21 and the multiplexing module 5, so that the control host 9 communicates with the micro-control device 6 through the multiplexing module 5, when the control host 9 transmits the start command, the power signal port 91 transmits the start command to the multiplexing module 5 through the main connection port 21 and the signal switching module 651, and the micro-control device 6 receives the start command from the multiplexing module 5 through the first basic input/output pin 63 and the second basic input/output pin 64 And controlling the cashbox 7 to be opened according to the opening instruction. In this embodiment, the first voltage mode and the second voltage mode are different voltage levels of the power signal correspondingly transmitted by the control host 9 through the power signal port 91.
It should be noted that, in the present embodiment, the micro-control device 6 utilizes the first bios pin 63 and the second bios pin 64 to connect the multiplexing module 5 together through a pair of differential data signal lines to transmit a pair of differential signals together, when the micro-control device 6 executes the gpio mode and controls the signal switching module 651 to be electrically connected to the first switching mode, at this time, the signal switching module 651 connects the main port 21 and the GPIO module 4, and the first BIOS pin 63 and the second BIOS pin 64 of the micro-controller 6 cannot be conducted to the main connection port 21 through the multiplexing module 5, that is, the micro control device 6 controls the multiplexing module 5 to be in the off state, and does not conduct the connection between the micro control device 6 and the main connection port 21 and the signal switching module 651; in contrast, when the micro-control device 6 executes the usb mode and controls the signal switching module 651 to be connected to the second switching mode, at this time, the signal switching module 651 is connected to the main connection port 21 and the multiplexing module 5, and the micro-control device 6 controls the multiplexing module 5 to be connected to the first bios pin 63 and the signal switching module 651 respectively and to be connected to the second bios pin 64 and the main connection port 21 respectively, that is, the micro-control device 6 controls the multiplexing module 5 to operate in the activated operating state.
When in use, when the power signal port 91 of the control host 9 is electrically connected to the main connection port 21 of the cashbox system 1, the detecting unit 3 will detect the power signal by electrically connecting the power signal port 91 through the main connection port 21, in other words, the detecting unit 3 will detect the power signal transmitted by the power signal port 91 received by the main connection port 21, and the detecting unit 3 will detect and determine that the power signal transmitted by the power signal port 91 conforms to the first voltage mode to generate the first control interface signal, after the micro-control device 6 receives the first control interface signal sent by the detecting unit 3 through the detecting pin 61, the micro-control device 6 executes the general input/output mode according to the first control interface signal and controls the signal switching module 651 to be electrically connected to the first switching mode, at this time, the signal switching module 651 conducts and connects the main connection port 21 and the general input/output module 4, and is connected to the general input/output module 4 by the first general input pin 62 of the micro control device 6. In this embodiment, the first control interface signal represents that the control host 9 is a power signal corresponding to a GPIO control interface, that is, a power signal conforming to the first voltage mode, so that when the micro-control device 6 receives the first control interface signal, the general purpose input/output mode is executed and the signal switching module 651 is switched to connect with the general purpose input/output module 4 so as to electrically connect the main connection port 21 with the general purpose input/output module 4, and is connected to the general purpose input/output module 4 in cooperation with the first general purpose input pin 62, so that the control host 9 is supported to transmit a GPIO control interface signal and execute a GPIO control interface signal, for example, the start command for controlling the opening of the cash box 7. When the control host 9 transmits the opening command to the GPIO control interface from the power signal port 91 through the main connection port 21 and the signal switching module 651 to the GPIO module 4 in a signal transmission manner, the micro-control device 6 receives the opening command through the first GPIO pin 62 and controls the cashbox 7 to be opened according to the opening command.
When the detecting unit 3 detects that the power signal transmitted by the power signal port 91 via the main port 21 conforms to a second voltage mode, the second control interface signal is generated, in other words, the detecting unit 3 detects the power signal transmitted by the power signal port 91 received by the main port 21, and the detecting unit 3 detects and determines that the power signal of the power signal port 91 conforms to the second voltage mode, and generates the second control interface signal, after the micro-control device 6 receives the second control interface signal via the detecting pin 61, the micro-control device 6 executes the universal serial bus mode according to the second control interface signal and controls the signal switching module 651 to switch and connect to the second switching mode, at this time, the signal switching module 651 conducts and connects the main port 21 and the multiplexing module 5, and the micro-control device 6 connects to the second basic input/output via the first basic input/output 63 and the second basic input/output The foot 64 is connected to the multiplexing module 5, and the micro control device 6 also turns off the cashbox status module 81, the main port 21 is transmitted to the micro-control device 6 through the multiplexing module 5(Switch) and the control host 9 is transmitted to the multiplexing module 5 through the power signal port 91 and the main port 21 and the signal switching module 651 to jointly transmit a differential signal conforming to a Universal Serial Bus (USB) interface, the micro-control device 6 receives the differential signal transmitted by the control host 9 through the first BIOS pin 63 and the second BIOS pin 64 and through the multiplexing module 5, for example, the micro-control device 6 receives the differential signal transmitted by the control host 9 as the on command, the control host 9 can support the signal transmission of the USB control interface and execute the signal of the USB control interface. In this embodiment, the second control interface signal represents that the host 9 is a power signal corresponding to a USB control interface, that is, a power signal conforming to the second voltage mode, so that when the micro control device 6 receives the second control interface signal, the USB mode is executed and the signal switching module 651 is switched to connect with the multiplexing module 5, so that the main port 21 and the multiplexing module 5 form an electrical connection, and the micro control device 6, the first bios pin 63 and the second bios pin 64 are respectively connected to the multiplexing module 5, so as to support the host 9 to perform signal transmission of the USB control interface and execute signals of the USB control interface. That is, when the host controller 9 transmits the open command in the signal transmission manner of the USB control interface, two transmission paths are used to transmit the signals of the USB control interface, one of the transmission paths is from the power signal port 91 to the multiplexing module 5 through the main port 21 and the signal switching module 651, and from the power signal port 91 to the multiplexing module 5 through the main port 21, the micro-control device 6 receives the open command from the multiplexing module 5(Switch) through the host controller 9 via the first bios pin 63 and the second bios pin 64, and controls the cash box 7 to open according to the open command.
It should be noted that, in this embodiment, when the micro control device 6 receives the first control interface signal via the detection pin 61, the micro control device 6 respectively controls the signal control pin 651 to connect to the gpio module 4, and starts the cashbox status module 81 and closes the multiplexing module 5, that is, the main port 21 is connected to the gpio module 4, and at this time, the voltage level converter 41 generates a first level signal; when the control host 9 transmits the opening command from the power signal port 91 to the general purpose input/output module 4 through the main connection port 21, the voltage level converter 41 generates a second level signal, the micro control device 6 receives the opening command with the second level signal through the first general purpose input pin 62, and controls the cashbox 7 to be opened according to the received opening command. In this embodiment, the logic level of the first level signal is a high level signal "1"; the logic level of the second level signal is a low level signal "0", that is, the output of the voltage level converter 41 is preset to be the first level signal "1", when the micro-control device 6 controls the signal switching module 651 to switch on the voltage level converter 41 connected to the gpio module 4, the first gpio pin 62 is in a state where the voltage level converter 41 receives the signal meeting the first level signal "1"; when the control host 9 transmits the opening command to the gpio module 4, the internal circuit of the voltage level shifter 41 of the gpio module 4 is switched to generate and output an opening command with the second level signal "0", when the micro control device 6 receives the state of the second level signal "0" via the first gpio pin 62, it represents that the control host 9 issues the opening command, and after the micro control device 6 receives the opening command with the second level signal via the gpio module 4 via the first gpio pin 62, it controls the cashbox 7 to be opened according to the opening command.
In addition, in this embodiment, when the sensing unit 80 detects that the cashbox 7 is closed, the sensing unit 80 sends a first status signal indicating that the cashbox is closed to the micro control device 6, and then the micro control device 6 generates cashbox closing information indicating that the cashbox is closed, whereas when the sensing unit 80 detects that the cashbox 7 is open, the sensing unit 80 sends a second signal indicating that the cashbox is open to the micro control device 6, and then the micro control device 6 generates cashbox opening information indicating that the cashbox is open; when the micro control device 6 executes the general input/output mode, the cashbox status module 81 receives one of the cashbox closing information and the cashbox opening information through the micro control device 6, and the cashbox opening information or the cashbox closing information is received by the control host 9 through the main connection port 21 to the power signal port 91; on the contrary, when the micro control device 6 executes the USB mode, the micro control device 6 transmits one of the cashbox closing information and the cashbox opening information to the control host 9 in the USB control interface signal transmission manner, that is, the differential signals of the USB control interface are transmitted through two transmission paths respectively. In detail, the micro control device 6 transmits the cashbox closing information or the cashbox opening information to the multiplexing module 5 through the first bios pin 63 and a second bios pin 64, and the multiplexing module 5 transmits the cashbox closing information or the cashbox opening information to the control host 9 by the transmission paths, and one of the transmission paths is the signal switching module 651 of the multiplexing module 5 via the interface switch 65, and through the main connection port 21 to the power signal port 91, and the other transmission path is the main connection port 21 of the multiplexing module 5 to the control host 9 through the main connection port 21, that is, the micro control device 6 sends the cash box closing information or the cash box opening information to the control host 9 through the multiplexing module 5 and through the transmission paths. Briefly, the sensing unit 80 continuously detects the status of the cashbox 7, so as to detect whether the cashbox 7 is opened or closed in real time, and after the sensing unit 80 sends a first status signal or a second status signal corresponding to the indication that the cashbox 7 is opened to the micro control device 6, the micro control device 6 generates closing information or opening information of the cashbox corresponding to the indication according to the first status signal or the second status signal, transmits the closing information or opening information to the power signal port 91 through the main connection port 21, and transmits the closing information or opening information to the control host 9, so that the control host 9 can know the status of the cashbox 7 in real time. In the present embodiment, the sensing unit 80 is a light sensing element of a light shielding device, but not limited thereto.
By the design that the detection unit 3 detects the power signal transmitted through the power signal port 91 and the micro-control device 6 receives the signal transmitted by the detection unit 3 through the detection pin 61, the micro-control device 6 can execute the general input/output mode and control the signal switching module 651 to switch to the first switching mode according to the received first control interface signal, so that the control host 9 is connected to the general input/output module 4 through the main connection port 21 and the interface switch 65; or according to the received second control interface signal, executing the USB mode and controlling the signal switching module 651 to switch to the second switching mode, so that the host 9 is connected to the multiplexing module 5 through the main connection port 21 and the interface switch 65, and the cashbox system 1 can support one of the GPIO control interface-compliant signal transmission and the USB control interface-compliant signal transmission corresponding to the power signal port 91 of the host 9, so as to transmit the open command to the micro-control device 6 of the cashbox system, so as to control the opening of the cashbox 7 through the micro-control device 6 and monitor the state of the cashbox 7, thereby improving the convenience of the cashbox system 1 in use and achieving good versatility.
In addition, in this embodiment, the cashbox system 1 further comprises a motor unit 82 which is arranged in the cashbox 7 and is controlled by the micro-control device 6 to operate so as to control the opening of the cashbox 7. When the micro control device 6 receives the opening command, the micro control device 6 controls the motor to rotate so as to open the cashbox 7.
Referring to fig. 1 and 2, the cashbox system 1 of the present invention is applied to the control method of the cashbox system 1, and the cashbox system 1 is combined with a control host 9. The control method of the cashbox system 1 comprises a detection step A, a switching step B and a cashbox opening step C.
First, in the detecting step a, the detecting unit 3 detects the power signal transmitted by the power signal port 91 through the main connection port 21, when the detecting unit 3 detects that the power signal transmitted by the power signal port 91 is in a first voltage mode, a first control interface signal is generated, and when the detecting unit 3 detects that the power signal transmitted by the power signal port 91 is in a second voltage mode, a second control interface signal is generated. Briefly, the detecting unit 3 will first detect the type of the power signal transmitted from the control host 9 through the power signal port 91, and when the detecting unit 3 detects and determines that the power signal of the power signal port 91 conforms to the first voltage mode, generate the first control interface signal; when the detecting unit 3 detects and determines that the power signal of the power signal port 91 conforms to the second voltage mode, the second control interface signal is generated. In this embodiment, when the detecting unit 3 generates the first control interface signal according to the power signal, it indicates that the turn-on command transmitted by the host controller 9 corresponds to a control signal of a General Purpose input/output (GPIO) control interface, and when the detecting unit 3 generates the second control interface signal according to the power signal, it indicates that the turn-on command transmitted by the host controller 9 corresponds to a control command of a Universal Serial BUS (USB) control interface.
Then, in the switching step B, when the micro-control device 6 receives the first control interface signal via the detecting pin 61, the micro-control device 6 executes a general purpose input/output mode and controls the signal switching module 651 to be electrically connected to the first switching mode, at this time, the signal switching module 651 is electrically connected to the main connection port 21 and the general purpose input/output module 4, the micro-control device 6 is connected to the general purpose input/output module 4 via the first general purpose input pin 62 and is electrically connected to the main connection port 21 via the interface switch 65, and is further connected to the power signal port 91 of the control host 9 via the main connection port 21, and when the micro-control device 6 receives the second control interface signal via the detecting pin 61, the micro-control device 6 executes a general purpose serial bus mode and controls the signal switching module 651 to be electrically connected to the second switching mode, at this time, the signal switching module 651 is electrically connected to the main connection port 21 and the multiplexing module 5, and the micro-control device 6 is connected to the multiplexing module 5 through the first basic input/output pin 63 and the second basic input/output pin 64, respectively, so that the main connection port 21 is connected to the power signal port 91 of the control host 9 through the multiplexing module 5 and the main connection port 21. Specifically, after the micro-control device 6 receives the first control interface signal from the detecting unit 3 through the detecting pin 61, the micro-control device 6 executes the general input/output mode and controls the signal switching module 651 to switch to the first switching mode, at this time, the signal switching module 651 switches to connect the main connecting port 21 and the general input/output module 4, the micro-control device 6 connects to the general input/output module 4 through the first general input pin 62 and connects to the main connecting port 21 through the interface switch 65, and further connects to the power signal port 91 of the control host 9 through the main connecting port 21. That is, when the micro control device 6 receives the first control interface signal, the general purpose input/output mode is executed to switch and control the signal switching module 651 to be connected to the first switching mode, and the micro control device 6 is connected to the general purpose input/output module 4 via the first general purpose input pin 62, and is connected to the main connection port 21 via the interface switch 65, and is further connected to the power signal port 91 of the control host 9 via the main connection port 21, so as to support the control host 9 to perform signal transmission of the GPIO control interface and execute the turn-on command of the GPIO control interface. When the micro-control device 6 receives the second control interface signal via the detection pin 61, the micro-control device 6 executes the USB mode and controls the signal switching module 651 to be connected to the second switching mode, at this time, the signal switching module 651 is connected to the main connection port 21 and the multiplexing module 5, the micro-control device 6 is connected to the multiplexing module 5 via the first BIOS pin 63 and the second BIOS pin 64, respectively, and the multiplexing module 5 is connected to the main connection port 21 via two transmission paths, respectively, to perform signal transmission of the USB control interface, one of the transmission paths is connected to the main connection port 21 via the interface switch 65 by the multiplexing module 5, and the other transmission path is directly connected to the main connection port 21 by the multiplexing module 5, the main connection port 21 cannot be connected to the GPIO module 4 by the interface switch 65, that is, when the micro control device 6 receives the second control interface signal, the USB mode is executed and the signal switching module 651 is switched to connect to the multiplexing module 5, so that the main connection port 21 and the multiplexing module 5 are electrically connected, and the micro control device 6 is connected to the multiplexing module 5 by the first BIOS pin 63 and the second BIOS pin 64, respectively, to support the control host 9 to perform signal transmission of the USB control interface and execute signals of the USB control interface.
Finally, in the step C of opening the cashbox, the control host 9 transmits an opening command from the power signal port 91 to the main port 21 through the main port 21 and the signal switching module 651, and when the micro control device 6 executes the general purpose input/output mode, the micro control device 6 receives the opening command received by the main port 21 through the general purpose input/output module 4 and controls the cashbox 7 to be opened; when the micro control device 6 executes the usb mode, the micro control device 6 receives the opening command received by the multiplexing module 5 through the first bios pin 63 and the second bios pin 64, and controls the cashbox 7 to open. In other words, when the host 9 transmits the open command to the GPIO control interface from the power signal port 91 to the GPIO module 4 through the host port 21 and the signal switching module 651, the micro-control device 6 receives the open command through the GPIO module 4 and controls the cash box 7 to open. When the control host 9 transmits the open command to the multiplexing module 5 through the power signal port 91 via the main connection port 21 and the signal switching module 651 by signal transmission of the USB control interface, the micro control device 6 receives the open command received by the multiplexing module 5 via the first bios pin 63 and the second bios pin 64, and controls the cashbox 7 to open.
It should be noted that, in the embodiment, the gpio module 4 of the cashbox system 1 further includes a voltage level shifter 41 for shifting the on command of the power signal port 91 received by the main port 21. In the switching step B, when the micro-control device 6 receives the first control interface signal via the detecting pin 61, the micro-control device 6 is connected to the general purpose input/output module 4 via the first general purpose input pin 62, and is connected to the main connection port 21 through the interface switch 65, and further connected to the power signal port 91 of the control host 9 through the main connection port 21, at this time, the voltage level shifter 41 generates a first level signal, and in the open cashbox step C, when the control host 9 transmits the open command from the power signal port 91 to the GPIO module 4 through the main connection port 21, the voltage level converter 41 generates a second level signal, and the micro control device 6 controls the cashbox 7 to be opened according to the opening instruction when receiving the opening instruction with the second level signal through the first general input pin 62. In this embodiment, the logic level of the first level signal is a high level signal "1"; the logic level of the second level signal is "0" which means that the output of the voltage level converter 41 is preset to be the first level signal "1", when the micro control device 6 is connected to the general purpose input/output module 4 via the first general purpose input pin 62, and is connected to the main connection port 21 via the interface switch 65, and further connected to the power signal port 91 of the control host 9 via the main connection port 21; when the first general purpose input pin 62 is connected to the voltage level converter 41, the first general purpose input pin 62 receives the first level signal "1"; when the control host 9 transmits the start command to the gpio module 4, the internal circuit of the voltage level shifter 41 of the gpio module 4 is switched to generate the logic level of the second level signal as "0", and when the first gpio pin 62 receives the logic level of the second level signal as "0", the control host 9 issues the start command, and the micro control device 6 receives the second level signal through the first gpio pin 62, and controls the cashbox 7 to be opened according to the start command.
Since the detecting unit 3 detects the power signal of the power signal port 91 in the detecting step a and the micro control device 6 receives the signal transmitted by the detecting unit 3 through the detecting pin 61 in the switching step B, the micro control device 6 can execute the general input/output mode and control the signal switching module 651 to be connected to the first switching mode according to the received first control interface signal in the switching step B, so as to connect the main connection port 21 to the general input/output module 4; or according to the received second control interface signal, executing the usb mode and controlling the signal switching module 651 to connect to the second switching mode to connect the main port 21 to the multiplexing module 5, and connecting to the multiplexing module 5 through the first bios pin 63 and the second bios pin 64, respectively, so as to effectively achieve that the cashbox system 1 can support the power signal transmitted in the first voltage mode or the second voltage mode according to the power signal port 91 of the control host 9 to automatically switch the micro-control device 6 of the cashbox system 1 to execute one of the usb mode and the usb mode, thereby improving the convenience and versatility of the cashbox system 1.
In summary, in the cashbox system 1 and the control method thereof of the present invention, the detecting unit 3 detects the power signal of the power signal port 91 and the micro-control device 6 is matched with the design that the detecting unit 3 receives the corresponding signal transmitted according to the power signal through the detecting pin 61, so that the micro-control device 6 can execute the general input/output mode and control the signal switching module 651 to be connected to the first switching mode according to the first voltage mode used by the control host 9, so as to connect the main connection port 21 to the general input/output module 4; or according to the second voltage mode used by the control host 9, executing the universal serial bus mode and controlling the signal switching module 651 to be connected to the second switching mode, so that the main connection port 21 is connected to the multiplexing module 5, thereby effectively achieving that the cashbox system 1 can support different signals used by the control host 9, and further improving the convenience and universality of the cashbox system 1.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (4)

1. A cashbox system is combined with a control host, the control host comprises a power signal port connected with the cashbox system, and the cashbox system is characterized by comprising:
a main board including a main connection port connected to the power signal port of the control host;
a detecting unit disposed on the motherboard and connected to the main connection port, wherein the detecting unit can detect the power signal port via the main connection port;
a general input/output module arranged on the mainboard;
a multiplexing module arranged on the mainboard;
a micro control device arranged on the mainboard and comprising a detection pin connected with the detection unit, a first general input pin connected with the general input and output module, a first basic input and output pin connected with the multiplexing module and a second basic input and output pin connected with the multiplexing module;
the interface switch is arranged on the mainboard and connected with the main connecting port and the micro control device, and comprises a signal switching module connected with the main connecting port, the signal switching module is controlled by the micro control device to switch and connect a first switching mode and a second switching mode, and the signal switching module is connected with the main connecting port and the general input and output module in a conducting way when in the first switching mode; when the second switching mode is used, the signal switching module is conducted and connected with the main connecting port and the multiplexing module; and
a cashbox controlled to be opened by the micro-control device, when the detection unit detects a first voltage mode of the power signal port through the main connection port, a first control interface signal is generated, when the micro-control device receives the first control interface signal through the detection pin, the micro-control device executes a general input and output mode and controls the signal switching module to switch and connect to the first switching mode, at the moment, the signal switching module conducts and connects the main connection port and the general input and output module, when the control host transmits an opening instruction to the general input and output module from the power signal port through the main connection port and the signal switching module, the micro-control device receives the opening instruction through the general input and output module and controls the cashbox to be opened according to the received opening instruction; when the detecting unit detects a second voltage mode of the power signal port through the main connecting port, a second control interface signal is generated, when the micro-control device receives the second control interface signal through the detecting pin, the micro-control device executes a universal serial bus mode and controls the signal switching module to switch and connect to the second switching mode, at the moment, the signal switching module is conducted and connected with the main connecting port and the multiplexing module, when the control host transmits the starting instruction to the multiplexing module from the power signal port through the main connecting port and the signal switching module, the micro-control device receives the starting instruction received by the multiplexing module through the first basic input and output pin and the second basic input and output pin and controls the cashbox to be started;
the general input and output module includes a voltage level converter which can convert the signal of the power signal port received by the main connecting port, when the micro control device receives the first control interface signal via the detecting pin, the voltage level converter generates a first level signal, when the control host transmits the opening instruction from the power signal port to the general input and output module via the main connecting port, the voltage level converter converts the opening instruction to generate the opening instruction with a second level signal, and the micro control device receives the opening instruction with the second level signal via the first general input pin to control the cashbox to be opened.
2. A cashbox system as recited in claim 1, further comprising a sensing unit disposed in the cashbox and connected to the micro-control device for detecting an open/close state of the cashbox, and a cashbox status module disposed on the motherboard and connected to the main connection port and the micro-control device, wherein when the sensing unit detects that the cashbox is closed, the sensing unit sends a first status signal indicating that the cashbox is closed to the micro-control device, and then the micro-control device generates a cashbox closing information indicating that the cashbox is closed, the cashbox status module receives the cashbox closing information via the micro-control device and transmits the cashbox closing information to the power signal port via the main connection port, and the control host receives the cashbox closing information via the power signal port; when the sensing unit detects that the cashbox is opened, the sensing unit sends a second state signal indicating that the cashbox is opened to the micro-control device, the micro-control device generates cashbox opening information indicating that the cashbox is opened, the cashbox state module receives the cashbox opening information through the micro-control device and transmits the cashbox opening information to the power signal port through the main connecting port, and the control host receives the cashbox opening information through the power signal port.
3. The cashbox system of claim 1, further comprising a motor unit disposed within the cashbox and operable under control of the micro-control device to control opening of the cashbox, wherein when the micro-control device receives the opening command, the micro-control device controls the motor to rotate to open the cashbox.
4. A control method of cashbox system is applied to a cashbox system combined with a control host, the control host comprises a power signal port connected with the cashbox system, the cashbox system comprises a mainboard, a detection unit, a general input and output module, a multiplexing module, a micro-control device, an interface switch and a cashbox, the mainboard comprises a main connection port, the micro-control device comprises a detection pin, a first general input and output pin, a first basic input and output pin and a second basic input and output pin, the interface switch comprises a signal switching module, and the control method of the cashbox system is characterized by comprising the following steps:
a detecting step, the detecting unit detects the power signal port through the main connection port, when the detecting unit detects a first voltage mode of the power signal port, a first control interface signal is generated, and when the detecting unit detects a second voltage mode of the power signal port, a second control interface signal is generated;
a switching step, when the micro control device receives the first control interface signal through the detection pin, the micro control device executes a general input/output mode and controls the signal switching module to switch and connect to a first switching mode, at the moment, the signal switching module is connected with the main connection port and the general input/output module in a conduction way, and the first general input pin of the micro control device is connected with the general input/output module in a conduction way; when the micro control device receives the second control interface signal through the detection pin, the micro control device executes a universal serial bus mode and controls the signal switching module to switch and connect to a second switching mode, at the moment, the signal switching module is connected with the main connection port and the multiplexing module in a conducting way and is respectively connected with the multiplexing module in a conducting way by matching with the first basic input and output pin and the second basic input and output pin of the micro control device; and
a step of opening the cashbox, wherein the control host transmits an opening instruction from the power signal port to the main connecting port, when the micro control device executes the general input and output mode, the opening instruction is transmitted from the main connecting port to the general input and output module through the signal switching module, and the micro control device receives the opening instruction through the general input and output module and controls the cashbox to be opened; when the micro control device executes the universal serial bus mode, the opening instruction is transmitted from the main connecting port to the multiplexing module through the signal switching module, and the micro control device receives the opening instruction through the multiplexing module to control the cashbox to be opened;
the cashbox system includes one general input and output module including one voltage level converter to convert the signal from the main connecting port to the power source signal port, and features that in the switching step, when the micro controller receives the first control interface signal via the detecting pin, the voltage level converter produces one first level signal, and in the cashbox opening step, when the control host transmits the opening command to the general input and output module via the main connecting port and the signal switching module, the voltage level converter converts the opening command to produce one second level signal, and the micro controller receives the opening command with the second level signal via the first general input pin and controls the cashbox to open based on the opening command.
CN201910730310.1A 2019-08-08 2019-08-08 Cashbox system and control method thereof Active CN112346370B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910730310.1A CN112346370B (en) 2019-08-08 2019-08-08 Cashbox system and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910730310.1A CN112346370B (en) 2019-08-08 2019-08-08 Cashbox system and control method thereof

Publications (2)

Publication Number Publication Date
CN112346370A CN112346370A (en) 2021-02-09
CN112346370B true CN112346370B (en) 2022-04-05

Family

ID=74366761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910730310.1A Active CN112346370B (en) 2019-08-08 2019-08-08 Cashbox system and control method thereof

Country Status (1)

Country Link
CN (1) CN112346370B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079555A (en) * 2006-05-26 2007-11-28 佛山市顺德区顺达电脑厂有限公司 Serial and parallel switching circuit for power detection
CN101325621A (en) * 2007-06-15 2008-12-17 集嘉通讯股份有限公司 Multimedia apparatus for conformity mobile phone
CN205281681U (en) * 2015-12-17 2016-06-01 广州市贺氏办公设备有限公司 Intelligent cash box
DE202017006741U1 (en) * 2017-11-10 2018-04-17 BNP Paribas S.A. Niederlassung Deutschland Multifunctional cash detection system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110215645A1 (en) * 2010-03-05 2011-09-08 Active Power, Inc. Containerized continuous power system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079555A (en) * 2006-05-26 2007-11-28 佛山市顺德区顺达电脑厂有限公司 Serial and parallel switching circuit for power detection
CN101325621A (en) * 2007-06-15 2008-12-17 集嘉通讯股份有限公司 Multimedia apparatus for conformity mobile phone
CN205281681U (en) * 2015-12-17 2016-06-01 广州市贺氏办公设备有限公司 Intelligent cash box
DE202017006741U1 (en) * 2017-11-10 2018-04-17 BNP Paribas S.A. Niederlassung Deutschland Multifunctional cash detection system

Also Published As

Publication number Publication date
CN112346370A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
US7433991B2 (en) Selector, selection method, and program product
US20200241687A1 (en) Switchable input modes for external display operation
US7447822B2 (en) Hot-plug control system and method
EP1150525A2 (en) Mobile communication terminal device
US20060007126A1 (en) Wireless peripheral and related control method for supporting legacy keyboard inputting
CN102749985A (en) Method and device for dynamically adjusting bus clock
CN103365753A (en) Debugging device and method for performing debugging process to target system
CN102928687B (en) Personal computer (PC) 104 and K virtual machine (KVM) based portable high-integration test equipment and test method
US20160179722A1 (en) Electronic device and method for communicating with usb device
CN112346370B (en) Cashbox system and control method thereof
CN101739320B (en) Error detection device of server and error detection method thereof
CN112380066B (en) Server maintenance and debugging device based on domestic platform and server
CN108491343B (en) Terminal device, data transmission system and method
US6243780B1 (en) Interface of a monitor communicating with personal computer
CN103365735A (en) Transmission interface and method for determining transmission signal
US11334506B2 (en) Interface connection device, system and method thereof
CN101470648B (en) Power supply switch control system
CN215420573U (en) Multifunctional video signal expansion interface and display terminal
CN112968332A (en) Compatible device and method for switching TYPE-C interface of tablet personal computer mainboard to UART serial port communication
US10896647B2 (en) Display port apparatus and processing
CN113064574A (en) Electronic equipment and display parameter control method
US9836425B2 (en) Computer apparatus, datapath switching apparatus and associated method for switching datapaths for transmitting sensing data according to operating system utilized by computer apparatus
TWI829240B (en) Electronic device
CN111897753A (en) USB host-to-host chip
CN111414067B (en) Computer starting method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant