CN118069565A - Multi-touch screen mapping method, device, equipment and storage medium - Google Patents

Multi-touch screen mapping method, device, equipment and storage medium Download PDF

Info

Publication number
CN118069565A
CN118069565A CN202410348368.0A CN202410348368A CN118069565A CN 118069565 A CN118069565 A CN 118069565A CN 202410348368 A CN202410348368 A CN 202410348368A CN 118069565 A CN118069565 A CN 118069565A
Authority
CN
China
Prior art keywords
touch screen
identification information
output device
screen identification
input device
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.)
Pending
Application number
CN202410348368.0A
Other languages
Chinese (zh)
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.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Ecarx Hubei Tech Co Ltd
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 Ecarx Hubei Tech Co Ltd filed Critical Ecarx Hubei Tech Co Ltd
Priority to CN202410348368.0A priority Critical patent/CN118069565A/en
Publication of CN118069565A publication Critical patent/CN118069565A/en
Pending legal-status Critical Current

Links

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a multi-touch screen mapping method, a multi-touch screen mapping device, multi-touch screen mapping equipment and a storage medium. The method comprises the following steps: responding to an access event of the input equipment, and acquiring touch screen identification information stored in the input equipment; responding to an access event of the output equipment, and acquiring touch screen identification information stored in the output equipment; according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device, the input device and the input device are mapped and associated, and through the technical scheme of the invention, the input device and the output device of the touch screen can be mapped automatically, the complexity of touch screen access is reduced, and the touch screen access efficiency is improved.

Description

