Trigger circuit of terminal equipment, terminal equipment and control method of terminal equipment
By combining the control module with the switch chip, the port status is dynamically adjusted to achieve single-touch fast and secure startup of the terminal device, solving the problem of entering Fastboot mode caused by accidental touch and improving user experience and security.
Patent Information
- Application Number
- CN202510834913.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-20
- Publication Date
- 2025-10-17
AI Technical Summary
Existing terminal devices may accidentally enter Fastboot mode due to problems such as accidental touch during the startup process, affecting the user experience and posing security risks.
By combining the control module with the switch chip, the selected port status is dynamically adjusted, and the connector of the target key position is switched to the first main controller or the second main controller, realizing a single-button trigger fast and safe startup mode.
It simplifies user operations, enhances device security, prevents risks caused by accidental touches or malicious detection, ensures that legal operations trigger special modes, and improves user experience and system security.
Smart Images

Figure CN120803542A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of trigger circuit, in particular to a trigger circuit of terminal equipment, terminal equipment and a control method of terminal equipment. BACKGROUND
[0002] Fast Boot can refer to a fast boot technology in a computer system, aiming to reduce the time required for the system to enter the operating system desktop from the completely powered-off state. This technology is implemented in various ways, including but not limited to optimizing the system self-checking process (POST), loading necessary drivers and services, and using special storage technology to speed up data reading speed, etc.
[0003] In terminal equipment, Fast Boot can achieve fast booting by optimizing hardware circuit and firmware. That is, a dedicated power management integrated circuit (PMIC) can be used to speed up the process of waking up the system from a low-power state, and at the same time, a non-volatile memory (such as flash memory) is used to save key system state or boot data, so as to quickly load into memory and start execution;
[0004] At present, the existing terminal equipment has the problem that when starting to use, it is accidentally triggered by Fastboot due to accidental touch, etc., thereby affecting the user's use experience. SUMMARY
[0005] The trigger circuit of terminal equipment, terminal equipment and control method of terminal equipment provided by the embodiments of the present application can avoid the problem of accidental touch, etc., affecting the user's use of the terminal equipment, thereby improving the user's use experience.
[0006] In a first aspect, the embodiments of the present application provide a trigger circuit of terminal equipment, which comprises:
[0007] A control module connected with the switch chip, configured to receive a level signal and adjust the state of a selection port in the switch chip according to the level signal.
[0008] The switch chip is configured to connect the connector of the target key position in the keyboard with the first master controller or the second master controller according to the state of the selection port, wherein the first master controller is configured to control the target key position to enter a first input mode for device use, and the second master controller is configured to control the target key position to enter a second input mode for fast and safe boot mode.
[0009] In a possible implementation, the control unit comprises:
[0010] An input unit configured to output a level signal according to the system state of the terminal equipment.
[0011] The switching unit is used for receiving the level signal output by the input unit and adjusting the connection between the selection port of the switch chip and the power module or the ground terminal according to the level signal.
[0012] In a possible implementation, when the system state of the terminal device is a normal boot state, the input unit outputs a first level signal, and the first level signal is used for controlling the selection port of the switch chip to be connected to the ground terminal.
[0013] When the system state of the terminal device is a system kernel loading state, the input unit outputs a second level signal, and the second level signal is used for controlling the selection port of the switch chip to be connected to the power module.
[0014] In a possible implementation, the switching unit includes an NMOS tube, the G electrode of the NMOS tube is connected to the input unit, the S electrode of the NMOS tube is connected to the ground terminal, and the D electrode of the NMOS tube is connected to the power module and the selection port of the switch chip respectively.
[0015] In a possible implementation, the trigger circuit further includes a voltage division module, one end of the voltage division module is connected between the control module and the selection port of the switch chip, and the other end of the voltage division module is grounded.
[0016] In a possible implementation, the switch chip includes a first high-speed differential port, a second high-speed differential port and a data port, wherein,
[0017] When the selection port of the switch chip is connected to the power module, the first high-speed differential port and the data port constitute a first path, and the first path is used for connecting the connector of the target key position to the first host.
[0018] When the selection port of the switch chip is connected to the ground terminal, the second high-speed differential port and the data port constitute a second path, and the second path is used for controlling the connector of the target key position to be connected to the second host.
[0019] In a possible implementation, the target key position is any single key in a keyboard.
[0020] In a second aspect, an embodiment of the present application provides a terminal device, including a trigger circuit of the terminal device.
[0021] In a third aspect, an embodiment of the present application provides a control method of a terminal device, applied to the terminal device, and the method includes:
[0022] In response to a start operation of the terminal device by a user, generating a level signal;
[0023] The level signal is sent to a switch chip of a trigger circuit in the terminal device, so that the switch chip connects a connector of a target key position in the keyboard with the first master controller or the second master controller according to the level signal, wherein the first master controller is used to control the target key position to enter a first input mode for device use, and the second master controller is used to control the target key position to enter a second input mode for fast and safe starting mode.
[0024] In response to the operation of the target key position in the keyboard by the user, the terminal device is controlled to perform device use or enter the fast and safe starting mode.
[0025] In a possible implementation, in response to the operation of the target key position in the keyboard by the user, the terminal device is controlled to perform device use or enter the fast and safe starting mode, including:
[0026] In response to the operation of the target key position in the keyboard by the user, the time and / or the number of times that the target key position is operated are obtained.
[0027] When the time and / or the number of times that the target key position is operated meet a preset number condition, the terminal device is controlled to perform device use or enter the fast and safe starting mode.
[0028] In a third aspect, an electronic device is provided, including a memory and a processor.
[0029] The memory stores computer execution instructions.
[0030] The processor executes the computer execution instructions stored in the memory, so that the processor executes the first aspect and / or various possible implementation manners of the first aspect.
[0031] In a fourth aspect, a computer readable storage medium is provided, and the computer readable storage medium stores computer execution instructions. When the computer execution instructions are executed by a processor, the computer execution instructions are used to implement the first aspect and / or various possible implementation manners of the first aspect.
[0032] In a fifth aspect, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the computer program implements the first aspect and / or various possible implementation manners of the first aspect.
[0033] The terminal device trigger circuit, the terminal device, and the terminal device control method provided by the embodiments of the present application are connected with a switch chip through a control module, used for receiving a level signal, adjusting the state of a selection port in the switch chip according to the level signal, and adjusting the connection between the connector of a target key position in a keyboard and the first master controller or the second master controller according to the state of the selection port, so that the target key position in the keyboard can have different use models as needed during use, thereby avoiding the problems of accidental touch and the like, affecting the use of the terminal device by the user, and improving the user experience. BRIEF DESCRIPTION OF DRAWINGS
[0034] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0035] Figure 1 A module schematic diagram of the terminal device trigger circuit provided by the present application is shown in the figure.
[0036] Figure 2 A circuit schematic diagram of the terminal device trigger circuit provided by the present application is shown in the figure.
[0037] Figure 3 A flowchart of the terminal device control method provided by the embodiments of the present application is shown in the figure. Figure 1
[0038] Figure 3a A flowchart of the terminal device control method provided by the embodiments of the present application is shown in the figure. Figure 2
[0039] Figure 4 A structure schematic diagram of the terminal device control device provided by the present application is shown in the figure.
[0040] Figure 5 A structure schematic diagram of the electronic device provided by the present application is shown in the figure.
[0041] The above-described figures have shown the specific embodiments of the present application, which will be described in more detail hereinafter. These figures and textual descriptions are not intended to limit the scope of the concept of the present application by any means, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0042] The exemplary embodiments will be described in detail herein with reference to the attached drawings. In the following description, like reference numerals refer to like elements, unless the context clearly dictates otherwise. The following description of exemplary embodiments is not representative of all possible embodiments consistent with the present application. Instead, they are merely examples of apparatuses and methods consistent with some aspects of the present application as detailed in the appended claims.
[0043] In the prior art, the scheme for implementing the Fast-Boot mode usually relies on a combination of key triggers or entering through software instructions, and such methods have certain limitations in terms of operation convenience and security. On the one hand, the combination of key operations is relatively complex, and the learning cost is high for ordinary users. In daily use, it is easy to accidentally enter the Fastboot mode due to mis-touch (such as restarting or adjusting the volume), causing the device to stay in the boot interface and unable to start normally, affecting user experience and increasing the risk of after-sales maintenance. On the other hand, in financial terminal devices, using physical key methods to realize the Fast-Boot function will weaken the anti-disassembly and anti-tampering ability of the device. Attackers may trigger the Fastboot mode by detecting the key circuit or using unencrypted hardware interfaces, and then flash malicious or unsigned firmware, bypassing the system security mechanism, illegally reading or extracting sensitive transaction data stored in the device, causing serious security risks. Therefore, the traditional Fast-Boot implementation method based on combination of keys or software instructions has been difficult to meet the application requirements in high-security scenarios.
[0044] The trigger circuit of the terminal device provided by the embodiments of the present application can dynamically switch the connector of a specific target key position to the first master controller or the second master controller by adjusting the selection port state of the switch chip according to the received level signal through the control module, thereby solving the operation complexity and security problems caused by relying on the combination of keys or software instructions to enter the Fast-Boot mode in the prior art. At the same time, this method not only simplifies user operations, but also enhances the security of the device through hardware-level isolation and dedicated secure boot paths, preventing unauthorized access and potential attacks. Avoiding the security risks caused by mis-touch or malicious detection, ensuring that only legal operations can trigger the special mode.
[0045] The technical solutions of the present application and how the technical solutions of the present application solve the above technical problems will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of the present application will be described below with reference to the drawings.
[0046] Figure 1 The module schematic diagram of the trigger circuit of the terminal device provided by the present application is as follows: Figure 1As shown, the trigger circuit includes a control module, a switch chip, a first master controller, and a second master controller. The control module is connected to the switch chip. The switch chip is connected to the first master controller, the second master controller, and the connector of the target key position in the keyboard.
[0047] The control module is connected to the switch chip and is configured to receive the level signal and adjust the state of the selection port in the switch chip according to the level signal.
[0048] The switch chip is configured to connect the connector of the target key position in the keyboard to the first master controller or the second master controller according to the state of the selection port. The first master controller is configured to control the target key position to enter a first input mode for device use. The second master controller is configured to control the target key position to enter a second input mode for fast and safe startup mode.
[0049] The control module is the core component in the trigger circuit, responsible for receiving and processing level signals and adjusting the state of the selection port in the switch chip according to these signals. When a user operates the terminal device, the action will generate a corresponding level signal and pass it to the control module. The control module analyzes this signal and decides what state the selection port of the switch chip should be set to in order to achieve the switching between the target key position connector and the first master controller or the second master controller.
[0050] In some embodiments, the control module can be a microcontroller (Microcontroller), an application-specific integrated circuit (ASIC), a programmable logic device (such as CPLD or FPGA), or a specific function module integrated in a larger system-on-chip (SoC). By monitoring the input level signal and making decisions to adjust the selection port state of the switch chip, precise control over different hardware paths can be achieved. For example, when a specific level change is detected, the control module can perform a pre-set logic operation, change its output to switch the state of the switch chip, and make the target key position connect to the appropriate functional unit (such as the first master controller or the second master controller).
[0051] The switch chip can be an integrated circuit for signal routing and switching, which changes the state of internal channels according to the instructions from the control module, thereby determining where to direct specific signals. The switch chip can adjust the state of its selection port according to the level signal of the control module, thereby realizing the switching between the target key connector and the first master or the second master. For example, when a regular input operation needs to be performed, the switch chip will establish a connection between the target key and the first master under the instruction of the control module; when the fast security startup mode needs to be entered, the switch chip will switch the path to connect the target key to the second master. In this way, the switch chip plays a key intermediary role, ensuring that signals can be accurately transmitted to the designated destination, supporting flexible conversion between different working modes of the device.
[0052] The selection port in the switch chip can refer to an input pin for controlling the switching of internal signal channels, which can adjust the voltage of the selection port according to the level signal from the control module, thereby changing the state of the selection port. Thus, according to the state of the selection port, the connector of the target key in the keyboard is connected to the first master or the second master.
[0053] The state of the selection port can refer to the current voltage level of the pin. This state can affect the conduction path of the multiplexer or switch inside the switch chip. For example, when the selection port is at a low level, one signal path can be selected; when it is at a high level, another path is switched to.
[0054] The connector of the target key can refer to the electrical interface or connection point corresponding to a specific key on the physical keyboard or input device in the keyboard, which is responsible for converting the action of the key (i.e. pressing or releasing) into an electrical signal and transmitting it to the corresponding processing unit through the circuit.
[0055] In the embodiments of the present application, the target key is any single key in the keyboard.
[0056] The first master can refer to the first master, which is the main controller responsible for processing user input and system functions when the device is running normally. It can be a functional module in the main application processor, microcontroller (MCU), or system-on-chip (SoC). In the trigger circuit, when the switch chip connects the connector of the target key to the first master according to the instructions of the control module, the master will take over the key signal and use it for regular operation scenarios, such as triggering ordinary input, executing user commands, or performing data interaction. At this time, the target key is in the "first input mode", i.e. the normal use mode of the device, and all input behaviors are processed by the first master according to the standard process, ensuring that the user can successfully complete the intended operation without mistakenly entering a special system mode (such as Fastboot).
[0057] The second master can refer to a control unit in the device that is specifically used to handle certain system-level functions, which can be a dedicated processor or coprocessor with secure boot capability, such as a chip responsible for device boot, firmware verification, and security mode control (such as a baseband processor, a secure element, or a CPU core with Trust Zone function). In the trigger circuit, when the switch chip switches the connector of the target key position to the second master according to the instruction of the control module, the master recognizes the key event and interprets it as a trigger signal to enter the "fast-boot mode" (or similar security recovery mode). At this time, the target key position is in the "second input mode", and its input behavior is no longer processed as a normal user operation, but is directly used to activate the underlying boot process of the system to ensure that the device can perform firmware updates or security verification in a controlled environment. Therefore, by isolating the path at the hardware level, the system security is improved, preventing illegal access while ensuring the reliability and controllability of the fast-boot process.
[0058] Figure 2 The circuit schematic diagram of the trigger circuit of the terminal device provided in the present application is shown in Figure 2 The trigger circuit includes a power module, a control module, a voltage division module, and a switch chip. The control module includes an input unit and a switching unit, and the switching unit includes an NMOS tube. The output end of the input unit is connected to the G pole of the NMOS tube, the S pole of the NMOS tube is connected to the ground end, and the D pole of the NMOS tube is connected to the power module and the selection port of the switch chip, respectively.
[0059] The input unit can refer to the interface part of the control module for receiving external signals or control levels, which is the key entrance for the system to electrically connect and signal interact with the external environment. In some embodiments, the input unit can refer to a hardware interface in the control module for detecting the state of the GPIO_nFASTBOOT_EN signal, which can be a general input / output pin (GPIO), a comparator input end, or a signal acquisition circuit with specific functions. The input unit is responsible for converting the high and low levels of the external incoming signals into logic signals (such as "1" or "0") that can be recognized by the control system, thereby determining the state of the selection port of the switch chip and the routing direction of the target key position signal. Through the input unit, the control module can determine whether to enter the fast-boot mode based on the hardware level in the early stage of system startup.
[0060] The input end of the input unit can receive a level signal output by the drive of the system in the terminal device, which can be generated according to the state of the user operating the terminal device. The output end of the input unit is connected to the switching unit and inputs the level signal to the switching unit.
[0061] In the embodiment of the present application, the input unit can be a GPIO_nFASTBOOT_EN pin, which is connected to the G electrode of the NMOS transistor in the switching unit through a first resistor.
[0062] Since the S electrode of the NMOS transistor is connected to the ground terminal, and the D electrode of the NMOS transistor is connected to the selection port in the power supply module and the switch chip respectively, the NMOS transistor can adjust the connection between the selection port in the switch chip and the power supply module or the ground terminal according to the level signal input by the input unit, that is, the NMOS transistor can adjust the state of the selection port in the switch chip according to the level signal output by the input unit based on the system state of the terminal device.
[0063] The level signal can include a high level signal (first level signal) and a low level signal (second level signal), and the high level signal and the low level signal can be determined according to the threshold voltage of the G electrode of the NMOS transistor, the high level signal being higher than the threshold voltage and the low level signal being lower than the threshold voltage.
[0064] When the terminal device is normally started, the input unit outputs a high level signal, and when the kernel is loaded before the input unit is controlled by the driver, the input unit outputs a low level signal.
[0065] In the embodiment of the present application, when the system state of the terminal device is a normal start state, the input unit outputs a first level signal, and when the system state of the terminal device is a system kernel loading state, the input unit outputs a second level signal.
[0066] In the embodiment of the present application, the power supply module can be connected between the D electrode of the NMOS transistor and the selection port in the switch chip through a SYS_VDD5V pin and a second resistor.
[0067] When the selection port in the switch chip is connected to the power supply module, in order to avoid the voltage in the power supply module being higher than the voltage of the selection port in the switch chip, a voltage dividing module is arranged in the trigger circuit, one end of the voltage dividing module is connected between the control module and the selection port in the switch chip, and the other end of the voltage dividing module is grounded. Thus, the selection port in the switch chip can be protected.
[0068] In the embodiment of the present application, the voltage dividing module includes a third resistor, one end of the third resistor is connected between the control module and the selection port in the switch chip, and the other end of the third resistor is grounded.
[0069] The switch chip can include a selection port (SEL pin), an HSD1+ pin, an HSD1- pin, an HSD2+ pin, an HSD2- pin, a D+ pin and a D- pin, wherein the HSD1+ pin and the D+ pin are connected with the SEC_KEY_C0, the HSD1- pin and the D- pin are connected with the SEC_KEY_R3, the HSD2+ pin is connected with the KEY_DOWN, and the HSD2- pin is grounded.
[0070] The SEC_KEY_C0 can represent the 0th column (Column 0) in the keyboard matrix. Each column represents a set of keys, all of which share the same column line.
[0071] The SEC_KEY_R3 can represent the 3rd row (Row 3) in the keyboard matrix. Each row also represents a set of keys, all of which share the same row line.
[0072] The SEC_KEY_C0 and the SEC_KEY_R3 can represent the position of the target key in the keyboard. When a key is pressed, it will short the circuit between the row and the column where the key is located. That is, if a key is located at the intersection of C0 and R3, pressing the key will cause the SEC_KEY_C0 and the SEC_KEY_R3 to be shorted together, thereby generating an electrical signal.
[0073] It should be noted that C0 and R3 in the embodiments of the present application can represent a key position on the keyboard. In actual cases, the key position can also be C1 and R1, or other identifiers.
[0074] The HSD1+ pin and the HSD1- pin can constitute a first high-speed differential port of the switch chip, the HSD2+ pin and the HSD2- pin can constitute a second high-speed differential port of the switch chip, and the D+ pin and the D- pin can constitute a data port of the switch chip.
[0075] The state of the selection port in the switch chip can be divided into two states according to the connection object. When the selection port in the switch chip is connected with the power module, the logic level of the selection port in the switch chip can be identified as high. When the selection port in the switch chip is connected with the ground terminal, the logic level of the selection port in the switch chip can be identified as low.
[0076] When the logic level of the selection port in the switch chip can be identified as low, the first high-speed differential port and the data port constitute a first path, and the first path is used to control the connector of the target key position to be connected with the first host.
[0077] When the logic level of the selection port in the switch chip can be identified as high, the second high-speed differential port and the data port form a second path, and the second path is used to connect the connector of the target key position with the second host.
[0078] In the application embodiment, the switch chip can be an analog switch. The analog switch can refer to an electronic component used for selecting or switching between multiple signal paths.
[0079] The trigger circuit of the terminal device provided in the application embodiment realizes safe and flexible switching between the Fast-Boot mode and the password keyboard mode through the combination of the encryption single key and the analog switch. Therefore, not only the security of the system is enhanced, but also the operation process is simplified, so that the user can seamlessly switch between different modes, while ensuring the accuracy and reliability of signal transmission.
[0080] The application embodiment provides a terminal device, which includes the trigger circuit of the terminal device in the application embodiment.
[0081] The terminal device can include various electronic devices that need to be switched between different operation modes to meet specific functional requirements, such as financial POS terminals, self-service terminals (such as automatic ticket vending machines, ATMs), security access control systems, industrial control panels, and high-end intelligent devices, etc. The financial POS terminal can be switched between ordinary transaction processing and the secure firmware update mode (Fast-Boot mode) to ensure the security of data transmission and the stability of the system; the self-service terminal can be flexibly converted between the user interaction mode and the system maintenance mode for regular maintenance or emergency repair. These devices realize safe and efficient mode switching through the integration of the trigger circuit and the use of the encryption single key and the analog switch, ensuring the safety and convenience of operation.
[0082] Figure 3 The flowchart of the control method of the terminal device provided in the application embodiment Figure 1As shown in Figure 3 The execution subject of the control mode can be a control system, and the control method includes:
[0083] S301, in response to a user's start operation on a terminal device, generating a level signal;
[0084] S302, sending the level signal to a switch chip of a trigger circuit in the terminal device, so that the switch chip connects the connector of the target key position in the keyboard to the first master controller or the second master controller according to the level signal, wherein the first master controller is used to control the target key position to enter a first input mode for device use, and the second master controller is used to control the target key position to enter a second input mode to enter a fast and safe start mode;
[0085] S303, in response to the user's operation on the target key position in the keyboard, controlling the terminal device to use the device or enter the fast and safe start mode.
[0086] When the user performs a start operation (such as pressing a power button or a specific function key), the internal circuit of the terminal device detects this action and generates a corresponding level signal. The level signal can reflect the start intention and serve as the basis input for the subsequent control process.
[0087] The generated level signal is transmitted to a switch chip in the trigger circuit, which determines how to switch the internal channel according to the state of the received level signal. If the level signal indicates a high level, the switch chip will select to connect the connector of the target key position to the first master controller, thereby entering the normal use mode; if the level signal is a low level, the switch chip will select to connect the target key position to the second master controller, thereby preparing to enter the fast and safe start mode.
[0088] The implementation principle and technical effect of the switch chip scheme provided in the present application are similar to those of the switch chip in the trigger circuit of the terminal device, and will not be described here.
[0089] After the level signal is processed and the connection path of the target key position is determined, the system waits for the user to further operate the target key position (such as pressing a specific function key). Once the user presses the key, the system will receive and process this key event according to the currently established connection path by the first master controller or the second master controller. If the first master controller is connected, the device will run according to the normal operation process; if the second master controller is connected, the fast and safe start process will be triggered to guide the device to enter the maintenance or emergency repair mode.
[0090] In the embodiment of the present application, in response to the user's operation on the target key position in the keyboard, the terminal device is controlled to use the device or enter the fast and safe start mode, including:
[0091] In response to the user's operation on the target key in the keyboard, the time and / or number of times that the target key is operated are obtained;
[0092] When the time and / or number of times that the target key is operated meet the preset number of times condition, the terminal device is controlled to enter a fast and safe starting mode.
[0093] In response to the user's operation on the target key in the keyboard, the system not only detects the key event itself, but also obtains the time and / or number of times that the target key is operated. For example, when the user presses a specific target key, the system records the operation time length and / or the number of times of pressing.
[0094] If the time and / or number of times of operation meet the preset condition (for example, the key is pressed for more than 3 seconds or is pressed 5 times in succession), the system will judge and control the terminal device to enter a corresponding mode according to the condition: if the condition of regular operation is met, the device continues normal device use; if the condition of fast and safe starting is met, the device enters the fast and safe starting mode.
[0095] The control method of the terminal device provided in the application simplifies the traditional Fast-Boot mode entry mode relying on a combination of keys, and can be triggered by a single key, which not only optimizes the platform hardware resource configuration, but also improves the convenience of operation in bank back-end and gas station scenarios. For financial terminals, the existing financial encryption key is reused as the Fast-Boot trigger key, which not only reduces the cost of additional keys, but also effectively improves the security of the device in terms of anti-disassembly and anti-probing, and provides a hardware-level security starting guarantee mechanism.
[0096] Meanwhile, the application introduces software recognition logic for long pressing and double clicking, further reduces the risk of false triggering, enhances the flexibility and response speed of single key operation, and significantly improves the reliability and user experience of the product.
[0097] Figure 3a Flowchart of the control method of the terminal device provided in the embodiment of the application Figure 2 As shown in the figure, Figure 3a First, the Pinpad input device is connected to the switch switching module through the PCB board connection line, and the user can select different operation modes through single key input. When the user selects the password keyboard mode, the system enters the normal starting state and processes transaction input by the financial level MCU, and at the same time has the Tamper anti-disassembly function to ensure security. If the user selects the Fast-Boot mode, the processor detection module and software threshold setting / saving verification are required.
[0098] Next, the processor detection module will determine whether the starting condition is met according to the user's key operation (short press, long press or double click). If not, return to the normal boot interface; if so, continue to detect the starting condition. This process identifies the user's key behavior through software logic, effectively reducing the risk of false triggering and improving the flexibility and response speed of the operation.
[0099] Finally, when the starting condition detection confirms that the preset threshold is met, the system will enter the Fast-Boot mode and complete the fast and safe startup. The whole process not only simplifies the operation mode of the traditional combination key, but also enhances the security and cost-effectiveness of the system by reusing the financial encryption key, which is suitable for various financial terminal devices, such as bank back-end and gas station scenarios.
[0100] Figure 4 The structural diagram of the control device of the terminal device provided in the present application is shown in FIG. 1. Figure 4 As shown in FIG. 1, the control device 40 of the terminal device provided in the present embodiment comprises:
[0101] The response module 401 is configured to generate a level signal in response to the user's starting operation on the terminal device.
[0102] The sending module 402 is configured to send the level signal to the switch chip of the trigger circuit in the terminal device, so that the switch chip connects the connector of the target key position in the keyboard with the first master controller or the second master controller according to the level signal, wherein the first master controller is configured to control the target key position to enter the first input mode for device use, and the second master controller is configured to control the target key position to enter the second input mode for the fast and safe startup mode.
[0103] The control module 403 is configured to control the terminal device to perform device use or enter the fast and safe startup mode in response to the user's operation on the target key position in the keyboard.
[0104] In a possible implementation, the control module 403 can be specifically configured to:
[0105] In response to the user's operation on the target key position in the keyboard, the time and / or the number of times that the target key position is operated are obtained.
[0106] When the time and / or the number of times that the target key position is operated meet the preset number of times condition, the terminal device is controlled to perform device use or enter the fast and safe startup mode.
[0107] The control device of the terminal device provided in the present embodiment can execute the method provided in the method embodiment, and the implementation principle and technical effects are similar, which will not be described here.
[0108] Figure 5 The structural diagram of the electronic device provided in the present application is shown in FIG. 1.Figure 5 As shown, the electronic device 50 provided by the embodiment includes at least one processor 501 and a memory 502. Optionally, the device 50 further includes a communication component 503. The processor 501, the memory 502 and the communication component 503 are connected through a bus 504.
[0109] In the implementation process, the at least one processor 501 executes the computer execution instructions stored in the memory 502, so that the at least one processor 501 executes the above-mentioned method.
[0110] The specific implementation process of the processor 501 can refer to the method embodiments described above, which have similar implementation principles and technical effects, and will not be described here in detail.
[0111] In the above-mentioned embodiments, it should be understood that the processor can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC) and the like. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in the application can be directly embodied as the execution of the hardware processor, or the execution of the combination of the hardware and software modules in the processor.
[0112] The memory can include a random access memory (RAM), and can also include a non-volatile memory (NVM), such as at least one disk memory.
[0113] The bus can be an industry standard architecture (ISA) bus, a peripheral component (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, the bus in the drawings of the present application does not limit to only one bus or one type of bus.
[0114] The present application also provides a computer program product, including a computer program, which is executed by the processor to realize the above-mentioned method.
[0115] The application further provides a computer readable storage medium, wherein computer execution instructions are stored in the computer readable storage medium, and when a processor executes the computer execution instructions, the method described above is realized.
[0116] The readable storage medium described above can be realized by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.
[0117] An exemplary readable storage medium is coupled to the processor, so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be an integral part of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in the device.
[0118] The division of units is only a logical function division, and when actually implemented, there can be another division mode, for example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the coupling or direct coupling or communication connection between the units shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0119] The units described as separate components can or can not be physically separated, and the components shown as units can or can not be physical units, that is, they can be located in one place, or they can be distributed on a plurality of network units. According to actual needs, some or all of the units can be selected to achieve the purpose of the embodiment.
[0120] In addition, the functional units in each embodiment of the application can be integrated in one processing unit, or each unit can be physically present separately, or two or more units can be integrated in one unit.
[0121] If the functions are implemented in the form of software function units and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application or the parts of the technical solutions that essentially contribute to the prior art can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the embodiments of the method of the present application. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.
[0122] It can be understood by those skilled in the art that all or part of the steps of the above-mentioned method embodiments can be completed by program instruction related hardware. The aforementioned program can be stored in a computer readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk, and various media that can store program codes.
[0123] Finally, it should be noted that: those skilled in the art will easily think of other embodiments of the present application after considering the specification and practicing the application disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application that follow the general principles of the present application and include common knowledge or conventional technical means in the art that are not disclosed in the present application, and is not limited to the precise structure described above and shown in the drawings, and various modifications and changes can be made without departing from the scope thereof. The scope of the present application is only limited by the appended claims.
Claims
1. A trigger circuit of a terminal device, characterized in that: The trigger circuit comprises: A control module connected to the switch chip, configured to receive a level signal and adjust a state of a selected port in the switch chip according to the level signal; The switch chip is used to connect the connector of the target key position in the keyboard to the first main controller or the second main controller according to the state of the selection port, wherein the first main controller is used to control the target key position to enter the first input mode for device use, and the second main controller is used to control the target key position to enter the second input mode to enter the fast and secure startup mode.
2. The circuit according to claim 1, wherein: The control unit comprises: An input unit, configured to output a level signal according to a system status of the terminal device; The switching unit is used to receive the level signal output by the input unit and adjust the selection port of the switch chip to be connected with the power module or the ground terminal according to the level signal.
3. The circuit according to claim 2, characterized in that When the system state of the terminal device is a normal boot state, the input unit outputs a first level signal, and the first level signal is used to control the selection port of the switch chip to be connected to the ground terminal; When the system state of the terminal device is a system kernel loading state, the input unit outputs a second level signal, and the second level signal is used to control the selection port of the switch chip to be connected to the power module.
4. The circuit according to claim 2, characterized in that The switching unit includes an NMOS tube, the G pole of the NMOS tube is connected to the input unit, the S pole of the NMOS tube is connected to the ground end, and the D pole of the NMOS tube is respectively connected to the power module and the selection port in the switch chip.
5. The circuit according to claim 1, wherein: The trigger circuit further includes a voltage divider module, one end of which is connected between the control module and the selection port of the switch chip, and the other end of which is grounded.
6. The circuit according to claim 1, wherein: The switch chip includes a first high-speed differential port, a second high-speed differential port and a data port, wherein: When the selection port of the switch chip is connected to the ground terminal, the first high-speed differential port and the data port form a first path, and the first path is used to control the connection between the connector of the target key position and the first main controller; When the selection port of the switch chip is connected to the power module, the second high-speed differential port and the data port form a second path, and the second path is used to connect the connector of the target key position with the second main controller.
7. The circuit according to any one of claims 1 to 6, characterized in that The target key position is any single key on the keyboard.
8. A terminal device, characterized in that: A trigger circuit comprising the terminal device according to any one of claims 1 to 7.
9. A method for controlling a terminal device, characterized in that: Applied to the terminal device according to claim 8, the method comprises: generating a level signal in response to a user's start-up operation on the terminal device; Sending the level signal to a switch chip of a trigger circuit in the terminal device, so that the switch chip connects the connector of the target key in the keyboard to the first main controller or the second main controller according to the level signal, wherein the first main controller is used to control the target key to enter a first input mode for device use, and the second main controller is used to control the target key to enter a second input mode for entering a fast and secure startup mode; In response to the user's operation on the target key position in the keyboard, the terminal device is controlled to use the device or enter a fast and safe startup mode.
10. The method according to claim 9, characterized in that The step of controlling the terminal device to use the device or enter a fast and secure startup mode in response to a user operating a target key on the keyboard includes: In response to a user's operation on a target key on the keyboard, obtaining a time and / or a number of times the target key is operated; When the time and / or number of times the target key position is operated meets a preset number condition, the terminal device is controlled to use the device or enter a fast and safe startup mode.
Citation Information
Patent Citations
Flash mode selection method and electronic apparatus
CN105183514A
Computer capable of realizing USB (Universal Serial Bus) keyboard starting
CN107861902A
Single key control device and be equipped with device's mobile terminal
CN208190641U