CN110716666A - Processing method and device of self-adaptive touch screen, main control equipment and touch screen equipment - Google Patents

Processing method and device of self-adaptive touch screen, main control equipment and touch screen equipment Download PDF

Info

Publication number
CN110716666A
CN110716666A CN201910950227.5A CN201910950227A CN110716666A CN 110716666 A CN110716666 A CN 110716666A CN 201910950227 A CN201910950227 A CN 201910950227A CN 110716666 A CN110716666 A CN 110716666A
Authority
CN
China
Prior art keywords
touch screen
touch
current
current touch
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910950227.5A
Other languages
Chinese (zh)
Other versions
CN110716666B (en
Inventor
吕艳磊
曾云洪
黄勇
李伟进
陈金奇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201910950227.5A priority Critical patent/CN110716666B/en
Publication of CN110716666A publication Critical patent/CN110716666A/en
Application granted granted Critical
Publication of CN110716666B publication Critical patent/CN110716666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0416Control or interface arrangements specially adapted for digitisers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application relates to a processing method and device of a self-adaptive touch screen, a main control device and a touch screen device. The method comprises the following steps: after the current touch screen is powered on, identifying the touch mode of the current touch screen; determining an equipment node corresponding to the current touch screen according to the touch mode of the current touch screen; the device node is a file for accessing touch screen information; setting an environment variable of a system according to a device node corresponding to the current touch screen; the environment variable of the system is a variable indicating a deposit path of the device node. By the method and the device, system compatibility can be improved.

Description

Processing method and device of self-adaptive touch screen, main control equipment and touch screen equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a self-adaptive touch screen, a master control device, and a touch screen device.
Background
Touch screens can be divided into a plurality of types according to touch control modes, generally speaking, different types of touch screens in the same series basically only change the touch control modes; in the production process of the touch screen, different types of touch screens use system images corresponding to the touch control mode when the system is programmed, and the system compatibility is poor. For example, the touch modes of the current industrial touch screen are mainly classified into capacitive touch and resistive touch, and a capacitive touch system mirror image and a resistive touch system mirror image are used respectively when a system is programmed.
Disclosure of Invention
Therefore, it is necessary to provide a method and an apparatus for processing an adaptive touch screen, a main control device, and a touch screen device, which can improve system compatibility, for solving the technical problem of poor system compatibility.
A method of processing an adaptive touch screen, the method comprising:
after a current touch screen is powered on, identifying a touch mode of the current touch screen;
determining an equipment node corresponding to the current touch screen according to the touch mode of the current touch screen; the device node is a file for accessing touch screen information;
and setting an environment variable of a system according to the equipment node corresponding to the current touch screen, wherein the environment variable of the system is a variable for indicating a storage path of the equipment node.
An adaptive touch screen processing apparatus, the apparatus comprising:
the touch control mode identification module is used for identifying the touch control mode of the current touch screen after the current touch screen is electrified;
the equipment node determining module is used for determining an equipment node corresponding to the current touch screen according to the touch mode of the current touch screen; the device node is a file for accessing touch screen information;
and the environment variable setting module is used for setting the environment variable of the system according to the equipment node corresponding to the current touch screen, wherein the environment variable of the system is a variable for indicating the storage path of the equipment node.
A master device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
after a current touch screen is powered on, identifying a touch mode of the current touch screen;
determining an equipment node corresponding to the current touch screen according to the touch mode of the current touch screen; the device node is a file for accessing touch screen information;
setting an environment variable of a system according to the equipment node corresponding to the current touch screen; the environment variable of the system is a variable indicating a deposit path of the device node.
A touch screen device comprises a touch screen and the main control device, wherein the main control device is connected with the touch screen.
According to the processing method and device for the self-adaptive touch screen, the master control device and the touch screen device, after the current touch screen is powered on, the touch mode of the current touch screen is identified, the device node corresponding to the current touch screen is determined according to the touch mode of the current touch screen, then the environment variable of the system is set according to the device node corresponding to the current touch screen, and the environment variable can be adjusted based on the touch mode of the current touch screen, so that the system can read the device node corresponding to the current touch screen through the adjusted environment variable to perform subsequent operation on the current touch screen, and the self-adaptive touch screen of the system is realized, so that the system can be suitable for touch screens with different touch modes, and is high in compatibility; in addition, an operator does not need to burn different systems aiming at the touch screens with different touch modes, and the operation is convenient.
Drawings
FIG. 1 is a flow diagram illustrating a method for processing an adaptive touch screen in one embodiment;
FIG. 2 is a flow chart illustrating a processing method of the adaptive touch screen in another embodiment;
FIG. 3 is a flow diagram illustrating a method for processing an adaptive touch screen in a detailed embodiment;
FIG. 4 is a block diagram of a processing device of an adaptive touch screen in one embodiment;
fig. 5 is an internal structural diagram of a main control device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In an embodiment, as shown in fig. 1, a processing method for an adaptive touch screen is provided, which is described by taking an example that the method is applied to a master control device, and includes the following steps:
s110: and after the current touch screen is powered on, identifying the touch mode of the current touch screen.
Touch screens can be classified into various types according to different touch manners, for example, the touch manners include capacitive touch, resistive touch, pressure sensing touch, and the like. The current touch screen is a touch screen which is operated and used currently, and the current touch screen is started after being electrified.
S130: and determining the equipment node corresponding to the current touch screen according to the touch mode of the current touch screen.
Wherein the device node is a file for accessing touch screen information. The touch screen information is information related to the touch screen, and may include, for example, a device address of the touch screen, touch event information of the touch screen, and the like. The operating system of the touch screen analyzes the data of the equipment node by calling the touch drive of the touch screen to acquire a touch event, and then performs operations such as touch identification response and the like. Specifically, the touch modes of the touch screen are different, and the corresponding device nodes are different.
S150: and setting the environment variable of the system according to the equipment node corresponding to the current touch screen.
The system refers to the operating system of the current touch screen. Wherein the environment variable of the system is a variable indicating a storage path of the device node. For example, the environment variable may take the form of "name-value" and the storage path indicated by a different value may be different, and the corresponding device node may be different.
In the working process of the touch screen, an operating system of the touch screen or an operating program written by a user determines a storage path of the equipment node through the environment variable under the file for storing the environment variable, then the equipment node is found according to the storage path, and then the equipment node is analyzed by calling the touch driver, so that the touch event is obtained through the data of the equipment node. Namely, to acquire a touch event of the touch screen, the device node is read and analyzed under the storage path indicated by the environment variable. Specifically, the main control device sets an environment variable of the system according to the device node corresponding to the current touch screen, so that the environment variable of the system indicates a storage path of the device node corresponding to the current touch screen.
The touch control modes of the touch screen are different, the corresponding equipment nodes are different, the storage paths of the equipment nodes are also different, and therefore the environment variables required to be set are also different. The environment variable of the system is set according to the equipment node of the current touch screen, so that the system can read the equipment node corresponding to the current touch screen, and the operation aiming at the current touch screen is carried out on the basis of the read equipment node, thereby automatically adapting to the touch control mode of the current touch screen.
According to the processing method of the self-adaptive touch screen, after the current touch screen is powered on, the touch mode of the current touch screen is identified, the equipment node corresponding to the current touch screen is determined according to the touch mode of the current touch screen, then the environment variable of the system is set according to the equipment node corresponding to the current touch screen, and the environment variable can be adjusted based on the touch mode of the current touch screen, so that the system can read the equipment node corresponding to the current touch screen through the adjusted environment variable to perform subsequent operation on the current touch screen, and the self-adaptive touch screen of the system is realized, therefore, the system can be suitable for the touch screens with different touch modes, and is high in compatibility; in addition, an operator does not need to burn different systems aiming at the touch screens with different touch modes, and the operation is convenient.
In one embodiment, referring to fig. 2, step S100 is further included before S130, and specifically, step S100 may be performed before step S110. It is understood that in other embodiments, step S100 may be performed after step S110.
S100: and loading the touch drives with different touch modes, and respectively generating equipment nodes corresponding to the touch screens with different touch modes.
Specifically, the master control device may load pre-stored touch drivers with multiple touch modes to the kernel, for example, the touch drivers with multiple touch modes may be pre-stored in an external storage device or other locations; and loading the touch drive results of multiple touch modes in the kernel, wherein the result is that equipment nodes corresponding to the touch screens of different touch modes are generated in the specified file. For example, the touch manner includes capacitive touch and resistive touch, and the directory for storing the specified file of the device node is/dev/input/; and loading the touch drive of the capacitive touch and the touch drive of the resistive touch, and respectively generating a device node corresponding to the touch screen of the capacitive touch and a device node corresponding to the touch screen of the resistive touch under/dev/input/output.
The device nodes corresponding to the touch screens with different touch manners may be stored in the main control device or other external storage device, and the stored node information may be obtained, for example, stored in the form of a corresponding relationship table. Specifically, in step S130, according to the touch manner of the current touch screen, the device node corresponding to the touch screen of the touch manner is searched from the stored node information, so as to obtain the device node corresponding to the current touch screen. For example, if the touch mode of the current touch screen is capacitive touch, the device node corresponding to the capacitive touch screen is searched from the stored node information.
The device nodes corresponding to the touch screens with different touch modes are generated by loading the touch drivers with different touch modes, so that the initialization of the device nodes is realized, the device nodes corresponding to the current touch screen can be conveniently determined after the touch mode of the current touch screen is identified, and the processing is simple and convenient.
In one embodiment, the touch modes include capacitive touch and resistive touch. Step S110 includes: after the current touch screen is powered on, reading data on a communication bus; if the reading is successful, judging that the touch mode of the current touch screen is capacitive touch; and if the reading is unsuccessful, judging that the current touch mode of the touch screen is resistance touch.
The communication bus may be an I2C (Inter-Integrated Circuit) bus. In a touch screen, for example, in an industrial touch screen, a capacitive touch screen is mounted on an I2C bus as an I2C device, and a resistive touch screen is mounted in a kernel as a character device. Specifically, a capacitive touch screen is mounted on an I2C bus, a specific address is provided, data of a device corresponding to the address is read through the I2C bus, if the reading is successful, it is considered that the device exists, that is, the capacitive touch screen exists, the current touch mode of the touch screen is capacitive touch, and if the reading is failed, it is considered that the capacitive touch screen does not exist, the current touch mode of the touch screen is resistive touch.
Specifically, after the current touch screen is powered on, the data on the communication bus can be read by an automatic running program. After the current touch screen is powered on, data on the communication bus are read, and according to the read touch mode of the current touch screen, automatic identification of the touch mode can be achieved.
It can be understood that other manners may be adopted to perform the identification of the touch manner. For example, in another embodiment, the touch manner includes capacitive touch and resistive touch. Step S110 includes: after the current touch screen is powered on, data reading is carried out on equipment nodes corresponding to the existing resistance touch control touch screen; if the reading is successful, judging that the current touch mode of the touch screen is resistance touch; and if the reading is unsuccessful, judging that the touch control mode of the current touch screen is capacitive touch control.
Specifically, in this embodiment, the step S100 is executed before the step S110, and the stored device node corresponding to the resistive touch screen may be the device node corresponding to the resistive touch screen generated after the touch driving of different touch manners is loaded in the step S100. The method comprises the steps that a touch screen touched by a resistor is used as a character device and mounted in a kernel, data reading is directly carried out on a device node corresponding to the touch screen touched by the resistor, if the data are read, the touch screen touched by the resistor is shown, namely the current touch screen is the touch screen touched by the resistor, and otherwise, the current touch screen is the touch screen touched by a capacitor; thus, automatic identification of the touch mode can be realized.
In one embodiment, step S150 includes: detecting whether the path value of the equipment node corresponding to the current touch screen is the same as the value of the environment variable prestored in the system; if not, changing the numerical value of the environment variable of the system into the path value of the equipment node corresponding to the current touch screen; if the values are the same, the values of the environmental variables of the system are kept unchanged.
The path value is a value indicating a storage path, and may be the same as the storage path or a numerical value corresponding to the storage path. After the device node is determined, the path value of the device node may also be determined, for example, the master control device may store, in advance, the path value fixedly corresponding to each device node.
Specifically, the master control device may compare the path value of the device node corresponding to the current touch screen with a value of an environment variable pre-stored in the system, so as to detect whether the path values are the same; if the storage paths are the same, the storage path indicated by the environmental variable prestored in the system is the storage path of the equipment node corresponding to the current touch screen, and the storage path does not need to be changed at this moment; and if not, changing the numerical value of the environment variable of the system into the path value of the equipment node corresponding to the current touch screen. Therefore, the storage path of the equipment node corresponding to the current touch screen can be indicated by the set environment variable.
In one embodiment, after step S150, the method further includes: and starting the application program of the current touch screen.
The current application program of the touch screen is a program for realizing the function of the current touch screen, such as displaying an interactive interface; the current touch screen application may be preloaded with storage. After the setting of the environment variables of the system is completed, the current application program of the touch screen is started, so that the touch screen can be started, and the use by a user is facilitated.
Specifically, in a detailed embodiment, taking the touch manner including capacitive touch and resistive touch as an example, a processing flow of the processing method of the adaptive touch screen is shown in fig. 3.
It should be understood that although the various steps in the flow charts of fig. 1-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a processing apparatus of an adaptive touch screen, including: a touch mode identification module 410, a device node determination module 430 and an environment variable setting module 450, wherein:
the touch mode identification module 410 is configured to identify a touch mode of the current touch screen after the current touch screen is powered on; the device node determining module 430 is configured to determine a device node corresponding to the current touch screen according to a touch manner of the current touch screen; the device node is a file used for accessing touch screen information; the environment variable setting module 450 is configured to set an environment variable of the system according to the device node corresponding to the current touch screen; wherein the environment variable of the system is a variable indicating a storage path of the device node.
According to the processing device of the self-adaptive touch screen, after the current touch screen is powered on through the touch mode identification module 410, the touch mode of the current touch screen is identified, the equipment node determination module 430 determines the equipment node corresponding to the current touch screen according to the touch mode of the current touch screen, then the environment variable setting module 450 sets the environment variable of the system according to the equipment node corresponding to the current touch screen, and the environment variable can be adjusted based on the touch mode of the current touch screen, so that the system can read the equipment node corresponding to the current touch screen through the adjusted environment variable to perform subsequent operation on the current touch screen, and the self-adaptive touch screen of the system is realized, so that the system can be suitable for touch screens with different touch modes, and is high in compatibility; in addition, an operator does not need to burn different systems aiming at the touch screens with different touch modes, and the operation is convenient.
In an embodiment, the processing apparatus for an adaptive touch screen further includes a driver loading module (not shown), configured to load touch drivers in different touch manners before the device node determining module 430 determines the device node corresponding to the current touch screen, so as to generate device nodes corresponding to touch screens in different touch manners, respectively. Specifically, the driver loading module may specifically execute the operation before the touch manner identification module 410 identifies the current touch manner of the touch screen.
The device nodes corresponding to the touch screens with different touch modes are generated by loading the touch drivers with different touch modes, so that the initialization of the device nodes is realized, the device nodes corresponding to the current touch screen can be conveniently determined after the touch mode of the current touch screen is identified, and the processing is simple and convenient.
In one embodiment, the touch modes include capacitive touch and resistive touch. The touch mode identification module 410 is used for reading data on the communication bus after the current touch screen is powered on; if the reading is successful, judging that the touch mode of the current touch screen is capacitive touch; and if the reading is unsuccessful, judging that the current touch mode of the touch screen is resistance touch.
After the current touch screen is powered on, data on the communication bus are read, and according to the read touch mode of the current touch screen, automatic identification of the touch mode can be achieved.
In another embodiment, the touch manner includes capacitive touch and resistive touch; the touch mode identification module 410 is configured to, after the current touch screen is powered on, perform data reading on a device node corresponding to the existing resistive touch screen; if the reading is successful, judging that the current touch mode of the touch screen is resistance touch; and if the reading is unsuccessful, judging that the touch control mode of the current touch screen is capacitive touch control.
Data reading is directly carried out on equipment nodes corresponding to the resistance touch control touch screen, if the data are read, the resistance touch control touch screen exists, namely the current touch screen is the resistance touch control touch screen, and if the data are not read, the current touch screen is the capacitance touch control touch screen; thus, automatic identification of the touch mode can be realized.
In one embodiment, the environment variable setting module 450 is configured to detect whether a path value of a device node corresponding to a current touch screen is the same as a pre-stored value of an environment variable of a system; if not, changing the numerical value of the environment variable of the system into the path value of the equipment node corresponding to the current touch screen; if the values are the same, the values of the environmental variables of the system are kept unchanged. Therefore, the storage path of the equipment node corresponding to the current touch screen can be indicated by the set environment variable.
In one embodiment, the processing apparatus of the adaptive touch screen further includes a program starting module (not shown) for starting the application program of the current touch screen after the environment variable setting module 450 sets the environment variable of the system. After the setting of the environment variables of the system is completed, the current application program of the touch screen is started, so that the touch screen can be started, and the use by a user is facilitated.
For specific limitations of the processing apparatus of the adaptive touch screen, reference may be made to the above limitations of the processing method of the adaptive touch screen, and details are not described here. The modules in the processing device of the adaptive touch screen can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the main control device, and can also be stored in a memory in the main control device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a master device is provided, the internal structure of which may be as shown in fig. 5. The main control device comprises a processor and a memory which are connected through a system bus. Wherein the processor of the master device is configured to provide computing and control capabilities. The memory of the main control device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The computer program is executed by a processor to implement a processing method of an adaptive touch screen.
Those skilled in the art will appreciate that the structure shown in fig. 5 is a block diagram of only a portion of the structure relevant to the present application, and does not constitute a limitation on the master device to which the present application is applied, and a particular master device may include more or less components than those shown in the figure, or combine certain components, or have a different arrangement of components.
In one embodiment, a master device is provided, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the processing method of the adaptive touch screen when executing the computer program.
The main control equipment can realize the processing method of the self-adaptive touch screen, and the system can be suitable for touch screens with different touch modes and has strong compatibility; in addition, an operator does not need to burn different systems aiming at the touch screens with different touch modes, and the operation is convenient.
In one embodiment, a touch screen device is provided, which includes a touch screen and the aforementioned master control device, and the master control device is connected to the touch screen. The main control device may implement the steps of the processing method for the adaptive touch screen, which are not described herein again.
The touch screen equipment adopts the main control equipment, so that the system is suitable for touch screens with different touch modes, and the compatibility is strong; in addition, an operator does not need to burn different systems aiming at the touch screens with different touch modes, and the operation is convenient.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (11)

1. A method for processing an adaptive touch screen, the method comprising:
after a current touch screen is powered on, identifying a touch mode of the current touch screen;
determining an equipment node corresponding to the current touch screen according to the touch mode of the current touch screen; the device node is a file for accessing touch screen information;
setting an environment variable of a system according to the equipment node corresponding to the current touch screen; the environment variable of the system is a variable indicating a deposit path of the device node.
2. The method according to claim 1, wherein before determining the device node corresponding to the current touch screen according to the touch manner of the current touch screen, the method further comprises:
and loading the touch drives with different touch modes, and respectively generating equipment nodes corresponding to the touch screens with different touch modes.
3. The method of claim 1, wherein the touch manner comprises capacitive touch and resistive touch; after the current touch screen is powered on, identifying the touch mode of the current touch screen comprises the following steps:
after the current touch screen is powered on, reading data on a communication bus;
if the reading is successful, judging that the touch mode of the current touch screen is capacitive touch;
and if the reading is unsuccessful, judging that the touch control mode of the current touch screen is resistance touch control.
4. The method of claim 1, wherein the touch manner comprises capacitive touch and resistive touch; after the current touch screen is powered on, identifying the touch mode of the current touch screen comprises the following steps:
after the current touch screen is powered on, data reading is carried out on equipment nodes corresponding to the existing resistance touch control touch screen;
if the reading is successful, judging that the touch mode of the current touch screen is resistance touch;
and if the reading is unsuccessful, judging that the touch control mode of the current touch screen is capacitive touch control.
5. The method according to claim 1, wherein the setting an environment variable of a system according to the device node corresponding to the current touch screen comprises:
detecting whether the path value of the equipment node corresponding to the current touch screen is the same as the value of the environment variable prestored in the system;
if not, changing the numerical value of the environment variable of the system to be the path value of the equipment node corresponding to the current touch screen;
if the values are the same, the values of the environmental variables of the system are kept unchanged.
6. The method according to any one of claims 1 to 5, wherein after setting the environment variable of the system according to the device node corresponding to the current touch screen, the method further comprises:
and starting the application program of the current touch screen.
7. An apparatus for processing an adaptive touch screen, the apparatus comprising:
the touch control mode identification module is used for identifying the touch control mode of the current touch screen after the current touch screen is electrified;
the equipment node determining module is used for determining an equipment node corresponding to the current touch screen according to the touch mode of the current touch screen; the device node is a file for accessing touch screen information;
the environment variable setting module is used for setting the environment variable of the system according to the equipment node corresponding to the current touch screen; the environment variable of the system is a variable indicating a deposit path of the device node.
8. The apparatus according to claim 7, further comprising a driver loading module, configured to load touch drivers in different touch manners before the device node determining module determines the device node corresponding to the current touch screen, so as to generate device nodes corresponding to touch screens in different touch manners, respectively.
9. The adaptive touch screen processing device according to claim 7, wherein the touch modes include capacitive touch and resistive touch; the touch control mode identification module is used for reading data on the communication bus after the current touch screen is powered on; if the reading is successful, judging that the touch mode of the current touch screen is capacitive touch; and if the reading is unsuccessful, judging that the touch control mode of the current touch screen is resistance touch control.
10. A master device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the steps of the method of any one of claims 1 to 6.
11. A touch screen device comprising a touch screen and the master device of claim 10, wherein the master device is connected to the touch screen.
CN201910950227.5A 2019-10-08 2019-10-08 Processing method and device of self-adaptive touch screen, main control equipment and touch screen equipment Active CN110716666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910950227.5A CN110716666B (en) 2019-10-08 2019-10-08 Processing method and device of self-adaptive touch screen, main control equipment and touch screen equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910950227.5A CN110716666B (en) 2019-10-08 2019-10-08 Processing method and device of self-adaptive touch screen, main control equipment and touch screen equipment

Publications (2)

Publication Number Publication Date
CN110716666A true CN110716666A (en) 2020-01-21
CN110716666B CN110716666B (en) 2021-07-23

Family

ID=69212258

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910950227.5A Active CN110716666B (en) 2019-10-08 2019-10-08 Processing method and device of self-adaptive touch screen, main control equipment and touch screen equipment

Country Status (1)

Country Link
CN (1) CN110716666B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013131347A1 (en) * 2012-03-06 2013-09-12 福兴达科技实业(深圳)有限公司 System and method for loading program for multiple touch screens
CN104407874A (en) * 2014-12-11 2015-03-11 天津中兴智联科技有限公司 Embedded equipment compatible to a plurality of types of LCD screens
KR20150097103A (en) * 2014-02-18 2015-08-26 주식회사 넥스다임 A method for providing an application developing environment
CN105912350A (en) * 2015-11-02 2016-08-31 乐视致新电子科技(天津)有限公司 Software adaption method and software adaption system compatible to a plurality of screen parameters
CN108984031A (en) * 2018-07-11 2018-12-11 深圳贝特莱电子科技股份有限公司 A kind of method that touch chip supports a variety of touch screens
CN109002331A (en) * 2018-09-04 2018-12-14 珠海格力电器股份有限公司 Starting method, apparatus, computer equipment and the storage medium of touch screen
CN109032699A (en) * 2018-07-23 2018-12-18 北京轻元科技有限公司 A kind of method and terminal for modifying application environment variable

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013131347A1 (en) * 2012-03-06 2013-09-12 福兴达科技实业(深圳)有限公司 System and method for loading program for multiple touch screens
KR20150097103A (en) * 2014-02-18 2015-08-26 주식회사 넥스다임 A method for providing an application developing environment
CN104407874A (en) * 2014-12-11 2015-03-11 天津中兴智联科技有限公司 Embedded equipment compatible to a plurality of types of LCD screens
CN105912350A (en) * 2015-11-02 2016-08-31 乐视致新电子科技(天津)有限公司 Software adaption method and software adaption system compatible to a plurality of screen parameters
CN108984031A (en) * 2018-07-11 2018-12-11 深圳贝特莱电子科技股份有限公司 A kind of method that touch chip supports a variety of touch screens
CN109032699A (en) * 2018-07-23 2018-12-18 北京轻元科技有限公司 A kind of method and terminal for modifying application environment variable
CN109002331A (en) * 2018-09-04 2018-12-14 珠海格力电器股份有限公司 Starting method, apparatus, computer equipment and the storage medium of touch screen

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
丁照宇,孙淑霞: "《Windows NT Server 4.0中文版实用技术》", 30 April 1998, 电子科技大学出版社 *

Also Published As

Publication number Publication date
CN110716666B (en) 2021-07-23

Similar Documents

Publication Publication Date Title
CN111522469B (en) Touch capacitance data adjusting method and device, electronic equipment and storage medium
CN105512033A (en) Automated testing method and device of mobile terminal and mobile terminal
CN108241516B (en) Embedded system program loading method and device, computer equipment and storage medium
CN108845869B (en) Concurrent request control method, device, computer equipment and storage medium
CN111933199B (en) Data read-write method and device based on memory and storage medium
US20220292056A1 (en) Method and apparatus for modifying file name, and storage medium
CN110716666B (en) Processing method and device of self-adaptive touch screen, main control equipment and touch screen equipment
CN112052032B (en) Brushing method and device of electronic control unit
JPWO2005114344A1 (en) How to select engineering tool and engineering tool startup program and add new program
CN113272785A (en) Method for mounting file system, terminal equipment and storage medium
CN109254862B (en) Method for automatically repairing DDR (double data Rate) upset, mobile terminal and storage medium
CN112667463A (en) Application system baseline state monitoring method and device
CN112052125A (en) Dump processing method and device for operating system kernel and electronic equipment
CN113051184A (en) Data reading method and device, electronic equipment and storage medium
CN110324410B (en) Method, device, computer equipment and storage medium for initiating webpage request
US20240142943A1 (en) Method and system for task recording using robotic process automation technology
KR101956843B1 (en) Method for applying calibration data to vehicle using integrated software for multi vehicles and Apparatus thereof
US9417885B2 (en) Computer system and control method thereof
EP2045779A1 (en) Vehicular control apparatus and program storage medium
JP3019346B2 (en) Data processing device
CN104216797A (en) Embedded system set value setting system and method and electronic device
US12019422B2 (en) Control device with attribute setting for industrial machine, attribute setting system for control device for industrial machine, method of setting control device with attributes for industrial machine, and information storage medium for setting a control device with attributes
US11977867B2 (en) Code checking method and non-transitory computer-readable recording medium device
CN108241578A (en) Automobile electronic control unit software compatibility inspection method and device
CN114153585A (en) Data processing method and related equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant