WO2023197216A1 - 驱动电路、电子设备及其通信方法 - Google Patents

驱动电路、电子设备及其通信方法 Download PDF

Info

Publication number
WO2023197216A1
WO2023197216A1 PCT/CN2022/086675 CN2022086675W WO2023197216A1 WO 2023197216 A1 WO2023197216 A1 WO 2023197216A1 CN 2022086675 W CN2022086675 W CN 2022086675W WO 2023197216 A1 WO2023197216 A1 WO 2023197216A1
Authority
WO
WIPO (PCT)
Prior art keywords
touch
command
board
electronic device
computer
Prior art date
Application number
PCT/CN2022/086675
Other languages
English (en)
French (fr)
Other versions
WO2023197216A9 (zh
Inventor
罗仲丽
党康鹏
左丞
陈宏�
郭雄
王博
李宽
郑耀坤
高明
唐元生
Original Assignee
京东方科技集团股份有限公司
重庆京东方光电科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 京东方科技集团股份有限公司, 重庆京东方光电科技有限公司 filed Critical 京东方科技集团股份有限公司
Priority to CN202280000741.2A priority Critical patent/CN117242418A/zh
Priority to PCT/CN2022/086675 priority patent/WO2023197216A1/zh
Publication of WO2023197216A1 publication Critical patent/WO2023197216A1/zh
Publication of WO2023197216A9 publication Critical patent/WO2023197216A9/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/06Answer-back mechanisms or circuits

Definitions

  • the present disclosure relates to the field of display technology, and in particular, to a driving circuit, an electronic device and a communication method thereof.
  • the integrated circuit bus (inter-integrated circuit, I2C) is a bidirectional synchronous serial bus, consisting of a system clock line (SCL) and a serial data line (SDA).
  • SCL system clock line
  • SDA serial data line
  • the I2C bus is widely used in the communication field due to its advantages of fewer signal lines, low power consumption, and strong anti-interference.
  • the I2C bus is used to connect a master device (master) and a slave device (slave).
  • the master device is a device that 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 the slave device, the master device first addresses the slave device, then sends data to the slave device, and finally the master device terminates the data transfer. If the master device wants to receive data from the slave device, first the master device addresses the slave device, then the master device receives the data from the slave device, and finally the master device terminates the receiving process.
  • a driving circuit includes a driver board and a slave processor.
  • the driver board is configured to drive a touch panel of the electronic device.
  • the slave processor is coupled to the driver board, and the slave device is configured to receive a control command including a first address when the driver board is in a power-off state, and in response to the control command, send first response information; the driver board and the slave processor The device reuses the first address.
  • the driving circuit further includes a main processor, the main processor is coupled to the driving board and the slave processor respectively, and the control command includes at least one of a touch off command or a touch on command.
  • the touch off command is used to turn off the touch function of the touch panel of the electronic device
  • the touch on command is used to turn on the touch function of the touch panel of the electronic device.
  • the main processor is configured to send a touch-off command when the electronic device is in a sleep mode; or to send a touch-on command when the electronic device is in a working mode.
  • the slave processor is further configured to enter a sleep mode when the driver board is in a powered-on state.
  • the slave processor is coupled to the driver board through the first port, and the slave processor is further configured to determine that the driver board is in a power-off state when the signal at the first port is the first signal; When the signal is the second signal, it is determined that the driver board is in the power-on state.
  • the first signal is low level and the second signal is high level.
  • the first address includes an integrated circuit bus I2C address.
  • the power supply to the driver board is different from the power supply to the slave processor.
  • an electronic device in yet another aspect, includes a touch panel and the drive circuit as described in any of the above embodiments, and the touch panel is coupled to the drive board.
  • a communication method for an electronic device including: first, when the electronic device enters a sleep mode, sending a touch-off command to a driver board of the electronic device, and the touch-off command is used to close the touch screen of the electronic device.
  • the touch function of the control panel then, after the first preset time from sending the touch off command, the driver board is controlled to power off; and before the driver board is powered off, the second response information from the driver board is received, The second response information is sent by the driving board in response to the above touch close command.
  • the first preset time is related to at least one of image refresh time, driver board command parsing time, or register initialization time.
  • the first preset time is greater than or equal to the sum of image refresh time, driver board command parsing time, and register initialization time.
  • the first preset time is greater than or equal to 20 ms.
  • the communication method of the above-mentioned electronic device also includes: first, when the electronic device enters the working mode, controlling the driving board to be powered on; then, after a second preset time from the powering on of the driving board, the electronic device is powered on.
  • the drive board sends a touch open command, which is used to open the touch function of the touch panel of the electronic device; and then receives the third response information from the drive board, and the third response information is the drive board's response to the touch open command sent.
  • the second preset time is related to at least one of a driver board initialization time or a register initialization time.
  • the second preset time is greater than or equal to the sum of the driver board initialization time and the register initialization time.
  • the second preset time is greater than or equal to 100 ms.
  • a computer-readable storage medium stores computer program instructions.
  • the computer program instructions When the computer program instructions are run on a computer (for example, a laptop computer), the computer performs the communication method of the electronic device as described in any of the above embodiments.
  • the computer first, in response to the operation of causing the computer to enter the sleep mode, the computer sends a touch-off command to the driver board of the computer.
  • the touch-off command is used to turn off the touch function of the touch panel of the computer.
  • the computer controls the driver board to power off.
  • the computer receives the second response information from the driver board. The second response information is sent by the driver board in response to the above touch close command.
  • a computer program product includes computer program instructions.
  • the computer program instructions When the computer program instructions are executed on a computer (for example, a laptop computer), the computer program instructions cause the computer to perform the communication method of the electronic device as described in any of the above embodiments.
  • a computer program is provided.
  • the computer program When the computer program is executed on a computer (for example, 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.
  • Figure 1 is a structural diagram of an electronic device according to some embodiments.
  • Figure 2 is a communication sequence diagram of an electronic device according to some embodiments.
  • Figure 3 is a structural diagram of an electronic device and its driving circuit according to some embodiments.
  • Figure 4 is a flow chart of a communication method of an electronic device according to some embodiments.
  • Figure 5 is a communication sequence diagram of another electronic device according to some embodiments.
  • Figure 6 is a flowchart of another communication method of an electronic device according to some embodiments.
  • first and second are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the quantity of indicated technical features. Therefore, features defined as “first” and “second” may explicitly or implicitly include one or more of these features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.
  • At least one of A, B and C has the same meaning as “at least one of A, B or C” and includes the following combinations of A, B and C: A only, B only, C only, A and B The combination of A and C, the combination of B and C, and the combination of A, B and C.
  • Example embodiments are described herein with reference to cross-sectional illustrations and/or plan views that are idealized illustrations.
  • the thickness of layers and regions are exaggerated for clarity. Accordingly, variations from the shapes in the drawings due, for example, to manufacturing techniques and/or tolerances are contemplated.
  • example embodiments should not be construed as limited to the shapes of regions illustrated herein but are to include deviations in shapes that result from, for example, manufacturing. For example, an etched area shown as a rectangle will typically have curved features. Accordingly, the regions shown in the figures are schematic in nature and their shapes are not intended to illustrate the actual shapes of regions of the device and are not intended to limit the scope of the exemplary embodiments.
  • the electronic device 10 includes a main processor 11 , a touch panel (TP) 12 and a drive board 13 .
  • the main processor 11 is coupled to the touch panel 12 through the driving board 13 .
  • the driving board 13 is used to drive the display function and the touch function of the touch panel 12, and the driving board 13 can be powered by the first power supply Vin.
  • the driving board 13 When the first power supply Vin is powered on, the driving board 13 is in a powered-on state and can drive the display function and touch function of the touch panel 12 .
  • the driving board 13 When the first power supply Vin is powered off, the driving board 13 is in a power-off state, and the display function of the touch panel 12 is turned off.
  • the master device in the electronic device may include a main processor 11 (for example, a central processing unit (CPU)), and the slave device in the electronic device may include a driver board 13, the main processor 11 and The driver board 13 is connected via the I2C bus.
  • the main processor 11 and the driver board 13 are connected through an I2C bus composed of a system clock line SCL and a serial data line SDA.
  • SCL system clock line
  • SDA serial data line
  • the cover of the notebook computer in the first stage, is in the open state (lid on), the first power supply Vin is in the power-on state, and the drive board 13 is in the power-on state.
  • the laptop cover is closed (lid off) and the laptop enters sleep mode.
  • the main processor 11 controls the first power supply Vin to be powered off. After the first power supply Vin is powered off, the driving board 13 is in a power-off state and the display function of the touch panel 12 is turned off.
  • the main processor 11 sends a touch off command to the driving board 13 , and the touch off command is used to turn off the touch function of the touch panel 12 .
  • the main processor 11 sends the touch close command to the driving board 13, the first power supply Vin has been powered off, which means that the driving board 13 cannot work because it has been powered off. Therefore, the driving board 13 cannot respond to the touch control command sent by the main processor 11.
  • the touch close command (that is, the slave device cannot respond) causes the main processor 11 to think that the driver board 13 is abnormal when it does not receive a response from the driver board 13 .
  • the cover of the laptop is opened (lid on), and the laptop exits the sleep mode and enters the working mode.
  • the main processor 11 sends a touch open command to the driving board 13 , and the touch open command is used to open the touch function of the touch panel 12 .
  • the main processor 11 controls the first power supply Vin to be powered on. After the first power supply Vin is powered on, the driving board 13 is in a powered-on state. Because in the fourth stage, when the main processor 11 sends the touch open command to the driver board 13, the first power source Vin has not yet been powered on. At this time, the driver board 13 cannot work because it has not been powered on, so the driver board 13 cannot respond.
  • the touch open command sent by the main processor 11 causes the main processor 11 to think that the driver board 13 is abnormal when it does not receive a response from the driver board 13 . That is to say, after the notebook computer exits the sleep mode and enters the working mode, since the main processor 11 does not receive a response from the driver board 13, the main processor 11 will illegally identify the driver board 13 in the device manager and will not read it.
  • the data packets and enumeration information generated by the driver board 13 cause normal communication between the main processor 11 and the driver board 13 .
  • the above-mentioned enumeration information generated by the driving board 13 refers to a kind of data generated by the driving board 13. Generally, the enumeration information is a data type that specifies a value range.
  • the electronic device may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, or an ultra-mobile personal computer (UMPC). ), netbooks, and devices including touch panels such as cellular phones, personal digital assistants (personal digital assistants, PDAs), augmented reality (AR), virtual reality (VR) devices, etc., embodiments of the present disclosure are suitable for The specific form of the electronic device is not particularly limited.
  • the following embodiments take the electronic device as a notebook computer as an example to illustrate the solution provided by the embodiments of the present disclosure.
  • 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 , the driving board 32 is coupled to the slave processor 33 through the first port 34 .
  • the driving board 32 is configured to drive the touch panel 35 of the electronic device.
  • the driving board 32 is used to couple with the touch panel 35 of the electronic device.
  • the driving board 32 can drive the touch function of the touch panel 35 , and can also drive the touch function of the touch panel 35 . Display function.
  • the driving board 32 may be powered by the first power source Vin.
  • the driver board 32 includes a touch timing controller (TTCON), which includes a timing controller (TCON) and a microcontroller unit (MCU).
  • TTCON touch timing controller
  • TCON timing controller
  • MCU microcontroller unit
  • the touch timing controller TTCON is configured to drive the touch function of the touch panel 35 .
  • the driving board 32 is further configured to process display data, generate time synchronization signals (Tysc) for defining display signals and touch signals, and generate display array substrate rows.
  • Drive gate driver on array, GOA
  • SRIC source/read-out IC
  • TMLS touch modulation level conversion integrated circuit
  • the first port 34 is a general-purpose input/output (GPIO) port, and the present disclosure is not limited to the specific type of the first port 34 .
  • GPIO general-purpose input/output
  • the signal of the first port 34 is the first signal.
  • the signal of the first port 34 is the second signal.
  • the embodiments of the present disclosure are not limited to the level types of the first signal and the second signal. The following embodiments take the first signal as a low-level signal and the second signal as a high-level signal as an example to illustrate the solutions of the embodiments of the present disclosure. Provide an illustrative explanation.
  • the main processor 31 controls the first power supply Vin to power off. After the first power supply Vin is powered off, the driver board 32 is in a power-off state. The first port 34 is low level.
  • the main processor 31 controls the first power supply Vin to be powered on. After the first power supply Vin is powered on, the driver board 32 is in a powered-on state, and the first port 34 is at a high level.
  • the master processor 31 may be coupled to the driver board 32 and the slave processor 33 respectively through a communication bus. It should be noted that this disclosure is not limited to the type of communication bus connected between the main processor 31 and the drive board 32 and the slave processor 33 .
  • the following embodiments take the communication bus as I2C as an example for illustrative description.
  • the main processor 31 is connected to the driver board 32 and the slave processor 33 respectively through an I2C bus composed of an SCL and an SDA.
  • the main processor 31 is configured to send a control command including the first address.
  • the control command includes at least one of a touch close command or a touch open command.
  • the touch close command is used to close the touch function of the touch panel 35 of the electronic device.
  • the touch open command is used to open the touch function of the electronic device. Touch function of panel 35.
  • the main processor 31 is configured to send a touch close command including the first address when the electronic device is in the sleep mode; or, when the electronic device is in the working mode, send a touch close command including the first address. Control open command.
  • the main processor 31 may send a touch close command including the first address to the slave device.
  • the electronic device is in the working mode, and the main processor 31 can send a touch open command including the first address to the slave device.
  • the slave processor 33 is configured to receive a control command including a first address from the master processor 31 when the drive board 32 is in a power-off state, and in response to the control command, send first response information to the master processor 31 .
  • the driver board 32 and the slave processor 33 multiplex the first address.
  • the present disclosure is not limited to the type of the first address, which is related to the type of communication bus connected between the master device and the slave device.
  • the first address may be an I2C address. Since the driver board 32 and the slave processor 33 reuse the same I2C address, the driver board 32 and the slave processor 33 are the same slave device for the main processor 31 . In this way, when the main processor 31 sends a control command including the first address to the slave device, if the driving board 32 is in a power-off state, the slave processor 33, as a slave device of the main processor 31, can respond to the control command and send the control command to the slave device. The main processor 31 sends the first response information.
  • the main processor 31 controls the first power supply Vin to power off.
  • the driver board 32 is in In the power-off state, the display function of the touch panel 35 is turned off.
  • the main processor 31 sends a touch off command for turning off the touch function of the touch panel 35 to the slave device with the first address, although the driving board 32 is in a power-off state, due to the 32 multiplexes the first address with the slave processor 33.
  • the slave processor 33 and the driver board 32 are the same slave device.
  • the slave processor 33 can receive the touch close command sent by the main processor 31 and send the first response information 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 think that the driver board 32 is abnormal.
  • the main processor 31 in the fourth stage, when the notebook computer exits the sleep mode and enters the working mode, the main processor 31 sends a touch signal for opening the touch panel 35 to the slave device with the first address. The touch open command of the control function.
  • the main processor 31 controls the first power supply Vin to be powered on. After the first power supply Vin is powered on, the driving board 32 is in a powered-on state. Because in the fourth stage, when the main processor 31 sends the touch open command to the driving board 32, the first power source Vin has not yet been powered on, that is, the driving board 32 is not powered on at this time and cannot respond to the touch opening command.
  • the slave processor 33 and the driver board 32 reuse the first address, for the master processor 31, the slave processor 33 and the driver board 32 are the same slave device, so the slave processor 33 can receive the message sent by the master processor 31. Touch to open the command and send first response information 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 think that the driver board 32 is abnormal. After the first power source Vin is powered on, the main processor 31 and the driver board 32 can communicate normally.
  • the driver board 32 and the slave processor 33 reuse the same I2C address, for the main processor 31, the driver board 32 and the slave processor 33 are the same slave device. Therefore, when the main processor 31 sends a control command to the slave device, if the driver board 32 is in a power-off state and cannot respond to the control command sent by the main processor 31, the slave processor 33 can respond to the control command sent by the main processor 31. In this way, the problem that the main processor 11 and the driver board 13 cannot communicate normally due to the inability of the driver board 32 to respond to the control command sent by the main processor 31 can be solved.
  • the slave processor 33 is also configured to enter the sleep mode when the driver board 32 is powered on; and enter the working mode when the driver board 32 is powered off. . It can be understood that when the driver board 32 is in the power-on state, the main processor 31 and the driver board 32 can communicate normally, and the slave processor 33 enters the sleep mode, which helps to reduce the energy consumption of the electronic device. When the driver board 32 is powered off, the slave processor 33 enters the working mode. If the master processor 31 sends a control command, the slave processor 33 can respond to the master processor 31 as a slave device that shares the same I2C address with the driver board 32. The control commands sent ensure normal communication between the main processor 31 and the slave device.
  • the slave processor 33 is further configured to determine that the driving board 32 is in the power-off state when the signal of the first port 34 is the first signal; and determine that the signal of the first port 34 is the second signal.
  • the driving board 32 is in a powered-on state.
  • the main processor 31 controls the first power supply Vin to power off. After the first power supply Vin is powered off, the driver board 32 is in a power-off state.
  • the first port 34 is low level (ie, the first signal).
  • the slave processor 33 determines that the driving board 32 is in a power-off state, the slave processor 33 enters the working mode.
  • the main processor 31 controls the first power source Vin to power on. After the first power source Vin is powered on, the driver board 32 is in the power-on state, and the first port 34 is high level (i.e. second signal), when the slave processor determines that the driving board 32 is in the power-on state, the slave processor 33 enters the sleep mode.
  • the slave processor 33 may be an MCU. This disclosure is not limited to the type of slave processor 33.
  • the driver circuit provided by the present disclosure adds a slave processor 33 that shares the same address with the driver board 32, and when the driver board 32 is in the power-on state, the slave processor 33 enters the sleep mode and is driven by the driver. Board 32 responds to control commands sent by main processor 31. When the driving board 32 is in a power-off state, the slave processor 33 enters the working mode, and the slave processor 33 responds to the control command sent by the master processor 31 .
  • the main processor 31 when the main processor 31 sends a control command, regardless of whether the driving board 32 is in the power-on state, the main processor 31 can receive response information from the slave device (the driving board 32 or the slave processor 33) to ensure that the main processor 31 The communication between the processor 31 and the driver board 32 is normal.
  • the power supply of the driving board 32 is the first power supply Vin
  • the power supply of the slave processor 33 is the second power supply Vtsp.
  • the first power supply Vin and the second power supply Vtsp are different.
  • the difference between the first power supply Vin and the second power supply Vtsp means that the switch circuits used by the main processor 31 to control the power on and off of the first power supply Vin and the second power supply Vtsp are different, so that the first power supply Vin and the second power supply Vtsp can be switched on and off respectively. Power on and off, so that when the driver board 32 is in the power-off state, the slave processor 33 will not power off.
  • the main processor 31 is coupled to the driving board 32 through a first switch circuit, and the main processor 31 is coupled to the slave processor 33 through a second switch circuit.
  • the main processor 31 can power on or off the first power source Vin by controlling the on and off of the first switch circuit, and the main processor 31 can power on or off the second power source by controlling the on and off of the second switch circuit.
  • Vtsp power on or off. Therefore, the first power supply Vin and the second power supply Vtsp can be powered on and off respectively.
  • Some embodiments of the present disclosure provide a communication method for an electronic device.
  • the electronic device may be the electronic device 10 shown in Figure 1.
  • the method includes the following steps:
  • Step 401 When the electronic device 10 enters the 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 close the touch function of the touch panel 12 of the electronic device.
  • Step 402 After receiving the touch-off command from the driving board 13 for the first preset time T1, the main processor 11 controls the driving board 13 to power off.
  • the main processor 11 controls the driver board 13 to power off only after the first preset time T1 since the driver board 13 receives the touch-off command. Therefore, when the main processor 11 sends the touch-off command to the driving board 13, the first power source Vin has not yet been powered off, that is, the driving board 13 has not been powered off, so the driving board 13 can respond to the touch-off command. That is to say, when the electronic device 10 enters the sleep mode, by delaying the power-down time of the first power supply Vin, it can be ensured that the driver board 13 has enough time to respond to the touch close command sent by the main processor 11 .
  • the first preset time T1 is related to at least one of image refresh time, driver board command parsing time, or register initialization time.
  • the image refresh time refers to the refresh time of one frame of image when the touch panel displays an image.
  • the image refresh time is 16.6 ms.
  • the first preset time T1 is greater than or equal to the sum of image refresh time, driver board command parsing time, and register initialization time. It can be understood that the first preset time T1 can be set according to the image refresh time, the drive board command parsing time and the register initialization time, thereby ensuring that the drive board 13 sends the response information to the main processor 11 within the first preset time T1. , the main processor 11 then controls the first power source Vin to power off. That is, the first preset time T1 can ensure that the driving board 13 has enough time to respond to the touch close command sent by the main processor 11 .
  • the first preset time T1 is greater than or equal to 20ms.
  • the present disclosure is not limited to the specific value of the first preset time.
  • Step 403 Before the drive board 13 is powered off, the main processor 11 receives the second response information from the drive board 13. The second response information is sent by the drive board 13 in response to the touch close command.
  • the main processor 11 delays the power-down time of the first power source Vin, thereby delaying the power-down time of the drive board 13 so that the drive board 13 has enough power. time to respond to the touch close command sent by the main processor 11. Therefore, before the driver board 13 is powered off, the main processor 11 can receive the second response information from the driver board 13. Therefore, the main processor 11 will not think that the driver board 13 is abnormal, and can ensure that the communication between the main processor 11 and the driver board 13 is normal. Communication between them is normal.
  • the communication method of the electronic device further includes the following steps:
  • Step 601 When the electronic device 10 enters the working mode, the main processor 11 controls the driver board 13 to power on.
  • the cover of the laptop computer is in a closed state (lid off), and when the laptop computer enters the sleep mode, the first The power supply Vin is in a power-down (off) state.
  • the main processor 11 controls the first power supply Vin to power on, and the first power supply Vin is in the power-on state.
  • the driver board 13 is powered on.
  • Step 602 After the second preset time T2 since the driving board 13 is powered on, the main processor 11 sends a touch open command to the driving board 13 of the electronic device.
  • the touch open command is used to open the touch panel 12 of the electronic device. touch function.
  • the main processor 11 sends a signal for opening the touch panel 12 of the electronic device to the driving board 13 of the electronic device. Touch open command for touch functionality. Therefore, when the main processor 11 sends the touch-on command to the driving board 13, the first power supply Vin has been powered on, that is, the driving board 13 has been powered on, so the driving board 13 can respond to the touch-on command.
  • the electronic device 10 enters the working mode, by advancing the power-on time of the first power source 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 driving board 13 can Normally receive and respond to the touch open command sent by the main processor 11.
  • the second preset time T2 is related to at least one of the driver board initialization time and the register initialization time. It can be understood that the second preset time T2 can be set according to the driver board initialization time and the register initialization time, thereby ensuring 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. Touch to open the command, and then send response information to the main processor 11.
  • the second preset time T2 is greater than or equal to the sum of the driver board initialization time and the register initialization time.
  • the second preset time is greater than or equal to 100ms.
  • Step 603 The main processor 11 receives the third response information from the drive board 13.
  • the third response information is sent by the drive board 13 in response to the touch open command.
  • the main processor 11 advances the power-on time of the first power source Vin, that is, the power-on time of the drive board 13, so that when the main processor 11 sends Before the touch-on command, the driving board 13 can respond to the touch-on command. Therefore, the main processor 11 can receive the third response information from the driving board 13, so the main processor 11 will not think that the driving board 13 is abnormal, and can ensure that the communication between the main processor 11 and the driving board 13 is normal.
  • the communication method of an electronic device may include the above-mentioned steps 401 to 403, and steps 601 to 603. This disclosure does not limit the execution order of steps 401 to 403, and steps 601 to 603. Steps 601 to 603 may be executed after steps 401 to 403, or may be executed before steps 401 to 403.
  • Some embodiments of the present disclosure provide a computer-readable storage medium (eg, a non-transitory computer-readable storage medium) having computer program instructions stored therein, and the computer program instructions are stored in a computer (eg, a laptop).
  • a computer eg, a laptop
  • the computer When running on a computer, the computer is caused to execute the communication method of the electronic device as described in any of the above embodiments.
  • the computer first, in response to the operation of causing the computer to enter the sleep mode, the computer sends a touch-off command to the driver board of the computer.
  • the touch-off command is used to turn off the touch function of the touch panel of the computer.
  • the operation of causing the computer to enter the sleep mode may be an operation of the user closing the cover of the notebook computer.
  • the computer controls the driver board to power off.
  • the computer receives the second response information from the driver board. The second response information is sent by the driver board in response to the above touch close command.
  • the above-mentioned computer-readable storage media may include, but are not limited to: magnetic storage devices (such as hard disks, floppy disks or tapes, etc.), optical disks (such as CD (compact disk, compressed disk), DVD (digital versatile disk), Digital versatile disk), etc.), smart cards and flash memory devices (for example, EPROM (erasable programmable read-only memory, 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.
  • Some embodiments of the present disclosure also provide a computer program product.
  • the computer program product includes computer program instructions.
  • the computer program instructions When the computer program instructions are executed on a computer (for example, an electronic device), the computer program instructions cause the computer to perform the communication method of the electronic device as described in the above embodiments.
  • Some embodiments of the present disclosure also provide a computer program.
  • the computer program When the computer program is executed on a computer (for example, an electronic device), the computer program causes the computer to perform the communication method of the electronic device as described in the above embodiment.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)
  • Communication Control (AREA)

Abstract

一种驱动电路,包括驱动板和从处理器,驱动板被配置为驱动电子设备的触控面板;从处理器与驱动板耦接,从处理器被配置为在驱动板处于下电状态时,接收包括第一地址的控制命令,响应于控制命令,发送第一应答信息;驱动板和从处理器复用第一地址。

Description

驱动电路、电子设备及其通信方法 技术领域
本公开涉及显示技术领域,尤其涉及一种驱动电路、电子设备及其通信方法。
背景技术
集成电路总线(inter-integrated circuit,I2C)是一种双向同步串行总线,由一根系统时钟线(system clock line,SCL)和一根串行数据线(serial data line,SDA)组成。I2C总线由于信号线少、功耗低、抗干扰强等优点被广泛应在通信领域中。
通常,I2C总线用于连接主设备(master)和从设备(slave),该主设备为控制信息流的设备,主设备可以通过地址搜寻所需要的从设备,每一个从设备都有一个固定的地址。如果主设备要向从设备发送数据,主设备首先寻址从设备,然后再向从设备发送数据,最后由主设备终止数据传送。如果主设备要接收来自从设备的数据,首先由主设备寻址从设备,然后主设备接收来自从设备的数据,最后由主设备终止接收过程。
发明内容
一方面,提供一种驱动电路。该驱动电路包括驱动板和从处理器。该驱动板被配置为驱动电子设备的触控面板。从处理器与驱动板耦接,该从设备被配置为在驱动板处于下电状态时,接收包括第一地址的控制命令,响应于该控制命令,发送第一应答信息;驱动板和从处理器复用第一地址。
在一些实施例中,驱动电路还包括主处理器,主处理器分别与驱动板和从处理器耦接,控制命令包括触控关闭命令或触控打开命令中的至少一项。触控关闭命令用于关闭电子设备的触控面板的触控功能,触控打开命令用于打开电子设备的触控面板的触控功能。主处理器被配置为在电子设备处于休眠模式时,发送触控关闭命令;或,在电子设备处于工作模式时,发送触控打开命令。
在一些实施例中,从处理器还被配置为在驱动板处于上电状态时,从处理器进入休眠模式。
在一些实施例中,从处理器通过第一端口耦接至驱动板,从处理器还被配置为在第一端口的信号为第一信号时,确定驱动板处于下电状态;在第一端口的信号为第二信号时,确定驱动板处于上电状态。
在一些实施例中,第一信号为低电平,第二信号为高电平。
在一些实施例中,第一地址包括集成电路总线I2C地址。
在一些实施例中,驱动板的电源与从处理器的电源不同。
再一方面,提供一种电子设备。电子设备包括触控面板,以及如上述任一实施例所述的驱动电路,触控面板与驱动板耦接连接。
另一方面,提供一种电子设备的通信方法,包括:首先,在电子设备进入休眠模式时,向该电子设备的驱动板发送触控关闭命令,该触控关闭命令用于关闭电子设备的触控面板的触控功能;然后,从发送该触控关闭命令开始的第一预设时间后,控制驱动板下电;再在该驱动板下电之前,接收来自驱动板的第二应答信息,该第二应答信息是驱动板响应于上述触控关闭命令发送的。
在一些实施例中,第一预设时间与图像刷新时间、驱动板命令解析时间或寄存器初始化时间中的至少一项有关。
在一些实施例中,第一预设时间大于或等于图像刷新时间、驱动板命令解析时间及寄存器初始化时间之和。
在一些实施例中,第一预设时间大于或等于20ms。
在一些实施例中,上述电子设备的通信方法还包括:首先,在电子设备进入工作模式时,控制驱动板上电;然后,从驱动板上电开始的第二预设时间后,向电子设备的驱动板发送触控打开命令,触控打开命令用于打开电子设备的触控面板的触控功能;再接收来自驱动板的第三应答信息,第三应答信息是驱动板响应于触控打开命令发送的。
在一些实施例中,第二预设时间与驱动板初始化时间或寄存器初始化时间中的至少一项有关。
在一些实施例中,第二预设时间大于或等于驱动板初始化时间与寄存器初始化时间之和。
在一些实施例中,第二预设时间大于或等于100ms。
又一方面,提供一种计算机可读存储介质。该计算机可读存储介质存储有计算机程序指令,该计算机程序指令在计算机(例如,笔记本电脑)上运行时,使得计算机执行如上述任一实施例所述的电子设备的通信方法。
在一些实施例中,首先,计算机响应于使该计算机进入休眠模式的操作,向计算机的驱动板发送触控关闭命令,该触控关闭命令用于关闭计算机的触控面板的触控功能。然后,从发送触控关闭命令开始的第一预设时间后,计算机控制驱动板下电。最后,在驱动板下电之前,计算机接收来自驱动板的第二应答信息,该第二应答信息是驱动板响应于上述触控关闭命令发送的。
又一方面,提供一种计算机程序产品。该计算机程序产品包括计算机程序指令,在计算机(例如,笔记本电脑)上执行该计算机程序指令时,该计算机程序指令使计算机执行如上述任一实施例所述的电子设备的通信方法。
又一方面,提供一种计算机程序。当该计算机程序在计算机(例如,笔记本电脑)上执行时,该计算机程序使计算机执行如上述任一实施例所述的电子设备的通信方法。
附图说明
为了更清楚地说明本公开中的技术方案,下面将对本公开一些实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本公开的一些实施例的附图,对于本领域普通技术人员来讲,还可以根据这些附图获得其他的附图。此外,以下描述中的附图可以视作示意图,并非对本公开实施例所涉及的产品的实际尺寸、方法的实际流程、信号的实际时序等的限制。
图1为根据一些实施例的一种电子设备的结构图;
图2为根据一些实施例的一种电子设备的通信时序图;
图3为根据一些实施例的一种电子设备及其驱动电路的结构图;
图4为根据一些实施例的一种电子设备的通信方法的流程图;
图5为根据一些实施例的另一种电子设备的通信时序图;
图6为根据一些实施例的另一种电子设备的通信方法的流程图。
具体实施方式
下面将结合附图,对本公开一些实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本公开一部分实施例,而不是全部的实施例。基于本公开所提供的实施例,本领域普通技术人员所获得的所有其他实施例,都属于本公开保护的范围。
除非上下文另有要求,否则,在整个说明书和权利要求书中,术语“包括(comprise)”及其其他形式例如第三人称单数形式“包括(comprises)”和现在分词形式“包括(comprising)”被解释为开放、包含的意思,即为“包含,但不限于”。在说明书的描述中,术语“一个实施例(one embodiment)”、“一些实施例(some embodiments)”、“示例性实施例(exemplary embodiments)”、“示例(example)”、“特定示例(specific example)”或“一些示例(some examples)”等旨在表明与该实施例或示例相关的特定特征、结构、材料或特性包括在本公开的至少一个实施例或示例中。上述术语的示意性表示不一定是指同一实施例或示例。此外,所述的特定特征、结构、材料或特点可以以 任何适当方式包括在任何一个或多个实施例或示例中。
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本公开实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。
在描述一些实施例时,可能使用了“耦接”和“连接”及其衍伸的表达。例如,描述一些实施例时可能使用了术语“连接”以表明两个或两个以上部件彼此间有直接物理接触或电接触。又如,描述一些实施例时可能使用了术语“耦接”以表明两个或两个以上部件有直接物理接触或电接触。然而,术语“耦接”或“通信耦接(communicatively coupled)”也可能指两个或两个以上部件彼此间并无直接接触,但仍彼此协作或相互作用。这里所公开的实施例并不必然限制于本文内容。
“A、B和C中的至少一个”与“A、B或C中的至少一个”具有相同含义,均包括以下A、B和C的组合:仅A,仅B,仅C,A和B的组合,A和C的组合,B和C的组合,及A、B和C的组合。
本文中“适用于”或“被配置为”的使用意味着开放和包容性的语言,其不排除适用于或被配置为执行额外任务或步骤的设备。
另外,“基于”的使用意味着开放和包容性,因为“基于”一个或多个所述条件或值的过程、步骤、计算或其他动作在实践中可以基于额外条件或超出所述的值。
本文参照作为理想化示例性附图的剖视图和/或平面图描述了示例性实施方式。在附图中,为了清楚,放大了层和区域的厚度。因此,可设想到由于例如制造技术和/或公差引起的相对于附图的形状的变动。因此,示例性实施方式不应解释为局限于本文示出的区域的形状,而是包括因例如制造而引起的形状偏差。例如,示为矩形的蚀刻区域通常将具有弯曲的特征。因此,附图中所示的区域本质上是示意性的,且它们的形状并非旨在示出设备的区域的实际形状,并且并非旨在限制示例性实施方式的范围。
通常,电子设备中的主设备和从设备可以通过I2C总线连接。如图1所示,电子设备10包括主处理器11、触控面板(touch panel,TP)12和驱动板13。主处理器11通过驱动板13与触控面板12耦接。
在一些实施例中,驱动板13用于驱动触控面板12的显示功能和触控功能,驱动板13可以由第一电源Vin供电。当第一电源Vin上电时,驱动板13处于上电状态,可以驱动触控面板12的显示功能和触控功能。当第一电源 Vin掉电时,驱动板13处于下电状态,触控面板12的显示功能关闭。
在一些实施例中,电子设备中的主设备可以包括主处理器11(例如,中央处理器(central processing unit,CPU)),电子设备中的从设备可以包括驱动板13,主处理器11和驱动板13通过I2C总线连接。例如,主处理器11和驱动板13通过一根系统时钟线SCL和一根串行数据线SDA组成的I2C总线连接。可以理解的,电子设备中的从设备也可以为多个,即电子设备中的从设备还可以包括除驱动板13以外的其他设备,本公开对于电子设备中主设备和从设备的数量及类型并不限定。
下面以电子设备为笔记本电脑(note book,NB)为例,对笔记本电脑中主处理器11和驱动板13之间的通信流程进行介绍。
结合图1,如图2所示,在第1阶段,笔记本电脑的盖板处于打开状态(lid on),第一电源Vin处于上电(on)状态,驱动板13处于上电状态。在第2阶段,将笔记本电脑的盖板合上(lid off),笔记本电脑进入休眠模式(sleep mode)。在第3阶段,主处理器11控制第一电源Vin掉电(off),第一电源Vin掉电后,驱动板13处于下电状态,触控面板12的显示功能关闭。主处理器11向驱动板13发送触控关闭命令,该触控关闭命令用于关闭触控面板12的触控功能。由于主处理器11向驱动板13发送触控关闭命令时,第一电源Vin已经掉电,也就是说驱动板13因已经下电而无法工作,因此驱动板13无法响应主处理器11发送的触控关闭命令(即从设备无法应答),导致主处理器11未收到驱动板13的应答会认为驱动板13异常。
结合图1,如图2所示,在第4阶段,将笔记本电脑的盖板打开(lid on),笔记本电脑退出休眠模式,进入工作模式。主处理器11向驱动板13发送触控打开命令,该触控打开命令用于打开触控面板12的触控功能。在第5阶段,主处理器11控制第一电源Vin上电,第一电源Vin上电后驱动板13处于上电状态。由于在第4阶段,主处理器11向驱动板13发送触控打开命令时,第一电源Vin还未上电,此时驱动板13因还未上电而无法工作,因此驱动板13无法响应主处理器11发送的触控打开命令(即从设备无法应答),导致主处理器11未收到驱动板13的应答会认为驱动板13异常。也就是说,在笔记本电脑退出休眠模式进入工作模式后,由于主处理器11未收到驱动板13的应答,主处理器11会在设备管理器对驱动板13非法识别,也不会读取驱动板13产生的数据包和枚举信息,造成主处理器11与驱动板13之间无法正常通信。上述驱动板13产生的枚举信息是指驱动板13产生的一种数据,通常,枚举信息是一种规定了取值范围的数据类型。
为此,本公开的一些实施例提供一种驱动电路,该电子设备可以是手机、平板电脑、桌面型、膝上型、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR)、虚拟现实(virtual reality,VR)设备等包括触控面板的设备,本公开实施例对该电子设备的具体形态不作特殊限制。下述实施例以电子设备为笔记本电脑为例,对本公开实施例提供的方案进行示例性说明。
如图3所示,该驱动电路30包括主处理器31、驱动板32和从处理器33,主处理器31分别与驱动板32和从处理器33耦接,驱动板32包括第一端口34,驱动板32通过第一端口34耦接至从处理器33。
驱动板32被配置为驱动电子设备的触控面板35。
在一些实施例中,如图3所示,驱动板32用于与电子设备的触控面板35耦接,驱动板32可以驱动触控面板35的触控功能,也可以驱动触控面板35的显示功能。驱动板32可以由第一电源Vin供电。
示例性地,驱动板32包括触摸时序控制器(touch timing controller,TTCON),TTCON包括时序控制器(timing controller,TCON)和微控制单元(microcontroller unit,MCU)。该触摸时序控制器TTCON被配置为驱动触控面板35的触控功能。
在一些实施例中,驱动板32还被配置为处理显示数据、产生用于界定显示(display)信号和触控(touch)信号的时间同步信号(time synchronization,Tysc)、产生显示屏阵列基板行驱动(gate driver on array,GOA)信号波形并接收处理触控信息、产生触控阶段的源/显示集成电路(source/read-out IC,SRIC)的控制信号、产生触摸调制电平转换集成电路(touch modulation level shift IC,TMLS)的的控制信号。
在一些实施例中,第一端口34为通用输入输出端口(general-purpose input/output,GPIO),本公开对于第一端口34的具体类型并不限定。当第一电源Vin处于掉电状态时,第一端口34的信号为第一信号。当第一电源Vin处于上电状态时,第一端口34的信号为第二信号。本公开实施例对于第一信号和第二信号的电平类型并不限定,下述实施例以第一信号为低电平信号,第二信号为高电平信号为例对本公开实施例的方案进行示例性说明。
示例性地,如图2所示,在第3阶段,当电子设备进入休眠模式时,主处理器31控制第一电源Vin掉电,第一电源Vin掉电后驱动板32处于下电状态,第一端口34为低电平。在第5阶段,当电子设备进入工作模式时,主 处理器31控制第一电源Vin上电,第一电源Vin上电后驱动板32处于上电状态,第一端口34为高电平。
在一些实施例中,主处理器31可以通过通信总线分别与驱动板32和从处理器33耦接。需要说明的是,本公开对于主处理器31与驱动板32和从处理器33之间连接的通信总线的类型并不限定。下述实施例以该通信总线为I2C为例进行示例性说明。例如,如图3所示,主处理器31通过一根SCL和一根SDA组成的I2C总线分别与驱动板32和从处理器33连接。
主处理器31,被配置为发送包括第一地址的控制命令。该控制命令包括触控关闭命令或触控打开命令中的至少一项,触控关闭命令用于关闭电子设备的触控面板35的触控功能,触控打开命令用于打开电子设备的触控面板35的触控功能。
在一些实施例中,主处理器31,被配置为在电子设备处于休眠模式时,发送包括第一地址的触控关闭命令;或,在电子设备处于工作模式时,发送包括第一地址的触控打开命令。
例如,如图2所示,在第3阶段,电子设备处于休眠模式,主处理器31可以向从设备发送包括第一地址的触控关闭命令。在第4阶段,电子设备处于工作模式,主处理器31可以向从设备发送包括第一地址的触控打开命令。
从处理器33,被配置为在驱动板32处于下电状态时,接收来自主处理器31的包括第一地址的控制命令,响应于该控制命令,向主处理器31发送第一应答信息。
驱动板32和从处理器33复用第一地址。本公开对于第一地址的类型并不限定,该第一地址的类型与主设备和从设备之间连接的通信总线的类型有关。以通信总线为I2C总线为例,该第一地址可以为I2C地址。由于驱动板32和从处理器33复用同一个I2C地址,因此对于主处理器31而言,驱动板32和从处理器33为同一个从设备。如此一来,当主处理器31向从设备发送包括第一地址的控制命令时,如果驱动板32处于下电状态,那么从处理器33作为主处理器31的从设备可以响应该控制命令,向主处理器31发送第一应答信息。
结合图3,如图2所示,在第2阶段,当笔记本电脑进入休眠模式(sleep mode)时,主处理器31控制第一电源Vin掉电,第一电源Vin掉电后驱动板32处于下电状态,触控面板35的显示功能关闭。在第3阶段,主处理器31向地址为第一地址的从设备发送用于关闭触控面板35的触控功能的触控关闭命令时,虽然驱动板32处于下电状态,但是由于驱动板32与从处理器33复 用第一地址,对于主处理器31而言,从处理器33与驱动板32为同一从设备。因此从处理器33可以接收主处理器31发送的触控关闭命令,并向主处理器31发送第一应答信息。如此一来,由于主处理器31可以接收到来自从设备(从处理器33)的第一应答信息,因此不会认为驱动板32异常。
结合图3,如图2所示,在第4阶段,当笔记本电脑退出休眠模式,进入工作模式时,主处理器31向地址为第一地址的从设备发送用于打开触控面板35的触控功能的触控打开命令。在第5阶段,主处理器31控制第一电源Vin上电,第一电源Vin上电后驱动板32处于上电状态。由于在第4阶段,主处理器31向驱动板32发送触控打开命令时,第一电源Vin还未上电,即此时驱动板32因未上电而无法响应该触控打开命令。但是由于从处理器33与驱动板32复用第一地址,对于主处理器31而言,从处理器33与驱动板32为同一从设备,因此从处理器33可以接收主处理器31发送的触控打开命令,并向主处理器31发送第一应答信息。如此一来,由于主处理器31可以接收到来自从设备(从处理器33)的第一应答信息,因此不会认为驱动板32异常,第一电源Vin上电后,主处理器31与驱动板32之间可以正常通信。
可以理解的,由于驱动板32和从处理器33复用同一个I2C地址,对于主处理器31而言,驱动板32和从处理器33为同一个从设备。因此主处理器31向从设备发送控制命令时,如果驱动板32处于下电状态无法响应主处理器31发送的控制命令,那么从处理器33可以响应主处理器31发送的控制命令。如此一来,可以解决因驱动板32无法响应主处理器31发送的控制命令,造成主处理器11与驱动板13之间无法正常通信的问题。
在一些实施例中,从处理器33,还被配置为在驱动板32处于上电状态时,从处理器33进入休眠模式;在驱动板32处于下电状态时,从处理器33进入工作模式。可以理解的,驱动板32处于上电状态时,主处理器31与驱动板32之间可以正常通信,从处理器33进入休眠模式,有助于降低电子设备的能耗。驱动板32处于下电状态时,从处理器33进入工作模式,如果主处理器31发送控制命令,从处理器33作为与驱动板32复用同一个I2C地址的从设备可以响应主处理器31发送的控制命令,确保主处理器31和从设备之间的通信正常。
在一些实施例中,从处理器33还被配置为在第一端口34的信号为第一信号时,确定驱动板32处于下电状态;在第一端口34的信号为第二信号时,确定驱动板32处于上电状态。
示例性地,如图2所示,在第2阶段,当电子设备进入休眠模式时,主 处理器31控制第一电源Vin掉电,第一电源Vin掉电后驱动板32处于下电状态,第一端口34为低电平(即第一信号),从处理器33确定驱动板32处于下电状态时,从处理器33进入工作模式。在第5阶段,当电子设备进入工作模式时,主处理器31控制第一电源Vin上电,第一电源Vin上电后驱动板32处于上电状态,第一端口34为高电平(即第二信号),从处理器确定驱动板32处于上电状态时,从处理器33进入休眠模式。
在一些实施例中,从处理器33可以为MCU。本公开对于从处理器33的类型并不限定。
需要说明的是,本公开提供的驱动电路,通过增加与驱动板32复用同一地址的从处理器33,而且在驱动板32处于上电状态时,该从处理器33进入休眠模式,由驱动板32响应主处理器31发送的控制命令。在驱动板32处于下电状态时,该从处理器33进入工作模式,由从处理器33响应主处理器31发送的控制命令。也就是说,主处理器31发送控制命令时,无论驱动板32是否处于上电状态,主处理器31都可以接收来自从设备(驱动板32或从处理器33)的响应信息,以确保主处理器31和驱动板32之间的通信正常。
在一些实施例中,如图3所示,驱动板32的电源为第一电源Vin,从处理器33的电源为第二电源Vtsp,第一电源Vin和第二电源Vtsp不同。可以理解的,第一电源Vin和第二电源Vtsp不同是指主处理器31控制第一电源Vin和第二电源Vtsp上下电的开关电路不同,从而可以实现第一电源Vin和第二电源Vtsp分别上下电,使得驱动板32处于下电状态时,从处理器33不会下电。
例如,主处理器31通过第一开关电路与驱动板32耦接,主处理器31通过第二开关电路与从处理器33耦接。主处理器31通过控制第一开关电路的导通和关断可以实现第一电源Vin的上电或下电,主处理器31通过控制第二开关电路的导通和关断可以实现第二电源Vtsp的上电或下电。从而能够实现第一电源Vin和第二电源Vtsp分别上下电。
本公开的一些实施例提供一种电子设备的通信方法,该电子设备可以为图1所示的电子设备10,结合图1,如图4所示,该方法包括以下步骤:
步骤401、在电子设备10进入休眠模式时,主处理器11向电子设备的驱动板13发送触控关闭命令,该触控关闭命令用于关闭电子设备的触控面板12的触控功能。
示例性地,结合图1,如图5所示,以电子设备为笔记本电脑为例,在第1阶段,笔记本电脑的盖板处于打开状态(lid on),第一电源Vin处于上电 (on)状态,驱动板13处于上电状态。在第2阶段,主处理器11向驱动板13发送用于关闭电子设备的触控面板12的触控功能的触控关闭命令。
步骤402、从驱动板13接收到触控关闭命令开始的第一预设时间T1后,主处理器11控制驱动板13下电。
结合图1,如图5所示,在第2阶段,由于驱动板13接收到触控关闭命令开始的第一预设时间T1后,主处理器11才控制驱动板13下电。因此主处理器11向驱动板13发送触控关闭命令时,第一电源Vin还未掉电,即驱动板13还未下电,故驱动板13可以响应该触控关闭命令。也就是说,在电子设备10进入休眠模式时,通过延迟第一电源Vin的掉电时间,能够确保驱动板13有足够的时间响应主处理器11发送的触控关闭命令。
在一些实施例中,第一预设时间T1与图像刷新时间、驱动板命令解析时间或寄存器初始化时间中的至少一项有关。图像刷新时间指的是触控面板在显示图像时,一帧图像的刷新时间,示例性地,该图像刷新时间为16.6ms。
在一些实施例中,第一预设时间T1大于或等于图像刷新时间、驱动板命令解析时间及寄存器初始化时间之和。可以理解的,该第一预设时间T1可以根据图像刷新时间、驱动板命令解析时间和寄存器初始化时间设置,从而能够确保驱动板13在第一预设时间T1内向主处理器11发送应答信息后,主处理器11再控制第一电源Vin掉电。即,该第一预设时间T1可以确保驱动板13有足够的时间响应主处理器11发送的触控关闭命令。
示例性地,第一预设时间T1大于或等于20ms。本公开对于第一预设时间的具体数值并不限定。
步骤403、在驱动板13下电之前,主处理器11接收来自驱动板13的第二应答信息,第二应答信息是驱动板13响应于该触控关闭命令发送的。
本公开提供的电子设备的通信方法,在电子设备10进入休眠模式时,主处理器11通过延迟第一电源Vin的掉电时间,进而延迟驱动板13的下电时间,使得驱动板13有足够的时间响应主处理器11发送的触控关闭命令。从而在驱动板13下电之前,主处理器11就能接收来自驱动板13的第二应答信息,因此主处理器11不会认为驱动板13异常,能够确保主处理器11与驱动板13之间的通信正常。
在一些实施例中,如图6所示,电子设备的通信方法还包括以下步骤:
步骤601、在电子设备10进入工作模式时,主处理器11控制驱动板13上电。
示例性地,结合图1,如图5所示,以电子设备为笔记本电脑为例,在第 3阶段,笔记本电脑的盖板处于关闭状态(lid off),笔记本电脑进入休眠模式时,第一电源Vin处于掉电(off)状态。在第4阶段,打开笔记本电脑的盖板(lid on),笔记本电脑退出休眠模式进入工作模式时,主处理器11控制第一电源Vin上电后,第一电源Vin处于上电(on)状态,驱动板13上电。
步骤602、从驱动板13上电开始的第二预设时间T2后,主处理器11向电子设备的驱动板13发送触控打开命令,触控打开命令用于打开电子设备的触控面板12的触控功能。
结合图1,如图5所示,由于驱动板13上电开始的第二预设时间T2后,主处理器11才向电子设备的驱动板13发送用于打开电子设备的触控面板12的触控功能的触控打开命令。因此主处理器11向驱动板13发送触控打开命令时,第一电源Vin已经上电,即驱动板13已经上电,故驱动板13可以响应该触控打开命令。也就是说,在电子设备10进入工作模式时,通过提前第一电源Vin的上电时间,延迟触控打开命令的发送时间,能够确保主处理器11发送触控打开命令时,驱动板13可以正常接收并响应主处理器11发送的触控打开命令。
在一些实施例中,第二预设时间T2与驱动板初始化时间、寄存器初始化时间中的至少一项有关。可以理解的,该第二预设时间T2可以根据驱动板初始化时间与寄存器初始化时间设置,从而能够确保主处理器11发送触控打开命令时,驱动板13已经初始化完成,能够正常接收并响应该触控打开命令,再向主处理器11发送应答信息。
在一些实施例中,第二预设时间T2大于或等于驱动板初始化时间与寄存器初始化时间之和。
示例性地,第二预设时间大于或等于100ms。
步骤603、主处理器11接收来自驱动板13的第三应答信息,第三应答信息是驱动板13响应于该触控打开命令发送的。
本公开提供的电子设备的通信方法,在电子设备10进入工作模式时,主处理器11通过提前第一电源Vin的上电时间,即驱动板13的上电时间,使得在主处理器11发送触控打开命令之前,驱动板13能够响应该触控打开命令。从而主处理器11就能接收来自驱动板13的第三应答信息,因此主处理器11不会认为驱动板13异常,能够确保主处理器11与驱动板13之间的通信正常。
本公开一些实施例提供的电子设备的通信方法可以包括上述步骤401-步骤403,以及步骤601-步骤603。本公开对于步骤401-步骤403,以及步骤601- 步骤603的先后执行顺序并不限定,该步骤601-步骤603可以在步骤401-步骤403之后执行,也可以在步骤401-步骤403之前执行。
本公开的一些实施例提供了一种计算机可读存储介质(例如,非暂态计算机可读存储介质),该计算机可读存储介质中存储有计算机程序指令,计算机程序指令在计算机(例如,笔记本电脑)上运行时,使得计算机执行如上述实施例中任一实施例所述的电子设备的通信方法。
在一些实施例中,首先,计算机响应于使该计算机进入休眠模式的操作,向计算机的驱动板发送触控关闭命令,该触控关闭命令用于关闭计算机的触控面板的触控功能。当计算机为笔记本电脑时,使计算机进入休眠模式的操作可以为用户合上笔记本电脑的盖板的操作。然后,从发送触控关闭命令开始的第一预设时间后,计算机控制驱动板下电。最后,在驱动板下电之前,计算机接收来自驱动板的第二应答信息,该第二应答信息是驱动板响应于上述触控关闭命令发送的。
示例性地,上述计算机可读存储介质可以包括,但不限于:磁存储器件(例如,硬盘、软盘或磁带等),光盘(例如,CD(compact disk,压缩盘)、DVD(digital versatile disk,数字通用盘)等),智能卡和闪存器件(例如,EPROM(erasable programmable read-only memory,可擦写可编程只读存储器)、卡、棒或钥匙驱动板等)。本公开描述的各种计算机可读存储介质可代表用于存储信息的一个或多个设备和/或其它机器可读存储介质。术语“机器可读存储介质”可包括但不限于,无线信道和能够存储、包含和/或承载指令和/或数据的各种其它介质。
本公开的一些实施例还提供了一种计算机程序产品。该计算机程序产品包括计算机程序指令,在计算机(例如,电子设备)上执行该计算机程序指令时,该计算机程序指令使计算机执行如上述实施例所述的电子设备的通信方法。
本公开的一些实施例还提供了一种计算机程序。当该计算机程序在计算机(例如,电子设备)上执行时,该计算机程序使计算机执行如上述实施例所述的电子设备的通信方法。
上述计算机可读存储介质、计算机程序产品及计算机程序的有益效果和上述一些实施例所述的电子设备的通信方法的有益效果相同,此处不再赘述。
以上所述,仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,想到变化或替换,都应涵盖在本公开的保护范围之内。因此,本公开的 保护范围应以所述权利要求的保护范围为准。

