CN113590101A - 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
CN113590101A
CN113590101A CN202110962069.2A CN202110962069A CN113590101A CN 113590101 A CN113590101 A CN 113590101A CN 202110962069 A CN202110962069 A CN 202110962069A CN 113590101 A CN113590101 A CN 113590101A
Authority
CN
China
Prior art keywords
function
page
client
function page
configuration
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.)
Granted
Application number
CN202110962069.2A
Other languages
Chinese (zh)
Other versions
CN113590101B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Human Computer Interaction (AREA)
  • Stored Programmes (AREA)

Abstract

The application discloses a method for configuring a functional page of an intelligent device, 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 a source code corresponding to the target function page, and sending the source code 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 application relates to the field of intelligent devices, and in particular, to a method and an apparatus for configuring a functional page of an intelligent device, a server, a client, and a storage medium.
Background
The Internet of Things (IoT) collects any object or process needing monitoring, connection and interaction in real time through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors and laser scanners, collects various required information such as sound, light, heat, electricity, mechanics, chemistry, biology and position, realizes ubiquitous connection of objects and people through various possible network accesses, and realizes intelligent sensing, identification and management of The objects and The process. The internet of things is an information bearer based on the internet, a traditional telecommunication network and the like, and all common physical objects which can be independently addressed form an interconnected network.
At present, IoT (Internet of Things) products relate to many types of intelligent devices, including home security, smart sockets, electric lights, air conditioners, intelligent washing machines, intelligent refrigerators, intelligent ovens, intelligent weighing scales, televisions, video disc players, projectors, IPTV, sweeper, and the like, and each type of intelligent terminal further includes multiple product models of multiple manufacturers, and the function set and the control mode thereof may have certain differences. In the development process of the intelligent equipment, related software development is required to be carried out aiming at the function control of the intelligent equipment with different models, the software development cycle generally needs to go through a plurality of different processes such as code development, code testing, code online and the like, in the processes, the code development and the code testing are long in time consumption, a great deal of energy of front-end developers is consumed, the software product development efficiency is influenced, the software product development cycle is prolonged, and the delivery of the software product is slow.
Disclosure of Invention
In view of this, the present application provides a method for configuring a functional page of an intelligent device, a server, a client, and a storage medium, so as to solve the problem of low software development efficiency of the intelligent device.
The technical scheme adopted by the application for solving the technical problems is as follows:
according to a first aspect of the present application, a method for configuring a function page of an intelligent device is provided, which is applied to a server, and the method includes:
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 an intelligent equipment initialized function page 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 includes a function control set of the intelligent device, and generating the function page initialized by the intelligent device according to the configuration template specifically includes:
acquiring an identifier 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 identifier of each functional control;
and generating a function page initialized by the intelligent equipment according to the function controls 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 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 obtained after the client adjusts the function control 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 the function control library; and the target function page is a function page after the client customizes the function control in the alternative function page.
Preferably, the method further comprises, after:
and after receiving a template issuing request sent by the client, updating the configuration template corresponding to the equipment information according to the source code of the target function page.
Preferably, updating the configuration template corresponding to the device information according to the source code of the target function page specifically includes:
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 relationship.
Preferably, the method further comprises updating a function control library, specifically comprising: and aiming at each newly added function control, acquiring the action and the corresponding state description rule of the function control, mapping the action and the corresponding state description rule of the function control into the function control to form a logic corresponding relation, and adding the logic corresponding relation into a function control library.
According to a second aspect of the present application, a method for configuring a function page of an intelligent device is provided, which is applied to a client, and the method includes:
the client sends an intelligent device configuration request carrying device information of the intelligent device;
adjusting/confirming on an initialization function interface generated by the server to form a target function page;
and after receiving the target function page source code responded by the server, generating and displaying the target function page.
Preferably, the method further comprises, after: and sending a template issuing request and the source code of the function page corresponding to the template to the server.
According to a third aspect of the present application, there is provided an apparatus for configuring a function page of a smart device, which is applied to a server, the apparatus including:
the system comprises a receiving template and a sending 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 the intelligent device;
the first generation module is used for acquiring a configuration template matched with the equipment information and generating a function page initialized by the intelligent equipment according to the configuration template;
the second generation module is used for generating a source code corresponding to the target function page 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, wherein the computer program, when executed by the first processor, implements the steps of the above method for configuring a smart device function page applied to the server.
According to a fifth aspect of the present application, there is provided a client comprising: the second memory, the second processor and the computer program stored on the second memory and capable of running on the second processor, wherein the computer program realizes the steps of the intelligent device function page configuration method applied to the client when being executed by the second processor.
According to a sixth aspect of the present application, there is provided a storage medium for storing program code, which when executed by a processor implements the steps of the above-mentioned smart device function page configuration method applied to a server and/or applied to a client.
Compared with the prior art, according to the method, the device, the server, the client and the storage medium for configuring the function page of the intelligent device, the configuration templates corresponding to various intelligent device information and the function control library abstracted from the functions of the intelligent device are pre-stored in the server/cloud, the client sends the intelligent device configuration request carrying the device information, the server obtains the configuration templates matched with the device information, the function page initialized by the intelligent device is generated according to the configuration templates for the user to freely adjust and customize into the target function interface, the source code corresponding to the target function page is generated and sent to the client, and the target function page of the intelligent device is displayed by the client based on the target page configuration source code. Therefore, the access of the intelligent equipment can be completed without developing and rewriting the source code or writing a small amount of development source code through the multiplexing function control, so that the access of each newly added/upgraded intelligent equipment is not required to be redeveloped, 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.
Drawings
Fig. 1 is a schematic flowchart of a method for configuring a function page of an intelligent device applied to a server according to an embodiment of the present application.
Fig. 2 is a flowchart illustrating a method for generating an initialization function page according to an embodiment of the present application.
Fig. 3 is a schematic flowchart of another method for configuring a function page of an intelligent device applied to a server according to an embodiment of the present application.
Fig. 4 is a schematic flowchart of a method for configuring a function page of an intelligent device applied to a client according to an embodiment of the present application.
Fig. 5 is a functional module schematic diagram of an intelligent device function page configuration apparatus according to 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 implementation, functional features and advantages of the objectives of the present application will be further explained with reference to the accompanying drawings.
Detailed Description
In order to make the technical problems, technical solutions and advantageous effects to be solved by the present application clearer and clearer, the present 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 merely illustrative of the present application and are not intended to limit the present application.
Example one
As shown in fig. 1, an embodiment of the present application provides a method for configuring a function page of an intelligent device applied to a server, where the method includes:
s11, receiving an intelligent device configuration request sent by the client, wherein the configuration request carries the device information of the intelligent device.
In this embodiment, the smart device is an IoT (Internet of Things) device, and the IoT device includes but is not limited to: the intelligent household safety protection system comprises equipment types such as a household safety protection system, an intelligent socket, an electric lamp, an air conditioner, an intelligent washing machine, an intelligent refrigerator, an intelligent oven, an intelligent weighing scale, a television, a video disc player, a projector, an IPTV and a sweeper, wherein each equipment type comprises multiple equipment models. The client can be a development terminal of a software developer and also can be a user control terminal of the intelligent device. When the client sends the configuration request, the configuration request needs to carry equipment information for configuring the intelligent terminal, and the equipment information includes an equipment type and/or an equipment model, so that the server can match a corresponding configuration template according to the equipment information.
And S12, acquiring a configuration template matched with the equipment information, and generating a function 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 using 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 other servers as a configuration template corresponding to the intelligent device. For the type or model of the newly added device, the preset configuration template may be directly issued to the server in a file manner after being customized by research and development personnel, or may be issued to the server through a system interface.
In this embodiment, the device information includes a device type and/or a device model. When the device information includes the device type, the obtaining of the configuration template matched with the device information includes: acquiring a first configuration template matched with the equipment type; when the device information includes the device model, acquiring the configuration template matched with 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, acquiring a 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 model; a configuration template is determined based on the first configuration template and the second configuration template. The second configuration template may be data different from the first configuration template, that is, configuration data corresponding to a specific function of the device of the model, or may be configuration data including the first configuration template. When there are multiple configuration templates, the user may be prompted to select one of the templates through the UI interface. When the user is prompted to select a template through the UI interface, the plurality of configuration templates may be ranked, for example, a second configuration template corresponding to the device model may be ranked before a first configuration template corresponding to the device type.
In this embodiment, the configuration template includes a set of functionality controls of the smart device. The function control encapsulates the function of the intelligent device and the corresponding state attribute, namely encapsulates the action and state attribute rule of the intelligent device. Taking an air conditioner as an example, the air conditioner has the functions of turning on/off, adjusting temperature, adjusting mode, adjusting wind direction and the like, defines function controls according to the functions of the equipment, and encapsulates corresponding equipment actions of switching, temperature, mode and wind direction and corresponding state attribute rule descriptions. Taking the function of the on/off equipment of the air conditioning equipment as an example, defining a button as an air conditioning power supply button, and setting the on and off actions which are respectively configured to be on and off; and setting the state attribute rule description of the on and off of the air conditioner, namely considering the air conditioner to be in an on state when the current state of the air conditioner is detected, and considering the air conditioner to be in an off state when the current state of the air conditioner is detected.
Preferably, in order to simplify the configuration template and improve the reuse rate of the function control, as shown in fig. 2, the following steps are adopted to generate the function page initialized by the intelligent device according to the configuration template.
And S121, acquiring the identification of each function control of the intelligent equipment from the configuration template, and calling the corresponding function control from a preset function control library according to the identification of each function control.
Specifically, a function control library is preset on the server, each function control in the function control library has an identifier for uniquely identifying the function control, and the function controls in the function control library can be called only by recording the identifier of the function control in the configuration template. Therefore, the identification of each function control of the intelligent device can be obtained from the configuration template, and the corresponding function control is called from the preset function control library according to the identification of each function control. Therefore, the configuration template can be simplified, the reuse rate of the function control is improved, when the logic code of the function control needs to be modified, only the function control needs to be maintained, and the configuration template for calling the function control does not need to be maintained one by one, so that the maintenance workload is further reduced.
And 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 function control may be set in each configuration template, may also be set on the server in the form of a configuration file separately, and may also be set in the form of a data record in the database. The preset function control arrangement rules include, but are not limited to: the functions are arranged according to a preset sequence (for example, according to the use frequency of each function control) and size; or, self-adaptive arrangement adjustment is carried out on the position and the size 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 all the specified function controls in the configuration template according to a preset function control arrangement rule. The function page includes at least one function control.
To further improve the user experience, as an embodiment, step S122 may be implemented by: and generating a plurality of alternative function pages of the intelligent equipment for the client to select according to the function controls and a preset function control arrangement rule. Therefore, the user can select one from the multiple alternative function pages as the target function page according to own preference. The method can also be realized in the following way: and generating an alternative function page of the intelligent device for the client to adjust according to the function control and a preset function control arrangement rule, so that a user is allowed to adjust the function control (including but not limited to adjusting the position and the size of the function control) in the alternative function page as a target function page according to own preference. Therefore, the method can adapt to 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 also be implemented as follows: and generating an alternative function page of the intelligent equipment according to the function controls and a preset function control arrangement rule, and displaying the function controls related to the equipment information in the function control library for the configuration of the client. Therefore, developers are allowed to drag 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 equipment.
In step S122, each device function of the smart device is determined, 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 function control corresponding to the device function is directly dragged to the alternative function interface. When the device function does not have the corresponding function control in the initialized function interface and the function control library, the corresponding function control is defined according to the device function, action and state description rules are defined, the action and the corresponding state attribute are mapped into the function control, and the logical association between the function control and the action and the corresponding state attribute is established, so that the function control corresponding to the device function is generated. The function control is a UI view control, including but not limited to a button, a text display, or a list display. Still take air conditioning equipment as an example, the air conditioning equipment supports equipment functions such as switch, temperature setting, mode setting and wind direction setting, and corresponds to the function controls of adding switch, temperature setting, mode setting and wind direction setting respectively, and maps the switch, temperature setting, mode setting and wind direction setting actions and corresponding state attributes to the function controls of switch, temperature setting, mode setting and wind direction setting respectively, and establishes the association between the function controls of switch, temperature setting, mode setting and wind direction setting and the equipment functions of switch, temperature setting, mode setting and wind direction setting and corresponding state attributes, thereby generating the function controls corresponding to the equipment functions of switch, temperature setting, mode setting and wind direction setting, and can configure the positions of the function controls according to the 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 optional 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 select one of the function pages through the client, can further adjust in the selected function page, and takes the adjusted function page as a target function page; when the initialized function page generated by the server is the optional function page with the adjustable function control, the function page with the adjusted function control in the optional function page is used as the target function page of the intelligent device by the user through the client. When the initialized function page generated by the server comprises an editable alternative function page and a function control related to the equipment information in the function control library, a user customizes the function control in the alternative function page through the client, and the customized function page is used as a target function page. When the user confirms (such as by clicking a "confirm" button), the client sends a confirmation of the function interface to the service. The adjustment includes, but is not limited to, adjusting the position and size of the control to meet the requirements of the user and improve the user experience. And 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 so that the client can display the target function page of the intelligent equipment based on the source code of the function page.
According to the method and the device, the initialized function page is generated by pre-storing the configuration templates and the function control library corresponding to various intelligent device information in the server/cloud for the user to freely adjust and customize, and the intelligent device can be accessed without re-writing source codes or writing a small amount of development source codes, so that re-development for the access of 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, an embodiment of the present application provides another method for configuring a function page of an intelligent device applied to a server.
S11, receiving an intelligent device configuration request sent by the client, wherein the configuration request carries the device information of the intelligent device.
And S12, 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 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.
And S14, after receiving the template release request sent by the client, updating the configuration template corresponding to the equipment information according to the source code of the target function page.
The specific implementation of steps S11 to S13 is substantially the same as that in the previous embodiment, and will not be described herein.
Specifically, 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 relationship. When the device information already has the configuration template, updating the corresponding configuration template to realize software upgrading; and when the device information does not have the configuration template, newly adding the configuration template.
For the newly added function control, the newly added function control can be packaged by research personnel and then independently released to a function control library of the server. Or may be issued to the function control library when the server updates the configuration template, specifically including: and aiming at each newly added function control, acquiring the action and the corresponding state description rule of the function control, mapping the action and the corresponding state description rule of the function control into the function control to form a logic corresponding relation, and adding the logic corresponding relation into a function control library for subsequent related intelligent equipment configuration and use.
Taking version upgrade of the intelligent device as an example, the device information may be a device type or a low-version device model. And the server acquires a configuration template matched with the equipment information, and generates an intelligent equipment initialized function page according to the configuration template for free customization by research personnel. The developer determines what functional differences the version of the device model is specific to the device type/low version of the device model. And for each newly added equipment function, defining a function control under a visual configuration page, defining action and state description rules, mapping action and state attributes corresponding to the equipment function into the function control to form a logical relationship, and configuring the position of the function control according to business requirements. And the server generates a source code by taking the customized functional interface as a target functional interface. The client receives the source code and displays the function interface, and sends a configuration template release request to the server after confirming that the source code is correct, wherein 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 relationship. When no newly added function control exists in the function control library, the action and the corresponding state description rule are obtained, the action and the corresponding state description rule are mapped into the function control to form a logic corresponding relation, and the logic corresponding relation is added into the function control library to be used for subsequent related intelligent equipment configuration.
On the basis of the first embodiment, the configuration template which is freely adjusted and customized by a developer on the initialization function interface is further issued to the server, and a new configuration template is formed to be called when the intelligent device is subsequently configured, so that the development amount is reduced.
EXAMPLE III
As shown in fig. 4, an embodiment of the present application provides a method for configuring a function page of an intelligent device applied to a client.
And S21, sending an intelligent device configuration request, wherein the configuration request carries the device information of the intelligent device.
Specifically, the device information includes a device type and/or a device model. Generally, a 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. 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.
And S22, adjusting/confirming the initialized function interface generated by the server to form a target function interface.
When the initialized function page comprises a plurality of alternative function pages, the user can select one of the alternative function pages as the target function interface through the client.
When the initialized function page comprises the optional function page with the adjustable function control, the user can adjust the position or size of the function control in the optional function page through the client, and the adjusted function interface is confirmed as the target function interface.
When the initialized function page comprises the editable alternative function page and the function control related to the equipment information in the function control library, the user can customize the function control in the alternative function page through the 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 function control corresponding to the device function is directly dragged to the alternative function interface. When the device function does not have the corresponding function control in the initialized function interface and the function control library, the corresponding function control is defined according to the device function, action and state description rules are defined, the action and the corresponding state attribute are mapped into the function control, and the logical association between the function control and the action and the corresponding state attribute is established, so that the function control corresponding to the device function is generated. The function control is a UI view control, including but not limited to a button, a text display, or a list display. Still take air conditioning equipment as an example, the air conditioning equipment supports equipment functions such as switch, temperature setting, mode setting and wind direction setting, and corresponds to the function controls of adding switch, temperature setting, mode setting and wind direction setting respectively, and maps the switch, temperature setting, mode setting and wind direction setting actions and corresponding state attributes to the function controls of switch, temperature setting, mode setting and wind direction setting respectively, and establishes the association between the function controls of switch, temperature setting, mode setting and wind direction setting and the equipment functions of switch, temperature setting, mode setting and wind direction setting and corresponding state attributes, thereby generating the function controls corresponding to the equipment functions of switch, temperature setting, mode setting and wind direction setting, and can configure the positions of the function controls according to the service requirements.
And S23, generating and displaying the target function page after receiving the source code of the target function page sent by the server.
Specifically, after a user confirms a target function page, a server receives confirmation information, generates a source code of the target function page and sends the source code to a client, and the client analyzes the source code of a target function interface and determines a function control set and sequencing information corresponding to intelligent equipment; and generating and displaying a function page of the intelligent equipment based on the function control set and the sequencing information.
In some preferred embodiments, the method further comprises, after:
and S24, sending the template issuing request and the source code of the target function page corresponding to the template to the server.
Specifically, when the software function is updated or the model of the smart device is newly added, the client may request to issue the target function page customized in step S22 and the corresponding function control to the server, so as to iteratively update the configuration template and the function control library on the server. For the newly added function control, the newly added function control can be packaged by research personnel and then independently released to a function control library of the server. Or the configuration template can be published to the function control library when being updated by the server.
Taking software development of version upgrade of the intelligent device as an example, device information carried in a configuration request sent to the server by a research and development staff through the client may be a device type or a low-version device model. And the server acquires a configuration template matched with the equipment information, and generates an intelligent equipment initialized function page according to the configuration template for the research and development personnel to freely adjust the layout. The developer determines what functional differences the version of the device model is specific to the device type/low version of the device model. And for each newly added equipment function, defining a function control under a visual configuration page, defining action and state description rules, mapping action and state attributes corresponding to the equipment function into the function control to form a logical relationship, and configuring the position of the function control according to business requirements. After the customization is completed, confirmation information is sent to the service through the client, 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 the function interface, and sends a configuration template release request to the server after confirming that the source code is correct, wherein the configuration template release request carries the equipment model of the version, and each function control in the source code is obtained by the server; and adding/modifying a configuration template and a function control library corresponding to the equipment information according to each function control in the source code and the relative position relationship, 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, the 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 rewriting or adjusting, the personalized requirements of the user are met, and the user experience is improved. Meanwhile, the development and maintenance efficiency of software products is improved, and the delivery of the products is accelerated.
Example four
In addition, an embodiment of the present application further provides an intelligent device function page configuration apparatus, as shown in fig. 5, the configuration apparatus 00 includes:
the receiving template 10 is configured to receive an intelligent device configuration request sent by a client and acknowledgement information sent by the client, where the configuration request carries device information of an 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 confirmation 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 thereof are described in detail in the corresponding method embodiments, and technical features in the method embodiments are not described in detail in the virtual device of this embodiment.
In addition, an embodiment of the present application further provides a server, as shown in fig. 6, a server 100 includes: a first processor 101, a first memory 102, and one or more computer programs 103 stored in the first memory 102 and operable on the first processor 101, wherein the first memory 102 and the first processor 101 are coupled together by a first bus system, and the one or more computer programs are executed by the first processor 101 to implement the steps of any one of the smart device function page configuration methods provided in the first and second embodiments.
An embodiment of the present application further provides a client, as shown in fig. 7, a client 200 includes: a second processor 201, a second memory 202 and one or more computer programs 203 stored in the second memory 202 and operable on the second processor 201, wherein 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 the method for configuring the smart device function page provided by the third embodiment of the present invention.
In addition, a storage medium, specifically a computer-readable storage medium, is provided, for example, the storage medium includes the first memory 102 and the second memory 202, which store computer programs, where the computer storage medium stores one or more programs of the smart device function page configuring method, and the one or more programs are executed by the first processor 101 and the second processor 201 to implement the steps of the smart device function page configuring method according to the first to third embodiments of the present invention.
The method disclosed in the embodiment of the present application can 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 hardware integrated logic circuits or software 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, or the like. 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. A 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 implemented by 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, and the first processor 101 and the second processor 201 read the information in the first memory 102 and the second memory 202, and in combination with the hardware thereof, perform the steps of the foregoing method.
It is understood that the first memory 102 and the second memory 202 of the embodiments of the present application may be either volatile memory or nonvolatile memory, and may also include both volatile and nonvolatile memory. Among them, the nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a magnetic Random Access Memory (Flash Memory) or other Memory technologies, a Compact disc Read-Only Memory (CD-ROM), a Digital Versatile Disc (DVD), or other optical disc storage, magnetic cartridge, magnetic tape, magnetic Disk storage, or other magnetic storage devices; volatile Memory can be Random Access Memory (RAM), and by way of exemplary and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Double Data Rate Synchronous Random Access Memory (ESDRAM), Synchronous Link Dynamic Random Access Memory (SLDRAM), Direct Memory bus Random Access Memory (DRRAM). The memories described in the embodiments of the present application are intended to comprise, without being limited to, these and any other suitable types of memory.
It should be noted that the server and the method in the first embodiment and the method in the second embodiment belong to the same technical concept, the client and the method in the third embodiment belong to the same technical concept, a method program for configuring a function page of an intelligent device on a computer-readable storage medium belongs to the same concept as the method embodiments in the first to third embodiments, specific implementation processes thereof are described in detail in the corresponding method embodiments, and technical features in the method embodiments are applicable in the embodiments of the server, the client and the computer-readable storage medium, and are not described herein again.
According to the method, the device, the server, the client and the storage medium for configuring the function page of the intelligent device, the configuration templates corresponding to various intelligent device information and the function control library abstracted from the functions of the intelligent device are pre-stored in the server/cloud, the client sends an intelligent device configuration request carrying the device information, the server obtains the configuration templates matched with the device information, the function page initialized by the intelligent device is generated according to the configuration templates and is freely adjusted and customized to be a target function interface by the client, the source code corresponding to the target function page is generated and sent to the client, and the target function page of the intelligent device is displayed by the client based on the page configuration source code. Therefore, the access of the intelligent equipment can be completed without developing and rewriting the source code or writing a small amount of development source code through the multiplexing function control, so that the access of each newly added intelligent equipment is not required to be redeveloped, 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.
While the embodiments of the present application have been described in connection with the accompanying drawings, the embodiments of the present application are not limited to the above-described embodiments, which are merely illustrative and not restrictive, and those skilled in the art can make various changes and modifications in the embodiments without departing from the spirit and scope of the embodiments of the present application as defined by the appended claims.

