Touch screen identification method and device, electronic equipment and readable storage medium
By pre-setting a variety of FPC connection lines and pre-set firmware collections, combined with automated monitoring and reset mechanisms, the cumbersome compatibility process of touch screen software and hardware is solved, and efficient and stable touch screen recognition and adaptation are achieved.
Patent Information
- Application Number
- CN202510174562.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-06-06
AI Technical Summary
In the same system-level custom SOC solution, due to the difference in touch screen size and chip IC, the software and hardware compatibility process is cumbersome and inefficient, which brings trouble to technicians.
By presetting multiple FPC connection lines to contact the touch screen chip and the glass panel, each connection line corresponds to a different channel connection state; presetting a set of firmware corresponding to the touch screen chip model in the system storage area; reading screen correlation information when the device core is started, matching the corresponding touch screen chip firmware to complete the driver adaptation, and continuously monitoring the register status of the touch screen chip during the system operation, and automatically reset and handle abnormal states.
Reduce motherboard changes, improve software and hardware adaptation efficiency, realize automated identification and adaptation of touch screen chips of different models and sizes, and ensure efficient and stable operation of touch screens.
Smart Images

Figure CN120104197A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of touch screen technology, and in particular to a touch screen recognition method, a touch screen recognition device, an electronic device and a computer-readable medium. Background Art
[0002] As the peripheral materials of the device terminals are constantly iterating or replaced, they need to be compatible with the software and hardware to operate normally. In the same system-level customized SOC solution, with the difference in product form, the size of the touch screen and the touch screen chip IC will be very different. In this adaptation process, the software and hardware compatibility process is cumbersome and labor-intensive, and inefficient. This compatibility difference brings a lot of trouble to technicians. Therefore, it is necessary to optimize all aspects from hardware to software to solve the problem. Summary of the invention
[0003] In view of the above problems, the present invention is proposed to provide a touch screen recognition method and a corresponding touch screen recognition device, an electronic device and a computer-readable medium that overcome the above problems or at least partially solve the above problems.
[0004] The present invention discloses a touch screen recognition method, which comprises:
[0005] Connect the touch screen chip and the glass panel through a variety of pre-set FPC connection lines, each of which corresponds to a different channel connection state;
[0006] Preset a firmware set corresponding to the touch screen chip model in the system storage area; the firmware set corresponding to the touch screen chip model includes firmware for touch screen chips of different models and firmware for touch screen chips of the same model with different sizes;
[0007] Reading screen-related information during the device kernel startup process, and matching the firmware of the corresponding touch screen chip according to the read screen-related information to complete driver adaptation; the screen-related information includes a display screen identification code or a touch screen chip register status value;
[0008] The register status of the touch screen chip is continuously monitored during system operation, and an automatic reset operation is performed when an abnormal state is detected.
[0009] Optionally, the screen-related information is read during the device kernel startup process, and the driver adaptation is completed by matching the firmware of the corresponding touch screen chip according to the read screen-related information, including:
[0010] If the display screen and the touch screen are separate, the touch screen chip register model and the touch screen chip register status value are read during the device kernel startup process, and the corresponding touch screen chip model is determined according to the touch screen chip register model. For the same touch screen chip model, the corresponding FPC connecting line is matched according to the touch screen chip register status value, and the firmware of the corresponding size of the matching FPC connecting line is loaded to complete the driver adaptation; the register status value reflects the channel connection status of the current touch screen.
[0011] Optionally, the screen-related information is read during the device kernel startup process, and the driver adaptation is completed by matching the firmware of the corresponding touch screen chip according to the read screen-related information, including:
[0012] If the display screen and the touch screen are bound as an integrated screen, the display screen identification code is read during the device kernel startup process, and the corresponding touch screen driver is bound through the display screen identification code. During the driver loading stage, the display screen name characters are read to determine whether to load the touch screen driver. When the read display screen name characters are consistent with the target display screen name characters, the touch screen driver is loaded. When the read display screen name characters are inconsistent with the target display screen name characters, the loading of the touch screen driver is terminated.
[0013] Optionally, the design of the FPC cable includes:
[0014] Select and set the suspension and connection states of specific channels in the FPC connection line to form a variety of FPC connection lines, each of which corresponds to an identification code of a touch screen chip.
[0015] Optionally, the register status of the touch screen chip is continuously monitored during system operation, and an automatic reset operation is performed when an abnormal state is detected, including:
[0016] Create a touch screen daemon process, read the specific register status of the touch screen chip through the touch screen daemon process at regular intervals, and determine whether the touch screen chip status is normal based on the specific register status of the touch screen chip. If it is abnormal, perform an automatic reset operation to restore the touch screen chip, and upload the touch screen chip abnormal information to the system service for storage.
[0017] Optionally, the method further comprises:
[0018] Create a detection thread, record the driver loading process during the boot loading process through the detection thread, and save the touch screen that has been successfully loaded.
[0019] Optionally, the method further comprises:
[0020] Create system services to provide a communication interface from the system layer to the kernel layer;
[0021] Transmit the touch screen chip abnormal information uploaded by the touch screen daemon process to the administrator terminal through the system service to notify the administrator;
[0022] Read and save touch screen version information through system services for system customization.
[0023] The present invention also discloses a touch screen recognition device, which comprises:
[0024] An FPC cable connection module is used to connect the touch screen chip and the glass panel through a plurality of pre-set FPC cables, each of which corresponds to a different channel connection state;
[0025] The firmware presetting module is used to presetting the firmware set corresponding to the touch screen chip model in the system storage area; the firmware set corresponding to the touch screen chip model includes firmware for touch screen chips of different models and firmware for touch screen chips of the same model but of different sizes;
[0026] A touch screen identification module is used to read the screen-related information during the device kernel startup process, and match the firmware of the corresponding touch screen chip according to the read screen-related information to complete the driver adaptation; the screen-related information includes the display screen identification code or the touch screen chip register status value;
[0027] The touch screen chip abnormality detection module is used to continuously monitor the register status of the touch screen chip during system operation and perform an automatic reset operation when an abnormal status is detected.
[0028] Optionally, the touch screen recognition module includes:
[0029] The first touch screen identification submodule is used to read the touch screen chip register model and the touch screen chip register status value during the device kernel startup process if the display screen and the touch screen are separated, and determine the corresponding touch screen chip model according to the touch screen chip register model, and for the same touch screen chip model, match the corresponding FPC connecting line according to the touch screen chip register status value, load the firmware of the corresponding size of the matching FPC connecting line to complete the driver adaptation; the register status value reflects the channel connection status of the current touch screen.
[0030] Optionally, the touch screen recognition module includes:
[0031] The second touch screen identification submodule is used to read the display screen identification code during the device kernel startup process if the display screen and the touch screen are bound as an integrated screen, and bind the corresponding touch screen driver through the display screen identification code. In the driver loading stage, it is determined whether to load the touch screen driver through the read display screen name characters. When the read display screen name characters are consistent with the target display screen name characters, the touch screen driver is loaded. When the read display screen name characters are inconsistent with the target display screen name characters, the loading of the touch screen driver is terminated.
[0032] Optionally, the device further comprises an FPC connection line design module, which is used to:
[0033] Select and set the suspension and connection states of specific channels in the FPC connection line to form a variety of FPC connection lines, each of which corresponds to an identification code of a touch screen chip.
[0034] Optionally, the touch screen chip abnormality detection module includes:
[0035] The touch screen chip abnormality detection submodule is used to create a touch screen daemon process, which periodically reads the specific register status of the touch screen chip through the touch screen daemon process, and determines whether the touch screen chip status is normal based on the specific register status of the touch screen chip. If it is abnormal, it performs an automatic reset operation to restore the touch screen chip, and uploads the touch screen chip abnormality information to the system service for storage.
[0036] Optionally, the device further includes a touch screen driver loading process record storage module, which is used to:
[0037] Create a detection thread, record the driver loading process during the boot loading process through the detection thread, and save the touch screen that has been successfully loaded.
[0038] Optionally, the device further includes a system service module, configured to:
[0039] Create system services to provide a communication interface from the system layer to the kernel layer;
[0040] Transmit the touch screen chip abnormal information uploaded by the touch screen daemon process to the administrator terminal through the system service to notify the administrator;
[0041] Read and save touch screen version information through system services for system customization.
[0042] The present invention also discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
[0043] The memory is used to store computer programs;
[0044] The processor is used to implement the touch screen recognition method of the present invention when executing the program stored in the memory.
[0045] The present invention also discloses one or more computer-readable media, on which instructions are stored. When executed by one or more processors, the processors are enabled to execute the touch screen recognition method according to the present invention.
[0046] The present invention includes the following advantages:
[0047] The touch screen recognition method of the present invention connects the touch screen chip and the glass panel by presetting a plurality of FPC connection lines, and each FPC connection line corresponds to a different channel connection state. The system storage area presets a firmware set that matches the touch screen chip model and size. When the device kernel starts, the display screen identification code or the chip register status value and other screen-related information are read, and the firmware of the corresponding touch screen chip is matched accordingly to achieve driver adaptation. During system operation, the touch screen chip register status is continuously monitored, and it is automatically reset once an abnormality is found. In response to the touch screen problem, the present invention will give priority to the adaptation of software and hardware in iteration. The hardware only modifies the touch screen connection FPC line for compatibility processing without changing or less changing the motherboard interface; the recognition algorithm is created in the software to improve compatibility and portability. Without increasing labor costs, the motherboard changes are reduced to keep the equipment stable and efficient. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 is a flow chart of the steps of a touch screen recognition method provided by an embodiment of the present invention;
[0049] Figure 2 It is a flow chart of the touch screen recognition scheme designed by the present invention;
[0050] Figure 3 is a structural block diagram of a touch screen recognition device provided by an embodiment of the present invention;
[0051] Figure 4 is a block diagram of an electronic device provided by an embodiment of the present invention;
[0052] Figure 5 It is a schematic diagram of a computer-readable medium provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0054] Reference Figure 1 , shows a flow chart of the steps of a touch screen recognition method provided in an embodiment of the present invention, which may specifically include the following steps:
[0055] Step 101, connecting the touch screen chip and the glass panel through a plurality of pre-set FPC connection lines, each FPC connection line corresponds to a different channel connection state;
[0056] Step 102, presetting a firmware set corresponding to the touch screen chip model in the system storage area; the firmware set corresponding to the touch screen chip model includes firmware for touch screen chips of different models and firmware for touch screen chips of the same model but of different sizes;
[0057] Step 103, reading screen-related information during the device kernel startup process, and matching the firmware of the corresponding touch screen chip according to the read screen-related information to complete driver adaptation; the screen-related information includes a display screen identification code or a touch screen chip register status value;
[0058] Step 104: continuously monitor the register status of the touch screen chip during system operation, and perform an automatic reset operation when an abnormal status is detected.
[0059] The following is a detailed process of the touch screen recognition solution designed by the present invention, refer to Figure 2 .
[0060] 1. Hardware design. The touch screen interface on the mainboard remains unchanged as much as possible, and different FPC connection lines are customized for the new touch screen (the connection between the touch IC and the glass panel). There are usually 40 channels from the touch IC to the panel, and the touch IC can read the channel value through the internal register. According to this feature, the present invention generally selects 4 specific groups of channels for identification. If a large number of compatible touch screens are required, more channels can be selected. For example, the design of some FPC line interfaces is as follows:
[0061] Table 1 FPC line interface design
[0062] 39 Y1 40 Y0 41 Y38(TP NC) 42 Y39_KEY
[0063] The hardware connection is identified by different FPC connection lines. For example, if you select 12 channels to be suspended and 34 channels to be connected, or 13 channels to be suspended and 24 channels to be connected, there will be different combinations, and each combination represents a touch screen. When the touch IC communication is working, different connections will read different status values. After completing the hardware design, the software must be compatible with stability.
[0064] 2. Storage information: The system creates storage addresses to preset firmware for different touch screens, including firmware for different touch ICs and firmware for different sizes of the same touch IC.
[0065] 3. Read information. When the kernel starts, choose to load different touch screen drivers. There are two situations during loading: one full screen and one split screen. The full screen can complete the driver adaptation based on the read screen-related information - display identification code matching the corresponding touch screen chip firmware; the split screen can complete the driver adaptation based on the read screen-related information - touch screen chip register status value matching the corresponding touch screen chip firmware.
[0066] 4. Abnormal monitoring. The register status of the touch screen chip is continuously monitored during system operation. When an abnormal state is detected, an automatic reset operation is performed to realize automatic detection of the touch screen status, timely capture of abnormalities and automatic recovery processing, so that the touch screen in the product can maintain an efficient and stable working state.
[0067] In one embodiment of the present invention, the screen association information is read during the device kernel startup process, and the driver adaptation is completed by matching the firmware of the corresponding touch screen chip according to the read screen association information, including:
[0068] If the display screen and the touch screen are separate, the touch screen chip register model and the touch screen chip register status value are read during the device kernel startup process, and the corresponding touch screen chip model is determined according to the touch screen chip register model. For the same touch screen chip model, the corresponding FPC connecting line is matched according to the touch screen chip register status value, and the firmware of the corresponding size of the matching FPC connecting line is loaded to complete the driver adaptation; the register status value reflects the channel connection status of the current touch screen.
[0069] In one embodiment of the present invention, the screen association information is read during the device kernel startup process, and the driver adaptation is completed by matching the firmware of the corresponding touch screen chip according to the read screen association information, including:
[0070] If the display screen and the touch screen are bound as an integrated screen, the display screen identification code is read during the device kernel startup process, and the corresponding touch screen driver is bound through the display screen identification code. During the driver loading stage, the display screen name characters are read to determine whether to load the touch screen driver. When the read display screen name characters are consistent with the target display screen name characters, the touch screen driver is loaded. When the read display screen name characters are inconsistent with the target display screen name characters, the loading of the touch screen driver is terminated.
[0071] The present invention is based on the TP FPC interface design of the same Pin heel shape, and is distinguished by customizing the number of channels of different connections. During driver loading, the TP IC reads the internal register to distinguish which project the IC is and downloads the corresponding firmware. The TP firmware is preset in the system partition, and after reading the corresponding TP during startup, the corresponding firmware is found in the system partition and then downloaded. In addition, according to the TP firmware number, the kernel loading of other touch screen drivers is reduced during kernel startup, thereby speeding up the kernel startup process.
[0072] When the kernel starts, different touch screen drivers are selected to load. There are two situations during loading.
[0073] (1) Integrated screen, that is, the display screen and the touch screen are bound together:
[0074] Different touch ICs are distinguished according to the display screen. The touch screen power is turned on in advance according to the ID of the display screen. When the kernel starts, different touch screen IC drivers are selected to be loaded. This is because the display screen and the touch screen are bound together. If the target display screen is consistent, it will be loaded. If it is inconsistent, it will return 0 and not load.
[0075] ① Modify the touch screen driver, read the display ID in the lk stage when the machine starts and pass it down to the kernel, bind the touch screen driver and load it.
[0076] ②If there is a special power supply, the power of the touch screen can be turned on in advance according to the ID of the display.
[0077] ③ Reduce the touch screen driver loaded by the kernel by intercepting the probe function loaded into the touch screen driver in advance when the kernel starts. Because the display screen loads faster than the touch screen, the display name characters are read to choose whether to load the touch screen driver. If it is consistent with the target display screen, it is loaded. If it is inconsistent, it returns 0 and does not load.
[0078] (2) Display screen and touch screen are separated: If the touch screen IC is the same, the same driver is used and identified through registers. Different sizes of the same touch IC are distinguished by reading the channel connection status return value of the TP IC.
[0079] ① When the driver starts loading, read the internal registers of the touch screen. Currently, the IC uses b8 and ac registers, and different IC registers are different.
[0080] ② Determine whether the return value is consistent with the status of the hardware connection. Different channel connections have different return values.
[0081] ③ Load different firmware according to the read register to achieve identification compatibility.
[0082] ④Continuously power on and off the machine for stress testing to see if the identification process is abnormal.
[0083] In one embodiment of the present invention, the design of the FPC connecting line includes:
[0084] Select and set the suspension and connection states of specific channels in the FPC connection line to form a variety of FPC connection lines, each of which corresponds to an identification code of a touch screen chip.
[0085] The key to the design of the FPC cable of the present invention is to form a variety of different FPC cable configurations by selecting and setting the suspended and connected states of specific channels. This design enables each FPC cable to correspond to an identification code of a touch screen chip, thereby realizing the identification and adaptation of different touch screen chips. Specifically, the channel state (suspended or connected) in the FPC cable can be pre-configured into different combinations, each combination corresponding to a unique identification code, thereby realizing automatic chip identification at the hardware level.
[0086] In a first embodiment of the present invention, the register state of the touch screen chip is continuously monitored during system operation, and an automatic reset operation is performed when an abnormal state is detected, including:
[0087] Create a touch screen daemon process, read the specific register status of the touch screen chip through the touch screen daemon process at regular intervals, and determine whether the touch screen chip status is normal based on the specific register status of the touch screen chip. If it is abnormal, perform an automatic reset operation to restore the touch screen chip, and upload the touch screen chip abnormal information to the system service for storage.
[0088] In this embodiment, a touch screen daemon process is created, through which the specific register status of the touch screen IC (such as bc, b0 and other registers, the specific registers need to be determined according to the IC specification, and the registers are different for different ICs) is read regularly (for example, every 10 seconds), and the touch screen IC is judged whether it is in a normal state based on the read register status. If an abnormal state is detected, the daemon process will actively perform a reset operation to restore the normal function of the touch screen IC, and upload the abnormal Log information of the touch screen IC to the system service and save it as a file, and notify the development manager. This embodiment ensures that the system can continuously monitor the status of the touch screen IC during operation, and restore its function in time when an abnormality occurs, thereby improving the stability and reliability of the system.
[0089] In one embodiment of the present invention, the method further comprises:
[0090] Create a detection thread, record the driver loading process during the boot loading process through the detection thread, and save the touch screen that has been successfully loaded.
[0091] In this embodiment, a detection thread can also be created, through which the detailed process of driver loading is recorded in real time during the boot loading process. Specifically, the detection thread can monitor and record the loading status, loading time, and error information that may appear during the loading process of each driver module. In this way, the system can accurately identify and save the touch screen driver information that has been successfully loaded, and provide data support for subsequent troubleshooting and performance optimization.
[0092] In one embodiment of the present invention, the method further comprises:
[0093] Create system services to provide a communication interface from the system layer to the kernel layer;
[0094] Transmit the touch screen chip abnormal information uploaded by the touch screen daemon process to the administrator terminal through the system service to notify the administrator;
[0095] Read and save touch screen version information through system services for system customization.
[0096] In this embodiment, a system service may be created after booting up to provide a communication interface from the system layer to the kernel layer.
[0097] ① When a chip anomaly occurs, the daemon process will save the information through the system service and notify the development manager.
[0098] ② Read the version value of the touch screen and report it to the system service. The system service will save the read touch screen information, and according to the read touch screen information, the system will make customization needs, such as physical navigation bar, double-click wake-up, etc.
[0099] Advantages of the present invention:
[0100] The present invention can reduce the modification of the mainboard, identify and distinguish by reading the register of the touch screen IC, and integrate touch screen detection, automatic recovery, abnormal log storage, abnormal analysis and evaluation. In an environment without network and poor anti-interference ability, from the bottom layer to the background service, the built-in touch chip firmware does not need to be re-burned, thereby reducing the production steps and time cost investment, simplifying the process and improving production efficiency.
[0101] At the same time, the present invention can be adapted to a variety of systems, has versatility, and also has the following advantages and innovations:
[0102] ①Strong transplant compatibility, standard kernel interface, and can adapt to Linux and Android devices
[0103] ②Automation: detect the touch screen status, capture abnormalities in time and automatically perform recovery processing.
[0104] ③ The recovery mechanism is efficient, with coordinated cooperation between software and hardware, and timely linkage of system services. Problems are handled and analyzed in a timely manner, and product strength can be continuously optimized.
[0105] ④ Reliability: fewer changes to the main board, reducing the uncertainty and electromagnetic compatibility issues caused by board changes.
[0106] In general, this algorithm can keep the touch screen in the product in an efficient and stable working state.
[0107] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.
[0108] Reference Figure 3 , shows a structural block diagram of a touch screen recognition device provided in an embodiment of the present invention, which may specifically include the following modules:
[0109] The FPC connection line connection module 301 is used to connect the touch screen chip and the glass panel through a plurality of pre-set FPC connection lines, each of which corresponds to a different channel connection state;
[0110] The firmware presetting module 302 is used to preset the firmware set corresponding to the touch screen chip model in the system storage area; the firmware set corresponding to the touch screen chip model includes firmware for touch screen chips of different models and firmware for touch screen chips of the same model but of different sizes;
[0111] The touch screen identification module 303 is used to read the screen-related information during the device kernel startup process, and match the firmware of the corresponding touch screen chip according to the read screen-related information to complete the driver adaptation; the screen-related information includes the display screen identification code or the touch screen chip register status value;
[0112] The touch screen chip abnormality detection module 304 is used to continuously monitor the register status of the touch screen chip during system operation, and perform an automatic reset operation when an abnormal status is detected.
[0113] Optionally, the touch screen recognition module includes:
[0114] The first touch screen identification submodule is used to read the touch screen chip register model and the touch screen chip register status value during the device kernel startup process if the display screen and the touch screen are separated, and determine the corresponding touch screen chip model according to the touch screen chip register model, and for the same touch screen chip model, match the corresponding FPC connecting line according to the touch screen chip register status value, load the firmware of the corresponding size of the matching FPC connecting line to complete the driver adaptation; the register status value reflects the channel connection status of the current touch screen.
[0115] Optionally, the touch screen recognition module includes:
[0116] The second touch screen identification submodule is used to read the display screen identification code during the device kernel startup process if the display screen and the touch screen are bound as an integrated screen, and bind the corresponding touch screen driver through the display screen identification code. In the driver loading stage, it is determined whether to load the touch screen driver through the read display screen name characters. When the read display screen name characters are consistent with the target display screen name characters, the touch screen driver is loaded. When the read display screen name characters are inconsistent with the target display screen name characters, the loading of the touch screen driver is terminated.
[0117] Optionally, the device further comprises an FPC connection line design module, which is used to:
[0118] Select and set the suspension and connection states of specific channels in the FPC connection line to form a variety of FPC connection lines, each of which corresponds to an identification code of a touch screen chip.
[0119] Optionally, the touch screen chip abnormality detection module includes:
[0120] The touch screen chip abnormality detection submodule is used to create a touch screen daemon process, which periodically reads the specific register status of the touch screen chip through the touch screen daemon process, and determines whether the touch screen chip status is normal based on the specific register status of the touch screen chip. If it is abnormal, it performs an automatic reset operation to restore the touch screen chip, and uploads the touch screen chip abnormality information to the system service for storage.
[0121] Optionally, the device further includes a touch screen driver loading process record storage module, which is used to:
[0122] Create a detection thread, record the driver loading process during the boot loading process through the detection thread, and save the touch screen that has been successfully loaded.
[0123] Optionally, the device further includes a system service module, configured to:
[0124] Create system services to provide a communication interface from the system layer to the kernel layer;
[0125] Transmit the touch screen chip abnormal information uploaded by the touch screen daemon process to the administrator terminal through the system service to notify the administrator;
[0126] Read and save touch screen version information through system services for system customization.
[0127] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0128] In addition, an embodiment of the present invention further provides an electronic device, such as Figure 4As shown, it includes a processor 401, a communication interface 402, a memory 403 and a communication bus 404, wherein the processor 401, the communication interface 402, and the memory 403 communicate with each other through the communication bus 404.
[0129] Memory 403, used for storing computer programs;
[0130] The processor 401 is used to implement the touch screen recognition method described in the above embodiment when executing the program stored in the memory 403.
[0131] The communication bus mentioned in the above terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0132] The communication interface is used for communication between the above terminal and other devices.
[0133] The memory may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0134] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0135] like Figure 5As shown, in another embodiment provided by the present invention, a computer-readable storage medium 501 is further provided, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the touch screen recognition method described in the above embodiment.
[0136] In another embodiment of the present invention, a computer program product including instructions is provided. When the computer program product is run on a computer, the computer executes the touch screen recognition method described in the above embodiment.
[0137] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by 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 the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention 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 device. 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, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes 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.
[0138] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0139] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0140] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. A touch screen recognition method, characterized in that: The method comprises: Connect the touch screen chip and the glass panel through a variety of pre-set FPC connection lines, each of which corresponds to a different channel connection state; Preset a firmware set corresponding to the touch screen chip model in the system storage area; the firmware set corresponding to the touch screen chip model includes firmware for touch screen chips of different models and firmware for touch screen chips of the same model with different sizes; Reading screen-related information during the device kernel startup process, and matching the firmware of the corresponding touch screen chip according to the read screen-related information to complete driver adaptation; the screen-related information includes a display screen identification code or a touch screen chip register status value; The register status of the touch screen chip is continuously monitored during system operation, and an automatic reset operation is performed when an abnormal state is detected.
2. The method according to claim 1, characterized in that During the device kernel startup process, the screen-related information is read, and the firmware of the corresponding touch screen chip is matched according to the read screen-related information to complete the driver adaptation, including: If the display screen and the touch screen are separate, the touch screen chip register model and the touch screen chip register status value are read during the device kernel startup process, and the corresponding touch screen chip model is determined according to the touch screen chip register model. For the same touch screen chip model, the corresponding FPC connecting line is matched according to the touch screen chip register status value, and the firmware of the corresponding size of the matching FPC connecting line is loaded to complete the driver adaptation; the register status value reflects the channel connection status of the current touch screen.
3. The method according to claim 1, characterized in that During the device kernel startup process, the screen-related information is read, and the firmware of the corresponding touch screen chip is matched according to the read screen-related information to complete the driver adaptation, including: If the display screen and the touch screen are bound as an integrated screen, the display screen identification code is read during the device kernel startup process, and the corresponding touch screen driver is bound through the display screen identification code. During the driver loading stage, the display screen name characters are read to determine whether to load the touch screen driver. When the read display screen name characters are consistent with the target display screen name characters, the touch screen driver is loaded. When the read display screen name characters are inconsistent with the target display screen name characters, the loading of the touch screen driver is terminated.
4. The method according to claim 1, characterized in that: The design of FPC cable includes: Select and set the suspension and connection states of specific channels in the FPC connection line to form a variety of FPC connection lines, each of which corresponds to an identification code of a touch screen chip.
5. The method according to claim 1, characterized in that The register status of the touch screen chip is continuously monitored during system operation, and an automatic reset operation is performed when an abnormal state is detected, including: Create a touch screen daemon process, read the specific register status of the touch screen chip through the touch screen daemon process at regular intervals, and determine whether the touch screen chip status is normal based on the specific register status of the touch screen chip. If it is abnormal, perform an automatic reset operation to restore the touch screen chip, and upload the touch screen chip abnormal information to the system service for storage.
6. The method according to claim 1, characterized in that The method further comprises: Create a detection thread, record the driver loading process during the boot loading process through the detection thread, and save the touch screen that has been successfully loaded.
7. The method according to claim 1, characterized in that The method further comprises: Create system services to provide a communication interface from the system layer to the kernel layer; Transmit the touch screen chip abnormal information uploaded by the touch screen daemon process to the administrator terminal through the system service to notify the administrator; Read and save touch screen version information through system services for system customization.
8. A touch screen recognition device, characterized in that: The device comprises: An FPC cable connection module is used to connect the touch screen chip and the glass panel through a plurality of pre-set FPC cables, each of which corresponds to a different channel connection state; The firmware presetting module is used to presetting the firmware set corresponding to the touch screen chip model in the system storage area; the firmware set corresponding to the touch screen chip model includes firmware for touch screen chips of different models and firmware for touch screen chips of the same model but of different sizes; A touch screen identification module is used to read the screen-related information during the device kernel startup process, and match the firmware of the corresponding touch screen chip according to the read screen-related information to complete the driver adaptation; the screen-related information includes the display screen identification code or the touch screen chip register status value; The touch screen chip abnormality detection module is used to continuously monitor the register status of the touch screen chip during system operation and perform an automatic reset operation when an abnormal status is detected.
9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the touch screen recognition method according to any one of claims 1 to 7 when executing the program stored in the memory.
10. One or more computer-readable media having instructions stored thereon, which, when executed by one or more processors, enable the processors to execute the touch screen recognition method according to any one of claims 1 to 7.