Claims (16)

  1. 一种驱动电路,包括:
    驱动板,被配置为驱动电子设备的触控面板;
    与所述驱动板耦接的从处理器,被配置为在所述驱动板处于下电状态时,接收包括第一地址的控制命令,响应于所述控制命令,发送第一应答信息;所述驱动板和所述从处理器复用所述第一地址。
  2. 根据权利要求1所述的驱动电路,还包括主处理器,所述主处理器分别与所述驱动板和所述从处理器耦接,所述控制命令包括触控关闭命令或触控打开命令中的至少一项,所述触控关闭命令用于关闭所述电子设备的触控面板的触控功能,所述触控打开命令用于打开所述电子设备的触控面板的触控功能;
    所述主处理器,被配置为在所述电子设备处于休眠模式时,发送所述触控关闭命令;或,在所述电子设备处于工作模式时,发送所述触控打开命令。
  3. 根据权利要求1或2所述的驱动电路,其中,所述从处理器还被配置为在所述驱动板处于上电状态时,所述从处理器进入休眠模式。
  4. 根据权利要求1-3中任一项所述的驱动电路,其中,所述从处理器通过第一端口耦接至所述驱动板,所述从处理器还被配置为在所述第一端口的信号为第一信号时,确定所述驱动板处于下电状态;在所述第一端口的信号为第二信号时,确定所述驱动板处于上电状态。
  5. 根据权利要求4所述的驱动电路,其中,所述第一信号为低电平,所述第二信号为高电平。
  6. 根据权利要求1-5中任一项所述的驱动电路,其中,所述第一地址包括集成电路总线I2C地址。
  7. 根据权利要求1-6中任一项所述的驱动电路,其中,所述驱动板的电源与所述从处理器的电源不同。
  8. 一种电子设备,包括:触控面板,以及如权利要求1-7中任一项所述的驱动电路,所述触控面板与所述驱动板耦接连接。
  9. 一种电子设备的通信方法,包括:
    在所述电子设备进入休眠模式时,向所述电子设备的驱动板发送触控关闭命令,所述触控关闭命令用于关闭所述电子设备的触控面板的触控功能;
    从发送所述触控关闭命令开始的第一预设时间后,控制所述驱动板下电;
    在所述驱动板下电之前,接收来自所述驱动板的第二应答信息,所述第二应答信息是所述驱动板响应于所述触控关闭命令发送的。
  10. 根据权利要求9所述的电子设备的通信方法,其中,所述第一预设时间与图像刷新时间、驱动板命令解析时间或寄存器初始化时间中的至少一项有关。
  11. 根据权利要求10所述的电子设备的通信方法,其中,所述第一预设时间大于或等于所述图像刷新时间、所述驱动板命令解析时间及所述寄存器初始化时间之和。
  12. 根据权利要求9-11中任一项所述的电子设备的通信方法,还包括:
    在所述电子设备进入工作模式时,控制所述驱动板上电;
    从所述驱动板上电开始的第二预设时间后,向所述电子设备的驱动板发送触控打开命令,所述触控打开命令用于打开电子设备的触控面板的触控功能;
    接收来自所述驱动板的第三应答信息,所述第三应答信息是所述驱动板响应于所述触控打开命令发送的。
  13. 根据权利要求12所述的电子设备的通信方法,其中,第二预设时间与驱动板初始化时间或寄存器初始化时间中的至少一项有关。
  14. 根据权利要求13所述的电子设备的通信方法,其中,第二预设时间大于或等于所述驱动板初始化时间与所述寄存器初始化时间之和。
  15. 一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序指令,计算机程序指令在计算机上运行时,使得计算机响应于使所述计算机进入休眠模式的操作,向所述计算机的驱动板发送触控关闭命令,所述触控关闭命令用于关闭所述计算机的触控面板的触控功能;从发送所述触控关闭命令开始的第一预设时间后,控制所述驱动板下电;在所述驱动板下电之前,接收来自所述驱动板的第二应答信息,所述第二应答信息是所述驱动板响应于所述触控关闭命令发送的。
  16. 一种计算机程序产品,该计算机程序产品包括计算机程序指令,在计算机上执行该计算机程序指令时,该计算机程序指令使计算机执行如权利要求9-14中任一项所述的电子设备的通信方法。
