Display screen and touch binding method, screen display method and electronic equipment
By creating a monitoring service and reading configuration tables in electronic devices, dynamically binding touch operations to the display screen, solving the problem that the binding relationship between the touch screen and the display screen cannot be flexibly adjusted in the prior art, and achieving efficient and flexible binding relationship management.
Patent Information
- Application Number
- CN202411947449.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-05-13
AI Technical Summary
In the prior art, the binding relationship between the touch screen and the display screen cannot be flexibly adjusted, the applicability is poor, and dynamic binding cannot be achieved.
By creating a monitoring service, reading a configuration table, obtaining the current display screen identifier and the current touch identifier of the electronic device. If the target touch identifier and the target display screen identifier exist, a binding relationship is established and dynamically bind the touch operation to any display screen.
It realizes flexible binding between the touch screen and the display screen, and improves applicability. Users can achieve binding by updating the configuration table, without the need for inter-process interaction, making it more efficient and flexible.
Smart Images

Figure CN119987584A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of touch binding technology, and in particular to a display screen and touch binding method, a screen display method and an electronic device. Background Art
[0002] With the development of technology, many display screens now have touch functions, and users can perform touch operations through the display screens.
[0003] However, in the related art, each touch screen corresponds to a designated screen, cannot be flexibly adjusted, and has poor applicability. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a display screen and touch binding method, a screen display method and an electronic device, which can improve the flexibility and convenience of binding the touch screen and the display screen.
[0005] In order to solve the above technical problems, a technical solution adopted by the present invention is: A method for binding a display screen and a touch screen is applied to an electronic device, wherein the electronic device includes at least one touch screen, and the touch screen includes a display screen identifier and a touch identifier; the method includes: Creating a monitoring service, the monitoring service is used to obtain a configuration table, the configuration table is used to configure a binding relationship between a target touch identifier and a corresponding target display screen identifier; Reading the configuration table through the monitoring service; Obtaining a current display screen identifier and a current touch identifier of the electronic device; If the target touch identifier exists in the current touch identifier and the target display screen identifier exists in the current display screen identifier, a binding relationship between the target touch identifier and the target display screen identifier is established.
[0006] In order to solve the above technical problems, another technical solution adopted by the present invention is: A screen display method, comprising: Based on the binding relationship in the above-mentioned display screen and touch binding method, the signal received on the touch screen corresponding to the target touch identifier is displayed through the display screen corresponding to the target display screen identifier.
[0007] In order to solve the above technical problems, another technical solution adopted by the present invention is: An electronic device comprises a memory, a processor and a computer program stored in the memory and running on the processor. When the processor executes the computer program, each step in the above-mentioned method for binding a display screen and a touch screen and a screen display method is implemented.
[0008] The beneficial effects of the present invention are as follows: the electronic device of the present application includes at least one touch screen, and the touch screen includes a display screen identifier and a touch identifier. The present application creates a monitoring service, reads a configuration table through the monitoring service, obtains the current display screen identifier and the current touch identifier of the electronic device, and if the target touch identifier exists in the current touch identifier and the target display screen identifier exists in the current display screen identifier, then establishes a binding relationship between the target touch identifier and the target display screen identifier, so that the touch operation can be dynamically bound to any display screen by means of a configuration table, so that the actual touch can flow on different display screens, and the user only needs to update the configuration table to realize the binding of each touch screen and the display screen without the need for interaction between processes, which is more efficient and flexible, and at the same time realizes the separation of each module; that is, the present application adjusts the traditional one-to-one strong binding mode of the touch of the touch screen and the display screen to the form of dynamic binding of the touch of the touch screen and multiple display screens, and one touch can dynamically bind multiple display screens, thereby improving the flexibility and convenience of binding the touch screen and the display screen. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] Figure 1 A flowchart of a method for binding a display screen and a touch screen provided by an embodiment of the present invention; Figure 2 A flowchart of a screen display method provided by an embodiment of the present invention; Figure 3 A schematic diagram of reading a configuration table in a display screen and touch binding method provided by an embodiment of the present invention; Figure 4 A multi-screen display method in a screen display method provided by an embodiment of the present invention; Figure 5 A multi-screen same display intention in a screen display method provided by an embodiment of the present invention; Figure 6 Another multi-screen same display intention in a screen display method provided by an embodiment of the present invention; Figure 7 A schematic diagram of obtaining a configuration table in a display screen and touch binding method provided by an embodiment of the present invention; Figure 8 A schematic diagram of automatic binding in a display screen and touch binding method provided by an embodiment of the present invention; Fig. 9 A binding flow chart of a display screen and touch binding method provided by an embodiment of the present invention; Fig.10 A display flow chart of a screen display method provided by an embodiment of the present invention; Fig.11 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0010] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0011] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0012] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.
[0013] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0014] In the related art, each touch screen is fixed to a specified screen and cannot be changed or turned off dynamically. Even if there is an additional touch screen, it is usually bound to the main screen. If you want to bind the touch screen to other screens, such as a virtual screen or a Wi-Fi screen, you can only do so by changing the system.
[0015] For example, an electronic device has two touch screens, touch screen A includes touch module A1 and display screen B1, touch screen B includes touch module A2 and display screen B2, in the related technology, the touch of touch module A1 can only be bound to display screen B1, and the touch of touch module A2 can only be bound to display screen B2, that is, the user can only touch the touch module A1 of touch screen A to realize the display on display screen B1. In the related technology, the extended screen can be realized by modifying the system or adding connecting lines, but the switching of the extended screen requires cumbersome switching of connecting lines, and cannot be switched automatically. Therefore, the dynamic binding and reality of the screen in the related technology cannot be realized, cannot be flexibly adjusted, and has poor applicability.
[0016] In order to solve the above problems, the present application provides a display screen and touch binding method, a screen display method and an electronic device. The following is a detailed introduction to a display screen and touch binding method of the present application.
[0017] A display screen and touch binding method in the present application can be used in electronic devices, specifically in the main control of the electronic device, the electronic device includes at least one touch screen, the touch screen includes a display screen identifier and a touch identifier. The electronic device can be a cash register, a jukebox or a multimedia device with at least one touch screen.
[0018] For example, a cash register includes two touch screens A and B, each of which includes a touch module and a display screen. The touch module is mainly composed of components such as a touch screen, a sensor, and a controller. Its main function is to convert the user's touch action into an electrical signal, which is then transmitted to the main processor of the device for identification and processing. Touch screen A is seen by the customer, and touch screen B is seen by the cashier. Currently, the cashier's touch operation on the touch module A2 in the touch screen B can only be displayed on the display screen B2 of the touch screen B. This application is to bind the cashier's touch operation on the touch module A2 in the touch screen B to the display screen B2 of the touch screen B and the display screen B1 of the touch screen A at the same time, so that the cashier and the customer can see the cashier's touch operation on the touch screen B.
[0019] The following is a detailed description of the method for binding the display screen and the touch screen in the present invention. Figure 1 , including steps S110 to S140.
[0020] Step S110, creating a monitoring service, the monitoring service is used to obtain a configuration table, the configuration table is used to configure the binding relationship between the target touch identifier and the corresponding target display screen identifier. The configuration table can be in XML format.
[0021] For example, the source of the configuration table can be the user's mobile phone, cash register and server. The mobile phone establishes a connection with the server. When the configuration table is directly input through the cash register, the input operation can be obtained by polling the listening service to obtain the configuration table. When the configuration table is directly sent through the user's mobile phone, it can be received by polling the listening service to obtain the configuration table.
[0022] Step S120, reading the configuration table through the monitoring service.
[0023] For example, if the electronic device is a cash register, after the cash register is turned on, the user writes data to the configuration table. Figure 3 , read the configuration table through the listening service, the data structure of the configuration table can be<display="display1" ,touch=”usb1”> , where display represents the target display screen ID and touch represents the target touch ID. Assume that the configuration table read is<display="B1","B2",touch=”A1”> , indicating that the touch module A1 of the cash register is bound to the display screens B1 and B2.
[0024] Step S130, obtaining a current display screen identifier and a current touch identifier of the electronic device.
[0025] For example, the electronic device has two touch screens A and B, each of which structurally includes a touch module and a display screen. The display screen identifiers and touch identifiers of the two touch screens A and B are obtained to understand all the currently existing touch screens.
[0026] Step S140: If the current touch identifier contains the target touch identifier and the current display identifier contains the target screen identifier, a binding relationship between the target touch identifier and the target display identifier is established.
[0027] For example, there is a target touch identifier A1 and a corresponding target display identifier B2 in the configuration table, indicating that the user wants to bind the touch on touch screen A to the display of touch screen B. If the target touch identifier A1 exists in the current touch identifier and the target display identifier B2 exists in the current display identifier, a binding relationship between the target touch identifier A1 and the target display identifier B2 is established. After binding, no matter which layer it is in, it will not affect the use, and the touch on touch screen A can also be seen on touch screen B.
[0028] In this way, the electronic device of the present application includes at least one touch screen, and the touch screen includes a display screen identifier and a touch identifier. The present application creates a monitoring service, reads a configuration table through the monitoring service, obtains the current display screen identifier and the current touch identifier of the electronic device, and if the target touch identifier exists in the current touch identifier and the target display screen identifier exists in the current display screen identifier, then establishes a binding relationship between the target touch identifier and the target display screen identifier, so that the touch operation can be dynamically bound to any display screen by means of a configuration table, so that the actual touch can flow on different display screens, and the user only needs to update the configuration table to realize the binding of each touch screen and the display screen without the need for interaction between processes, which is more efficient and flexible, and at the same time realizes the separation of each module; that is, the present application adjusts the traditional one-to-one strong binding mode of the touch of the touch screen and the display screen to the form of dynamic binding of the touch of the touch screen and multiple display screens. One touch can dynamically bind multiple display screens, thereby improving the flexibility and convenience of binding the touch screen and the display screen.
[0029] In one embodiment of the present application, after step S120, the method further includes: If a configuration table read failure message is received, a configuration table is created through the monitoring service; Obtaining the current display screen ID and current touch ID of the electronic device; The current touch identifier is used as the target touch identifier, and a default display screen identifier corresponding to the target touch identifier is determined from the current display screen identifier according to the resolution of the display screen and the resolution of the touch module; The default display screen ID and the target touch ID are associated and stored in the created configuration table.
[0030] For example, please refer to Figure 7 If a configuration table read failure message is received, a configuration table is created through the monitoring service to obtain the current display screen identifier and the current touch identifier of the electronic device, and all current touch identifiers are used as target touch identifiers. If the resolution of the touch module corresponding to the target touch identifier A1 is 1920×1080, and the resolution of the display screen corresponding to the current display screen identifier B1 is also 1920×1080, the current display screen identifier B1 can be determined as the default display screen identifier of the target touch identifier A1, and the target touch identifier A1 and the default display screen identifier B1 are associated and stored in the configuration table to complete the default binding setting, that is, the touch module of the current touch screen is set to control only its own display screen by default.
[0031] In this way, when the configuration table fails to be read, it means that the configuration table does not exist yet. At this time, the configuration table is automatically created, the current touch identifier is used as the target touch identifier, and the default display screen identifier corresponding to the target touch identifier is determined from the current display screen identifier according to the resolution of the display screen and the resolution of the touch module. The default display screen identifier and the target touch identifier are associated and stored in the created configuration table, thereby realizing the initial default setting of the configuration table.
[0032] In one embodiment of the present application, the target display screen is identified as multiple; The step S140 of establishing a binding relationship between the target touch identifier and the target display identifier includes: A binding relationship between the target touch identifier and each target display screen identifier is established.
[0033] For example, the target touch identifier is A1, and there are multiple target display screen identifiers, such as B1, B2, and B3, which means that the user needs to bind the touch on a touch screen to multiple screens. In this case, a binding relationship between the target touch identifier A1 and the target display screen identifier B1 is established, a binding relationship between the target touch identifier A1 and the target display screen identifier B2 is established, and a binding relationship between the target touch identifier A1 and the target display screen identifier B3 is established.
[0034] In this way, touches on one touch screen can be dynamically bound to multiple screens, providing greater flexibility.
[0035] In one embodiment of the present application, establishing a binding relationship between the target touch identifier and the target display identifier in step S140 includes: Obtaining a default display screen identifier corresponding to the target touch identifier from the current display screen identifier; A binding relationship between the target touch identifier and the default display identifier is established, and a binding relationship between the target touch identifier and the target display identifier is established at the same time.
[0036] For example, in the configuration table, the target touch identifier is A2, and the target display identifier is B1. The default display identifier B2 corresponding to the target touch identifier A2 is obtained from the current display identifier, and a binding relationship between the target touch identifier A2 and the default display identifier B2 is established. At the same time, a binding relationship between the target touch identifier A2 and the target display identifier B1 is established, so that the touch operation on touch screen A can be displayed on touch screen A and touch screen B at the same time.
[0037] In this way, if the target touch identifier exists in the current touch identifier, it means that the display screen identifier of the touch identifier itself must exist, then this binding can be one-to-many, that is, in addition to being bound to the target display screen identifier in the configuration table, the target touch identifier is also bound to the default display screen identifier, so that two identical displays can be achieved through one touch screen, ensuring the flexibility of the binding of the display screen and touch.
[0038] In one embodiment of the present application, it also includes: Get the current display mode through the monitoring service; If the display mode is multi-screen simultaneous display, a binding relationship between the secondary touch screen and the primary touch screen is established; If the display mode is multi-screen, a default binding relationship is established.
[0039] For example, please refer to Figure 8 The user can set the display mode as needed, and the monitoring service will automatically complete the binding according to the display mode. Suppose the cashier of the cash register sets the display mode to multi-screen simultaneous display, then after the monitoring service obtains it, it will automatically bind touch screen 1 (main screen) and touch screen 2 (sub-screen), that is, bind the touch of the main screen to the sub-screen. Suppose the cashier of the cash register sets the display mode to multi-screen different display, then the main screen is bound to itself, and the sub-screen is bound to itself, that is, the touch of touch screens 1 and 2 are bound to their own screens respectively.
[0040] In this way, binding is automatically completed according to the display mode, which is more flexible and convenient.
[0041] In one embodiment of the present application, after step S140, the method further includes: Receive configuration table change information through the monitoring service; Release the current binding relationship according to the configuration table change information; The configuration table is re-read through the monitoring service, and the process returns to step S130.
[0042] For example, when the configuration table changes, the system will send a uevent event to report it to the listening service, and receive the configuration table change information through the listening service. Assuming that the current binding relationship is that the target touch identifier A1 is bound to the target display identifiers B1 and B3, the target touch identifier A1 is bound to the target display identifiers B1 and B3, and the configuration table is re-read. Assuming that the configuration table read at this time includes the target touch identifier A1 and the target display identifier B2, then the target touch identifier A1 is bound to the target display identifier B2.
[0043] In this way, once the configuration table changes, the monitoring service can monitor it, then release the current binding relationship, re-read the configuration table to bind the display and touch, and realize dynamic binding of the display and touch.
[0044] The following is a detailed description of the screen display method of the present invention. Figure 2 , including step S210.
[0045] Step S210: Based on the binding relationship, the signal received on the touch screen corresponding to the target touch identifier is displayed on the display screen corresponding to the target display screen identifier.
[0046] For example, the binding relationship is the target touch identifier A2 and the target display identifiers B1 and B2, then the signal received on the touch screen corresponding to the target touch identifier A2 is displayed on the display corresponding to the target display identifier B1 and the display corresponding to the target display identifier B2 respectively.
[0047] In this way, the touch on one screen can be bound to different screens simply based on the binding relationship, which is more applicable and simple to implement.
[0048] In one embodiment of the present application, step S210 includes: Determine the current display mode based on the binding relationship; If the display mode is multi-screen different display, the signal received on the touch screen corresponding to the target touch mark is displayed through the display screen corresponding to the target display screen mark; If the display mode is multi-screen simultaneous display, the resolution of the touch screen and the resolution of the display screen are determined, and the resolution of the touch screen is corrected according to the resolution of the display screen to obtain the corrected resolution of the touch screen; The signal received on the touch screen corresponding to the target touch mark is displayed on the display screen corresponding to the target display screen mark according to the corrected resolution of the touch screen.
[0049] For example, among multiple screens, there are various resolutions. If the resolutions of the screens are different, there is a question of whether they need to be stretched. Therefore, the touch screen will also determine whether the coordinates need to be corrected according to its ratio to avoid inaccurate touch when the ratios are inconsistent. Suppose the resolution of the cash register's touch screen 1 is 1920×1080, and the screen size is 30×80, and the resolution of touch screen 2 is 1280×800, and the screen size is 20×60. The ratios of these two screens are different. When the two screens are displayed differently, please refer to Figure 4 The two screens have their own sizes and do not affect each other. When the two screens are displayed simultaneously, if you want to bind the screen of touch screen 1 to touch screen 2, please refer to Figure 5 , then the touch screen 2 will display a 30×80 screen. At this time, the screen of touch screen 2 needs to be compressed, that is, the resolution of touch screen 2 needs to be corrected. If the screen of touch screen 2 is bound to touch screen 1, please refer to Figure 6 , then the touch screen 1 will display a 20×60 picture, and the picture of the touch screen 1 will have black edges, which need to be stretched, that is, the resolution of the touch screen 1 needs to be corrected to avoid the problem of inaccurate touch.
[0050] In this way, if the current display mode is multi-screen display, the resolutions of different screens may be different, resulting in the inability to fully display the picture or the presence of black edges. At this time, the resolution of the touch screen is corrected according to the resolution of the display screen, and the signal received on the touch screen corresponding to the target touch identifier is displayed through the display screen corresponding to the target display screen identifier according to the resolution of the corrected touch screen, thereby ensuring the display effect of multi-screen different display and solving the problem of inaccurate touch. If the current display mode is multi-screen different display, the resolution of the content displayed on each screen is the resolution of the screen itself, and there is no need to correct the resolution.
[0051] In one embodiment of the present application, determining the current display mode based on the binding relationship in step S210 includes: If there is a binding relationship between the same target touch identifier and multiple target display screen identifiers in the binding relationship, it is determined that the current display mode is multi-screen same display; otherwise, it is determined that the current display mode is multi-screen different display.
[0052] For example, assuming that there is a binding relationship between the target touch identifier A1 and multiple target display screen identifiers B1, B2, and B3, it can be determined that the current display mode is multi-screen same display. Assuming that there is a binding relationship between the target touch identifier A1 and the target display screen identifier B1, and a binding relationship between the target touch identifier A2 and the target display screen identifier B2, it is determined that the current display mode is multi-screen different display.
[0053] In this way, the current display mode can be determined simply and effectively through the binding relationship.
[0054] In one embodiment of the present application, in step S210, the resolution of the touch screen is corrected according to the resolution of the display screen, and the corrected resolution of the touch screen includes: The pixels that need to be corrected in the touch screen are calculated according to the resolution of the display screen, and the resolution of the touch screen is corrected according to the pixels that need to be corrected to obtain the corrected resolution of the touch screen.
[0055] For example, a 1920×1080 picture is placed on a 1280×800 screen and compressed according to its corresponding ratio. In fact, it can be fully displayed on a 1280×720 screen, but there is a difference of 80 pixels compared to the actual situation, so it needs to be stretched by 80 pixels. For the touch screen, although it is bound to a 1280×800 screen, it should actually be expanded to 1920×1080 pixels to be used accurately.
[0056] In this way, the pixels that need to be corrected in the touch screen are calculated according to the resolution of the display screen and then corrected, which is more accurate.
[0057] The following specifically introduces the application embodiments of the present application. The present application can apply the above-mentioned display screen and touch binding method and screen display method to the scene where the display screen and touch need to be bound. Please refer to Fig. 9 , comprising steps (1) to (12).
[0058] (1) Create a listening service.
[0059] (2) Read the configuration table through the listening service.
[0060] (3) Determine whether configuration table read failure information is received. If so, execute step (4); if not, execute step (8).
[0061] (4) Create a configuration table through the listening service.
[0062] (5) Obtain the current display screen ID and current touch ID of the electronic device.
[0063] (6) The current touch identifier is used as the target touch identifier, and a default display identifier corresponding to the target touch identifier is determined from the current display identifier according to the resolution of the display and the resolution of the touch module.
[0064] (7) The default display screen identifier and the target touch identifier are associated and stored in the created configuration table.
[0065] (8) Obtain the current display screen ID and current touch ID of the electronic device.
[0066] (9) If the target touch identifier exists in the current touch identifier and the target display identifier exists in the current display identifier, a binding relationship between the target touch identifier and the target display identifier is established.
[0067] In one embodiment of the present application, if there are multiple target display screen identifiers, step (9) specifically includes: establishing a binding relationship between the target touch identifier and each target display screen identifier.
[0068] In one embodiment of the present application, step (9) specifically includes: obtaining a default display screen identifier corresponding to the target touch identifier from the current display screen identifier; establishing a binding relationship between the target touch identifier and the default display screen identifier, and simultaneously establishing a binding relationship between the target touch identifier and the target display screen identifier.
[0069] (10) Receive configuration table change information through the monitoring service.
[0070] (11) Release the current binding relationship according to the configuration table change information.
[0071] (12) Re-read the configuration table through the listening service and return to execute step (8).
[0072] Step (10) to step (12) may be performed simultaneously with step (1) to step (9).
[0073] Please refer to Fig.10 , comprising steps (a) to (d).
[0074] (a) Determine the current display mode based on the binding relationship.
[0075] Specifically, if there is a binding relationship between the same target touch identifier and multiple target display screen identifiers in the binding relationship, the current display mode is determined to be multi-screen same display; otherwise, the current display mode is determined to be multi-screen different display.
[0076] (b) If the display mode is multi-screen differential display, the signal received on the touch screen corresponding to the target touch mark is displayed on the display screen corresponding to the target display screen mark.
[0077] (c) If the display mode is multi-screen simultaneous display, the resolution of the touch screen and the resolution of the display screen are determined, and the resolution of the touch screen is corrected according to the resolution of the display screen to obtain the corrected resolution of the touch screen.
[0078] Specifically, the pixels that need to be corrected in the touch screen are calculated according to the resolution of the display screen, and the resolution of the touch screen is corrected according to the pixels that need to be corrected to obtain the corrected resolution of the touch screen.
[0079] (d) displaying the signal received on the touch screen corresponding to the target touch mark through the display screen corresponding to the target display screen mark according to the corrected resolution of the touch screen.
[0080] Please refer to Fig.11 The present invention also provides an electronic device 300, including a memory 301 and a processor 302, and a computer program stored in the memory 301 and running on the processor 302. When the processor 302 executes the computer program, it implements the various steps in the above-mentioned method for binding a display screen and a touch screen and a screen display method.
[0081] The beneficial effects of the electronic device of the present invention are the same as those of the above method and will not be described in detail here.
[0082] In summary, the present invention provides a method for binding a display screen and touch, a screen display method and an electronic device. The electronic device of the present application includes at least one touch screen, and the touch screen includes a display screen identifier and a touch identifier. The present application creates a monitoring service, reads a configuration table through the monitoring service, obtains the current display screen identifier and the current touch identifier of the electronic device, and if the current touch identifier contains a target touch identifier and the current display screen identifier contains a target display screen identifier, then a binding relationship between the target touch identifier and the target display screen identifier is established, so that the touch operation can be dynamically bound to any display screen by means of a configuration table, so that the actual touch can flow on different display screens, and the user can realize the binding of each touch screen and the display screen by only updating the configuration table, without the need for interaction between processes, which is more efficient and flexible, and at the same time realizes the separation of each module; that is, the present application combines the touch and display of the traditional touch screen. The one-to-one strong binding mode of the display screen is adjusted to the form of dynamic binding of the touch screen touch and multiple display screens. One touch can dynamically bind multiple display screens, thereby improving the flexibility and convenience of binding the touch screen and the display screen; in addition, once the configuration table changes, the monitoring service can monitor it. At this time, the current binding relationship is released, and the configuration table is re-read to bind the display screen and the touch, thereby realizing the dynamic binding of the display screen and the touch; and, if the current display mode is multi-screen display, the resolutions of different screens may be different, resulting in the inability to fully display the picture or the presence of black edges. At this time, the resolution of the touch screen is corrected according to the resolution of the display screen, and the signal received on the touch screen corresponding to the target touch identifier is displayed through the display screen corresponding to the target display screen identifier according to the corrected touch screen resolution, thereby ensuring the display effect of multi-screen different displays, and also solving the problem of inaccurate touch.
[0083] The above are only embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent transformations made using the contents of the specification and drawings of the present invention, or directly or indirectly applied in related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for binding a display screen and a touch screen, characterized in that: Applied to an electronic device, the electronic device includes at least one touch screen, the touch screen includes a display screen identifier and a touch identifier; the method includes: Creating a monitoring service, the monitoring service is used to obtain a configuration table, the configuration table is used to configure a binding relationship between a target touch identifier and a corresponding target display screen identifier; Reading the configuration table through the monitoring service; Obtaining a current display screen identifier and a current touch identifier of the electronic device; If the target touch identifier exists in the current touch identifier and the target display screen identifier exists in the current display screen identifier, a binding relationship between the target touch identifier and the target display screen identifier is established.
2. A method for binding a display screen and a touch screen according to claim 1, characterized in that: After reading the configuration table through the monitoring service, the method further includes: If a configuration table read failure message is received, a configuration table is created through the monitoring service; Obtaining a current display screen identifier and a current touch identifier of the electronic device; The current touch identifier is used as the target touch identifier, and a default display screen identifier corresponding to the target touch identifier is determined from the current display screen identifiers according to the resolution of the display screen and the resolution of the touch module; The default display screen identifier and the target touch identifier are associated and stored in the created configuration table.
3. A method for binding a display screen and a touch screen according to claim 1, characterized in that: The target display screen is identified as multiple; The step of establishing a binding relationship between the target touch identifier and the target display screen identifier includes: A binding relationship between the target touch identifier and each of the target display screen identifiers is established.
4. A method for binding a display screen and a touch screen according to claim 1, characterized in that: The step of establishing a binding relationship between the target touch identifier and the target display screen identifier includes: Acquire a default display screen identifier corresponding to the target touch identifier from the current display screen identifier; A binding relationship between the target touch identifier and the default display screen identifier is established, and a binding relationship between the target touch identifier and the target display screen identifier is established at the same time.
5. A method for binding a display screen and a touch screen according to claim 1, characterized in that: Also includes: Receiving configuration table change information through the monitoring service; Release the current binding relationship according to the configuration table change information; The configuration table is re-read through the monitoring service, and the step of obtaining the current display screen identification and the current touch identification of the electronic device is returned to be executed.
6. A screen display method, characterized in that: include: Based on the binding relationship in the display screen and touch binding method according to any one of claims 1 to 5, the signal received on the touch screen corresponding to the target touch identifier is displayed through the display screen corresponding to the target display screen identifier.
7. A screen display method according to claim 6, characterized in that: The step of displaying the signal received on the touch screen corresponding to the target touch identifier based on the binding relationship through the display screen corresponding to the target display screen identifier includes: Determine a current display mode based on the binding relationship; If the display mode is multi-screen different display, the signal received on the touch screen corresponding to the target touch identifier is displayed through the display screen corresponding to the target display screen identifier; If the display mode is multi-screen simultaneous display, determining the resolution of the touch screen and the resolution of the display screen, and correcting the resolution of the touch screen according to the resolution of the display screen to obtain a corrected resolution of the touch screen; The signal received on the touch screen corresponding to the target touch identifier is displayed on the display screen corresponding to the target display screen identifier according to the resolution of the modified touch screen.
8. A screen display method according to claim 7, characterized in that: Determining the current display mode based on the binding relationship includes: If there is a binding relationship between the same target touch identifier and multiple target display screen identifiers in the binding relationship, it is determined that the current display mode is multi-screen same display; otherwise, it is determined that the current display mode is multi-screen different display.
9. A screen display method according to claim 7, characterized in that: The step of correcting the resolution of the touch screen according to the resolution of the display screen to obtain the corrected resolution of the touch screen includes: The pixels that need to be corrected in the touch screen are calculated according to the resolution of the display screen, and the resolution of the touch screen is corrected according to the pixels that need to be corrected to obtain the corrected resolution of the touch screen.
10. An electronic device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein when the processor executes the computer program, it implements a method for binding a display screen and a touch screen as described in any one of claims 1 to 5, and each step in a screen display method as described in any one of claims 6 to 9.