CN112311889B - Method and device for determining equipment starting progress, storage medium and electronic device - Google Patents

Method and device for determining equipment starting progress, storage medium and electronic device Download PDF

Info

Publication number
CN112311889B
CN112311889B CN202011204998.9A CN202011204998A CN112311889B CN 112311889 B CN112311889 B CN 112311889B CN 202011204998 A CN202011204998 A CN 202011204998A CN 112311889 B CN112311889 B CN 112311889B
Authority
CN
China
Prior art keywords
service
determining
started
list
starting
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
CN202011204998.9A
Other languages
Chinese (zh)
Other versions
CN112311889A (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.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua 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 Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN202011204998.9A priority Critical patent/CN112311889B/en
Publication of CN112311889A publication Critical patent/CN112311889A/en
Application granted granted Critical
Publication of CN112311889B publication Critical patent/CN112311889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources

Abstract

The embodiment of the invention provides a method and a device for determining the starting progress of equipment, a storage medium and an electronic device, wherein the method comprises the following steps: sending an inquiry request to a first device, wherein the inquiry request is used for requesting to inquire a service state list of the first device, and starting states of a plurality of target services which are required to be started when the first device is started are recorded in the service state list; receiving a service state list fed back by the first equipment based on the query request; a start-up schedule of the first device is determined based on the service status list. According to the method and the device, the problem that the starting progress of the equipment cannot be determined in the related technology is solved, and the effect of accurately determining the starting progress of the equipment is achieved.

Description

Method and device for determining equipment starting progress, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a method and a device for determining a starting progress of equipment, a storage medium and an electronic device.
Background
In recent years, many embedded devices have started to be configured using WEB as a client, such as a home router can configure a network through WEB, dial-up account password for surfing the internet, and the like. After the configuration is issued on the WEB, the device needs to be restarted, and since the HTTP protocol is a request-response protocol, when the device is restarted, the WEB cannot immediately perceive that the device is restarted, and further, the WEB cannot judge the current restart progress of the device, that is, which processes have been started, which processes have not been started, and when the device has been completely started successfully.
Therefore, the problem that the starting progress of the equipment cannot be determined exists in the related art.
In view of the above problems in the related art, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a method and a device for determining the starting progress of equipment, a storage medium and an electronic device, which are used for at least solving the problem that the starting progress of the equipment cannot be determined in the related technology.
According to an embodiment of the present invention, a first method for determining a device start-up progress is provided, including: sending an inquiry request to a first device, wherein the inquiry request is used for requesting to inquire a service state list of the first device, and starting states of a plurality of target services which need to be started when the first device is started are recorded in the service state list; receiving the service state list fed back by the first device based on the query request; determining a start-up progress of the first device based on the service status list.
According to another embodiment of the present invention, there is further provided a second method for determining a device start-up progress, including: receiving an inquiry request sent by second equipment, wherein the inquiry request is used for requesting to inquire a service state list of first equipment, and starting states of a plurality of target services which need to be started when the first equipment is started are recorded in the service state list; acquiring the service state list based on the query request; sending the service status list to the second device to instruct the second device to determine a start-up progress of the first device based on the service status list.
According to another embodiment of the present invention, there is provided a first apparatus for determining a device start-up schedule, including: a first sending module, configured to send an inquiry request to a first device, where the inquiry request is used to request to inquire a service state list of the first device, and the service state list records starting states of multiple target services that need to be started when the first device is started; a first receiving module, configured to receive the service status list fed back by the first device based on the query request; a determining module, configured to determine a start progress of the first device based on the service status list.
According to another embodiment of the present invention, there is further provided a second apparatus for determining a device start-up progress, including: a second receiving module, configured to receive an inquiry request sent by a second device, where the inquiry request is used to request to inquire a service state list of a first device, and the service state list records starting states of multiple target services that need to be started when the first device is started; an obtaining module, configured to obtain the service status list based on the query request; a second sending module, configured to send the service status list to the second device, so as to instruct the second device to determine a starting progress of the first device based on the service status list.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the invention, the query request is sent to the first equipment to query the service state list of the first equipment, the service state list fed back by the first equipment based on the query request is received, and the starting progress of the first equipment is determined according to the service state list. The service state list of the first equipment can be received, and the starting progress of the first equipment can be determined according to the service state list, so that the problem that the starting progress of the equipment cannot be determined in the related technology can be solved, and the effect of accurately determining the starting progress of the equipment is achieved.
Drawings
Fig. 1 is a block diagram of a hardware structure of a mobile terminal of a method for determining a device start-up progress according to an embodiment of the present invention;
FIG. 2 is a first flowchart of a method for determining a device start-up schedule according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a configuration file recording a service status list according to an exemplary embodiment of the present invention;
FIG. 4 is a flowchart of a process for determining a boot of a first device, according to an illustrative embodiment of the present invention;
FIG. 5 is a flowchart II of a method for determining a device start-up schedule according to an embodiment of the present invention;
FIG. 6 is a flowchart of updating a service status list, according to an exemplary embodiment of the present invention;
fig. 7 is a first block diagram of the apparatus for determining the device start-up progress according to the embodiment of the present invention;
fig. 8 is a block diagram of a configuration of an apparatus for determining a device start-up progress according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the method running on a mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of the method for determining a device start-up progress according to the embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more processors 102 (only one is shown in fig. 1) (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of an application software, such as a computer program corresponding to the method for determining the device start-up schedule in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
In this embodiment, a method for determining a device start-up progress is provided, and fig. 2 is a first flowchart of the method for determining a device start-up progress according to the embodiment of the present invention, as shown in fig. 2, the process includes the following steps:
step S202, sending an inquiry request to a first device, wherein the inquiry request is used for requesting to inquire a service state list of the first device, and starting states of a plurality of target services which need to be started when the first device is started are recorded in the service state list;
step S204, receiving the service state list fed back by the first device based on the query request;
step S206, determining the starting progress of the first equipment based on the service state list.
In the foregoing embodiment, the first device may be a device such as a router, an execution subject of the foregoing steps may be a processing device such as a mobile phone, a computer, and the like, which has a data processing capability, the processing device may send an inquiry request to the first device to request to inquire about a service list state of the first device, after receiving the inquiry request, the first device may feed back a service state list to the processing device, and the processing device may determine a start-up progress of the first device according to the service state list. The service state list may be a configuration file F of the first device, where the file records start states of all application processes, and when the first device is just started, all programs are set to a false (not started) state, and each time a process is started, the process needs to modify the configuration file, and sets its own state to true (started). A schematic diagram of a profile for recording a service status list can be seen in fig. 3.
In the above embodiment, the first device is provided with a listening process a (hereinafter referred to as process a) for receiving and responding to requests from other processing devices and reading the content of the F file, and the other processing devices need to rely on an HTTP service of the first device when communicating with the a process, which is embodied by that the other processing devices send HTTP requests to the a process of the first device through the browser, that is, HTTP is a "communication basis" between the other devices and the a process.
According to the invention, the query request is sent to the first equipment to query the service state list of the first equipment, the service state list fed back by the first equipment based on the query request is received, and the starting progress of the first equipment is determined according to the service state list. The service state list of the first equipment can be received, and the starting progress of the first equipment can be determined according to the service state list, so that the problem that the starting progress of the equipment cannot be determined in the related technology can be solved, and the effect of accurately determining the starting progress of the equipment is achieved.
In one exemplary embodiment, determining the activation schedule of the first device based on the service status list comprises: determining that the first device is in a starting process under the condition that it is determined that an un-started target service exists based on the service state list; determining that the first device is started up completely, if it is determined that there is no target service that is not started up based on the service status list. In this embodiment, when a user needs to acquire process start information of a first device through another processing device, the another processing device may send a polling request (including but not limited to a connection type such as HTTP, socket, and the like) to the first device, that is, periodically acquire a state of each process in the first device from the monitor process a, and determine a start progress of the first device for a content returned by the process a. If the process A has a returned result, and the returned result of the process A has both a started process and an un-started process, the process represents that the equipment is in the process of restarting, and at the moment, a WEB end can prompt a user which processes are started and which processes are not started, so that the user can perceive the equipment restarting progress; and under the condition that the target service which is not started does not exist according to the service state list, the first equipment is determined to be started completely.
In one exemplary embodiment, after determining the boot-up schedule of the first device based on the service status list, the method further comprises: and displaying prompt information on a target display interface, wherein the prompt information is used for prompting the starting progress of the first equipment and/or displaying the starting state of the target service on the target display interface. In this embodiment, when the first device is started, the WEB, that is, the display interface of the processing device, may display that the device is being started, and prompt the user; in the restarting process, the WEB may also obtain a current starting schedule of the first device, for example: ssh being started, mysql being started, apache not yet started, etc.
In one exemplary embodiment, in a case where it is determined that there is no target service that is not started based on the service status list, determining that the first device is started completely includes: judging whether the prompt information exists on the target display interface or not; under the condition that the prompt information exists on the target display interface, determining that the interval between the starting completion time of the first device and the current time is smaller than a first time threshold; and under the condition that the prompt message does not exist on the target display interface, determining that the interval between the starting completion time of the first device and the current time is greater than a second time threshold. In this embodiment, when the service status list determines that there is no target service that has not been started, it is determined that the starting of the first device is completed, that is, if only a started process exists in the result returned by the process a, and there is no process that has not been started, it needs to be determined whether there is a prompt to restart on the WEB: if yes, the first equipment is started just and is started completely successfully at present, and then the user equipment is prompted to be started successfully, and the subsequent operation can be started; if not, the first device is in a normal operation state all the time, and no prompt is needed for the user.
In one exemplary embodiment, after sending the query request to the first device, the method further comprises: determining the start-up progress of the first device as starting up, in case it is determined that the service status list is not received. In this embodiment, in a case that it is determined that the service status list is not received, it is determined that the start schedule of the first device is start-up, that is, if the process a does not respond, that is, the process a is not running, it represents that the first device has been powered off or has just started to restart, at this time, it is required to prompt the user that the current device has been powered off on the WEB or prompt the user that the device is being started. Fig. 4 is a flowchart of a process for determining the start of the first device.
In one exemplary embodiment, sending the query request to the first device includes: determining a pre-configured transmission period; and sending the query request to the first equipment according to the sending period. In this embodiment, the processing device may send the query request to the first device according to a preset sending period, where the sending period may be 1 minute (this value is merely an exemplary illustration, and the sending period is not limited in the present invention, and may also be configured to be 30 seconds, 1 minute 30 seconds, 2 minutes, and the like).
Fig. 5 is a second flowchart of a method for determining a device start-up progress according to an embodiment of the present invention, and as shown in fig. 5, the process includes the following steps:
step S502, receiving an inquiry request sent by a second device, wherein the inquiry request is used for requesting to inquire a service state list of a first device, and starting states of a plurality of target services which need to be started when the first device is started are recorded in the service state list;
step S504, obtain the said service status tabulation on the basis of the said inquiry request;
step S506, sending the service status list to the second device, so as to instruct the second device to determine a starting progress of the first device based on the service status list.
In the foregoing embodiment, the second device may be a mobile phone, a computer, or a processing device with data processing capability, the execution subject of the foregoing steps may be a device such as a router, the processing device may send an inquiry request to the first device to request to inquire about a service list state of the first device, the first device may feed back a service state list to the processing device after receiving the inquiry request, and the processing device may determine a start-up progress of the first device according to the service state list. The service state list may be a configuration file F of the first device, where the file records start states of all application processes, and when the first device is just started, all programs are set to a false (not started) state, and each time a process is started, the process needs to modify the configuration file, and sets its own state to true (started). A schematic diagram of a profile for recording a service status list can be seen in fig. 3.
In the above embodiment, the first device is provided with a listening process a (hereinafter referred to as process a) for receiving and responding to requests from other processing devices and reading the content of the F file, and the other processing devices need to rely on an HTTP service of the first device when communicating with the a process, which is embodied by that the other processing devices send HTTP requests to the a process of the first device through the browser, that is, HTTP is a "communication basis" between the other devices and the a process.
According to the invention, the inquiry request sent by the second equipment is received to inquire the service state list of the first equipment, the service state list fed back by the first equipment based on the inquiry request is received, and the starting progress of the first equipment is determined according to the service state list. The service state list of the first equipment can be received, and the starting progress of the first equipment can be determined according to the service state list, so that the problem that the starting progress of the equipment cannot be determined in the related technology can be solved, and the effect of accurately determining the starting progress of the equipment is achieved.
In an exemplary embodiment, before receiving the query request sent by the second device, the method further includes: respectively determining the priorities of a plurality of target services under the condition that the first equipment needs to be started; and starting a plurality of target services in sequence according to the priority from high to low. In this embodiment, when it is determined that the first device needs to be started, priorities of a plurality of target services are determined, and the plurality of target services are started in sequence from high to low.
In one exemplary embodiment, before determining the priorities of the plurality of target services, respectively, the method further comprises: configuring a priority of an HTTP service to be highest among a plurality of the target services, wherein the plurality of the target services include the HTTP service. In this embodiment, after the first device is started, the HTTP service may be started at the first time. The starting mode is as follows: in the self-starting configuration file list of the first device, the priority of the HTTP service is set to be the highest, and then other devices can send and acquire data to the monitoring process of the first device through HTTP.
In one exemplary embodiment, before transmitting the service status list to the second device, the method includes: updating the service status list based on the launch status of a plurality of the target services. In this embodiment, before the device is started, the states of all processes in the configuration file F may be set to false, which represents that all processes have not been started yet; starting each process, modifying the configuration file F after each process is started, setting the starting state of the configuration file F to true, and representing that the configuration file F is started; each process actively sets the starting state of the process after starting. The flowchart of updating the service status list can be seen in fig. 6.
In the foregoing embodiment, the first device may set a monitoring process a of the process starting progress, where the process a is started with the first priority after the device is restarted, and is used to record all process starting progresses of the first device and support other devices to perform query; and other devices send requests to the process A in a round-robin manner, when the requests do not respond, the devices are shut down, when the requests respond, the started processes and the un-started process list are returned, information is prompted to the user, and when the un-started process list is empty, the devices are completely started. That is, when the device is restarted, the round-robin request of the WEB has no response, which means that all processes of the first device are closed, and at this time, the user can be directly prompted, so that the user is prevented from continuing to waste time and perform invalid operation without knowing that the device is restarted, and the real-time performance is higher. In addition, when the equipment is restarted, the monitoring process A is started preferentially, and the process A is used for informing other equipment of the starting progress of all processes of the first equipment, so that a user can know the starting progress of the equipment more clearly.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, a device for determining a device start-up progress is further provided, where the device is used to implement the foregoing embodiment and the preferred embodiments, and details are not repeated for what has been described. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 7 is a block diagram of a first structure of an apparatus for determining a device start-up progress according to an embodiment of the present invention, as shown in fig. 7, the apparatus includes:
a first sending module 72, configured to send an inquiry request to a first device, where the inquiry request is used to request to inquire a service state list of the first device, and start states of multiple target services that need to be started when the first device is started are recorded in the service state list;
a first receiving module 74, configured to receive the service status list fed back by the first device based on the query request;
a determining module 76 for determining a start-up schedule of the first device based on the service status list.
In an exemplary embodiment, the determining module 76 may determine the start-up schedule of the first device based on the service status list by: determining that the first device is in a starting process under the condition that it is determined that an un-started target service exists based on the service state list; determining that the first device is started up completely, if it is determined that there is no target service that is not started up based on the service status list.
In an exemplary embodiment, the apparatus may be configured to display a prompt message on a target display interface after determining a start progress of the first device based on the service status list, where the prompt message is used to prompt the start progress of the first device and/or display a start status of the target service on the target display interface.
In an exemplary embodiment, the determining module 76 may determine that the first device booting is complete if it is determined that there is no target service not booted based on the service status list by: judging whether the prompt information exists on the target display interface or not; under the condition that the prompt information exists on the target display interface, determining that the interval between the time when the first device is started and the current time is smaller than a first time threshold; and under the condition that the prompt message does not exist on the target display interface, determining that the interval between the starting completion time of the first device and the current time is greater than a second time threshold.
In an example embodiment, the apparatus may be configured to determine, after sending the query request to the first device, that the start-up schedule of the first device is a start-up in case it is determined that the service status list is not received.
In an exemplary embodiment, the first sending module 72 may send the query request to the first device by: determining a pre-configured sending period; and sending the query request to the first equipment according to the sending period.
Fig. 8 is a block diagram of a second structure of an apparatus for determining a device start-up progress according to an embodiment of the present invention, and as shown in fig. 8, the apparatus includes:
a second receiving module 82, configured to receive an inquiry request sent by a second device, where the inquiry request is used to request to inquire a service state list of a first device, and a starting state of multiple target services that need to be started when the first device is started is recorded in the service state list;
an obtaining module 84, configured to obtain the service status list based on the query request;
a second sending module 86, configured to send the service status list to the second device, so as to instruct the second device to determine a starting progress of the first device based on the service status list.
In an exemplary embodiment, the apparatus may be configured to, before receiving a query request sent by a second device, determine priorities of a plurality of the target services, respectively, in case it is determined that the first device needs to be started; and starting a plurality of target services in sequence according to the priority from high to low.
In an exemplary embodiment, the apparatus may be further configured to configure a priority of an HTTP service to be highest among a plurality of the target services before determining priorities of the target services, respectively, where the plurality of the target services include the HTTP service.
In an exemplary embodiment, the apparatus may be further configured to update the service status list based on the startup status of a plurality of the target services before sending the service status list to the second device.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. A method for determining a device start-up schedule, comprising:
sending an inquiry request to a first device, wherein the inquiry request is used for requesting to inquire a service state list of the first device, starting states of a plurality of target services which need to be started when the first device is started are recorded in the service state list, the plurality of target services comprise HTTP services, the HTTP services have the highest priority among the plurality of target services, and the first device receives the inquiry request and sends the service state list through the HTTP services;
receiving the service state list fed back by the first device based on the query request;
determining a start-up progress of the first device based on the service status list;
after sending the query request to the first device, the method further comprises: determining the start-up progress of the first device as starting up, in case it is determined that the service status list is not received.
2. The method of claim 1, wherein determining a boot-up schedule for the first device based on the service status list comprises:
determining that the first device is in a starting process under the condition that it is determined that an un-started target service exists based on the service state list;
determining that the first device is started up completely, if it is determined that there is no target service that is not started up based on the service status list.
3. The method of claim 2, wherein after determining a boot-up schedule for the first device based on the service status list, the method further comprises:
and displaying prompt information on a target display interface, wherein the prompt information is used for prompting the starting progress of the first equipment and/or displaying the starting state of the target service on the target display interface.
4. The method of claim 3, wherein determining that the first device activation is complete if it is determined, based on the service status list, that there is no target service that is not activated comprises:
judging whether the prompt information exists on the target display interface or not;
under the condition that the prompt information exists on the target display interface, determining that the interval between the starting completion time of the first device and the current time is smaller than a first time threshold;
and under the condition that the prompt message does not exist on the target display interface, determining that the interval between the starting completion time of the first device and the current time is greater than a second time threshold.
5. The method of claim 1, wherein sending the query request to the first device comprises:
determining a pre-configured transmission period;
and sending the query request to the first equipment according to the sending period.
6. A method for determining a device start-up schedule, comprising:
receiving an inquiry request sent by second equipment, wherein the inquiry request is used for requesting to inquire a service state list of first equipment, starting states of a plurality of target services which need to be started when the first equipment is started are recorded in the service state list, the plurality of target services comprise HTTP services, the HTTP services have the highest priority among the plurality of target services, and the first equipment receives the inquiry request and sends the service state list through the HTTP services;
acquiring the service state list based on the query request;
sending the service status list to the second device to instruct the second device to determine a starting progress of the first device based on the service status list; and the second equipment determines the starting progress of the first equipment as starting under the condition that the service state list is not received.
7. The method of claim 6, wherein prior to receiving the query request sent by the second device, the method further comprises:
respectively determining the priorities of a plurality of target services under the condition that the first equipment needs to be started;
and starting a plurality of target services in sequence according to the priority from high to low.
8. The method of claim 6, wherein prior to sending the service status list to the second device, the method comprises:
updating the service status list based on the launch status of a plurality of the target services.
9. An apparatus for determining a device activation schedule, comprising:
a first sending module, configured to send an inquiry request to a first device, where the inquiry request is used to request to inquire a service state list of the first device, where the service state list records start states of a plurality of target services that need to be started when the first device is started, the plurality of target services include HTTP services, where the HTTP services have a highest priority among the plurality of target services, and the first device receives the inquiry request and sends the service state list through the HTTP services;
a first receiving module, configured to receive the service status list fed back by the first device based on the query request;
a determining module, configured to determine a starting progress of the first device based on the service status list;
the apparatus is further configured to determine, after sending the query request to the first device, that the start-up progress of the first device is start-up in a case where it is determined that the service status list is not received.
10. An apparatus for determining a device activation schedule, comprising:
a second receiving module, configured to receive an inquiry request sent by a second device, where the inquiry request is used to request to inquire a service state list of a first device, where the service state list records start states of a plurality of target services that need to be started when the first device is started, the plurality of target services include HTTP services, where the HTTP services have a highest priority among the plurality of target services, and the first device receives the inquiry request and sends the service state list through the HTTP services;
an obtaining module, configured to obtain the service status list based on the query request;
a second sending module, configured to send the service status list to the second device, so as to instruct the second device to determine a starting progress of the first device based on the service status list, where the second device determines that the starting progress of the first device is starting when determining that the service status list is not received.
11. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 5 when executed, or to perform the method of any of claims 6 to 8.
12. An electronic apparatus comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 5 or to perform the method of any of claims 6 to 8.
CN202011204998.9A 2020-11-02 2020-11-02 Method and device for determining equipment starting progress, storage medium and electronic device Active CN112311889B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011204998.9A CN112311889B (en) 2020-11-02 2020-11-02 Method and device for determining equipment starting progress, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011204998.9A CN112311889B (en) 2020-11-02 2020-11-02 Method and device for determining equipment starting progress, storage medium and electronic device

Publications (2)

Publication Number Publication Date
CN112311889A CN112311889A (en) 2021-02-02
CN112311889B true CN112311889B (en) 2023-03-21

Family

ID=74333646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011204998.9A Active CN112311889B (en) 2020-11-02 2020-11-02 Method and device for determining equipment starting progress, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112311889B (en)

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100456259C (en) * 2006-06-13 2009-01-28 英业达股份有限公司 Method for real responsing opening program prograss and its device
CN101533352A (en) * 2008-03-14 2009-09-16 崴强科技股份有限公司 Method for indicating start progress of digital device
US10114672B2 (en) * 2013-12-31 2018-10-30 Thomson Licensing User-centered task scheduling for multi-screen viewing in cloud computing environment
CN106844148B (en) * 2016-12-30 2020-01-14 清华大学 Virtual machine starting progress monitoring method and device
US10540201B2 (en) * 2017-07-31 2020-01-21 Vmware, Inc. Systems and methods for task processing in a distributed environment
CN107798108B (en) * 2017-10-30 2020-11-10 中国联合网络通信集团有限公司 Asynchronous task query method and device
CN108881493A (en) * 2018-08-08 2018-11-23 郑州云海信息技术有限公司 A kind of Task Progress information-pushing method, device and equipment
CN110222926A (en) * 2019-04-25 2019-09-10 深圳壹账通智能科技有限公司 Progress queries method and device, storage medium, the computer equipment of outgoing call task
CN110381567B (en) * 2019-07-08 2021-08-17 浙江大华技术股份有限公司 Configuration progress management method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112311889A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
CN110532077B (en) Task processing method and device and storage medium
CN106537957B (en) Method and server for managing configuration files
CN112187531B (en) Module upgrading method and system, storage medium and electronic device
WO2015143794A1 (en) Creating and upgrading methods, server, terminal, upgrading system, and storage media
CN111273924B (en) Software updating method and device
CN110012527B (en) Awakening method and electronic equipment
CN115658113A (en) Server self-starting method and device, readable storage medium and electronic equipment
CN112764803A (en) Version upgrading method and device, storage medium and electronic device
WO2012094853A1 (en) Method, device and system for installing terminal software
CN112202652A (en) Method and device for displaying information of equipment to be networked, storage medium and electronic device
CN112311889B (en) Method and device for determining equipment starting progress, storage medium and electronic device
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device
CN102970312A (en) Network booting method and system based on peer-to-peer (P2P) diskless device
CN110418092B (en) Video recording management system, method, control management node and recording node
CN112527346A (en) Software upgrading method and device, storage medium and electronic device
EP3649762B1 (en) Method and apparatus for rapidly configuring network element device for plug and play
CN111586484B (en) Auxiliary screen system upgrading method, device and equipment of display equipment and storage medium
CN114286431A (en) Method and device for starting low power consumption mode, storage medium and electronic device
CN113965444A (en) Remote recovery method and device for home gateway
CN111310130A (en) Authorization authentication processing method, device, storage medium and electronic device
CN111488207A (en) Application process keep-alive method, device, network equipment and storage medium
CN107547723B (en) Method and device for receiving information by application
CN114936043B (en) Method, device, equipment and storage medium for starting pooled heterogeneous resources
CN112118121A (en) Method and device for client device configuration management
CN112769889B (en) Service data pushing method and device, storage medium and electronic device

Legal Events

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