A split-type cash collection device, an audio control method and a computer program product
By designing a split collection device, both the handheld and the base have audio playback modules, and automatically control audio playback by detecting the contact status, the problems of single voice playback mode and single dock function of the existing collection device are solved, and the richness is achieved Voice function application and structural optimization.
Patent Information
- Application Number
- CN202210546634.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-16
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2042-05-16
AI Technical Summary
The voice playback mode of the existing payment collection equipment is single, which cannot effectively support the rich applications of digital currency that require voice functions. At the same time, the dock function of the traditional payment collection equipment is single, which wastes the dock space.
Design a split payment device, including a handheld and a dock, both with audio playback modules. By detecting the contact state of the contact in the contact module, it is determined that the device is in the first state (the handheld is placed on the base) or the second state (the handheld is left on the base), and the opening of the audio playback module of the handheld and the base is automatically controlled and closure.
It realizes automatic switching between the audio playback of the handheld and the dock, supports the rich voice function application of digital currency, optimizes the overall structure of the split payment collection device, and avoids waste of dock space.
Smart Images

Figure CN115131926B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field related to electronic payment, and specifically relates to a payment collection device for electronic payment collection, and more specifically relates to a split payment collection device, an audio control method and a computer program product. Background Art
[0002] As the functions of electronic products become increasingly diverse, electronic payment has gradually become popular in people's lives. At present, collecting payment by scanning the payment code of the client of the APP that supports electronic payment has gradually become an essential option for electronic payment.
[0003] When using hardware payment devices and various rich applications, users may need to interact with the hardware payment devices through voice, which requires the payment devices to have voice playback function.
[0004] However, in the prior art, the payment device is usually an integrated device, which is not convenient for users to pick up and receive calls, or it is composed of a handset and a charging base, and only the handset has a voice playback function. In actual use, when the handset is used alone, due to the limited size of the handset, the voice output power is small, and the base is only used for charging, there are problems such as a single base function and a waste of base space.
[0005] Therefore, it is necessary to provide a new split-type payment collection device to solve the above problems. Summary of the invention
[0006] 1. Technical issues to be resolved
[0007] On the one hand, the present invention aims to solve the problem that the existing cash register device has a single voice playback mode and cannot effectively support the rich applications of digital currency that require voice functions; on the other hand, the present invention aims to solve the technical problem that the base of the traditional cash register device has a single function and wastes base space.
[0008] (II) Technical solution
[0009] In order to solve the above technical problems, one aspect of the present invention proposes a split-type cash collection device, including a handset and a base for placing the handset, the handset is used to communicate with a payment device to complete electronic payment, and the handset and the base both have an audio playback module; the split-type cash collection device has a first state and a second state, the first state refers to a state in which the handset is placed on the base, and the second state refers to a state in which the handset leaves the base; when in the first state, the audio playback module of the handset is turned off, and the audio playback module of the base is turned on; when in the second state, the audio playback module of the handset is turned on, and the audio playback module of the base is turned off.
[0010] According to a preferred embodiment of the present invention, the handheld device and the base both have a contact module. When in the first state, the contacts in the contact module of the handheld device are electrically contacted with the contacts in the contact module of the base. The handheld device and the base determine whether the split-type payment device is in the first state or the second state by detecting the contact state of the contacts in their respective contact modules.
[0011] According to a preferred embodiment of the present invention, the contact module further comprises a power supply contact, so that when the split-type cash register device is in the first state, the handheld device is charged through the power supply contact.
[0012] According to a preferred embodiment of the present invention, the contact module further comprises an audio signal contact, so that when the split-type cash register device is in the first state, the handset transmits an audio signal to the base.
[0013] According to a preferred embodiment of the present invention, the contact is a push-type contact, the contact state corresponds to the push state, and the press state of the push-type contact is detected to determine whether the split-type cash register device is in the first state or the second state.
[0014] According to a preferred embodiment of the present invention, it also includes a detection module located in the handset and / or the base, which generates a detection signal by detecting the contact state of the contact point, and the detection signal is used to control the opening and closing of the audio playback module of the handset and the base.
[0015] According to a preferred embodiment of the present invention, the detection module is located in the handheld device or the base. When the split-type cash register device is in the first state, the detection signal generated by the detection module is a high level, which controls the audio playback module of the handheld device to turn off, and at the same time, the detection signal also controls the audio playback module of the base to turn on.
[0016] According to a preferred embodiment of the present invention, when the split-type cash register device is in the second state, the detection signal is at a low level, the audio playback module of the handheld device remains turned on, and the audio playback module of the base remains turned off.
[0017] The second aspect of the present invention proposes an audio control method for a split-type cash register device, wherein the split-type cash register device includes a handset and a base for placing the handset, and the handset is used to communicate with a payment device to complete electronic payment collection. The method includes: setting an audio playback module in both the handset and the base; when it is detected that the split-type cash register device is in a first state, controlling the audio playback module of the handset to be turned off and the audio playback module of the base to be turned on, and the first state refers to a state in which the handset is placed on the base; when it is detected that the split-type cash register device is in a second state, controlling the audio playback module of the handset to be turned on and the audio playback module of the base to be turned off, and the second state refers to a state in which the handset leaves the base.
[0018] According to a preferred embodiment of the present invention, the handset and the base both have a contact module, and the contact state of the contacts in the contact module is detected to determine whether the split-type cash register device is in the first state or the second state.
[0019] According to a preferred embodiment of the present invention, whether the split-type cash register device is in the first state or the second state is determined by detecting the pressing state of the pressing contact.
[0020] According to a preferred embodiment of the present invention, the method further comprises: generating a detection signal by detecting the contact state of the contact point, wherein the detection signal is used to control the opening and closing of the audio playback modules of the handset and the base.
[0021] According to a preferred embodiment of the present invention, when the split-type cash register is in the first state, the detection signal is at a high level, which controls the audio playback module of the handheld device to be turned off, and at the same time, the detection signal also controls the audio playback module of the base to be turned on.
[0022] According to a preferred embodiment of the present invention, when the split-type cash register device is in the second state, the detection signal is at a low level, the audio playback module of the handheld device remains turned on, and the audio playback module of the base remains turned off.
[0023] A third aspect of the present invention provides a computer device, comprising a processor and a memory, wherein the memory is used to store a computer executable program. When the computer program is executed by the processor, the processor executes the audio control method described in the second aspect of the present invention.
[0024] A fourth aspect of the present invention provides a computer program product storing a computer executable program, wherein when the computer executable program is executed, the audio control method described in the second aspect of the present invention is implemented.
[0025] (III) Beneficial effects
[0026] Compared with the prior art, the present invention enables both the handset and the base to have audio playback functions, and controls the audio playback modules of the handset and the base to automatically turn off and on, which can effectively realize the automatic switching of the audio playback of the handset and the base, thereby enabling the payment device to support various rich applications based on digital currency.
[0027] Furthermore, the present invention can effectively utilize the structural space of the handheld device or the base by arranging the detection module on the handheld device and / or the base, thereby optimizing the overall structure of the split-type cash register device;
[0028] Third, the present invention can effectively realize the automatic switching of audio playback between the handset and the base by providing a switching circuit including a control component and using a detection module to detect the first state and the second state of the split-type cash register, thereby facilitating user use. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Figure 1 is a schematic diagram of an embodiment of a split-type cash register device according to embodiment 1 of the present invention;
[0030] Figure 2 is a schematic diagram of an embodiment of a switching circuit of a split-type cash register device according to Embodiment 1 of the present invention;
[0031] Figure 3 is a schematic diagram of an embodiment of a voice output circuit of a base of a split-type cash register device according to embodiment 1 of the present invention;
[0032] Figure 4 is a schematic diagram of an embodiment of a voice shutoff process of an audio control method according to embodiment 2 of the present invention;
[0033] Figure 5 is a structural schematic diagram of an embodiment of a computer device of the present invention;
[0034] Figure 6 is a schematic diagram of one embodiment of a computer program product of the present invention.
[0035] Figure 7 It is a block diagram of a computer-readable medium according to an exemplary embodiment. DETAILED DESCRIPTION
[0036] In the process of introducing specific embodiments, the detailed description of the structure, performance, effect or other characteristics is to enable those skilled in the art to fully understand the embodiments. However, it does not exclude that those skilled in the art can implement the present invention with a technical solution that does not contain the above-mentioned structure, performance, effect or other characteristics under certain circumstances.
[0037] The flowchart in the accompanying drawings is only an exemplary process demonstration, and does not mean that the solution of the present invention must include all the contents, operations and steps in the flowchart, nor does it mean that it must be executed in the order shown in the figure. For example, some operations / steps in the flowchart can be decomposed, some operations / steps can be combined or partially combined, etc. The execution order shown in the flowchart can be changed according to actual conditions without departing from the main purpose of the present invention.
[0038] Frames in the attached figure Figure 1 Generally, it refers to functional entities, which do not necessarily correspond to physically independent entities. That is, these functional entities can be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processing unit devices and / or microcontroller devices.
[0039] The same reference numerals in the drawings represent the same or similar elements, components or parts, and thus the repeated description of the same or similar elements, components or parts may be omitted below. It should also be understood that although the first, second, third and other attributives representing the numbers may be used herein to describe various devices, elements, components or parts, these devices, elements, components or parts should not be limited by these attributives. In other words, these attributives are only used to distinguish one from another. For example, the first device may also be called the second device, but it does not deviate from the essential technical solution of the present invention. In addition, the terms "and / or" and "and / or" refer to all combinations including any one or more of the listed items.
[0040] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.
[0041] Example 1
[0042] Figure 1 It is a schematic structural diagram of an embodiment of a split-type cash register device of embodiment 1 of the present invention.
[0043] like Figure 1 As shown, the present invention provides a split-type payment collection device 100, which includes a handheld device 10 and a base 20 for placing the handheld device 10, and the handheld device 10 is used to communicate with a payment device to complete electronic payment collection. As a preferred embodiment, the present invention is particularly conducive to electronic payment collection based on digital currency. The "digital currency" referred to in the present invention refers to the digital RMB. However, the present invention does not limit its extension to other credit-based virtual digital currencies.
[0044] It should be noted that the "digital currency" referred to in the present invention is essentially different from third-party electronic payment. "Digital currency" is real currency, while the latter is just a payment tool that can display bills and balances, not currency.
[0045] The "digital currency" in the present invention is stored in the "digital currency wallet" and is paid through the "digital currency wallet". Therefore, the "digital currency wallet" referred to in the present invention refers to a tool for storing and paying digital currency, which can be in the form of software, hardware or other forms. However, although the "digital currency wallet" should have the functions of storage and payment, in practice it can be implemented by sub-devices or sub-modules, and each sub-device or module can partially implement part of the storage function or payment function. For example, for the digital currency wallet at the entrance of the subway, it can only implement part of the payment function, and it needs to cooperate with the digital currency wallet at the subway exit to realize the complete "digital currency wallet". The "digital currency wallet" referred to in the present invention covers software, APP or hardware devices that fully implement and partially implement the "digital currency wallet".
[0046] It should be noted that the "digital currency wallet" of the present invention does not include the so-called "wallet" of any third-party payment tool. It is a wallet that can truly realize the storage and payment of currency, and does not simply borrow the concept of "wallet" to indicate a certain similarity in form.
[0047] Therefore, the split-type cash collection device 100 of the present invention is preferably integrated with a digital currency wallet, and the security chip of the digital currency wallet can be in the handheld device or in the base 20. In addition, according to the present invention, both the handheld device 10 and the base 20 have an audio playback module, that is, both the handheld device 10 and the base 20 can play audio.
[0048] like Figure 1 As shown, the handset 10 has a contact module 11, and the base 20 has a contact module 21 at a corresponding position thereof, and the handset 10 and the base 20 are electrically connected via the contact module 11 and the contact module 21. For example, the contact module is a POGO_PIN (spring-type probe), and the contact module includes contacts, such as power supply contacts, audio signal contacts, etc.
[0049] Furthermore, the contact module 11 of the handset 10 includes an audio signal contact, and the contact module 21 of the base 20 includes a power supply contact.
[0050] In this embodiment, the split-type cash register device 100 has a first state and a second state. The first state refers to the state where the handheld device 10 is placed on the base 20, and the second state refers to the state where the handheld device 10 leaves the base 20 (i.e., the handheld device 10 is separated from the base 20).
[0051] Specifically, the handheld device 10 and the base 20 determine whether the split cash register device 100 is in the first state or the second state by detecting the contact state of the contacts in their respective contact modules. More preferably, the contacts are press-type contacts, the contact state corresponds to the press state, and the split cash register device is determined to be in the first state or the second state by detecting the press state of the press-type contacts.
[0052] Optionally, the handheld device 10 includes a first speaker 12, which is a low-power speaker. The base 20 includes a second speaker 22, which is a high-power speaker.
[0053] Furthermore, the split cash register device 100 further includes a detection module located at the handheld device 10 and / or the base 20, and the detection module is used to detect the first state and the second state of the split cash register device 100. Thus, the structural space of the handheld device or the base can be effectively utilized, thereby optimizing the overall structure of the split cash register device.
[0054] Figure 2 1 is a schematic diagram showing an example of a switching circuit of a split-type cash register device of the present invention.
[0055] In this embodiment, by Figure 2 The switching circuit shown in the figure uses the detection module to detect the first state and the second state of the split-type cash register device 100 to achieve automatic switching of the audio playback of the handheld device 10 and the base 20.
[0056] Optionally, the detection module is located in the handset 10 or the base 20 , and the switching circuit is disposed in the base 20 .
[0057] As a specific implementation, when in the first state, the audio playing module of the handheld device 10 is turned off, and the audio playing module of the base 20 is turned on.
[0058] Specifically, when it is detected that the split-type cash register device 100 is in the first state, the contacts in the contact module 11 of the handheld device 10 are electrically contacted with the contacts in the contact module 21 of the base 20, so that when the split-type cash register device 100 is in the first state, the handheld device 10 is charged through the power supply contact and is electrically connected to the base 20 through the power supply contact, thereby enabling the base 20 to realize the charging function.
[0059] Furthermore, the detection module generates a detection signal by detecting the contact state of the audio signal contact, and the detection signal is used to control the opening and closing of the audio playback modules of the handheld device 10 and the base 20. When the split-type cash register device 100 is in the first state, the detection signal generated by the detection module is a high level, which controls the audio playback module of the handheld device 10 to be turned off, and at the same time, the detection signal also controls the audio playback module of the base 20 to be turned on.
[0060] Specifically, the handset 10 transmits the audio signal to the base 20, and further controls the audio signal to be output from the audio output circuit of the base 20, that is, the second speaker 22 (i.e. Figure 3 SPK2 in the output, such as payment information, etc. Figure 3 .
[0061] For example, after the handset 10 is placed in the base 20 (corresponding to the first state), an audio signal (ie, a detection signal) corresponding to the base 20 such as "base placement detection" is grounded and is always at a low level.
[0062] For example, when the handset 10 is placed in the base 20, the audio signal (i.e., the detection signal) such as "placement detection" is at a low level. Figure 2 The switching circuit of the first control path (i.e. Figure 2 CTRL1 in the circuit is low level, and the control component 30 (for example, MOS tube 2N7002K) is turned off, and the second control path (i.e. Figure 2 CTRL2 in the figure) is pulled up by the pull-up resistor R3, and the second control path is at a high level. At this time, the second speaker 22 of the base 20 outputs voice.
[0063] It should be noted that the MOS tube is the abbreviation of MOSFET, which is Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) for short.
[0064] In another embodiment, when the split-type cash register device 100 is in the second state, the detection signal is at a low level, the audio playback module of the handheld device 10 remains turned on, and the audio playback module of the base 20 is turned off.
[0065] For example, when the handset 10 is picked up, the audio signal (ie, the detection signal) such as the "base detection signal" is at a high level, and the control component 30 (eg, MOS tube 2N7002K, see Figure 2) is turned on, CTRL2 is pulled low, CTRL1 is at a high level, and the first speaker of the handset 10 outputs voice.
[0066] Therefore, by providing a switching circuit including a control component on the base and using a detection module to detect the first state and the second state of the split-type cash register device, automatic switching of audio playback between the handheld device and the base can be effectively achieved.
[0067] Optionally, the split-type cash register device 100 further includes a voice shutoff function.
[0068] For example, the voice shutoff function is realized by the cooperation of a transistor (such as an NMOS transistor) and a diode.
[0069] Specifically, Figure 4 As shown, when the detection signal is at a low level, the NMOS tube Q2 is turned off, and the first control path (CTRL1) and the second control path (CTRL2) are controlled by detecting whether the handset is placed in the base. When the detection signal is at a high level, the NMOS tube Q2 is turned on, and CTRL1 and CTRL2 are pulled down through diodes D1 and D2. At this time, no matter what state the split-type cash register is in (the first state or the second state), there is no voice output. Therefore, the voice shutoff function is realized through two diodes.
[0070] It should be noted that the above description is only given as an example and should not be construed as a limitation to the present invention.
[0071] Compared with the prior art, the present invention can effectively realize the automatic switching of audio playback of the handset and the base by controlling the closing and opening of the audio playback module of the handset and the closing and opening of the audio playback module of the base.
[0072] Furthermore, by providing a detection module on the handset and / or the base, the structural space of the handset or the base can be effectively utilized, thereby optimizing the overall structure of the split-type cash register device; by providing a switching circuit on the base and including a control component, and using the detection module to detect the first state and the second state of the split-type cash register device, the automatic switching of the audio playback of the handset and the base can be effectively realized; and by the mutual cooperation of the two diodes, the voice shutdown function can be effectively realized.
[0073] It can be seen that the voice of the cash register device of the present invention realizes the automatic switching of two voice playback modes, and can effectively support the rich voice function applications required by digital currency. In addition, by making the base as the default voice playback device, the technical problems of the traditional cash register device having a single base function and wasting base space are solved. Moreover, since the base is directly connected to the power supply, it can support high-power voice playback devices, which is convenient for users to use in various occasions.
[0074] Example 2
[0075] The following describes an apparatus embodiment of the present invention, which can be used to execute a method embodiment of the present invention. The details described in the apparatus embodiment of the present invention should be regarded as supplementary to the above method embodiment; details not disclosed in the apparatus embodiment of the present invention can be implemented with reference to the above method embodiment.
[0076] Reference Figure 1 , Figure 2 and Figure 5 , the audio control method of embodiment 2 of the present invention will be described.
[0077] like Figure 5 As shown, the audio control method of the present invention is used for a split-type cash collection device, and is particularly suitable for the split-type cash collection device of Example 1, wherein the split-type cash collection device 100 includes a handheld device 10 and a base 20 for placing the handheld device 10, the handheld device 10 is used to communicate with a payment device to complete electronic payment, and audio playback modules are provided in both the handheld device and the base.
[0078] The following will refer to Figure 5 The audio control method of the present invention is specifically described. The audio control method comprises the following steps.
[0079] Step S101, detecting whether the split-type cash register device is in a first state or a second state.
[0080] Step S102, according to the detected result, controlling the closing and opening of the audio playing module of the handset and the audio playing module of the base to switch the voice output.
[0081] First, in step S101, it is detected whether the split-type cash register device is in the first state or the second state.
[0082] Specifically, the detection module of the split cash register device is used to detect whether the split cash register device is in a first state or a second state, wherein the first state refers to a state where the handheld device is placed on a base, and the second state refers to a state where the handheld device is away from the base.
[0083] Optionally, the detection module is arranged on a handheld device or a base of the split cash register device, thereby effectively utilizing the structural space of the handheld device or the base, thereby optimizing the overall structure of the split cash register device.
[0084] Furthermore, the handheld device 10 and the base 20 both have a contact module, and the contact state of the contacts in the contact module is detected to determine whether the split cash register device is in the first state or the second state. Specifically, the contact module of the handheld device 10 includes an audio signal contact, and the contact module of the base 20 includes a power supply contact.
[0085] Next, in step S102, according to the detected result, the audio playing module of the handset and the audio playing module of the base are controlled to be turned off and on to switch the voice output.
[0086] Specifically, the pressing state of the pressing contact is detected to determine whether the split cash register device is in the first state or the second state. A detection signal is generated by detecting the contact state of the handset contact (i.e., the audio signal contact) and the base contact (i.e., the power supply contact), and the detection signal is used to control the opening and closing of the audio playback module of the handset and the base.
[0087] As a specific implementation, when it is detected that the split-type cash register device is in the first state, the audio playback module of the handheld device is controlled to be turned off, and the audio playback module of the base is turned on.
[0088] Specifically, when the split-type cash register device is in the first state, the detection signal is at a high level, which controls the audio playback module of the handheld device to be turned off, and at the same time, the detection signal also controls the audio playback module of the base to be turned on.
[0089] Optionally, the base 20 is also provided with a switching circuit (for details, see Figure 2 ), the switching circuit includes a control component, through which the audio playback module of the base 20 is controlled to be turned off or on.
[0090] For example, when the handset 10 is placed in the base 20, the audio signal (i.e., the detection signal) such as "placement detection" is at a low level. Figure 2 The switching circuit of the first control path (i.e. Figure 2 CTRL1 in the circuit is low level, and the control component 30 (for example, MOS tube 2N7002K) is turned off, and the second control path (i.e. Figure 2 CTRL2 in the figure) is pulled up by the pull-up resistor R3, and the second control path is at a high level. At this time, the second speaker 22 of the base 20 outputs voice.
[0091] In another embodiment, when it is detected that the split-type cash register device is in the second state, the audio playback module of the handheld device is controlled to be turned on, and the audio playback module of the base is controlled to be turned off.
[0092] Specifically, when the split-type cash register device is in the second state, the detection signal is at a low level, the audio playback module of the handheld device remains turned on, and the audio playback module of the base remains turned off.
[0093] For example, when the handset 10 is picked up, the audio signal (ie, the detection signal) such as the "base detection signal" is at a high level, and the control component 30 (eg, MOS tube 2N7002K, see Figure 2 ) is turned on, CTRL2 is pulled low, CTRL1 is at a high level, and the first speaker of the handset 10 outputs voice.
[0094] Therefore, by providing a switching circuit including a control component on the base and using a detection module to detect the first state and the second state of the split-type cash register device, automatic switching of audio playback between the handheld device and the base can be effectively achieved.
[0095] Optionally, the split-type cash register device 100 further includes a voice shutoff function.
[0096] For example, the voice shutoff function is realized by the cooperation of a transistor (such as an NMOS transistor) and a diode.
[0097] Specifically, Figure 4 As shown, when the detection signal is at a low level, the NMOS tube Q2 is turned off, and the first control path (CTRL1) and the second control path (CTRL2) are controlled by detecting whether the handset is placed in the base. When the detection signal is at a high level, the NMOS tube Q2 is turned on, and CTRL1 and CTRL2 are pulled down through diodes D1 and D2. At this time, no matter what state the split-type cash register is in (the first state or the second state), there is no voice output. Therefore, the voice shutoff function is realized through two diodes.
[0098] It should be noted that, in Example 2, descriptions of the same parts as in Example 1 are omitted.
[0099] Compared with the prior art, the present invention can effectively realize the automatic switching of audio playback of the handset and the base by controlling the closing and opening of the audio playback module of the handset and the closing and opening of the audio playback module of the base.
[0100] Furthermore, by providing a detection module on the handset and / or the base, the structural space of the handset or the base can be effectively utilized, thereby optimizing the overall structure of the split-type cash register device; by providing a switching circuit on the base and including a control component, and using the detection module to detect the first state and the second state of the split-type cash register device, the automatic switching of the audio playback of the handset and the base can be effectively realized; and by the mutual cooperation of the two diodes, the voice shutdown function can be effectively realized.
[0101] It can be seen that the voice of the cash register device of the present invention realizes the automatic switching of two voice playback modes, and can effectively support the rich voice function applications required by digital currency. In addition, by making the base as the default voice playback device, the technical problems of the traditional cash register device having a single base function and wasting base space are solved. Moreover, since the base is directly connected to the power supply, it can support high-power voice playback devices, which is convenient for users to use in various occasions.
[0102] Example 3
[0103] The following describes a computer device embodiment of the present invention, which can be regarded as a specific physical implementation of the method and device embodiments of the present invention. The details described in the computer device embodiment of the present invention should be regarded as a supplement to the above method or device embodiments; details not disclosed in the computer device embodiment of the present invention can be implemented with reference to the above method or device embodiments.
[0104] Figure 6 is a schematic diagram of the structure of a computer device according to an embodiment of the present invention, the computer device comprises a processor and a memory, the memory is used to store a computer executable program, when the computer program is executed by the processor, the processor executes Figure 5 method.
[0105] like Figure 6 As shown, the computer device is presented in the form of a general computing device. The processor may be one or more and work in coordination. The present invention does not exclude distributed processing, that is, the processor may be dispersed in different physical devices. The computer device of the present invention is not limited to a single entity, but may also be the sum of multiple physical devices.
[0106] The memory stores a computer executable program, usually a machine-readable code, which can be executed by the processor to enable the computer device to perform the method of the present invention, or at least some steps in the method.
[0107] The memory includes a volatile memory, such as a random access memory unit (RAM) and / or a cache memory unit, and may also be a non-volatile memory, such as a read-only memory unit (ROM).
[0108] Optionally, in this embodiment, the computer device further includes an I / O interface, which is used for the computer device to exchange data with external devices. The I / O interface can represent one or more of several types of bus structures, including a storage unit bus or a storage unit controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of a variety of bus structures.
[0109] It should be understood that Figure 5 The computer device shown is only an example of the present invention, and the computer device of the present invention may also include elements or components not shown in the above examples. For example, some computer devices also include display units such as display screens, and some computer devices also include human-computer interaction elements such as buttons, keyboards, etc. As long as the computer device can execute the computer-readable program in the memory to implement the method of the present invention or at least part of the steps of the method, it can be considered as a computer device covered by the present invention.
[0110] Figure 7 Schematic diagram of a computer program product according to an embodiment of the present invention. Figure 7 As shown, a computer executable program is stored in a computer program product, and when the computer executable program is executed, the above method of the present invention is implemented. The computer program product may include a data signal propagated in a baseband or as part of a carrier wave, in which a readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer program product may send, propagate, or transmit a program for use by or in combination with an instruction execution system, device, or device. The program code contained in the computer program product may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the above.
[0111] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0112] Through the above description of the implementation mode, it is easy for those skilled in the art to understand that the present invention can be implemented by hardware capable of executing a specific computer program, such as the system of the present invention, and the electronic processing unit, server, client, mobile phone, control unit, processor, etc. contained in the system. The present invention can also be implemented by computer software that executes the method of the present invention, such as control software executed by a microprocessor, an electronic control unit, a client, a server, etc. However, it should be noted that the computer software that executes the method of the present invention is not limited to being executed by one or a specific hardware entity, and it can also be implemented in a distributed manner by unspecified specific hardware. For computer software, the software product can be stored in a computer-readable storage medium (which can be a CD-ROM, a U disk, a mobile hard disk, etc.), or it can be distributed and stored on the network, as long as it enables the computer device to execute the method according to the present invention.
[0113] The specific embodiments described above further describe the purpose, technical solutions and beneficial effects of the present invention in detail. It should be understood that the present invention is not inherently related to any specific computer, virtual device or computer equipment, and various general devices can also implement the present invention. The above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.
Claims
1. A split-type payment collection device, comprising a handheld device and a base for placing the handheld device, wherein the handheld device is used to communicate with a payment device to complete electronic payment collection, characterized in that: include: The handset and the base both have an audio playback module; The handset has a contact module, and the base also has a contact module at a position corresponding to the contact module of the handset, and the handset and the base are electrically connected through their respective contact modules; A detection module located in the handset and / or the base; A switching circuit is provided on the base; The split-type cash register device has a first state and a second state, the first state refers to a state where the handheld device is placed on the base, and the second state refers to a state where the handheld device is away from the base; a detection module, detecting the contact state of the contacts in the contact modules of the handheld device and the base, judging whether the split-type cash register device is in the first state or the second state according to the contact state, and generating a detection signal by detecting the contact state of the contacts to control the opening and closing of the audio playback module: when in the first state, the detection signal is at a low level, the first control path of the switching circuit is at a low level, the control component of the switching circuit is turned off, and the audio playback module of the handheld device is turned off, and at the same time, the second control path of the switching circuit is at a high level and the audio playback module of the base is turned on; When in the second state, the detection signal is at a high level, the first control path of the switching circuit is at a high level, the control component of the switching circuit is turned on and the audio playback module of the handheld device is turned on, and at the same time, the second control path of the switching circuit is at a low level and the audio playback module of the base is turned off.
2. The device according to claim 1, characterized in that Also includes: When in the first state, the contacts in the contact module of the handset are in electrical contact with the contacts in the contact module of the base.
3. The device according to claim 1, characterized in that The contacts in the contact module also include: A power supply contact is provided so that when the split-type cash register device is in the first state, the handheld device can be charged through the power supply contact.
4. The device according to claim 1, characterized in that The contacts in the contact module also include: The audio signal contact is used so that when the split cash register device is in the first state, the handset transmits an audio signal to the base.
5. The device according to claim 1, characterized in that The contact is a push-type contact, the contact state corresponds to a push state, and the detection module determines whether the split-type cash register device is in the first state or the second state by detecting the push state of the push-type contact.
6. The device according to claim 1, characterized in that The detection signal includes an audio signal for placing in the cradle for detection or for cradle detection.
7. The device according to claim 6, characterized in that Also includes: When in the first state, the second control path of the switching circuit is pulled up by the pull-up resistor and the second control path is at a high level, and the second speaker of the base outputs the voice.
8. The device according to claim 7, characterized in that Also includes: When in the second state, the second control path of the switching circuit is pulled low, the audio playback module of the handset remains turned on while the audio playback module of the base remains turned off, and the first speaker of the handset outputs the voice.
9. An audio control method for a split-type cash collection device, the split-type cash collection device comprising a handset and a base for placing the handset, the handset is used to communicate with a payment device to complete electronic payment, characterized in that: include: An audio playback module is provided in both the handset and the base; The handset has a contact module, and the base also has a contact module at a position corresponding to the contact module of the handset, and the handset and the base are electrically connected through their respective contact modules; A detection module located in the handset and / or the base; A switching circuit is provided on the base; The split-type cash register device has a first state and a second state, the first state refers to a state where the handheld device is placed on the base, and the second state refers to a state where the handheld device is away from the base; The detection module detects the contact state of the contacts in the contact modules of the handheld device and the base, determines whether the split-type cash register device is in the first state or the second state according to the contact state, and generates a detection signal through the contact state to control the opening and closing of the audio playback module: When it is detected that the split-type cash register device is in the first state, the detection signal is at a low level, the first control path of the switching circuit is at a low level, the control component of the switching circuit is turned off and the audio playback module of the handheld device is controlled to be turned off, and at the same time, the second control path of the switching circuit is at a high level and the audio playback module of the base is controlled to be turned on; When it is detected that the split-type cash register device is in the second state, the detection signal is at a high level, the first control path of the switching circuit is at a high level, the control component of the switching circuit is turned on and the audio playback module of the handheld device is controlled to be turned on, and at the same time, the second control path of the switching circuit is at a low level and the audio playback module of the base is turned off.
10. The audio control method for a split-type cash register device according to claim 9, characterized in that: Also includes: When in the first state, the contacts in the contact module of the handset are in electrical contact with the contacts in the contact module of the base.
11. The method according to claim 9, characterized in that Also includes: The contact is a push-type contact, the contact state corresponds to a push state, and the detection module determines whether the split-type cash register device is in the first state or the second state by detecting the push state of the push-type contact.
12. The method according to claim 10, characterized in that The detection signal includes: a base insertion detection or an audio signal of a base detection.
13. The method according to claim 9, characterized in that Also includes: When in the first state, the second control path of the switching circuit is pulled up by the pull-up resistor and the second control path is at a high level, and the second speaker of the base outputs the voice.
14. The method according to claim 13, characterized in that Also includes: When in the second state, the second control path of the switching circuit is pulled low, the audio playback module of the handset remains turned on while the audio playback module of the base remains turned off, and the first speaker of the handset outputs the voice.
15. A computer program product storing a computer executable program, wherein when the computer executable program is executed, the audio control method according to any one of claims 9 to 14 is implemented.
Citation Information
Patent Citations
Standard extension interface of hand-hold equipment
CN101246461A
Hand-held face-scanning payment machine
CN213814878U