Equipment data display method and device based on object model, terminal and storage medium
By receiving user-input IoT device data display requests and obtaining customized user interface components, the problem of poor display effect of IoT device in the prior art is solved, and personalized and differentiated display of IoT device data is realized, improving the The effectiveness of the demonstration was demonstrated.
Patent Information
- Application Number
- CN202410958354.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-12-06
AI Technical Summary
Existing IoT platforms cannot provide efficient device data display methods, resulting in poor display of IoT devices on terminals and users cannot personalize their customization according to their own needs.
By receiving data display requests for IoT devices input by users, custom user interface components are obtained based on device identification and data identification, and the data to be displayed are used to display the data to be displayed, thereby achieving differentiated and personalized display of IoT device data.
It improves the effectiveness and attractiveness of IoT device data display and meets users' flexibility needs for customized interface display.
Smart Images

Figure CN119088486A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of Internet of Things, and in particular, relates to a device data display method, device, terminal and storage medium based on a physical model. Background Art
[0002] As a core component of the IoT platform, the object model plays a key role in achieving standardized management of inter-device communication and data interaction. However, with the continuous increase in data volume and the challenges of data management, such as large data volume and inconvenient management, the question of how to display data more intuitively has been raised. At present, most IoT platforms provide limited customization options for device data display. Users can only set the interface display according to preset modes and options, and cannot customize it according to their own needs, which limits the flexibility of users to display device data in the customized interface. Summary of the invention
[0003] The purpose of the present invention is to provide a device data display method, device, terminal and storage medium based on a physical model, aiming to solve the problem that the display effect of IoT devices on the terminal is poor due to the inability of the prior art to provide an efficient device data display method.
[0004] In a first aspect, the present invention provides a method for displaying device data based on a physical model, the method comprising the following steps:
[0005] Receive a data display request of an Internet of Things device input by a user, wherein the data display request includes a device identifier of the Internet of Things device and a data identifier of data to be displayed;
[0006] A custom user interface component of the data to be displayed is obtained based on the device identifier and the data identifier, and the data to be displayed is displayed through the custom user interface component.
[0007] In some embodiments, the step of receiving a data display request of an IoT device input by a user includes:
[0008] Receive a data display request for the IoT device input by a user through the object model of the IoT device displayed by the client;
[0009] The step of acquiring a custom user interface component of the data to be displayed based on the device identifier and the data identifier, and displaying the data to be displayed through the custom user interface component includes:
[0010] The client sends the data display request to the backend server via HTTP protocol;
[0011] The back-end server obtains the data to be displayed from a preset database based on the device identifier and the data identifier, and sends the data to be displayed to the client through the HTTP protocol;
[0012] The client obtains the custom user interface component of the data to be displayed based on the device identifier and the data identifier, and displays the data to be displayed through the custom user interface component.
[0013] In some embodiments, before the step of receiving a data display request from an IoT device input by a user, the method further includes:
[0014] Get static description information of IoT devices;
[0015] The properties, services, and events of the IoT device are defined, and a physical model corresponding to the IoT device is created according to the static description information and the defined properties, services, and events.
[0016] In some embodiments, the step of defining the attributes, services, and events of the IoT device includes:
[0017] Set whether the attributes to be defined can be visualized through custom user interface components;
[0018] When the attribute to be defined is set to be visualized through a custom user interface component, the custom user interface component that matches the attribute to be defined is obtained based on the data type and value range of the attribute to be defined, and the matching custom user interface component is set as the display interface for the data of the attribute to be defined.
[0019] In some embodiments, the step of defining the attributes, services, and events of the IoT device includes:
[0020] According to the service input and output data types and value ranges of the Internet of Things device, a custom user interface component matching the service is obtained, and the matching custom user interface component is set as a display interface of the corresponding service.
[0021] In some embodiments, the step of defining the attributes, services, and events of the IoT device includes:
[0022] According to the event output data type and value range of the Internet of Things device, a custom user interface component matching the event is obtained, and the matching custom user interface component is set as a display interface of the corresponding event.
[0023] In some embodiments, after the step of creating a thing model corresponding to the IoT device according to the static description information and the defined attributes, services, and events, the method further includes:
[0024] The data corresponding to the object model is encapsulated using the JSON data format, and the encapsulated data file is sent to the backend server.
[0025] In a second aspect, the present invention provides a device data display apparatus based on a physical model, the device comprising:
[0026] a request receiving unit, configured to receive a data display request of an IoT device input by a user, wherein the data display request includes a device identifier of the IoT device and a data identifier of data to be displayed; and
[0027] The data display unit is used to obtain the custom user interface component of the data to be displayed based on the device identifier and the data identifier, and display the data to be displayed through the custom user interface component.
[0028] In a third aspect, the present invention provides a device data display terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above methods when executing the computer program.
[0029] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of any of the above methods are implemented.
[0030] When receiving a data display request input by a user, which includes a device identifier of an IoT device and a data identifier of data to be displayed, an embodiment of the present invention obtains a custom user interface component of the data to be displayed based on the device identifier and the data identifier in the data display request, and then displays the data to be displayed through the custom user interface component, thereby realizing differentiated and personalized display of IoT device data on an IoT terminal, and improving the effectiveness of data display. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 is a flow chart of a method for displaying device data based on a physical model provided in the first embodiment of the present invention;
[0032] Figure 2 is a flow chart of a device data display method based on a physical model provided in the second embodiment of the present invention;
[0033] Figure 3 is a flow chart of a method for displaying device data based on a physical model provided in Embodiment 3 of the present invention;
[0034] Figure 4 This is a schematic diagram of an application scenario provided by Embodiment 3 of the present invention;
[0035] Figure 5 is a schematic diagram of the structure of a device data display apparatus based on a physical model provided in a fourth embodiment of the present invention;
[0036] Figure 6 It is a structural diagram of a device data display terminal provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION
[0037] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0038] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or their collections. And the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, the singular forms "one", "an" and "the" are intended to include plural forms unless the context clearly indicates otherwise. The terms "first", "second" and similar words do not indicate any order, quantity or importance, but are only used to distinguish different components. "Connected" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships, and when the absolute position of the described object changes, the relative positional relationship may also change accordingly.
[0039] In order to keep the following description of the embodiments of the present invention clear and concise, detailed descriptions of some known functions and components are omitted in this specification.
[0040] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments:
[0041] Embodiment 1:
[0042] Figure 1 The implementation process of the device data display method based on the object model provided in the first embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0043] In step S101, a data display request of an IoT device input by a user is received.
[0044] The embodiment of the present invention can be applied to an Internet of Things control terminal, such as a portable terminal, a personal computer, etc., to display the device data of an Internet of Things device based on a physical model, and the data display request may include the device identification of the Internet of Things device and the data identification of the data to be displayed. Among them, the data to be displayed can be the attribute data, service data, or event data of the Internet of Things device corresponding to the physical model. As an example, for example, the attribute data can be the current temperature data and location information of the refrigeration device, the service data can be the remote control service related information or data of the refrigeration device, and the event data can be the current or historical abnormal event data or reminder information of the refrigeration device. The data identification of the data to be displayed can be the identification of the attribute (data) to be displayed, the identification of the service (data), or the identification of the event (data), and the device identification of the Internet of Things device is the device identification of the Internet of Things device represented by the physical model. When receiving the data display request, specifically, the data display request of the Internet of Things device input by the user can be received through the physical model in the Internet of Things displayed by the Internet of Things control terminal to improve the convenience of request input.
[0045] In step S102, a custom user interface component of the data to be displayed is obtained based on the device identifier and the data identifier, and the data to be displayed is displayed through the custom user interface component.
[0046] In an embodiment of the present invention, when a data display request input by a user, including a device identifier of an IoT device and a data identifier of data to be displayed, is received, a custom user interface component of the data to be displayed is obtained based on the device identifier and the data identifier in the data display request, and then the data to be displayed is displayed through the custom user interface component, thereby using the user interface component generated by the user preference to display or output the IoT device data, thereby improving the attractiveness and display effect of the device data display.
[0047] Embodiment 2:
[0048] Figure 2 The implementation process of the device data display method based on the physical model provided in the second embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0049] In step S201, static description information of the IoT device is obtained.
[0050] The embodiments of the present invention can be applied to IoT control terminals, such as portable terminals, personal computers, etc., to output or display device data of IoT devices to users based on object models. The static description information can be basic information of the device or device registration information input by the user, such as device type, model, color, etc. and other important static characteristics of the device, so as to statically describe the IoT device and facilitate accurate generation of graphic images of the object model and data display.
[0051] In step S202, the properties, services, and events of the IoT device are defined, and a physical model corresponding to the IoT device is created based on the static description information and the defined properties, services, and events.
[0052] In the embodiment of the present invention, the attribute of the IoT device is the device description information of the attribute dimension, such as the name, model, production unit, factory time, status, maintenance information, repair information, etc. of the device. The service is the related service that the device can provide. For example, the services that the lighting device can provide are the services of turning on, off, brightness adjustment, etc. The event is the abnormal operation of the device or reminder, such as abnormal opening, closing, operation, etc. After obtaining the static description information and defining the attributes, services, and events, the object model corresponding to the IoT device is created, so as to accurately obtain the object model preferred by the user, such as the user interface components of the attributes, services, and events and the image or picture display of the object model.
[0053] Define the properties, services, and events of IoT devices, that is, set the visualized properties, services, events, and corresponding visualization components according to the properties, services, and event information of IoT devices. For example, define a user interface (custom user interface) for displaying various device data of IoT devices. Custom user interface components are user interface components that are set by users based on IoT devices and the data (type) to be displayed to display IoT devices. Optionally, custom user interface components can be obtained by differentially setting existing user interface components in the user interface component library, or they can be directly created by users, so that corresponding user interface components can be generated according to user preferences to display or output data, thereby improving the attractiveness and display effect of data display.
[0054] In some optional embodiments, when defining the properties, services, and events of an IoT device, a custom user interface component matching the property to be defined is obtained according to the data type and value range of the property to be defined, and the matching custom user interface component is set as the display interface of the data of the property to be defined, so as to set a suitable user interface component according to the user's preference, so as to be used for displaying the device attribute information to the user in a differentiated manner in the future. Furthermore, in order to prevent specific properties of a device from being viewed by illegal users, in some optional embodiments, whether the property to be defined can be visualized through a custom user interface component can be set. When the property to be defined is set to be visualized through a custom user interface component, a custom user interface component matching the property to be defined is obtained according to the data type and value range of the property to be defined, and the matching custom user interface component is set as the display interface of the data of the property to be defined. Specifically, the data type can be a numeric type, a floating point type, an enumeration type, etc. At this time, different user interface components can be set to display the corresponding attribute data.
[0055] In some optional embodiments, when defining the properties, services, and events of an IoT device, a custom user interface component that matches the service is obtained based on the service input and output data types and value ranges of the IoT device, and the matching custom user interface component is set as the display interface of the corresponding service, thereby setting a suitable user interface component for providing the service based on user preferences, so as to subsequently display the device service to the user in a differentiated manner and improve the availability of the service.
[0056] In some optional embodiments, when defining the properties, services, and events of an IoT device, a custom user interface component that matches the event is obtained based on the event output data type and value range of the IoT device, and the matching custom user interface component is set as the display interface of the corresponding event, thereby setting an appropriate event reminder user interface component based on user preferences, so as to subsequently display device event reminder information to the user in a differentiated manner, thereby improving the effectiveness of the reminder.
[0057] In some optional embodiments, if the object model is stored on a back-end server, after creating the object model corresponding to the IoT device, the data corresponding to the object model can be encapsulated using the JSON data format, and the encapsulated data file can be sent to the back-end server, thereby facilitating the back-end server to parse and store the object model data, while reducing the amount of data exchange between the client and the server.
[0058] In step S203, a data display request of an IoT device input by a user is received.
[0059] In step S204, a custom user interface component of the data to be displayed is obtained based on the device identifier and the data identifier, and the data to be displayed is displayed through the custom user interface component.
[0060] In the embodiment of the present invention, the implementation of step S203 and step S204 can refer to the description of step S101 and step S102 in embodiment 1, and will not be repeated here.
[0061] When receiving a data display request input by a user, which includes a device identifier of an IoT device and a data identifier of data to be displayed, an embodiment of the present invention obtains a custom user interface component of the data to be displayed based on the device identifier and the data identifier in the data display request, and then displays the data to be displayed through the custom user interface component, thereby realizing differentiated and personalized display of IoT device data on an IoT terminal, and improving the effectiveness of data display.
[0062] Embodiment three:
[0063] Figure 3 The implementation process of the device data display method based on the physical model provided in the third embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:
[0064] In step S301, a data display request of an IoT device input by a user is received through the object model of the IoT device displayed by the client, and the data display request is sent to a backend server through the HTTP protocol.
[0065] The embodiments of the present invention can be applied to an Internet of Things system, specifically, to Figure 4 The client and server shown, the client can be the client software on the IoT control terminal, the back-end server can be the server software of the IoT platform or server, the physical model data is stored in the preset database of the back-end, and the data to be displayed can be the attribute data, service data, or event data of the IoT device corresponding to the physical model. As an example, for example, the attribute data can be the current temperature data and location information of the refrigeration equipment, the service data can be the remote control service related information or data of the refrigeration equipment, and the event data can be the current or historical abnormal event data or reminder information of the refrigeration equipment. The data display request may include the device identification of the IoT device and the data identification of the data to be displayed, wherein the data identification of the data to be displayed can be the identification of the attribute (data) to be displayed, the identification of the service (data), or the identification of the event (data), and the device identification of the IoT device is the device identification of the IoT device represented by the physical model.
[0066] Specifically, the object model in the Internet of Things displayed by the Internet of Things control terminal can receive the data display request of the Internet of Things device input by the user to improve the convenience of request input. After receiving the data display request, the client sends the data display request to the backend server through the HTTP protocol.
[0067] In step S302, the backend server obtains the data to be displayed from a preset database based on the device identifier and the data identifier, and sends the data to be displayed to the client through the HTTP protocol.
[0068] In an embodiment of the present invention, after receiving the data display request from the IoT control terminal, the backend server obtains the data to be displayed in a preset database based on the device identifier and the data identifier, and sends the data to be displayed to the client via the HTTP protocol.
[0069] In step S303, the client obtains a custom user interface component of the data to be displayed based on the device identifier and the data identifier, and displays the data to be displayed through the custom user interface component.
[0070] In an embodiment of the present invention, a custom user interface component is a user interface (component) defined by a user for displaying various device data of an IoT device, such as attribute data, service data, or event data. A custom user interface component is a user interface component that displays IoT device-related data set by a user according to the IoT device and the data (type) to be displayed. Optionally, a custom user interface component can be obtained by differentially setting an existing user interface component in a user interface component library, or can be directly created by a user, so that data can be displayed using corresponding different user interface components on different user terminals, thereby improving the attractiveness and display effect of the data display. After receiving the data to be displayed, the client obtains the custom user interface component of the data to be displayed based on the device identifier and the data identifier, and displays the data to be displayed through the custom user interface component.
[0071] Embodiment 4:
[0072] Figure 5 The structure of the device data display apparatus provided by the fourth embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown.
[0073] In the embodiment of the present invention, the device data display apparatus 5 includes a request receiving unit 51 and a data display unit 52, wherein:
[0074] A request receiving unit 51 is used to receive a data display request of an IoT device input by a user, where the data display request includes a device identifier of the IoT device and a data identifier of data to be displayed; and
[0075] The data display unit 52 is used to obtain a custom user interface component of the data to be displayed based on the device identifier and the data identifier, and display the data to be displayed through the custom user interface component.
[0076] In the embodiments of the present invention, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be implemented by different functional units and modules as needed, that is, the internal structure of the device is divided into different functional units or modules to realize all or part of the functions described above. Each unit and module of the device can be implemented by corresponding hardware or software units. Each unit and module can be an independent software or hardware unit, or it can be integrated into a software or hardware unit, which is not intended to limit the present invention. In addition, the specific names of each functional unit and module are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the device can refer to the corresponding description in the aforementioned method embodiment, which will not be repeated here.
[0077] Embodiment five:
[0078] Figure 6 The structure of the device data display terminal provided by the fifth embodiment of the present invention is shown. For the convenience of description, only the part related to the embodiment of the present invention is shown.
[0079] The device data display terminal 6 of the embodiment of the present invention includes a processor 60, a memory 61, and a computer program 62 stored in the memory 61 and executable on the processor 60. When the processor 60 executes the computer program 62, the steps in the above-mentioned device data display method based on the object model are implemented, such as Figure 1 Alternatively, when the processor 60 executes the computer program 62, the functions of each unit in the above-mentioned device embodiment are realized, for example Figure 5 The functions of the units 51 to 52 are shown.
[0080] The device data display terminal of the embodiment of the present invention can be a portable terminal or a personal computer. The steps implemented when the processor 60 in the device data display terminal 6 executes the computer program 62 to implement the above device data display method can refer to the description of the above method embodiment, which will not be repeated here.
[0081] Embodiment six:
[0082] In an embodiment of the present invention, a computer-readable storage medium is provided, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned device data display method embodiment are implemented. For example, Figure 1Alternatively, when the computer program is executed by a processor, the functions of each unit in the above device embodiment are realized, for example Figure 5 The functions of the units 51 to 52 are shown.
[0083] When executing a computer program stored on a computer-readable storage medium, an embodiment of the present invention receives a data display request input by a user, which includes a device identifier of an IoT device and a data identifier of data to be displayed, obtains a custom user interface component of the data to be displayed based on the device identifier and the data identifier in the data display request, and then displays the data to be displayed through the custom user interface component, thereby realizing differentiated and personalized display of IoT device data on an IoT terminal, thereby improving the effectiveness of data display.
[0084] The computer-readable storage medium of the embodiment of the present invention may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EEPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In an embodiment of the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or device.
[0085] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit them. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that the disclosure scope involved in the above embodiments is not limited to the technical solutions formed by the specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosure concept. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0086] In addition, although each operation is described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present invention. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
Claims
1. A device data display method based on a physical model, characterized in that: The method comprises the following steps: Receive a data display request of an Internet of Things device input by a user, wherein the data display request includes a device identifier of the Internet of Things device and a data identifier of data to be displayed; A custom user interface component of the data to be displayed is obtained based on the device identifier and the data identifier, and the data to be displayed is displayed through the custom user interface component.
2. The method according to claim 1, characterized in that The step of receiving a data display request of an IoT device input by a user includes: Receive a data display request for the IoT device input by a user through the object model of the IoT device displayed by the client; The step of acquiring a custom user interface component of the data to be displayed based on the device identifier and the data identifier, and displaying the data to be displayed through the custom user interface component includes: The client sends the data display request to the backend server via HTTP protocol; The back-end server acquires the data to be displayed from a preset database based on the device identifier and the data identifier, and sends the data to be displayed to the client through the HTTP protocol; The client obtains the custom user interface component of the data to be displayed based on the device identifier and the data identifier, and displays the data to be displayed through the custom user interface component.
3. The method according to claim 1, characterized in that Before the step of receiving a data display request of an IoT device input by a user, the method further includes: Get static description information of IoT devices; The properties, services, and events of the IoT device are defined, and a physical model corresponding to the IoT device is created according to the static description information and the defined properties, services, and events.
4. The method according to claim 3, characterized in that The steps of defining the properties, services, and events of the IoT device include: Set whether the attributes to be defined can be visualized through custom user interface components; When the attribute to be defined is set to be visualized through a custom user interface component, the custom user interface component that matches the attribute to be defined is obtained based on the data type and value range of the attribute to be defined, and the matching custom user interface component is set as the display interface for the data of the attribute to be defined.
5. The method according to claim 3, characterized in that The steps of defining the properties, services, and events of the IoT device include: According to the service input and output data types and value ranges of the Internet of Things device, a custom user interface component matching the service is obtained, and the matching custom user interface component is set as a display interface of the corresponding service.
6. The method according to claim 3, characterized in that The steps of defining the properties, services, and events of the IoT device include: According to the event output data type and value range of the Internet of Things device, a custom user interface component matching the event is obtained, and the matching custom user interface component is set as a display interface of the corresponding event.
7. The method according to claim 3, characterized in that After the step of creating a thing model corresponding to the Internet of Things device according to the static description information and the defined attributes, services, and events, the method further includes: The data corresponding to the object model is encapsulated using the JSON data format, and the encapsulated data file is sent to the backend server.
8. A device data display device based on a physical model, characterized in that: The device comprises: a request receiving unit, configured to receive a data display request of an IoT device input by a user, wherein the data display request includes a device identifier of the IoT device and a data identifier of data to be displayed; and The data display unit is used to obtain the custom user interface component of the data to be displayed based on the device identifier and the data identifier, and display the data to be displayed through the custom user interface component.
9. A device data display terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