Claims (10)

1. A method for configuring a function page of an intelligent device 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;
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.
2. The configuration method according to claim 1, wherein the configuration template includes a set of functionality controls of the smart device, and the generating the functionality page initialized by the smart device according to the configuration template specifically includes:
acquiring an identifier 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 identifier 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.
3. The configuration method according to claim 1, wherein 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 obtained 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 the function control library; and the target function page is a function page after the client customizes a function control in the alternative function page.
4. The method of any of claims 1-3, further comprising, after the method:
and after receiving a template issuing request sent by the client, updating a configuration template corresponding to the equipment information according to the source code of the target function page.
5. The method of claim 4, wherein the updating the configuration template corresponding to the device information according to the source code of the target function page specifically comprises:
acquiring each function control in the source code;
and newly adding/modifying a configuration template corresponding to the equipment information according to each function control in the source code and the relative position relation.
6. The method of claim 5, further comprising updating a function control library, specifically comprising:
and aiming at each newly added function control, acquiring the action and the corresponding state description rule of the function control, mapping the action and the corresponding state description rule of the function control into the function control to form a logic corresponding relation, and adding the function control into the function control library.
7. A method for configuring a function page of an intelligent device is applied to a client, and is characterized by comprising the following steps:
a 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 the server to form a target function page;
and after receiving the target function page source code responded by the server, generating and displaying the target function page.
8. The method of configuring of claim 7, further comprising, after the method: and sending a template issuing request and a source code of a target function page corresponding to the template to the server.
9. A server comprising a first memory, a first processor and a computer program stored on the first memory and executable on the first processor, characterized in that the computer program, when executed by the first processor, implements the steps of the smart device configuration method according to any one of claims 1 to 6.
10. A client, the client comprising: second memory, a second processor and a computer program stored on the second memory and executable on the second processor, the computer program, when executed by the second processor, implementing the steps of the smart device function page configuration method according to claim 7 or 8.
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 true CN113590101A (en) 2021-11-02
CN113590101B 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)

