Matching connection method based on touch screen switch matrix port annular arrangement display
By displaying the radio frequency switch matrix ports in a circular arrangement on the screen and using touch screen events to identify user operations, the fast matching connection of the radio frequency switch matrix ports is achieved, solving the problems of low efficiency and misconnection in the existing technology, and improving user selection efficiency.
Patent Information
- Application Number
- CN202410757530.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-09-10
AI Technical Summary
The existing RF switch matrix connection method is inefficient, making it difficult for users to quickly find the required input and output port matching connections. Especially when the number of ports is large, it can easily lead to misconnections and reduced efficiency.
Using a touch screen-based ring arrangement display method, the display objects of the preset input and output ports are arranged in a ring on the screen. By monitoring the user's touch screen events, it identifies and generates conduction instructions to achieve matching connections of the ports, reducing user The swipe and find process on the screen.
It improves the user's efficiency in selecting RF switch matrix ports, reduces the risk of misconnection, and provides a more intuitive selection method, which is suitable for situations where the number of ports is large.
Smart Images

Figure CN118625988A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of switch matrix device port connection, and in particular to a matching connection method based on a ring-arranged display of touch screen switch matrix ports. Background Art
[0002] The RF switch matrix is composed of multiple single-channel RF switches. It is a device used for RF signal selection and routing. It can simultaneously control the connection between multiple inputs and outputs. Its working principle is to use control signals to control the on and off states of the switches to achieve RF signal selection and routing. RF switch matrices are widely used in communication systems, satellite communications, radar systems, electronic countermeasures, test and measurement, and other fields. They can achieve multi-input and multi-output RF signal selection and routing.
[0003] In the existing connection method of the RF switch matrix, all methods are generally listed exhaustively and displayed for user selection. After the user selects the corresponding input and output connection method, the corresponding hardware is controlled to be turned on. In this method, on the one hand, since the input port and the output port are not reused, it means that after each selection of the connection method of the input port and the output port, the connection method of the input port and the other output ports cannot be selected again. Similarly, the connection method of the output port and the other input ports cannot be selected again. When the user continues to select the next required connection method, he needs to find other connection methods that match the unconnected ports among the many connection methods on the display screen. In this way, it is difficult for the user to quickly find the required connection method. Therefore, how to provide users with a quick matching connection of the input and output ports of the RF switch matrix is a problem that needs to be solved. Summary of the invention
[0004] The purpose of the present invention is to provide a matching connection method based on a circular arrangement display of touch screen switch matrix ports. The method of exhaustively enumerating connection modes in the prior art is not easy to select quickly, and has a low efficiency when the number of ports is large.
[0005] On the one hand, the present invention provides a matching connection method based on a circular arrangement display of touch screen switch matrix ports, which specifically includes the following steps:
[0006] S1, presetting a first display area and a second display area, wherein the first display area is pre-set with a plurality of input display objects corresponding to each input port of the switch matrix, and the second display area is pre-set with a plurality of output display objects corresponding to each output port of the switch matrix, and the plurality of input display objects and output display objects are arranged in a ring shape;
[0007] S2, monitoring the user's touch screen event, responding to the user's touch screen event, and when the touch screen event includes an operation on only one input display object and an operation on only one output display object, generating a connection instruction to connect the input port corresponding to the input display object and the output port corresponding to the output display object;
[0008] S3. Send a connection instruction to the switch matrix to turn on the switches corresponding to the input port and the output port.
[0009] In some optional implementations, several input display objects are numbered and arranged in a counterclockwise direction in the first display area, and several output display objects are numbered and arranged in a clockwise direction in the second display area, and several input display objects and several output display objects are arranged symmetrically, and input display objects and output display objects with the same number are located symmetrically.
[0010] In some optional implementations, the specific process of step S2 includes:
[0011] S21, monitoring the user's first touch screen events on a plurality of input display objects and the second touch screen events on a plurality of output display objects, determining whether the first touch screen event and the second touch screen event are valid, and if valid, recording them in the touch screen event;
[0012] S22, determining whether the touch screen event includes only one valid first touch screen event and one valid second touch screen event;
[0013] S23: If yes, setting the states of the input display object corresponding to the valid first touch screen event and the output display object corresponding to the valid second touch screen event to be unconnectable and highlighting them;
[0014] S24. Simultaneously generate a connection instruction for connecting the input port corresponding to the input display object and the output port corresponding to the output display object.
[0015] In some preferred implementations, the method for determining effectiveness in step S21 is:
[0016] It is determined whether the state of the input display object corresponding to the first touch screen event is unconnectable, and if not, it is determined that the first touch screen event is valid.
[0017] In some optional implementations, step S23 further includes adjusting the position of the output display object, and the specific steps include:
[0018] S00, determining whether the numbers corresponding to the input display object corresponding to the valid first touch screen event and the output display object corresponding to the valid second touch screen event are the same;
[0019] S10, if they are different, swapping the positions of the output display object having the same number as the input display object corresponding to the valid first touch screen event with the output display object corresponding to the valid second touch screen event, and refreshing the first display area and the second display area;
[0020] S20: Connect the input display object and the output display object that are symmetrical in position, and set the states of the input display object and the output display object to be unconnectable and highlight them.
[0021] In some optional implementations, step S23 further includes adjusting the position of the input display object, and the specific steps include:
[0022] S01, determining whether the numbers corresponding to the input display object corresponding to the valid first touch screen event and the output display object corresponding to the valid second touch screen event are the same;
[0023] S11, if they are different, swapping the positions of the input display object having the same number as the output display object corresponding to the valid first touch screen event and the input display object corresponding to the valid second touch screen event, and refreshing the first display area and the second display area;
[0024] S12: Connect the input display object and the output display object that are symmetrical in position, and set the states of the input display object and the output display object to be unconnectable and highlight them.
[0025] In some optional implementations, the specific process of step S2 includes:
[0026] S210, presetting a set of input pixel coordinates corresponding to each input display object and a set of output pixel coordinates corresponding to each output display object, storing each input pixel coordinate set in a first pixel set, and storing each output pixel coordinate set in a second pixel set;
[0027] S211, responding to a touch screen event of the user, recording in real time the coordinates of the pixel points of the line drawn by continuous touch screen, and storing them in a third pixel collection;
[0028] S212, respectively finding intersections of the third pixel set with the first pixel set and the second pixel set, where the intersections include a first intersection of the third pixel set and a collection of input pixel point coordinates and a second intersection of the third pixel set and a collection of output pixel point coordinates;
[0029] S213: When there is only one set of the first intersection and the second intersection, a connection instruction is generated to connect the input port corresponding to the first intersection and the output port corresponding to the second intersection.
[0030] In some preferred implementations, the step S213 further includes the following steps:
[0031] Determine whether the input display object corresponding to each first intersection and the output display object corresponding to the second intersection are in a state of being unconnectable, if so, delete the first intersection and the second intersection, if not, retain the first intersection and the second intersection;
[0032] When there is only one set of first intersections and only one set of second intersections, the states of the input display object corresponding to the first intersection and the output display object corresponding to the second intersection are set to be unconnectable and are highlighted.
[0033] In some preferred implementations, when storing pixel coordinates in a pixel coordinate collection, the X-axis coordinates and Y-axis coordinates of the pixel coordinates are concatenated into pixel information, and the pixel information is stored in the pixel coordinate collection.
[0034] In some preferred implementations, the specific process of step S212 is:
[0035] S210, recording in real time the X-axis coordinates and Y-axis coordinates of the line pixel coordinates generated by continuous touch screen, stitching them into pixel information, and storing the pixel information corresponding to each line pixel coordinate into a third pixel collection S3 (L1 (x1y1), L2 (x2y2), ...);
[0036] S220, finding the intersection S3∩S1 of the third pixel set and the first pixel set, traversing the first pixel set with the pixel information corresponding to each pixel in the third pixel set, and comparing it with the pixel information in each input pixel coordinate set, and recording the intersection of the third pixel set and a single input pixel coordinate set as a set of first intersections;
[0037] S230. Calculate the intersection S3∩S2 of the third pixel set and the second pixel set, traverse the second pixel set for the pixel point information corresponding to each pixel point in the third pixel set, compare it with the pixel point information in each output pixel point coordinate set, and record the intersection of the third pixel set and the single output pixel point coordinate set as a set of second intersections.
[0038] The present invention has the beneficial effects:
[0039] The present application adopts a touch screen connection method to display the input and output ports corresponding to the switch matrix on the screen in a ring-shaped arrangement. The user can select the display object corresponding to the input and output port in the corresponding area of the touch-sensitive display screen. By identifying the user's touch screen operation, it is determined whether the user has only selected one input port and one output port at the time, and a connection instruction is generated for the input and output ports operated by the user at the time, and an instruction is sent to the switch matrix to turn on the corresponding switch, thereby realizing the matching connection of the RF switch matrix ports.
[0040] In this application, users do not need to choose from complicated pre-set port matching connection methods. On the one hand, users can select the required connection port according to actual conditions without sliding the screen to search. Users can directly select on the screen, which is more intuitive and convenient for users to make quick choices. On the other hand, the circular arrangement can provide users with a larger selection space. If the number of ports is large, it can avoid crossing of lines, reduce misconnections, and improve efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A schematic diagram of the connection and matching of the touch-sensitive display screen port in the prior art;
[0042] Figure 2 A touch-screen RF switch matrix port matching connection flow chart provided by an embodiment of the present invention;
[0043] Figure 3 A schematic diagram of the contents displayed on the touch-sensitive display screen provided in Embodiment 1 of the present invention;
[0044] Figure 4 A schematic diagram of display content obtained in response to a touch screen event provided in Embodiment 1 of the present invention;
[0045] Figure 5 A schematic diagram of adjusting the input and output display objects provided in Embodiment 1 of the present invention;
[0046] Figure 6 A schematic diagram of the contents displayed on the touch-sensitive display screen provided in Embodiment 2 of the present invention;
[0047] Figure 7 This is a schematic diagram of adjusting the input and output display objects provided in Embodiment 2 of the present invention. DETAILED DESCRIPTION
[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present invention and its application or use. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0049] The relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.
[0050] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0051] Additionally, descriptions of well-known structures, functions, and configurations may be omitted for clarity and conciseness.One of ordinary skill in the art will recognize that various changes and modifications may be made to the examples described herein without departing from the spirit and scope of the present disclosure.
[0052] Technologies, methods, and apparatus known to ordinary technicians in the relevant field may not be discussed in detail, but where appropriate, such technologies, methods, and apparatus should be considered part of the authorization specification.
[0053] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0054] like Figure 1 As shown, in the prior art, the connection of the RF switch matrix device is generally performed by selecting from N types of RF input and output connection methods, and the background controller responds to the selection of the touch-sensitive display screen and connects the ports of the corresponding connection method. In this method, the user needs to find the required connection method on the display screen, such as Figure 1 As shown in the figure, if the size of the switch matrix is 6x6, its 6 input ports and 6 output ports have 36 connection modes. However, due to the limited screen display size, it is impossible to display all the exhaustive connection modes. You need to pull down to search. The connection modes are expressed in text with small fonts, which is inconvenient for users to search. Therefore, in order to facilitate users to select and connect RF ports more intuitively, the following solution is proposed:
[0055] Example 1
[0056] like Figure 2 As shown, the present invention provides a matching connection method based on the circular arrangement display of the touch screen switch matrix ports, which specifically includes the following steps:
[0057] S1, presetting a first display area and a second display area, wherein the first display area is pre-set with a plurality of input display objects corresponding to each input port of the switch matrix, and the second display area is pre-set with a plurality of output display objects corresponding to each output port of the switch matrix, and the plurality of input display objects and output display objects are arranged in a ring shape;
[0058] like Figure 3As shown, after a number of input display objects are numbered, they are arranged in a counterclockwise direction from top to bottom or from left to right in the first display area as RI1, RI2, RI3, RI4, and after a number of output display objects are numbered, they are arranged in a clockwise direction from top to bottom or from left to right in the second display area as RO1, RO2, RO3, RO4, and the number of input display objects and the number of output display objects are arranged symmetrically, and the positions of the input display objects and the output display objects with the same number are symmetrical. The sizes of the input display objects and the output display objects can be set to circles of equal size, and the spacing between adjacent input display objects is equal, and the spacing between adjacent output display objects is equal.
[0059] S2, monitoring the user's touch screen event, responding to the user's touch screen event, and when the touch screen event includes an operation on only one input display object and an operation on only one output display object, generating a connection instruction to connect the input port corresponding to the input display object and the output port corresponding to the output display object;
[0060] Specifically, the specific process of step S2 includes:
[0061] S21, monitoring the user's first touch screen events on several input display objects and second touch screen events on several output display objects, and determining whether the first touch screen event and the second touch screen event are valid: determining whether the state of the input display object corresponding to the first touch screen event is unconnectable, if not, determining that the first touch screen event is valid, and if valid, recording it in the touch screen event;
[0062] S22, determining whether the touch screen event includes only one valid first touch screen event and one valid second touch screen event;
[0063] S23: If yes, setting the states of the input display object corresponding to the valid first touch screen event and the output display object corresponding to the valid second touch screen event to be unconnectable and highlighting them;
[0064] In a specific embodiment, Figure 4 As shown, for the input and output display objects RI1 and RO3 that have been connected, if other input and output display objects need to be connected, the lines will cross when displayed. Therefore, the position can be adjusted as follows each time a connection is made. Figure 5 The symmetrical position shown in the figure, in this way, when displaying all the connection lines, the crossing of the lines can be reduced, making the viewing more intuitive. Based on this, before highlighting in step S23, the position of the input display object can be kept unchanged, and the position of the output display object selected by the user is adjusted to correspond to the input display object selected by the user, so that the display positions on the screen are symmetrical. The specific steps include:
[0065] S00, determining whether the numbers corresponding to the input display object corresponding to the valid first touch screen event and the output display object corresponding to the valid second touch screen event are the same;
[0066] S10, if they are different, swapping the positions of the output display object having the same number as the input display object corresponding to the valid first touch screen event with the output display object corresponding to the valid second touch screen event, and refreshing the first display area and the second display area;
[0067] S20: Connect the input display object and the output display object that are symmetrical in position, and set the states of the input display object and the output display object to be unconnectable and highlight them.
[0068] In another specific implementation, before highlighting in step S23, the position of the output display object may be fixed and the position of the input display object may be adaptively adjusted. The specific steps include:
[0069] S01, determining whether the numbers corresponding to the input display object corresponding to the valid first touch screen event and the output display object corresponding to the valid second touch screen event are the same;
[0070] S02, if they are different, swapping the positions of the input display object having the same output display object number as that corresponding to the valid first touch screen event with the input display object corresponding to the valid second touch screen event, and refreshing the first display area and the second display area;
[0071] S03: Connect the input display object and the output display object that are symmetrical in position, and set the states of the input display object and the output display object to be unconnectable and highlight them.
[0072] S24. Simultaneously generate a connection instruction for connecting the input port corresponding to the input display object and the output port corresponding to the output display object.
[0073] S3. Send a connection instruction to the switch matrix to turn on the switches corresponding to the input port and the output port.
[0074] Example 2
[0075] like Figure 6 As shown, the difference between this embodiment 2 and embodiment 1 is that in step S2, a rectangular coordinate system XY is established with the upper left corner of the touch screen area as the origin, and the horizontal coordinate X and the vertical coordinate Y of the pixel point are the column number and the row number in the touch screen display, respectively, and the coordinate of the pixel origin is (0,0). In response to the touch screen event selected by the user, the corresponding input and output ports are matched for the user according to the user's connection selection. At this time, the specific process of step S2 includes:
[0076] S210, presetting a set of input pixel coordinates corresponding to each input display object and a set of output pixel coordinates corresponding to each output display object, storing each input pixel coordinate set in a first pixel set, and storing each output pixel coordinate set in a second pixel set;
[0077] Specifically, the process of obtaining the first pixel set and the second pixel set is:
[0078] S110, creating corresponding input display objects and output display objects for each input port and output port in the touch screen area of the touch screen display screen and labeling them;
[0079] S120, storing all pixel coordinates corresponding to each input display object into a corresponding input pixel coordinate collection, to obtain a plurality of input pixel coordinate collections RI1, RI2, ..., RIm;
[0080] S130, storing all pixel coordinates corresponding to each output display object into a corresponding output pixel coordinate set, and obtaining a plurality of output pixel coordinate sets RO1, RO2, ..., ROm; for example, assuming that there are 4 input ports, there are 4 corresponding input display objects, and 4 output ports are provided correspondingly, assuming that the pixel coordinate set RI1 corresponding to the input display object is ((6, 1), (7, 1), (8, 1), ..., (8, 3)), and so on, the pixel coordinate set RO4 corresponding to the last output display object can be obtained ((12, 11), (13, 11), (14, 11), ..., (14, 13));
[0081] S140, store the input pixel coordinate sets corresponding to all input ports into the first pixel set S1 (RI1, RI2, ..., RIm), and store the output pixel coordinate sets of all output ports into the second pixel set S2 (RO1, RO2, ..., ROm).
[0082] In order to reduce the amount of calculation by only comparing one coordinate point once when solving the intersection later, without matching the X coordinate point and the Y coordinate point separately, the X-axis coordinate and the Y coordinate of the pixel point coordinate can be spliced into the pixel point information when storing the pixel point coordinates in the pixel point coordinate collection. The X coordinate and the Y coordinate in the pixel point information are separated by a decimal point, and the pixel point information is stored in the pixel point coordinate collection. The format of each input pixel point coordinate collection is: RIm((x1.y1),( The format of each output pixel point coordinate set is: ROm((x1.y1),(x2.y2),…,(xn.yn)); for example, the pixel point coordinates corresponding to the input display object 1 are converted to obtain the set RI1(6.1, 7.1, 8.1,…,8.3), and the pixel point coordinates corresponding to the output display object 4 are converted to obtain the set RO4(12.11, 13.11, 14.11,…,14.13).
[0083] S211, responding to a touch screen event of the user, recording in real time the coordinates of the pixel points of the line drawn by continuous touch screen, and storing them in a third pixel collection;
[0084] S212, respectively finding intersections of the third pixel set with the first pixel set and the second pixel set, where the intersections include a first intersection of the third pixel set and a collection of input pixel point coordinates and a second intersection of the third pixel set and a collection of output pixel point coordinates;
[0085] The specific process of step S212 is:
[0086] S210, recording in real time the X-axis coordinates and Y-axis coordinates of the pixel point coordinates of the line generated by continuous touch screen and splicing each pixel point coordinate into pixel point information, the splicing method is to add a decimal point between the X-axis coordinate value and the Y-axis coordinate value of the pixel point coordinate of the line point to form a pixel value information, wherein the decimal point is used for distinction, and the pixel point information corresponding to each line pixel point coordinate is stored in the third pixel collection S3 (L1 (x1.y1), L2 (x2.y2), ...);
[0087] S220, finding the intersection S3∩S1 of the third pixel set and the first pixel set, traversing the first pixel set with the pixel information corresponding to each pixel in the third pixel set, and comparing it with the pixel information in each input pixel coordinate set, and recording the intersection of the third pixel set and a single input pixel coordinate set as a set of first intersections;
[0088] S230. Calculate the intersection S3∩S2 of the third pixel set and the second pixel set, traverse the second pixel set for the pixel point information corresponding to each pixel point in the third pixel set, compare it with the pixel point information in each output pixel point coordinate set, and record the intersection of the third pixel set and the single output pixel point coordinate set as a set of second intersections.
[0089] For example, Figure 4 As shown, in response to the user's touch screen operation, the continuous line pixel points L1 (8, 3), L2 (8, 4), ..., L5 (15, 8) are obtained; the third pixel set obtained after conversion is S3 (8.3, 8.4, 9.4, 10.5, 11.6, 12.6, 13.7, 14.8, 15.8), and the third pixel set is traversed through the first pixel set, and S3 (8.3, 8.4, 9.4, 10.5, 11.6, 12.6, 13.7, 14.8, 15.8) is sequentially combined with RI1 (6.1, 7.1, 8. 1,…,8.3), RI2, RI3, RI4 are intersected to obtain the first intersection P1(8.3) with RI1. Similarly, S3(8.3,8.4,9.4,10.5,11.6,12.6,13.7,14.8,15.8) is intersected with RO1, RO2, RO3(15.8,16.8,17.8,…,17.10), RO4(12.11,13.11,14.11,…,14.13) in turn to obtain a second intersection P2(15.8) with RO3.
[0090] S213, respectively determine whether the states of the input display object corresponding to each first intersection and the output display object corresponding to the second intersection are unconnectable; if so, it means that the input display object is already connected to the corresponding output display object, and the selection is invalid at this time, then delete the first intersection and the second intersection; if not, retain the first intersection and the second intersection;
[0091] S214, when there is only one set of first intersections and only one set of second intersections, the states of the input display object corresponding to the first intersection and the output display object corresponding to the second intersection are set to be unconnectable and highlighted, and the display positions of the input display object or the output display object can also be adaptively adjusted, for example, determining whether the numbers corresponding to the input display object corresponding to the first intersection and the output display object corresponding to the second intersection are the same;
[0092] If they are different, swapping the positions of the output display object with the same number as the input display object corresponding to the first intersection with the output display object corresponding to the second intersection, and swapping the second pixel sets corresponding to the output display objects, refreshing the first pixel set and the second pixel set, and refreshing the first display area and the second display area;
[0093] S215 . When there is only one set of the first intersection and the second intersection, generate a connection instruction to connect the input port corresponding to the first intersection and the output port corresponding to the second intersection.
[0094] When the input port corresponding to the first intersection and the output port corresponding to the second intersection are connected, the connection result is returned to the result display area of the touch screen display interface. At the same time, after detecting that the corresponding input and output ports are connected, the input display objects and output display objects corresponding to the first display area and the second display area are highlighted and the positions of the input display objects or the output display objects are adaptively adjusted. The adjustment method refers to steps S00-S20, and the two correspondingly connected display objects are adjusted to be displayed in symmetrical positions, such as Figure 7 As shown, the position of the input display object can be fixed and the position of the output display object can be adaptively adjusted.
[0095] Example 3
[0096] This embodiment provides a computer-readable storage medium, including: one or more processors;
[0097] A storage unit is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors can implement the matching connection method based on the circular arrangement display of the touch screen switch matrix ports of embodiment 1 or 2.
[0098] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. According to the technical essence of the present invention, within the spirit and principles of the present invention, any simple modification, equivalent replacement and improvement made to the above embodiment still falls within the protection scope of the technical solution of the present invention.
Claims
1. A matching connection method based on a ring-shaped arrangement display of touch screen switch matrix ports, characterized in that: The specific steps include: S1, presetting a first display area and a second display area, wherein the first display area is pre-set with a plurality of input display objects corresponding to each input port of the switch matrix, and the second display area is pre-set with a plurality of output display objects corresponding to each output port of the switch matrix, and the plurality of input display objects and output display objects are arranged in a ring shape; S2, monitoring the user's touch screen event, responding to the user's touch screen event, and when the touch screen event includes an operation on only one input display object and an operation on only one output display object, generating a connection instruction to connect the input port corresponding to the input display object and the output port corresponding to the output display object; S3. Send a connection instruction to the switch matrix to turn on the switches corresponding to the input port and the output port.
2. The matching connection method based on the circular arrangement display of the touch screen switch matrix ports according to claim 1 is characterized in that: A number of input display objects are numbered and arranged in a counterclockwise direction in a first display area, and a number of output display objects are numbered and arranged in a clockwise direction in a second display area, and the input display objects and the output display objects are symmetrically arranged, and the positions of the input display objects and the output display objects with the same number are symmetrical.
3. The matching connection method based on the circular arrangement display of the touch screen switch matrix ports according to claim 2 is characterized in that: The specific process of step S2 includes: S21, monitoring the user's first touch screen events on a plurality of input display objects and the second touch screen events on a plurality of output display objects, determining whether the first touch screen event and the second touch screen event are valid, and if valid, recording them in the touch screen event; S22, determining whether the touch screen event includes only one valid first touch screen event and one valid second touch screen event; S23: If yes, setting the states of the input display object corresponding to the valid first touch screen event and the output display object corresponding to the valid second touch screen event to be unconnectable and highlighting them; S24. Simultaneously generate a connection instruction for connecting the input port corresponding to the input display object and the output port corresponding to the output display object.
4. The matching connection method based on the circular arrangement display of the touch screen switch matrix ports according to claim 2 is characterized in that: The effective method in step S21 is: It is determined whether the state of the input display object corresponding to the first touch screen event is unconnectable, and if not, it is determined that the first touch screen event is valid.
5. The matching connection method based on the circular arrangement display of the touch screen switch matrix ports according to claim 3 is characterized in that: Step S23 also includes adjusting the position of the output display object, and the specific steps include: S00, determining whether the numbers corresponding to the input display object corresponding to the valid first touch screen event and the output display object corresponding to the valid second touch screen event are the same; S10, if they are different, swapping the positions of the output display object having the same number as the input display object corresponding to the valid first touch screen event with the output display object corresponding to the valid second touch screen event, and refreshing the first display area and the second display area; S20: Connect the input display object and the output display object that are symmetrical in position, and set the states of the input display object and the output display object to be unconnectable and highlight them.
6. The matching connection method based on the circular arrangement display of the touch screen switch matrix ports according to claim 3 is characterized in that: Step S23 also includes adjusting the position of the input display object, and the specific steps include: S01, determining whether the numbers corresponding to the input display object corresponding to the valid first touch screen event and the output display object corresponding to the valid second touch screen event are the same; S11, if they are different, swapping the positions of the input display object having the same number as the output display object corresponding to the valid first touch screen event and the input display object corresponding to the valid second touch screen event, and refreshing the first display area and the second display area; S12: Connect the input display object and the output display object that are symmetrical in position, and set the states of the input display object and the output display object to be unconnectable and highlight them.
7. The matching connection method based on the circular arrangement display of the touch screen switch matrix ports according to claim 1 is characterized in that: The specific process of step S2 includes: S210, presetting a set of input pixel coordinates corresponding to each input display object and a set of output pixel coordinates corresponding to each output display object, storing each input pixel coordinate set in a first pixel set, and storing each output pixel coordinate set in a second pixel set; S211, responding to a touch screen event of the user, recording in real time the coordinates of the pixel points of the line drawn by continuous touch screen, and storing them in a third pixel collection; S212, respectively finding intersections of the third pixel set with the first pixel set and the second pixel set, where the intersections include a first intersection of the third pixel set and a collection of input pixel point coordinates and a second intersection of the third pixel set and a collection of output pixel point coordinates; S213: When there is only one set of the first intersection and the second intersection, a connection instruction is generated to connect the input port corresponding to the first intersection and the output port corresponding to the second intersection.
8. The matching connection method based on the circular arrangement display of the touch screen switch matrix ports according to claim 7 is characterized in that: Before step S213, the method further includes the following steps: Determine whether the input display object corresponding to each first intersection and the output display object corresponding to the second intersection are in a state of being unconnectable, if so, delete the first intersection and the second intersection, if not, retain the first intersection and the second intersection; When there is only one set of first intersections and only one set of second intersections, the states of the input display object corresponding to the first intersection and the output display object corresponding to the second intersection are set to be unconnectable and are highlighted.
9. The matching connection method based on the circular arrangement display of the touch screen switch matrix ports according to claim 7 is characterized in that: When storing pixel coordinates in a pixel coordinate collection, the X-axis coordinate and the Y-axis coordinate of the pixel coordinate are concatenated into pixel information, and the pixel information is stored in the pixel coordinate collection.
10. The matching connection method based on the circular arrangement display of the touch screen switch matrix ports according to claim 9, characterized in that: The specific process of step S212 is: S210, recording in real time the X-axis coordinates and Y-axis coordinates of the line pixel coordinates generated by continuous touch screen, stitching them into pixel information, and storing the pixel information corresponding to each line pixel coordinate into a third pixel collection S3 (L1 (x1y1), L2 (x2y2), ...); S220, finding the intersection S3∩S1 of the third pixel set and the first pixel set, traversing the first pixel set with the pixel information corresponding to each pixel in the third pixel set, and comparing it with the pixel information in each input pixel coordinate set, and recording the intersection of the third pixel set and a single input pixel coordinate set as a set of first intersections; S230. Calculate the intersection S3∩S2 of the third pixel set and the second pixel set, traverse the second pixel set for the pixel point information corresponding to each pixel point in the third pixel set, compare it with the pixel point information in each output pixel point coordinate set, and record the intersection of the third pixel set and the single output pixel point coordinate set as a set of second intersections.
Citation Information
Cited By
Visual radio frequency switch matrix equipment configuration method and device
CN119047108A
A visual radio frequency switch matrix equipment configuration method and device
CN119047108B
