Data interaction method and device, controller and terminal equipment

By introducing component-level management and encoding information to determine the data transmission path, the problem of low data interaction efficiency between components in large-screen systems is solved, achieving efficient data transmission and seamless communication between multiple systems.

CN115904153BActive Publication Date: 2026-11-24联通(浙江)产业互联网有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211697478.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-28
Publication Date
2026-11-24
Estimated Expiration
2042-12-28

AI Technical Summary

Technical Problem

When displaying data interaction between components on a large screen, existing technologies require multiple data format conversions, resulting in low interaction efficiency, which is especially difficult when interacting between multiple large screen systems.

Method used

The concept of component hierarchy is introduced, and components are managed through hierarchy fields. The controller determines the data interaction form based on the component hierarchy information and encoding information, optimizes the data transmission path, and realizes direct or embedded transmission.

Benefits of technology

It improves the efficiency of data interaction between components, simplifies the data transmission process between multiple large-screen systems, and enhances the integrity and efficiency of data interaction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115904153B_ABST
    Figure CN115904153B_ABST
Patent Text Reader

Abstract

This application provides a data interaction method, apparatus, controller, and terminal device, relating to the field of computers. The method includes: a controller generating a user instruction when a user clicks or drags a component; the controller determining a first component and a second component based on the user instruction after receiving it; the first component being the sender and the second component being the receiver; the controller determining interaction information based on the first and second components; and the interaction information including at least the hierarchical information of the first component, the hierarchical information of the second component, and data content; and the controller sending the data content of the first component to the second component based on the hierarchical information of the first and second components. This method improves the efficiency of data content interaction.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of computers, and in particular to a data interaction method and device, a controller and a terminal device. BACKGROUND

[0002] With the development of technology, more and more terminal devices are equipped with large screens in some public places. The terminal device can display visual and draggable components on the large screen.

[0003] In the prior art, the components and the hierarchical relationship between the components displayed on the large screen are usually at the same level. Different components usually have their corresponding data format and data content. Before displaying a component on the large screen, the terminal device usually needs to generate the data format and content corresponding to the component. Thereafter, the terminal device can display the data format and content in the component on the large screen.

[0004] However, when the data between the components needs to be interacted, the prior art needs to perform data format conversion at least twice, and there is a problem of low data interaction efficiency when the components are interacted. SUMMARY

[0005] The present application provides a data interaction method, device, controller and terminal device to solve the problem of low data interaction efficiency when the components are interacted.

[0006] In a first aspect, the present application provides a data interaction method applied to a terminal device provided with a large screen, comprising:

[0007] In response to a user instruction, determining a first component and a second component to be interacted, the first component being a sender and the second component being a receiver;

[0008] Determining interaction information according to the first component and the second component, the interaction information at least including hierarchical information of the first component, hierarchical information of the second component and data content;

[0009] According to the hierarchical information of the first component and the hierarchical information of the second component, sending the data content of the first component to the second component.

[0010] Optionally, the component further includes a hierarchical field, the hierarchical field being used to indicate the hierarchical information of the component in its corresponding system; the hierarchical information being determined according to a folder in a large screen system in the terminal device where the component is located;

[0011] The terminal device includes at least one large screen system; the large screen system includes a folder and / or a component; the folder includes a next-level folder and / or a component.

[0012] Optionally, the method further comprises:

[0013] When the first component and the second component are in the same large screen system or folder, the first component and the second component have the same level;

[0014] When the first component is outside a first folder and the second component is inside the first folder, the first component has a higher level than the second component, and the first component has the same level as the first folder;

[0015] When the first component is inside a first folder and the second component is inside a second folder, and the first folder has no subordinate relationship with the second folder, the first component and the second component have different levels;

[0016] When the first component is inside a first large screen system and the second component is inside a second large screen system, the first component and the second component have different levels, and the first large screen system and the second large screen system have the same level.

[0017] Optionally, when the first component and the second component have the same level, or the level of the first component is lower than the level of the second component, the sending the data content of the first component to the second component according to the level information of the first component and the level information of the second component specifically comprises:

[0018] determining a component code of the second component according to the level information of the second component;

[0019] sending the data content to the second component according to the component code.

