CN112015450B - Method, device and storage medium for loading intelligent device control page - Google Patents

Method, device and storage medium for loading intelligent device control page Download PDF

Info

Publication number
CN112015450B
CN112015450B CN202010869426.6A CN202010869426A CN112015450B CN 112015450 B CN112015450 B CN 112015450B CN 202010869426 A CN202010869426 A CN 202010869426A CN 112015450 B CN112015450 B CN 112015450B
Authority
CN
China
Prior art keywords
application program
control
upgrade
page
upgrading
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
CN202010869426.6A
Other languages
Chinese (zh)
Other versions
CN112015450A (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 TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202010869426.6A priority Critical patent/CN112015450B/en
Publication of CN112015450A publication Critical patent/CN112015450A/en
Application granted granted Critical
Publication of CN112015450B publication Critical patent/CN112015450B/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/60Software deployment
    • G06F8/65Updates

Landscapes

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

Abstract

The invention discloses a method for loading a control page of intelligent equipment, which comprises the following steps: when a control application program for the intelligent device is started, acquiring an installation version number of the control application program; reading a version number stored in a local configuration file of a control page; downloading a control page update package when the installation version number of the control application program is inconsistent with the version number stored in the local configuration file; and displaying the control page aiming at the intelligent equipment in the updated control page configuration. The invention also discloses a device and a computer readable storage medium, which solve the problem that the intelligent equipment in the prior art has unsmooth blocking when controlling page switching.

Description

Method, device and storage medium for loading intelligent device control page
Technical Field
The present invention relates to the field of intelligent control, and in particular, to a method, an apparatus, and a computer storage medium for loading a control page of an intelligent device.
Background
With the rapid development of intelligent control technology, the development of intelligent processing speed is also broken through. However, the problem of unsmooth jamming exists when the traditional intelligent device controls page switching, so that the experience of a user is poor, and the problem of unsmooth jamming exists when the intelligent device controls page switching in the prior art.
Disclosure of Invention
The invention mainly aims to provide a method, a device and a computer storage medium for loading a control page of an intelligent device, and aims to solve the problem that the intelligent device is unsmooth in blocking when the control page of the intelligent device is switched in the prior art.
In order to achieve the above object, the present invention provides a method for loading a control page of an intelligent device, the method for loading a control page of an intelligent device includes the following steps:
when a control application program for intelligent equipment is started, acquiring an installation version number of the control application program;
reading a version number stored in a local configuration file of a control page;
downloading a control page update package when the installation version number of the control application program is inconsistent with the version number stored in the local configuration file;
and displaying the control page aiming at the intelligent equipment in the updated control page configuration.
In an embodiment, before the step of obtaining the installation version number of the control application when the control application for the smart device is started, the method further includes:
the method comprises the steps of obtaining a version number of a control application program in a cloud;
and upgrading the version of the control application program when the difference value between the installation version number and the version number in the cloud end meets a preset condition.
In one embodiment, the step of upgrading the control application version comprises:
different upgrading modes are provided for users to select by controlling an application program interface to display an input box or upgrading keys;
and acquiring an upgrade mode selected by a user, setting a corresponding upgrade system request according to the selected upgrade mode, and finishing the version upgrade of the control application program.
In an embodiment, the upgrading mode includes silent upgrading and manual upgrading, and the step of setting the corresponding upgrading system request according to the selected upgrading mode includes:
when the upgrade mode selected by the input box or the upgrade key is silent upgrade, the version configuration information stored in the cloud control application program is acquired, and the system request of the silent upgrade is set and stored;
when the upgrade mode selected by the input box or the upgrade key is manual upgrade, detecting an event that a user clicks the upgrade key in real time, acquiring version configuration information stored in the cloud control application program after the user clicks the upgrade key, and setting and storing a system request of manual upgrade.
In an embodiment, the step of completing the version upgrade of the control application program includes:
acquiring a system request of manual upgrading, upgrading the version of a control application program, acquiring and storing the duration of stay on an upgrade page by manually clicking an upgrade key, and determining the corresponding number of download threads according to the duration;
comparing whether the version of the updated control application program is matched with the packet name, if not, deleting the unmatched packet, and accelerating downloading and storing the latest system packet according to the number of downloading threads corresponding to the duration;
the version upgrade of the control application is completed.
In one embodiment, the step of downloading the control page update package includes:
when the upgrading mode selected by displaying an input box or an upgrading key through the control application program interface is manual upgrading, acquiring and storing the time length of manually clicking the upgrading key to stay on an upgrading page, and determining the corresponding downloading thread number according to the time length;
and starting a sub-thread download control page update package according to the number of the download threads, displaying the download progress by the main thread to indicate whether the download is successful or not, and throwing out error information if the download is abnormal.
In an embodiment, further comprising:
when the upgrading mode selected by displaying an input box or an upgrading key through the control application program interface is manual upgrading, acquiring and storing the time length of manually clicking the upgrading key to stay on an upgrading page, and determining the corresponding downloading thread number according to the time length;
when the fact that the control page and the configuration file of the control application program do not exist locally is checked, creating a folder of the control page according to the application package name and the version number of the control application program, and generating the configuration file of the control page;
when the number of times of manually clicking the upgrade button is detected to be larger than the preset number of times, increasing the number of the download threads to determine the corresponding number of the download threads according to the duration;
and starting a sub-thread downloading control page update package, displaying a downloading progress by the main thread to indicate whether the downloading is successful or not, and throwing out error information if the downloading is abnormal.
In an embodiment, further comprising:
and when the installation version number of the control application program is consistent with the version number stored in the local configuration file, displaying a control page aiming at the intelligent equipment.
To achieve the above object, the present invention also provides an apparatus, which includes a memory, a processor, and a program for loading a smart device control page stored in the memory and executable on the processor, where the program for loading a smart device control page implements the steps of the method for loading a smart device control page as described above when executed by the processor.
To achieve the above object, the present invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a load smart device control page program, which when executed by a processor, implements the steps of the method for loading a smart device control page as described above.
According to the method for loading the control page of the intelligent equipment and the computer storage medium, when the control application program aiming at the intelligent equipment is started, the installation version number of the control application program is obtained; reading a version number stored in a local configuration file of a control page; downloading a control page update package when the installation version number of the control application program is inconsistent with the version number stored in the local configuration file; and displaying the control page aiming at the intelligent equipment in the updated control page configuration. Because the installation version number of the control application program is compared with the version number stored in the local configuration file, when the installation version number of the control application program is inconsistent with the version number stored in the local configuration file, the control page update package is quickly downloaded by increasing the number of the download threads, and then the updated control page display is entered, so that the purpose of quickly controlling the page in the control application program is realized, and the problem that the intelligent device is not smooth in blocking when the control page of the intelligent device is switched in the prior art is solved.
Drawings
FIG. 1 is a schematic view of a device according to an embodiment of the present invention;
FIG. 2 is a flow chart of a first embodiment of a method for loading a smart device control page according to the present invention;
FIG. 3 is a flow chart of a second embodiment of a method for loading a smart device control page according to the present invention;
FIG. 4 is a flowchart illustrating a third embodiment of a method for loading a smart device control page according to the present invention;
FIG. 5 is a flowchart illustrating a method for loading a smart device control page according to a fourth embodiment of the present invention;
FIG. 6 is a flowchart of a method for loading a smart device control page according to a fifth embodiment of the present invention;
fig. 7 is a flowchart of a method for loading a smart device control page according to a sixth embodiment of the present invention.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The main solutions of the embodiments of the present invention are: when a control application program for the intelligent device is started, acquiring an installation version number of the control application program; reading a version number stored in a local configuration file of a control page; downloading a control page update package when the installation version number of the control application program is inconsistent with the version number stored in the local configuration file; and displaying the control page aiming at the intelligent equipment in the updated control page configuration. Because the installation version number of the control application program is compared with the version number stored in the local configuration file, when the installation version number of the control application program is inconsistent with the version number stored in the local configuration file, the control page update package is quickly downloaded by increasing the number of the download threads, and then the updated control page display is entered, so that the purpose of quickly controlling the page in the control application program is realized, and the problem that the intelligent device is not smooth in blocking when the control page of the intelligent device is switched in the prior art is solved.
As an implementation manner, as shown in fig. 1, fig. 1 is a schematic structural diagram related to an embodiment of the present invention.
The processor 1100 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the methods described above may be performed by integrated logic circuitry in hardware or instructions in software in processor 1100. The processor 1100 described above may be a general purpose processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 1200, and the processor 1100 reads information in the memory 1200, and in combination with its hardware, performs the steps of the method described above.
It is to be appreciated that memory 1200 in embodiments of the invention may be volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable EPROM (EEPROM), or a flash Memory. The volatile memory may be random access memory (Random Access Memory, RAM) which acts as an external cache. By way of example, and not limitation, many forms of RAM are available, such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (Double Data Rate SDRAM), enhanced SDRAM (ESDRAM), synchronous DRAM (SLDRAM), and Direct RAM (DRRAM). The memory 1200 of the systems and methods described in embodiments of the present invention is intended to comprise, without being limited to, these and any other suitable types of memory.
For a software implementation, the techniques described in embodiments of the present invention may be implemented by modules (e.g., procedures, functions, and so on) that perform the functions described in embodiments of the present invention. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
Based on the structure, the embodiment of the method for controlling the page to be downloaded and loaded quickly by the intelligent device is provided.
Referring to fig. 2, fig. 2 is a first embodiment of a method for loading a control page of a smart device according to the present invention, where the method for loading a control page of a smart device includes the following steps:
step S110, when a control application program for intelligent equipment is started, acquiring an installation version number of the control application program;
step S120, reading a version number stored in a local configuration file of a control page;
step S130, when the installation version number of the control application program is inconsistent with the version number stored in the local configuration file, downloading a control page update package;
and step S140, displaying the control page for the intelligent device in the updated control page configuration.
In this embodiment, the smart device refers to a single intelligent consumer electronic product that uses wireless communication technologies such as WIFI and bluetooth to implement simple functions. The intelligent equipment is provided with an independent MAC address, activation and authentication of products are required to be realized based on a cloud platform, and meanwhile, wireless remote control and remote control are realized by utilizing the APP of the intelligent terminal.
The intelligent device is mainly divided into: 1. bulb sockets: such as WIFI sockets, smart light bulbs, etc.; 2. infrared remote control: such as an infrared remote control box, an infrared remote control socket, a WIFI remote controller and the like; 3. network cameras: such as a WIFI camera, a vehicle recorder and the like; 4. wearable device class: such as smart bracelets, smart glasses, etc.; 5. mobile phone accessories: such as wireless charging, remote control assistants, etc.; 6. health care class: such as intelligent sphygmomanometers, blood glucose meters, etc.; 7. intelligent household appliances: intelligent air purifiers, etc. For similar intelligent devices produced by the same manufacturer, such as intelligent televisions, intelligent washing machines, intelligent air conditioners, intelligent electric cookers, intelligent air cleaners and the like in intelligent household appliances, the intelligent devices can be controlled by application programs installed on intelligent terminals (such as mobile phones, tablet computers, wearable intelligent devices and the like).
In this embodiment, the control page refers to a control page installed on the intelligent terminal for controlling an application program of the intelligent device, and different control pages corresponding to different intelligent devices, for example, the intelligent television corresponds to one control page on controlling the application program of the intelligent device; the intelligent washing machine corresponds to a control page on a control application program; the intelligent air conditioner corresponds to a control page on a control application program; the intelligent electric cooker corresponds to a control page on a control application program.
In this embodiment, the smart system (Intelligence system) is a computer system capable of generating human smart actions, and the smart system can operate on a traditional noeman computer in an self-organization and self-adaption manner, and can also operate on a new generation of noeman computers in an self-organization and self-adaption manner, wherein the smart system is a smart terminal. The intelligent system obtains the version number of the updated control application, and it should be noted that the installation version number of the control application refers to the installation version number of the control application stored in application control page information (AppInfo), where the application control page information (AppInfo) parameters include parameters such as a product name, an app type, a package name, a params, a control application variable parameter, a letAppVersion number, a letAppUrl address, eventAppParams, and a subApps. The intelligent system reads a version number stored in a local configuration file (manifest. Json) of the control page, wherein the manifest. Json file refers to a configuration file of the control application program and is used for designating information such as the name, the icon, the address and the authority of an application program entry file of the application program. When the installation version number of the control application program is inconsistent with the version number stored in the local configuration file, for example, the obtained installation version number of the control application program is 4.0; and obtaining the version number of the local configuration file of the control page to be 3.0. The control page update package is downloaded.
In this embodiment, a thread (thread) is the smallest unit that an operating system can perform operation scheduling. It is included in the process and is the actual unit of operation in the process. One thread refers to a single sequential control flow in a process, and multiple threads can be concurrent in a process, each thread executing different tasks in parallel. It should be noted that a thread may be understood as a downloading channel, and one thread is a downloading channel of a file. A thread is typically the number of connections to download a file and you connect to the opposite download server. Because many servers are speed limited by a single thread, split-thread downloading can be understood as a simulation technique of downloading the other party's existing resources with different connected threads, and multi-thread downloading at the same time, so as to increase the downloading speed.
In this embodiment, a Main Thread refers to a process that is created by the Operating System (OS) when a program starts up, while a Thread is running at once, which is often called the Main Thread (Main Thread) of the program, because it is executed at the beginning of the program, and if you need to recreate a Thread, the created Thread is a child of this Main Thread. The intelligent system starts a sub-thread download control page (RN) update package according to the number of download threads determined by the manual selection upgrade control application program, and the control page (RN) package local configuration file (manifest. Json) parameters comprise: parameters such as name (control application name), packagenname (control application package name), params (control application variable parameter), letAppVersion (control application version number), letAppUrl (control application address), minrequirement (control application version requirement), and the like. The main thread is used for displaying the progress of the downloading thread to indicate whether the downloading is successful, and when the downloading is successful, the updated control page configuration is displayed on the control page of the intelligent device. For example, for a control application program, which includes a television control page, an air-conditioning control page and a washing machine control page, a television control page update package, an air-conditioning control page update package and a washing machine control page update package are downloaded according to a download thread determined by manually selecting an upgrade control application program, and then the updated control page is displayed on the control page for the intelligent device control application program, so that the purpose of rapidly switching the television control page, the air-conditioning control page and the washing machine control page is achieved.
In the technical scheme provided by the embodiment, when a control application program for the intelligent device is started, the installation version number of the control application program is obtained; reading a version number stored in a local configuration file of a control page; downloading a control page update package when the installation version number of the control application program is inconsistent with the version number stored in the local configuration file; and displaying the control page aiming at the intelligent equipment in the updated control page configuration. Because the installation version number of the control application program is compared with the version number stored in the local configuration file, when the installation version number of the control application program is inconsistent with the version number stored in the local configuration file, the control page update package is quickly downloaded by increasing the number of the download threads, and then the updated control page display is entered, so that the purpose of quickly controlling the page in the control application program is realized, and the problem that the intelligent device is not smooth in blocking when the control page of the intelligent device is switched in the prior art is solved.
Referring to fig. 3, fig. 3 is a second embodiment of the method for loading a control page of a smart device according to the present invention, where the method for loading a control page of a smart device includes the following steps:
step S210, a version number of a control application program in a cloud is obtained;
step S220, upgrading the version of the control application program when the difference value between the installation version number and the version number in the cloud end meets a preset condition;
step S230, when a control application program for the intelligent device is started, the installation version number of the control application program is obtained;
step S240, reading the version number stored in the local configuration file of the control page;
step S250, when the installation version number of the control application program is inconsistent with the version number stored in the local configuration file, downloading a control page update package;
step S260, the control page for the intelligent device is displayed in the updated control page configuration.
Compared with the first embodiment, the second embodiment includes step S210 and step S220, and other steps are the same as those of the first embodiment, and will not be described again.
In this embodiment, the cloud refers to a server, and the intelligent system obtains a version number of the control application program in the cloud, for example, the intelligent system obtains the latest version number of the application program in an App Store of the ios platform; the intelligent system obtains the latest version number of the control application program in the application store of the android platform. The intelligent system acquires the installation version number of the local control application program, and upgrades the control application program when the installation version number of the local application program and the version number of the cloud control application program meet preset conditions.
In the technical scheme provided by the embodiment, the version number of the cloud control application program is obtained, then the version number of the local control application program is obtained, and when the version number of the cloud control application program and the version number of the local control application program meet the preset condition, the upgrading and updating of the control application program are realized.
Referring to fig. 4, fig. 4 is a third embodiment of the method for loading a control page of a smart device according to the present invention, where the method for loading a control page of a smart device includes the following steps:
step S310, a version number of a control application program in a cloud is obtained;
step S320, when the difference between the installation version number and the version number in the cloud end meets the preset condition, providing different upgrading modes for users by controlling the application program interface to display an input frame or an upgrading key;
step S330, obtaining an upgrade mode selected by a user, setting a corresponding upgrade system request according to the selected upgrade mode, and finishing the version upgrade of the control application program;
step S340, when a control application program for the intelligent device is started, the installation version number of the control application program is obtained;
step S350, reading a version number stored in a local configuration file of a control page;
step S360, when the installation version number of the control application program is inconsistent with the version number stored in the local configuration file, downloading a control page update package;
and step S370, displaying the control page for the intelligent device in the updated control page configuration.
Compared with the second embodiment, the third embodiment includes steps S320 and S330, and other steps are the same as those of the first embodiment, and will not be described again.
In this embodiment, when the difference between the installation version number of the local control application program and the version number of the cloud control application program meets a preset condition, different upgrade modes are provided for the user to select by displaying an input box or an upgrade key through the control application program interface, and the difference between the installation version number and the version number of the cloud may preferably be 1, for example, the obtained installation version number of the control application program is 4.0; and if the cloud control application version number is 5.0, the preset condition is met. The control application program can be upgraded in a silent mode, or manually selected by a user, and the silent upgrade means that the upgrade can be automatically completed by the upgrade program according to the set value of the timing upgrade under the condition that the user is not disturbed (an upgrade program interface is not displayed).
The intelligent system acquires an upgrade mode selected by a user, when the upgrade mode selected by the user through an input box displayed on a control application program interface or an upgrade key is silent upgrade, the intelligent system acquires version configuration information of a cloud control application program, wherein the version configuration information comprises but is not limited to a manifest.json (configuration file of the control application program) and a control application program version requirement (minrequired) information, and sets and stores a corresponding system request for silent upgrade to finish the upgrade of the control application program.
When a user displays an input box through a control application program interface or an upgrade mode selected by an upgrade key is manual upgrade, the intelligent system detects a manual upgrade key clicking event in real time, and after the user clicks the manual upgrade key, the intelligent system acquires version configuration information stored in a cloud control application program, wherein the version configuration information comprises but is not limited to a manifest.json (configuration file of the control application program) and a control application program version requirement (minrequirement) information, sets a system request of manual upgrade, and completes upgrade of the control application program.
And in the time period from the time when the user clicks the manual upgrading key to the time when the control of the application program upgrading is completed, the intelligent system acquires and stores the time when the user clicks the upgrading key manually to stay on the upgrading page, the number of the downloading threads for the user can be determined according to the time, then whether the version (letAppVersion) of the control application program after the upgrading is matched with the name of the application package is compared, if the version (letAppVersion) of the control application program after the upgrading is not matched with the name of the application package is deleted, the matched application package is accelerated to download and store the latest system package according to the number of the downloading threads corresponding to the time.
In the technical scheme provided by the embodiment, when the difference value between the installation version number and the version number in the cloud end meets the preset condition, providing an upgrade mode for a user to select, wherein the upgrade mode comprises silent upgrade and manual upgrade; and acquiring an upgrade mode selected by a user, then acquiring version configuration information of the control application program in the cloud, setting corresponding silent upgrade and manual upgrade system requests, and finishing the version upgrade of the control application program according to the corresponding system requests.
Referring to fig. 5, fig. 5 is a fourth embodiment of the method for loading a control page of a smart device according to the present invention, where the method for loading a control page of a smart device includes the following steps:
step S410, a version number of a control application program in a cloud is obtained;
step S420, when the difference between the installation version number and the version number in the cloud end meets the preset condition, providing different upgrading modes for users by controlling an application program interface to display an input frame or an upgrading key;
step S430, when the upgrade mode selected by the display input frame or the upgrade key of the control application program interface is manual upgrade, acquiring and storing the duration of the stay upgrade page of the manual click upgrade key, and determining the corresponding download thread number according to the duration;
step S440, the sub-thread download control page update package is started according to the number of the download threads, the main thread displays the download progress to indicate whether the download is successful or not, and if the download is abnormal, the error information is thrown.
Step S450, the control page for the intelligent device is displayed in the updated control page configuration.
Compared with the third embodiment, the fourth embodiment includes step S430 and step S440, and other steps are the same as those of the third embodiment, and are not described in detail.
In this embodiment, when the user selects the manual upgrade control application program when the upgrade mode selected by the user through the control application program interface display input box or the upgrade key is manual upgrade, the intelligent system acquires and stores the duration of the user manually clicking the upgrade key to stay on the upgrade page in a period from when the user clicks the manual upgrade key to when the control application program upgrade is completed, and the corresponding number of download threads can be determined according to the duration. The intelligent system starts the download control page update package of the sub-threads according to the number of the download threads corresponding to the time length, the main thread displays the download progress to indicate whether the download is successful, the main thread and the sub-threads are related to the description in the embodiment, and the description is not excessive, if the download is abnormal, the related error information is thrown out, so that the user can clearly see the reason of the abnormality.
In the technical scheme provided by the embodiment, the corresponding downloading thread quantity is determined according to the time length of the user selecting to manually click the upgrading control key to stay on the upgrading page, the sub-thread downloading control page updating package is started according to the downloading thread quantity, the main thread displays the downloading progress to indicate whether the downloading is successful or not, if the downloading fails, the wrong information is thrown out, the experience of the user is improved, and the aim of rapidly loading the control page of the intelligent equipment is also achieved.
Referring to fig. 6, fig. 6 is a fifth embodiment of the method for loading a smart device control page according to the present invention, where the method for loading a smart device control page includes the following steps:
step S510, obtaining a version number of a control application program in a cloud;
step S520, when the difference between the installation version number and the version number in the cloud end meets the preset condition, providing different upgrading modes for users by controlling the application program interface to display an input frame or an upgrading key;
step S530, when the upgrade mode selected by the display input frame or the upgrade key of the control application program interface is manual upgrade, acquiring and storing the duration of the stay upgrade page of the manual click upgrade key, and determining the corresponding download thread number according to the duration;
step S540, when the fact that the control page and the configuration file of the control application program do not exist locally is checked, creating a folder of the control page according to the application package name and the version number of the control application program, and generating the configuration file of the control page;
step S550, when the number of times of manually clicking the upgrade button is detected to be larger than the preset number of times, increasing the number of download threads to determine the corresponding number of download threads according to the duration;
step S560, a sub-thread download control page update package is started, a main thread displays a download progress to indicate whether the download is successful or not, and if the download is abnormal, error information is thrown;
step S570, the control page for the intelligent device is displayed in the updated control page configuration.
Compared with the third embodiment, the fifth embodiment includes step S530, step S540, step S550, and step S560, and other steps are the same as those of the third embodiment, and are not repeated.
In this embodiment, when the user displays the input box through the control application interface or the upgrade mode selected by the upgrade key is manual upgrade, in a period from when the user clicks the manual upgrade key to when the control application upgrade is completed, the intelligent system obtains and stores a time length for the user to manually click the upgrade key to stay on the upgrade page, and according to the time length, the number of corresponding download threads can be determined. When the intelligent system detects that the control page and the configuration file (manifest. Json) of the control application program do not exist locally, the intelligent system creates a folder of the control page according to the application package name and the version number of the control application program, and survives the configuration file of the corresponding control page.
In this embodiment, when the intelligent system detects that the number of times of manually clicking the upgrade key by the user is greater than the preset number of times, the preset number of times may preferably be 2 times, that is, when the intelligent system detects that the number of times of manually clicking the upgrade key by the user is greater than 2 times, the number of download threads is increased until the number of corresponding download threads is determined according to the duration. And starting a sub-thread downloading control page update package, displaying a downloading progress by the main thread to show whether the downloading is successful or not, and throwing out error information for the user if the downloading is abnormal so as to enable the user to clearly see the reason of the abnormality.
In the technical scheme provided by the embodiment, when the intelligent system detects the local fax-free control page update package and the configuration file of the control application program, the control page folder is created according to the application package name and the version number of the control application program, the configuration file of the corresponding control page is generated, when the fact that the number of times of manually clicking the upgrading key by a user is larger than the preset number of times is detected, the number of downloading threads is increased until the number of corresponding threads is determined according to the duration, the control page update package is quickly downloaded, the experience of the user is improved, and the aim of quickly loading the control page of the intelligent equipment is fulfilled.
Referring to fig. 7, fig. 7 is a sixth embodiment of the method for loading a smart device control page according to the present invention, where the method for loading a smart device control page includes the following steps:
step S610, when a control application program for the intelligent device is started, the installation version number of the control application program is obtained;
step S620, reading a version number stored in a local configuration file of the control page;
step S630, when the installation version number of the control application program is consistent with the version number stored in the local configuration file, a control page for the intelligent device is displayed.
Compared with the first embodiment, the sixth embodiment includes step S630, and other steps are the same as those of the first embodiment, and will not be described again.
In this embodiment, the intelligent system checks that the installation version number of the control application program is consistent with the version number stored in the local configuration file, which indicates that the control page of the local configuration file and the control application program belong to the same version, and displays the control page for the intelligent device, so that the phenomenon of unsmooth blocking does not exist.
The invention also provides a device which comprises a memory, a processor and an intelligent device control page quick download loading program which is stored in the memory and can run on the processor, wherein the intelligent device control page quick download loading program realizes the steps of the intelligent device control page quick download loading method when being executed by the processor.
The invention also provides a computer readable storage medium, which is characterized in that the computer readable storage medium stores an intelligent device control page quick download loading program, and the intelligent device control page quick download loading program realizes each step of the intelligent device control page quick download loading method when being executed by a processor.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, third, etc. do not denote any order. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (7)

1. The method for loading the intelligent device control page is characterized by comprising the following steps of:
when a control application program for the intelligent equipment is started, the version number of the control application program in the cloud is acquired;
upgrading the version of the control application program when the difference value between the installation version number and the version number in the cloud end meets a preset condition;
the step of upgrading the control application version comprises the following steps:
different upgrading modes are provided for users to select by controlling an application program interface to display an input box or upgrading keys;
acquiring an upgrade mode selected by a user, setting a corresponding upgrade system request according to the selected upgrade mode, and finishing the version upgrade of the control application program;
when the upgrading mode selected by displaying an input box or an upgrading key through the control application program interface is manual upgrading, acquiring and storing the time length of manually clicking the upgrading key to stay on an upgrading page, and determining the corresponding downloading thread number according to the time length;
when the fact that the control page and the configuration file of the control application program do not exist locally is checked, creating a folder of the control page according to the application package name and the version number of the control application program, and generating the configuration file of the control page;
when the number of times of manually clicking the upgrade button is detected to be larger than the preset number of times, increasing the number of the download threads to determine the corresponding number of the download threads according to the duration;
starting a sub-thread downloading control page update package, displaying a downloading progress by the main thread to indicate whether the downloading is successful or not, and throwing out error information if the downloading is abnormal;
acquiring an installation version number of the control application program;
reading a version number stored in a local configuration file of a control page;
downloading a control page update package when the installation version number of the control application program is inconsistent with the version number stored in the local configuration file;
and displaying the control page aiming at the intelligent equipment in the updated control page configuration.
2. The method for loading a control page of an intelligent device according to claim 1, wherein the upgrade mode includes silent upgrade and manual upgrade, and the step of setting the corresponding upgrade system request according to the selected upgrade mode includes:
when the upgrade mode selected by the input box or the upgrade key is silent upgrade, the version configuration information stored in the cloud control application program is acquired, and the system request of the silent upgrade is set and stored;
when the upgrade mode selected by the input box or the upgrade key is manual upgrade, detecting an event that a user clicks the upgrade key in real time, acquiring version configuration information stored in the cloud control application program after the user clicks the upgrade key, and setting and storing a system request of manual upgrade.
3. The method for loading a control page of an intelligent device according to claim 1, wherein the upgrading mode is a manual upgrading, and the step of completing the version upgrading of the control application program comprises:
acquiring a system request of manual upgrading, upgrading the version of a control application program, acquiring and storing the duration of stay on an upgrade page by manually clicking an upgrade key, and determining the corresponding number of download threads according to the duration;
comparing whether the version of the updated control application program is matched with the packet name, if not, deleting the unmatched packet, and accelerating downloading and storing the latest system packet according to the number of downloading threads corresponding to the duration;
the version upgrade of the control application is completed.
4. The method of loading a control page of a smart device of claim 1, wherein the step of downloading a control page update package comprises:
when the upgrading mode selected by displaying an input box or an upgrading key through the control application program interface is manual upgrading, acquiring and storing the time length of manually clicking the upgrading key to stay on an upgrading page, and determining the corresponding downloading thread number according to the time length;
and starting a sub-thread download control page update package according to the number of the download threads, displaying the download progress by the main thread to indicate whether the download is successful or not, and throwing out error information if the download is abnormal.
5. The method of loading a smart device control page of claim 1, further comprising:
and when the installation version number of the control application program is consistent with the version number stored in the local configuration file, displaying a control page aiming at the intelligent equipment.
6. An apparatus comprising a memory, a processor, and a load smart device control page program stored in the memory and executable on the processor, which when executed by the processor, performs the steps of the method of loading smart device control pages of any one of claims 1-5.
7. A computer readable storage medium storing a load smart device control page program which when executed by a processor performs the steps of the method of loading smart device control pages of any one of claims 1-5.
CN202010869426.6A 2020-08-25 2020-08-25 Method, device and storage medium for loading intelligent device control page Active CN112015450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010869426.6A CN112015450B (en) 2020-08-25 2020-08-25 Method, device and storage medium for loading intelligent device control page

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010869426.6A CN112015450B (en) 2020-08-25 2020-08-25 Method, device and storage medium for loading intelligent device control page

Publications (2)

Publication Number Publication Date
CN112015450A CN112015450A (en) 2020-12-01
CN112015450B true CN112015450B (en) 2024-01-19

Family

ID=73504012

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010869426.6A Active CN112015450B (en) 2020-08-25 2020-08-25 Method, device and storage medium for loading intelligent device control page

Country Status (1)

Country Link
CN (1) CN112015450B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113825008B (en) * 2021-11-24 2022-03-01 飞狐信息技术(天津)有限公司 Active page display method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516536A (en) * 2012-06-26 2014-01-15 重庆新媒农信科技有限公司 Server service request parallel processing method based on thread number limit and system thereof
CN104156244A (en) * 2014-08-06 2014-11-19 北京奇虎科技有限公司 Method and device for software upgrading
EP2806357A1 (en) * 2013-05-24 2014-11-26 Huawei Device Co., Ltd. Method and communication device for updating a web application
CN107491320A (en) * 2017-06-26 2017-12-19 北京五八信息技术有限公司 Loading method and device based on mixed mode Mobile solution
CN107918864A (en) * 2017-11-23 2018-04-17 平安科技(深圳)有限公司 Electronic insurance policy generation method, device, computer equipment and storage medium
CN108733388A (en) * 2018-05-28 2018-11-02 北京酷我科技有限公司 A kind of H5 page parsing methods wrapped offline based on Native
US10146524B1 (en) * 2016-03-28 2018-12-04 Amazon Technologies, Inc. Preemptive deployment in software deployment pipelines
CN110058873A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Application page update method, device, equipment and storage medium
WO2020087230A1 (en) * 2018-10-29 2020-05-07 深圳市欢太科技有限公司 Method for displaying game page and related product

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7856536B2 (en) * 2007-10-05 2010-12-21 International Business Machines Corporation Providing a process exclusive access to a page including a memory address to which a lock is granted to the process
CN104679530B (en) * 2013-11-26 2017-12-29 英业达科技有限公司 Server system and firmware update

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103516536A (en) * 2012-06-26 2014-01-15 重庆新媒农信科技有限公司 Server service request parallel processing method based on thread number limit and system thereof
EP2806357A1 (en) * 2013-05-24 2014-11-26 Huawei Device Co., Ltd. Method and communication device for updating a web application
CN104156244A (en) * 2014-08-06 2014-11-19 北京奇虎科技有限公司 Method and device for software upgrading
US10146524B1 (en) * 2016-03-28 2018-12-04 Amazon Technologies, Inc. Preemptive deployment in software deployment pipelines
CN107491320A (en) * 2017-06-26 2017-12-19 北京五八信息技术有限公司 Loading method and device based on mixed mode Mobile solution
CN107918864A (en) * 2017-11-23 2018-04-17 平安科技(深圳)有限公司 Electronic insurance policy generation method, device, computer equipment and storage medium
CN108733388A (en) * 2018-05-28 2018-11-02 北京酷我科技有限公司 A kind of H5 page parsing methods wrapped offline based on Native
WO2020087230A1 (en) * 2018-10-29 2020-05-07 深圳市欢太科技有限公司 Method for displaying game page and related product
CN110058873A (en) * 2019-03-12 2019-07-26 天津五八到家科技有限公司 Application page update method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112015450A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
CN113412457B (en) Scene pushing method, device and system, electronic equipment and storage medium
CN113412469B (en) Equipment network distribution method and device, electronic equipment and storage medium
US10547890B2 (en) Apparatus and method for displaying user interface
CN107479399B (en) Scene setting method and device for intelligent household equipment
CN107480034B (en) Method and terminal for displaying prompt information
CN108319151B (en) Control method, device and system of household appliance, mobile terminal and storage medium
CN107346115B (en) Control method and control terminal of intelligent device and intelligent device
WO2017166674A1 (en) Instruction set switching method and device
CN107577472B (en) Software installation method and device and computer readable storage medium
CN107870571B (en) Method and device for controlling intelligent equipment and intelligent equipment
CN106301772A (en) Cipher set-up method, device and for arranging the device of password
CN114484775B (en) Control method, data processing method, device and storage medium for air conditioner
CN112910748B (en) Network distribution method, device, computer equipment and storage medium
WO2016179913A1 (en) Home gateway and operation method thereof
CN112015450B (en) Method, device and storage medium for loading intelligent device control page
CN115167164A (en) Method and device for determining equipment scene, storage medium and electronic device
CN111007733B (en) Method and device for integrating smart home terminal APP with smart device
CN112161393A (en) Method and device for customizing functions of household appliance, electronic equipment and storage medium
CN113065113A (en) Device control method, mobile terminal, and computer-readable storage medium
CN110794773A (en) Click-type scene creating method and device
CN110658736A (en) Household appliance control method, household appliance control device and computer storage medium
CN114488880A (en) Intelligent control method and device of equipment, intelligent switch and storage medium
CN113126870A (en) Parameter setting method, intelligent refrigerator and computer readable storage medium
CN112468536A (en) Method and system for controlling intelligent equipment
CN110908498A (en) Gesture associated control function method and terminal 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
GR01 Patent grant