[go: up one dir, main page]

CN114327709A - Control page generation method and device, intelligent device and storage medium - Google Patents

Control page generation method and device, intelligent device and storage medium Download PDF

Info

Publication number
CN114327709A
CN114327709A CN202111586092.2A CN202111586092A CN114327709A CN 114327709 A CN114327709 A CN 114327709A CN 202111586092 A CN202111586092 A CN 202111586092A CN 114327709 A CN114327709 A CN 114327709A
Authority
CN
China
Prior art keywords
target
instruction
control
control page
page
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.)
Pending
Application number
CN202111586092.2A
Other languages
Chinese (zh)
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202111586092.2A priority Critical patent/CN114327709A/en
Publication of CN114327709A publication Critical patent/CN114327709A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The embodiment of the application discloses a control page generation method and device, intelligent equipment and a storage medium, and can acquire configuration files of different service logic settings aiming at different equipment; acquiring a target generation instruction and an equipment identifier corresponding to the target generation instruction; screening a target configuration file from the configuration files according to the target generation instruction and the equipment identification; analyzing the target configuration file to obtain an association generation instruction associated with the target generation instruction; and executing the association generation instruction to perform page rendering so as to generate a control page. The problem of the smart machine control page low in generation efficiency is solved, and the generation efficiency of the control page is improved.

Description

