Aggregation chip control method, electronic equipment and readable storage medium
By switching the working mode according to the working state of the touch screen device in the control device of the polymerization chip, the problems of high power consumption and poor flexibility of the polymerization chip are solved, efficient data acquisition and low power consumption in different screen states are achieved, and electronics are improved Equipment performance and reliability.
Patent Information
- Application Number
- CN202310702234.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-13
- Publication Date
- 2024-12-13
AI Technical Summary
Existing polymeric chips consume a lot of power in electronic devices and have poor flexibility, so they cannot effectively adapt to changes in the working state of touch screen devices, resulting in problems such as large number of interfaces, poor connection stability and high power consumption.
By switching its operating mode according to the operating state of the touch screen device in the control device of the aggregation chip, switching from high sampling frequency to low sampling frequency is reduced to power consumption, and adjusting the sampling frequency in different screen states to meet user needs.
It realizes that on the basis of ensuring data integrity and user experience, it reduces the power consumption of the aggregate chip, reduces the number of interfaces, improves the stability of motherboard connections, and improves the performance and reliability of electronic devices.
Smart Images

Figure CN119126964A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of terminal technology, and in particular to a control method of an aggregate chip, an electronic device, and a readable storage medium. Background Art
[0002] At present, at least two mainboards may be provided in some electronic devices, and each mainboard may carry different devices to realize different functions. For example, the first mainboard of the electronic device may carry devices such as a central processing unit (CPU) and a graphics processing unit (GPU) that support main logic calculations, and the second mainboard may carry devices such as a touch panel (TP) device and a camera device for collecting user data.
[0003] In order to reduce the number of interfaces connecting at least two mainboards and improve the connection stability of the mainboards, an aggregation chip can be provided in the electronic device, and the aggregation chip is used to aggregate the data transmission bus of each mainboard. The aggregation chip can sample the data collected by the device carried on the second mainboard at a preset sampling frequency, but this method has poor flexibility and the power consumption of the aggregation chip is large. Summary of the invention
[0004] The embodiments of the present application provide a control method of an aggregate chip, an electronic device, and a readable storage medium, which can adaptively switch the working mode of the aggregate chip according to the working state of the TP device and reduce the power consumption of the aggregate chip.
[0005] In the first aspect, the embodiment of the present application provides a control method of a polymer chip, which is applied to a control device of the polymer chip. The control device of the polymer chip can be a central processing unit CPU in an electronic device, a module in a CPU, or a chip in an electronic device. The following description takes the control device of the polymer chip as an example. In this method, when the sampling frequency of the polymer chip is a first sampling frequency, the polymer chip can obtain touch data by sampling from a touch screen TP device at the first sampling frequency. The polymer chip can send the touch data to the control device of the polymer chip, and the control device of the polymer chip can receive the touch data from the polymer chip.
[0006] The touch data may carry an identifier indicating the working state of the TP device. In the embodiment of the present application, the control device of the aggregation chip may send a second instruction to the aggregation chip when determining that the working state of the TP device is an idle state based on the touch data. The second instruction is used to instruct the aggregation chip to switch to a second working mode, and the second working mode corresponds to a second sampling frequency, which is less than the first sampling frequency.
[0007] In response to the second instruction, the aggregation chip can switch to the second working mode and sample touch data from the TP device at a second sampling frequency.
[0008] In an embodiment of the present application, the control device of the aggregate chip can adaptively switch the working mode of the aggregate chip according to the working state of the TP device. When the TP device is in an idle state, the aggregate chip can switch to the second working mode and sample touch data at a lower sampling frequency, thereby reducing the power consumption of the aggregate chip.
[0009] In a possible implementation, the first operating mode may correspond to the first sampling frequency. Before the above-mentioned aggregation chip samples touch data from the TP device at the first sampling frequency, the control device of the aggregation chip may send a first instruction to the aggregation chip, and the first instruction is used to instruct the aggregation chip to switch to the first operating mode.
[0010] The control device of the polymer chip may receive an interrupt signal from the TP device and detect whether the polymer chip is in the first working mode. If the polymer chip is not in the first working mode, the control device of the polymer chip may send a first instruction to the polymer chip to instruct the polymer chip to switch to the first working mode.
[0011] In an embodiment of the present application, the interrupt signal is used to instruct the control device of the aggregation chip to obtain touch data from the TP device. In order to ensure that the touch data can be completely obtained, the control device of the aggregation chip can instruct the aggregation chip to switch to the first working mode to prepare for complete sampling of touch data.
[0012] In one possible implementation, when the electronic device is in the screen-on state, the user has high requirements for the TP performance of the electronic device, such as the user requires the stylus to have good hand tracking and quick touch response, etc. In an embodiment of the present application, when the electronic device is in the screen-on state, in response to receiving an interrupt signal from the TP device, the control device of the aggregate chip can detect whether the aggregate chip is in the first operating mode.
[0013] In a possible implementation, when the electronic device is in a screen-on state and the TP device is in an idle state, in some preset scenarios, the user has high requirements for the TP performance of the electronic device, such as the user needs the stylus to have good hand tracking and quick touch response, etc. Exemplarily, the preset scenario may be a stylus touch scenario, a game scenario, or an input method scenario, etc. In this embodiment, although the TP device is in an idle state and no finger or stylus touches the TP temporarily, in order to meet the user's requirements for high performance of the electronic device TP, the aggregate chip may still work in the first working mode to improve the user experience.
[0014] When the electronic device is in a screen-on state and it is determined that the working state of the TP device is an idle state, the control device of the aggregation chip can detect whether the electronic device is in a preset scene. In response to the electronic device being in a preset scene, the aggregation chip can work in a first working mode. In response to the electronic device being in a preset scene, the control device of the aggregation chip can send a second instruction to the aggregation chip to instruct the aggregation chip to work in a second working mode to reduce the power consumption of the aggregation chip.
[0015] In a possible implementation, after the control device of the aggregate chip receives an interrupt signal from the TP device, when the electronic device is in an off-screen state, the control device of the aggregate chip may send a third instruction to the aggregate chip, wherein the third instruction is used to instruct the aggregate chip to maintain a current operating mode, which is the first operating mode or the second operating mode.
[0016] In this manner, when the electronic device is in the screen-off state, no matter whether the aggregate chip is operating in the first operating mode or the second operating mode, the control device of the aggregate chip can sample touch data through the aggregate chip. In this embodiment, in order to ensure that the aggregate chip does not miss touch data, the aggregate chip can be controlled not to switch the operating mode when the touch data is transmitted.
[0017] In response to the completion of the transmission of the touch data sampled by the aggregate chip in the current working mode, the control device of the aggregate chip may send a fourth instruction to the aggregate chip, where the fourth instruction is used to instruct the aggregate chip to cancel and maintain the current working mode.
[0018] In an embodiment of the present application, when the electronic device is in the screen-off state, in order to ensure that the aggregation chip does not miss touch data, the aggregation chip can be controlled not to switch the working mode during touch data transmission. When the touch data transmission is completed, the aggregation chip can release the current mode.
[0019] In one possible implementation, the first sampling frequency of the aggregate chip when the electronic device is in the screen-on state is different from the first sampling frequency of the aggregate chip when the electronic device is in the screen-off state, and the second sampling frequency of the aggregate chip when the electronic device is in the screen-off state is different from the second sampling frequency of the aggregate chip when the electronic device is in the screen-off state.
[0020] Exemplarily, when the electronic device is in the screen-off state, the first sampling frequency and the second sampling frequency of the aggregate chip are respectively lower than the first sampling frequency and the second sampling frequency of the aggregate chip when the electronic device is in the screen-off state, which can further reduce the power consumption of the aggregate chip.
[0021] In a second aspect, an embodiment of the present application provides a control method for a polymer chip, which is applied to a polymer chip. In this method, the polymer chip can sample touch data from a touch screen TP device at a first sampling frequency, and send the touch data to a control device of the polymer chip. When the polymer chip receives a second instruction from the control device of the polymer chip, the polymer chip can switch to a second working mode, wherein the second instruction is sent by the control device of the polymer chip when the TP device is in an idle state, and the second working mode corresponds to a second sampling frequency, which is less than the first sampling frequency.
[0022] When the aggregation chip switches to the second working mode, the second sampling frequency may be used to sample the TP device to obtain touch data, and the aggregation chip may send the touch data to the control device of the aggregation chip.
[0023] In a possible implementation, before adopting the first sampling frequency to sample the touch screen TP device to obtain touch data, it also includes: receiving a first instruction from the control device of the aggregate chip, the first instruction is used to instruct the aggregate chip to switch to a first working mode, the first working mode corresponds to the first sampling frequency, and the aggregate chip can switch to the first working mode in response to the first instruction.
[0024] In a possible implementation, the method further includes: the aggregation chip receives a third instruction from the control device of the aggregation chip, the third instruction is used to instruct the aggregation chip to maintain a current working mode, the current working mode is the first working mode or the second working mode. In response to the third instruction, the aggregation chip can adopt a sampling frequency corresponding to the current working mode to sample the TP device to obtain touch data, and send the touch data to the control device of the aggregation chip.
[0025] When the touch data transmission is completed, the aggregation chip may receive a fourth instruction from the control device of the aggregation chip, wherein the fourth instruction is used to instruct the aggregation chip to cancel the current working mode. In response to the fourth instruction, the aggregation chip may cancel the current working mode.
[0026] In a possible implementation, the method further includes: in response to the electronic device being powered on, the aggregation chip may be initialized to a first operating mode, where the first operating mode corresponds to the first sampling frequency.
[0027] In this implementation, the reason why the aggregation chip is initialized to the first working mode is that after the electronic device is turned on, the user can touch the screen at any time, and the aggregation chip can be prepared to sample touch data at a high sampling frequency to ensure complete sampling of touch data.
[0028] In one possible implementation, the first sampling frequency of the aggregate chip when the electronic device is in a screen-on state is different from the first sampling frequency of the aggregate chip when the electronic device is in a screen-off state, and the second sampling frequency of the aggregate chip when the electronic device is in a screen-off state is different from the second sampling frequency of the aggregate chip when the electronic device is in a screen-off state.
[0029] In a third aspect, an embodiment of the present application provides a control device of a polymer chip, which may include a unit, a module or a circuit for executing the method provided in the first aspect above.
[0030] In a fourth aspect, an embodiment of the present application provides an aggregate chip, which may include a unit, a module or a circuit for executing the method provided in the second aspect above.
[0031] In a fifth aspect, an embodiment of the present application provides an electronic device, which includes the control device of the polymer chip of the third aspect and the polymer chip of the fourth aspect. The control device of the polymer chip is used to execute the control method of the polymer chip of the first aspect, and the polymer chip is used to execute the control method of the polymer chip of the second aspect.
[0032] In a possible implementation, the electronic device includes a first mainboard and a second mainboard. The aggregation chip is used to connect the first mainboard and the second mainboard, the first mainboard includes a control device of the aggregation chip, and the second mainboard includes a touch screen TP device.
[0033] In a sixth aspect, an embodiment of the present application provides an electronic device, which may include: a processor and a memory. The memory is used to store computer executable program code, and the program code includes instructions; when the processor executes the instructions, the instructions cause the electronic device to execute the method in the first aspect and the second aspect.
[0034] In a seventh aspect, an embodiment of the present application provides an electronic device, which may include a unit, a module or a circuit for executing the method provided in the first aspect or the second aspect above.
[0035] In an eighth aspect, an embodiment of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the methods in the first and second aspects above.
[0036] In a ninth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, and when the computer-readable storage medium is run on a computer, the computer executes the methods in the first and second aspects above.
[0037] The beneficial effects of the possible implementation methods of the second to ninth aspects mentioned above can be referred to the beneficial effects brought about by the first aspect mentioned above, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A structural schematic diagram of an existing electronic device;
[0039] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0040] Figure 3 Another structural schematic diagram of an electronic device provided in an embodiment of the present application;
[0041] Figure 4 A schematic flow chart of an embodiment of a method for controlling a polymer chip provided in an embodiment of the present application;
[0042] Figure 5A A schematic flow chart of another embodiment of a control method for a polymer chip provided in an embodiment of the present application;
[0043] Figure 5B A schematic flow chart of another embodiment of a control method for a polymer chip provided in an embodiment of the present application;
[0044] Figure 6 A schematic diagram of the working mode switching of the aggregation chip provided in an embodiment of the present application;
[0045] Figure 7 A schematic flow chart of another embodiment of a control method for a polymer chip provided in an embodiment of the present application;
[0046] Figure 8 Another schematic diagram of the working mode switching of the aggregation chip provided in the embodiment of the present application;
[0047] Fig. 9 Another schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0048] The electronic device in the embodiments of the present application may be referred to as user equipment (UE), terminal, etc. For example, the electronic device may be a mobile phone, a portable android device (PAD), a personal computer (PC), a personal digital assistant (PDA), a handheld device with a wireless communication function, a computing device, a vehicle-mounted device or a wearable device, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in a smart home, etc. The form of the electronic device is not specifically limited in the embodiments of the present application.
[0049] A mainboard may be provided in an electronic device, and the mainboard may also be referred to as a system board or a motherboard. The mainboard is one of the most basic and important components in an electronic device. In some embodiments, the mainboard is generally a circuit board, and the main circuit system of the electronic device may be carried on the mainboard. For example, the mainboard may carry devices such as a central processing unit (CPU), a graphics processing unit (GPU), etc. that support main logical calculations, and the mainboard may also carry devices such as a basic input output system (BIOS) chip, an input / output (I / O) control chip, a keyboard and panel control switch interface, an indicator light connector, an expansion slot, a mainboard and a DC power supply connector for a plug-in card, and the like.
[0050] With the development of electronic devices and the diversification of electronic device forms, at least two mainboards can be set in some electronic devices. Exemplarily, two mainboards can be set in a large-screen folding device, namely a first mainboard and a second mainboard. Among them, the first mainboard can carry devices such as a central processing unit (CPU) and a graphics processing unit (GPU) that support main logical calculations, and the second mainboard can carry devices such as touch screen (TP) devices and camera devices for collecting user data. Among them, TP devices can be used to collect touch data, and touch data can include capacitance value data at various positions on TP. Camera devices can be used to collect images of users. After the TP devices, camera devices, etc. on the second mainboard collect user data, the CPU on the first mainboard can perform corresponding response operations based on the user data.
[0051] Figure 1 This is a structural diagram of an existing electronic device. Figure 1 , Figure 1 In the description, an electronic device including a first main board and a second main board is taken as an example. Exemplarily, the first main board can carry devices such as a CPU and a GPU, and the second main board can carry TP devices, camera devices, etc. For example, if there are 6 data lines between the first main board and the second main board, after the TP device collects touch data, the CPU can obtain the touch data from the TP device through the 6 data lines, and perform corresponding response operations based on the touch data. Because the number of data lines is large, the number of interfaces for connecting data lines on the first main board and the second main board is also large. Exemplarily, the interfaces set on the first main board and the second main board can be board-to-board (BTB) interfaces. It should be understood that Figure 1 Only the connection relationship between CPU and TP devices is shown. Figure 1 The interfaces are represented by black dots.
[0052] For large-screen folding devices, there are many operations such as bending and unfolding of electronic devices, and the number of interfaces and data cables is large, which can easily cause interface damage and data cables to detach from the interfaces, resulting in poor connection stability between motherboards. In addition, the large number of interfaces and data cables will also take up a large space and increase the size of the motherboard.
[0053] In order to solve this problem, the data lines of each mainboard can be aggregated on a bus, and an aggregation chip can be set in the electronic device. The aggregation chip can aggregate the bus of each mainboard, thereby reducing the number of interfaces set on each mainboard, improving the connection stability between mainboards, and reducing the size of the mainboard. Exemplarily, the bus can be a serial peripheral interface (SPI) bus, which is not limited in the embodiments of the present application.
[0054] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 2 , Figure 2 In the example, an electronic device including a first mainboard and a second mainboard is used for explanation. For example, an interface can be set on the first mainboard, and an interface can be set on the second mainboard. The interface on the first mainboard is used to plug in the bus from the first mainboard, and the interface on the second mainboard is used to plug in the bus from the second mainboard. The bus from the first mainboard can be connected to the aggregation chip, and the bus from the second mainboard can be connected to the aggregation chip. The aggregation chip can be used to connect the first mainboard and the second mainboard. Specifically, the CPU on the first mainboard can be connected to the TP device through the aggregation chip. In the embodiment of the present application, there is no restriction on the number of interfaces set on the first mainboard and the second mainboard.
[0055] In some embodiments, the CPU on the first mainboard can also be connected to the TP device through a signal line, and the signal line is used to transmit an interrupt signal. After the TP device carried by the second mainboard collects touch data, an interrupt signal can be sent to the CPU through the signal line. The interrupt signal is used to instruct the CPU to read touch data from the TP device. In response to the interrupt signal, the CPU can read touch data from the TP device through the aggregation chip.
[0056] At present, TP devices can include two working states, namely, idle state and active state. The interrupt frequencies of TP devices in idle state and active state are different, wherein the interrupt frequency is the frequency at which the TP device sends an interrupt signal to the CPU. When a touch operation is detected, such as when a user touches the TP with a finger or a stylus, the TP device enters the active state. For example, the interrupt frequency of the TP device in the active state may be 120Hz or 60Hz. Taking 120Hz as an example, the TP device may send an interrupt signal to the CPU every 8ms. When no touch operation is detected for a period of time, such as when the user's finger or stylus leaves the TP for a period of time (for example, 300ms), the TP device may enter the idle state. For example, the interrupt frequency of the TP device in the idle state may be 1Hz, and the TP device may send an interrupt signal to the CPU every 1s.
[0057] In some embodiments, the screen state of the electronic device may include a screen-on state and a screen-off state. When the electronic device is in the screen-on state and the TP device enters an active state, the interrupt frequency of the TP device may be, for example, 120 Hz; when the electronic device is in the screen-off state and the TP device enters an active state, the interrupt frequency of the TP device may be, for example, 60 Hz. In some embodiments, whether the electronic device is in the screen-on state or the screen-off state, when the TP device enters an idle state, the interrupt frequency of the TP device may be, for example, 1 Hz.
[0058] In the embodiments of the present application, the "screen on state" may be that the light emitting device of the screen is triggered to emit light, and the color and brightness of the light emitted are executed according to the settings of the program, and the screen can display the application interface, images, videos and other content. The "screen off state" may be that all or part of the light emitting devices of the screen are triggered to turn off, such as the screen may not display content and present a black screen, or the screen may be displayed in an always on display (AOD).
[0059] In some embodiments, the SPI bus may transmit touch data at a certain transmission frequency, for example, 20 MHz.
[0060] At present, TP devices can collect touch data and store the collected touch data in the storage space of the TP device. When the CPU receives an interrupt signal from the TP device, the CPU can read the touch data from the TP device through the aggregation chip. Among them, the CPU can instruct the aggregation chip to sample from the TP device, and the aggregation chip can sample the touch data from the TP device through the SPI bus, and after sampling the touch data, it can send the touch data to the CPU.
[0061] At present, the aggregation chip can sample from the storage space of the TP device according to the preset sampling frequency to read the touch data. At present, the preset sampling frequency of the aggregation chip is fixed, and based on the Nyquist sampling theorem, the preset sampling frequency of the aggregation chip is higher than the transmission frequency of the SPI, which will cause the power consumption of the aggregation chip to be large. For example, the preset sampling frequency of the aggregation chip is 40MHz.
[0062] In some embodiments, the active state can be used as the first working state of the TP device, and the idle state can be used as the second working state of the TP device. When the working state of the TP device is different, the interrupt frequency of the TP device is different, and the transmission frequency of the SPI is also different. When the TP device is in the idle state, if the aggregation chip still samples according to the preset sampling frequency, the overhead and power consumption of the aggregation chip will be large. In the embodiment of the present application, in order to solve the problem of high power consumption of the current aggregation chip, the working mode of the aggregation chip can be adaptively adjusted based on the working state of the TP device, so as to reduce the power consumption of the aggregation chip while ensuring that touch data is not missed.
[0063] It should be understood that when the polymer chip is in different working modes, the sampling frequency of the polymer chip is different. Exemplarily, in the embodiment of the present application, the polymer chip includes two working modes as an example, and the two working modes are the first working mode and the second working mode. In the first working mode, the sampling frequency of the polymer chip is the first sampling frequency, and in the second working mode, the sampling frequency of the polymer chip is the second sampling frequency. Among them, the first sampling frequency is higher than the second sampling frequency. In some embodiments, the first working mode can be referred to as a high-performance mode, and the second working mode can be referred to as a low-power mode.
[0064] In some embodiments, in order to comply with the Nyquist sampling theorem and ensure that the polymer chip does not miss touch data, the sampling frequency of the polymer chip can be higher than the transmission frequency of the SPI, such as the first sampling frequency is higher than the transmission frequency of the SPI, and the second sampling frequency is higher than the transmission frequency of the SPI. Exemplary, the first sampling frequency can be 40MHz and the second sampling frequency can be 30MHz. In some embodiments, the first sampling frequency can be greater than or equal to twice the transmission frequency of the SPI, and the second sampling frequency can be greater than the transmission frequency of the SPI. In some embodiments, the first sampling frequency and the second sampling frequency can both be greater than or equal to twice the transmission frequency of the SPI.
[0065] Figure 3 Another schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 3 The electronic device includes a first main board and a second main board as an example. Figure 3 , the electronic device may include a first mainboard, a second mainboard, and an aggregation chip. The first mainboard may include a CPU, and the second mainboard may include a TP device. The connection method between the first mainboard, the second mainboard, the aggregation chip, the CPU, and the TP device may refer to Figure 2 Related description in .
[0066] In the embodiment of the present application, when the TP device is in the first working state (active state), the aggregation chip can work in a high power consumption mode, that is, the aggregation chip can use the first sampling frequency for sampling. When the TP device is in the second working state (idle state), the aggregation chip can switch to a low power consumption mode, that is, the aggregation chip can use the second sampling frequency for sampling.
[0067] In some embodiments, the CPU may be used to obtain the working state of the TP device, and indicate the working mode of the aggregation chip according to the working state of the TP device. Exemplarily, the CPU may send an instruction to the aggregation chip, the instruction being used to indicate the working mode of the aggregation chip. Accordingly, the aggregation chip may operate in the corresponding working mode in response to the instruction from the CPU.
[0068] In some embodiments, reference Figure 3 The CPU may include a TP logic control module. The TP logic control module is specifically used to obtain the working state of the TP device and indicate the working mode of the aggregation chip according to the working state of the TP device.
[0069] In some embodiments, the CPU may further include a screen status recognition module. The screen status recognition module is used to obtain the screen status of the electronic device, and the screen status may include a screen-on status and a screen-off status.
[0070] In some embodiments, the CPU may further include a scene recognition module. The scene recognition module is used to obtain information about an application running in the foreground of the electronic device so as to determine the scene of the electronic device.
[0071] It should be understood that the functions of the TP logic control module, the scene recognition module, and the screen state recognition module can refer to the relevant descriptions in the following embodiments.
[0072] The control method of the polymer chip provided in the embodiment of the present application is described below in conjunction with specific embodiments. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0073] Figure 4 This is a flow chart of an embodiment of the control method of the polymer chip provided in the embodiment of the present application. It should be understood that Figure 4 The execution subject of the control method for executing the aggregation chip can be a CPU or a TP logic control module in the CPU. Figure 4 In the example, the TP logic control module is used for explanation. In some embodiments, the CPU or the TP logic control module in the CPU may also be referred to as a control device of the aggregation chip.
[0074] Reference Figure 4 The control method of the aggregate chip provided in the embodiment of the present application may include:
[0075] S401, the TP device sends an interrupt signal to the TP logic control module.
[0076] In the embodiment of the present application, the TP logic control module can receive an interrupt signal from the TP device. The interrupt signal is used to instruct the TP logic control module to read touch data from the TP device.
[0077] In some embodiments, according to the working state of the TP device, the TP device may periodically send an interrupt signal to the TP logic control module. For example, when the TP device is in an active state, the TP device may send an interrupt signal to the TP logic control module every 8 ms. When the TP device is in an idle state, the TP device may send an interrupt signal to the TP logic control module every 1 s.
[0078] In some embodiments, the interrupt signal may be a high level signal or a low level signal. The TP logic control module may detect the interrupt signal from the TP device through a signal line connecting the TP logic control module and the TP device.
[0079] S402, the TP logic control module detects whether the aggregation chip is in the first working mode. If not, execute S403, and if so, execute S405.
[0080] In the embodiment of the present application, in response to the interrupt signal, the TP logic control module can detect the working mode of the aggregation chip to detect whether the aggregation chip is in the first working mode.
[0081] In some embodiments, because the switching of the working mode of the aggregate chip is triggered by the TP logic control module sending an instruction, the TP logic control module can record each instruction sent to the aggregate chip. Because the instruction can indicate the working mode of the aggregate chip, the TP logic control module can query the last instruction sent to the aggregate chip to determine the working mode of the aggregate chip.
[0082] In some embodiments, the TP logic control module may send a working mode query instruction to the aggregation chip in response to the interrupt signal, and the working mode query instruction is used to query the working mode of the aggregation chip. In response to the working mode query instruction, the aggregation chip may feedback the working mode of the aggregation chip to the TP logic control module, so that the TP logic control module can determine the working mode of the aggregation chip.
[0083] S403, the TP logic control module sends a first instruction to the aggregation chip, where the first instruction is used to instruct the aggregation chip to switch to the first working mode.
[0084] In an embodiment of the present application, when the working mode of the aggregation chip is not the first working mode, the TP logic control module sends a first instruction to the aggregation chip. The first instruction is used to instruct the aggregation chip to switch to the first working mode. In an embodiment of the present application, the TP logic control module responds to the interrupt signal and detects that the aggregation chip is not in the first working mode, and can instruct the aggregation chip to switch to the first working mode. The purpose is that the TP logic control module is about to read the touch data from the TP device, so that the aggregation chip can be instructed to prepare for sampling the touch data at a high sampling frequency to ensure complete sampling of the touch data.
[0085] In the embodiment of the present application, since the switching of the working mode of the aggregation chip takes a period of time, such as 4ms, before the aggregation chip reads the touch data, the TP logic control module instructs the aggregation chip to switch to the first working mode, which can ensure that the aggregation chip is ready to sample the touch data at a high sampling frequency and does not miss the touch data. This avoids the problem that the aggregation chip is instructed to switch to the first working mode only when the aggregation chip reads the touch data and detects that the TP device is in an active state, resulting in the aggregation chip being unable to sample during the period of time when the aggregation chip switches the working mode, thereby missing the touch data.
[0086] S404: In response to the first instruction, the aggregation chip switches to the first working mode.
[0087] In some embodiments, the aggregate chip may include a first clock module and a second clock module, the first clock module corresponds to the first working mode, and the second clock module corresponds to the second clock module. When the aggregate chip enables the first clock module and turns off the second clock module, the aggregate chip can work in the first working mode, that is, the aggregate chip can read touch data from the TP device at the first sampling frequency. When the aggregate chip enables the second clock module and turns off the first clock module, the aggregate chip can work in the second working mode, that is, the aggregate chip can read touch data from the TP device at the second sampling frequency.
[0088] In this embodiment, in response to the first instruction, the aggregation chip may enable the first clock module and disable the second clock module to switch to the first working mode.
[0089] In some embodiments, when the aggregate chip switches to the first working mode, a first message can be sent to the TP logic control module. The first message is used to indicate that the aggregate chip has switched to the first working mode, so that the TP logic control module can accurately grasp the working mode of the aggregate chip.
[0090] S405 , the aggregation chip uses the first sampling frequency to read touch data from the TP device.
[0091] For example, if the first sampling frequency is 40 MHz, the aggregation chip can read the touch data from the TP device at a sampling frequency of 40 MHz.
[0092] It should be understood that in S402, when the TP logic control module detects that the aggregation chip is in the first working mode, the TP logic control module may not send the first instruction to the aggregation chip. Accordingly, because the aggregation chip does not receive the instruction to switch the working mode, the aggregation chip can continue to work in the first working mode, that is, the aggregation chip can continue to use the first sampling frequency to read touch data from the TP device.
[0093] S406, the aggregation chip sends touch data to the TP logic control module.
[0094] S407, according to the touch data, when the TP logic control module determines that the working state of the TP device is the idle state, a second instruction is sent to the aggregation chip, where the second instruction is used to instruct the aggregation chip to switch to the second working mode.
[0095] In some embodiments, the touch data may include capacitance value data of each position on the TP, and an identifier of the working state of the TP device. The identifier of the working state of the TP device is used to indicate the working state of the TP device. In some embodiments, the identifier of the working state of the TP device may be, for example, a name, number, etc. of the working state. For example, the identifier of the active state of the TP device may be, for example, "active", and the identifier of the idle state of the TP device may be, for example, "idle".
[0096] The TP logic control module can determine the working state of the TP device according to the identification of the working state of the TP device in the touch data. When the TP logic control module determines that the working state of the TP device is an idle state, a second instruction can be sent to the aggregation chip, and the second instruction is used to instruct the aggregation chip to switch to the second working mode.
[0097] It should be understood that when the working state of the TP device is idle, if the aggregate chip still works in the first working mode, that is, the touch data is read from the TP device using the first sampling frequency, the aggregate chip has large overhead and high power consumption. Therefore, in the embodiment of the present application, when the working state of the TP device is idle, the TP logic control module can instruct the aggregate chip to switch to the second working mode. In the second working mode, the sampling frequency of the aggregate chip is the second sampling frequency, because the second sampling frequency is less than the first sampling frequency, so the power consumption of the aggregate chip can be saved.
[0098] S408: In response to the second instruction, the aggregation chip switches to the second working mode.
[0099] In some embodiments, in response to the second instruction, the aggregate chip may enable the second clock module and disable the first clock module to switch to the second operating mode.
[0100] In some embodiments, after the aggregate chip switches to the second working mode, a second message can be sent to the TP logic control module. The second message is used to indicate that the aggregate chip has switched to the second working mode, so that the TP logic control module can accurately grasp the working mode of the aggregate chip.
[0101] S409, the aggregation chip uses a second sampling frequency to read touch data from the TP device, and the second sampling frequency is lower than the first sampling frequency.
[0102] For example, if the second sampling frequency is 30 MHz, the aggregation chip can read the touch data from the TP device at a sampling frequency of 30 MHz.
[0103] S410, the aggregation chip sends touch data to the TP logic control module.
[0104] S410 may refer to the description in S406 .
[0105] In one embodiment, Figure 4 Some of the steps shown in are optional steps, and some of the steps can be combined into one step.
[0106] In the embodiment of the present application, the aggregation chip may include two working modes, namely, a first working mode (high performance mode) and a second working mode (low power consumption mode). The first sampling frequency corresponding to the first working mode is greater than the second sampling frequency corresponding to the second working mode. In the embodiment of the present application, the working mode of the aggregation chip can be adaptively switched according to the working state of the TP device. For example, when the TP device is in an active state, in order to ensure that the aggregation chip reads the touch data completely and the electronic device can quickly respond to the user's touch operation, the aggregation chip can be switched to the first working mode and the touch data can be sampled at the first sampling frequency. When the TP device is in an idle state, the aggregation chip can be switched to the second working mode and the touch data can be sampled at the second sampling frequency, which can reduce the power consumption of the aggregation chip.
[0107] In some embodiments, when the electronic device is turned on and the aggregation chip is powered on, the aggregation chip can be initialized to the first working mode. The reason why the aggregation chip is initialized to the first working mode is that after the electronic device is turned on, the user can touch the screen at any time, and the aggregation chip can be prepared to sample touch data at a high sampling frequency to ensure complete sampling of touch data.
[0108] In some embodiments, when the electronic device is in the screen-on state, the user requires the electronic device to quickly respond to the user's touch operation, that is, the user has high requirements for the TP performance of the electronic device. In this embodiment, when the electronic device is in the screen-on state, the electronic device can use Figure 4 The method in the illustrated embodiment controls the aggregation chip to switch the working mode.
[0109] Figure 5A This is a flow chart of another embodiment of the control method of the polymer chip provided in the embodiment of the present application. Figure 5A The control method of the aggregate chip provided in the embodiment of the present application may include:
[0110] S501: The TP device sends an interrupt signal to the TP logic control module.
[0111] S502, when the electronic device is in the screen-on state, the TP logic control module detects whether the aggregation chip is in the first working mode. If not, execute S503, and if so, execute S505.
[0112] In some embodiments, the TP logic control module can detect the screen state of the electronic device to determine whether the electronic device is in a screen-on state or a screen-off state.
[0113] In some embodiments, the TP logic control module may send a screen status query instruction to the screen status recognition module, and the screen status query instruction is used to query the screen status. In response to the screen status query instruction, the screen status recognition module may feedback the screen status to the TP logic control module, and the TP logic control module can determine the screen status.
[0114] In the embodiment of the present application, when the electronic device is in the screen-on state, the TP logic control module can detect whether the aggregation chip is in the first working mode. When the electronic device is in the screen-off state, the control method of the aggregation chip can refer to Figure 7 and Figure 8 Related description.
[0115] S503, the TP logic control module sends a first instruction to the aggregation chip, where the first instruction is used to instruct the aggregation chip to switch to the first working mode.
[0116] S504: In response to the first instruction, the aggregation chip switches to the first working mode.
[0117] S505 , the aggregation chip uses the first sampling frequency to read touch data from the TP device.
[0118] S506: The aggregation chip sends touch data to the TP logic control module.
[0119] S507, according to the touch data, when the TP logic control module determines that the working state of the TP device is the idle state, a second instruction is sent to the aggregation chip, where the second instruction is used to instruct the aggregation chip to switch to the second working mode.
[0120] S508: In response to the second instruction, the aggregation chip switches to the second working mode.
[0121] S509, the aggregation chip uses a second sampling frequency to read touch data from the TP device, and the second sampling frequency is lower than the first sampling frequency.
[0122] S510, the aggregation chip sends touch data to the TP logic control module.
[0123] S501 - S510 may refer to the description in S401 - S410 .
[0124] In some embodiments, when the electronic device is in a bright screen state and the TP device is in an idle state, if the electronic device is in a preset scene, the user has high requirements for the TP performance of the electronic device, such as the user requires the stylus to have good hand tracking and quick touch response, etc. Exemplarily, the preset scene may be a stylus touch scene, a game scene, or an input method scene, etc. In this embodiment, although the TP device is in an idle state and no finger or stylus touches the TP temporarily, in order to meet the user's demand for high performance of the electronic device TP, the aggregate chip may still work in the first working mode to improve the user experience.
[0125] In this embodiment, refer to Figure 5B , Figure 5A The S507 in can be replaced by S507A:
[0126] S507, based on the touch data, when the TP logic control module determines that the working state of the TP device is the idle state, detect whether the electronic device is in a preset scene. If so, return to execute S505-S506, if not, execute S508A.
[0127] According to the touch data, when the TP logic control module determines that the working state of the TP device is an idle state, the scene in which the electronic device is located can be detected to detect whether the electronic device is in a preset scene.
[0128] In some embodiments, the TP logic control module may send a scene query instruction to the scene recognition module, and the scene query instruction is used to query the scene in which the electronic device is located. In response to the scene query instruction, the scene recognition module may send information about the application running in the foreground of the electronic device to the TP logic control module, and the application information may be, for example, the name and icon of the application. The TP logic control module may determine the scene in which the electronic device is located based on the application information, such as the scene in which the electronic device is located may include but is not limited to: video scene, game scene, stylus touch scene, or input method scene, etc.
[0129] Exemplarily, when the application information indicates that the application running in the foreground of the electronic device is a game application, the TP logic control module can determine that the electronic device is in a game scene. Exemplarily, when the application information indicates that the application running in the foreground of the electronic device is a social application, the user needs to use the input method keyboard to input information, or when the application information indicates that the application running in the foreground of the electronic device is a document application, the user needs to use the input method keyboard to input document content. In these scenarios, the TP logic control module can determine that the electronic device is in an input method scene. Exemplarily, when the application information indicates that the application running in the foreground of the electronic device is a painting application, the TP logic control module can determine that the electronic device is in a stylus touch scene.
[0130] In some embodiments, the TP logic control module may pre-store a mapping relationship between application information and scenes. In response to information from the scene recognition module, the TP logic control module may determine the scene in which the electronic device is located based on the mapping relationship.
[0131] S508A, the TP logic control module sends a second instruction to the aggregation chip, where the second instruction is used to instruct the aggregation chip to switch to the second working mode.
[0132] In an embodiment of the present application, when the TP logic control module determines that the electronic device is not in a preset scene, the user has low requirements for the TP performance of the electronic device, and the TP device is in an idle state, the TP logic control module can send a second instruction to the aggregation chip to instruct the aggregation chip to switch to a second operating mode, thereby reducing the power consumption of the aggregation chip.
[0133] In an embodiment of the present application, when the TP logic control module determines that the electronic device is in a preset scenario, the user has high requirements for the TP performance of the electronic device. Even if the TP device is in an idle state, the aggregate chip can still operate in the first working mode to meet the requirements of good touch tracking and quick touch response, thereby improving the user experience.
[0134] In some embodiments, reference Figure 5B After executing S508A, S508-S510 may be continued to be executed.
[0135] Figure 6 A schematic diagram of the working mode switching of the aggregation chip provided in the embodiment of the present application. Figure 6 , Figure 6 Take the interrupt signal as a low-level signal as an example. At T1, when the TP logic control module detects an interrupt signal from the TP device, the aggregate chip can operate in the first operating mode (high-performance mode). At T11, according to the touch data, when the TP logic control module determines that the working state of the TP device is an idle state, and the electronic device is not in a preset scene, the aggregate chip can switch to the second operating mode (low-power mode). Similarly, at T2, when the TP logic control module detects an interrupt signal from the TP device, the aggregate chip can switch to the high-performance mode. According to the touch data, when the TP logic control module determines that the working state of the TP device is an idle state, and the electronic device is not in a preset scene, the aggregate chip can switch to the low-power mode.
[0136] At T3, when the TP logic control module detects an interrupt signal from the TP device, the aggregate chip can work in high-performance mode. According to the touch data, when the TP logic control module determines that the working state of the TP device is idle and the electronic device is not in a preset scene, the aggregate chip can switch to low-power mode. Among them, at T4, the TP logic control module determines that the working state of the TP device is active according to the touch data, and / or when the electronic device is in a preset scene, the aggregate chip can switch to high-performance mode. Figure 6 In the example, the working state of the TP device at T4 is active, and the electronic device is in a preset scene.
[0137] Similarly, in the time period of T5-T6, the TP device is in an active state, and the electronic device is in a preset scene, and the aggregate chip can work in a high-performance mode. At T7, when no touch operation is detected for a period of time, the TP device is in an idle state, but the electronic device is still in a preset scene, and the aggregate chip can still work in a high-performance mode. At T8, when the electronic device switches scenes, such as when the electronic device is not in a preset scene, the aggregate chip can switch to a low-power mode.
[0138] In an embodiment of the present application, when the electronic device is in a screen-on state and the TP device is in an idle state, if the electronic device is in a preset scenario, the user has high requirements for the TP performance of the electronic device. When the TP device is in an idle state, no finger or stylus touches the TP temporarily. However, in order to meet the user's demand for high performance of the electronic device TP, the aggregate chip can still operate in the first working mode, which can improve the user experience.
[0139] In some embodiments, when the electronic device is in the screen-off state, the user has low requirements for the TP performance of the electronic device. The TP logic control module can send a second instruction to the aggregation chip to instruct the aggregation chip to switch to the second working mode, which can reduce the power consumption of the aggregation chip.
[0140] In some embodiments, when the electronic device is in the off-screen state, the CPU can still receive user data collected from other devices on the second mainboard through the aggregation chip. Exemplarily, when the electronic device is in the off-screen state, the camera device can still collect the user's facial data so that the CPU can quickly unlock the electronic device based on the user's facial data. In this embodiment, although the aggregation chip can receive the second instruction from the TP logic control module, because the aggregation chip also needs to transmit the user data collected by the camera device, the aggregation chip may not switch to the second working mode, but still use the first working mode to transmit the user data collected by the camera device.
[0141] In an embodiment of the present application, when the electronic device is in a screen-off state, the aggregation chip can operate in a first operating mode or in a second operating mode.
[0142] In an embodiment of the present application, when the electronic device is in the screen-off state, no matter the aggregation chip is operating in the first operating mode or the second operating mode, the CPU can sample touch data through the aggregation chip. In this embodiment, in order to ensure that the aggregation chip does not miss touch data, the aggregation chip can be controlled not to switch the operating mode when the touch data is transmitted.
[0143] Figure 7 This is a flow chart of another embodiment of the control method of the polymer chip provided in the embodiment of the present application. Figure 7 The control method of the aggregate chip provided in the embodiment of the present application may include:
[0144] S701, the TP device sends an interrupt signal to the TP logic control module.
[0145] S702, when the electronic device is in the screen-off state, the TP logic control module sends a third instruction to the aggregation chip, where the third instruction is used to instruct the aggregation chip to maintain the current working mode.
[0146] In response to the interrupt signal from the TP device, the TP logic control module can detect the screen state of the electronic device. When the electronic device is in the screen-off state, the TP logic control module can send a third instruction to the aggregation chip. The third instruction is used to instruct the aggregation chip to maintain the current working mode.
[0147] In some embodiments, the current operating mode of the aggregate chip may be the first operating mode or the second operating mode.
[0148] S703, in response to the third instruction, the aggregation chip samples touch data at a sampling frequency corresponding to the current working mode.
[0149] S704, the aggregation chip sends touch data to the TP logic control module.
[0150] In response to the third instruction, the aggregation chip may maintain the current working mode. The aggregation chip may sample the touch data at a sampling frequency corresponding to the current working mode, and send the touch data to the TP logic control module.
[0151] S705, in response to the completion of the touch data transmission, the TP logic control module sends a fourth instruction to the aggregation chip, where the fourth instruction is used to instruct the aggregation chip to release the current working mode.
[0152] The TP logic control module can determine the working state of the TP device according to the touch data, that is, the TP logic control module can determine the number of times the touch data is transmitted per second. In the embodiment of the present application, the TP logic control module can determine whether the touch data transmission is completed according to the number of touch data that have been transmitted and the number of times the touch data is transmitted per second corresponding to the working state of the TP device. In response to the completion of the touch data transmission, the TP logic control module can send a fourth instruction to the aggregation chip.
[0153] The fourth instruction is used to instruct the aggregation chip to cancel the current working mode. The aggregation chip canceling the current working mode can be understood as: the aggregation chip does not need to maintain the current working mode, and the aggregation chip can Figure 4 , Figure 5A and Figure 5B The switching logic in the embodiment switches the working mode. For example, when the aggregation chip receives a first instruction from the TP logic control module, it can switch to the first working mode. When the aggregation chip receives a second instruction from the TP logic control module, it can switch to the second working mode.
[0154] S706: The aggregation chip cancels the current working mode.
[0155] Figure 8 Another schematic diagram of the working mode switching of the aggregation chip provided in the embodiment of the present application. Figure 8 , Figure 8Taking the interrupt signal as a low-level signal as an example, at T1A, when the TP logic control module detects the interrupt signal from the TP device, the electronic device is in the off-screen state, and the TP logic control module can send a third instruction to the aggregation chip, and the aggregation chip can work in the current working mode, such as the aggregation chip can collect touch data at the collection frequency corresponding to the current working mode. At T2A, the touch data transmission is completed, and the aggregation chip can release the current working mode based on the fourth instruction from the TP logic control module. Similarly, at T3A, when the TP logic control module detects the interrupt signal from the TP device, the aggregation chip can work in the current working mode. At T4A, the touch data transmission is completed, and the aggregation chip can release the current working mode.
[0156] Similarly, during the time period of T5A-T6A, the electronic device is still in the screen-off state, although there is a touch, such as when the user touches the TP with a finger at T4, the aggregate chip can maintain the current working mode during the process of sampling touch data, and release the current working mode after the touch data transmission is completed. Similarly, during the time period of T6A-T7A, the electronic device is still in the screen-off state. After a period of no touch (such as T7), the aggregate chip can maintain the current working mode during the process of sampling touch data, and release the current working mode after the touch data transmission is completed.
[0157] In an embodiment of the present application, when the electronic device is in the screen-off state, no matter the aggregation chip is operating in the first working mode or the second working mode, in order to ensure that the aggregation chip does not miss touch data, the aggregation chip can be controlled not to switch the working mode during touch data transmission. When the touch data transmission is completed, the aggregation chip can release the current mode.
[0158] In some embodiments, the transmission frequency of the SPI bus is related to the screen state of the electronic device. For example, when the electronic device is in a screen-on state, the SPI bus can transmit touch data at a first transmission frequency. When the electronic device is in a screen-off state, the SPI bus can transmit touch data at a second transmission frequency. The first transmission frequency is greater than the second transmission frequency. For example, the first transmission frequency is 20 MHz and the second transmission frequency is 10 MHz.
[0159] Based on the Nyquist sampling theorem, when the electronic device is in the screen-on state, the aggregate chip in the prior art can always sample touch data at a preset sampling frequency, such as the preset sampling frequency of 40MHz. When the electronic device is in the screen-off state, the aggregate chip in the prior art can always sample touch data at a preset sampling frequency, such as the preset sampling frequency of 20MHz. At present, when the electronic device is in the screen-on state or the screen-off state, the sampling frequency of the aggregate chip is fixed, which also causes high power consumption of the aggregate chip.
[0160] In some embodiments, when the electronic device is in different screen states, the aggregation chip can execute Figure 3 , Figure 5A , Figure 5B as well as Figure 7 Steps in the embodiment shown. Wherein, when the electronic device is in different screen states, the first sampling frequency is the same and the second sampling frequency is the same. Exemplarily, whether the electronic device is in a screen-on state or a screen-off state, the first sampling frequency of the aggregate chip may be 40 MHz and the second sampling frequency may be 30 MHz.
[0161] In some embodiments, the transmission frequency of the SPI is related to the screen state of the electronic device, and in order to satisfy the Nyquist sampling theorem, the preset sampling frequency of the current aggregation chip is different in different screen states. In the embodiment of the present application, on the one hand, in order to reduce the power consumption of the aggregation chip, on the other hand, in order to satisfy the Nyquist sampling theorem, the first sampling frequency and the second sampling frequency of the aggregation chip in different screen states can be set.
[0162] For example, when the electronic device is in the screen-on state, the first transmission frequency of the SPI bus is 20MHz, and the first sampling frequency of the aggregate chip can be set to 40MHz, and the second sampling frequency can be set to 30MHz. When the electronic device is in the screen-off state, the second transmission frequency of the SPI bus is 10MHz. In order to reduce the power consumption of the aggregate chip, the first sampling frequency of the aggregate chip can be set to 20MHz, and the second sampling frequency can be set to 15MHz.
[0163] In some embodiments, the first sampling frequency of the polymer chip when the electronic device is in the screen-on state is different from the first sampling frequency of the polymer chip when the electronic device is in the screen-off state, and the second sampling frequency of the polymer chip when the electronic device is in the screen-on state is different from the second sampling frequency of the polymer chip when the electronic device is in the screen-off state. When the electronic device is in the screen-on state, the first sampling frequency of the polymer chip is greater than or equal to 2 times the first transmission frequency, and the second sampling frequency of the polymer chip is greater than the first transmission frequency. When the electronic device is in the screen-off state, the first sampling frequency of the polymer chip is greater than or equal to 2 times the second transmission frequency, and the second sampling frequency of the polymer chip is greater than the second transmission frequency.
[0164] In this embodiment, when the electronic device is in the screen-off state, the first sampling frequency and the second sampling frequency of the aggregate chip are respectively lower than the first sampling frequency and the second sampling frequency of the aggregate chip when the electronic device is in the screen-off state, which can further reduce the power consumption of the aggregate chip.
[0165] It should be noted that the data involved in this application (including but not limited to data used for analysis, stored data, displayed data, etc.) are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0166] In one embodiment, the present application also provides an electronic device. Fig. 9 , the electronic device may include: a processor 901 (such as a CPU), and a memory 902. The memory 902 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory. The memory 902 may store various instructions for completing various processing functions and implementing the method steps of the present application.
[0167] Optionally, the electronic device involved in the present application may further include: a power supply 903, a communication bus 904 and a communication port 905. The above-mentioned communication port 905 is used to realize the connection and communication between the electronic device and other peripherals. In the embodiment of the present application, the memory 902 is used to store computer executable program code, and the program code includes instructions; when the processor 901 executes the instruction, the instruction causes the processor 901 of the electronic device to perform the action in the above-mentioned method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0168] Optionally, the electronic device involved in the present application may further include: a display screen 906. The display screen 906 is used to display an interface of the electronic device.
[0169] It should be noted that the modules or components described in the above embodiments may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs), etc. For another example, when a module above is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processors that can call program codes, such as a controller. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0170] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loading and executing computer program instructions on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrated. The available medium can be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.
[0171] The term "plurality" in this article refers to two or more than two. The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the previous and next associated objects are in an "or" relationship; in the formula, the character " / " indicates that the previous and next associated objects are in a "division" relationship. In addition, it should be understood that in the description of this application, words such as "first" and "second" are only used for the purpose of distinguishing descriptions, and cannot be understood as indicating or implying relative importance, nor can they be understood as indicating or implying order.
[0172] It should be understood that the various numerical numbers involved in the embodiments of the present application are only used for the convenience of description and are not used to limit the scope of the embodiments of the present application.
[0173] It can be understood that in the embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
Claims
1. A control method for a polymer chip, characterized in that: A control device applied to a polymer chip, the method comprising: Receiving touch data from the aggregation chip, where the touch data is obtained by sampling the aggregation chip from the touch screen TP device at a first sampling frequency; According to the touch data, when it is determined that the working state of the TP device is an idle state, a second instruction is sent to the aggregation chip, and the second instruction is used to instruct the aggregation chip to switch to a second working mode. The second working mode corresponds to a second sampling frequency, and the second sampling frequency is less than the first sampling frequency.
2. The method according to claim 1, characterized in that Before receiving the touch data from the aggregation chip, the method further includes: receiving an interrupt signal from the TP device; Detecting whether the aggregation chip is in a first working mode, where the first working mode corresponds to the first sampling frequency; If not, a first instruction is sent to the aggregation chip, where the first instruction is used to instruct the aggregation chip to switch to the first working mode.
3. The method according to claim 2, characterized in that The detecting whether the aggregation chip is in the first working mode includes: When the electronic device is in a screen-on state, it is detected whether the aggregate chip is in a first working mode.
4. The method according to any one of claims 1 to 3, characterized in that When it is determined that the working state of the TP device is an idle state, sending a second instruction to the aggregation chip includes: When it is determined that the working state of the TP device is an idle state, detecting whether the electronic device is in a preset scene; In response to the electronic device not being in the preset scene, sending a second instruction to the aggregation chip.
5. The method according to claim 2, characterized in that: After receiving the interrupt signal from the TP device, the method further includes: When the electronic device is in a screen-off state, sending a third instruction to the aggregation chip, where the third instruction is used to instruct the aggregation chip to maintain a current working mode, where the current working mode is the first working mode or the second working mode; In response to completion of the transmission of the touch data sampled by the aggregation chip in the current working mode, a fourth instruction is sent to the aggregation chip, where the fourth instruction is used to instruct the aggregation chip to cancel and maintain the current working mode.
6. The method according to claim 3 or 5, characterized in that: The first sampling frequency of the aggregate chip when the electronic device is in the screen-on state is different from the first sampling frequency of the aggregate chip when the electronic device is in the screen-off state. The second sampling frequency of the aggregate chip when the electronic device is in the screen-off state is different from the second sampling frequency of the aggregate chip when the electronic device is in the screen-off state.
7. A control method for a polymer chip, characterized in that: Applied to a polymer chip, the method comprises: Using a first sampling frequency to sample from the touch screen TP device to obtain touch data; Sending touch data to the control device of the aggregation chip; receiving a second instruction from the control device of the aggregation chip, where the second instruction is sent by the control device of the aggregation chip when the TP device is in an idle state; Switching to a second working mode, the second working mode corresponds to a second sampling frequency, and the second sampling frequency is less than the first sampling frequency; Sampling the TP device at a second sampling frequency to obtain touch data; The touch data is sent to the control device of the aggregation chip.
8. The method according to claim 7, characterized in that Before sampling the touch screen TP device at the first sampling frequency to obtain touch data, the method further includes: Receiving a first instruction from a control device of the aggregation chip, where the first instruction is used to instruct the aggregation chip to switch to a first working mode, where the first working mode corresponds to the first sampling frequency; Switch to the first working mode.
9. The method according to claim 7 or 8, characterized in that: The method further comprises: receiving a third instruction from the control device of the aggregation chip, wherein the third instruction is used to instruct the aggregation chip to maintain a current working mode, where the current working mode is the first working mode or the second working mode; Using the sampling frequency corresponding to the current working mode, sampling from the TP device to obtain touch data; Sending touch data to a control device of the aggregation chip; When the touch data transmission is completed, receiving a fourth instruction from the control device of the aggregation chip, wherein the fourth instruction is used to instruct the aggregation chip to cancel and maintain the current working mode; Release and maintain the current working mode.
10. The method according to claim 7, characterized in that The method further comprises: In response to the electronic device being powered on, it is initialized to a first operating mode, where the first operating mode corresponds to the first sampling frequency.
11. The method according to any one of claims 7 to 10, characterized in that: The first sampling frequency of the aggregate chip when the electronic device is in the screen-on state is different from the first sampling frequency of the aggregate chip when the electronic device is in the screen-off state. The second sampling frequency of the aggregate chip when the electronic device is in the screen-off state is different from the second sampling frequency of the aggregate chip when the electronic device is in the screen-off state.
12. A control device for a polymer chip, characterized in that: include: A module for performing the method according to any one of claims 1 to 6.
13. A polymer chip, characterized in that: include: Module for performing the method according to any one of claims 7-11.
14. An electronic device, characterized in that: A control device comprising the polymer chip as claimed in claim 12, and the polymer chip as claimed in claim 13.
15. The electronic device according to claim 14, characterized in that: The electronic device comprises a first main board and a second main board, the aggregation chip is used to connect the first main board and the second main board, the first main board comprises a control device of the aggregation chip, and the second main board comprises a touch screen TP device.
16. An electronic device, characterized in that: include: Processor and memory; The memory stores computer instructions; The processor executes the computer instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 11.
17. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program or instruction, and when the computer program or instruction is executed, the method according to any one of claims 1 to 11 is implemented.