Cited By (5)

* 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
CN114257584A (en) * 2021-12-24 2022-03-29 北京深思数盾科技股份有限公司 Method and device for generating configuration file of Internet of things equipment
CN114489765A (en) * 2021-12-27 2022-05-13 深圳优美创新科技有限公司 Configuration method and device of terminal equipment, terminal equipment and readable storage medium
CN114816580A (en) * 2022-05-19 2022-07-29 青岛海尔科技有限公司 Operation activity configuration method, storage medium and electronic device
CN117908929A (en) * 2024-03-19 2024-04-19 深圳市华磊迅拓科技有限公司 Method, device, equipment and storage medium for automatically generating client

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

Cited By (7)

* 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
CN114257584A (en) * 2021-12-24 2022-03-29 北京深思数盾科技股份有限公司 Method and device for generating configuration file of Internet of things equipment
CN114489765A (en) * 2021-12-27 2022-05-13 深圳优美创新科技有限公司 Configuration method and device of terminal equipment, terminal equipment and readable storage medium
CN114816580A (en) * 2022-05-19 2022-07-29 青岛海尔科技有限公司 Operation activity configuration method, storage medium and electronic device
CN114816580B (en) * 2022-05-19 2023-10-24 青岛海尔科技有限公司 Configuration method of operation activities, storage medium and electronic device
CN117908929A (en) * 2024-03-19 2024-04-19 深圳市华磊迅拓科技有限公司 Method, device, equipment and storage medium for automatically generating client
CN117908929B (en) * 2024-03-19 2024-06-07 深圳市华磊迅拓科技有限公司 Method, device, equipment and storage medium for automatically generating client