Control page generation method and device, intelligent device and storage medium
Technical Field
The application relates to the technical field of internet, in particular to a control page generation method and device, intelligent equipment and a storage medium.
Background
Along with the improvement of the living standard of people's materials, more and more families choose to purchase networking equipment. The Internet of things scheme of each company is also successively released, and the current state of the intelligent household equipment is synchronously displayed and the function of remotely controlling the intelligent household equipment is realized by displaying the control page of the intelligent household on the equipment such as a mobile phone, a watch and a television.
However, the generation method of each smart home control page is a low-code platform, for example, rendering of the page is realized by analyzing a data model, the data model is generally obtained based on a summary of service logic of each device, and in order to realize different service logic of each device, the control page corresponding to each device needs to be developed from the beginning to generate different data models. Thus resulting in inefficient control page generation.
Disclosure of Invention
The embodiment of the application provides a control page generation method and device, an intelligent device and a storage medium, and the generation efficiency of the control page can be improved.
In order to solve the above technical problem, an embodiment of the present application provides the following technical solutions:
the embodiment of the application provides a control page generation method, which comprises the following steps:
acquiring configuration files of different service logic settings aiming at different devices;
acquiring a target generation instruction and an equipment identifier corresponding to the target generation instruction;
screening a target configuration file from the configuration files according to the target generation instruction and the equipment identification;
analyzing the target configuration file to obtain an association generation instruction associated with the target generation instruction;
and executing the association generation instruction to perform page rendering so as to generate a control page.
In one embodiment, the executing the association generation instruction to perform page rendering to generate a control page includes:
determining a target built-in logic function from a built-in tool library according to the association generation instruction;
calling the target built-in logic function and the target service logic function in the target configuration file;
and executing the target built-in logic function and the target business logic function to perform page rendering so as to generate a control page.
In an embodiment, the executing the target built-in logic function and the target business logic function to perform page rendering to generate a control page includes:
acquiring the target built-in logic function and the component identification and the component attribute corresponding to the target service logic function;
calling a target component from a component library according to the component identification and the component attribute;
and rendering the page according to the target assembly to generate a control page.
In an embodiment, after the executing the association generation instruction to perform rendering to generate a control page, the method further includes:
acquiring an initialization function identifier and an initialization function parameter in a target configuration file;
determining a target initialization function according to the initialization function identification and the parameters of the initialization function;
calling the target initialization function from a built-in tool library;
and executing the target initialization function to initialize the control page.
In an embodiment, after the executing the association generation instruction to perform rendering to generate a control page, the method further includes:
detecting state information of the controlled equipment based on the control page;
acquiring condition judgment corresponding to the state information in the configuration file;
and updating the rendering of the control page when the state information meets the preset condition in the condition judgment.
In an embodiment, after the executing the association generation instruction to perform rendering to generate a control page, the method further includes:
when an operation instruction for the control page is received, calling an event processing function corresponding to the operation instruction from the target configuration file according to the operation instruction;
and updating the rendering of the control page according to the event processing function.
In an embodiment, after the executing the association generation instruction to perform rendering to generate a control page, the method further includes:
when a control instruction generated by a user based on the control page is received, calling a control instruction packet associated with the control instruction from the target configuration file according to the control instruction, wherein the control instruction packet comprises at least one associated control instruction associated with the control instruction;
and sending the associated control instruction in the control instruction packet to the controlled equipment so as to control the controlled equipment.
According to an aspect of the present application, there is also provided a control page generating apparatus, including:
the first acquisition module is used for acquiring configuration files of different service logic settings aiming at different equipment;
the second acquisition module is used for acquiring a target generation instruction and an equipment identifier corresponding to the target generation instruction;
the screening module is used for screening a target configuration file from the configuration files according to the target generation instruction and the equipment identification;
the analysis module is used for analyzing the target configuration file to obtain an association generation instruction associated with the target generation instruction;
and the execution module is used for executing the association generation instruction to perform page rendering so as to generate a control page.
According to an aspect of the present application, there is also provided an intelligent device, including a processor and a memory, where the memory stores a computer program, and the processor executes any one of the control page generation methods provided in the embodiments of the present application when calling the computer program in the memory.
According to an aspect of the present application, there is also provided a storage medium for storing a computer program, which is loaded by a processor to execute any one of the control page generation methods provided by the embodiments of the present application.
According to the control page generation method and device, the intelligent device and the storage medium, the intelligent device obtains configuration files of different service logic settings aiming at different devices; acquiring a target generation instruction and an equipment identifier corresponding to the target generation instruction; screening a target configuration file from the configuration files according to the target generation instruction and the equipment identification; analyzing the target configuration file to obtain an association generation instruction associated with the target generation instruction; and executing the association generation instruction to perform page rendering so as to generate a control page. Therefore, the service logic corresponding to the functions required by the controlled device is directly set as the configuration file, and when a developer develops the control page, the developer directly obtains the target configuration file corresponding to the controlled device and analyzes the target configuration file to render the page, so that the generation efficiency of the control page is improved.
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 schematic flow chart of a control page generation method according to an embodiment of the present application;
fig. 2 is another schematic flow chart of a control page generation method provided in the embodiment of the present application;
fig. 3 is another schematic flow chart of a control page generation method provided in the embodiment of the present application;
fig. 4 is another schematic flow chart of a control page generation method provided in the embodiment of the present application;
fig. 5 is another schematic flow chart of a control page generation method provided in the embodiment of the present application;
fig. 6 is another schematic flow chart of a control page generation method provided in the embodiment of the present application;
fig. 7 is another schematic flowchart of a control page generation method according to an embodiment of the present application;
FIG. 8 is a schematic diagram of a generation framework provided by embodiments of the present application;
fig. 9 is a schematic diagram of a control page generation apparatus provided in an embodiment of the present application;
fig. 10 is a schematic structural diagram of an intelligent device provided in an 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.
The embodiment of the application provides a control page generation method and device, intelligent equipment and a storage medium (namely a computer-readable storage medium). The control page generation method can be applied to a control page generation device, the control page generation device can be specifically integrated in an intelligent device or a controlled device, the intelligent device can be a mobile phone, a wearable device, a computer, an intelligent television and other devices, and the controlled device can be an intelligent household appliance such as an intelligent refrigerator, an intelligent air conditioner and an intelligent sound box. The intelligent device can be in communication connection with the controlled device, and the intelligent device controls the controlled device through a control page aiming at the controlled device. The intelligent device may be in communication connection with a server, where the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a Network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), and a big data and artificial intelligence platform, but is not limited thereto. The server can be in communication connection with the controlled device and used for acquiring the device state information of the controlled device. The application is not limited thereto.
The following are detailed below. It should be noted that the following description of the embodiments is not intended to limit the preferred order of the embodiments.
In this embodiment, a description will be given from the perspective of an intelligent device, please refer to fig. 1, where fig. 1 is a schematic flow diagram of a control page generation method according to an embodiment of the present application. The control page generation method may include:
and S10, acquiring configuration files of different service logic settings for different devices.
The execution subject of the control page generation method may be an intelligent device.
It can be understood that in the framework process of the internet of things device, the current state of the controlled device and the remote control function are displayed synchronously by developing the control page of the smart home on the intelligent device and other devices. Because different controlled devices in the internet of things device need different service logics, when a control page is developed for each controlled device, the control page needs to be developed again, and thus the generation efficiency of the control page is low.
In order to improve the generation efficiency of the control page, in this embodiment, at least one of an object model, a component, a service logic function, and device states under different conditions, which correspond to each control function of each controlled device, is set as a configuration file, where the component includes a basic component such as a UI interface component, e.g., a button, a slider, and a service component, and the service logic function includes an interface request, data processing, function call, condition judgment, and the like. Different devices have different corresponding service logics, so different configuration files can be set for different service logics of different devices. When the control page is developed, configuration files of different business logic settings for different devices are obtained, so that a controlled device target configuration file is selected from a plurality of configuration files.
Optionally, referring to fig. 8, fig. 8 is a schematic diagram of a generation frame of a control page in the present application, and the generation frame of the control page in this embodiment may be divided into three layers: the system comprises a view layer, a configuration layer and a logic layer. The view layer can be used for displaying a control page, and a user can directly interact based on the control page to control the controlled device.
The configuration layer can be used for describing documents of page elements and page processing tools Pages, and the format of the configuration layer is an object, is similar to a DOM tree model and comprises the following attributes: interface component ID, interface component name, interface component related attribute configuration, interface component cascading style sheet language, logic function calling condition judgment, interface component binding object model identification, sub-component array and the like, wherein the interface component name is used for taking out a corresponding component from an interface component library for rendering when a control page is rendered, the interface component related attribute configuration comprises whether a button is forbidden or not, the size of a sliding bar and the like, logic functions comprise built-in logic functions in a built-in tool library and business logic functions in a target configuration file, the logic function calling condition judgment such as handlers describes which functions need to be taken out from the tool library and the target configuration file for execution and which parameters need to be transmitted when an event of the interface component is triggered, and the condition describes what operation needs to be executed when the condition is met, and the object model identifier bound by the interface component is used for combining the object model identifier and the corresponding value into an object model form and sending the object model identifier out when a control instruction is sent, and transmitting the corresponding value of the object model to the interface component for corresponding change when the equipment state update is received, wherein the data structure of the array element of the sub-component array of the interface component is the same as that of the parent component. The configuration layer is also used for describing an instruction interconnection rule, the format of the instruction interconnection rule is an array, an array element is an object, and the attribute and the action of the interconnection rule are shown in the following steps that when the object model identification and the value to be sent are found to be matched with the identification and the value of the target configuration file, namely the identification and the value of the target generation instruction are matched with the association generation instruction packet in the target configuration file, the association generation instruction in the object model instruction packet is sent together.
The core of the logic layer is a processing center of the configuration file, and the processing center is mainly used for storing, analyzing and updating the configuration file. When the configuration file is analyzed, a corresponding logic function is called from the tool library according to the configuration file. Meanwhile, some plug-ins are carried for reporting, error capturing, multi-language translation and the like at a later date.
And S20, acquiring a target generation instruction and a device identification corresponding to the target generation instruction.
Optionally, the target generation instruction is used to generate a control page of the target controlled device at the intelligent terminal, the target generation instruction may be an instruction based on a device identifier issued by a developer according to the device identifier of the controlled device, and the target generation instruction may include the device identifier of the controlled device.
S30, screening a target configuration file from the configuration files according to the target generation instruction and the equipment identification;
and S40, analyzing the target configuration file to obtain a correlation generation instruction correlated with the target generation instruction.
It should be noted that the target configuration file may include at least one association generation instruction packet associated with the target generation instruction, and the association generation instruction packet may include at least one association generation instruction. The association generation instruction is used for executing a target business logic function corresponding to the target generation instruction so as to generate a related function of a control page with target business logic.
And S50, executing the association generation instruction to render the page so as to generate a control page.
In the technical scheme provided by this embodiment, the intelligent device obtains configuration files for different service logic settings of different devices; acquiring a target generation instruction and an equipment identifier corresponding to the target generation instruction; screening a target configuration file from the configuration files according to the target generation instruction and the equipment identification; analyzing the target configuration file to obtain an association generation instruction associated with the target generation instruction; and executing the association generation instruction to perform page rendering so as to generate a control page. Therefore, the service logic corresponding to the functions required by the controlled device is directly set as the configuration file, and when a developer develops the control page, the developer directly obtains the target configuration file corresponding to the controlled device and analyzes the target configuration file to render the page, so that the generation efficiency of the control page is improved.
The method described in the above embodiments is further illustrated in detail by way of example.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating a log obtaining method according to an embodiment of the present application. Based on the above embodiment, step S50 may include:
and S51, determining the target built-in logic function from the built-in tool library according to the association generation instruction.
It should be noted that, in this embodiment, some commonly used service logics, for example, logic functions corresponding to querying a login state, sending a control instruction, and the like, are used as built-in logic functions, are preset, packaged and precipitated into a tool library, and are built in a generation frame of a control page as a built-in tool library, so that when a developer generates the control page, the developer analyzes a configuration file of a controlled device to obtain a correlation generation instruction, and determines and calls a target built-in logic function from the built-in tool library according to the correlation generation instruction.
S52, calling the target built-in logic function and the target business logic function in the target configuration file.
And the intelligent equipment calls a target built-in logic function and a target service logic function in the target configuration file from the built-in tool library according to the associated instruction so as to realize multiple functions of the control page.
And S53, executing the target built-in logic function and the target business logic function to perform page rendering so as to generate a control page.
In the technical scheme provided by the embodiment, the intelligent device determines a target built-in logic function from a built-in tool library according to the association generation instruction; calling a target built-in logic function and a target service logic function in a target configuration file; and executing the target built-in logic function and the target business logic function to perform page rendering so as to generate a control page for the controlled device. Therefore, logic functions corresponding to some common service logics are packaged in a tool library as built-in logic functions, the tool library is built in a generating frame of a control page to serve as a built-in tool library, and unique service logics of controlled equipment are configured in a target configuration file corresponding to the controlled equipment. When the control page is generated, the business logic corresponding to all functions of the controlled equipment does not need to be researched and developed from the beginning, but the target built-in logic function and the target business logic function in the configuration file can be directly called according to the correlation generation instruction in the configuration file to perform page rendering, so that the generation efficiency of the control page is improved.
Referring to fig. 3, fig. 3 is a schematic flowchart illustrating a log obtaining method according to an embodiment of the present application. Based on the above embodiment, step S53 may further include:
and S531, acquiring a target built-in logic function and a component identifier and a component attribute corresponding to the target service logic function.
Alternatively, the component identifier may be at least one of ID information and a component name of the component, the component attribute may include a component type, a component style, an attribute configuration of the component, and the like, for example, the component is a button, and the component attribute may include a color, a size, whether hidden, a slide bar length, a button trigger condition, and the like of the button. After the intelligent device calls the target built-in logic function and the target service logic function according to the association generation instruction, the intelligent device obtains the component identification and the component attribute corresponding to the target built-in logic function and the target service logic function according to the target built-in logic function and the target service logic function.
And S532, calling the target component from the component library according to the component identification and the component attribute.
Optionally, the component library may be packaged in the tool library in advance for the developer and built in the generation framework, or may be set in the target configuration file by the developer. The intelligent device calls the target built-in logic function and the target service logic function through the association generating instruction obtained by analyzing the target configuration, and calls the target component according to the target built-in logic function and the target service logic function.
And S533, performing page rendering according to the target component to generate a control page.
Optionally, the number of the target components may be multiple, the multiple target components are arranged in the page according to the component arrangement logic corresponding to the association generation instruction for rendering, and the event of the target component is bound to the configured target built-in logic function and the target service logic function, so that when the user interacts with the target component to generate the corresponding event, the intelligent device or the controlled device executes the logic function corresponding to the target component.
In the technical scheme provided by this embodiment, the intelligent device obtains a target built-in logic function and a component identifier and a component attribute corresponding to the target service logic function; calling a target component from a component library according to the component identification and the component attribute; and performing page rendering according to the target component to generate a control page. Therefore, the intelligent device calls the target components from the component library according to the target generation instruction and arranges the target components in the page to realize the rendering of the control page, and the generation efficiency of the control page is improved.
Referring to fig. 4, fig. 4 is a schematic flowchart illustrating a log obtaining method according to an embodiment of the present application. Based on the above embodiment, after step S50, the method may further include:
and S60, acquiring the initialization function identification and the parameters of the initialization function in the target configuration file.
Optionally, since different controlled devices may have different service requirements during initialization, different initialization functions need to be set in configuration files set by different controlled devices. After the intelligent device generates the control page, the initialization function and the parameter of the initialization function for the controlled device in the target configuration file are obtained, so that the control page is initialized.
S70, determining a target initialization function according to the initialization function identification and the parameters of the initialization function;
s80, calling a target initialization function from the built-in tool library;
and S90, executing the target initialization function to perform initialization processing on the control page.
In the technical scheme provided by this embodiment, after the intelligent device generates the control page, the intelligent device calls and executes the target initialization function to initialize the control page according to the initialization function identifier of the controlled device in the target configuration file and the parameter of the initialization function, so that the initialization efficiency of the control page is improved.
Referring to fig. 5, fig. 5 is a schematic flowchart illustrating a log obtaining method according to an embodiment of the present application. Based on the above embodiment, after step S50, the method may further include:
and S101, detecting the state information of the controlled equipment based on the control page.
Optionally, after the intelligent device generates the control page, the device state of the controlled device is acquired from the cloud based on the control page, or the state information of the controlled device is directly detected from the controlled device.
And S102, acquiring condition judgment corresponding to the state information in the configuration file.
And traversing the condition judgment of the target service logic in the target configuration file, and determining the condition judgment corresponding to the state information.
And S103, updating the rendering of the control page when the state information meets the preset condition in the condition judgment.
Optionally, if the state information of the controlled device meets a preset condition in the condition judgment, the rendering of the control page is updated, for example, a certain value of the target configuration file is changed or a service logic function of the target configuration file is executed, and finally, the view rendering is updated. The target configuration file can be in a JSON format, and since JSON only supports basic types and arrays or objects, such as numeric types, boolean types, and string types, in order to support complex string splicing, when a certain value of the target configuration file is rewritten, it can support the insertion of an expression calling function in the form of a template string.
In the technical scheme provided by the embodiment, the intelligent device detects the state information of the controlled device based on the control page; acquiring condition judgment corresponding to the state information in the configuration file; and when the state information meets the preset condition in the condition judgment, updating the rendering of the control page. Therefore, the intelligent device can update the control page in real time according to the condition judgment in the target configuration file and the state information of the controlled device, and the updating efficiency of the control page is improved.
Referring to fig. 6, fig. 6 is a schematic flowchart illustrating a log obtaining method according to an embodiment of the present application. Based on the above embodiment, after step S50, the method may further include:
and S104, when receiving an operation instruction aiming at the control page, calling an event processing function corresponding to the operation instruction from the target configuration file according to the operation instruction.
Optionally, the user may trigger a related button or component on the control page to send an operation instruction, call an event processing function corresponding to the operation instruction from the target configuration file according to the operation instruction, so as to perform related operation on the control page, for example, the user clicks a certain button on the control page to trigger a hidden instruction, and calls a corresponding hidden event processing function from the target configuration file according to the hidden instruction, so as to hide certain functions.
And S105, updating the rendering of the control page according to the event processing function.
Optionally, the event processing function is executed, and the processing result of the event processing function is updated and rendered on the control page, for example, the hidden event processing function corresponding to the hidden instruction is executed, and after some functions are hidden, the rendered control page is updated to display the control page after some functions are hidden.
In the technical scheme provided by this embodiment, when receiving an operation instruction for a control page, an intelligent device calls an event processing function corresponding to the operation instruction from a target configuration file according to the operation instruction; and updating the rendering of the control page according to the event processing function. Therefore, the control page is operated according to the event processing function in the target configuration file, and the control page can be operated more simply and conveniently.
Referring to fig. 7, fig. 7 is a schematic flowchart illustrating a log obtaining method according to an embodiment of the present application. Based on the above embodiment, after step S50, the method may further include:
s106, when a control instruction generated by a user based on the control page is received, a control instruction packet related to the control instruction is called from the target configuration file according to the control instruction, wherein the control instruction packet comprises at least one related control instruction related to the control instruction.
It should be noted that the control command and the associated control command are associated with each other in advance through a command interconnection rule. When the intelligent device receives a control instruction which is generated by a user based on the control page and aims at the controlled device, the intelligent device analyzes the target configuration file according to the control instruction to obtain a control instruction packet associated with the control instruction, and calls the associated control instruction associated with the control instruction in the control instruction packet.
And S107, sending the associated control instruction in the control instruction packet to the controlled equipment so as to control the controlled equipment.
After the intelligent device calls the obtained association control instruction, the association control instruction is sent to the controlled device or a cloud server connected with the controlled device, and the cloud server sends the association control instruction to the controlled device. When the controlled device receives the associated control instruction sent by the intelligent device based on the control page, the controlled device returns a response result to the intelligent device in response to the associated control instruction,
in the technical scheme provided by this embodiment, when receiving a control instruction generated by a user based on a control page, an intelligent device calls a control instruction packet associated with the control instruction from a target configuration file according to the control instruction, where the control instruction packet includes at least one associated control instruction associated with the control instruction; and sending the associated control instruction in the control instruction packet to the controlled equipment so as to control the controlled equipment. Therefore, when a user wants to realize the control of a certain function of the controlled equipment through the instruction interconnection rule, the user can acquire the associated control instruction packet from the target configuration file through the instruction interconnection rule by only issuing a control instruction, and the control efficiency of the control page on the controlled equipment is improved.
In order to better implement the control page generation method provided by the embodiment of the present application, an embodiment of the present application further provides a device based on the control page generation method. The meaning of the noun is the same as that in the above control page generation method, and specific implementation details can refer to the description in the method embodiment.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a control page generation apparatus according to an embodiment of the present disclosure, where the control page generation apparatus 300 may include a first obtaining module 301, a second obtaining module 302, a filtering module 303, an analyzing module 304, an executing module 305, and the like.
The first obtaining module 301 is configured to obtain configuration files of different service logic settings for different devices;
a second obtaining module 302, configured to obtain a target generation instruction and an apparatus identifier corresponding to the target generation instruction;
the screening module 303 is configured to screen a target configuration file from the configuration files according to the target generation instruction and the device identifier;
the analysis module 304 is configured to analyze the target configuration file to obtain an association generation instruction associated with the target generation instruction;
and the execution module 305 is configured to execute the association generation instruction to perform page rendering to generate the control page.
Optionally, the control page generating device may further include the following modules not shown in the figure:
the first determination module is used for determining a target built-in logic function from a built-in tool library according to the association generation instruction;
the first calling module is used for calling the target built-in logic function and the target service logic function in the target configuration file;
and the first execution module is used for executing the target built-in logic function and the target service logic function to perform page rendering so as to generate a control page.
The third acquisition module is used for acquiring the target built-in logic function and the component identification and the component attribute corresponding to the target service logic function;
the second calling module is used for calling the target component from the component library according to the component identification and the component attribute;
and the rendering module is used for rendering the page according to the target assembly so as to generate a control page.
The fourth obtaining module is used for obtaining the initialization function identification and the initialization function parameter in the target configuration file;
the second determining module is used for determining a target initialization function according to the initialization function identifier and the parameters of the initialization function;
a third calling module calls a target initialization function from the built-in tool library;
and the second execution module is used for executing the target initialization function so as to initialize the control page.
The detection module is used for detecting the state information of the controlled equipment based on the control page;
the fifth acquisition module is used for acquiring condition judgment corresponding to the state information in the configuration file;
and the first updating module is used for updating the rendering of the control page when the state information meets the preset condition in the condition judgment.
The third calling module is used for calling an event processing function corresponding to the control instruction from the configuration file according to the control instruction when the control instruction triggered by the user based on the control page is received;
and the second updating module is used for updating the rendering of the control page according to the event processing function.
An embodiment of the present application further provides a smart device, where the smart device may be a mobile phone, a wearable device, a computer, a smart television, and the like, as shown in fig. 10, which shows a schematic structural diagram of the smart device according to the embodiment of the present application, specifically:
the smart device may include components such as a processor 401 of one or more processing cores, memory 402 of one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will appreciate that the smart device architecture shown in FIG. 7 does not constitute a limitation of smart devices and may include more or fewer components than shown, or some components in combination, or a different arrangement of components. Wherein:
the processor 401 is a control center of the smart device, connects various parts of the entire smart device using various interfaces and lines, and performs various functions of the smart device and processes data by running or executing software programs and/or modules stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring of the smart device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by operating the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the smart device, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 access to the memory 402.
The smart device further includes a power supply 403 for supplying power to the various components, and preferably, the power supply 403 may be logically connected to the processor 401 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The power supply 403 may also include any component of one or more dc or ac power sources, recharging systems, power failure detection circuitry, power converters or inverters, power status indicators, and the like.
The smart device may also include an input unit 404, the input unit 404 being operable to receive input numeric or character information and to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
Although not shown, the smart device may further include a display unit and the like, which will not be described herein. Specifically, in this embodiment, the processor 401 in the smart device loads the executable file corresponding to the process of one or more application programs into the memory 402 according to the following instructions, and the processor 401 runs the application program stored in the memory 402, thereby implementing various functions as follows:
acquiring configuration files of different service logic settings aiming at different devices;
acquiring a target generation instruction and an equipment identifier corresponding to the target generation instruction;
screening a target configuration file from the configuration files according to the target generation instruction and the equipment identification;
analyzing the target configuration file to obtain an association generation instruction associated with the target generation instruction;
and executing the association generation instruction to perform page rendering so as to generate a control page.
In the above embodiments, the descriptions of the embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed description of the control page generation method, and are not described herein again.
According to an aspect of the application, a computer program product or computer program is provided, comprising computer instructions, the computer instructions being stored in a computer readable storage medium. The processor of the smart device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the smart device performs the method provided in the various alternative implementations of the above embodiments.
It will be understood by those skilled in the art that all or part of the steps in the methods of the above embodiments may be performed by computer instructions or by computer instructions controlling associated hardware, and the computer instructions may be stored in a storage medium and loaded and executed by a processor, and the storage medium is a computer-readable storage medium. To this end, the present application provides a storage medium, in which a computer program is stored, where the computer program may include computer instructions, and the computer program can be loaded by a processor to execute any one of the control page generation methods provided in the present application.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein.
Wherein the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
As the computer instructions stored in the storage medium can execute any control page generation method provided in the embodiments of the present application, beneficial effects that can be achieved by any control page generation method provided in the embodiments of the present application can be achieved, which are detailed in the foregoing embodiments and will not be described herein again.
The method, the apparatus, the intelligent device and the storage medium for generating the control page provided by the embodiment of the present application are introduced in detail, a specific example is applied in the present application to explain the principle and the implementation of the present application, and the description of the above embodiment is only used to help understanding the method and the core idea of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. A control page generation method is characterized by comprising the following steps:
acquiring configuration files of different service logic settings aiming at different devices;
acquiring a target generation instruction and an equipment identifier corresponding to the target generation instruction;
screening a target configuration file from the configuration files according to the target generation instruction and the equipment identification;
analyzing the target configuration file to obtain an association generation instruction associated with the target generation instruction;
and executing the association generation instruction to perform page rendering so as to generate a control page.
2. The method according to claim 1, wherein the executing the association generation instruction to perform page rendering to generate a control page includes:
determining a target built-in logic function from a built-in tool library according to the association generation instruction;
calling the target built-in logic function and the target service logic function in the target configuration file;
and executing the target built-in logic function and the target business logic function to perform page rendering so as to generate a control page.
3. The method according to claim 2, wherein the executing the target built-in logic function and the target business logic function to perform page rendering to generate the control page comprises:
acquiring the target built-in logic function and the component identification and the component attribute corresponding to the target service logic function;
calling a target component from a component library according to the component identification and the component attribute;
and rendering the page according to the target assembly to generate a control page.
4. The method according to claim 1, wherein after the executing the association generation instruction to render to generate a control page, the method further comprises:
acquiring an initialization function identifier and an initialization function parameter in a target configuration file;
determining a target initialization function according to the initialization function identification and the parameters of the initialization function;
calling the target initialization function from a built-in tool library;
and executing the target initialization function to initialize the control page.
5. The method according to claim 1, wherein after the executing the association generation instruction to render to generate a control page, the method further comprises:
detecting state information of the controlled equipment based on the control page;
acquiring condition judgment corresponding to the state information in the configuration file;
and updating the rendering of the control page when the state information meets the preset condition in the condition judgment.
6. The method according to claim 1, wherein after the executing the association generation instruction to render to generate a control page, the method further comprises:
when an operation instruction for the control page is received, calling an event processing function corresponding to the operation instruction from the target configuration file according to the operation instruction;
and updating the rendering of the control page according to the event processing function.
7. The method according to claim 1, wherein after the executing the association generation instruction to render to generate a control page, the method further comprises:
when a control instruction generated by a user based on the control page is received, calling a control instruction packet associated with the control instruction from the target configuration file according to the control instruction, wherein the control instruction packet comprises at least one associated control instruction associated with the control instruction;
and sending the associated control instruction in the control instruction packet to the controlled equipment so as to control the controlled equipment.
8. A control page generating apparatus, comprising:
the first acquisition module is used for acquiring configuration files of different service logic settings aiming at different equipment;
the second acquisition module is used for acquiring a target generation instruction and an equipment identifier corresponding to the target generation instruction;
the screening module is used for screening a target configuration file from the configuration files according to the target generation instruction and the equipment identification;
the analysis module is used for analyzing the target configuration file to obtain an association generation instruction associated with the target generation instruction;
and the execution module is used for executing the association generation instruction to perform page rendering so as to generate a control page.
9. An intelligent device, characterized by comprising a processor and a memory, wherein a computer program is stored in the memory, and the processor executes the control page generation method according to any one of claims 1 to 7 when calling the computer program in the memory.
10. A storage medium for storing a computer program which is loaded by a processor to execute the control page generation method of any one of claims 1 to 7.
CN202111586092.2A 2021-12-20 2021-12-20 Control page generation method and device, intelligent device and storage medium Pending CN114327709A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111586092.2A CN114327709A (en) 2021-12-20 2021-12-20 Control page generation method and device, intelligent device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111586092.2A CN114327709A (en) 2021-12-20 2021-12-20 Control page generation method and device, intelligent device and storage medium

