CN113590101B - Intelligent device function page configuration method, server and client - Google Patents

Intelligent device function page configuration method, server and client Download PDF

Info

Publication number
CN113590101B
CN113590101B CN202110962069.2A CN202110962069A CN113590101B CN 113590101 B CN113590101 B CN 113590101B CN 202110962069 A CN202110962069 A CN 202110962069A CN 113590101 B CN113590101 B CN 113590101B
Authority
CN
China
Prior art keywords
function
equipment
page
configuration
configuration template
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
CN202110962069.2A
Other languages
Chinese (zh)
Other versions
CN113590101A (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.)
Shenzhen Oribo Technology Co Ltd
Original Assignee
Shenzhen Oribo 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 Oribo Technology Co Ltd filed Critical Shenzhen Oribo Technology Co Ltd
Priority to CN202110962069.2A priority Critical patent/CN113590101B/en
Publication of CN113590101A publication Critical patent/CN113590101A/en
Application granted granted Critical
Publication of CN113590101B publication Critical patent/CN113590101B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/33Intelligent editors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The application discloses an intelligent device function page configuration method, a server and a client, wherein the method comprises the following steps: receiving an intelligent device configuration request sent by a client, wherein the configuration request carries device information of the intelligent device; acquiring a configuration template matched with the equipment information, and generating a function page initialized by the intelligent equipment according to the configuration template; and after receiving the confirmation information sent by the client, generating source codes corresponding to the target function pages, and sending the source codes to the client. The method and the device can improve the development efficiency of the software product, shorten the development period of the software product and accelerate the delivery of the software product.

Description

