Display device, control method thereof, electronic apparatus, storage medium, and program product
By designing a collaborative working mechanism of the two control units in the display device, the problem of signal loss in the In-cell structure in the sleep state is solved, ensuring the stability and integrity of the touch function.
Patent Information
- Application Number
- CN202411045374.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-12
AI Technical Summary
In the dormant state of the display device, the display device using the In-cell structure has problems of signal loss and error, resulting in the failure of the touch function.
A display device is designed, including a touch display panel and two control units. The first control unit provides a display signal and processes a touch signal in the display state, and the second control unit processes a touch signal in the sleep state, and receives it. After the wake-up command, the first control unit takes over the touch signal processing after a preset time period to avoid data loss caused by permission handover.
It effectively avoids data loss and touch function loss caused by permission handover when the display device wakes up, ensures the complete reception and processing of touch signals, and improves the reliability of the system.
Smart Images

Figure CN118939138A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of display technology, and in particular to a display device and a control method thereof, an electronic device, a storage medium, and a program product. Background Art
[0002] Display technology may refer to a technology that uses electronic technology to provide flexible visual information. With the development of display technology, in order to provide a better interactive experience, touch display technology sets a touch function on the display panel.
[0003] In touch display technology, the built-in touch screen (In-cell) is a technology that integrates a touch structure with a display structure.
[0004] However, the inventors of the present disclosure have discovered that, when the display device is in a dormant state, a display device using an In-cell structure may have problems such as signal loss and / or errors. Summary of the invention
[0005] In view of this, the purpose of the present disclosure is to provide a display device and a control method thereof, an electronic device, a storage medium and a program product to solve or partially solve the above technical problems.
[0006] Based on the above objectives, the first aspect of the present disclosure provides a display device, including:
[0007] A touch display panel, comprising a display structure and a touch structure;
[0008] A first control unit, electrically coupled to the touch display panel, configured to: provide a display signal to the display structure and receive and process a touch signal of the touch structure in a display state of the display device;
[0009] A second control unit, electrically coupled to the touch control structure and the first control unit, and configured to: in response to determining that the display device enters a dormant state, receive and process a touch signal of the touch control structure;
[0010] The first control unit is further configured to: in response to receiving a wake-up instruction from the display device, control the second control unit to stop receiving and processing the touch signal of the touch structure after a preset time period.
[0011] Based on the same inventive concept, the second aspect of the present disclosure proposes a control method for a display device; the display device comprises: a touch display panel, a first control unit and a second control unit; the touch display panel comprises: a display structure and a touch structure; the first control unit is electrically coupled to the touch display panel; the second control unit is electrically coupled to the touch structure and the first control unit; the method comprises:
[0012] In the display state of the display device, the first control unit provides a display signal to the display structure and receives and processes a touch signal from the touch structure;
[0013] In response to determining that the display device enters a dormant state, the second control unit receives and processes a touch signal of the touch structure;
[0014] In response to receiving a wake-up instruction from the display device, after a preset time period, the first control unit controls the second control unit to stop receiving and processing the touch signal of the touch structure.
[0015] Based on the same inventive concept, the third aspect of the present disclosure proposes an electronic device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, wherein the processor implements the method as described above when executing the computer program.
[0016] Based on the same inventive concept, a fourth aspect of the present disclosure proposes a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the method as described above.
[0017] Based on the same inventive concept, a fifth aspect of the present disclosure proposes a computer program product, including computer program instructions. When the computer program instructions are executed on a computer, the computer is enabled to execute the method described above.
[0018] From the above, it can be seen that the display device and its control method, electronic device, storage medium and program product provided by the present disclosure. When the display device enters a dormant state, the second control unit can receive and process the touch signal of the touch structure. When receiving a wake-up command from the display device, the first control unit starts to complete the reception and processing of the touch signal of the touch structure. After a preset period of time, the first control unit controls the second control unit to stop receiving and processing the touch signal of the touch structure, and uses the first control unit to receive and process the touch signal of the touch structure, so as to avoid the handover of authority when the first control unit is not started, and the situation that neither the first control unit nor the second control unit receives and processes the touch signal causes the touch function to fail. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the present disclosure or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 It is a structural schematic diagram of a display device based on a timing controller and a microcontroller external to the timing controller;
[0021] Figure 2 A timing diagram of data loss when authority is transferred between a wake-up timing controller of a display device in the related art and a microcontroller external to the timing controller;
[0022] Figure 3 is a schematic structural diagram of a display device according to an embodiment of the present disclosure;
[0023] Figure 4 A timing diagram corresponding to a preset delay time of an enable signal according to an embodiment of the present disclosure;
[0024] Figure 5 A timing diagram of data loss after an enable signal is delayed for a preset period of time according to an embodiment of the present disclosure;
[0025] Figure 6 It is a structural schematic diagram of a display device with a feedback signal added according to an embodiment of the present disclosure;
[0026] Figure 7 A timing diagram of adding a feedback signal according to an embodiment of the present disclosure;
[0027] Figure 8 It is a structural schematic diagram of a display device added to a host according to an embodiment of the present disclosure;
[0028] Fig. 9 A timing diagram of the timing controller of the embodiment of the present disclosure and a microcontroller external to the timing controller receiving and processing a touch signal at the same time;
[0029] Fig.10 A timing diagram of clock stretching of a bus clock signal according to an embodiment of the present disclosure;
[0030] Fig.11 is a flow chart of a display method according to an embodiment of the present disclosure;
[0031] Fig.12 A flowchart of a method for handing over authority between a timing controller and a microcontroller according to an embodiment of the present disclosure;
[0032] Fig.13 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0033] In order to make the objectives, technical solutions and advantages of the present disclosure more clearly understood, the present disclosure is further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.
[0034] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present disclosure should be understood by people with ordinary skills in the field to which the present disclosure belongs. The "first", "second" and similar words used in the embodiments of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. "Including" or "comprising" and similar words mean that the elements or objects appearing before the word cover the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0035] Based on the description of the background technology, the built-in touch screen (In-cell) integrates the touch structure and the display structure together, rather than using separate structures. Therefore, in the related art, the control unit for processing the touch signal and the control unit for processing the display signal are usually integrated together accordingly. Specifically, the microcontroller (Micro Control Unit, referred to as MCU) for processing the touch signal is designed as an integrated circuit (IC) and integrated into the timing controller (Timing Controller, referred to as TCON) for processing the display signal. However, the touch power signal (VTSP) and the display power signal (VDDIN) are still independent of each other.
[0036] Such a design has certain problems. For example, after the display system enters the sleep state, the display power signal (VDDIN) will lose power, which will cause the TCON to fail to work. However, the MCU used to process the touch signal is integrated inside the TCON. Therefore, during the sleep process, when the system (for example, the host) sends a touch-related instruction, the touch display panel (panel) is in the sleep state. When it receives the wake-up instruction triggered by the touch-related instruction, it will not be able to respond, which will eventually cause the system's touch function to be lost.
[0037] For example, for a computer with a touch screen, after the computer enters sleep mode, you can generate a wake-up command by clicking the mouse or keyboard to wake up the computer's display panel. However, there is a delay in waking up the display panel. When the display panel has not yet woken up, the touch function is lost and the display panel cannot respond to touch signals during the wake-up process.
[0038] In order to solve the above problems, Figure 1 As shown, an external MCU external to TCON can be set to process touch-related instructions sent during system sleep. The external MCU can work under the power supply of the power signal VTSP, and the processing of touch signals can be taken over by the integrated MCU in TCON after VDDIN is powered on.
[0039] like Figure 2 As shown, exemplarily, a high level of the host bus signal Host_I2C indicates that the system sends data and instructions, a high level of the enable signal MCU_EN indicates that TCON sends the enable signal EN to the external MCU, a high level of the TCON bus signal TCON_I2C indicates that the integrated MCU in the TCON receives and processes touch data and instructions, a high level of the MCU bus signal MCU_I2C indicates that the external MCU receives and processes touch data and instructions, and a high level of data loss indicates data loss (i.e., during the period when the system sends data and instructions, neither the integrated MCU nor the external MCU receives and processes touch data and instructions).
[0040] After VDDIN is powered on, TCON IC will immediately send an enable signal (EN signal) to the external MCU through TCON to control the external MCU to stop working, so that it can immediately take over the work of the external MCU. However, the communication bus module (Inter-Integrated Circuit block, referred to as I2C block) of TCON IC needs a certain startup time (for example, the startup time takes up to 70ms). If the external MCU is receiving system data and instructions during the startup of TCON IC's I2C block, since TCON IC takes over at this time, but TCON IC's I2C block is not started (ready), the system data and instructions will be lost, and TCON IC will be unable to respond to the system. When this happens, the system's touch function will be lost.
[0041] As mentioned above, how to avoid data loss during the authority handover between the panel wake-up timing controller and the external microcontroller has become an important research issue.
[0042] Based on the above description, if Figure 3 As shown, the display device 100 proposed in this embodiment includes:
[0043] The touch display panel 110 includes a display structure 111 and a touch structure 112;
[0044] A first control unit 120 is electrically coupled to the touch display panel 110 and is configured to: provide a display signal to the display structure 111 and receive and process a touch signal from the touch structure 112 in a display state of the display device 100;
[0045] The second control unit 130 is electrically coupled to the touch structure 112 and the first control unit 120 and is configured to: in response to determining that the display device 100 enters a dormant state, receive and process a touch signal of the touch structure 112;
[0046] The first control unit 120 is further configured to: in response to receiving a wake-up instruction from the display device 100 , control the second control unit 130 to stop receiving and processing the touch signal of the touch structure 112 after a preset time period.
[0047] In a specific implementation, the preset duration is the maximum startup duration of the first control unit 120. For example, if the maximum startup duration of the first control unit 120 is 70ms, the preset duration is 70ms. When the first control unit 120 receives the wake-up instruction of the display device 100, after 70ms, the first control unit 120 completes the startup, controls the second control unit 130 to stop receiving and processing the touch signal of the touch structure 112, and uses the first control unit 120 to receive and process the touch signal of the touch structure 112.
[0048] like Figure 1 As shown, the first control unit 120 is a microcontroller module (integrated MCU) in the timing controller TCON, and the second controller 130 is a microcontroller (external MCU) external to the timing controller. The integrated MCU and the external MCU share a bus address (I2C address). IIC_CLOCK is a clock signal, IIC_DATA is a data signal, HOST is a host 140 (i.e., a system), VTSP is a touch signal, VDDIN is a display signal, and EN is an enable signal.
[0049] Specifically, when the display signal is powered on, the external MCU will be controlled by the enable signal to stop receiving and processing touch signals. However, after the display signal is powered on, it takes a certain amount of startup time for the bus module in TCON to start (for example, the maximum startup time is 70ms). If the system's sleep command sends a wake-up command within 50ms after VDDIN is powered on, the integrated MCU in TCON is not started and cannot receive and process touch signals. The external MCU is turned off by the enable signal sent by TCON and cannot receive and process touch signals. Both the integrated MCU and the external MCU cannot receive and process touch signals at the same time, which will cause the system's data instructions to be lost.
[0050] In order to solve the above problem, when TCON receives the wake-up command of the display device 100, the display signal of TCON is powered on, and after a preset time, the external MCU is controlled to stop receiving and processing the touch signal of the touch structure, and the integrated MCU is used to receive and process the touch signal of the touch structure. After the preset time, the external MCU has completed the response to the wake-up command, and the integrated MCU in the TCON has also completed the startup. At this time, there will be no conflict and data loss when the bus authority is handed over.
[0051] like Figure 4 As shown in the figure, when Host_I2C is high, the system sends data and instructions. When Host_I2C becomes high, the wake-up instruction is received, and TCON is set to Figure 4 The integrated MCU sends an EN signal to the external MCU after the preset time delay, that is, MCU_EN becomes high after the time delay. TCON completes startup within the preset time, that is, TCON_I2C becomes high during the time delay. However, since TCON has not sent an EN signal to the external MCU when TCON_I2C becomes high, the authority transfer between the integrated MCU and the external MCU has not yet been performed. During the high level of TCON_I2C within the preset time, the external MCU still receives and processes the touch signal. The integrated MCU can only receive part of the data and instructions and cannot process or respond. After the preset time, MCU_I2C becomes low, and the integrated MCU receives and processes the touch signal. Before the preset time, the external MCU receives and processes the touch signal, and after the preset time, the integrated MCU receives and processes the touch signal, and there is no data loss.
[0052] Through the above embodiment, when the display device 100 enters the dormant state, the second control unit 130 can receive and process the touch signal of the touch structure 112. When receiving the wake-up instruction of the display device 100, the first control unit 120 is started within the preset time. After the preset time, the first control unit 120 is started and can receive and process the touch signal of the touch structure 112. At this time, the second control unit 130 is controlled to stop receiving and processing the touch signal of the touch structure 112, and the first control unit 120 is used to receive and process the touch signal of the touch structure 112, so as to avoid the handover of authority when the first control unit 120 is not started, and the situation that neither the first control unit 120 nor the second control unit 130 receives and processes the touch signal, resulting in the loss of the touch function.
[0053] In some scenarios, due to the unpredictable behavior of the system, when the system is already sending a sleep command before TCON is started, and the sleep command has not been sent after the preset time, data loss cannot be avoided. The touch function will still be lost when the external MCU and the integrated MCU transfer permissions.
[0054] like Figure 5 As shown in the figure, TCON is powered on when MCU_EN starts to delay, and the system host starts to send data and instructions after TCON is powered on for a period of time. In this scenario, during the period when the system host sends data and instructions, TCON_I2C receives data and instructions during the high level period, and the integrated MCU can only receive the latter part of the data and instructions. Figure 5 The data loss section in the figure is the data loss section of the integrated MCU. The integrated MCU cannot completely receive the data and instructions sent by the system host. Similarly, when MCU_I2C is at a high level, the external MCU can only receive the first part of the data and instructions, and the external MCU cannot completely receive the data and instructions sent by the system host.
[0055] In some embodiments, the first control unit 120 is further configured to:
[0056] In response to receiving a wake-up instruction of the display device 100, after a preset time period, determining whether the second control unit 130 is in an idle state;
[0057] In response to determining that the second control unit 130 is in an idle state, the second control unit 130 is controlled to stop receiving and processing the touch signal of the touch structure 112 .
[0058] In a specific implementation, when the first control unit 120 receives a wake-up command from the display device 100, the first control unit 120 is powered on, and after a preset period of time, it is determined whether the second control unit 130 is in an idle state, thereby determining whether the second control unit 130 is receiving and processing a touch signal.
[0059] When the second control unit 130 is in an idle state and does not receive and process touch signals, the second control unit 130 is controlled to transfer authority with the first control unit 120, and the second control unit 130 is controlled to stop receiving and processing touch signals of the touch structure 112, and the first control unit 120 is used to receive and process touch signals of the touch structure 112.
[0060] Through the above solution, when the first control unit 120 receives the wake-up instruction of the display device 100, after the preset time, when the second control unit 120 is in an idle state, the authority transfer is performed again, and the second control unit 130 is controlled to stop receiving and processing the touch signal of the touch structure 112. In this way, it is possible to ensure that the first control unit 120 and the second control unit 130 receive and process the touch signal completely, avoiding the problem that the second control unit 130 performs authority transfer during the process of receiving and processing the touch signal, resulting in the first control unit 120 and the second control unit 130 being unable to receive the touch signal completely, thereby avoiding the loss of the touch function.
[0061] In some embodiments, the second control unit 130 is further configured to: send a feedback signal to the first control unit 120, wherein the feedback signal is used to feed back the working status of the second control unit 130 to the first control unit 120;
[0062] The first control unit 120 is further configured to determine whether the second control unit 130 is in an idle state according to the feedback signal.
[0063] During specific implementation, the second control unit 130 sends a feedback signal to the first control unit 120, and the first control unit 120 determines whether the second control unit 130 is in an idle state according to the feedback signal.
[0064] like Figure 6 As shown, the feedback signal is the Interrupt signal (INT signal). The external MCU and TCON communicate through the INT signal so that TCON determines whether the external MCU is in an idle state according to the INT signal. After the preset time of TCON power-on, the external MCU is determined to be in an idle state according to the INT signal, and TCON sends an EN signal to the external MCU for authority transfer.
[0065] like Figure 7As shown, when TCON_INT is low, it indicates that the external MCU is receiving and processing touch signals. When TCON_INT becomes high, it indicates that the external MCU is in idle state, MCU_EN becomes high, and TCON sends an EN signal to the external MCU for authority transfer. In this way, after the preset time, TCON completes the startup, and can receive and process touch signals after the authority transfer with the external MCU. The authority transfer is performed after determining that the external MCU is in idle state according to the feedback signal, which can ensure that the external MCU can fully receive and process touch signals before the authority transfer, and the integrated MCU can fully receive and process touch signals after the authority transfer.
[0066] Through the above scheme, it is possible to accurately determine whether the second control unit 130 is in an idle state based on the feedback signal. When the second control unit 130 is in an idle state, the second control unit 130 and the first control unit 120 perform authority handover again to ensure that the second control unit 130 completely receives and processes the touch signal before the authority handover, and at the same time, the first control unit 120 completely receives and processes the touch signal after the authority handover, thereby avoiding the situation where the first control unit 120 and the second control unit 130 only receive part of the data and instructions during the system sending data and instructions.
[0067] In some embodiments, the first control unit 120 is further configured to:
[0068] In response to the feedback signal being a first electrical signal, determining that the second control unit 130 is in an idle state;
[0069] In response to the feedback signal being a second electrical signal, it is determined that the second control unit 130 is in a non-idle state.
[0070] Specifically, when the feedback signal is at a high level, it indicates that the second control unit 130 is in an idle state; and when the feedback signal is at a low level, it indicates that the second control unit 130 is in a non-idle state.
[0071] like Figure 7 As shown in the figure, when TCON_INT is high, the external MCU is in an idle state, indicating that the external MCU is not receiving processing data and instructions. When TCON_INT is low, the external MCU is in a non-idle state, indicating that the external MCU is receiving processing data and instructions.
[0072] Through the above scheme, it is possible to accurately determine whether the second control unit 130 is in an idle state based on the feedback signal, so that authority transfer can be performed when the second control unit 130 is in an idle state, avoiding the problem that the first control unit 120 and the second control unit 130 cannot completely receive and process the touch signal.
[0073] In some embodiments, the first control unit 120 is further configured to: control the second control unit 130 to stop receiving and processing the touch signal of the touch structure 112 through an enable signal;
[0074] The second control unit 130 is further configured to stop receiving and processing the touch signal of the touch structure 112 in response to the enable signal being the first electrical signal.
[0075] In a specific implementation, the first electrical signal is at a high level, and when the enable signal sent by the first control unit 120 to the second control unit 130 is at a high level, the second control unit 130 is controlled to stop receiving and processing the touch signal of the touch structure 112 .
[0076] like Figure 1 and Figure 6 As shown, TCON sends an enable signal (EN signal) to the external MCU, and the integrated MCU and the external MCU perform authority transfer.
[0077] like Figure 1 As shown, when TCON is powered on, after a preset time, TCON sends an EN signal to the external MCU for authority transfer. After the authority transfer, the external MCU stops receiving and processing data and instructions, and uses the integrated MCU in TCON to receive and process data and instructions.
[0078] like Figure 6 As shown in the figure, when TCON is powered on, after a preset time, the external MCU sends an INT signal to TCON to feedback the working status of the external MCU. When the INT signal is high, TCON sends an EN signal to the external MCU for authority transfer. After the authority transfer, the external MCU stops receiving and processing data and instructions, and uses the integrated MCU in TCON to receive and process data and instructions.
[0079] Through the above solution, the first control unit 120 controls the second control unit 130 to stop receiving and processing the touch signal of the touch structure 112 through the enable signal, and can accurately and quickly control the second control unit 130 and the first control unit 120 to perform authority handover.
[0080] In some embodiments, Figure 8 As shown, the first control unit 120 and the second control unit 130 are electrically coupled to the host 140 of the display device 100 via a bus;
[0081] The second control unit 130 is further configured to: in response to the enable signal being the first electrical signal, stop receiving the control signal of the host 140;
[0082] The first control unit 120 is further configured to feed back a response signal to the host 140 to start receiving a control signal from the host 140 .
[0083] In specific implementation, when the first control unit 120 and the second control unit 130 are performing authority handover, when the second control unit 130 receives an enable signal that is a first electrical signal, the second control unit 130 stops receiving control signals from the host 140, thereby realizing that the second control unit 130 stops receiving and processing touch signals. The first control unit 120 feeds back an acknowledgement signal to the host 140 to start receiving control signals from the host 140, thereby realizing receiving and processing touch signals using the first control unit 120. Among them, the acknowledgement signal (ACK signal) is used to indicate that the control signal has been received normally.
[0084] like Figure 1 and Figure 6 As shown, the host 140 is a system Host. When the TCON performs authority transfer with the external MCU, the TCON feeds back a response signal to the system Host to start receiving control signals from the system Host.
[0085] Through the above solution, the second control unit 130 stops receiving the control signal of the host 140, and the first control unit 120 starts receiving the control signal of the host 140, thereby realizing the authority handover between the second control unit 130 and the first control unit 120. According to the response signal, it can be accurately determined whether the control signal has been received normally, and the first control unit 120 feeds back the response signal to the host 140, thereby starting to receive the control signal of the host 140.
[0086] In some scenarios, if the system host starts to send a sleep command at the moment when the external MCU and TCON complete the authority handover. In this scenario, since the external MCU and TCON complete the authority handover, the integrated MCU in TCON can normally receive and process data and instructions. At the same time, since the system host starts to send a sleep command, the external MCU can also normally receive and process data and instructions. In this way, Fig. 9 As shown in the figure, when Host_I2C is at a high level, TCON_I2C and MCU_I2C are both at high levels, that is, the integrated MCU in TCON and the external MCU can completely read the address and command of the system Host. In this process, there will be two devices with the same address, TCON and the external MCU, and errors will occur in the response process.
[0087] In some embodiments, the first control unit 120 is further configured to:
[0088] Determining whether the address information of the first control unit 120 sent by the host 140 is received;
[0089] In response to determining that the address information of the first control unit 120 sent by the host 140 is not completely received, clock stretching is performed on the clock signal of the bus, and the second control unit 130 is controlled to stop receiving and processing the touch signal of the touch structure 112;
[0090] In response to determining that the first control unit 120 feeds back a response signal to the host 140 to start receiving the control signal of the host 140 , the clock stretching of the clock signal of the bus is stopped.
[0091] In a specific implementation, by determining whether the first control unit 120 receives the address information of the first control unit 120 sent by the host 140, it is possible to accurately determine whether both the first control unit 120 and the second control unit 130 can completely read the address and command of the host 140. When the first control unit 120 does not completely receive the address information of the first control unit 120 sent by the host 140, it is determined that both the first control unit 120 and the second control unit 130 can completely read the address and command of the host 140.
[0092] In this scenario, the clock signal of the bus is clock stretched, and the second control unit 130 is controlled to stop receiving and processing the touch signal of the touch structure 112. When the first control unit 120 feeds back a response signal to the host 140 to start receiving the control signal of the host 140, the clock stretching of the clock signal of the bus is stopped.
[0093] Specifically, TCON detects whether the bus has read the complete address information. Before the address is answered, TCON holds the bus signal through the clock extension function of the bus protocol, and controls the external MCU to stop receiving and processing data and instructions. When the authority handover between TCON and the external MCU is completed, the bus signal is released, and the system Host will continue to send the clock signal and TCON can also reply to the response signal normally. In this way, since the external MCU stops receiving and processing data and commands, there are no two devices with the same address, and the data of the system Host will be completely received and responded.
[0094] like Fig.10 As shown, when MCU_EN becomes a high level, the external MCU and the integrated MCU in TCON transfer authority. When the system Host starts to issue a sleep instruction at this time, causing the external MCU and the integrated MCU to completely read the address and command of the system Host, the clock signal SCL and the data signal SDA are controlled to perform clock extension.
[0095] Through the above solution, when the second control unit 130 and the first control unit 120 can completely read the address and command of the host 140, the clock signal of the bus is extended to control the second control unit 130 to stop receiving and processing the touch signal of the touch structure 112, so as to avoid the second control unit 130 and the first control unit 120, two devices with the same address, to respond at the same time. When the first control unit 120 feeds back a response signal to the host 140 to start receiving the control signal of the host 140, the clock extension of the clock signal of the bus is stopped, so that the first control unit 120 can respond to the signal normally.
[0096] In some embodiments, the first control unit 120 is further configured to:
[0097] In response to receiving a sleep instruction from the host 140 while determining that the address information of the first control unit 120 sent by the host 140 is received, it is determined that the first control unit 120 has not completely received the address information of the first control unit 120 sent by the host 140.
[0098] In specific implementation, at the moment when the second control unit 130 and the first control unit 120 complete the authority handover, the host 140 starts to send a sleep command. In this scenario, since the second control unit 130 and the first control unit 120 complete the authority handover, the first control unit 120 can normally receive the control signal of the host 140. At the same time, since the host 140 starts to send the sleep command, the second control unit 130 can also normally receive the control signal of the host 140. In this way, there will be a situation where the first control unit 120 and the second control unit 130, two devices with the same address, receive and respond to the control signal of the host 140 at the same time, resulting in a response error. Therefore, in this scenario, the clock signal of the bus is clock stretched.
[0099] Specifically, at the moment when the external MCU and TCON complete the authority handover, the system host starts to send a sleep command. In this scenario, since the external MCU and TCON complete the authority handover, the integrated MCU in TCON can normally receive and process data and instructions. At the same time, since the system host starts to send a sleep command, the external MCU can also normally receive and process data and instructions. In this way, the integrated MCU in TCON and the external MCU, two devices with the same address, will receive and respond to the data and commands of the system host at the same time, resulting in a response error. Therefore, in this scenario, the clock signal of the bus is clock stretched.
[0100] Through the above solution, when the first control unit 120 receives the address signal of the first control unit 120 sent by the host 140, the first control unit 120 can normally receive the control signal of the host 140. Since the first control unit 120 receives the sleep command sent by the host 140, the second control unit 130 starts to normally receive the control signal of the host 140. By determining that the first control unit 120 receives the address information of the first control unit 120 sent by the host 140 and receives the sleep command sent by the host 140 at the same time, it can accurately identify that the first control unit 120 and the second control unit 130 have a response error problem.
[0101] Through the above embodiment, when the display device 100 enters the dormant state, the second control unit 130 can receive and process the touch signal of the touch structure 112. When receiving the wake-up instruction of the display device 100, the first control unit 120 is started within the preset time. After the preset time, the first control unit 120 is started and can receive and process the touch signal of the touch structure 112. At this time, the second control unit 130 is controlled to stop receiving and processing the touch signal of the touch structure 112, and the first control unit 120 is used to receive and process the touch signal of the touch structure 112, so as to avoid the handover of authority when the first control unit 120 is not started, and the situation that neither the first control unit 120 nor the second control unit 130 receives and processes the touch signal, resulting in the loss of the touch function.
[0102] For the convenience of description, the above device is described by dividing it into various modules according to its functions. Of course, when implementing the present disclosure, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0103] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments, the present disclosure further provides a control method for a display device, and the control method is applied to the display device described in the above-mentioned embodiments; the display device comprises: a touch display panel, a first control unit and a second control unit; the touch display panel comprises: a display structure and a touch structure; the first control unit is electrically coupled to the touch display panel; the second control unit is electrically coupled to the touch structure and the first control unit; Fig.11 As shown, the method includes:
[0104] Step 201, in the display state of the display device, the first control unit provides a display signal to the display structure and receives and processes a touch signal from the touch structure;
[0105] Step 202, in response to determining that the display device enters a sleep state, the second control unit receives and processes a touch signal of the touch structure;
[0106] Step 203: In response to receiving a wake-up instruction of the display device, after a preset time period, the first control unit controls the second control unit to stop receiving and processing the touch signal of the touch structure.
[0107] In a specific implementation, when the display device enters a dormant state, the second control unit receives and processes the touch signal of the touch structure. When a wake-up command of the display device is received, the first control unit starts to start, and after a preset time, the first control unit completes the startup, and then the second control unit and the first control unit perform authority transfer. Specifically, after the second control unit completes the authority transfer with the first control unit, the second control unit is controlled to stop receiving and processing the touch signal of the touch structure, and the first control unit is used to receive and process the touch signal of the touch structure.
[0108] like Fig.12 As shown, when receiving the wake-up command of the display device, TCON is powered on. After TCON is powered on, the integrated MCU in TCON starts to start, MCU_EN delays 70ms, and 70ms after TCON is powered on, TCON sends an EN signal to the external MCU.
[0109] TCON detects whether MCU_INT is high level, so as to determine whether the external MCU is in idle state. When MCU_INT is high level, it means that the external MCU is in idle state, and the external MCU is controlled to stop receiving and processing data and instructions. When MCU_INT is low level, it means that the external MCU is not in idle state, and TCON detects whether the bus has read the complete address information. When the bus has read the complete address information, the clock signal of the bus is stretched.
[0110] Through the above-mentioned embodiments, when the display device enters a dormant state, the second control unit can receive and process the touch signal of the touch structure. When receiving a wake-up command from the display device, the first control unit starts within a preset time, and after the preset time, it is determined that the second control unit is in an idle state, and the second control unit is controlled to stop receiving and processing the touch signal of the touch structure. In this way, when the first control unit is ensured to complete the startup and the second control unit does not receive a touch signal, the second control unit and the first control unit can be controlled to perform authority transfer, thereby avoiding the situation where neither the first control unit nor the second control unit receives and processes the touch signal, resulting in the loss of the touch function. In addition, the first control unit determines whether the bus has read the complete address information, and performs clock extension on the clock signal of the bus, thereby avoiding the problem of response errors caused by the two devices with the same address, the second control unit and the first control unit, responding at the same time.
[0111] In some embodiments, step 203 includes:
[0112] Step 2031, in response to receiving a wake-up instruction of the display device, after a preset time period, the first control unit determines whether the second control unit is in an idle state;
[0113] Step 2032: in response to determining that the second control unit is in an idle state, the first control unit controls the second control unit to stop receiving and processing the touch signal of the touch structure.
[0114] In some embodiments, step 2031 includes:
[0115] Step 20311: The second control unit sends a feedback signal to the first control unit, where the feedback signal is used to feed back the working state of the second control unit to the first control unit;
[0116] Step 20312: The first control unit determines whether the second control unit is in an idle state according to the feedback signal.
[0117] In some embodiments, step 20312 includes:
[0118] Step 203121: in response to the feedback signal being a first electrical signal, the first control unit determines that the second control unit is in an idle state;
[0119] Step 203122: in response to the feedback signal being a second electrical signal, the first control unit determines that the second control unit is in a non-idle state.
[0120] In some embodiments, step 2032 includes:
[0121] Step 20321, the first control unit controls the second control unit to stop receiving and processing the touch signal of the touch structure through an enable signal;
[0122] Step 20322: in response to the enable signal being a first electrical signal, the second control unit stops receiving and processing the touch signal of the touch structure.
[0123] In some embodiments, the first control unit and the second control unit are electrically coupled to a host of the display device via a bus; step 20322 includes:
[0124] Step 203221, in response to the enable signal being the first electrical signal, the second control unit stops receiving the control signal from the host;
[0125] Step 203222: The first control unit feeds back a response signal to the host to start receiving control signals from the host.
[0126] In some embodiments, after step 203222, the method further includes:
[0127] Step 2032221, the first control unit determines whether the address information of the first control unit sent by the host is received;
[0128] Step 2032222: in response to determining that the first control unit has not completely received the address information of the first control unit sent by the host, performing clock stretching on the clock signal of the bus, and controlling the second control unit to stop receiving and processing the touch signal of the touch structure;
[0129] Step 2032223, in response to determining that the first control unit feeds back a response signal to the host to start receiving control signals from the host, stop clock stretching of the clock signal of the bus.
[0130] In some embodiments, step 2032221 includes:
[0131] Step 2032221A, in response to determining that the first control unit receives the address information of the first control unit sent by the host and receives a sleep instruction sent by the host, determines that the first control unit has not completely received the address information of the first control unit sent by the host.
[0132] It should be noted that the method of the embodiment of the present disclosure can be performed by a single device, such as a computer or a server. The method of the present embodiment can also be applied in a distributed scenario and completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only perform one or more steps in the method of the embodiment of the present disclosure, and the multiple devices will interact with each other to complete the described method.
[0133] It should be noted that the above describes some embodiments of the present disclosure. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the above embodiments and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0134] The method of the above embodiment is applied to the corresponding display device in any of the above embodiments, and has the beneficial effects of the corresponding device embodiment, which will not be described in detail here.
[0135] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the display method described in any of the above embodiments is implemented.
[0136] Fig.13 A more specific schematic diagram of the hardware structure of an electronic device provided in this embodiment is shown, and the device may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other through the bus 1050 in the device.
[0137] The processor 1010 can be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0138] The memory 1020 may be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage device, dynamic storage device, etc. The memory 1020 may store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented by software or firmware, the relevant program codes are stored in the memory 1020 and are called and executed by the processor 1010.
[0139] The input / output interface 1030 is used to connect the input / output module to realize information input and output. The input / output module can be configured in the device as a component (not shown in the figure), or it can be externally connected to the device to provide corresponding functions. The input device may include a keyboard, a mouse, a touch screen, a microphone, various sensors, etc., and the output device may include a display, a speaker, a vibrator, an indicator light, etc.
[0140] The communication interface 1040 is used to connect a communication module (not shown in the figure) to realize communication interaction between the device and other devices. The communication module can realize communication through a wired mode (such as USB (Universal Serial Bus), network cable, etc.), or through a wireless mode (such as mobile network, WIFI (Wireless Fidelity), Bluetooth, etc.).
[0141] The bus 1050 includes a path that transmits information between the various components of the device (eg, the processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040).
[0142] It should be noted that, although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device may also include other components necessary for normal operation. In addition, it can be understood by those skilled in the art that the above device may also only include the components necessary for implementing the embodiments of the present specification, and does not necessarily include all the components shown in the figure.
[0143] The electronic device of the above embodiment is used to implement the corresponding display method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be described in detail here.
[0144] Based on the same inventive concept, corresponding to any of the above-mentioned embodiment methods, the present disclosure also provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the display method described in any of the above embodiments.
[0145] The computer-readable medium of this embodiment includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.
[0146] The computer instructions stored in the storage medium of the above embodiments are used to enable the computer to execute the display method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0147] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present disclosure further provides a computer program product, including computer program instructions, which, when executed on a computer, enable the computer to execute the display method as described in any of the above-mentioned embodiments.
[0148] The computer program instructions of the computer program product of the above embodiments are used to enable the computer to execute the display method described in any of the above embodiments, and have the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0149] Those skilled in the art should understand that the discussion of any of the above embodiments is merely illustrative and is not intended to imply that the scope of the present disclosure (including the claims) is limited to these examples. Based on the concept of the present disclosure, the technical features in the above embodiments or different embodiments may be combined, the steps may be implemented in any order, and there are many other variations of the different aspects of the embodiments of the present disclosure as described above, which are not provided in detail for the sake of simplicity.
[0150] In addition, to simplify the description and discussion, and in order not to make the embodiments of the present disclosure difficult to understand, the known power / ground connections to the integrated circuit (IC) chips and other components may or may not be shown in the provided figures. In addition, the device can be shown in the form of a block diagram to avoid making the embodiments of the present disclosure difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform on which the embodiments of the present disclosure will be implemented (that is, these details should be fully within the scope of understanding of those skilled in the art). Where specific details (e.g., circuits) are set forth to describe exemplary embodiments of the present disclosure, it is apparent to those skilled in the art that the embodiments of the present disclosure can be implemented without these specific details or with changes in these specific details. Therefore, these descriptions should be considered illustrative rather than restrictive.
[0151] Although the present disclosure has been described in conjunction with specific embodiments of the present disclosure, many replacements, modifications and variations of these embodiments will be apparent to those skilled in the art from the foregoing description. For example, other memory architectures (e.g., dynamic RAM (DRAM)) may use the embodiments discussed.
[0152] The embodiments of the present disclosure are intended to cover all such substitutions, modifications and variations that fall within the broad scope of the appended claims. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present disclosure should be included in the scope of protection of the present disclosure.
Claims
1. A display device, include: A touch display panel, comprising a display structure and a touch structure; A first control unit, electrically coupled to the touch display panel, configured to: provide a display signal to the display structure and receive and process a touch signal of the touch structure in a display state of the display device; A second control unit, electrically coupled to the touch control structure and the first control unit, and configured to: in response to determining that the display device enters a dormant state, receive and process a touch signal of the touch control structure; The first control unit is further configured to: in response to receiving a wake-up instruction from the display device, control the second control unit to stop receiving and processing the touch signal of the touch structure after a preset time period.
2. The display device according to claim 1, It is characterized in that The first control unit is further configured to: In response to receiving a wake-up instruction of the display device, determining whether the second control unit is in an idle state after a preset time period; In response to determining that the second control unit is in an idle state, the second control unit is controlled to stop receiving and processing the touch signal of the touch structure.
3. The display device according to claim 2, It is characterized in that The second control unit is further configured to: send a feedback signal to the first control unit, wherein the feedback signal is used to feed back a working state of the second control unit to the first control unit; The first control unit is further configured to determine whether the second control unit is in an idle state according to the feedback signal.
4. The display device according to claim 3, It is characterized in that The first control unit is further configured to: In response to the feedback signal being a first electrical signal, determining that the second control unit is in an idle state; In response to the feedback signal being a second electrical signal, it is determined that the second control unit is in a non-idle state.
5. The display device according to claim 2, It is characterized in that The first control unit is further configured to: control the second control unit to stop receiving and processing the touch signal of the touch structure through an enable signal; The second control unit is further configured to: in response to the enable signal being a first electrical signal, stop receiving and processing the touch signal of the touch structure.
6. The display device according to claim 5, It is characterized in that The first control unit and the second control unit are electrically coupled to a host of the display device via a bus; The second control unit is further configured to: in response to the enable signal being a first electrical signal, stop receiving the control signal from the host; The first control unit is further configured to feed back a response signal to the host to start receiving a control signal from the host.
7. The display device according to claim 6, It is characterized in that The first control unit is further configured to: determining whether the address information of the first control unit sent by the host is received; In response to determining that the address information of the first control unit sent by the host is not completely received, performing clock stretching on the clock signal of the bus, and controlling the second control unit to stop receiving and processing the touch signal of the touch structure; In response to determining that the first control unit feeds back a response signal to the host to start receiving a control signal from the host, clock stretching of a clock signal of the bus is stopped.
8. The display device according to claim 7, It is characterized in that The first control unit is further configured to: In response to receiving a sleep instruction from the host while determining that the address information of the first control unit sent by the host is received, it is determined that the first control unit has not completely received the address information of the first control unit sent by the host.
9. A method for controlling a display device, It is characterized in that The display device comprises: a touch display panel, a first control unit and a second control unit; the touch display panel comprises: a display structure and a touch structure; the first control unit is electrically coupled to the touch display panel; the second control unit is electrically coupled to the touch structure and the first control unit; the method comprises: In the display state of the display device, the first control unit provides a display signal to the display structure and receives and processes a touch signal from the touch structure; In response to determining that the display device enters a dormant state, the second control unit receives and processes a touch signal of the touch structure; In response to receiving a wake-up instruction from the display device, after a preset time period, the first control unit controls the second control unit to stop receiving and processing the touch signal of the touch structure.
10. The method according to claim 9, It is characterized in that In response to receiving the wake-up instruction of the display device, after a preset time period, the first control unit controls the second control unit to stop receiving and processing the touch signal of the touch structure, including: In response to receiving a wake-up instruction of the display device, the first control unit determines whether the second control unit is in an idle state after a preset time period; In response to determining that the second control unit is in an idle state, the first control unit controls the second control unit to stop receiving and processing the touch signal of the touch structure.
11. The method according to claim 10, It is characterized in that The first control unit determines whether the second control unit is in an idle state, comprising: The second control unit sends a feedback signal to the first control unit, wherein the feedback signal is used to feed back a working state of the second control unit to the first control unit; The first control unit determines whether the second control unit is in an idle state according to the feedback signal.
12. The method according to claim 11, It is characterized in that The first control unit determines whether the second control unit is in an idle state according to the feedback signal, including: In response to the feedback signal being a first electrical signal, the first control unit determines that the second control unit is in an idle state; In response to the feedback signal being a second electrical signal, the first control unit determines that the second control unit is in a non-idle state.
13. The method according to claim 10, It is characterized in that The first control unit controls the second control unit to stop receiving and processing the touch signal of the touch structure, including: The first control unit controls the second control unit to stop receiving and processing the touch signal of the touch control structure through an enable signal; In response to the enable signal being a first electrical signal, the second control unit stops receiving and processing the touch signal of the touch structure.
14. The method according to claim 13, It is characterized in that The first control unit and the second control unit are electrically coupled to the host of the display device through a bus; in response to the enable signal being a first electrical signal, the second control unit stops receiving and processing the touch signal of the touch structure, including: In response to the enable signal being a first electrical signal, the second control unit stops receiving the control signal from the host; The first control unit feeds back a response signal to the host to start receiving a control signal from the host.
15. The method according to claim 14, It is characterized in that Also includes: The first control unit determines whether the address information of the first control unit sent by the host is received; In response to determining that the first control unit has not completely received the address information of the first control unit sent by the host, clock stretching is performed on the clock signal of the bus, and the second control unit is controlled to stop receiving and processing the touch signal of the touch structure; In response to determining that the first control unit feeds back a response signal to the host to start receiving a control signal from the host, clock stretching of a clock signal of the bus is stopped.
16. The method according to claim 15, It is characterized in that The first control unit determines whether the address information of the first control unit sent by the host is received, including: In response to determining that the first control unit receives a sleep instruction sent by the host while receiving the address information of the first control unit sent by the host, it is determined that the first control unit has not completely received the address information of the first control unit sent by the host.
17. An electronic device, It is characterized in that The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 9 to 16 is implemented.
18. A non-transitory computer readable storage medium, It is characterized in that The non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause a computer to execute the method of any one of claims 9 to 16.
19. A computer program product comprising computer program instructions, It is characterized in that When the computer program instructions are executed on a computer, the computer is caused to perform the method according to any one of claims 9 to 16.