Publications (1)

Publication Number Publication Date
CN114327709A true CN114327709A (en) 2022-04-12

Family

ID=81053761

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111586092.2A Pending CN114327709A (en) 2021-12-20 2021-12-20 Control page generation method and device, intelligent device and storage medium

Country Status (1)

Country Link
CN (1) CN114327709A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115302501A (en) * 2022-06-13 2022-11-08 深圳市华成工业控制股份有限公司 Control method, device, equipment and medium for auxiliary actuator of manipulator
CN115412586A (en) * 2022-08-30 2022-11-29 小米汽车科技有限公司 Task identification method and device, vehicle, readable storage medium and chip
CN116204201A (en) * 2023-04-26 2023-06-02 烽台科技(北京)有限公司 Service processing method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108196846A (en) * 2017-12-28 2018-06-22 美的智慧家居科技有限公司 Home appliance control interface configuration method, terminal and computer readable storage medium
US20180246639A1 (en) * 2017-02-24 2018-08-30 Samsung Electronics Co., Ltd. Method and apparatus for controlling a plurality of internet of things devices
WO2019037775A1 (en) * 2017-08-24 2019-02-28 新华三信息安全技术有限公司 Issuance of service configuration file
US20190182332A1 (en) * 2016-06-17 2019-06-13 Alibaba Group Holding Limited Action processing associated with a cloud device
CN110795179A (en) * 2019-07-04 2020-02-14 华为技术有限公司 Display method and electronic equipment
CN111221609A (en) * 2019-12-30 2020-06-02 创维集团有限公司 Data processing method, system and storage medium
WO2020192714A1 (en) * 2019-03-28 2020-10-01 华为技术有限公司 Device control page display method, related apparatus and system
CN112612214A (en) * 2020-12-23 2021-04-06 青岛海尔科技有限公司 Method and system for generating functional interface and electronic equipment
CN113433831A (en) * 2021-06-29 2021-09-24 青岛海尔科技有限公司 Control method and module of intelligent household equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190182332A1 (en) * 2016-06-17 2019-06-13 Alibaba Group Holding Limited Action processing associated with a cloud device
US20180246639A1 (en) * 2017-02-24 2018-08-30 Samsung Electronics Co., Ltd. Method and apparatus for controlling a plurality of internet of things devices
WO2019037775A1 (en) * 2017-08-24 2019-02-28 新华三信息安全技术有限公司 Issuance of service configuration file
CN108196846A (en) * 2017-12-28 2018-06-22 美的智慧家居科技有限公司 Home appliance control interface configuration method, terminal and computer readable storage medium
WO2020192714A1 (en) * 2019-03-28 2020-10-01 华为技术有限公司 Device control page display method, related apparatus and system
CN111752443A (en) * 2019-03-28 2020-10-09 华为技术有限公司 Method, related device and system for displaying device control page
US20220163932A1 (en) * 2019-03-28 2022-05-26 Huawei Technologies Co., Ltd. Device control page display method, related apparatus, and system
CN110795179A (en) * 2019-07-04 2020-02-14 华为技术有限公司 Display method and electronic equipment
CN111221609A (en) * 2019-12-30 2020-06-02 创维集团有限公司 Data processing method, system and storage medium
CN112612214A (en) * 2020-12-23 2021-04-06 青岛海尔科技有限公司 Method and system for generating functional interface and electronic equipment
CN113433831A (en) * 2021-06-29 2021-09-24 青岛海尔科技有限公司 Control method and module of intelligent household equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115302501A (en) * 2022-06-13 2022-11-08 深圳市华成工业控制股份有限公司 Control method, device, equipment and medium for auxiliary actuator of manipulator
CN115412586A (en) * 2022-08-30 2022-11-29 小米汽车科技有限公司 Task identification method and device, vehicle, readable storage medium and chip
CN116204201A (en) * 2023-04-26 2023-06-02 烽台科技(北京)有限公司 Service processing method and device
CN116204201B (en) * 2023-04-26 2023-07-25 烽台科技(北京)有限公司 Service processing method and device

