CN109765793B - Equipment state display method and device, terminal and storage medium - Google Patents

Equipment state display method and device, terminal and storage medium Download PDF

Info

Publication number
CN109765793B
CN109765793B CN201811500376.3A CN201811500376A CN109765793B CN 109765793 B CN109765793 B CN 109765793B CN 201811500376 A CN201811500376 A CN 201811500376A CN 109765793 B CN109765793 B CN 109765793B
Authority
CN
China
Prior art keywords
terminal
display
equipment
attribute
text information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811500376.3A
Other languages
Chinese (zh)
Other versions
CN109765793A (en
Inventor
曲晓峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lumi United Technology Co Ltd
Original Assignee
Lumi United Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lumi United Technology Co Ltd filed Critical Lumi United Technology Co Ltd
Priority to CN201811500376.3A priority Critical patent/CN109765793B/en
Publication of CN109765793A publication Critical patent/CN109765793A/en
Application granted granted Critical
Publication of CN109765793B publication Critical patent/CN109765793B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The embodiment of the application provides a device state display method, a device, a terminal and a storage medium. The method comprises the following steps: the method comprises the steps that a terminal obtains text information which corresponds to equipment and is generated based on a preset format; the terminal analyzes the text information to obtain attribute parameters and display information corresponding to the equipment; the terminal acquires a data value corresponding to the attribute parameter by adopting a dynamic script; and the terminal displays the data values corresponding to the attribute parameters in a vector diagram mode based on the display information. According to the method, the state of the intelligent household equipment is displayed in a vector diagram mode, the state information of the intelligent household equipment can be dynamically drawn in the vector diagram in a configurable format, so that the state of the intelligent household equipment can be displayed to a user more visually, and the user experience of the intelligent household equipment is improved.

Description

Equipment state display method and device, terminal and storage medium
Technical Field
The present application relates to the field of smart home technologies, and in particular, to a method and an apparatus for displaying a device status, a terminal, and a storage medium.
Background
With the popularization of intelligent hardware and artificial intelligence algorithms based on a deep neural network, intelligent home equipment is widely applied. The intelligent household equipment can automatically monitor and manage families through various sensors, controllers and brakes, and is convenient to live. In recent years, with the improvement of the user acceptance degree in the market, more and more smart home devices enter the user home, and various smart home devices in the user home are also more and more. However, as the number of the smart home devices is increasing, the intuitive display and control of the states of the smart home devices become a new challenge.
Disclosure of Invention
In view of the above, embodiments of the present application provide a device status display method, apparatus, terminal and storage medium to achieve improvement of the above problem.
In a first aspect, an embodiment of the present application provides an apparatus status display method, where the method includes: the method comprises the steps that a terminal obtains text information which corresponds to equipment and is generated based on a preset format; the terminal analyzes the text information to obtain attribute parameters and display information corresponding to the equipment; the terminal acquires a data value corresponding to the attribute parameter by adopting a dynamic script; and the terminal displays the data values corresponding to the attribute parameters in a vector diagram mode based on the display information.
In a second aspect, an embodiment of the present application provides an apparatus for displaying device status, which operates on a terminal, and includes: the text information acquisition unit is used for acquiring the text information which is generated on the basis of the preset format and corresponds to the equipment by the terminal; the text information analysis unit is used for analyzing the text information by the terminal to obtain attribute parameters and display information corresponding to the equipment; the data acquisition unit is used for acquiring a data value corresponding to the attribute parameter by the terminal by adopting a dynamic script; and the data display unit is used for displaying the data values corresponding to the attribute parameters in a vector diagram mode on the basis of the display information by the terminal.
In a third aspect, an embodiment of the present application provides a terminal, including a memory, and one or more processors; one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the device status display method of the first aspect described above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, in which program code is stored, and when the program code is executed by a processor, the device status display method of the first aspect is performed.
Compared with the prior art, the device state display method, the device, the terminal and the storage medium are provided by the embodiments of the application. The method comprises the following steps: acquiring text information which is generated on the basis of a preset format and corresponds to equipment through a terminal; the terminal analyzes the text information to obtain attribute parameters and display information corresponding to the equipment; the terminal acquires a data value corresponding to the attribute parameter by adopting a dynamic script; and the terminal displays the data values corresponding to the attribute parameters in a vector diagram mode based on the display information. According to the method and the device, the state information of the intelligent household equipment can be dynamically drawn in the vector diagram in the configurable format, so that the state of the intelligent household equipment can be more visually displayed for a user, and the user experience of the intelligent household equipment is further improved.
In order to make the aforementioned and other objects, features and advantages of the present application more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a data interaction diagram illustrating a device status display method provided by an embodiment of the present application;
FIG. 2 is a flow chart illustrating a method for displaying device status according to an embodiment of the present disclosure;
fig. 3 shows a flowchart of step S110 of the device status display method proposed in fig. 2;
fig. 4 shows a flowchart of step S130 of the device status display method proposed in fig. 2;
fig. 5 shows a flowchart of step S140 of the device status display method proposed in fig. 2;
fig. 6 is a schematic diagram illustrating a display interface in the device status display method according to the embodiment of the present application;
FIG. 7 is a schematic diagram illustrating another display interface in the device status display method according to the embodiment of the present application;
fig. 8 is a flowchart illustrating a specific example of a device status display method according to an embodiment of the present application;
FIG. 9 is a diagram illustrating a specific example of a device status display method according to an embodiment of the present disclosure;
FIG. 10 is a diagram illustrating another specific example of a device status display method according to an embodiment of the present disclosure;
fig. 11 is a block diagram illustrating a structure of a device status display apparatus according to an embodiment of the present application;
fig. 12 is a block diagram illustrating a structure of a terminal provided in the present application;
fig. 13 illustrates a storage unit for storing or carrying a program code for implementing the device status display method according to the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. Meanwhile, in the description of the present application, the terms "first", "second", and the like are used only for distinguishing the description, and are not to be construed as indicating or implying relative importance.
With the wide popularization of the html5 standard, the development of the dynamic web front-end display technology based on javascript becomes more and more mature. In the html5 standard page, a Scalable Vector Graphics (SVG) Vector diagram can be dynamically drawn by using javascript, and the drawing is simple and direct. The SVG vector diagram is a text description of a graph during transmission, has small data volume and high transmission speed, and can be adaptively scaled in a page size stepless manner to ensure lossless quality. The javascript can dynamically inquire and update the latest result and is displayed on the chart.
With the rapid development of the smart home industry, more and more smart home devices enter the families of consumers. With the increase of the intelligent home devices, the management of the states of the intelligent home devices becomes a difficult problem. For a consumer, when a small amount (e.g. 1 to 3) of smart home devices are used, the smart home devices can be controlled through a mobile phone APP or a webpage client; however, when the number of the devices is more than a certain number, for example, more than 5, more than ten, more than dozens or hundreds of devices, the states of the smart home devices and the reported data need to be checked one by one, the target devices are selected by clicking through the hierarchical tree-shaped directory, and then the states of the smart home devices are checked and controlled, so that the user experience of the smart home devices is greatly reduced.
The inventor finds that the state of the intelligent home equipment in the big data can be inquired by analyzing a simple configuration script written by a user according to a specified grammar by utilizing a dynamic web front-end display technology and adopting a javascript-based compiler, and then the state of the intelligent home equipment is displayed in real time in a user-friendly and configurable mode. Therefore, the inventor proposes a device state display method, device, terminal and storage medium provided by the application.
The following description will first describe a data interaction flow in the device status display method according to the embodiment of the present application.
As an implementation manner, as shown in fig. 1, the smart home devices 11 upload device data and states to the data acquisition device or system 12, the data acquisition device or system 12 uploads the combined data to the database 13, and the database 13 displays the data of the smart home devices 11 on the terminal (Web client) 15 through the data access interface 14. The smart home devices 11 may include physical smart devices, such as an electric meter, a door sensor, a human body sensor, a door sensor, a window sensor, a temperature and humidity sensor, a water sensor, a natural gas alarm, a smoke alarm, a wall switch, a wall socket, a smart socket, a wireless switch, a wireless wall switch, a magic cube controller, a curtain motor, a multifunctional gateway, an air conditioner partner, a camera, and other smart devices, or may be virtual sensor devices, such as virtual human body sensor devices, which are not limited herein. The data acquisition device or system 12 characterizes a network access device or a data acquisition system configured by the network access device for acquiring data in a server (including a network access server, a cloud server, or a database server, etc.), such as a gateway or a system configured in the gateway for acquiring data.
As one approach, the data acquisition device or system 12, the database 13, and the data access interface 14 may all be from the same server, or alternatively, may be from different servers.
It should be noted that, in the embodiment of the present application, the terminal may be a mobile phone, a tablet computer, a PC computer, or other terminal devices with a mobile communication function, and a client application program for managing the smart home device 11 is configured on the terminal, and optionally, the client may be a mobile phone APP or a web browser, which is not limited herein.
Embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2, a flowchart of an apparatus status display method according to an embodiment of the present application is shown, where the present embodiment provides an apparatus status display method applied to a terminal, and the method includes:
step S110, the terminal acquires text information which is generated on the basis of a preset format and corresponds to the equipment.
It should be noted that, a client for managing the smart home device is installed in the terminal in the embodiment of the present application, and the client may be an application client (e.g., a mobile phone APP) or a web page client, which is not limited herein. As an implementation manner, the smart home device is connected with the gateway, and the gateway is connected with the terminal and further receives a control instruction from the terminal.
The content defined by the preset format is the content which the user expects to enable the equipment to be displayed on the terminal interface, and the displayed content comprises the name of the displayed equipment, the display position corresponding to the equipment, the display representative icon corresponding to the equipment and the like. Alternatively, the preset format may be a graphic (e.g., png or gif), a table, or any other vector diagram format that the user desires to display on the terminal interface of the device. The user can customize the state information (such as the name, the position, the representative icon and the like of the equipment) of the equipment according to personal habits (such as the habit of the user describing the position of the equipment in the absolute directions of south, east, west, north and the like, and the habit of the user describing the position of the equipment in the opposite directions of front, back, left, right and the like) and compile a configuration text script corresponding to the equipment according to specific grammar (such as JavaScript grammar); the user can also write a corresponding configuration text script according to the placing position of the equipment.
To sum up, a user or a merchant only needs to define a display rule of display content of a device (in this embodiment, the display content of the device mainly refers to a state of the device, and different devices have different state parameters, and therefore different devices have different display states), and compile a format text of the display content of the device according to the rule, and then the terminal invokes a text parser.
As a mode, the written configuration text script corresponding to the device is stored in a database of the first server in advance, and the configuration text script can be directly called by a JavaScript interface and can also be modified in real time according to needs. Optionally, the first server may be a local server, and the first server stores the configuration text script of the device in a data table in correspondence with a type identifier of the device, where the type identifier of the device may be used to uniquely identify the device. In a case where the terminal is to display the state of the device, text information generated based on a preset format corresponding to the device may be requested from the first server first. The following describes an acquisition process for acquiring text information based on a preset format from a first server by a terminal, where the acquisition process includes:
referring to fig. 3, as an alternative, step S110 may include:
step S111: and the terminal sends a text information acquisition request carrying the equipment type identifier of the equipment to the first server.
As an implementation manner, when the terminal requests the first server for the text information of the device, the terminal sends a text information acquisition request carrying the device type identifier of the device, so that the first server finds the data associated with the device type identifier in the data table according to the device type identifier.
Step S112: and receiving text information which is returned by the first server and corresponds to the acquisition request and is generated by the equipment based on a preset format.
And the terminal receives text information which is returned by the first server and generated on the basis of a preset format and corresponds to the equipment of the acquisition request, and identifies the text information.
Step S120: and the terminal analyzes the text information to obtain attribute parameters and display information corresponding to the equipment.
In order to obtain data related to state display of the device and further visually display the state of the device, the terminal needs to analyze text information. The attribute parameters include name attributes (such as device names of multiple devices) and function attributes (such as functions of each of the multiple devices) of the devices, and the display information includes display modes (such as representative display icons of the devices) and display contents (such as display positions, directions, symbols, and parameters of the devices) of the devices.
Step S130: and the terminal acquires the data value corresponding to the attribute parameter by adopting a dynamic script.
The first server stores static data of the device, and if a dynamic vector diagram of an operating state of the device is to be drawn, the first server needs to request the second server for variable information corresponding to the attribute parameter, that is, a data value corresponding to the attribute parameter. For example, for an air conditioner, the attribute parameter is the temperature of the air conditioner, and then the temperature degree of the air conditioner is the data value of the attribute parameter of the air conditioner, and the temperature degree of the air conditioner can be adjusted and changed as needed; for the switch, the attribute parameter is the state of the switch, and then the switch is turned on or off to be the data value of the state of the switch, in this case, the data value of the attribute parameter of the switch only has two situations of "on" or "off", and therefore, different devices have different attribute parameters and data values corresponding to the attribute parameters. The second server may be a cloud server or a third-party server, and it should be noted that the first server and the second server may be the same server or different servers.
The dynamic script may be a JavaScript script, other dynamic scripts such as jQuery and coffeescript, or a flash, but in view of saving the computing power of the second server, the dynamic script may be implemented by the JavaScript script. The following describes an acquisition process of acquiring a data value corresponding to an attribute parameter by using a dynamic script by a terminal:
referring to fig. 4, as an alternative, step S130 may include:
step S131: and the terminal sends a data acquisition request to a second server by adopting a JavaScript script, wherein the data acquisition request carries the equipment type identifier.
In this case, as a mode, the terminal may call an API interface of the second server by using a JavaScript script to send a data acquisition request carrying the device type identifier to the second server.
Step S132: and receiving a data value corresponding to the attribute parameter corresponding to the equipment type identifier returned by the second server.
And after receiving the data acquisition request sent by the terminal, the second server searches a data value corresponding to the attribute parameter of the equipment associated with the equipment according to the equipment type identifier and returns the searched key statement information related to the data value to the terminal equipment. Optionally, if the data acquisition request further includes an attribute type identifier of the device, the search speed of the second server may be increased. And the terminal receives the key statement information returned by the second server and extracts and obtains a data value corresponding to the attribute parameter of the equipment corresponding to the equipment type identifier of the equipment.
Step S140: and the terminal displays the data values corresponding to the attribute parameters in a vector diagram mode based on the display information.
Referring to fig. 5, as an alternative, step S140 may include:
step S141: the terminal identifies a value of a functional attribute of the device based on the display content of the device.
And the terminal calls a JavaScript interface and identifies the value of the functional attribute of the equipment based on the display content of the equipment. Alternatively, when the device includes a plurality of devices, the terminal may identify the value of the function attribute of each of the plurality of devices based on display contents of the plurality of devices.
Step S142: and dynamically drawing a vector diagram corresponding to the value of the functional attribute of the equipment based on the display mode of the equipment.
Optionally, the terminal may dynamically draw the svg vector diagram corresponding to the value of the functional attribute of each of the multiple devices based on the display mode of each of the multiple devices. The method comprises the steps of adding a corresponding input interface for generating a web page in a software system of the terminal, automatically acquiring svg vector primitives according to a text script written based on a preset format, defining associated response events of the svg events, and calling data by adopting a JavaScript script, so that the automatic drawing of an svg vector diagram of a display interface of the terminal and the automatic updating of state data of equipment can be realized.
Optionally, the terminal may further respond to the touch operation, acquire an interactive operation instruction corresponding to the touch operation, which is applied to the vector diagram, and control the device according to the interactive operation instruction. If the user needs to modify the data value corresponding to the attribute parameter of the device, the display icon corresponding to the device may be touched, the device may be selected by clicking or the like, and then a list box may be popped up at the touched icon for the user to modify the data value. For example, if it is detected that the icon touched by the user is an icon of an air conditioner, a corresponding control button for increasing or decreasing the temperature of the air conditioner may be popped up at the icon for the user to select touch (as shown in fig. 6). Or when the user needs to modify the operating state of the device (e.g., the on-off state of the electric water heater socket), the user may touch the display icon, e.g., click or drag the device icon, and pop up a control selection box at the device icon to modify the operating state of the switch of the electric water heater socket, e.g., if it is detected that the user-touched icon is the icon of the switch of the electric water heater socket, the icon may pop up a selection control button including on or off of the electric water heater socket for the user to trigger, so as to change the on-off state of the electric water heater socket (as shown in fig. 7).
It should be noted that, before modifying the display state information of the device, the terminal may perform identity authentication on the user performing the modification operation. For example, as one mode, when the user modifies the display state information of the device and then saves the display state information, the user may need to input a password of a login account for verification, short message verification, oauth verification, or the like, which is not limited herein.
As an embodiment, the method in the above embodiment is exemplarily described below by taking fig. 8 as an example:
referring to fig. 8, a user or a developer provides text information of a description and display method of a piece of equipment, where the text needs to be written according to a certain rule and needs to be parsed into svg primitives by a JavaScript language, the text information includes information such as a display shape and a position of a representative icon of the equipment, and optionally, the text information is stored in a local server. In order to facilitate visual display of the state of the device, for example, the running state of the device (such as the temperature and mode of an air conditioner) and the working state of the device (such as turning on or off a switch), after a user logs in a browser, the user can use a JavaScript script to analyze text information corresponding to the device, and then extract the device related to the text and a display method corresponding to the device.
Optionally, the device related to the text information may query the state of the device by accessing a state interface of the cloud server, and then draw the state of the device into an svg image in combination with a display method of the device in the text information, so that a user can conveniently view and control the state of the device. It should be noted that the method described and illustrated in the apparatus can be implemented in many ways, and the method of the embodiments of the present application is described below by two specific examples.
Referring to fig. 9, a schematic diagram of a specific example of the device state display method according to the embodiment of the present application is shown, where the size of the terminal display interface can be freely scaled without affecting the substantial display of the device state. The writing format rule of the text information corresponding to fig. 9 is "[ device position ]: [ device name ]; (parameter, [ attribute name ]); (icon, [ icon type ]). Wherein, the specific parameter variable filled in is in the "[ in ], the content of optional filling is in the" () ", if not, the default parameter variable can be used.
If the user has previously written a group of text messages:
"upper left: a bedroom air conditioning partner; parameter, temperature; icon, circle.
Upper right: an electric water heater socket; parameters, switching; icon, water heater.
Center: a living room wireless switch; parameter, last usage time.
Left lower: a gate magnet; parameters, switching; icon, door.
Right lower: a door lock; parameter, last door opener; icon, door. "
Then, the device name of the device in the text information and the function attribute parameters corresponding to the device can be analyzed by using the JavaScript script, and the function attribute parameters are respectively: bedroom air conditioner companion (temperature), electric water heater socket (switch), living room wireless switch (last use time), gate magnet (switch), lock (last person who opens the door). After the device name and the function attribute parameters corresponding to the device name are analyzed, the terminal initiates a query request to the cloud server API, and then the state of the device obtained through query returned by the cloud server is obtained.
Optionally, the states of the devices received by the terminal or the data values of the function attribute parameters of the devices are respectively represented as follows: a bedroom air conditioner partner (temperature is 25 ℃), an electric water heater socket (switch: off), a living room wireless switch (last use time: 18:38), a gate magnet (switch: on) and a door lock (last door-opened person: subfile). The content outside the parentheses represents the corresponding device name, the content inside the parentheses represents the data value corresponding to the function attribute parameter, and for different devices, the data value is different, and the data value may be a numerical value or a non-numerical value (for example, the on or off of the wireless switch is a non-data value). Then, the terminal draws an SVG image as shown in fig. 9 by combining the position (upper left, upper right, center, lower left, lower right) parsed by the JavaScript and the display representative icon (circle, water heater, default (no setting), door) corresponding to the device.
It should be noted that the written text information is only a set of simple text information for convenience of description, and the actual implementation may include text information corresponding to a state display mode of the device in a case where the device is more complex or the number of devices is larger. For example, if the device icon of the text information written by the user exceeds the range that can be displayed on the current screen, the text information corresponding to the device icon may be displayed in groups, and the specific display may be performed in the form of page turning, page turning in groups of multiple layers of directory trees, and the like, and is not limited specifically.
The above is described in terms of a page arrangement, for example. After the terminal analyzes the text information generated based on the preset format, and in the case that the number of the icons of the defined devices exceeds the maximum number that can be arranged on the current interface, the terminal can select some of the icons of the devices from the analyzed devices to be displayed on the first page of the page, and arrange the icons of the remaining devices in the next several pages.
The terminal may determine the icons of the devices arranged on the first page according to various ways. As a mode, the terminal may obtain the icons of the common devices based on big data statistics, and then arrange the icons belonging to the common devices in the analyzed devices on the first page (i.e., the home page), so that the user can quickly find the icons of the devices required to be operated by the user. In addition, as another mode, the terminal may select icons of devices arranged on the top page according to some set events. For example, the terminal may detect the device currently in the working state through the connected gateway, and in order to facilitate the user to control the device currently in working in time, the terminal may select an icon of the device currently in the working state from the analyzed devices to be displayed on a home page, so that the user may control the device currently in the working state in time.
It should be noted that, besides the pagination display, other grouping display forms may also use the aforementioned manner to determine the icon content displayed by each grouping.
Furthermore, for a group of written text messages, in the case that the specific display position of the device icon has been designated, for the display interface of the terminal, the content of the text messages and the function of automatic repositioning of the display interface of the terminal can be configured when the text messages are written. After the screen of the terminal is rotated, the device icons corresponding to the written text messages of the devices can be rearranged to the display interface after the terminal display screen is rotated according to the display positions corresponding to the written text messages.
For example, a sensor such as a gyroscope for acquiring the posture of the terminal may be configured in the terminal, and after the sensor detects that the screen of the terminal rotates, the current interface may be controlled to rotate along the rotation direction of the terminal, so as to ensure that the relative position of the icon displayed on the interface is always kept inconvenient, so as to facilitate the user to operate.
Referring to fig. 10, a schematic diagram of another specific example of the device status display method according to the embodiment of the present application is shown, and a specific derivation process may refer to fig. 9, which is not described herein again. Unlike fig. 9, fig. 10 changes the display position of the status icon of the device, and the specific display mode can be modified in real time according to the needs of the user. In addition, if the user wants to modify the temperature of the bedroom air conditioner companion shown in fig. 10 or modify the state of the door magnet to be off, the user may modify the corresponding information by clicking or dragging the icon corresponding to the device.
In the method for displaying the device status provided by this embodiment, the text information generated based on the preset format and corresponding to the device is acquired through the terminal; analyzing the text information to obtain attribute parameters and display information corresponding to the equipment; then, acquiring a data value corresponding to the attribute parameter by adopting a dynamic script; and then displaying the data values corresponding to the attribute parameters in a vector diagram mode based on the display information. According to the method, the state of the intelligent household equipment is displayed in a vector diagram mode, the state information of the intelligent household equipment can be dynamically drawn in the vector diagram in a configurable format, so that the state of the intelligent household equipment can be displayed to a user more visually, and the user experience of the intelligent household equipment is improved.
Referring to fig. 11, which is a block diagram of an apparatus state display device according to an embodiment of the present disclosure, in this embodiment, an apparatus state display device 300 is provided, which operates on a terminal, where the apparatus 300 includes: a text information acquisition unit 310, a text information parsing unit 320, a data acquisition unit 330, and a data display unit 340.
A text information obtaining unit 310, configured to obtain, by the terminal, text information generated based on a preset format and corresponding to the device.
A text information analyzing unit 320, configured to analyze the text information by the terminal to obtain an attribute parameter and display information corresponding to the device.
A data obtaining unit 330, configured to obtain, by the terminal, a data value corresponding to the attribute parameter by using a dynamic script.
And a data display unit 340, configured to display, by the terminal, the data value corresponding to the attribute parameter in a vector diagram manner based on the display information.
The apparatus 300 further includes a device control unit configured to respond to the touch operation, acquire an interoperation instruction corresponding to the touch operation, which is applied to the vector diagram, and control the device according to the interoperation instruction.
In the device status display apparatus provided in this embodiment, the text information generated based on the preset format and corresponding to the device is acquired through the terminal; analyzing the text information to obtain attribute parameters and display information corresponding to the equipment; then, acquiring a data value corresponding to the attribute parameter by adopting a dynamic script; and then displaying the data values corresponding to the attribute parameters in a vector diagram mode based on the display information. According to the method, the state of the intelligent household equipment is displayed in a vector diagram mode, the state information of the intelligent household equipment can be dynamically drawn in the vector diagram in a configurable format, so that the state of the intelligent household equipment can be displayed to a user more visually, and the user experience of the intelligent household equipment is improved.
It should be noted that, as will be clear to those skilled in the art, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling. In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
A terminal provided by the present application will be described with reference to fig. 12.
Referring to fig. 12, based on the device status display method and apparatus, another terminal 15 capable of performing the device status display method is provided in the embodiment of the present application. The terminal 15 includes a memory 151 and one or more processors 153 (only one shown) coupled to each other, the memory 151 and the processors 153 being connected by a communication line. The memory 151 stores therein a program that can execute the contents of the foregoing embodiments, and the processor 153 can execute the program stored in the memory 151.
The processor 153 may include one or more processing cores, among others. The processor 153 connects various parts within the overall terminal 15 using various interfaces and lines, and performs various functions of the terminal 15 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 151, and calling data stored in the memory 151. Alternatively, the processor 153 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 153 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 153, but may be implemented by a communication chip.
The Memory 151 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 151 may be used to store instructions, programs, code sets or instruction sets. The memory 151 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing the aforementioned various embodiments, and the like. The stored data area may also store data created by the terminal 15 during use (such as a phonebook, audiovisual data, chat log data) and the like.
Referring to fig. 13, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable storage medium 400 has stored therein program code that can be called by a processor to execute the methods described in the above-described method embodiments.
The computer-readable storage medium 400 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Optionally, the computer-readable storage medium 400 includes a non-transitory computer-readable storage medium. The computer readable storage medium 400 has storage space for program code 410 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. Program code 410 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A device state display method is applied to a terminal, and comprises the following steps:
the terminal acquires text information which corresponds to equipment and is generated based on a preset format, wherein the content defined by the preset format comprises the name of the displayed equipment, the display position corresponding to the equipment and a display representative icon corresponding to the equipment;
the terminal analyzes the text information to obtain attribute parameters and display information corresponding to the equipment, wherein the display information comprises a display mode and display content of the equipment, the display mode comprises a representative display icon of the equipment, and the display content comprises a display position and parameters of the equipment;
the terminal acquires a data value corresponding to the attribute parameter by adopting a dynamic script;
and the terminal displays the data values corresponding to the attribute parameters in a vector diagram mode based on the display information so as to dynamically draw the state information of the equipment.
2. The method of claim 1, further comprising:
the terminal responds to touch operation and acquires an interactive operation instruction which acts on the vector diagram and corresponds to the touch operation;
and controlling the equipment according to the interactive operation instruction.
3. The method according to claim 1, wherein the display information includes display content and a display mode of the device, the attribute parameters include a name attribute and a function attribute of the device, and the step of the terminal displaying data values corresponding to the attribute parameters in a vector diagram manner based on the display information includes:
the terminal identifies a value of a functional attribute of the device based on display content of the device;
and dynamically drawing a vector diagram corresponding to the value of the functional attribute of the equipment based on the display mode of the equipment.
4. The method according to claim 3, wherein the device comprises a plurality of devices, and the step of the terminal identifying the value of the functional attribute of the device based on the display content of the device comprises:
the terminal identifying a value of a function attribute of each of the plurality of devices based on display contents of the plurality of devices;
the step of dynamically drawing the vector diagram corresponding to the value of the functional attribute of the device based on the display mode of the device includes:
and dynamically drawing a vector diagram corresponding to the value of the functional attribute of each of the plurality of devices based on the display mode of each of the plurality of devices.
5. The method according to claim 1, wherein the attribute parameter includes a device type identifier, and the step of the terminal acquiring the text information corresponding to the device and generated based on the preset format includes:
the terminal sends a text information acquisition request carrying the equipment type identification of the equipment to a first server;
and receiving text information which is returned by the first server and corresponds to the acquisition request and is generated by the equipment based on a preset format.
6. The method according to claim 1, wherein the step of the terminal acquiring the text information corresponding to the device and generated based on the preset format comprises:
the terminal acquires text information which is written based on a preset format and corresponds to equipment input by a user.
7. The method according to claim 1, wherein the attribute parameter includes a device type identifier, and the step of the terminal acquiring the data value corresponding to the attribute parameter by using a dynamic scenario includes:
the terminal sends a data acquisition request to a second server by adopting a JavaScript script, wherein the data acquisition request carries the equipment type identifier;
and receiving a data value corresponding to the attribute parameter corresponding to the equipment type identifier returned by the second server.
8. An apparatus for displaying device status, operating on a terminal, the apparatus comprising:
the terminal comprises a text information acquisition unit, a display unit and a display representation icon generation unit, wherein the text information acquisition unit is used for acquiring text information which is generated on the basis of a preset format and corresponds to equipment, and the content defined by the preset format comprises the name of the displayed equipment, the display position corresponding to the equipment and the display representation icon corresponding to the equipment;
the text information analyzing unit is used for analyzing the text information by the terminal to obtain attribute parameters and display information corresponding to the equipment, wherein the display information comprises a display mode and display content of the equipment, the display mode comprises a representative display icon of the equipment, and the display content comprises a display position and parameters of the equipment;
the data acquisition unit is used for acquiring the data value corresponding to the attribute parameter by the terminal by adopting a dynamic script;
and the data display unit is used for displaying the data values corresponding to the attribute parameters in a vector diagram mode by the terminal based on the display information so as to dynamically draw the state information of the equipment.
9. A terminal, comprising a memory;
one or more processors;
one or more programs stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-7.
10. A computer-readable storage medium, having program code stored therein, wherein the program code when executed by a processor performs the method of any of claims 1-7.
CN201811500376.3A 2018-12-07 2018-12-07 Equipment state display method and device, terminal and storage medium Active CN109765793B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811500376.3A CN109765793B (en) 2018-12-07 2018-12-07 Equipment state display method and device, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811500376.3A CN109765793B (en) 2018-12-07 2018-12-07 Equipment state display method and device, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN109765793A CN109765793A (en) 2019-05-17
CN109765793B true CN109765793B (en) 2022-04-12

Family

ID=66451267

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811500376.3A Active CN109765793B (en) 2018-12-07 2018-12-07 Equipment state display method and device, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN109765793B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110471298B (en) * 2019-08-12 2020-10-23 珠海格力电器股份有限公司 Intelligent household appliance control method, equipment and computer readable medium
CN111913394A (en) * 2020-06-08 2020-11-10 深圳市欧瑞博科技股份有限公司 Intelligent household control panel and display method thereof, electronic equipment and storage medium
CN111831497B (en) * 2020-07-13 2024-04-12 北京淳中科技股份有限公司 Equipment simulation method and device, storage medium and simulation terminal
CN112130459A (en) * 2020-09-16 2020-12-25 青岛海尔科技有限公司 State information display method, device, storage medium and electronic device
CN112734880A (en) * 2021-01-18 2021-04-30 福州富昌维控电子科技有限公司 Vector diagram display method and terminal based on embedded human-computer interface
CN114114947A (en) * 2021-12-24 2022-03-01 珠海格力电器股份有限公司 Control method and device of intelligent household equipment
CN114860366A (en) * 2022-04-29 2022-08-05 北斗星通智联科技有限责任公司 Optimized display method, device, equipment and medium for multi-state icon

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6166728A (en) * 1992-12-02 2000-12-26 Scientific-Atlanta, Inc. Display system with programmable display parameters
CN101505386A (en) * 2009-02-27 2009-08-12 四川长虹电器股份有限公司 Implementing method for transferability of household electrical appliance user operation interface
CN102368214A (en) * 2011-10-17 2012-03-07 深圳和而泰智能控制股份有限公司 Automatic interface generation method and system
CN105094832A (en) * 2015-08-01 2015-11-25 李志丹 WYSIWYG method and system for dynamically generating user interface
CN106814629A (en) * 2015-11-27 2017-06-09 大唐移动通信设备有限公司 A kind of method and device of control smart home
CN106909389A (en) * 2017-02-28 2017-06-30 百度在线网络技术(北京)有限公司 Method and apparatus for showing smart machine information
CN106953785A (en) * 2017-04-07 2017-07-14 海信集团有限公司 Intelligent home device adding method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008098174A1 (en) * 2007-02-09 2008-08-14 Novarra, Inc. Method and apparatus for providing information content for display on a client device
CN105302445B (en) * 2015-11-12 2019-07-23 小米科技有限责任公司 Graphic user interface method for drafting and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6166728A (en) * 1992-12-02 2000-12-26 Scientific-Atlanta, Inc. Display system with programmable display parameters
CN101505386A (en) * 2009-02-27 2009-08-12 四川长虹电器股份有限公司 Implementing method for transferability of household electrical appliance user operation interface
CN102368214A (en) * 2011-10-17 2012-03-07 深圳和而泰智能控制股份有限公司 Automatic interface generation method and system
CN105094832A (en) * 2015-08-01 2015-11-25 李志丹 WYSIWYG method and system for dynamically generating user interface
CN106814629A (en) * 2015-11-27 2017-06-09 大唐移动通信设备有限公司 A kind of method and device of control smart home
CN106909389A (en) * 2017-02-28 2017-06-30 百度在线网络技术(北京)有限公司 Method and apparatus for showing smart machine information
CN106953785A (en) * 2017-04-07 2017-07-14 海信集团有限公司 Intelligent home device adding method and device

Also Published As

Publication number Publication date
CN109765793A (en) 2019-05-17

Similar Documents

Publication Publication Date Title
CN109765793B (en) Equipment state display method and device, terminal and storage medium
US10868866B2 (en) Cloud storage methods and systems
CN113412457B (en) Scene pushing method, device and system, electronic equipment and storage medium
CN105786455B (en) Data processing method and device and terminal
CN103207853A (en) Providing Direct Manipulation Of An Analytics Data Visualization Within An Analytics Report
CN110399583B (en) Page display method and device, electronic equipment and storage medium
CN111428166A (en) Page configuration method, page element replacement method, device, equipment and medium
US11954536B2 (en) Data engine
CN111565143B (en) Instant messaging method, equipment and computer readable storage medium
CN112233211B (en) Animation production method, device, storage medium and computer equipment
KR20150072819A (en) Method and apparatus for displaying digital contents in electronic device
CN111324275B (en) Broadcasting method and device for elements in display picture
EP4287015A2 (en) Data processing method, and electronic terminal
CN105100203B (en) Show the method and terminal of monitoring data
CN108429668B (en) Message processing method, device, terminal and system
CN110413161B (en) Component configuration method and device and electronic equipment
CN107408004A (en) A kind of graphic user interface on method, information processor, portable electric appts and the portable electric appts that information is presented in locking screen interface
CN106293420A (en) Application Hints method for information display and device
CN109240098B (en) Equipment configuration method and device, terminal equipment and storage medium
CN107704536B (en) Software content display method and system
CN114327709A (en) Control page generation method and device, intelligent device and storage medium
US10990251B1 (en) Smart augmented reality selector
CN107765956B (en) User interface editing method, device, terminal and computer readable storage medium
CN106610855B (en) Method and device for importing 3D model into 3dsMAX
CN114020589A (en) Embedded point processing method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant