CN114116034A - Distributed flashing method and device - Google Patents

Distributed flashing method and device Download PDF

Info

Publication number
CN114116034A
CN114116034A CN202111453724.8A CN202111453724A CN114116034A CN 114116034 A CN114116034 A CN 114116034A CN 202111453724 A CN202111453724 A CN 202111453724A CN 114116034 A CN114116034 A CN 114116034A
Authority
CN
China
Prior art keywords
flashing
equipment
server
task
tool
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111453724.8A
Other languages
Chinese (zh)
Other versions
CN114116034B (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.)
Spreadtrum Communications Tianjin Co Ltd
Original Assignee
Spreadtrum Communications Tianjin 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 Spreadtrum Communications Tianjin Co Ltd filed Critical Spreadtrum Communications Tianjin Co Ltd
Priority to CN202111453724.8A priority Critical patent/CN114116034B/en
Publication of CN114116034A publication Critical patent/CN114116034A/en
Application granted granted Critical
Publication of CN114116034B publication Critical patent/CN114116034B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4405Initialisation of multiprocessor systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1438Restarting or rejuvenating

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Quality & Reliability (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The present application relates to the field of mobile devices, and in particular, to a distributed flashing method and apparatus. A distributed flashing method is applied to a host device, and the host device is hung with a plurality of mobile devices and comprises the following steps: receiving a flashing task sent by a flashing server, wherein the flashing task comprises: the method comprises the steps of 1, waiting for flashing equipment information and flashing tools; sending a restarting instruction to first equipment matched with the information of the equipment to be refreshed so as to restart the first equipment, and exposing a refreshing port in the restarting process; when the flashing port of the first equipment is detected, sending a downloading mode switching instruction to the first equipment so as to switch the first equipment to a downloading mode; and after the first equipment is determined to be switched to the downloading mode, the flashing operation is executed on the first equipment through the flashing tool. The distributed flashing is realized through the host equipment and the flashing server, and the flashing can be automatically finished and restarted after the equipment cannot be normally started.

Description

Distributed flashing method and device
[ technical field ] A method for producing a semiconductor device
The present application relates to the field of mobile devices, and in particular, to a distributed flashing method and apparatus.
[ background of the invention ]
The host device performs a test task on the mobile device mounted on the host device in the LAVA environment. When a test task is executed, a newly compiled image file needs to be flushed into the mobile equipment, but due to program change, the newly flushed file may be unmatched, so that the LAVA test task fails, and the mobile equipment cannot be normally started.
For such a situation, it is usually necessary to perform a flashing operation on the mobile device through a flashing tool, such as Health Check, to restore the mobile device to normal operation. When the mobile device is not normally powered on after the power-on is completed, the mobile device needs to be handled by manually swiping an automatic agent configuration Package (PAC). However, under some condition limitations, it cannot be guaranteed that every mobile device which cannot be normally started can be manually refreshed.
[ summary of the invention ]
In view of this, embodiments of the present invention provide a distributed flashing method and apparatus, so as to solve the problem that in the prior art, when a LAVA test task fails and a mobile phone cannot be normally turned on, automatic flashing cannot be implemented on a server.
In a first aspect, this embodiment of a distributed flashing method is applied to a host device, where the host device is mounted with a plurality of mobile devices, and the method includes:
receiving a flashing task sent by a flashing server, wherein the flashing task comprises: the method comprises the steps of 1, waiting for flashing equipment information and flashing tools;
determining a first device matched with the information of the device to be refreshed from the mounted mobile devices, and sending a restart instruction to the first device to restart the first device and expose a refresh port in the restart process;
when the flashing port of the first equipment is detected, sending a downloading mode switching instruction to the first equipment so as to switch the first equipment to a downloading mode;
and after the first equipment is determined to be switched to the downloading mode, the flashing operation is executed on the first equipment through the flashing tool.
Optionally, before receiving the flashing task sent by the flashing server, the method further includes:
when detecting that a compiling server generates a new compiling node, acquiring an automatic proxy configuration PAC (programmable automation controller) package of the new compiling node;
wherein performing a flashing operation on the first device by the flashing tool comprises: and determining a first PAC packet matched with the first equipment from the stored PAC packets, and swiping the first PAC packet into the first equipment through the flashing tool so that the first equipment performs flashing according to the first PAC packet.
Optionally, the machine-refreshing task further includes: a path identification tool;
the path identification tool is used for determining a storage path of the first PAC package matched with the first equipment and providing the first PAC package to the flashing tool based on the storage path.
Optionally, the receiving the flashing task sent by the flashing server includes:
after each mobile device connected with the host device executes a test task, reporting a test task execution result to the flashing server;
and receiving a flashing task sent by a flashing server, wherein the flashing task comprises flashing equipment information of first equipment which fails to execute the test task.
Optionally, the host device further includes: a power management module;
the power management module is used for determining the first equipment needing to be refreshed in all the mobile equipment connected with the host equipment according to the information of the equipment to be refreshed, and supplying power to the first equipment so as to restart the first equipment.
Optionally, after performing a flashing operation on the first device by the flashing tool, the method further includes:
detecting whether the first equipment completes restarting;
and reporting a flashing record of the first equipment to the flashing server if the first equipment is restarted and normally started.
In a second aspect, the present embodiment provides a distributed flash apparatus, which includes:
the receiving module is used for receiving the flashing tasks sent by the flashing server, and the flashing tasks comprise: the method comprises the steps of 1, waiting for flashing equipment information and flashing tools;
the determining module is used for determining first equipment matched with the information of the equipment to be refreshed from the mounted mobile equipment;
the first sending module is used for sending a restarting instruction to the first equipment so as to restart the first equipment and expose a flashing port in the restarting process;
the second sending module is used for sending a downloading mode switching instruction to the first equipment when the flashing port of the first equipment is detected so as to switch the first equipment to a downloading mode;
and the flashing module is used for executing flashing operation on the first equipment through the flashing tool after the first equipment is determined to be switched to the downloading mode.
Optionally, the distributed flash apparatus further includes: a power management module;
the power management module is used for determining the first equipment needing to be refreshed in all the mobile equipment connected with the host equipment according to the information of the equipment to be refreshed, and supplying power to the first equipment so as to restart the first equipment.
In a third aspect, this embodiment provides a distributed flash device, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor being capable of performing the method of any of the first aspects when invoked by the program instructions.
Optionally, this embodiment provides a computer-readable storage medium, where the computer-readable storage medium includes a stored program, where when the program runs, the computer-readable storage medium is controlled to implement the method according to any one of the first aspect.
Through the technical scheme, when the mobile equipment fails to execute the test task in the LAVA environment and cannot be normally started, the distributed automatic flashing can be realized through the flashing server, and the problem that the unattended automatic flashing cannot be realized due to the fact that manual flashing is required in the prior art is solved.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic structural diagram of a distributed flash system according to an embodiment of the present invention;
fig. 2 is a flowchart of a distributed flashing method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another distributed flashing method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a distributed brushing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
[ detailed description ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention firstly needs to establish a distributed flashing system. As shown in fig. 1, the distributed flash system includes: host device 101, flash server 102, and mobile device 103.
Wherein the host device 101 is connected to the mobile device 103 via USB, and the host device 101 can be connected to a plurality of mobile devices 103 at the same time. The flush server 102 may be installed on the same host as the host device 101, or may not be installed on the same host as the host device 101.
The mobile devices 103 are all connected to the host device 101, and execute the LAVA test task through the host device 101, wherein some of the mobile devices 103 fail to execute the LAVA task, and the mobile phone cannot be normally powered on, and at this time, the mobile phone needs to be refreshed through the host device 101 to complete the restart and restore the normal working state.
The host device 101 is configured to receive a flashing instruction issued by the flashing server 102, complete a flashing operation on the specified mobile device 103 according to the flashing instruction, and upload a flashing record to the flashing server 102 after completing the flashing.
Before the host device 101 receives the flashing instruction, a test result of the mobile device 103 connected to the host device 101 performing the LAVA test task is reported to the flashing server 102.
The flashing server 102 is configured to issue a flashing task to the host device 101 according to a LAVA test task result reported by the host device, receive a flashing record reported by the host device 101 after the host device 101 completes flashing, and store the flashing record for later query.
Specifically, after the mobile device 103 executes the LAVA test task, the flush server 102 receives the LAVA task execution result reported by the host device 101, and carries the information about the to-be-flushed device of the mobile device 103 that fails to execute the LAVA task in the flush task sent to the host device 101, so as to indicate to which mobile device the host device executes the flush operation. Wherein the flush instruction is generally a Health Check flush task.
In conjunction with the distributed flashing system shown in fig. 1, an embodiment of the present invention provides a distributed flashing method. Based on the method, the automatic flashing of the mobile equipment which can not be normally started can be realized, so that the mobile equipment is normally started and the normal working state is recovered. The method is implemented by a host device in the distributed flash system shown in fig. 1, and as shown in fig. 2, the method includes the following processing steps:
201, receiving a flashing task sent by a flashing server, wherein the flashing task comprises: the system comprises equipment information to be refreshed and a refreshing tool.
Specifically, after the mobile device connected to the host device performs the LAVA test task, the host device reports the LAVA task result to the server for flashing regardless of whether the LAVA test task is successful. The system comprises a server host, a machine refreshing server and a host device, wherein the machine refreshing server automatically sends a machine refreshing task to the host device after receiving a LAVA test task result reported by the server host, and the machine refreshing task also comprises information of equipment to be refreshed of equipment which fails to execute the LAVA task, and the information is used for indicating to which mobile equipment the host device should execute the machine refreshing operation.
Generally, information of a device to be refreshed of a mobile device connected to a host device for a LAVA test needs to be uploaded to a refresh server in advance. After the flashing server receives the LAVA test result sent by the host equipment, the flashing server issues a flashing instruction to the host equipment, and simultaneously issues information of equipment to be flashed of the mobile equipment which needs flashing together with the failure of the LAVA test task to the host equipment.
Meanwhile, a machine-refreshing tool is integrated in the machine-refreshing task, and the host equipment can execute machine-refreshing operation on the mobile equipment through the machine-refreshing tool. Wherein the brushing tool is typically a DLoader.
And 202, determining a first device matched with the information of the standby device from the mounted mobile devices.
Specifically, according to the information of the device to be refreshed in the refresh task sent by the refresh server, the first device needing to be refreshed is determined from the mounted mobile devices.
And 203, sending a restart instruction to the first device so as to restart the first device, and exposing the flash port in the restart process.
Specifically, after receiving the flashing device information sent by the flashing server, the mobile device specified by the flashing device information and needing flashing is determined as the first device, and the flashing operation is started to be executed on the first device.
When the flashing task is executed, firstly, power is supplied to the first equipment through a power management module in the host equipment, and a restarting instruction is sent to the first equipment, so that the first equipment is restarted. The first equipment is restarted after receiving the restart instruction, and the flashing port is exposed shortly before the screen is turned on, so that the host equipment can confirm whether the first equipment is flashed. The flush operation is terminated when the host device does not detect that the first device exposes the flush port.
The flush port generally refers to a U2S port, and after receiving a restart command sent by the host device, the USB analog port U2S of the first device is temporarily exposed for the host device to recognize, and only when the host device recognizes the U2S port, the flush operation on the first device is performed, otherwise, the flush operation on the first device is terminated.
Since the host device is simultaneously connected with a plurality of mobile devices through the USB, the first device determined by the flashing information issued by the flashing server can be one or more mobile devices. When the host device determines a plurality of mobile devices which cannot be restarted through the flashing information as the first devices, the host device simultaneously sends a restarting instruction to the plurality of first devices to help all the first devices to be restarted at the same time.
And 204, when detecting the flashing port of the first equipment, sending a downloading mode switching instruction to the first equipment so as to switch the first equipment to a downloading mode.
Specifically, after detecting that the first device exposes the flash port, a download mode switching instruction is sent to the first device. And after receiving the download mode switching instruction, the first equipment is switched from the normal boot-up mode to the download mode, exposes the download port and prepares for flashing.
And 205, after determining that the first device is switched to the downloading mode, executing a flashing operation on the first device through the flashing tool.
Specifically, the host device performs a flashing operation on the first device through a flashing tool integrated in the flashing task, and the PAC package used for completing the restarting of the hundred million mobile devices is flashed into the first device, so as to complete the flashing of the first device, and enable the first device to be restarted normally.
And 206, reporting the flashing record of the first equipment to a flashing server.
Specifically, after the host device completes the booting operation of the first device, the first device may complete normal reboot and complete booting. And when the first equipment is detected to finish the startup, reporting the flashing record to the flashing server so as to finish the record of the flashing process and time by the flashing server, thereby facilitating the inquiry in the future.
In the embodiment, distributed flashing is realized through the host equipment and the flashing server, flashing can be automatically completed and restarted after the LAVA test task of the mobile equipment fails, and manual operation is not needed.
When the host device executes a flashing task on the first device through the flashing tool, the PAC package corresponding to the first device must be selected to perform the flashing task, and the flashing task can be normally completed. If the selected PAC package is not a PAC package corresponding to the first device, the first device may not be normally helped to complete the restart even if it is flushed into the first device.
Specifically, the path identification tool is configured to determine a storage path of a first PAC package matching the first apparatus, and provide the first PAC package to the flashing tool based on the storage path. Wherein, the path identification tool is usually Health Check Definition.
When the host device executes a flashing task through the flashing tool, parameters such as a PAC packet path corresponding to the first device are generally transmitted through the path identification tool to help the flashing tool to flash the first PAC packet correctly corresponding to the first device into the first device, so as to complete the restart of the first device.
In some embodiments, the host device does not necessarily have a PAC package matching the mobile device stored therein, so the host device needs to acquire and update the PAC package at any time before performing the flashing task.
The monitoring equipment is independently arranged, can monitor the compiling server in real time, can download the PAC package of a new compiling node when monitoring that the compiling server generates the new compiling node, and sends the newly downloaded PAC package to the host equipment so as to help the host equipment to complete a flashing task.
Referring to fig. 3, a specific embodiment of a distributed flashing method provided in an embodiment of the present invention is an embodiment, where an execution subject of the embodiment is a host device in the distributed flashing system shown in fig. 1, and the method includes:
301, when detecting that the compiling server generates a new compiling node, acquiring the automatic proxy configuration PAC package of the new compiling node.
Specifically, receiving a PAC package newly downloaded by the monitoring equipment for subsequent flashing operation.
302, receiving a flashing task sent by a flashing server, wherein the flashing task comprises: the system comprises equipment information to be refreshed and a refreshing tool.
And 303, determining a first device matched with the information of the equipment to be refreshed from the mounted mobile devices.
And 304, sending a restart instruction to the first device so as to restart the first device and expose the flash port in the restart process.
305, when detecting the flashing port of the first device, sending a downloading mode switching instruction to the first device so as to switch the first device to the downloading mode.
And 306, after determining that the first device is switched to the download mode, the flashing tool calls the PAC package corresponding to the first device through the path identification tool, and the corresponding PAC package is flashed into the first device to complete the flashing operation performed on the first device.
Specifically, the path identification tool is configured to provide PAC packet parameter information corresponding to the first device, for example, which specific PAC packet of all PAC packets in the first device corresponds to the first device, and a path address where the corresponding PAC packet is stored, and the like, and the flashing tool calls the PAC packet corresponding to the first device through the PAC packet parameter information provided by the path identification tool, and flashes the PAC packet into the first device, thereby completing the restart of the first device.
307, reporting the flashing record of the first device to the flashing server.
The PAC package is captured and stored in real time, preparation is made for a subsequent flashing process, and once the mobile equipment connected with the host equipment fails in a testing and setting task, the mobile equipment can be restarted by flashing the PAC package corresponding to the mobile equipment.
Corresponding to the distributed computer refreshing method, the embodiment of the invention also provides a distributed computer refreshing device. Referring to fig. 4, the distributed flashing apparatus may include: the system comprises a receiving module 401, a determining module 402, a first sending module 403, a second sending module 404 and a flashing module 405.
The receiving module 401 is configured to receive a flashing task sent by a flashing server, where the flashing task includes: the system comprises equipment information to be refreshed and a refreshing tool.
A determining module 402, configured to determine, from the mounted mobile devices, a first device that matches the information of the device to be refreshed.
The first sending module 403 is configured to send a restart instruction to the first device, so as to restart the first device, and expose the flush port during the restart.
A second sending module 404, configured to send a download mode switching instruction to the first device when the flush port of the first device is detected, so that the first device is switched to a download mode;
and the flashing module 405, after determining that the first device is switched to the downloading mode, executing flashing operation on the first device through the flashing tool.
The distributed flash apparatus provided in the embodiment shown in fig. 4 may be used to implement the technical solution of the method embodiment shown in this specification, and the implementation principle and the technical effect may be further described with reference to the related description in the method embodiment.
FIG. 5 is a schematic block diagram of an embodiment of an electronic device according to the present disclosure, which may include at least one processor, as shown in FIG. 5; and at least one memory communicatively coupled to the processing unit, wherein: the memory stores program instructions executable by the processing unit, and the processor calls the program instructions to execute the distributed flashing method provided by the embodiment.
The electronic device may be a device capable of performing an intelligent conversation with a user, for example: the cloud server and the embodiment of the present specification do not limit the specific form of the electronic device. It is understood that the electronic device herein is a machine as mentioned in the method embodiments.
FIG. 5 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present specification. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present specification.
As shown in fig. 5, the electronic device is in the form of a general purpose computing device. Components of the electronic device may include, but are not limited to: one or more processors 510, a communication interface 520, a memory 530, and a communication bus 540 that couples various system components including the memory 530, the communication interface 520, and the processors 510.
Communication bus 540 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. These architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.
Electronic devices typically include a variety of computer system readable media. Such media may be any available media that is accessible by the electronic device and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 530 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) and/or cache Memory. The electronic device may further include other removable/non-removable, volatile/nonvolatile computer system storage media. Memory 530 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the specification.
A program/utility having a set (at least one) of program modules, including but not limited to an operating system, one or more application programs, other program modules, and program data, may be stored in memory 530, each of which examples or some combination may include an implementation of a network environment. The program modules generally perform the functions and/or methodologies of the embodiments described herein.
The processor 510 executes various functional applications and data processing by executing programs stored in the memory 530, for example, implementing the distributed flash method provided by the embodiments illustrated in this specification.
The embodiments of the present specification provide a non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform a distributed flashing method provided by the embodiments shown in the present specification.
The non-transitory computer readable storage medium described above may take any combination of one or more computer readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash Memory, an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present description may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of Network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present specification, "a plurality" means at least two, e.g., two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present description in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present description.
The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrases "if determined" or "if detected (a stated condition or event)" may be interpreted as "when determined" or "in response to a determination" or "when detected (a stated condition or event)" or "in response to a detection (a stated condition or event)", depending on the context.
It should be noted that the terminal referred to in the embodiments of the present disclosure may include, but is not limited to, a Personal Computer (Personal Computer; hereinafter, referred to as PC), a Personal Digital Assistant (Personal Digital Assistant; hereinafter, referred to as PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a mobile phone, an MP3 player, an MP4 player, and the like.
In the embodiments provided in the present specification, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present description may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods described in the embodiments of the present disclosure.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (10)

1. A distributed flashing method is applied to a host device, wherein the host device is hung with a plurality of mobile devices, and the method comprises the following steps:
receiving a flashing task sent by a flashing server, wherein the flashing task comprises: the method comprises the steps of 1, waiting for flashing equipment information and flashing tools;
determining a first device matched with the information of the device to be refreshed from the mounted mobile devices, and sending a restart instruction to the first device to restart the first device and expose a refresh port in the restart process;
when the flashing port of the first equipment is detected, sending a downloading mode switching instruction to the first equipment so as to switch the first equipment to a downloading mode;
and after the first equipment is determined to be switched to the downloading mode, the flashing operation is executed on the first equipment through the flashing tool.
2. The method of claim 1, wherein before receiving the flashing task sent by the flashing server, the method further comprises:
when detecting that a compiling server generates a new compiling node, acquiring an automatic proxy configuration PAC (programmable automation controller) package of the new compiling node;
wherein performing a flashing operation on the first device by the flashing tool comprises: and determining a first PAC packet matched with the first equipment from the stored PAC packets, and swiping the first PAC packet into the first equipment through the flashing tool so that the first equipment performs flashing according to the first PAC packet.
3. The method of claim 2, wherein the flashing task further comprises: a path identification tool;
the path identification tool is used for determining a storage path of the first PAC package matched with the first equipment and providing the first PAC package to the flashing tool based on the storage path.
4. The method according to claim 1, wherein the receiving the flashing task sent by the flashing server comprises:
after each mobile device connected with the host device executes a test task, reporting a test task execution result to the flashing server;
and receiving a flashing task sent by a flashing server, wherein the flashing task comprises flashing equipment information of first equipment which fails to execute the test task.
5. The method of claim 1, wherein the host device further comprises: a power management module;
the power management module is used for determining the first equipment needing to be refreshed in all the mobile equipment connected with the host equipment according to the information of the equipment to be refreshed, and supplying power to the first equipment so as to restart the first equipment.
6. The method of claim 1, wherein after performing a brushing operation on the first device by the brushing tool, the method further comprises:
detecting whether the first equipment completes restarting;
and reporting a flashing record of the first equipment to the flashing server if the first equipment is restarted and normally started.
7. A distributed brushing device, comprising:
the receiving module is used for receiving the flashing tasks sent by the flashing server, and the flashing tasks comprise: the method comprises the steps of 1, waiting for flashing equipment information and flashing tools;
the determining module is used for determining first equipment matched with the information of the equipment to be refreshed from the mounted mobile equipment;
the first sending module is used for sending a restarting instruction to the first equipment so as to restart the first equipment and expose a flashing port in the restarting process;
the second sending module is used for sending a downloading mode switching instruction to the first equipment when the flashing port of the first equipment is detected so as to switch the first equipment to a downloading mode;
and the flashing module is used for executing flashing operation on the first equipment through the flashing tool after the first equipment is determined to be switched to the downloading mode.
8. The apparatus of claim 7, wherein the distributed flash apparatus further comprises: a power management module;
the power management module is used for determining the first equipment needing to be refreshed in all the mobile equipment connected with the host equipment according to the information of the equipment to be refreshed, and supplying power to the first equipment so as to restart the first equipment.
9. A distributed brushing device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 6.
10. A computer-readable storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus on which the computer-readable storage medium resides to perform the method of any one of claims 1 to 6.
CN202111453724.8A 2021-12-01 2021-12-01 Distributed brushing method and device Active CN114116034B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111453724.8A CN114116034B (en) 2021-12-01 2021-12-01 Distributed brushing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111453724.8A CN114116034B (en) 2021-12-01 2021-12-01 Distributed brushing method and device

Publications (2)

Publication Number Publication Date
CN114116034A true CN114116034A (en) 2022-03-01
CN114116034B CN114116034B (en) 2023-08-11

Family

ID=80369256

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111453724.8A Active CN114116034B (en) 2021-12-01 2021-12-01 Distributed brushing method and device

Country Status (1)

Country Link
CN (1) CN114116034B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115061752A (en) * 2022-06-28 2022-09-16 展讯通信(上海)有限公司 Terminal equipment restarting method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105677335A (en) * 2015-12-29 2016-06-15 广东欧珀移动通信有限公司 Method and device for increasing first starting speed of mobile terminal
WO2016183721A1 (en) * 2015-05-15 2016-11-24 华为技术有限公司 Upgrade method, apparatus and device for terminal device
CN108595264A (en) * 2018-04-10 2018-09-28 平安科技(深圳)有限公司 Refresh tasks distribution method, electronic equipment and computer readable storage medium
CN109101278A (en) * 2017-06-21 2018-12-28 中兴通讯股份有限公司 A kind of method and device for realizing terminal brush machine
CN112654964A (en) * 2018-11-15 2021-04-13 深圳市欢太科技有限公司 Brush machine control method, brush machine control device and terminal equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016183721A1 (en) * 2015-05-15 2016-11-24 华为技术有限公司 Upgrade method, apparatus and device for terminal device
CN105677335A (en) * 2015-12-29 2016-06-15 广东欧珀移动通信有限公司 Method and device for increasing first starting speed of mobile terminal
CN109101278A (en) * 2017-06-21 2018-12-28 中兴通讯股份有限公司 A kind of method and device for realizing terminal brush machine
CN108595264A (en) * 2018-04-10 2018-09-28 平安科技(深圳)有限公司 Refresh tasks distribution method, electronic equipment and computer readable storage medium
CN112654964A (en) * 2018-11-15 2021-04-13 深圳市欢太科技有限公司 Brush machine control method, brush machine control device and terminal equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115061752A (en) * 2022-06-28 2022-09-16 展讯通信(上海)有限公司 Terminal equipment restarting method and device

Also Published As

Publication number Publication date
CN114116034B (en) 2023-08-11

Similar Documents

Publication Publication Date Title
CN102662785B (en) Method and device for acquiring kernel error information of Android system
CN109726135B (en) Multi-core debugging method and device and computer readable storage medium
CN114168222B (en) Method and device for acquiring time consumption during starting, terminal equipment and storage medium
CN104185836A (en) Method and system for verifying proper operation of computing device after system change
CN114237676A (en) FPGA (field programmable Gate array) logic updating method, device, equipment and readable storage medium
CN114116034A (en) Distributed flashing method and device
CN114020340B (en) Server system and data processing method thereof
CN111506331A (en) Server BMC refreshing method, system, terminal and storage medium
CN115913913B (en) Network card pre-starting execution environment function fault positioning method and device
CN114610446B (en) Method, device and system for automatically injecting probe
CN111400113B (en) Complete machine self-checking method, device and system of computer system
CN110874143B (en) Sensor data acquisition method, intelligent terminal, storage medium and electronic equipment
CN113590435A (en) Abnormal information display method and equipment
CN110968519A (en) Game testing method, device, server and storage medium
CN113515299A (en) Software development kit SDK hot upgrading method, device, equipment and storage medium
CN111953803A (en) BMC starting method, equipment, system and storage medium
KR101420026B1 (en) A method, apparatus and computer program for loading files during a boot-up process
CN111858016A (en) Computing job processing method and system, mobile device and acceleration device
CN113760631B (en) Page loading time length determining method, device, equipment and storage medium
CN210166772U (en) Computing system
CN114385500A (en) Serial port based test automation method and electronic equipment
CN109828893A (en) Multitask android performance test methods based on docker engine and the system for executing this method
CN110928729B (en) Control method and device of application flutter function, terminal device and storage medium
CN117376229B (en) FTP file system software cross debugging method and system based on embedded equipment
CN113590470B (en) Software debugging method and device, electronic equipment and storage medium

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