[0020] Optionally, when the first component and the second component have different levels, the sending the data content of the first component to the second component according to the level information of the first component and the level information of the second component specifically comprises:

[0021] determining encoding information of the second component according to the level information of the first component and the level information of the second component, the encoding information including a component code of the second component, and / or a folder code of a folder where the second component is located, and / or a system code of a large screen system where the second component is located;

[0022] sending the data content to the second component according to the encoding information.

[0023] Optionally, when the encoding information includes component encoding and folder encoding, sending the data content to the second component according to the encoding information specifically includes:

[0024] The data content is sent to the folder according to the folder code;

[0025] The data content is sent to the second component according to the component encoding.

[0026] Optionally, when the encoding information includes component encoding and system encoding, sending the data content to the second component according to the encoding information specifically includes:

[0027] According to the system coding, the first large screen system containing the first component is embedded into the second large screen system containing the second component;

[0028] The data content is transmitted from the first large screen system to the second large screen system through a communication mechanism, and the data content is obtained through the listening events of the second large screen system.

[0029] The data content is sent to the second component according to the component encoding.

[0030] Secondly, this application provides a data interaction device applied to a terminal device equipped with a large screen, comprising:

[0031] The acquisition module is used to respond to user instructions to determine a first component and a second component to be interacted with, wherein the first component is the sender and the second component is the receiver; and to determine interaction information based on the first component and the second component, wherein the interaction information includes at least the hierarchical information of the first component, the hierarchical information of the second component, and data content.

[0032] The processing module is configured to send the data content of the first component to the second component based on the hierarchical information of the first component and the hierarchical information of the second component.

[0033] Optionally, the component further includes a hierarchy field, which is used to indicate the hierarchy information of the component within its corresponding system; the hierarchy information is determined based on the folder in the large-screen system of the terminal device where the component is located;

[0034] The terminal device includes at least one large-screen system; the large-screen system includes folders and / or components; the folders include subfolders and / or components.

[0035] Optionally, the device further includes:

[0036] When the first component and the second component are in the same large screen system or folder, the first component and the second component are at the same level;

[0037] When the first component is outside the first folder and the second component is inside the first folder, the first component is at a higher level than the second component, and the first component is at the same level as the first folder.

[0038] When the first component is inside the first folder, the second component is inside the second folder, and the first folder and the second folder have no subordinate relationship, the first component and the second component are at different levels.

[0039] When the first component is inside the first large screen system and the second component is inside the second large screen system, the first component and the second component are at different levels, and the first large screen system and the second large screen system are at the same level.

[0040] Optionally, when the first component and the second component are at the same level, or when the first component is at a lower level than the second component, the processing module is specifically used for:

[0041] Based on the hierarchy information of the second component, determine the component code of the second component;

[0042] The data content is sent to the second component according to the component encoding.

[0043] Optionally, when the first component and the second component are at different levels, the processing module is specifically used for:

[0044] Based on the hierarchical information of the first component and the hierarchical information of the second component, the encoding information of the second component is determined. The encoding information includes the component encoding of the second component, and / or the folder encoding of the folder where the second component is located, and / or the system encoding of the large screen system where the second component is located.

[0045] The data content is sent to the second component according to the encoded information.

[0046] Optionally, when the encoding information includes component encoding and folder encoding, the processing module is specifically used for:

[0047] The data content is sent to the folder according to the folder code;

[0048] The data content is sent to the second component according to the component encoding.

[0049] Optionally, when the encoding information includes component encoding and system encoding, the processing module is specifically used for:

[0050] According to the system coding, the first large screen system containing the first component is embedded into the second large screen system containing the second component;

[0051] The data content is transmitted from the first large screen system to the second large screen system through a communication mechanism, and the data content is obtained through the listening events of the second large screen system.

[0052] The data content is sent to the second component according to the component encoding.

[0053] Thirdly, this application provides a controller, comprising: a memory and a processor; the memory for storing a computer program; the processor for executing the data interaction method in the first aspect and any possible design of the first aspect according to the computer program stored in the memory.

[0054] Fourthly, this application provides a terminal device, including: a large screen and a controller in the third aspect and any possible design of the third aspect. When a first component and a second component in the large screen interact with each other, the controller executes a data interaction method as in the first aspect and any possible design of the first aspect to realize data interaction between the first component and the second component; wherein, the first component and the second component are two visual components displayed on the large screen.