Similar Documents

Publication Publication Date Title
CN114327709A (en) Control page generation method and device, intelligent device and storage medium
CN112558824B (en) Page display method and device and computer storage medium
CN114064024B (en) Method, apparatus, device, storage medium and program product for developing micro-application
CN111240777B (en) Dynamic wallpaper generation method and device, storage medium and electronic equipment
CN111240774B (en) Dynamic wallpaper generation method and device, storage medium and electronic equipment
US20170295217A1 (en) Method and system of application development for multiple device client platforms
CN113934832A (en) Interactive processing method, device, equipment, medium and program product based on session
CN114218052B (en) A method, device, equipment and storage medium for generating a business interaction diagram
CN113535541A (en) Test method, test device, storage medium and computer equipment
CN114371845A (en) Form generation method and device
CN111984248A (en) Page editing method and device, storage medium and electronic device
CN114968032A (en) Service processing method, device, equipment and computer readable storage medium
CN107241385B (en) Internet of things data acquisition system and method
CN113971191A (en) Data import method and device and computer readable storage medium
CN116360735A (en) Form generation method, device, equipment and medium
CN118259922B (en) Compiling method, compiling device, compiling product, compiling device, compiling equipment and compiling medium for application program
CN112486797A (en) Interface test method and device
CN112783660A (en) Resource processing method and device in virtual scene and electronic equipment
CN113485686B (en) Information system program generation method and device, electronic equipment and storage medium
CN112817782B (en) Data acquisition reporting method and device, electronic equipment and storage medium
CN111124386B (en) Animation event processing method, device, equipment and storage medium based on Unity
CN114022105A (en) Data processing method and device, electronic equipment and readable storage medium
CN113778541A (en) Applet generation method and device, electronic equipment and storage medium
CN113706209B (en) Operation data processing method and related device
CN113806596B (en) Operation data management method and related device

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