Intelligent device function page configuration method, server and client
Technical Field
The present disclosure relates to the field of intelligent devices, and in particular, to a method, an apparatus, a server, a client, and a storage medium for configuring a functional page of an intelligent device.
Background
The internet of things (The Internet of Things, ioT) collects various needed information such as sound, light, heat, electricity, mechanics, chemistry, biology, positions and the like of any object or process needing to be monitored, connected and interacted in real time through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors, laser scanners and the like, and collects various needed information such as sound, light, heat, electricity, mechanics, chemistry, biology, positions and the like, and is accessed through various possible networks, so that ubiquitous connection of objects and people is realized, and intelligent perception, identification and management of objects and processes are realized. The internet of things is an information carrier based on the internet, a traditional telecommunication network and the like, and enables all common physical objects which can be independently addressed to form an interconnection network.
Currently, ioT (Internet of Things ) products involve many types of smart devices, including home security, smart sockets, electric lights, air conditioners, smart washing machines, smart refrigerators, smart ovens, smart weighing scales, televisions, video discs, projectors, IPTV, floor sweepers, etc., each type of smart terminal also includes multiple product models of multiple manufacturers, and there may be certain differences in their functional sets and control manners. In the development process of the intelligent devices, related software development is required for the function control of the intelligent devices with different models, and the software development period generally needs to be subjected to a plurality of different processes such as code development, code test, code online and the like.
Disclosure of Invention
In view of this, the present application provides a method, a server, a client, and a storage medium for configuring a functional page of an intelligent device, so as to solve the problem of low software development efficiency of the intelligent device.
The technical scheme adopted for solving the technical problems is as follows:
according to a first aspect of the present application, a method for configuring a functional page of an intelligent device is provided, and the method is applied to a server, and includes:
receiving an intelligent device configuration request sent by a client, wherein the configuration request carries device information of intelligent devices;
acquiring a configuration template matched with the equipment information, and generating a function page initialized by the intelligent equipment according to the configuration template;
and after receiving the confirmation information sent by the client, generating a source code corresponding to the target function page, and sending the source code to the client.
Preferably, the configuration template comprises a function control set of the intelligent device, and generating the initialized function page of the intelligent device according to the configuration template specifically comprises:
acquiring the identification of each functional control of the intelligent equipment from the configuration template, and calling the corresponding functional control from a preset functional control library according to the identification of each functional control;
and generating a function page initialized by the intelligent equipment according to the function control and a preset function control arrangement rule.
Preferably, the initialized function page comprises a plurality of alternative function pages, and the target function page is an alternative function page selected by the client; or the initialized function page comprises an alternative function page with adjustable function controls; the target function page is a function page after the client adjusts the function controls in the alternative function page; or the initialized function page comprises an editable alternative function page and a function control related to the equipment information in a function control library; the target function page is a function page after the client terminal customizes the function controls in the alternative function pages.
Preferably, the method further comprises thereafter:
and after receiving a template release request sent by the client, updating a configuration template corresponding to the equipment information according to the source code of the target function page.
Preferably, the configuration template corresponding to the equipment information updated according to the source code of the target function page specifically comprises:
acquiring each function control in the source code;
and adding/modifying a configuration template corresponding to the equipment information according to each function control in the source code and the relative position relation.
Preferably, the method further comprises updating a function control library, and specifically comprises the following steps: and aiming at each newly added functional control, acquiring an action and a corresponding state description rule of the newly added functional control, mapping the action and the corresponding state description rule of the newly added functional control into the functional control to form a logic corresponding relation, and adding the logic corresponding relation into a functional control library.
According to a second aspect of the present application, a method for configuring a functional page of an intelligent device is provided, and the method is applied to a client, and includes:
the client sends an intelligent device configuration request, wherein the configuration request carries device information of the intelligent device;
adjusting/confirming on an initialization function interface generated by a server to form a target function page;
And after receiving the source code of the target function page responded by the server, generating and displaying the target function page.
Preferably, the method further comprises thereafter: and sending a template release request and source codes of function pages corresponding to the templates to the server.
According to a third aspect of the present application, there is provided an intelligent device function page configuration apparatus, applied to a server, the apparatus comprising:
the intelligent device configuration module comprises a receiving template, a configuration module and a receiving module, wherein the receiving template is used for receiving an intelligent device configuration request sent by a client and confirmation information sent by the client, and the configuration request carries device information of intelligent devices;
the first generation module is used for acquiring a configuration template matched with the equipment information and generating a functional page initialized by the intelligent equipment according to the configuration template;
the second generation module is used for generating source codes corresponding to the target function pages after receiving the confirmation information sent by the client;
and the sending module is used for sending the source code to the client.
According to a fourth aspect of the present application, there is provided a server, including a first memory, a first processor, and a computer program stored in the first memory and executable on the first processor, the computer program implementing the steps of the smart device function page configuration method applied to the server when executed by the first processor.
According to a fifth aspect of the present application, there is provided a client, comprising: the intelligent device function page configuration method applied to the client comprises a second memory, a second processor and a computer program stored in the second memory and capable of running on the second processor, wherein the computer program is executed by the second processor to realize the steps of the intelligent device function page configuration method applied to the client.
According to a sixth aspect of the present application, there is provided a storage medium storing program code which, when executed by a processor, implements the steps of the smart device function page configuration method described above as applied to a server and/or as applied to a client.
Compared with the prior art, the method, the device, the server, the client and the storage medium for configuring the functional page of the intelligent device are characterized in that the server sends the intelligent device configuration request carrying the device information through the configuration templates corresponding to various intelligent device information and the functional control library abstracted by the functions of the intelligent device pre-stored in the server/the cloud, the server obtains the configuration templates matched with the device information, generates the initialized functional page of the intelligent device according to the configuration templates for the user to freely adjust and customize the initialized functional page into a target functional interface, generates source codes corresponding to the target functional page and sends the source codes to the client, and the client configures the source codes to display the target functional page of the intelligent device based on the target page. Therefore, access of the intelligent equipment can be completed without developing and re-writing source codes or writing a small amount of development source codes through multiplexing the functional controls, and re-development of access of each newly added/updated intelligent equipment is not needed, so that development efficiency of software products is improved, development period of the software products is shortened, and delivery of the software products is accelerated.
Drawings
Fig. 1 is a flow chart of an intelligent device function page configuration method applied to a server according to an embodiment of the present application.
Fig. 2 is a flowchart of a method for generating an initialization function page according to an embodiment of the present application.
Fig. 3 is a flowchart of another method for configuring a functional page of an intelligent device applied to a server according to an embodiment of the present application.
Fig. 4 is a flowchart of an intelligent device function page configuration method applied to a client according to an embodiment of the present application.
Fig. 5 is a schematic diagram of a functional module of an intelligent device functional page configuration device provided in an embodiment of the present application.
Fig. 6 is a schematic structural diagram of a server according to an embodiment of the present application.
Fig. 7 is a schematic structural diagram of a client according to an embodiment of the present application.
The realization, functional characteristics and advantages of the present application will be further described with reference to the embodiments, referring to the attached drawings.
Detailed Description
In order to make the technical problems, technical schemes and beneficial effects to be solved by the application clearer and more obvious, the application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
Example 1
As shown in fig. 1, an embodiment of the present application provides a method for configuring a functional page of an intelligent device, where the method includes:
s11, receiving an intelligent device configuration request sent by the client, wherein the configuration request carries device information of the intelligent device.
In this embodiment, the smart device is an IoT (Internet of Things ) device, which includes, but is not limited to: household security, intelligent sockets, electric lamps, air conditioners, intelligent washing machines, intelligent refrigerators, intelligent ovens, intelligent weighing scales, televisions, video discs, projectors, IPTV, sweeping machines and other equipment types, wherein each equipment type comprises a plurality of equipment types. The client may be a development terminal of a software developer or a user control terminal of the intelligent device. When the client sends a configuration request, the configuration request needs to carry equipment information aiming at configuring the intelligent terminal, wherein the equipment information comprises equipment types and/or equipment models, so that a server can be matched with a corresponding configuration template according to the equipment information.
S12, acquiring a configuration template matched with the equipment information, and generating a functional page initialized by the intelligent equipment according to the configuration template.
Specifically, the configuration template is preset on the server, for example, stored in a local database of the server, and the configuration template corresponding to the device information is matched from the local database by taking the device information as a query keyword. Of course, in the distributed database storage architecture, the server may also send a configuration template acquisition instruction to other servers, and receive configuration template data responded by the other servers as a configuration template corresponding to the intelligent device. For the newly added equipment type or equipment model, the mode of presetting the configuration template can be that after the equipment is customized by a research and development personnel, the equipment is directly released to the server in a file mode, or the equipment is released to the server through a system interface.
In the present embodiment, the device information includes a device type and/or a device model. When the device information includes a device type, acquiring a configuration template that matches the device information includes: acquiring a first configuration template matched with the equipment type; when the device information includes a device model, acquiring a configuration template that matches the device information includes: acquiring a second configuration template matched with the equipment model; when the device information includes a device type and a device model, obtaining a configuration template that matches the device information includes: acquiring a first configuration template matched with the equipment type; acquiring a second configuration template matched with the equipment model; a configuration template is determined based on the first configuration template and the second configuration template. The second configuration template may be different data from the first configuration template, that is, configuration data corresponding to a function specific to the model device, or may be configuration data including the first configuration template. When a plurality of configuration templates exist, a user can be reminded of selecting one of the templates through a UI interface. When the user is reminded of selecting the template through the UI interface, the plurality of configuration templates may be ranked, for example, a second configuration template corresponding to the device model is ranked before a first configuration template corresponding to the device type.
In this embodiment, the configuration template includes a set of functionality controls for the intelligent device. The function control encapsulates the functions and corresponding state attributes of the intelligent device, namely encapsulates the actions and state attribute rules of the intelligent device. Taking air conditioning equipment as an example, the air conditioning equipment has equipment functions of opening/closing, temperature adjustment, mode adjustment, wind direction adjustment and the like, a functional control is defined according to the equipment functions, and equipment actions of corresponding switches, temperatures, modes and wind directions and corresponding state attribute rule descriptions are packaged. Taking the on/off function of the air conditioning equipment as an example, defining a button as an air conditioning power button, setting on and off actions, wherein the on and off actions are respectively configured as on and off; and setting a state attribute rule description of the opening and closing of the air conditioner, namely, when the current state of the air conditioner is detected to be on, the opening state is considered, and when the current state of the air conditioner is detected to be off, the closing state is considered.
Preferably, in order to simplify the configuration template and improve the multiplexing rate of the function control, as shown in fig. 2, the function page initialized by the intelligent device is generated according to the configuration template by adopting the following steps.
S121, obtaining the identification of each functional control of the intelligent equipment from the configuration template, and calling the corresponding functional control from a preset functional control library according to the identification of each functional control.
Specifically, a function control library is preset on the server, each function control in the function control library is provided with an identifier for uniquely identifying the function control, and the function control in the function control library can be called only by recording the function control identifier in the configuration template. Therefore, the identification of each functional control of the intelligent equipment can be obtained from the configuration template, and the corresponding functional control is called from a preset functional control library according to the identification of each functional control. Therefore, the configuration template can be simplified, the multiplexing rate of the functional control is improved, and when the logical code of the functional control needs to be modified, only the functional control needs to be maintained, and the configuration template for calling the functional control does not need to be maintained one by one, so that the maintenance workload is further reduced.
S122, generating a function page initialized by the intelligent equipment according to the function control and a preset function control arrangement rule.
In this embodiment, the preset configuration rule of the functionality control may be set in each configuration template, or may be set on the server separately in a configuration file, or may be set in a database in a data record form. Preset functionality control arrangement rules include, but are not limited to: arranging according to a preset sequence (for example, according to the use frequency of each function control) and the size; or, carrying out self-adaptive arrangement adjustment on the positions and the sizes according to the number of the functions; or the configuration request also carries display screen information of the client, and the arrangement of the functional controls is adaptively adjusted based on the display screen information of the client. And the server generates a function interface initialized by the intelligent equipment according to the preset function control arrangement rule by all the function controls appointed in the configuration template. The function page includes at least one function control.
To further enhance the user experience, as an embodiment, step S122 may be implemented as follows: and generating a plurality of alternative functional pages of the intelligent equipment for the client to select according to the functional controls and the preset functional control arrangement rules. Thereby, the user selects one of the multiple alternative function pages as a target function page according to the preference of the user. This can also be achieved: according to the function controls and preset function control arrangement rules, generating an alternative function page of the intelligent device for adjustment of a client, so that a user is allowed to adjust the function controls (including but not limited to adjusting the positions of the function controls and the sizes of the controls) in the alternative function page according to own preference to serve as a target function page. Therefore, the method can meet the personalized requirements of the user and improve the user experience.
As another embodiment, when the client is a software development terminal, step S122 may be further implemented as follows: and generating an alternative function page of the intelligent equipment according to the function control and a preset function control arrangement rule, and displaying the function control related to the equipment information in the function control library for configuration of a client. Thus, the developer is allowed to drag and pull the function controls in the function control library to the alternative function pages, and the customized function pages are used as target function pages of the intelligent device.
In step S122, each device function of the intelligent device is determined, and when the device function does not exist in the initialized function page and a corresponding function control exists in the function control library, the corresponding function control of the device function is directly dragged to the alternative function interface. When the equipment function does not have the corresponding function control in the initialized function interface and the function control library, defining the corresponding function control according to the equipment function, defining an action and a state description rule, mapping the action and the corresponding state attribute into the function control, and establishing logical association between the function control and the action and the corresponding state attribute, thereby generating the function control corresponding to the equipment function. The functionality controls are UI view controls including, but not limited to, buttons, text displays, or list displays. Taking air conditioning equipment as an example, the air conditioning equipment supports equipment functions such as a switch, temperature setting, mode setting and wind direction setting, and the like, correspondingly increases the functional controls of the switch, the temperature setting, the mode setting and the wind direction setting respectively, maps the actions of the switch, the temperature setting, the mode setting and the wind direction setting and the corresponding state attributes to the functional controls of the switch, the temperature setting, the mode setting and the wind direction setting respectively, establishes the association between the functional controls of the switch, the temperature setting, the mode setting and the wind direction setting and the equipment functions of the switch, the temperature setting, the mode setting and the wind direction setting and the corresponding state attributes, thereby generating the functional controls corresponding to the equipment functions of the switch, the temperature setting, the mode setting and the wind direction setting, and can configure the positions of the functional controls according to service requirements.
And S13, after receiving the confirmation information sent by the client, generating a source code corresponding to the target function page, and sending the source code to the client.
Specifically, when the initialized function page generated by the server is an alternative function page and is not adjustable, the user directly confirms that the initialized function page is a target function page through the client; when the initialized function page generated by the server is a plurality of alternative function pages, the user can further adjust in the selected function page by selecting one of the function pages by the client, and the adjusted function page is used as a target function page; when the initialized function page generated by the server is an alternative function page with adjustable function controls, the function page after the function controls in the alternative function page are adjusted by a user through the client is used as a target function page of the intelligent device. When the initialized function page generated by the server comprises an editable alternative function page and function controls related to equipment information in a function control library, a user customizes the function controls in the alternative function page through a client, and the customized function page is taken as a target function page. When the user confirms (such as typically by clicking a "confirm" button), the client sends confirmation information of the functional interface to the service. The adjustment includes, but is not limited to, adjustment of the control position and the control size, so as to adapt to the requirements of users and improve the user experience. After receiving the confirmation information, the server generates a corresponding source code based on the confirmed target function page and sends the source code to the client side so that the client side can display the target function page of the intelligent device based on the source code of the function page.
According to the method and the device, the initialized function pages are generated by pre-storing the configuration templates and the function control libraries corresponding to various intelligent device information in the server/cloud for the user to freely adjust and customize, and the intelligent devices can be accessed without re-writing source codes or writing a small amount of development source codes, so that re-development for accessing each newly added/upgraded intelligent device is not needed, the development efficiency of software products is improved, the development period of the software products is shortened, and the delivery of the software products is accelerated.
Example two
As shown in fig. 3, another method for configuring a functional page of an intelligent device applied to a server is provided in an embodiment of the present application.
S11, receiving an intelligent device configuration request sent by the client, wherein the configuration request carries device information of the intelligent device.
S12, acquiring a configuration template matched with the equipment information, and generating a functional page initialized by the intelligent equipment according to the configuration template.
And S13, after receiving the confirmation information sent by the client, generating a source code corresponding to the target function page, and sending the source code to the client.
S14, after receiving a template release request sent by the client, updating a configuration template corresponding to the equipment information according to the source code of the target function page.
The specific implementation manners of step S11 to step S13 are substantially the same as those in the foregoing embodiments, and are not described herein.
Specifically, a server acquires each function control in a source code; and adding/modifying a configuration template corresponding to the equipment information according to each function control in the source code and the relative position relation. Namely, when the equipment information already has a configuration template, updating the corresponding configuration template to realize software upgrading; and adding a configuration template when the device information does not exist.
For the newly added functional controls, the newly added functional controls can be independently released into a functional control library of the server after being packaged by a research and development personnel. The configuration template can also be released to a function control library when the server updates the configuration template, and the method specifically comprises the following steps: and aiming at each newly added functional control, acquiring an action and a corresponding state description rule of the newly added functional control, mapping the action and the corresponding state description rule of the newly added functional control into the functional control to form a logic corresponding relation, and adding the logic corresponding relation into a functional control library for configuration use of the follow-up related intelligent equipment.
Taking the version upgrade of the intelligent device as an example, the device information can be a device type or a low-version device model. The server acquires a configuration template matched with the equipment information, and generates a functional page initialized by the intelligent equipment according to the configuration template for free customization of research and development personnel. The developer determines which functional differences the device model of the present version specifically have relative to the device type/low version device model. And defining a function control under the visual configuration page aiming at each newly added equipment function, defining action and state description rules, mapping action and state attributes corresponding to the equipment function into the function control to form a logic relationship, and configuring the position of the function control according to service requirements. And the server generates source codes by taking the customized functional interface as a target functional interface. The method comprises the steps that a client receives a source code and displays a function interface, a configuration template release request is sent to a server after confirmation, the configuration template release request carries the equipment model of the version, and the server acquires each function control in the source code; and adding/modifying a configuration template corresponding to the equipment information according to each function control in the source code and the relative position relation. When no newly added functional control exists in the functional control library, the action and the corresponding state description rule are acquired, mapped into the functional control to form a logic corresponding relation, and added into the functional control library for configuration use of the follow-up related intelligent equipment.
Based on the first embodiment, the embodiment of the present invention further issues the configuration template after the developer performs free adjustment and customization on the initialization function interface to the server, and calls the configuration template when the intelligent device is configured later after a new configuration template is formed, thereby reducing development amount.
Example III
As shown in fig. 4, an embodiment of the present application provides a method for configuring a functional page of an intelligent device applied to a client.
S21, sending an intelligent device configuration request, wherein the configuration request carries device information of the intelligent device.
Specifically, the device information includes a device type and/or a device model. Generally, the client selects a device type through a UI interface, and then further selects a product model under the selected device type, or selects a manufacturer first and then selects a product model corresponding to the device type under the manufacturer. And the product model can be directly searched in the UI interface, and the configuration request can be sent by clicking confirmation after the selection is completed.
S22, adjusting and confirming on the initialization function interface generated by the server to form a target function interface.
When the initialized function page comprises a plurality of alternative function pages, a user can select one of the alternative function pages as a target function interface through the client.
When the initialized function page comprises an alternative function page with adjustable function controls, a user can adjust the positions or sizes of the function controls in the alternative function page through the client, and the adjusted function interface is confirmed to be a target function interface.
When the initialized function page comprises an editable alternative function page and function controls related to equipment information in a function control library, a user can customize the function controls in the alternative function page through a client. For example, the user determines each device function of the intelligent device, and when the device function does not exist in the initialized function page and the corresponding function control exists in the function control library, the user directly pulls the function control corresponding to the device function into the alternative function interface. When the equipment function does not have the corresponding function control in the initialized function interface and the function control library, defining the corresponding function control according to the equipment function, defining an action and a state description rule, mapping the action and the corresponding state attribute into the function control, and establishing logical association between the function control and the action and the corresponding state attribute, thereby generating the function control corresponding to the equipment function. The functionality controls are UI view controls including, but not limited to, buttons, text displays, or list displays. Taking air conditioning equipment as an example, the air conditioning equipment supports equipment functions such as a switch, temperature setting, mode setting and wind direction setting, and the like, correspondingly increases the functional controls of the switch, the temperature setting, the mode setting and the wind direction setting respectively, maps the actions of the switch, the temperature setting, the mode setting and the wind direction setting and the corresponding state attributes to the functional controls of the switch, the temperature setting, the mode setting and the wind direction setting respectively, establishes the association between the functional controls of the switch, the temperature setting, the mode setting and the wind direction setting and the equipment functions of the switch, the temperature setting, the mode setting and the wind direction setting and the corresponding state attributes, thereby generating the functional controls corresponding to the equipment functions of the switch, the temperature setting, the mode setting and the wind direction setting, and can configure the positions of the functional controls according to service requirements.
S23, after receiving the source code of the target function page sent by the server, generating and displaying the target function page.
Specifically, after a user confirms a target function page, the server receives confirmation information, generates a source code of the target function page and sends the source code to the client, and the client analyzes the source code of the target function interface to determine a function control set and sequencing information corresponding to the intelligent device; and generating and displaying the functional page of the intelligent equipment based on the functional control set and the ordering information.
In some preferred embodiments, the method further comprises, thereafter:
s24, sending a template release request and source codes of target function pages corresponding to the templates to the server.
Specifically, when the software function is updated or the product model of the intelligent device is newly added, the client may request to issue the target function page customized in the step S22 and the corresponding function control thereof to the server, so as to iteratively update the configuration template and the function control library on the server. For the newly added functional controls, the newly added functional controls can be independently released into a functional control library of the server after being packaged by a research and development personnel. The configuration template can be issued to the function control library when the server updates the configuration template.
Taking software development of intelligent device version upgrade as an example, device information carried in a configuration request sent to a server by a developer through a client can be a device type or a low-version device model. The server acquires a configuration template matched with the equipment information, and generates a functional page initialized by the intelligent equipment according to the configuration template for the research and development personnel to freely adjust the layout. The developer determines which functional differences the device model of the present version specifically have relative to the device type/low version device model. And defining a function control under the visual configuration page aiming at each newly added equipment function, defining action and state description rules, mapping action and state attributes corresponding to the equipment function into the function control to form a logic relationship, and configuring the position of the function control according to service requirements. After the customization is completed, the client sends confirmation information to the service, and the server generates a source code by taking the customized functional interface as a target functional interface and returns the source code to the client. The client receives the source code and displays a functional interface, and sends a configuration template release request to the server after confirming that the configuration template release request carries the equipment model of the version, and the server acquires each functional control in the source code; and newly adding/modifying a configuration template and a function control library corresponding to the equipment information according to each function control and the relative position relation in the source code, so that the newly added intelligent equipment can be accessed through the configuration template on the server.
According to the configuration method of the intelligent device function page, a user can freely adjust and customize the intelligent device function page into the target function page on the initialized function interface, the target function page of the intelligent device can be generated and displayed without re-writing or adjusting, personalized requirements of the user are met, and user experience is improved. Meanwhile, the development and maintenance efficiency of the software product is improved, and the delivery of the product is quickened.
Example IV
In addition, the embodiment of the present application further provides an intelligent device function page configuration device, as shown in fig. 5, where the configuration device 00 includes:
the receiving template 10 is used for receiving an intelligent device configuration request sent by a client and confirmation information sent by the client, wherein the configuration request carries device information of the intelligent device;
the first generating module 20 is configured to obtain a configuration template matched with the device information, and generate a function page initialized by the intelligent device according to the configuration template;
the second generating module 30 is configured to generate a source code corresponding to the target function page after receiving the acknowledgement information sent by the client;
and a sending module 40, configured to send the source code to the client.
The embodiment of the present invention is a device corresponding to the methods of the first embodiment and the second embodiment, and specific implementation processes of the device are detailed in the corresponding method embodiments, and technical features in the method embodiments are not described in detail in the virtual device of the present embodiment.
In addition, the embodiment of the present application further provides a server, as shown in fig. 6, the server 100 includes: the first processor 101, the first memory 102, and one or more computer programs 103 stored in the first memory 102 and executable on the first processor 101, the first memory 102 and the first processor 101 being coupled together by a first bus system, the one or more computer programs when executed by the first processor 101 implementing the steps of any of the smart device function page configuration methods provided in the first and second embodiments.
The embodiment of the present application further provides a client, as shown in fig. 7, the client 200 includes: the second processor 201, the second memory 202, and one or more computer programs 203 stored in the second memory 202 and capable of running on the second processor 201, where the second memory 202 and the second processor 201 are coupled together by a second bus system, and the one or more computer programs 203 are executed by the second processor 201 to implement the steps of a method for configuring a functional page of an intelligent device provided in the third embodiment of the present invention.
In addition, the embodiment of the present application further provides a storage medium, specifically a computer readable storage medium, for example, including a first memory 102 and a second memory 202 storing a computer program, where one or more programs of the smart device function page configuration method are stored in the computer storage medium, and when the one or more programs are executed by the first processor 101 and the second processor 201, the steps of the smart device function page configuration method in the first to third embodiments of the present invention are implemented.
The method disclosed in the embodiments of the present application may be applied to the first processor 101 and the second processor 201, or implemented by the first processor 101 and the second processor 201. The first processor 101 and the second processor 201 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by instructions in the form of integrated logic circuits or software of hardware in the first processor 101 and the second processor 201. The first processor 101 and the second processor 201 may be general purpose processors, DSPs, or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The first processor 101 and the second processor 201 may implement or perform the methods, steps, and logic blocks disclosed in the embodiments of the present application. The general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in the embodiments of the present application may be directly embodied in a hardware decoding processor or implemented by a combination of hardware and software modules in the decoding processor. The software modules may be located in a storage medium located in the first memory 102 and the second memory 202, the first processor 101 and the second processor 201 reading information in the first memory 102 and the second memory 202, and performing the steps of the method described above in connection with its hardware.
It is appreciated that the first memory 102 and the second memory 202 of the embodiments of the present application may be volatile memory or nonvolatile memory, and may include both volatile and nonvolatile memory. The nonvolatile Memory may be Read-Only Memory (ROM), programmable Read-Only Memory (PROM, programmable Read-Only Memory), erasable programmable Read-Only Memory (EPROM), electrically Erasable Read-Only Memory (EEPROM, electrically Erasable Programmable Read-Only Memory), magnetic random access Memory (FRAM, ferromagnetic Random Access Memory), flash Memory (Flash Memory) or other Memory technology, compact disc Read-Only Memory (CD-ROM, compact Disk Read-Only Memory), digital versatile disc (DVD, digital Video Disk) or other optical disc storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices; volatile memory can be random access memory (RAM, random Access Memory), many forms of RAM being available by way of example and not limitation, such as static random access memory (SRAM, static Random Access Memory), static random access memory (SSRAM, synchronous Static Random Access Memory), dynamic random access memory (DRAM, dynamic Random Access Memory), synchronous dynamic random access memory (SDRAM, synchronous Dynamic Random Access Memory), double data rate synchronous dynamic random access memory (ddr SDRAM, double Data Rate Synchronous Dynamic Random Access Memory), enhanced synchronous dynamic random access memory (ESDRAM, enhanced Synchronous Dynamic Random Access Memory), synchronous link dynamic random access memory (SLDRAM, syncLink Dynamic Random Access Memory), direct memory bus random access memory (DRRAM, direct Rambus Random Access Memory). The memory described in the embodiments of the present application is intended to comprise, without being limited to, these and any other suitable types of memory.
It should be noted that, the methods of the first and second embodiments belong to the same technical concept, the client terminal respectively belongs to the same technical concept as the third embodiment, a program of the intelligent device function page configuration method on the computer readable storage medium and the method embodiments of the first to third embodiments belong to the same concept, the specific implementation process of the program is detailed in the corresponding method embodiments, and the technical features in the method embodiments are correspondingly applicable in the embodiments of the server, the client terminal and the computer readable storage medium, which are not repeated herein.
According to the method, the device, the server, the client and the storage medium for configuring the functional page of the intelligent device, the configuration templates corresponding to various intelligent device information and the functional control library abstracted by the functions of the intelligent device are prestored in the server/the cloud, the client sends an intelligent device configuration request carrying the device information, the server obtains the configuration templates matched with the device information, generates an intelligent device initialized functional page according to the configuration templates, enables the client to freely adjust and customize the functional page into a target functional interface, generates source codes corresponding to the target functional page and sends the source codes to the client, and the client displays the target functional page of the intelligent device based on the page configuration source codes. Therefore, access of the intelligent equipment can be completed without developing and re-writing source codes or writing a small amount of development source codes through multiplexing the functional controls, and accordingly re-development of access of each newly-added intelligent equipment is not needed, development efficiency of software products is improved, development period of the software products is shortened, and delivery of the software products is accelerated.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the embodiments of the present application are not limited to the above-described specific embodiments, which are merely illustrative, not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the embodiments of the present application and the scope of the claims, which are all within the scope of the embodiments of the present application.

Claims (4)

1. The intelligent equipment function page configuration method is applied to a server and is characterized by comprising the following steps:
receiving an intelligent device configuration request sent by a client, wherein the configuration request carries device information of the intelligent device, and the device information comprises a device type and/or a device model;
acquiring a configuration template matched with the equipment information, and generating a function page initialized by the intelligent equipment according to the configuration template, wherein when the equipment information comprises the equipment model, acquiring the configuration template matched with the equipment information comprises the following steps: acquiring a second configuration template matched with the equipment model; when the device information includes the device type and the device model, the obtaining the configuration template matched with the device information includes: acquiring a first configuration template matched with the equipment type, acquiring a second configuration template matched with the equipment type, and determining the configuration template based on the first configuration template and the second configuration template; wherein the second configuration template is different from the first configuration template in data; when a plurality of configuration templates exist, reminding a user to select one of the templates through a UI interface of the client; before reminding a user of selecting a template through the UI interface, sequencing a plurality of configuration templates; wherein the second configuration template corresponding to the equipment model is arranged before the first configuration template corresponding to the equipment type;
After receiving the confirmation information sent by the client, generating a source code corresponding to the target function page, and sending the source code to the client;
the configuration template comprises a function control set of the intelligent equipment; the function control encapsulates the function and the corresponding state attribute of the intelligent device, and the generating the initialized function page of the intelligent device according to the configuration template specifically includes:
acquiring the identification of each functional control of the intelligent equipment from the configuration template, and calling the corresponding functional control from a preset functional control library according to the identification of each functional control;
generating a function page initialized by the intelligent equipment according to the function control and a preset function control arrangement rule;
the initialized function page comprises a plurality of alternative function pages, and the target function page is the alternative function page selected by the client; or the initialized function page comprises an alternative function page with adjustable function controls; the target function page is a function page after the client adjusts the alternative function page; or the initialized function page comprises an editable alternative function page and a function control related to the equipment information in a function control library; the target function page is a function page after the client terminal customizes the function controls in the alternative function page;
After receiving a template release request sent by the client, updating a configuration template corresponding to equipment information according to a source code of the target function page;
the configuration template corresponding to the source code updating equipment information according to the target function page specifically comprises the following steps:
acquiring each function control in the source code;
newly adding/modifying a configuration template corresponding to the equipment information according to each functional control and the relative position relation in the source code;
updating a function control library, which specifically comprises the following steps:
and aiming at each newly added functional control, acquiring an action and a corresponding state description rule of the newly added functional control, mapping the action and the corresponding state description rule of the newly added functional control into the functional control to form a logic corresponding relation, and adding the functional control into the functional control library.
2. The intelligent equipment function page configuration method is applied to a client and is characterized by comprising the following steps:
the method comprises the steps that a client sends an intelligent device configuration request, wherein the configuration request carries device information of intelligent devices, and the device information comprises device types and/or device models;
adjusting/confirming on an initialization function interface generated by a server to form a target function page;
After receiving a target function page source code responded by a server, generating and displaying a target function page;
wherein,
when the device information includes the device model, the obtaining the configuration template matched with the device information includes: acquiring a second configuration template matched with the equipment model; when the device information includes the device type and the device model, the obtaining the configuration template matched with the device information includes: acquiring a first configuration template matched with the equipment type, acquiring a second configuration template matched with the equipment type, and determining the configuration template based on the first configuration template and the second configuration template; wherein the second configuration template is different from the first configuration template in data; when a plurality of configuration templates exist, reminding a user to select one of the templates through a UI interface of the client; before reminding a user of selecting a template through the UI interface, sequencing a plurality of configuration templates; wherein the second configuration template corresponding to the equipment model is arranged before the first configuration template corresponding to the equipment type;
the configuration template matched with the equipment information comprises a function control set of the intelligent equipment, and the function control encapsulates functions and corresponding state attributes of the intelligent equipment;
Acquiring the identification of each functional control of the intelligent equipment from the configuration template, and calling the corresponding functional control from a preset functional control library according to the identification of each functional control;
generating a function page initialized by the intelligent equipment according to the function control and a preset function control arrangement rule;
the initialized function page comprises a plurality of alternative function pages, and the target function page is the alternative function page selected by the client; or the initialized function page comprises an alternative function page with adjustable function controls; the target function page is a function page after the client adjusts the alternative function page; or the initialized function page comprises an editable alternative function page and a function control related to the equipment information in a function control library; the target function page is a function page after the client terminal customizes the function controls in the alternative function page;
when the equipment function does not have a corresponding function control in the initialized function interface and the function control library, defining the corresponding function control according to the equipment function, defining an action and a state description rule, mapping the action and the corresponding state description rule into the function control, and establishing logical association between the function control and the action and the corresponding state description rule so as to generate the function control corresponding to the equipment function, wherein the function control is a UI view control;
And sending a template release request and source codes of target function pages corresponding to the templates to the server.
3. A server comprising a first memory, a first processor and a computer program stored on the first memory and executable on the first processor, wherein the computer program when executed by the first processor implements the steps of the smart device configuration method of claim 1.
4. A client, the client comprising: a second memory, a second processor and a computer program stored on the second memory and executable on the second processor, which when executed by the second processor, implements the steps of the smart device function page configuration method of claim 2.
CN202110962069.2A 2021-08-20 2021-08-20 Intelligent device function page configuration method, server and client Active CN113590101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110962069.2A CN113590101B (en) 2021-08-20 2021-08-20 Intelligent device function page configuration method, server and client

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110962069.2A CN113590101B (en) 2021-08-20 2021-08-20 Intelligent device function page configuration method, server and client

Publications (2)

Publication Number Publication Date
CN113590101A CN113590101A (en) 2021-11-02
CN113590101B true CN113590101B (en) 2024-04-09

Family

ID=78238573

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110962069.2A Active CN113590101B (en) 2021-08-20 2021-08-20 Intelligent device function page configuration method, server and client

Country Status (1)

Country Link
CN (1) CN113590101B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113961180A (en) * 2021-12-22 2022-01-21 上海豪承信息技术有限公司 Method and device for creating intelligent dial plate of wearable device and wearable device
CN114257584B (en) * 2021-12-24 2022-12-13 深思数盾(天津)科技有限公司 Method and device for generating configuration file of Internet of things equipment and storage medium
CN114816580B (en) * 2022-05-19 2023-10-24 青岛海尔科技有限公司 Configuration method of operation activities, storage medium and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7971194B1 (en) * 2005-06-16 2011-06-28 Sap Portals Israel Ltd. Programming language techniques for client-side development and execution
CN105590056A (en) * 2014-10-22 2016-05-18 中国银联股份有限公司 Dynamic application function control method based on environment detection
CN107958016A (en) * 2017-10-16 2018-04-24 平安科技(深圳)有限公司 Function pages method for customizing and application server
CN109828815A (en) * 2019-01-18 2019-05-31 平安普惠企业管理有限公司 Screen adaptation method, device, equipment and storage medium based on mixed mode

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7971194B1 (en) * 2005-06-16 2011-06-28 Sap Portals Israel Ltd. Programming language techniques for client-side development and execution
CN105590056A (en) * 2014-10-22 2016-05-18 中国银联股份有限公司 Dynamic application function control method based on environment detection
CN107958016A (en) * 2017-10-16 2018-04-24 平安科技(深圳)有限公司 Function pages method for customizing and application server
CN109828815A (en) * 2019-01-18 2019-05-31 平安普惠企业管理有限公司 Screen adaptation method, device, equipment and storage medium based on mixed mode

Also Published As

Publication number Publication date
CN113590101A (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN113590101B (en) Intelligent device function page configuration method, server and client
US11438939B2 (en) Discovery of connected devices to determine control capabilities and meta-information
US10158536B2 (en) Systems and methods for interaction with an IoT device
CN109445819B (en) Online upgrade control method of household appliance system and household appliance system
CN111262761B (en) Electronic device and method for operating electronic device
US10454994B2 (en) Mapping an action to a specified device within a domain
WO2020107689A1 (en) Method and apparatus for upgrading household appliance, and household appliance
CN109407527B (en) Method and device for realizing intelligent equipment recommendation
CN107003836B (en) Flexible device template for connected consumer devices
CN102655608B (en) Method and apparatus for providing customized menus
CN103425483B (en) Method and storage medium for dynamically customized menus
WO2016145009A1 (en) Method and system for rapid deployment and execution of customized functionality across multiple distinct platforms
WO2007024573A2 (en) Dynamically extensible and automatically configurable building automation system and architecture
US20120304202A1 (en) Enabling customized functions to be implemented at a domain
US20120303801A1 (en) Managing a domain
CN111221609A (en) Data processing method, system and storage medium
US20150268647A1 (en) User based home automation method, apparatus thereof, and supporting method and apparatus therefor
US20230136504A1 (en) Method for generating application for controlling external electronic device and electronic apparatus for supporting the same
US20120303456A1 (en) Targeting delivery data
US20120303832A1 (en) Achieving a uniform device abstraction layer
WO2007052205A1 (en) Setting a device in a network
KR20190061733A (en) Device management system and method
CN117675976A (en) Equipment monitoring method, device, equipment and storage medium
CN115174383A (en) Device updating method, storage medium and electronic device
CN114756271A (en) Interface updating method and device and electronic equipment

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