[0055] Fifthly, this application provides a computer-readable storage medium storing a computer program, wherein when at least one processor of a controller executes the computer program, the controller performs the first aspect and any possible data interaction method in the first aspect.

[0056] In a sixth aspect, this application provides a computer program product comprising a computer program that, when at least one processor of a controller executes the computer program, enables the controller to execute the first aspect and any possible data interaction method in the design of the first aspect.

[0057] The data interaction method, apparatus, controller, and terminal device provided in this application generate user instructions when a user clicks or drags a component; after obtaining the user instructions, determine the first component and the second component based on the user instructions, with the first component being the sender and the second component being the receiver; determine interaction information based on the first component and the second component, the interaction information including at least the hierarchical information of the first component, the hierarchical information of the second component, and data content; and send the data content of the first component to the second component based on the hierarchical information of the first component and the hierarchical information of the second component, thereby improving the efficiency of data content interaction. Attached Figure Description

[0058] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0059] Figure 1 A schematic diagram illustrating a scenario for the application of a large visual screen, as provided in an embodiment of this application;

[0060] Figure 2 A flowchart illustrating a data interaction method provided in one embodiment of this application;

[0061] Figure 3 This application provides a schematic diagram of the interaction between components according to an embodiment of the present application;

[0062] Figure 4 This application provides a schematic diagram of the interaction between components according to an embodiment of the present application;

[0063] Figure 5 This application provides a schematic diagram of the interaction between components according to an embodiment of the present application;

[0064] Figure 6 This application provides a large-screen system and an interactive schematic diagram of the large-screen system according to an embodiment of the present application;

[0065] Figure 7 This is a schematic diagram of the structure of a data interaction device provided in an embodiment of this application;

[0066] Figure 8 This is a schematic diagram of the hardware structure of a controller provided in one embodiment of this application. Detailed Implementation

[0067] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0068] The terms "first," "second," "third," "fourth," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be used interchangeably where appropriate. For example, without departing from the scope of this document, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such process, method, product, or apparatus.

[0069] Depending on the context, the word “if” as used herein can be interpreted as “when…”, “when…”, or “in response to determination.” Furthermore, as used herein, the singular forms “a,” “one,” and “the” are intended to also include the plural forms unless the context indicates otherwise. The terms “or” and “and / or” as used herein are interpreted inclusively, or mean any one or any combination thereof. Thus, “A, B, or C” or “A, B, and / or C” means “any one of the following: A; B; C; A and B; A and C; B and C; A, B, and C.” Exceptions to this definition occur only when combinations of elements, functions, steps, or operations are inherently mutually exclusive in some way.

[0070] With the development of technology, more and more terminal devices in public places are equipped with large screens. These devices can display visual, draggable components on these screens. Currently, large-screen systems are relatively mature, with a rich variety of built-in visual, draggable components. These components can include bar charts, line charts, pie charts, scatter plots, text, flip cards, time selectors, audio / video input, tabs, search boxes, maps, etc. Each component has its own data and display / hidden state. Different components typically require their own corresponding data formats and content. Before displaying a component on a large screen, a terminal device usually needs to generate the corresponding data format and content. Only then can the terminal device display that data format and content within that component on the large screen. When interaction is needed between components, users can trigger the interaction using the mouse. This interaction can include controlling the display and hiding of components, passing data to components, and controlling the request parameters of network requests for components. Currently, the hierarchical relationship between components displayed on large screens is usually at the same level. When a large-screen system has many internal components, the data exchange between different components at the same level becomes difficult due to the varying formats of the data to be exchanged. Furthermore, the data formats used in component exchanges are often imperfect, leading to multiple data format conversions during the exchange process and resulting in low data exchange efficiency. Moreover, existing technologies present significant challenges in facilitating interaction between components across multiple large-screen systems.

[0071] To address the aforementioned technical problems, the data interaction method provided in this application emphasizes the concept of component hierarchy and manages components in the form of folders. In this application, the controller can set a hierarchy field in each component. This hierarchy field indicates the component's hierarchy information. After determining the first and second components that need to interact, the controller can determine the data interaction form between the two components based on their hierarchy information. In this application, scenarios can be systematically preset for data interaction forms between components at different levels. In actual use, the controller can determine the specific data interaction form according to the actual scenario and perform data interaction. This application can solve the problem of low data interaction efficiency in the prior art and the data interaction problem of components in multiple large-screen systems through the above method.