PCT/CN2022/086675 2022-04-13 2022-04-13 驱动电路、电子设备及其通信方法 WO2023197216A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202280000741.2A CN117242418A (zh) 2022-04-13 2022-04-13 驱动电路、电子设备及其通信方法
PCT/CN2022/086675 WO2023197216A1 (zh) 2022-04-13 2022-04-13 驱动电路、电子设备及其通信方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2022/086675 WO2023197216A1 (zh) 2022-04-13 2022-04-13 驱动电路、电子设备及其通信方法

Publications (2)

Publication Number Publication Date
WO2023197216A1 true WO2023197216A1 (zh) 2023-10-19
WO2023197216A9 WO2023197216A9 (zh) 2024-01-04

Family

ID=88328522

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/086675 WO2023197216A1 (zh) 2022-04-13 2022-04-13 驱动电路、电子设备及其通信方法

Country Status (2)

Country Link
CN (1) CN117242418A (zh)
WO (1) WO2023197216A1 (zh)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200708931A (en) * 2005-08-26 2007-03-01 Hon Hai Prec Ind Co Ltd Power saving electronic equipment and power saving method thereof
CN102707790A (zh) * 2012-05-14 2012-10-03 江苏中科梦兰电子科技有限公司 一种笔记本电脑自动开关机装置以及控制方法
US20130117489A1 (en) * 2011-11-03 2013-05-09 Nvidia Corporation Usb host wake from sleep state for mobile devices
TWI459289B (zh) * 2012-01-03 2014-11-01 Sk Hynix Inc Embedded memory card control system with no power sleep mode and its embedded memory card
KR20150079318A (ko) * 2013-12-31 2015-07-08 엘지디스플레이 주식회사 전력 최적화 시스템과 이의 구동 방법
CN110557263A (zh) * 2018-05-31 2019-12-10 华为技术有限公司 待机控制方法、系统、终端设备和中继设备

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200708931A (en) * 2005-08-26 2007-03-01 Hon Hai Prec Ind Co Ltd Power saving electronic equipment and power saving method thereof
US20130117489A1 (en) * 2011-11-03 2013-05-09 Nvidia Corporation Usb host wake from sleep state for mobile devices
TWI459289B (zh) * 2012-01-03 2014-11-01 Sk Hynix Inc Embedded memory card control system with no power sleep mode and its embedded memory card
CN102707790A (zh) * 2012-05-14 2012-10-03 江苏中科梦兰电子科技有限公司 一种笔记本电脑自动开关机装置以及控制方法
KR20150079318A (ko) * 2013-12-31 2015-07-08 엘지디스플레이 주식회사 전력 최적화 시스템과 이의 구동 방법
CN110557263A (zh) * 2018-05-31 2019-12-10 华为技术有限公司 待机控制方法、系统、终端设备和中继设备

Also Published As

Publication number Publication date
CN117242418A (zh) 2023-12-15
WO2023197216A9 (zh) 2024-01-04

Similar Documents

Publication Publication Date Title
CN100359434C (zh) 信息处理设备及其启动方法
JP5076317B2 (ja) 情報処理装置、情報処理方法及びそのプログラム
US8850254B2 (en) Dynamic control of reduced voltage state of graphics controller component of memory controller
JPH04211819A (ja) 情報処理装置
US20050160302A1 (en) Power management apparatus and method
JP2001175368A (ja) Cpuコア電圧切替え回路
JP2006120114A (ja) 多機能電源ボタンを有するコンピューター及び関連方法
TW200949822A (en) Display system and method for reducing power consumption of same
JP2002132393A (ja) 情報機器、情報機器の制御方法及び制御方法のプログラム
WO2011118487A1 (ja) 情報処理装置及び電源制御回路
JP2001222346A (ja) コンピュータ、コンピュータシステム、および省電力制御方法
JP2008071066A (ja) 情報処理装置及び復帰制御方法
US10228750B2 (en) Reducing the power consumption of an information handling system capable of handling both dynamic and static display applications
JP2002108293A (ja) 情報処理装置及び該装置における表示装置用電源電圧制御方法
WO2023197216A1 (zh) 驱动电路、电子设备及其通信方法
US20060190635A1 (en) Information processing apparatus and state control method of the same apparatus
JPH10208485A (ja) 同期型半導体装置の内部クロック発生回路
US7890678B2 (en) Portable computer having auxiliary IO apparatus and system setup method thereof
CN115079806A (zh) 一种边缘服务器定时休眠控制方法、装置、设备和介质
US7519841B2 (en) Power control circuit
JP2004139580A (ja) 省電力化電子装置及び電子装置に用いられる省電力化方法
CN112951171A (zh) 显示装置及驱动方法
JP2003223246A (ja) 電子機器および省電力制御方法
US6918045B2 (en) System, method and computer program product for selecting a power management mode in an information handling system
TWI814367B (zh) 顯示裝置及其控制方法

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 202280000741.2

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22936866

Country of ref document: EP

Kind code of ref document: A1