Multi-touch screen mapping method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a multi-touch screen mapping method, a multi-touch screen mapping device, multi-touch screen mapping equipment and a storage medium.
Background
The multi-touch screen system includes a plurality of touch screens, and the screen mode is an extension screen (different screens display different contents), each touch screen including: in this case, in order to ensure that the input device and the output device respond to the target touch screen after the target touch screen is operated, the input device and the output device of the same touch screen need to be mapped again manually each time the input device or the output device of the touch screen is plugged into an interface of a host, started up and replaced. The manual mapping mode increases the complexity of touch screen access and reduces the touch screen access efficiency.
Disclosure of Invention
The embodiment of the invention provides a multi-touch screen mapping method, a device, equipment and a storage medium, which can automatically map input equipment and output equipment of a touch screen, reduce the complexity of touch screen access and improve the touch screen access efficiency.
According to an aspect of the present invention, there is provided a multi-touch screen mapping method, including:
responding to an access event of the input equipment, and acquiring touch screen identification information stored in the input equipment;
Responding to an access event of the output equipment, and acquiring touch screen identification information stored in the output equipment;
and mapping and associating the output device and the input device according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device.
Further, mapping and associating the output device with the input device according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device, including:
And mapping and associating the output device and the input device which have the same stored touch screen identification information.
Further, the memory of the input device stores the touch screen identification information of the touch screen to which the input device belongs in advance, and the memory of the output device stores the touch screen identification information of the touch screen to which the output device belongs in advance.
Further, responding to an access event of the input device, obtaining touch screen identification information stored in the input device, including:
And responding to an access event of the input device, calling a function of acquiring the touch screen identification information based on the touch screen drive, and acquiring the touch screen identification information stored in a memory of the input device through a host input interface.
Further, responding to the access event of the output device, obtaining the touch screen identification information stored in the output device, including:
Determining a storage location of touch screen identification information based on target criteria in response to an access event of an output device, wherein the target criteria include: a storage location for touch screen identification information;
And acquiring the touch screen identification information stored in the output equipment according to the storage position of the touch screen identification information.
Further, acquiring the touch screen identification information stored in the output device according to the storage position of the touch screen identification information includes:
And the function of acquiring the touch screen identification information is called based on the graphic card driver, and the touch screen identification information stored in the memory of the output equipment is acquired through the host output interface according to the storage position of the touch screen identification information.
Further, the touch screen identification information stored in the memory of the output device in advance is written based on a target standard.
Further, the touch screen identification information of the touch screen to which the output device belongs is stored in an Extended Display Identification (EDID) extended tag which is newly added in an EDID memory of the output device, and the extended tag corresponding to the touch screen identification information is unoccupied.
Further, the touch screen identification information of the touch screen to which the output device belongs is stored in the DISPLAY ID data block newly added in the display identification DISPLAY ID memory of the output device, and the data block label corresponding to the touch screen identification information is unoccupied.
Further, the touch screen identification information of the touch screen to which the input device belongs is stored in an erasable and reprogrammable floating gate read-only memory of the input device.
Further, after mapping and associating the output device and the input device according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device, the method further includes:
When a touch event corresponding to a target input device is acquired, acquiring a target output device associated with the mapping of the target input device;
And controlling the target output device to respond to the touch event.
According to another aspect of the present invention, there is provided a multi-touch screen mapping apparatus including:
The first acquisition module is used for responding to an access event of the input equipment and acquiring the touch screen identification information stored in the input equipment;
the second acquisition module is used for responding to the access event of the output equipment and acquiring the touch screen identification information stored in the output equipment;
and the mapping association module is used for mapping and associating the output equipment and the input equipment according to the touch screen identification information stored in the input equipment and the touch screen identification information stored in the output equipment.
Further, the mapping association module is specifically configured to:
And mapping and associating the output device and the input device which have the same stored touch screen identification information.
Further, the memory of the input device stores the touch screen identification information of the touch screen to which the input device belongs in advance, and the memory of the output device stores the touch screen identification information of the touch screen to which the output device belongs in advance.
Further, the first obtaining module is specifically configured to:
And responding to an access event of the input device, calling a function of acquiring the touch screen identification information based on the touch screen drive, and acquiring the touch screen identification information stored in a memory of the input device through a host input interface.
Further, the second obtaining module is specifically configured to:
Determining a storage location of touch screen identification information based on target criteria in response to an access event of an output device, wherein the target criteria include: a storage location for touch screen identification information;
And acquiring the touch screen identification information stored in the output equipment according to the storage position of the touch screen identification information.
Further, the second obtaining module is specifically configured to:
And the function of acquiring the touch screen identification information is called based on the graphic card driver, and the touch screen identification information stored in the memory of the output equipment is acquired through the host output interface according to the storage position of the touch screen identification information.
Further, the touch screen identification information stored in the memory of the output device in advance is written based on a target standard.
Further, the touch screen identification information of the touch screen to which the output device belongs is stored in an Extended Display Identification (EDID) extended tag which is newly added in an EDID memory of the output device, and the extended tag corresponding to the touch screen identification information is unoccupied.
Further, the touch screen identification information of the touch screen to which the output device belongs is stored in the DISPLAY ID data block newly added in the display identification DISPLAY ID memory of the output device, and the data block label corresponding to the touch screen identification information is unoccupied.
Further, the touch screen identification information of the touch screen to which the input device belongs is stored in an erasable and reprogrammable floating gate read-only memory of the input device.
Further, the method further comprises the following steps:
The third acquisition module is used for acquiring a target output device which is in mapping association with the target input device when a touch event corresponding to the target input device is acquired after the output device and the input device are mapped and associated according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device;
And the response module is used for controlling the target output equipment to respond to the touch event.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the multi-touch screen mapping method of any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement the multi-touch screen mapping method according to any one of the embodiments of the present invention when executed.
According to the embodiment of the invention, the touch screen identification information stored in the input equipment is obtained by responding to the access event of the input equipment; responding to an access event of the output equipment, and acquiring touch screen identification information stored in the output equipment; the input device and the output device are mapped and associated according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device, so that the input device and the output device of the touch screen can be mapped automatically, the complexity of touch screen access is reduced, and the touch screen access efficiency is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention;
FIG. 2 is a flow chart of a multi-touch screen mapping method in an embodiment of the invention;
FIG. 3 is a schematic diagram of a multi-touch screen system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a multi-touch screen mapping device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device in an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It will be appreciated that prior to using the technical solutions disclosed in the embodiments of the present disclosure, the user should be informed and authorized of the type, usage range, usage scenario, etc. of the personal information related to the present disclosure in an appropriate manner according to the relevant legal regulations.
Currently, multi-touch screen systems include: a multi-touch screen system that can flexibly detach and replace a touch screen and a multi-touch screen system that cannot flexibly detach and replace a touch screen.
For a multi-touch screen system with a flexible detachable and replaceable touch screen, the interface of the host is connected with the touch screen output device or the input device in each plugging or unplugging or the touch screen output device or the input device needs to be mapped again manually when the system is started, and automatic mapping between the output device and the input device cannot be achieved.
For multi-touch screen systems that are not flexible to disassemble and replace the touch screen: since the interfaces of the touch screen, in which the output device and the input device are connected to the host are fixed, the association relationship among the interfaces of the host, the output device and the input device may be stored in the host in advance, but if the host is replaced, the association relationship among the interfaces of the host, the output device and the input device needs to be reconfigured, so that development cost and maintenance cost may be increased.
Based on the above problems, embodiments of the present invention provide a multi-touch screen mapping method, apparatus, device, and storage medium, where by storing touch screen identification information to an input device and an output device of a touch screen in advance, when the touch screen is accessed to a host, the input device and the output device are automatically mapped and associated according to the acquired touch screen identification information stored in the input device and the touch screen identification information stored in the output device. The problem that the input equipment and the output equipment of the multi-touch screen system capable of flexibly disassembling and replacing the touch screen are manually mapped again when being connected with the interface of a host computer or started up is solved. The problem that the association relationship among the host interface, the output device and the input device is required to be stored in the host in advance in the multi-touch-screen system which can not flexibly disassemble and replace the touch screen is solved, if the host is replaced, the association relationship is required to be reconfigured is solved, the input device and the output device of the touch screen can be automatically mapped, the complexity of touch screen access is reduced, and the touch screen access efficiency is improved.
In the following, first, an application scenario of the solution provided by the present application is illustrated.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present invention. As shown in fig. 1, the application scenario may include: host computer and touch-sensitive screen 1 to touch-sensitive screen N, each touch-sensitive screen 1 to touch-sensitive screen N includes: the touch screen identification information is stored in each of the input device and the output device, and it is required to be noted that the touch screen identification information stored in the input device and the output device of different touch screens is different, and the touch screen identification information stored in the input device and the output device of the same touch screen is the same. The touch interface of the touch screen 1 is connected with the touch input interface USB-1 of the host, and the display interface of the touch screen 1 is connected with the display output interface HDMI-1 of the host; the touch interface of the touch screen 2 is connected with the touch input interface USB-2 of the host, and the display interface of the touch screen 2 is connected with the display output interface HDMI-2 of the host; and the touch interface of the touch screen N is connected with the touch input interface USB-N of the host, and the display interface of the touch screen N is connected with the display output interface HDMI-N of the host. For each of the touch screens 1 to N, the host acquires touch screen identification information stored in an input device and touch screen identification information stored in an output device of each of the touch screens connected to the host, so as to perform automatic mapping association on the output device and the input device according to the acquired touch screen identification information stored in the input device and touch screen identification information stored in the output device, and further accurately respond to a touch event on one of the touch screens 1 to N according to the mapping association relationship between the output device and the input device of the touch screen connected to the host.
It should be noted that fig. 1 is only a schematic diagram of an application scenario provided by an embodiment of the present application, and the embodiment of the present application does not limit the devices included in fig. 1 or limit the positional relationship between the devices in fig. 1. For example, in the application scenario shown in fig. 1, a memory may be further included, where the memory may be a memory integrated in the input device or a memory integrated in the output device. The HDMI interface in FIG. 1 may also be a DP interface, and the USB in FIG. 1 may also be Type-C, I C, etc.
The technical scheme of the application is described in detail through specific embodiments. It should be noted that the following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
Example 1
Fig. 2 is a flowchart of a multi-touch screen mapping method according to an embodiment of the present invention, where the method may be applied to a multi-touch screen mapping case, and the method may be performed by a multi-touch screen mapping device according to an embodiment of the present invention, where the device may be implemented in a software and/or hardware manner, and as shown in fig. 2, the method specifically includes the following steps:
S210, when responding to an access event of the input device, acquiring the touch screen identification information stored in the input device.
The access event may be an add event, when the input device accesses the host, an add event of the input device may be generated, and when the output device accesses the host, an add event of the output device may be generated.
The touch screen identification information of the touch screen to which the input device belongs is stored in the memory of the input device in advance.
Specifically, when the input device is accessed to the host, the host responds to an access event of the input device and acquires the touch screen identification information stored in the input device.
In a specific example, as shown in fig. 1, when an input device of the touch screen 1 is connected to a host, the host responds to a connection event of the input device and reads touch screen identification information stored in the input device of the touch screen 1.
S220, when responding to the access event of the output equipment, acquiring the touch screen identification information stored in the output equipment.
The touch screen identification information of the touch screen to which the output device belongs is stored in the memory of the output device in advance.
Specifically, when the output device is accessed to the host, the host responds to an access event of the output device, and acquires the touch screen identification information stored in the output device.
In a specific example, as shown in fig. 1, when an output device of the touch screen 1 is connected to a host, the host responds to an access event of the output device and reads touch screen identification information stored in the output device of the touch screen 1. The input device may be a touch input device, and the output device may be a display output device.
It should be noted that, in the embodiment of the present invention, S110 and S120 are not sequential, if the input device is first connected to the host, the touch screen identification information stored in the input device is first obtained, if the output device is first connected to the host, the touch screen identification information stored in the output device is first obtained, and if the input device and the output device are simultaneously connected to the host, the touch screen identification information stored in the input device and the touch screen identification information stored in the output device are simultaneously obtained.
In addition, the touch screen identification information stored in the input device or the output device may be acquired while the access event of the input device or the output device is detected, or may be acquired within a period of time after the access event of the input device or the output device is detected. It should be noted that, when the user accesses the multi-touch screen to the host, the following situations may occur: after the user accesses the input device A into the host, the user finds that the access behavior is wrong, pulls out the input device A, and then accesses the input device B into the host. Thus, for the above case, acquiring the touch screen identification information after a certain interval time can reduce unnecessary operations.
In addition, after mapping and associating the output device and the input device according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device, the method further comprises:
generating a corresponding relation table according to the mapping association of the output equipment and the input equipment;
Deleting a first input device and an output device associated with the first input device mapping in the corresponding relation table in response to a unplugging event of the first input device;
And deleting the first output device and the input device mapped and associated with the first output device in the corresponding relation table in response to the unplugging event of the first output device.
Optionally, the memory of the input device stores in advance touch screen identification information of the touch screen to which the input device belongs, and the memory of the output device stores in advance touch screen identification information of the touch screen to which the output device belongs.
It should be noted that, when each touch screen is produced, one touch screen identification information is generated, and hereinafter, touch unit is used to represent the touch screen identification information, touch unit is identity information of the touch screen, and if touch unit is different, the touch unit is indicated to be different touch screens.
Optionally, the touch screen identification information of the touch screen to which the input device belongs is stored in an erasable and reprogrammable floating gate read only memory of the input device.
In the embodiment of the present invention, the touch uuid of the input device of the touch screen is stored in an erasable and reprogrammable floating gate read only memory of the input device, and the erasable and reprogrammable floating gate read only memory may be: EPROM, EEPROM, flash, etc.
S230, mapping and associating the output device and the input device according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device.
Specifically, the mapping and associating the output device and the input device according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device may be: and mapping and associating the output device and the input device which have the same stored touch screen identification information. For example, if the acquired touch screen identification information stored in the input device a is touch uuid 1 and the acquired touch screen identification information stored in the output device B is touch uuid 1, since the touch screen identification information stored in the input device a is the same as the touch screen identification information stored in the output device B, the table name input device a and the output device B are the input device and the output device of the same touch screen, and the input device a and the output device B can be mapped and associated.
Specifically, the mapping association between the output device and the input device according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device may further be: and if the touch screen identification information stored in the input device and the touch screen identification information stored in the output device are determined to be the identification information corresponding to the same touch screen according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device, mapping and associating the output device and the input device. For example, if the acquired touch screen identification information stored in the input device a is touch screen uuid 1.In, the acquired touch screen identification information stored in the output device B is touch screen uuid 1.Out, and since the touch screen identification information stored in the input device a includes touch screen uuid 1 and the touch screen identification information stored in the output device B also includes touch screen uuid 1, the table name input device a and the output device B are input devices and output devices of the same touch screen, and further the input device a and the output device B can be mapped and associated.
Optionally, mapping and associating the output device with the input device according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device, including:
And mapping and associating the output device and the input device which have the same stored touch screen identification information.
Specifically, the mapping and associating the output device and the input device with the same stored touch screen identification information may be: comparing the touch screen identification information stored in the input device with the touch screen identification information stored in the output device, mapping and associating the output device and the input device which are the same in the stored touch screen identification information, and storing the output device and the input device which are mapped and associated with the output device into a memory of a host, so that a display service interface of the host can accurately respond to touch events on a touch screen connected with the host based on the output device and the input device which is mapped and associated with the output device.
Optionally, the touch screen identification information pre-stored in the memory of the output device is written based on a target standard.
The original standard is modified in advance to obtain the target standard, and the target standard includes: the touch screen identifies the storage location of the information. Specifically, after the production of the touch screen is completed, touch screen identification information (the touch screen identification information is identification information generated during the production of the touch screen) is acquired, the touch screen is connected with an identification information writing device, and the identification information writing device writes the touch screen identification information into a corresponding storage position in a memory of the output device based on the storage position of the touch screen identification information.
The target standard may be an improved EDID standard or an improved DISPLAY ID standard.
The EDID (Extended Display IDentification Data ) standard and the DISPLAY ID standard are both standard data formats established by the video electronics standards association. EDID and E-EDID (Enhanced EDID) are metadata formats for display output devices, the data structures include manufacturer name and serial number, product type, phosphor or filter type (as chromaticity data), timing for display support, display size, luminance data, and (applicable to digital displays only) pixel map data, etc., while DISPLAY ID is intended to replace EDID and E-EDID in a unified format. The current latest EDID standard is version E-EDID 1.4 (E-EDID has replaced traditional EDID, EDID 1.4 refers to E-EDID 1.4), and the latest DISPLAY ID standard is version 2.0.
Optionally, the touch screen identification information of the touch screen to which the output device belongs is stored in an EDID expansion tag newly added in an expansion display identification EDID memory of the output device, and the expansion tag corresponding to the touch screen identification information is unoccupied.
It should be noted that, if the touch uuid of the output device is stored in the EDID memory, an EDID expansion tag needs to be added to store the touch uuid, and the touch uuid needs to use an unoccupied expansion tag.
Optionally, the touch screen identification information of the touch screen to which the output device belongs is stored in a DISPLAY ID data block newly added in the display identification DISPLAY ID memory of the output device, and a data block label corresponding to the touch screen identification information is unoccupied.
It should be noted that, if the touch uuid of the output device is stored in the DISPLAYID memory, a display identifier DISPLAY ID needs to be added to the data block for storing the touch uuid, and the touch uuid needs to use a tag of the unoccupied data block.
Storage and read design of touch uuid in output device: the touch uuid of the output device in the touch screen is stored in an EDID Memory or DISPLAYID Memory, and the Memory of the output device may be an EEPROM (ELECTRICALLY ERASABLE PROGRAMMABLE READ-Only Memory). the touch UUID is a standard UUID,128 bits requiring 16 bytes of storage. If EDID storage is used, no 16-byte region storage touch uuid exists in EDID 1.4, and an EDID expansion tag is newly added in the embodiment for storing touch uuid, and the tag occupied by the EDID 1.4 version EDID expansion tag is shown in Table 1:
TABLE 1
Label (Label) Extended data block description
0x02 CEA-EXT:CEA 861Series Extension(see Note 2)
0x10 VTB-EXT:Video Timing Block Extension
0x40 DI-EXT:Display Information Extension
0x50 LS-EXT:Localized String Extension
60 DPVL-EXT:Digital Packet Video Link Extension
F0 EXTENSION Block Map
FF EXTENSIONS defined by the display manufacturer
The TOUCH uuid uses an unoccupied extension tag (e.g., 0x 80), and the extension is described as TOUCH-EXT: touch Information Extension. The data format design of TOUCH-EXT is shown in Table 2:
TABLE 2
The touch uuid is stored at a 2-17 byte offset (16 bytes total).
If the updated DISPLAYID standard is used, a data block type DISPLAYID needs to be added in this embodiment, and the data block tag occupied by DISPLAYID 2.0 is shown in table 3:
TABLE 3 Table 3
Data block label Name of the name
0x00–0x1F Reserved(legacy 1.0data blocks)
0x20 Product Identification
0x21 Display Parameters
0x22 Type VII–Detailed timing
0x23 Type VIII–Enumerated Timing Code
0x24 Type IX–Formula-based Timing
0x25 Dynamic video timing range Limits
0x26 Display Interface Features
0x27 Stereo Display Interface
0x28 Tiled Display Topology
0x29 ContainerID
0x7E Vendor specific
0x81 CTA DisplayID
The touch uuid uses an unoccupied data block tag (e.g., 0x 30) to represent Touch Information. Touch Information the DISPLAYID 2.0.0 data format design is shown in table 4:
TABLE 4 Table 4
/>
The touch uuid is stored at a 7-22 byte offset (16 bytes total).
Optionally, the obtaining touch screen identification information stored in the output device in response to an access event of the output device includes:
Determining a storage location of touch screen identification information based on target criteria in response to an access event of an output device, wherein the target criteria include: a storage location for touch screen identification information;
And acquiring the touch screen identification information stored in the output equipment according to the storage position of the touch screen identification information.
Wherein the target criteria may include: and (3) expanding the storage position of the tag, the storage position of the version number and the storage position of the touch screen identification information. The target criteria may further include: the method comprises the steps of storing a valid data block length, storing a data block use case, storing a version number, storing a data block label, storing a load amount and storing touch screen identification information.
Specifically, the manner of determining the storage location of the touch screen identification information based on the target standard may be: target criteria are pre-established, and the target criteria comprise: and determining the storage position of the touch screen identification information based on the data format structure corresponding to the target standard.
In one specific example, the updated EDID standard stores the touch uuid at a 2-17 byte offset. In response to an access event of the output device, touch screen identification information stored in the output device at a 2-17 byte offset is read.
In another specific example, the updated DISPLAY ID standard, the touch uuid is stored at a 7-22 byte offset. In response to an access event of the output device, touch screen identification information stored in the output device at a 7-22 byte offset is read.
In the embodiment of the invention, the read of the touch uuid stored in the output equipment can be realized according to the updated EDID standard or DISPLAY ID standard.
Optionally, the acquiring touch screen identification information stored in the output device according to the storage location of the touch screen identification information includes:
And the function of acquiring the touch screen identification information is called based on the graphic card driver, and the touch screen identification information stored in the memory of the output equipment is acquired through the host output interface according to the storage position of the touch screen identification information.
Specifically, the function of reading the touch screen identification information is provided through the graphic card driver, and the touch screen identification information stored in the storage position of the touch screen identification information in the memory of the output device is read through the host output interface.
Optionally, in response to an access event of the input device, acquiring touch screen identification information stored in the input device includes:
And responding to an access event of the input device, calling a function of acquiring the touch screen identification information based on the touch screen drive, and acquiring the touch screen identification information stored in a memory of the input device through a host input interface.
Wherein, the host computer includes: the input interface can be a USB, and the output interface can be an HDMI.
In a specific example, the touch screen driver provides a function of reading a touch uuid stored in a memory of the input device, and the device manager and the display service program acquire the touch uuid stored in the input device through the bottom layer driver. Wherein, the device manager may be: udev.
In another specific example, the host obtains the touch uuid stored in the input device and the output device through the graphics card driver and the touch screen driver, respectively, and then completes the pairing relationship between the input device and the output device in the display service program.
Optionally, after mapping and associating the output device and the input device according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device, the method further includes:
When a touch event corresponding to a target input device is acquired, acquiring a target output device associated with the mapping of the target input device;
And controlling the target output device to respond to the touch event.
In the embodiment of the invention, when the touch event corresponding to the target input device is acquired, the target output device associated with the mapping of the target input device is controlled to respond to the touch event, so that the touch event on the touch screen to which the target input device belongs can respond on the touch screen to which the target input device belongs.
In a specific example, as shown in fig. 3, the multi-touch screen system includes a host, a touch screen 1, and a touch screen 2, the touch screen 1 includes: output device and input device, touch screen 2 includes: output device and input device, the output device of touch-sensitive screen 1 includes: touch uuid corresponding to the touch screen 1, the input device of the touch screen 1 includes: the touch uuid corresponding to the touch screen 1, and the output device of the touch screen 2 includes: touch uuid corresponding to the touch screen 2, the input device of the touch screen 2 includes: the touch uuid corresponding to the touch screen 2, where the output device and the input device of each touch screen store a same touch uuid, which is used to identify that the pair of output device and input device belong to the same touch screen. For example, the touch uuid of the output device and the input device of the touch screen 1 are touch uuid (uuid 1) corresponding to the touch screen 1, the touch uuid of the output device and the input device of the touch screen 2 are touch uuid (uuid 2) corresponding to the touch screen 2, and the like if there are more touch screens.
The automatic mapping method of the input equipment and the output equipment provided by the embodiment of the invention comprises the following steps:
In step S1, a touch uuid is generated during production of each touch screen, and the touch uuid is written into an EDID memory (or DISPLAY ID memories) of an output device and a memory of an input device of the touch screen.
Specifically, each touch screen is composed of one output device and one input device. The output device comprises an EDID memory or DISPLAY ID memory, and when the hardware design of the output device is carried out, a corresponding EDID memory space or Diplay ID memory space is added for storing the touch uuid. The input device also needs to open up storage space for storing the touch uuid in hardware design. When each touch screen is produced, generating a uuid as a touch uuid, and writing the touch uuid into an EDID memory (or DISPLAY ID memory) of an output device and a memory of an input device of the touch screen, so that the touch uuid in the output device and the touch uuid in the input device in the same touch screen are the same when the touch screen is produced.
In step S2, the driving layer provides a function of acquiring touch uuid in the input device and the output device of the touch screen.
Specifically, a function of acquiring a touch uuid needs to be provided in a corresponding driver (including a user mode underlying library), the touch uuid of the output device is provided by the graphics card driver through the EDID standard or DISPLAY ID standard, and the touch uuid of the input device is provided by the touch screen driver as one of the attributes.
Step S3, the user mode program further provides a function of acquiring touch uuid in the input device and the output device of the touch screen according to the function provided by the driving layer.
Specifically, the display service program, the display configuration tool and the input configuration tool matched with the display service program need to be modified, the display configuration tool uses an interface provided by a graphics card driver to obtain the touch uuid stored in the output device, and the input configuration tool uses an interface provided by a touch screen driver to obtain the touch uuid stored in the input device.
And S4, when an add event of the output device or the input device exists, automatically acquiring the touch uuid stored in the output device and the input device through the device manager, and mapping and associating the output device and the input device with the same stored touch uuid.
Specifically, the device starts up and plugs in the input device or the output device, the device manager receives a corresponding add event, and when receiving the event, the device manager can execute a corresponding action, and step S4 obtains the touch uuid stored in the input device or the output device by using a corresponding user mode program, and maps and associates the input device and the output device with the same touch uuid through an interface provided by the display service.
According to the technical scheme, touch screen identification information stored in the input equipment is obtained by responding to an access event of the input equipment; responding to an access event of the output equipment, and acquiring touch screen identification information stored in the output equipment; the input device and the output device are mapped and associated according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device, so that the input device and the output device of the touch screen can be mapped automatically, the complexity of touch screen access is reduced, and the touch screen access efficiency is improved.
Example two
Fig. 4 is a schematic structural diagram of a mapping device for multiple touch screens according to an embodiment of the present invention. The embodiment may be applicable to a case of multi-touch screen mapping, and the apparatus may be implemented in a software and/or hardware manner, and may be integrated in any device that provides a multi-touch screen mapping function, as shown in fig. 4, where the multi-touch screen mapping apparatus specifically includes: a first acquisition module 410, a second acquisition module 420, and a mapping association module 430.
The first acquisition module is used for responding to an access event of the input equipment and acquiring the touch screen identification information stored in the input equipment;
the second acquisition module is used for responding to the access event of the output equipment and acquiring the touch screen identification information stored in the output equipment;
and the mapping association module is used for mapping and associating the output equipment and the input equipment according to the touch screen identification information stored in the input equipment and the touch screen identification information stored in the output equipment.
Optionally, the mapping association module is specifically configured to:
And mapping and associating the output device and the input device which have the same stored touch screen identification information.
Optionally, the memory of the input device stores in advance touch screen identification information of the touch screen to which the input device belongs, and the memory of the output device stores in advance touch screen identification information of the touch screen to which the output device belongs.
Optionally, the first obtaining module is specifically configured to:
And responding to an access event of the input device, calling a function of acquiring the touch screen identification information based on the touch screen drive, and acquiring the touch screen identification information stored in a memory of the input device through a host input interface.
Optionally, the second obtaining module is specifically configured to:
Determining a storage location of touch screen identification information based on target criteria in response to an access event of an output device, wherein the target criteria include: a storage location for touch screen identification information;
And acquiring the touch screen identification information stored in the output equipment according to the storage position of the touch screen identification information.
Optionally, the second obtaining module is specifically configured to:
And the function of acquiring the touch screen identification information is called based on the graphic card driver, and the touch screen identification information stored in the memory of the output equipment is acquired through the host output interface according to the storage position of the touch screen identification information.
Optionally, the touch screen identification information pre-stored in the memory of the output device is written based on a target standard.
Optionally, the touch screen identification information of the touch screen to which the output device belongs is stored in an EDID expansion tag newly added in an expansion display identification EDID memory of the output device, and the expansion tag corresponding to the touch screen identification information is unoccupied.
Optionally, the touch screen identification information of the touch screen to which the output device belongs is stored in a DISPLAY ID data block newly added in the display identification DISPLAY ID memory of the output device, and a data block label corresponding to the touch screen identification information is unoccupied.
Optionally, the touch screen identification information of the touch screen to which the input device belongs is stored in an erasable and reprogrammable floating gate read only memory of the input device.
Optionally, the method further comprises:
The third acquisition module is used for acquiring a target output device which is in mapping association with the target input device when a touch event corresponding to the target input device is acquired after the output device and the input device are mapped and associated according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device;
And the response module is used for controlling the target output equipment to respond to the touch event.
The product can execute the method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example III
Fig. 5 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 5, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the multi-touch screen mapping method.
In some embodiments, the multi-touch screen mapping method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the multi-touch screen mapping method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the multi-touch screen mapping method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (14)