[0072] The following describes exemplary application scenarios of the embodiments of this application.

[0073] Figure 1 This illustration shows a scenario diagram of an application of a visual large screen according to an embodiment of this application. For example... Figure 1As shown, a terminal device may include at least one large screen. This large screen can display data through various components. A controller in the terminal device is used to control the components on these large screens. Each large screen may correspond to at least one large screen system. Figure 1 The diagram shows the components of a large-screen system (System 1) displayed on a large screen. These components can include audio / video, line charts, bar charts, pie charts, flippers, time selectors, tabs, maps, and bar graphs. Bar charts, pie charts, and flippers can be located in folder 1. Time selectors and tabs can be located in folder 2. Folder 2, maps, and bar graphs can be located in folder 3. Folders 1 and 2, along with audio / video, ray tracing, and bar charts, are directly located within System 1. This large-screen system (System 1), folders 1, 2, and 3 implement hierarchical management of components. The controller can acquire data, convert it to the format required by a specific component, and display it through that component. Alternatively, when a user triggers interaction with a component through clicking, dragging, or other methods, the controller can determine the component to be interacted with based on this trigger information.

[0074] In this application, a controller is used as the execution subject to perform the data interaction method of the following embodiments. Specifically, the execution subject can be a hardware device of the controller, a software application implementing the following embodiments in the controller, a computer-readable storage medium on which the software application implementing the following embodiments is installed, or code implementing the software application of the following embodiments.

[0075] The technical solutions of this application will be described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0076] Figure 2 A flowchart illustrating a data interaction method provided in an embodiment of this application is shown. Figure 1 Based on the illustrated embodiments, as Figure 2 As shown, with the controller as the execution entity, the method in this embodiment may include the following steps:

[0077] S101. In response to the user instruction, determine the first component and the second component to be interacted with, wherein the first component is the sender and the second component is the receiver.

[0078] In this embodiment, the controller can generate user instructions when the user clicks or drags a component. These user instructions may include a first component and a second component to be interacted with. After obtaining the user instructions, the controller can determine the first and second components based on them. It should be noted that one interaction typically corresponds to one transmission and reception of data content. For ease of explanation, this embodiment limits the sender to the first component and the receiver to the second component. In this embodiment, each acquisition of the first and second components corresponds to only one interaction. If the user sequentially clicks or drags multiple components, the controller can break down this sequential clicking or dragging behavior into multiple interactions and process these interactions one by one.

[0079] S102. Determine interaction information based on the first component and the second component. The interaction information includes at least the hierarchical information of the first component, the hierarchical information of the second component, and the data content.

[0080] In this embodiment, the controller can determine the hierarchy information of the first component based on the first component. The controller can also determine the hierarchy information of the second component based on the second component. Optionally, the hierarchy information can be determined based on the hierarchy fields of the first and second components. Each component may include a hierarchy field. This hierarchy field is used to indicate the hierarchy information of the component within its corresponding system. This hierarchy information is related to the folder of the large-screen system where the component resides. For example, such as... Figure 1 As shown, the audio / video component is in the large screen system 1, but not in a folder; therefore, the component's hierarchy information can be the large screen system 1. Similarly, the card flipper component is in folder 1; therefore, the component's hierarchy information can be system 1 - folder 1. Optionally, in this embodiment, the terminal device may include at least one large screen system. Each large screen system may include folders and / or components. That is, a large screen system may include only one or more folders. Or, a large screen system may include only at least one component. Or, as... Figure 1 As shown, the large-screen system may include at least one folder and at least one component. Each folder may include subfolders and / or components. That is, a folder may include at least one subfolder. For example, the subfolders within that folder may be as follows: Figure 1 Folder 2 is shown in folder 3. Alternatively, a folder may include at least one component. For example, the folder may be as follows: Figure 1 Folder 1 is shown in the image. Alternatively, this folder may include at least one folder and at least one component. For example, the folder may be as shown in the image. Figure 1Folder 3 is shown in the diagram. Optionally, when the first component and the second component are both in the same large-screen system, or within the same folder, the first component and the second component have the same hierarchy. Optionally, when the first component is outside the first folder and the second component is inside the first folder, the first component has a higher hierarchy than the second component, and the first component has the same hierarchy as the first folder. The first folder can be a folder within the large-screen system, or a folder within a folder. Optionally, when the first component is inside the first folder and the second component is inside the second folder, and the first folder and the second folder have no hierarchical relationship, the first component and the second component have different hierarchical levels. For example, as shown... Figure 1 As shown, if the first component is a component in folder 1, and the second component is a component in folder 3 or folder 2, then the first component and the second component have different hierarchical levels. Optionally, when the first component is within the first large screen system and the second component is within the second large screen system, the first component and the second component have different hierarchical levels, and the first large screen system and the second large screen system have the same hierarchical level.