Also Published As

Publication number Publication date
CN113590101B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
CN113590101A (en) Intelligent device function page configuration method, server and client
CN109445819B (en) Online upgrade control method of household appliance system and household appliance system
CN108259643B (en) Binding method and device of intelligent device and user operation terminal, and electronic device
JP2004229266A (en) House electric appliance network system, house electric appliance network adapter, index server, house electric appliance network connection method, house electric appliance network adapter control method, and index server operating method
JP6493126B2 (en) Method and non-transitory computer readable medium for dynamic device driver
CN103809997A (en) Information processing apparatus and network system
CN101694625A (en) Method and device for upgrading client software based on encryption sever management
CN111130891A (en) Server management device and method, electronic equipment and storage medium
CN114257624B (en) Configuration method, device and equipment of Internet of things equipment and storage medium
CN112665101A (en) Air conditioning system, wire controller control method and device thereof and wire controller
CN111008106B (en) Server monitoring management method and device, electronic equipment and storage medium
CN114374602A (en) Master control equipment configuration method and device, cloud server and storage medium
CN112817593A (en) Control page display method and device, storage medium and electronic device
CN113971191A (en) Data import method and device and computer readable storage medium
CN114840263B (en) Network card management method, device, equipment and storage medium
WO2016167797A1 (en) Morphed instruction according to configuration update
CN114721647A (en) Object-oriented programming method based on codeless application development
KR20230103777A (en) System for upgrading of home appliances and method thereof
CN110795842B (en) Method and device for creating combined equipment model and control equipment
CN114003256A (en) Method, device and equipment for updating FRU information of server and storage medium
US20220268473A1 (en) Apparatus management device and software generation method
CN104780148A (en) Server, terminal, system and method for document online operation
CN114143360B (en) Service function configuration method, system and device for intelligent network device
KR102180815B1 (en) Server and method for providing design data for application, and system for generating application
CN111722867A (en) Software configuration method, storage medium and smart television

Legal Events

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