1. A multi-touch screen mapping method, characterized by being applied to a multi-touch screen system, the multi-touch screen system comprising a host computer and at least two touch screens, each touch screen comprising: an input device and an output device, the multi-touch screen mapping method being performed by a host, the method comprising:
responding to an access event of the input equipment, and acquiring touch screen identification information stored in the input equipment;
Responding to an access event of the output equipment, and acquiring touch screen identification information stored in the output equipment;
and mapping and associating the output device and the input device according to the touch screen identification information stored in the input device and the touch screen identification information stored in the output device.
2. The method of claim 1, wherein mapping the output device to the input device based on the touch screen identification information stored in the input device and the touch screen identification information stored in the output device comprises:
And mapping and associating the output device and the input device which have the same stored touch screen identification information.
3. The method according to claim 2, wherein the memory of the input device has stored therein in advance touch screen identification information of a touch screen to which the input device belongs, and the memory of the output device has stored therein in advance touch screen identification information of a touch screen to which the output device belongs.
4. A method according to claim 3, wherein obtaining touch screen identification information stored in the input device in response to an access event of the input device comprises:
And responding to an access event of the input device, calling a function of acquiring the touch screen identification information based on the touch screen drive, and acquiring the touch screen identification information stored in a memory of the input device through a host input interface.
5. A method according to claim 3, wherein obtaining touch screen identification information stored in the output device in response to an access event of the output device comprises:
Determining a storage location of touch screen identification information based on target criteria in response to an access event of an output device, wherein the target criteria include: a storage location for touch screen identification information;
And acquiring the touch screen identification information stored in the output equipment according to the storage position of the touch screen identification information.
6. The method of claim 5, wherein acquiring the touch screen identification information stored in the output device based on the storage location of the touch screen identification information, comprises:
And the function of acquiring the touch screen identification information is called based on the graphic card driver, and the touch screen identification information stored in the memory of the output equipment is acquired through the host output interface according to the storage position of the touch screen identification information.
7. A method according to claim 3, wherein the touch screen identification information pre-stored in the memory of the output device is written based on a target standard.
8. The method of claim 3, wherein the touch screen identification information of the touch screen to which the output device belongs is stored in an EDID expansion tag newly added to an expansion display identification EDID memory of the output device, and the expansion tag corresponding to the touch screen identification information is unoccupied.
9. The method according to claim 3, wherein the touch screen identification information of the touch screen to which the output device belongs is stored in a DISPLAY ID data block newly added to the display identification DISPLAY ID memory of the output device, and a data block tag corresponding to the touch screen identification information is unoccupied.
10. A method according to claim 3, characterized in that the touch screen identification information of the touch screen to which the input device belongs is stored in an erasable and reprogrammable floating gate read only memory of the input device.
11. The method of claim 1, further comprising, after mapping the output device to the input device based on the touch screen identification information stored in the input device and the touch screen identification information stored in the output device:
When a touch event corresponding to a target input device is acquired, acquiring a target output device associated with the mapping of the target input device;
And controlling the target output device to respond to the touch event.
12. A multi-touch screen mapping apparatus, wherein the multi-touch screen mapping apparatus is configured in a host, the apparatus comprising:
The first acquisition module is used for responding to an access event of the input equipment and acquiring the touch screen identification information stored in the input equipment;
the second acquisition module is used for responding to the access event of the output equipment and acquiring the touch screen identification information stored in the output equipment;
and the mapping association module is used for mapping and associating the output equipment and the input equipment according to the touch screen identification information stored in the input equipment and the touch screen identification information stored in the output equipment.
13. An electronic device, the electronic device comprising:
at least one processor; and
A memory communicatively coupled to the at least one processor; wherein,
The memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the multi-touch screen mapping method of any of claims 1-11.
14. A computer readable storage medium storing computer instructions for causing a processor to implement the multi-touch screen mapping method of any of claims 1-11 when executed.
CN202410348368.0A 2024-03-26 2024-03-26 Multi-touch screen mapping method, device, equipment and storage medium Pending CN118069565A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410348368.0A CN118069565A (en) 2024-03-26 2024-03-26 Multi-touch screen mapping method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410348368.0A CN118069565A (en) 2024-03-26 2024-03-26 Multi-touch screen mapping method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN118069565A true CN118069565A (en) 2024-05-24