[0081] The controller can also retrieve data content from the first component. This data content is the data that needs to be sent to the second component. Optionally, the controller can also retrieve the data type of this data content. In the interaction information, these data types can be represented by strings from type0 to typeN. Different strings can correspond to different data types. For example, Type0 is used to indicate the display of the control component, Type1 is used to indicate the hiding of the control component, Type3 is used to indicate the toggle of the display and hiding of the control component, Type4 is used to indicate the transmission of JSON data, and Type5 is used to indicate the request parameters of the transmission component for the receiving component's HTTP requests (GET, POST, PUT, etc.).

[0082] S103. Based on the hierarchical information of the first component and the hierarchical information of the second component, send the data content of the first component to the second component.

[0083] In this embodiment, the controller can determine the scenario corresponding to the data content sent by the first component to the second component based on the hierarchical information of the first component and the second component. This scenario can include various situations such as interaction between two components at the same or related hierarchies, or interaction between two components at different hierarchies. Different scenarios typically correspond to different interaction methods.

[0084] In one example, when the first component and the second component are at the same level, or when the first component is at a lower level than the second component, the controller can determine the component code of the second component based on the second component's level information, and then send the data content to the second component according to the component code.

[0085] When the first component and the second component are at the same level, the unidirectional interaction diagram between the first component and the second component can be as follows: Figure 3 As shown in (a), the bidirectional interaction diagram between the first component and the second component can be represented as follows: Figure 3 As shown in (b). The first component and the second component can be components within the same large-screen system. For example, as... Figure 1 As shown, the first component is the audio and video within the large-screen system 1, and the second component is the line graph within the large-screen system 1. Alternatively, the first and second components can be two components within the same folder. For example, as shown... Figure 1 As shown, the first component is a bar chart inside folder 1, and the second component is a pie chart inside folder 1.

[0086] When the first component is at a higher level than the second component, the one-way interaction diagram between the first and second components can be illustrated as follows: Figure 4 As shown. The first component can be a component inside the first folder, and the second component can be a component outside the first folder. The second component and the first folder can be at the same level. Alternatively, when the first folder is a subfolder of the second folder, the second component can also be at the same level as the second folder. For example, as Figure 1 As shown, the second component can be audio or video within the large screen system 1. The first component can be a bar chart in folder 1. Alternatively, the first component can also be a tab in folder 2. When the first component is a tab in folder 2, the second component can also be a map in folder 3. When the first component is at a lower level than the second component, the controller only needs to know the component code of the second component to directly locate it. Therefore, similar to the interaction between components at the same level, the controller can directly send the data content of the first component to the second component.

[0087] In one example, when the first component and the second component are at different hierarchical levels, the controller can determine the encoding information of the second component based on the hierarchical information of the first and second components. This encoding information includes the component code of the second component, and / or the folder code of the folder containing the second component, and / or the system code of the large-screen system in which the second component resides. The controller can then send data content to the second component based on this encoding information.

[0088] For example, when the second component is inside the first folder, the encoding information needs to include not only the component encoding but also the folder encoding of the first folder. In this scenario, the controller first needs to send the data content to the first folder based on the folder encoding. Only then can the controller send the data content to the second component within the first folder based on the component encoding. During this interaction, the first and second components can...Figure 5 As shown in (a). Alternatively, as... Figure 5 As shown in (b), bidirectional interaction can also be achieved between the first component and the first folder. Optionally, as... Figure 5 As shown in (c), the first component can also be located inside the second folder.

