Drive circuits, electronic devices and their communication methods
By multiplexing the same I2C address between the driver board and the slave processor in the electronic device, and switching the slave processor's working mode when the driver board is powered on and off, the problem of abnormal communication between the master processor and the driver board is solved, and normal communication and power consumption optimization of the device are realized in different modes.
Patent Information
- Application Number
- CN202280000741.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-13
- Publication Date
- 2026-11-10
- Estimated Expiration
- 2042-04-13
AI Technical Summary
When electronic devices switch from sleep mode to working mode or vice versa, communication abnormalities occur between the main processor and the driver board due to the power-on/off state of the driver board. In particular, in I2C bus communication, the slave device cannot respond to the control commands of the master device, resulting in the device manager's illegal identification and the inability to read data packet enumeration information.
The design adopts a configuration where the driver board and the slave processor share the same I2C address. By having the slave processor enter working mode when the driver board is powered off and enter sleep mode when the driver board is powered on, the master processor can continuously receive response information and achieve normal communication.
The communication anomaly between the main processor and the driver board was resolved, ensuring normal communication when the device switches between different modes, reducing power consumption and improving system stability.
Smart Images

Figure CN117242418B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of display technology, and in particular to a driving circuit, electronic device and communication method thereof. Background Technology
[0002] The Inter-Integrated Circuit (I2C) bus is a bidirectional synchronous serial bus consisting of a system clock line (SCL) and a serial data line (SDA). Due to its advantages such as fewer signal lines, low power consumption, and strong anti-interference capabilities, the I2C bus is widely used in the field of communications.
[0003] Typically, the I2C bus is used to connect a master device and a slave device. The master device controls the flow of information. The master device can search for the required slave device by address; each slave device has a fixed address. If the master device wants to send data to a slave device, it first addresses the slave device, then sends the data, and finally terminates the data transmission. If the master device wants to receive data from a slave device, it first addresses the slave device, then receives the data, and finally terminates the receiving process. Summary of the Invention
[0004] On one hand, a driving circuit is provided. The driving circuit includes a driving board and a slave processor. The driving board is configured to drive a touch panel of an electronic device. The slave processor is coupled to the driving board and is configured to receive a control command including a first address when the driving board is powered down, and to send a first response information in response to the control command; the driving board and the slave processor multiplex the first address.
[0005] In some embodiments, the driving circuit further includes a main processor coupled to both the driving board and the slave processor. The control commands include at least one of a touch-off command or a touch-on command. The touch-off command disables the touch functionality of the electronic device's touch panel, and the touch-on command enables the touch functionality of the electronic device's touch panel. The main processor is configured to send the touch-off command when the electronic device is in sleep mode, or to send the touch-on command when the electronic device is in operating mode.
[0006] In some embodiments, the processor is also configured to enter a sleep mode when the driver board is powered on.
[0007] In some embodiments, the processor is coupled to the driver board via a first port, and the processor is further configured to determine that the driver board is in a power-down state when the signal at the first port is a first signal, and to determine that the driver board is in a power-on state when the signal at the first port is a second signal.
[0008] In some embodiments, the first signal is low and the second signal is high.
[0009] In some embodiments, the first address includes the integrated circuit bus I2C address.
[0010] In some embodiments, the power supply to the driver board is different from the power supply to the processor.
[0011] In another aspect, an electronic device is provided. The electronic device includes a touch panel and a driving circuit as described in any of the above embodiments, wherein the touch panel is coupled to a driving board.
[0012] On the other hand, a communication method for an electronic device is provided, comprising: first, when the electronic device enters a sleep mode, sending a touch-off command to the driver board of the electronic device, the touch-off command being used to disable the touch function of the touch panel of the electronic device; then, controlling the driver board to power down after a first preset time from the start of sending the touch-off command; and before the driver board is powered down, receiving a second response information from the driver board, the second response information being sent by the driver board in response to the aforementioned touch-off command.
[0013] In some embodiments, the first preset time is related to at least one of the image refresh time, driver board command parsing time, or register initialization time.
[0014] In some embodiments, the first preset time is greater than or equal to the sum of the image refresh time, the driver board command parsing time, and the register initialization time.
[0015] In some embodiments, the first preset time is greater than or equal to 20ms.
[0016] In some embodiments, the communication method of the above-mentioned electronic device further includes: first, when the electronic device enters the working mode, controlling the driver board to power on; then, after a second preset time from the start of the driver board powering on, sending a touch-on command to the driver board of the electronic device, the touch-on command being used to turn on the touch function of the touch panel of the electronic device; and then receiving a third response information from the driver board, the third response information being sent by the driver board in response to the touch-on command.
[0017] In some embodiments, the second preset time is related to at least one of the driver board initialization time or the register initialization time.
[0018] In some embodiments, the second preset time is greater than or equal to the sum of the driver board initialization time and the register initialization time.
[0019] In some embodiments, the second preset time is greater than or equal to 100ms.
[0020] In another aspect, a computer-readable storage medium is provided. This computer-readable storage medium stores computer program instructions that, when executed on a computer (e.g., a laptop computer), cause the computer to perform the communication method of the electronic device as described in any of the above embodiments.
[0021] In some embodiments, firstly, in response to an operation to put the computer into hibernation mode, the computer sends a touch-off command to the computer's driver board, which disables the touch functionality of the computer's touch panel. Then, after a first preset time following the sending of the touch-off command, the computer powers down the driver board. Finally, before the driver board powers down, the computer receives a second response message from the driver board, which was sent by the driver board in response to the touch-off command.
[0022] In another aspect, a computer program product is provided. This computer program product includes computer program instructions that, when executed on a computer (e.g., a laptop computer), cause the computer to perform a communication method of the electronic device as described in any of the above embodiments.
[0023] In another aspect, a computer program is provided. When executed on a computer (e.g., a laptop computer), the computer program causes the computer to perform the communication method of the electronic device as described in any of the above embodiments. Attached Figure Description
[0024] To more clearly illustrate the technical solutions in this disclosure, the accompanying drawings used in some embodiments of this disclosure will be briefly described below. Obviously, the drawings described below are only drawings of some embodiments of this disclosure, and those skilled in the art can obtain other drawings based on these drawings. In addition, the drawings described below can be regarded as schematic diagrams and are not intended to limit the actual size of the product, the actual flow of the method, the actual timing of the signals, etc. involved in the embodiments of this disclosure.
[0025] Figure 1 This is a structural diagram of an electronic device according to some embodiments;
[0026] Figure 2 This is a communication timing diagram of an electronic device according to some embodiments;
[0027] Figure 3This is a structural diagram of an electronic device and its driving circuit according to some embodiments;
[0028] Figure 4 A flowchart of a communication method of an electronic device according to some embodiments;
[0029] Figure 5 This is a communication timing diagram of another electronic device according to some embodiments;
[0030] Figure 6 This is a flowchart of another communication method for an electronic device according to some embodiments. Detailed Implementation
[0031] The technical solutions in some embodiments of this disclosure will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this disclosure, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments provided in this disclosure are within the scope of protection of this disclosure.
[0032] Unless the context otherwise requires, throughout the specification and claims, the term "comprise" and its other forms, such as the third-person singular "comprises" and the present participle "comprising," are interpreted as open-ended and encompassing, meaning "including, but not limited to." In the description of the specification, terms such as "one embodiment," "some embodiments," "exemplary embodiments," "example," "specific example," or "some examples," etc., are intended to indicate that a particular feature, structure, material, or characteristic associated with that embodiment or example is included in at least one embodiment or example of this disclosure. The illustrative representations of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics mentioned may be included in any suitable manner in any one or more embodiments or examples.
[0033] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this disclosure, unless otherwise stated, "a plurality of" means two or more.
[0034] In describing some embodiments, the terms "coupled" and "connected," and their derivative expressions, may be used. For example, the term "connected" may be used in describing some embodiments to indicate that two or more components have direct physical or electrical contact with each other. Similarly, the term "coupled" may be used in describing some embodiments to indicate that two or more components have direct physical or electrical contact. However, the terms "coupled" or "communicatively coupled" may also refer to two or more components that do not have direct contact with each other but still cooperate or interact with each other. The embodiments disclosed herein are not necessarily limited to the content of this document.
[0035] "At least one of A, B and C" has the same meaning as "at least one of A, B or C", both including the following combinations of A, B and C: only A, only B, only C, combinations of A and B, combinations of A and C, combinations of B and C, and combinations of A, B and C.
[0036] The use of “applies to” or “configured to” in this article implies an open and inclusive language that does not preclude applicability to or configuration to devices that perform additional tasks or steps.
[0037] In addition, the use of “based on” implies openness and inclusivity, because processes, steps, calculations or other actions “based on” one or more of the stated conditions or values may in practice be based on additional conditions or values beyond those stated.
[0038] This document describes exemplary embodiments with reference to cross-sectional views and / or plan views, which are idealized exemplary drawings. In the drawings, the thickness of layers and regions is enlarged for clarity. Therefore, variations in shape relative to the drawings are contemplated due to, for example, manufacturing techniques and / or tolerances. Thus, exemplary embodiments should not be construed as limited to the shapes of the regions shown herein, but rather include shape deviations due to, for example, manufacturing processes. For example, etched regions shown as rectangular would typically have curved features. Therefore, the regions shown in the drawings are schematic in nature, and their shapes are not intended to show the actual shapes of the regions of the device, nor are they intended to limit the scope of the exemplary embodiments.
[0039] Typically, master and slave devices in electronic devices can be connected via an I2C bus. For example... Figure 1 As shown, the electronic device 10 includes a main processor 11, a touch panel (TP) 12, and a driver board 13. The main processor 11 is coupled to the touch panel 12 through the driver board 13.
[0040] In some embodiments, the driver board 13 is used to drive the display and touch functions of the touch panel 12. The driver board 13 can be powered by a first power supply Vin. When the first power supply Vin is powered on, the driver board 13 is in a powered-on state and can drive the display and touch functions of the touch panel 12. When the first power supply Vin is powered off, the driver board 13 is in a powered-off state, and the display function of the touch panel 12 is turned off.
[0041] In some embodiments, the master device in the electronic device may include a master processor 11 (e.g., a central processing unit (CPU)), and the slave device in the electronic device may include a driver board 13. The master processor 11 and the driver board 13 are connected via an I2C bus. For example, the master processor 11 and the driver board 13 are connected via an I2C bus consisting of a system clock line SCL and a serial data line SDA. It is understood that there may be multiple slave devices in the electronic device, that is, the slave devices in the electronic device may also include other devices besides the driver board 13. This disclosure does not limit the number and type of master and slave devices in the electronic device.
[0042] The following section uses a laptop computer (NB) as an example to introduce the communication process between the main processor 11 and the driver board 13 in the laptop computer.
[0043] Combination Figure 1 ,like Figure 2 As shown, in stage 1, the laptop's lid is open (lid on), the first power supply Vin is powered on (on), and the driver board 13 is powered on. In stage 2, the laptop lid is closed (lid off), and the laptop enters sleep mode. In stage 3, the main processor 11 controls the first power supply Vin to power off (off). After the first power supply Vin is powered off, the driver board 13 is powered down, and the display function of the touch panel 12 is turned off. The main processor 11 sends a touch-off command to the driver board 13, which is used to disable the touch function of the touch panel 12. Since the first power supply Vin has already been powered off when the main processor 11 sends the touch-off command to the driver board 13, meaning that the driver board 13 cannot work because it is powered off, the driver board 13 cannot respond to the touch-off command sent by the main processor 11 (i.e., the slave device cannot respond), causing the main processor 11 to consider the driver board 13 abnormal because it does not receive a response from the driver board 13.
[0044] Combination Figure 1 ,like Figure 2As shown, in stage 4, the laptop's lid is opened, and the laptop exits sleep mode and enters working mode. The main processor 11 sends a touch-on command to the driver board 13, which is used to enable the touch function of the touch panel 12. In stage 5, the main processor 11 controls the first power supply Vin to power on, and after the first power supply Vin is powered on, the driver board 13 is in a powered-on state. Since the first power supply Vin has not yet been powered on when the main processor 11 sends the touch-on command to the driver board 13 in stage 4, the driver board 13 cannot work at this time because it is not powered on. Therefore, the driver board 13 cannot respond to the touch-on command sent by the main processor 11 (i.e., the slave device cannot respond), causing the main processor 11 to consider the driver board 13 to be abnormal because it does not receive a response from the driver board 13. In other words, after the laptop exits hibernation mode and enters working mode, because the main processor 11 does not receive a response from the driver board 13, the main processor 11 will illegally recognize the driver board 13 in the Device Manager and will not read the data packets and enumeration information generated by the driver board 13, resulting in a failure to communicate normally between the main processor 11 and the driver board 13. The enumeration information generated by the driver board 13 refers to a type of data generated by the driver board 13. Typically, enumeration information is a data type that specifies a range of values.
[0045] Therefore, some embodiments of this disclosure provide a driving circuit. The electronic device can be a mobile phone, tablet computer, desktop computer, laptop computer, handheld computer, notebook computer, ultra-mobile personal computer (UMPC), netbook, as well as cellular phone, personal digital assistant (PDA), augmented reality (AR), virtual reality (VR) device, and other devices including a touch panel. This disclosure does not impose any special limitations on the specific form of the electronic device. The following embodiments use a notebook computer as an example to illustrate the solution provided by this disclosure.
[0046] like Figure 3 As shown, the driving circuit 30 includes a main processor 31, a driving board 32, and a slave processor 33. The main processor 31 is coupled to the driving board 32 and the slave processor 33 respectively. The driving board 32 includes a first port 34, and the driving board 32 is coupled to the slave processor 33 through the first port 34.
[0047] The driver board 32 is configured to drive the touch panel 35 of the electronic device.
[0048] In some embodiments, such as Figure 3As shown, the driver board 32 is used to couple with the touch panel 35 of the electronic device. The driver board 32 can drive the touch function of the touch panel 35, and can also drive the display function of the touch panel 35. The driver board 32 can be powered by a first power supply Vin.
[0049] For example, the driver board 32 includes a touch timing controller (TTCON), which includes a timing controller (TCON) and a microcontroller unit (MCU). The touch timing controller TTCON is configured to drive the touch function of the touch panel 35.
[0050] In some embodiments, the driver board 32 is further configured to process display data, generate a time synchronization (Tysc) signal for defining display signals and touch signals, generate a gate driver on array (GOA) signal waveform and receive and process touch information, generate control signals for the source / read-out IC (SRIC) during the touch phase, and generate control signals for the touch modulation level shift IC (TMLS).
[0051] In some embodiments, the first port 34 is a general-purpose input / output (GPIO) port, and this disclosure does not limit the specific type of the first port 34. When the first power supply Vin is in a power-off state, the signal of the first port 34 is a first signal. When the first power supply Vin is in a power-on state, the signal of the first port 34 is a second signal. This disclosure does not limit the level type of the first signal and the second signal. The following embodiments use a low-level signal for the first signal and a high-level signal for the second signal as examples to illustrate the scheme of this disclosure.
[0052] For example, such as Figure 2 As shown, in stage 3, when the electronic device enters sleep mode, the main processor 31 controls the first power supply Vin to power down. After the first power supply Vin is powered down, the driver board 32 is in a power-off state, and the first port 34 is at a low level. In stage 5, when the electronic device enters working mode, the main processor 31 controls the first power supply Vin to power on. After the first power supply Vin is powered on, the driver board 32 is in a power-on state, and the first port 34 is at a high level.
[0053] In some embodiments, the main processor 31 can be coupled to the driver board 32 and the slave processor 33 respectively via a communication bus. It should be noted that this disclosure does not limit the type of communication bus connecting the main processor 31 to the driver board 32 and the slave processor 33. The following embodiments use I2C as an example for illustrative purposes. For example, as... Figure 3 As shown, the main processor 31 is connected to the driver board 32 and the slave processor 33 via an I2C bus consisting of an SCL and an SDA.
[0054] The main processor 31 is configured to send a control command including a first address. The control command includes at least one of a touch-off command or a touch-on command, wherein the touch-off command is used to disable the touch function of the touch panel 35 of the electronic device, and the touch-on command is used to enable the touch function of the touch panel 35 of the electronic device.
[0055] In some embodiments, the main processor 31 is configured to send a touch-off command including a first address when the electronic device is in sleep mode; or, when the electronic device is in working mode, send a touch-on command including a first address.
[0056] For example, such as Figure 2 As shown, in stage 3, the electronic device is in sleep mode, and the main processor 31 can send a touch-off command including the first address to the slave device. In stage 4, the electronic device is in working mode, and the main processor 31 can send a touch-on command including the first address to the slave device.
[0057] The processor 33 is configured to receive a control command, including a first address, from the main processor 31 when the driver board 32 is powered down, and in response to the control command, send a first response message to the main processor 31.
[0058] The driver board 32 and the slave processor 33 share the first address. This disclosure does not limit the type of the first address; the type of the first address depends on the type of communication bus connecting the master and slave devices. Taking an I2C bus as an example, the first address can be an I2C address. Since the driver board 32 and the slave processor 33 share the same I2C address, from the perspective of the master processor 31, the driver board 32 and the slave processor 33 are the same slave device. Therefore, when the master processor 31 sends a control command including the first address to the slave device, if the driver board 32 is powered down, the slave processor 33, as a slave device of the master processor 31, can respond to the control command and send a first response message to the master processor 31.
[0059] Combination Figure 3 ,like Figure 2As shown, in the second stage, when the laptop enters sleep mode, the main processor 31 controls the first power supply Vin to power down. After the first power supply Vin is powered down, the driver board 32 is in a power-off state, and the display function of the touch panel 35 is turned off. In the third stage, when the main processor 31 sends a touch-off command to the slave device at the first address to disable the touch function of the touch panel 35, although the driver board 32 is in a power-off state, since the driver board 32 and the slave processor 33 share the first address, from the perspective of the main processor 31, the slave processor 33 and the driver board 32 are the same slave device. Therefore, the slave processor 33 can receive the touch-off command sent by the main processor 31 and send a first response message to the main processor 31. In this way, since the main processor 31 can receive the first response message from the slave device (slave processor 33), it will not consider the driver board 32 to be abnormal.
[0060] Combination Figure 3 ,like Figure 2 As shown, in stage 4, when the laptop exits hibernation mode and enters working mode, the main processor 31 sends a touch-on command to the slave device at the first address to enable the touch function of the touch panel 35. In stage 5, the main processor 31 controls the first power supply Vin to power on, and after the first power supply Vin is powered on, the driver board 32 is in a powered-on state. Since the first power supply Vin has not yet been powered on when the main processor 31 sends the touch-on command to the driver board 32 in stage 4, the driver board 32 cannot respond to the touch-on command because it is not powered on. However, since the slave processor 33 and the driver board 32 share the first address, from the perspective of the main processor 31, the slave processor 33 and the driver board 32 are the same slave device. Therefore, the slave processor 33 can receive the touch-on command sent by the main processor 31 and send a first response message to the main processor 31. In this way, since the main processor 31 can receive the first response information from the slave device (slave processor 33), it will not consider the driver board 32 to be abnormal. After the first power supply Vin is powered on, the main processor 31 and the driver board 32 can communicate normally.
[0061] Understandably, since the driver board 32 and the slave processor 33 share the same I2C address, from the perspective of the master processor 31, the driver board 32 and the slave processor 33 are the same slave device. Therefore, when the master processor 31 sends control commands to the slave device, if the driver board 32 is in a power-off state and cannot respond to the control commands sent by the master processor 31, then the slave processor 33 can respond to the control commands sent by the master processor 31. In this way, the problem of the master processor 11 and the driver board 13 being unable to communicate normally due to the driver board 32's inability to respond to the control commands sent by the master processor 31 can be solved.
[0062] In some embodiments, the slave processor 33 is further configured to enter a sleep mode when the driver board 32 is powered on, and to enter a working mode when the driver board 32 is powered off. It is understood that when the driver board 32 is powered on, the master processor 31 and the driver board 32 can communicate normally. The slave processor 33 entering sleep mode helps reduce the power consumption of the electronic device. When the driver board 32 is powered off, the slave processor 33 enters working mode. If the master processor 31 sends a control command, the slave processor 33, as a slave device sharing the same I2C address as the driver board 32, can respond to the control command sent by the master processor 31, ensuring normal communication between the master processor 31 and the slave device.
[0063] In some embodiments, the processor 33 is further configured to determine that the driver board 32 is in a power-down state when the signal at the first port 34 is a first signal, and to determine that the driver board 32 is in a power-on state when the signal at the first port 34 is a second signal.
[0064] For example, such as Figure 2 As shown, in the second stage, when the electronic device enters sleep mode, the main processor 31 controls the first power supply Vin to power down. After the first power supply Vin is powered down, the driver board 32 is in a power-off state, and the first port 34 is at a low level (i.e., the first signal). When the slave processor 33 determines that the driver board 32 is in a power-off state, the slave processor 33 enters the working mode. In the fifth stage, when the electronic device enters the working mode, the main processor 31 controls the first power supply Vin to power on. After the first power supply Vin is powered on, the driver board 32 is in a power-on state, and the first port 34 is at a high level (i.e., the second signal). When the slave processor determines that the driver board 32 is in a power-on state, the slave processor 33 enters sleep mode.
[0065] In some embodiments, the slave processor 33 may be an MCU. This disclosure does not limit the type of slave processor 33.
[0066] It should be noted that the driving circuit provided in this disclosure adds a slave processor 33 that shares the same address as the driver board 32. When the driver board 32 is powered on, the slave processor 33 enters a sleep mode, and the driver board 32 responds to control commands sent by the master processor 31. When the driver board 32 is powered off, the slave processor 33 enters a working mode, and the slave processor 33 responds to control commands sent by the master processor 31. In other words, when the master processor 31 sends a control command, regardless of whether the driver board 32 is powered on, the master processor 31 can receive response information from the slave device (driver board 32 or slave processor 33) to ensure normal communication between the master processor 31 and the driver board 32.
[0067] In some embodiments, such as Figure 3As shown, the power supply for the driver board 32 is the first power supply Vin, and the power supply for the slave processor 33 is the second power supply Vtsp. The first power supply Vin and the second power supply Vtsp are different. It can be understood that the difference between the first power supply Vin and the second power supply Vtsp means that the switching circuits controlling the power-on and power-off of the first power supply Vin and the second power supply Vtsp are different. This allows the first power supply Vin and the second power supply Vtsp to be powered on and off separately, ensuring that when the driver board 32 is powered off, the slave processor 33 will not be powered off.
[0068] For example, the main processor 31 is coupled to the driver board 32 via a first switching circuit, and the main processor 31 is coupled to the slave processor 33 via a second switching circuit. The main processor 31 can power on or off the first power supply Vin by controlling the on and off states of the first switching circuit, and can power on or off the second power supply Vtsp by controlling the on and off states of the second switching circuit. This allows the first power supply Vin and the second power supply Vtsp to be powered on and off separately.
[0069] Some embodiments of this disclosure provide a communication method for an electronic device, which can be used for... Figure 1 The electronic device 10 shown is combined with Figure 1 ,like Figure 4 As shown, the method includes the following steps:
[0070] Step 401: When the electronic device 10 enters sleep mode, the main processor 11 sends a touch-off command to the driver board 13 of the electronic device. The touch-off command is used to turn off the touch function of the touch panel 12 of the electronic device.
[0071] For example, combined Figure 1 ,like Figure 5 As shown, taking a laptop computer as an example, in the first stage, the laptop's cover is open (lid on), the first power supply Vin is powered on (on), and the driver board 13 is powered on. In the second stage, the main processor 11 sends a touch-off command to the driver board 13 to disable the touch function of the touch panel 12 of the electronic device.
[0072] Step 402: After the first preset time T1 since the touch-off command is received from the driver board 13, the main processor 11 controls the driver board 13 to power down.
[0073] Combination Figure 1 ,like Figure 5As shown, in the second stage, the main processor 11 only controls the driver board 13 to power down after the driver board 13 receives the touch-off command for a first preset time T1. Therefore, when the main processor 11 sends the touch-off command to the driver board 13, the first power supply Vin has not yet been de-energized, meaning the driver board 13 has not yet been powered down, and thus the driver board 13 can respond to the touch-off command. In other words, when the electronic device 10 enters sleep mode, by delaying the power-off time of the first power supply Vin, it can be ensured that the driver board 13 has sufficient time to respond to the touch-off command sent by the main processor 11.
[0074] In some embodiments, the first preset time T1 is related to at least one of the image refresh time, the driver board command parsing time, or the register initialization time. The image refresh time refers to the refresh time of one frame of an image when the touch panel displays an image; for example, the image refresh time is 16.6 ms.
[0075] In some embodiments, the first preset time T1 is greater than or equal to the sum of the image refresh time, the driver board command parsing time, and the register initialization time. It is understood that the first preset time T1 can be set according to the image refresh time, the driver board command parsing time, and the register initialization time, thereby ensuring that the driver board 13 sends a response message to the main processor 11 within the first preset time T1 before the main processor 11 controls the first power supply Vin to power down. That is, the first preset time T1 ensures that the driver board 13 has sufficient time to respond to the touch-off command sent by the main processor 11.
[0076] For example, the first preset time T1 is greater than or equal to 20ms. This disclosure does not limit the specific value of the first preset time.
[0077] Step 403: Before the driver board 13 is powered off, the main processor 11 receives a second response message from the driver board 13, which is sent by the driver board 13 in response to the touch-off command.
[0078] The communication method of the electronic device disclosed herein allows the main processor 11 to delay the power-off time of the first power supply Vin, thereby delaying the power-off time of the driver board 13, when the electronic device 10 enters sleep mode. This provides sufficient time for the driver board 13 to respond to the touch-off command sent by the main processor 11. Thus, before the driver board 13 is powered off, the main processor 11 can receive the second response information from the driver board 13, preventing the main processor 11 from perceiving the driver board 13 as malfunctioning and ensuring normal communication between the main processor 11 and the driver board 13.
[0079] In some embodiments, such as Figure 6 As shown, the communication method of the electronic device further includes the following steps:
[0080] Step 601: When the electronic device 10 enters the working mode, the main processor 11 controls the driver board 13 to power on.
[0081] For example, combined Figure 1 ,like Figure 5 As shown, taking a laptop computer as an example, in stage 3, the laptop's lid is closed (lid off), and when the laptop enters hibernation mode, the first power supply Vin is in an off state. In stage 4, the laptop's lid is opened (lid on), and when the laptop exits hibernation mode and enters working mode, the main processor 11 controls the first power supply Vin to power on, and the first power supply Vin is in an on state, and the driver board 13 is powered on.
[0082] Step 602: After a second preset time T2 from the power-on start of the driver board 13, the main processor 11 sends a touch-on command to the driver board 13 of the electronic device. The touch-on command is used to enable the touch function of the touch panel 12 of the electronic device.
[0083] Combination Figure 1 ,like Figure 5 As shown, the main processor 11 sends the touch-on command to the driver board 13 of the electronic device to enable the touch function of the touch panel 12 of the electronic device only after the second preset time T2 since the driver board 13 is powered on. Therefore, when the main processor 11 sends the touch-on command to the driver board 13, the first power supply Vin has already been powered on, that is, the driver board 13 has already been powered on, so the driver board 13 can respond to the touch-on command. In other words, when the electronic device 10 enters the working mode, by advancing the power-on time of the first power supply Vin and delaying the sending time of the touch-on command, it can be ensured that when the main processor 11 sends the touch-on command, the driver board 13 can normally receive and respond to the touch-on command sent by the main processor 11.
[0084] In some embodiments, the second preset time T2 is related to at least one of the driver board initialization time and the register initialization time. It is understood that the second preset time T2 can be set according to the driver board initialization time and the register initialization time, so as to ensure that when the main processor 11 sends the touch open command, the driver board 13 has been initialized and can normally receive and respond to the touch open command, and then send the response information to the main processor 11.
[0085] In some embodiments, the second preset time T2 is greater than or equal to the sum of the driver board initialization time and the register initialization time.
[0086] For example, the second preset time is greater than or equal to 100ms.
[0087] Step 603: The main processor 11 receives a third response message from the driver board 13, which is sent by the driver board 13 in response to the touch-open command.
[0088] The communication method of the electronic device disclosed herein allows the main processor 11 to advance the power-on time of the first power supply Vin, i.e., the power-on time of the driver board 13, when the electronic device 10 enters the working mode. This enables the driver board 13 to respond to the touch-open command before the main processor 11 sends the touch-open command. Thus, the main processor 11 can receive the third response information from the driver board 13, and therefore the main processor 11 will not consider the driver board 13 to be abnormal, ensuring normal communication between the main processor 11 and the driver board 13.
[0089] The communication method of the electronic device provided in some embodiments of this disclosure may include the steps 401-403 and 601-603 described above. This disclosure does not limit the execution order of steps 401-403 and 601-603; steps 601-603 may be executed after or before steps 401-403.
[0090] Some embodiments of this disclosure provide a computer-readable storage medium (e.g., a non-transitory computer-readable storage medium) storing computer program instructions that, when executed on a computer (e.g., a laptop computer), cause the computer to perform a communication method of an electronic device as described in any of the embodiments above.
[0091] In some embodiments, firstly, in response to an operation to put the computer into hibernation mode, the computer sends a touch-off command to the computer's driver board, which disables the touch functionality of the computer's touch panel. When the computer is a laptop, putting the computer into hibernation mode can be the user closing the laptop's lid. Then, after a first preset time following the sending of the touch-off command, the computer powers down the driver board. Finally, before the driver board powers down, the computer receives a second response message from the driver board, which was sent by the driver board in response to the touch-off command.
[0092] Exemplary examples show that the aforementioned computer-readable storage media may include, but are not limited to: magnetic storage devices (e.g., hard disks, floppy disks, or magnetic tapes), optical discs (e.g., CDs (compact disks), DVDs (digital versatile disks), etc.), smart cards, and flash memory devices (e.g., EPROMs (erasable programmable read-only memory), cards, sticks, or key drive boards, etc.). The various computer-readable storage media described in this disclosure may represent one or more devices and / or other machine-readable storage media for storing information. The term "machine-readable storage medium" may include, but is not limited to, wireless channels and various other media capable of storing, containing, and / or carrying instructions and / or data.
[0093] Some embodiments of this disclosure also provide a computer program product. This computer program product includes computer program instructions that, when executed on a computer (e.g., an electronic device), cause the computer to perform the communication method of the electronic device as described in the above embodiments.
[0094] Some embodiments of this disclosure also provide a computer program. When executed on a computer (e.g., an electronic device), the computer program causes the computer to perform the communication method of the electronic device as described in the above embodiments.
[0095] The beneficial effects of the computer-readable storage medium, computer program product, and computer program described above are the same as the beneficial effects of the communication method of the electronic device described in some of the above embodiments, and will not be repeated here.
[0096] The above description is merely a specific embodiment of this disclosure, but the scope of protection of this disclosure is not limited thereto. Any variations or substitutions conceived by those skilled in the art within the scope of the technology disclosed in this disclosure should be included within the scope of protection of this disclosure. Therefore, the scope of protection of this disclosure should be determined by the scope of the claims.
Claims
1. A driving circuit, comprising: The driver board is configured to drive the touch panel of the electronic device; The slave processor coupled to the driver board is configured to receive a control command including a first address when the driver board is in a power-down state, and to send a first response information in response to the control command; the driver board and the slave processor reuse the first address; The main processor is coupled to both the driver board and the slave processor. The control commands include at least one of a touch-off command or a touch-on command. The touch-off command is used to disable the touch function of the touch panel of the electronic device, and the touch-on command is used to enable the touch function of the touch panel of the electronic device. The main processor is configured to send the touch-off command when the electronic device is in sleep mode, or to send the touch-on command when the electronic device is in working mode.
2. The driving circuit according to claim 1, wherein, The slave processor is also configured to enter a sleep mode when the driver board is powered on.
3. The driving circuit according to claim 1, wherein, The slave processor is coupled to the driver board through a first port. The slave processor is also configured to determine that the driver board is in a power-down state when the signal at the first port is a first signal, and to determine that the driver board is in a power-on state when the signal at the first port is a second signal.
4. The driving circuit according to claim 3, wherein, The first signal is at a low level, and the second signal is at a high level.
5. The driving circuit according to claim 1, wherein, The first address includes the integrated circuit bus I2C address.
6. The driving circuit according to any one of claims 1-5, wherein, The power supply for the driver board is different from the power supply for the slave processor.
7. An electronic device, comprising: A touch panel and a driving circuit as described in any one of claims 1-6, wherein the touch panel is coupled to the driving board.
8. A communication method for an electronic device, comprising: When the electronic device enters sleep mode, a touch-off command is sent to the driver board of the electronic device. The touch-off command is used to disable the touch function of the touch panel of the electronic device. After a first preset time following the sending of the touch-off command, the driver board is powered down; Before the driver board is powered off, a second response message is received from the driver board, the second response message being sent by the driver board in response to the touch-off command; When the electronic device enters the working mode, the driver board is powered on. After a second preset time following the power-on of the driver board, a touch-on command is sent to the driver board of the electronic device. The touch-on command is used to enable the touch function of the touch panel of the electronic device. Receive a third response message from the driver board, the third response message being sent by the driver board in response to the touch-to-open command.
9. The communication method of the electronic device according to claim 8, wherein, The first preset time is related to at least one of the image refresh time, driver board command parsing time, or register initialization time.
10. The communication method of the electronic device according to claim 9, wherein, The first preset time is greater than or equal to the sum of the image refresh time, the driver board command parsing time, and the register initialization time.
11. The communication method of the electronic device according to claim 8, wherein, The second preset time is related to at least one of the driver board initialization time or the register initialization time.
12. The communication method of the electronic device according to claim 11, wherein, The second preset time is greater than or equal to the sum of the driver board initialization time and the register initialization time.
13. A computer-readable storage medium storing computer program instructions, which, when executed on a computer, cause the computer to send a touch-off command to a driver board in response to an operation to put the computer into a hibernation mode, the touch-off command being used to disable the touch function of the computer's touch panel; and, after a first preset time following the sending of the touch-off command, control the driver board to power down; and, before the driver board is powered down, receive second response information from the driver board, the second response information being sent by the driver board in response to the touch-off command. When computer program instructions are executed on a computer, the computer responds to an operation that puts the computer into a working mode by controlling the power-on of the computer's driver board; after a second preset time from the start of the power-on of the driver board, a touch-on command is sent to the driver board of the electronic device, the touch-on command being used to enable the touch function of the electronic device's touch panel; and a third response message is received from the driver board, the third response message being sent by the driver board in response to the touch-on command.
14. A computer program product comprising computer program instructions that, when executed on a computer, cause the computer to perform the communication method of the electronic device as described in any one of claims 8-12.
Citation Information
Patent Citations
Standby control method and system, terminal equipment and relay equipment
CN110557263A
A power-free sleep mode embedded memory card control system and its embedded memory card.
TWI459289B