Family

ID=91109419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410348368.0A Pending CN118069565A (en) 2024-03-26 2024-03-26 Multi-touch screen mapping method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN118069565A (en)

Similar Documents

Publication Publication Date Title
US10347166B2 (en) Electronic device and operating method thereof
US10235945B2 (en) Apparatus and method for controlling display in electronic device having processors
EP2148259A1 (en) Field device management apparatus and field device management system
US20170201690A1 (en) Electronic device and method for processing image
WO2020035061A1 (en) Method and device for identifying type of memory device externally connected to smart television
CN114936173B (en) Read-write method, device, equipment and storage medium of eMMC device
WO2020000657A1 (en) Method and apparatus for establishing operation and maintenance monitoring connection, terminal device, and medium
CN107766021A (en) Image processing method, equipment, display system and storage medium
CN118069565A (en) Multi-touch screen mapping method, device, equipment and storage medium
CN116662039A (en) Industrial information parallel detection method, device and medium based on shared memory
CN204650502U (en) Image bridging device and image output system
CN114237795B (en) Terminal interface display method and device, electronic equipment and readable storage medium
CN115501588A (en) Image rendering method and device, storage medium and electronic equipment
CN109271538A (en) A kind of picture storage method and relevant device
CN115794132A (en) Operating system deployment method, device, equipment and storage medium
CN115826898B (en) Cross-screen display method, system, device, equipment and storage medium
CN118152312A (en) Storage device identification method, device, equipment and storage medium
CN112509608B (en) Method and device for recording sound along with channel of USB (Universal Serial bus) equipment and storage medium
CN206209706U (en) Intelligent interaction terminal
CN116016176A (en) Automatic distribution method and device for data center equipment
CN117075920A (en) Optimization method and device for application program installation package
CN115469866A (en) Page rendering method and device of applet, electronic device and storage medium
CN111258864A (en) Program access log recording method and device and storage medium
CN115857828A (en) Customized system implementation method and device, electronic equipment and storage medium
CN117827355A (en) Theme switching method and device, vehicle and medium

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