[0089] For example, when the first component is within the first large-screen system and the second component is within the second large-screen system, the encoding information can include not only the component encoding but also the system encoding. In this scenario, the controller needs to first embed the first large-screen system into the second large-screen system based on the system encoding of the second large-screen system. This embedding can be done using an iframe. Subsequently, the controller can transmit data content from the first large-screen system to the second large-screen system via a communication mechanism and obtain the data content through the second large-screen system's listener events. Specifically, this communication mechanism can be `postmessage`. The listener event can be `addEventListener`. The controller can receive the data content through `addEventListener`. After receiving the data content, the controller can process it within its internal system. The controller can also send the data content to the second component based on the component encoding. The first large-screen system can be as follows: Figure 6 The first large screen system is shown in Figure 1. The second large screen system can be shown in Figure 2. Optionally, when the second component is a component in a folder within the second large screen system, the encoding information may also include the folder code of that folder.

[0090] The data interaction method provided in this application allows the controller to generate user instructions when a user clicks or drags a component. After receiving the user instructions, the controller determines the first and second components based on them. The first component is the sender, and the second component is the receiver. The controller can determine interaction information based on the first and second components. This interaction information includes at least the hierarchy information of the first and second components, and the data content. The controller can send the data content of the first component to the second component based on the hierarchy information of the first and second components. This application, through the above method, enables data information interaction between components of different levels, as well as between components of the same level, improving the efficiency of data content interaction.

[0091] Figure 7 This application provides a schematic diagram of the structure of a data interaction device according to an embodiment of the present application. Figure 7 As shown, the data interaction device 10 of this embodiment is used to implement the operation corresponding to the controller in any of the above method embodiments. The data interaction device 10 of this embodiment includes:

[0092] The acquisition module 11 is used to respond to user instructions and determine the first component and the second component to be interacted with, wherein the first component is the sender and the second component is the receiver. Based on the first and second components, interaction information is determined, which includes at least the hierarchical information of the first component, the hierarchical information of the second component, and data content.

[0093] The processing module 12 is used to send the data content of the first component to the second component according to the hierarchical information of the first component and the hierarchical information of the second component.

[0094] In one example, the component also includes a hierarchy field, which indicates the component's hierarchy within its corresponding system. The hierarchy information is determined based on the folder within the large-screen system of the terminal device where the component resides.

[0095] The terminal device includes at least one large-screen system. The large-screen system includes folders and / or components. Each folder contains subfolders and / or components.

[0096] In one example, the device further includes:

[0097] When the first component and the second component are within the same large screen system or folder, the first component and the second component are at the same level.

[0098] When the first component is outside the first folder and the second component is inside the first folder, the first component is at a higher level than the second component, and the first component is at the same level as the first folder.

[0099] When the first component is inside the first folder, the second component is inside the second folder, and the first folder and the second folder have no subordinate relationship, the first component and the second component are at different levels.

[0100] When the first component is inside the first large screen system and the second component is inside the second large screen system, the first component and the second component are at different levels, and the first large screen system and the second large screen system are at the same level.

[0101] In one example, when the first component and the second component are at the same level, or when the first component is at a lower level than the second component, the processing module 12 is specifically used for:

[0102] The component code of the second component is determined based on the hierarchical information of the second component.

[0103] The data content is sent to the second component based on the component code.

[0104] In one example, when the first component and the second component are at different levels, the processing module 12 is specifically used for:

[0105] Based on the hierarchical information of the first component and the hierarchical information of the second component, the encoding information of the second component is determined. The encoding information includes the component encoding of the second component, and / or the folder encoding of the folder where the second component is located, and / or the system encoding of the large screen system where the second component is located.

[0106] The data content is sent to the second component based on the encoded information.

[0107] In one example, when the encoding information includes component encoding and folder encoding, processing module 12 is specifically used for:

[0108] Send the data content to the folder according to the folder code.

[0109] The data content is sent to the second component based on the component code.

[0110] In one example, when the encoding information includes component encoding and system encoding, processing module 12 is specifically used for:

[0111] According to the system coding, the first large screen system containing the first component is embedded into the second large screen system containing the second component.

[0112] Data content is transmitted from the first large screen system to the second large screen system through a communication mechanism, and the data content is obtained through the listening events of the second large screen system.

[0113] The data content is sent to the second component based on the component code.

[0114] The data interaction device 10 provided in this application embodiment can execute the above method embodiment. Its specific implementation principle and technical effect can be found in the above method embodiment, and will not be repeated here.

[0115] Figure 8 A schematic diagram of the hardware structure of a controller provided in an embodiment of this application is shown. Figure 8 As shown, the controller 20 is used to implement the operation corresponding to the controller in any of the above method embodiments. The controller 20 in this embodiment may include: a memory 21, a processor 22, and a communication interface 24.

[0116] The memory 21 is used to store computer programs. The memory 21 may include high-speed random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device, and may also be a USB flash drive, external hard drive, read-only memory, disk or optical disc, etc.

[0117] Processor 22 is used to execute computer programs stored in memory to implement the data interaction method in the above embodiments. For details, please refer to the relevant descriptions in the foregoing method embodiments. The processor 22 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. A general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly manifested as execution by a hardware processor, or execution by a combination of hardware and software modules within the processor.

[0118] Alternatively, the memory 21 can be either standalone or integrated with the processor 22.

[0119] When the memory 21 is a device independent of the processor 22, the controller 20 may further include a bus 23. This bus 23 is used to connect the memory 21 and the processor 22. The bus 23 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.

[0120] The communication interface 24 can be connected to the processor 21 via the bus 23. This communication interface 24 is used to enable interaction with the large screen of the terminal device.

[0121] The controller provided in this embodiment can be used to execute the above-described data interaction method. Its implementation and technical effects are similar, and will not be described again here.

[0122] This application provides a terminal device that may include at least one large screen and at least one controller. Each large screen may correspond to at least one large screen system. The at least one large screen system runs on the controller. Each large screen system may include multiple components and / or folders. Each folder may include a subfolder and / or at least one component. Users can see visual components on the large screen and select a first component and a second component from the multiple visual components by clicking, dragging, etc. The first and second components may be components within a folder or components outside a folder. When the first and second components on the large screen interact with each other, the controller may execute data interaction methods as described in the first aspect and any possible design of the first aspect to realize data interaction between the first and second components.

[0123] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, is used to implement the methods provided in the various embodiments described above.

[0124] The computer-readable storage medium can be a computer storage medium or a communication medium. A communication medium includes any medium that facilitates the transfer of a computer program from one location to another. A computer storage medium can be any available medium accessible to a general-purpose or special-purpose computer. For example, a computer-readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the computer-readable storage medium. Of course, the computer-readable storage medium can also be a component of the processor. The processor and the computer-readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the ASIC can reside in a user equipment. Of course, the processor and the computer-readable storage medium can also exist as discrete components in a communication device.

[0125] Specifically, the computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as Static Random-Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The storage medium can be any available medium accessible to general-purpose or special-purpose computers.

[0126] This application also provides a computer program product comprising a computer program stored in a computer-readable storage medium. At least one processor of the device can read the computer program from the computer-readable storage medium, and the at least one processor executes the computer program to cause the device to implement the methods provided in the various embodiments described above.

[0127] This application also provides a chip including a memory and a processor. The memory is used to store a computer program, and the processor is used to call and run the computer program from the memory, so that a device with the chip installed performs the methods described in the various possible implementations above.

[0128] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or modules may be electrical, mechanical, or other forms.

[0129] The modules can be physically separate, for example, installed in different locations within a single device, installed on different devices, distributed across multiple network units, or distributed across multiple processors. Alternatively, the modules can be integrated, for example, installed in the same device, or integrated into a single codebase. The modules can exist in hardware form, software form, or a combination of both. This application can select some or all of the modules to achieve the objectives of this embodiment based on actual needs.

[0130] When the various modules are implemented as integrated software functional modules, they can be stored in a computer-readable storage medium. The aforementioned software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application.

[0131] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some of the steps in the figures may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.

[0132] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and not to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.

Claims

1. A data interaction method, characterized in that, The method, applicable to terminal devices equipped with large screens, includes: In response to a user instruction, a first component and a second component to be interacted with are determined, wherein the first component is the sender and the second component is the receiver; Interaction information is determined based on the first component and the second component, and the interaction information includes at least the hierarchical information of the first component, the hierarchical information of the second component, and data content; Based on the hierarchical information of the first component and the second component, the data content of the first component is sent to the second component; wherein, based on the hierarchical information of the first component and the second component, the scenario corresponding to the first component sending data content to the second component is determined; different interaction methods correspond to different scenarios; When the first component and the second component are at different levels, the step of sending the data content of the first component to the second component according to the level information of the first component and the level information of the second component specifically includes: Based on the hierarchical information of the first component and the hierarchical information of the second component, the encoding information of the second component is determined. The encoding information includes the component encoding of the second component, and / or the folder encoding of the folder where the second component is located, and / or the system encoding of the large screen system where the second component is located. The data content is sent to the second component according to the encoding information.

2. The method according to claim 1, characterized in that, The component also includes a hierarchy field, which is used to indicate the hierarchy information of the component within its corresponding system; the hierarchy information is determined based on the folder in the large-screen system of the terminal device where the component is located; The terminal device includes at least one large-screen system; the large-screen system includes folders and / or components; the folders include subfolders and / or components.

3. The method according to claim 2, characterized in that, The method further includes: When the first component and the second component are in the same large screen system or folder, the first component and the second component are at the same level; When the first component is outside the first folder and the second component is inside the first folder, the first component is at a higher level than the second component, and the first component is at the same level as the first folder. When the first component is inside the first folder, the second component is inside the second folder, and the first folder and the second folder have no subordinate relationship, the first component and the second component are at different levels. When the first component is inside the first large screen system and the second component is inside the second large screen system, the first component and the second component are at different levels, and the first large screen system and the second large screen system are at the same level.

4. The method according to any one of claims 1-3, characterized in that, When the first component and the second component are at the same level, or when the level of the first component is lower than the level of the second component, sending the data content of the first component to the second component according to the level information of the first component and the level information of the second component specifically includes: Based on the hierarchy information of the second component, determine the component code of the second component; The data content is sent to the second component according to the component encoding.

5. The method according to any one of claims 1-3, characterized in that, When the encoding information includes component encoding and folder encoding, sending the data content to the second component according to the encoding information specifically includes: The data content is sent to the folder according to the folder code; The data content is sent to the second component according to the component encoding.

6. The method according to any one of claims 1-3, characterized in that, When the encoding information includes component encoding and system encoding, sending the data content to the second component according to the encoding information specifically includes: According to the system coding, the first large screen system containing the first component is embedded into the second large screen system containing the second component; The data content is transmitted from the first large screen system to the second large screen system through a communication mechanism, and the data content is obtained through the listening events of the second large screen system. The data content is sent to the second component according to the component encoding.

7. A data interaction device, characterized in that, The device includes: The acquisition module is used to respond to user instructions to determine a first component and a second component to be interacted with, wherein the first component is the sender and the second component is the receiver; and to acquire interaction information from the first component, wherein the interaction information includes at least the hierarchical information of the first component, the hierarchical information of the second component, and data content. The processing module is configured to send the data content of the first component to the second component based on the hierarchical information of the first component and the hierarchical information of the second component; wherein, based on the hierarchical information of the first component and the hierarchical information of the second component, the scenario corresponding to the data content sent by the first component to the second component is determined; different interaction methods correspond to different scenarios; When the first component and the second component are at different levels, the processing module is specifically used for: Based on the hierarchical information of the first component and the hierarchical information of the second component, the encoding information of the second component is determined. The encoding information includes the component encoding of the second component, and / or the folder encoding of the folder where the second component is located, and / or the system encoding of the large screen system where the second component is located. The data content is sent to the second component according to the encoding information.

8. A controller, characterized in that, The controller includes: a memory and a processor; the memory is used to store a computer program; the processor is used to implement the data interaction method as described in any one of claims 1-6 according to the computer program stored in the memory.

9. A terminal device, characterized in that, The terminal device includes: a large screen and a controller as described in claim 8. When the first component and the second component in the large screen interact with each other, the controller executes the data interaction method as described in any one of claims 1-6 to realize the data interaction between the first component and the second component; wherein the first component and the second component are two visual components displayed on the large screen.

Citation Information

Patent Citations

  • Data transmission method and application client

    CN106998288A

  • Web end visual development method and system and storage medium

    CN114138256A