CN112579369A - Multithreading flashing system, method, device, equipment and storage medium - Google Patents

Multithreading flashing system, method, device, equipment and storage medium Download PDF

Info

Publication number
CN112579369A
CN112579369A CN201910934338.7A CN201910934338A CN112579369A CN 112579369 A CN112579369 A CN 112579369A CN 201910934338 A CN201910934338 A CN 201910934338A CN 112579369 A CN112579369 A CN 112579369A
Authority
CN
China
Prior art keywords
flashing
concentrator
port
equipment
hub
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
CN201910934338.7A
Other languages
Chinese (zh)
Other versions
CN112579369B (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201910934338.7A priority Critical patent/CN112579369B/en
Priority claimed from CN201910934338.7A external-priority patent/CN112579369B/en
Publication of CN112579369A publication Critical patent/CN112579369A/en
Application granted granted Critical
Publication of CN112579369B publication Critical patent/CN112579369B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2215Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test error correction or detection circuits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • 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/4403Processor initialisation

Abstract

The embodiment of the invention provides a multithreading flashing system, a multithreading flashing method, a multithreading flashing device, multithreading flashing equipment and a storage medium. The invention discloses a multithreading flashing system, which comprises: the system comprises a machine-brushing control device, a switch device, a first concentrator and at least two second concentrators used for being connected with terminal devices, wherein the first concentrator is respectively connected with the machine-brushing control device and the at least two second concentrators, the switch device is respectively connected with the machine-brushing control device and the at least two second concentrators, and the machine-brushing control device is used for controlling the target second concentrator in the at least two second concentrators to be communicated with the first concentrator through the switch device so as to brush the terminal devices connected with the target second concentrator, so that the purpose that a plurality of terminal devices are connected simultaneously for testing is realized, and the working efficiency is improved.

Description

Multithreading flashing system, method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of terminal testing, and in particular, to a multithreading system, method, apparatus, device, and storage medium.
Background
With the development of social economy and the improvement of technical level, the market of intelligent terminal products is continuously expanded, the sales volume is increased year by year, and each production enterprise faces to large-batch product testing work.
For Mean Time Between Failures (MTBF) testing, in the prior art, terminal devices are connected to a computer for MTBF testing, and the number of USB connectors of a common desktop computer is about 8, so that 8 terminal devices can be allowed to perform MTBF testing simultaneously.
However, in practical applications, the number of terminal devices that need to perform the MTBF test is often greater than 8, and then the test machine needs to be replaced by manual insertion and extraction, which reduces the work efficiency and production efficiency.
Disclosure of Invention
To overcome the problems in the related art, the present disclosure provides a multithreading flush system, method, apparatus, device, and storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a multithreading flash system, including:
the system comprises a flashing control device, a switching device, a first concentrator and at least two second concentrators for connecting terminal devices;
the first concentrator is respectively connected with the flashing control equipment and at least two second concentrators;
the switch equipment is respectively connected with the flashing control equipment and the at least two second hubs;
and the flashing control equipment is used for controlling a target second concentrator in the at least two second concentrators to be communicated with the first concentrator through the switch equipment so as to flash the terminal equipment connected with the target second concentrator.
In the scheme provided by the embodiment of the disclosure, the multithreading system for refreshing the computer system is composed of a computer refreshing control device, a switch device, a first concentrator and at least two second concentrators used for connecting terminal devices, wherein the first concentrator is respectively connected with the computer refreshing control device and the at least two second concentrators, the switch device is respectively connected with the computer refreshing control device and the at least two second concentrators, and the computer refreshing control device is used for controlling a target second concentrator in the at least two second concentrators to be connected with the first concentrator through the switch device so as to refresh the terminal device connected with the target second concentrator, so that a plurality of terminal devices are simultaneously connected for testing, and the working efficiency is improved.
Optionally, different output ports of the switching device are respectively connected with the power supply control port of each of the at least two second hubs;
the switching device is configured to supply power to the power supply control port of the target second hub through the output port connected to the target second hub to power on the target second hub.
In a specific implementation manner, the switch device is connected with the brushing control device through the first hub.
In a specific implementation manner, the flash control device is a personal computer PC.
According to a second aspect of the embodiments of the present disclosure, there is provided a multithread flush method applied to the flush control device in the multithread flush system according to the first aspect, including:
controlling a first port of a switch device connected to a first concentrator to be powered on, and controlling other ports to be in a power-off state;
and sending the flashing data to a second concentrator connected with the first port of the switch device, and flashing a plurality of terminal devices connected on the second concentrator.
In the scheme provided by the embodiment of the disclosure, the first port of the switch device connected to the first concentrator is controlled to be powered on, other ports are in a power-off state, and the flashing data is sent to the second concentrator connected to the first port of the switch device, so that a plurality of terminal devices connected to the second concentrator are flashed, and the test efficiency is improved.
Further, the method further comprises:
if a machine-flushing completion message returned by a second concentrator connected with the first port is received, controlling the second port of the switch device to be powered on, and controlling other ports to be in a power-off state;
and the flashing control equipment sends flashing data to a second concentrator connected with a second port of the switch equipment, and performs flashing on a plurality of terminal equipment connected on the second concentrator.
In the scheme provided by the embodiment of the disclosure, when the second concentrator connected to the first port returns a flashing completion message, the second port of the switch device is controlled to be powered on, other ports are in a power-off state, flashing data is sent to the second concentrator connected to the second port, a plurality of terminal devices connected to the second concentrator are flashed, and a plurality of terminal devices to be tested are tested in batches by automatic switching, so that the complexity of manual operation is reduced.
In a specific implementation manner, before the first port of the switching device connected to the first hub is controlled to be powered on and other ports are in a powered-off state, the method further includes:
acquiring the name and the flashing type of the terminal equipment to be flashed;
and downloading the flashing data according to the name of the terminal equipment to be flashed and the flashing type.
In the scheme provided by the embodiment of the disclosure, the name and the flashing type of the terminal device to be flashed are obtained, and the flashing data is downloaded according to the name and the flashing type of the terminal device to be flashed, so that flashing and testing work can be performed on various different terminal devices.
In a specific implementation, the method further includes:
and monitoring the test state of the terminal equipment which is finished by flashing.
In the scheme provided by the embodiment of the disclosure, the fault machine can be found in time by monitoring the test state of the terminal device which is finished by flashing.
According to a third aspect of the embodiments of the present disclosure, there is provided a multithreading flush apparatus, the apparatus including:
the first processing module is used for controlling a first port of the switch equipment connected to the first concentrator to be powered on, and other ports are in a power-off state;
the first sending module is used for sending the flashing data to a second concentrator connected with a first port of the switch device;
and the second processing module is used for flashing the plurality of terminal devices connected to the second concentrator.
In a specific implementation manner, the apparatus further includes:
the third processing module is used for controlling the second port of the switch device to be powered on and other ports to be in a power-off state if a machine-flushing completion message returned by the second concentrator connected with the first port is received;
the second sending module is used for sending the flashing data to a second concentrator connected with a second port of the switch device by the flashing control device;
and the fourth processing module is used for flashing the plurality of terminal devices connected to the second concentrator.
In a specific implementation manner, the apparatus further includes:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring the name and the type of the terminal equipment to be refreshed;
and the downloading module is used for downloading the flashing data according to the name of the terminal equipment to be flashed and the flashing type.
In a specific implementation manner, the apparatus further includes:
and the monitoring module is used for monitoring the test state of the terminal equipment which is finished by flashing.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a brush control apparatus including: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the memory-stored computer-executable instructions causes the at least one processor to perform the multi-threaded flush method of any one of the second aspects.
According to a fifth aspect of the embodiments of the present disclosure, there is provided a computer-readable storage medium having stored therein computer-executable instructions that, when executed by a processor, implement the multithreading flush method according to any one of the second aspects.
The multithreading flashing system, the multithreading flashing method, the multithreading flashing device and the storage medium provided by the embodiment of the disclosure realize automatic flashing and testing, save manpower and improve working efficiency and production efficiency by controlling the first port of the switch device connected to the first concentrator to be powered on, controlling other ports to be in a power-off state, sending flashing data to the second concentrator connected to the first port of the switch device and flashing a plurality of terminal devices connected to the second concentrator.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
FIG. 1a is a block diagram illustrating a first embodiment of a multithreaded flush system in accordance with an illustrative embodiment.
FIG. 1b is a block diagram illustrating a second embodiment of a multithreaded flush system in accordance with an illustrative embodiment.
FIG. 2 is a schematic diagram of a display interface of a telemonitoring device, according to an example embodiment.
FIG. 3 is a flow diagram illustrating a first embodiment of a multi-threaded flush method, according to an illustrative embodiment.
Fig. 4 is a flowchart illustrating a second embodiment of a multithreaded flush method in accordance with an illustrative embodiment.
FIG. 5 is a flowchart illustrating a third embodiment of a multithreaded flush method in accordance with an illustrative embodiment.
FIG. 6 is a flowchart illustrating a fourth embodiment of a multi-threaded flush method, according to an illustrative embodiment.
FIG. 7 is a flowchart illustrating a software side flush and test, according to an example embodiment.
FIG. 8 is a schematic diagram illustrating a first embodiment of a multithreaded flush device in accordance with an illustrative embodiment.
FIG. 9 is a diagram illustrating a second embodiment of a multithreaded flush device in accordance with an illustrative embodiment.
FIG. 10 is a schematic diagram illustrating a third embodiment of a multithreaded flush device in accordance with an illustrative embodiment.
FIG. 11 is a diagram illustrating a fourth embodiment of a multithreaded flush device in accordance with an illustrative embodiment.
Fig. 12 is a block diagram illustrating a flush control device entity according to an example embodiment.
FIG. 13 is a block diagram illustrating a brushhead control apparatus 1200 according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
The MTBF test is used for measuring the reliability index of a product (especially an electrical product) and serving as the mass production admission standard of the mobile phone, so that the stability of the mobile phone is ensured, and the important experience of a user in the use process is improved. In the face of the demands of a large number of MTBF tests and machine refreshing, it becomes important to realize automatic machine refreshing, liberate manpower, improve test efficiency and remotely monitor test states.
Therefore, no related solution exists in the prior art, and the multithreading flashing system, method, device, equipment and storage medium provided by the scheme break through the bottleneck that the number of terminal equipment identified by a computer is small and unstable by adding a switch equipment part, and save manpower and improve working efficiency by adopting an automatic flashing and testing method. The present solution is explained in detail below by means of several specific examples.
Fig. 1a is a schematic structural diagram of a first embodiment of a multithread flush system according to an exemplary embodiment, and fig. 1b is a schematic structural diagram of a second embodiment of a multithread flush system according to an exemplary embodiment, as shown in fig. 1a, the multithread flush system 10 includes: a flash control device 11, a switching device 13, a first hub 12 and at least two second hubs 14.
The first hub 12 is connected to the brushing control device 11 and the at least two second hubs 14, respectively, and the switching device 13 is connected to the brushing control device 11 and the at least two second hubs 12, respectively.
In a possible design, as shown in fig. 1b, the switch device 13 may be connected to the flash control device 11 through the first hub 12, specifically, the flash control device 11 is connected to an input interface of the first hub 12, one output port of the first hub 12 is connected to the switch device 13, and the other multiple output ports of the first hub 12 are respectively connected to different second hubs 14.
The power supply control port of each second concentrator 14 is respectively connected with different output ports of the switch device 13, and the output port of each second concentrator 14 is used for connecting a terminal device 15 to be flushed;
the flash control device 11 is configured to control a target second hub of the at least two second hubs 14 to be connected to the first hub 12 through the switching device 13, so as to flash the terminal device connected to the target second hub.
Further, different output ports of the switching device 13 are respectively connected with the power supply control port of each of the at least two second hubs 14, and the switching device 13 is configured to supply power to the power supply control port of the target second hub through the output port connected with the target second hub to power on the target second hub.
Alternatively, the switching device 13 may be or include a relay.
In a specific implementation, the flash control device 11 is a personal computer PC.
Optionally, the first HUB 12 and the at least two second HUBs 14 are each a multi-port HUB (HUB), with the number of ports of the first HUB being greater than the number of ports of any of the second HUBs. For example, the first HUB is a 20-port HUB, and the second HUB is a 16-port HUB, so that the multi-thread flash system can be connected with more terminal devices, and the flash or test of a large number of terminal devices at the same time is satisfied.
Optionally, the terminal device may be a mobile phone, a tablet computer, a notebook computer, a wearable device, and other intelligent terminal devices.
In the above arrangement, it will be appreciated that the flash control apparatus is arranged to send the flash data and the test data to the first hub in accordance with the script. The flashing data comprises a software version corresponding to the terminal equipment to be flashed; the test data includes a program installation package required for the test.
Furthermore, the flash control device is also used for controlling the switch device to be powered on by only one port at the same time, so that only one second concentrator in the at least two second concentrators is powered on, namely only one second concentrator is allowed to be in an identifiable state at the same time, and data transmission can be carried out.
And the machine-refreshing control equipment is connected with the first concentrator and at least one second concentrator connected with the output port of the first concentrator, so that data transmission is realized, and the terminal equipment can finish automatic machine refreshing and automatic testing under the control of the machine-refreshing control equipment.
In a specific implementation manner, the multithreading flash system further includes a remote monitoring device, where the remote monitoring device is configured to display a test state of the terminal device when the plurality of terminal devices are tested, as shown in fig. 2, and fig. 2 is a schematic display interface diagram of the remote monitoring device according to an exemplary embodiment. When the terminal equipment has faults such as crash, the remote monitoring equipment displays the 'offline' of the terminal equipment, and a tester can quickly locate the terminal equipment under the HUB through the table monitored by the equipment.
The multithread machine-refreshing system provided by the embodiment comprises machine-refreshing control equipment, switching equipment, a first concentrator and at least two second concentrators used for being connected with terminal equipment, wherein the first concentrator is respectively connected with the machine-refreshing control equipment and the at least two second concentrators, the switching equipment is respectively connected with the machine-refreshing control equipment and the at least two second concentrators, and the machine-refreshing control equipment is used for controlling a target second concentrator in the at least two second concentrators to be connected with the first concentrator through the switching equipment so as to refresh the terminal equipment connected with the target second concentrator, so that the purpose of simultaneously connecting a plurality of terminal equipment for testing is realized, and the working efficiency is improved.
On the basis of the foregoing embodiments, fig. 3 is a flowchart illustrating a first embodiment of a multithread flush method according to an exemplary embodiment, as shown in fig. 3, the multithread flush method includes:
s101: and controlling a first port of the switching equipment connected to the first hub to be powered on, and controlling other ports to be in a power-off state.
In this step, the flush control device controls the first port of the switch device connected to the first hub to be powered on, and the other ports are in a powered off state. Since the flush control apparatus has a limit to the recognizable number of connected terminal apparatuses, each of the second hubs is alternately energized so that only one second hub is in a recognizable state for the same period of time.
S102: and sending the flashing data to a second concentrator connected with the first port of the switch device, and flashing a plurality of terminal devices connected on the second concentrator.
In this step, the flush control device sends flush data to the first concentrator, the first concentrator sends flush data to the second concentrator in an identifiable state, finally the second concentrator sends the flush data to each connected terminal device, and the terminal devices flush the flush according to the received flush data.
And in the flashing process, if the terminal equipment has a flashing failure, controlling the terminal equipment to flash again.
And the flashing data is a software version for testing corresponding to the connected terminal equipment.
In the multithreading flashing method provided by this embodiment, the first port of the switch device connected to the first hub is controlled to be powered on, and the other ports are in a power-off state, and flashing data is sent to the second hub connected to the first port of the switch device, so that a plurality of terminal devices connected to the second hub are flashed, and the test efficiency is improved.
Fig. 4 is a flowchart illustrating a second embodiment of a multithread flush method according to an exemplary embodiment, where as shown in fig. 4, on the basis of the embodiment shown in fig. 3, the multithread flush method further includes the following steps:
s103: and if a machine-refreshing completion message returned by the second concentrator connected with the first port is received, controlling the second port of the switch equipment to be powered on, and controlling other ports to be in a power-off state.
In this step, after all the terminal devices connected to the second hub connected to the first port in the step S102 complete the flush, the second hub returns a flush completion message to the flush control device, and after the flush control device receives the flush completion message, the second port of the switch device is controlled to be powered on, the first port is powered off, and the remaining ports are still in a powered off state, and accordingly, the second hub connected to the second port is in an identifiable state.
S104: and the flashing control equipment sends flashing data to a second concentrator connected with a second port of the switch equipment, and performs flashing on a plurality of terminal equipment connected on the second concentrator.
In this step, the second hub connected to the second port through which the switching device is powered is in an identifiable state, and at this time, the flush control device can send flush data to the second hub through the first hub, so that each terminal device connected to the second hub receives the flush data and performs flush.
And the flashing data is a software version for testing corresponding to the connected terminal equipment.
In the multithreading flashing method provided by the embodiment, when the second concentrator connected with the first port returns a flashing completion message, the second port of the switch device is controlled to be powered on, other ports are in a power-off state, flashing data is sent to the second concentrator connected with the second port, a plurality of terminal devices connected with the second concentrator are flashed, and the plurality of terminal devices to be tested are tested in batches by automatic switching, so that the complexity of manual operation is reduced.
Fig. 5 is a flowchart of a third embodiment of a multithread flush method according to an exemplary embodiment, where, as shown in fig. 5, on the basis of the embodiments shown in fig. 3 and 4, before the step S101, the multithread flush method further includes the following steps:
s201: and acquiring the name and the flashing type of the terminal equipment to be flashed.
In this step, before the multithreading flashing system is formally operated, the corresponding flashing data needs to be matched according to the terminal device to be flashed. Then, the name and the flash type of the terminal device to be flashed need to be obtained first, and the obtaining manner may be obtained through a configuration file configured by a user, or the name and the flash type of the terminal device obtained last time are used. It should be understood that the name of the device herein may be the model number, test code, promotion name, etc. of the product, and the type of the flash includes information of the model number of the machine, software version, etc.
S202: and downloading the flashing data according to the name and the flashing type of the terminal equipment to be flashed.
In this step, the corresponding flashing data is downloaded according to the acquired name and flashing type of the terminal device to be flashed. And the flashing control equipment can send flashing data corresponding to the terminal equipment to be flashed so as to complete flashing.
According to the multithreading flashing method provided by the embodiment, flashing and testing work can be performed on various different terminal devices by acquiring the name and the flashing type of the terminal device to be flashed and downloading flashing data according to the name and the flashing type of the terminal device to be flashed.
Fig. 6 is a flowchart of a fourth embodiment of the multithread flush method according to an exemplary embodiment, where, as shown in fig. 6, on the basis of the embodiments shown in fig. 3 to fig. 5, after all the foregoing terminal devices complete the flush process, the multithread flush method further includes the following steps:
s301: and monitoring the test state of the terminal equipment which is finished by flashing.
After step S104 is completed, the other ports of the switch device will continue to be controlled to be powered on in turn, so that the terminal devices connected to each second hub connected to the switch device complete the flash. And if the condition that the terminal equipment is failed to be refreshed in the refreshing process, controlling the terminal equipment to be refreshed again. After all the terminal devices are successfully refreshed, the terminal devices are controlled to skip a boot interface according to the script, unlocking is completed, an Android Package (APK) required by testing is installed, and the testing is operated. And, referring to fig. 2, the test state of each terminal device is monitored by the remote monitoring device during the running test, and the fault machine can be quickly located by the table shown in fig. 2.
According to the multithreading flashing method provided by the embodiment, a fault machine can be found in time by monitoring the test state of the terminal equipment which is flashed.
On the basis of the above embodiment, the following describes the scheme in detail by using a computer as a flashing control device, a primary HUB as a first HUB, a secondary HUB as a second HUB, an MTBF test as a test, and a mobile phone as a terminal device, and using hardware and software as two parts.
Hardware part (a):
all cell-phones need to be connected with the computer through the HUB, wherein, main HUB connects a plurality of vice HUBs to realize that big batch cell-phones are connected with the computer. Because the number of the recognizable devices (adb devices) of the mobile phone connected with the computer is limited, the method of appointing the auxiliary HUB to be powered on and powered off through the switch device ensures that only one HUB is in a recognizable state for the computer in the same time period, and the mobile phone connected with a plurality of auxiliary HUBs is refreshed or tested in turn.
For example: the sub-HUB includes: HUB1, HUB2, HUB3, and the 3 secondary HUBs are connected to the first, second, and third ports of the switching device, respectively. Before the machine is brushed, the computer is in the outage state through script control switchgear's second port and third port, and only first port is distinguishable state, waits for on the HUB1 all equipment to brush the machine and accomplish the back, then controls first port outage, and the second port is circular telegram, controls HUB2 promptly and is in distinguishable state, and what be in the outage state this moment is first port and third port. The on-off control of the other secondary HUBs is analogized in this way, and the details are not repeated here.
(II) software part:
software side flush and test flow referring to fig. 7, fig. 7 is a schematic flow chart illustrating a software side flush and test according to an exemplary embodiment.
As shown in fig. 7, the on-off states of the switch devices are controlled by the computer through the script, the script can control automatic downloading of mobile phone flashing data to flash the mobile phone, if a certain collection fails to flash the mobile phone in the flashing process, the mobile phone can be automatically flashed again, after all flashing processes are successful, the starting-up guide interface is skipped through the script setting, unlocking is performed, the APK required by the MTBF test is installed, the test is finally run, and the test state of the mobile phone is monitored.
All the operations can be realized through script setting without manual intervention.
When a mobile phone to be tested or a corresponding software version of the mobile phone to be tested is changed, nodes need to be established on Jenkins, a test task is established, timing operation is set, and the operation is performed once when a test object is changed.
Fig. 8 is a schematic diagram illustrating a first embodiment of a multithread flush apparatus 100, shown in fig. 8, including:
the first processing module 101: the switching device is used for controlling the first port of the switching device connected to the first concentrator to be powered on, and other ports are in a power-off state;
the first transmission module 102: the second concentrator is used for sending the flashing data to the first port of the switch device;
the second processing module 103: and the system is used for flashing a plurality of terminal devices connected to the second concentrator.
In the multi-thread booting device 100 of this embodiment, the first port of the switch device connected to the first hub is controlled to be powered on, and the other ports are in a powered-off state, and the booting data is sent to the second hub connected to the first port of the switch device, so as to boot a plurality of terminal devices connected to the second hub, thereby improving the test efficiency.
Based on the embodiment shown in fig. 8, fig. 9 is a schematic diagram of a second embodiment of the multithread flush apparatus according to an exemplary embodiment, and as shown in fig. 9, the multithread flush apparatus 100 further includes:
the third processing module 104: the switching equipment is used for controlling the second port of the switching equipment to be powered on and other ports to be in a power-off state if a flashing completion message returned by the second concentrator connected with the first port is received;
the second sending module 105: the system comprises a switching device, a machine refreshing control device and a second concentrator, wherein the switching device is used for switching a first port of the switching device and a second port of the switching device;
the fourth processing module 106: and the system is used for flashing a plurality of terminal devices connected to the second concentrator.
On the basis of the embodiments shown in fig. 8 and fig. 9, fig. 10 is a schematic diagram of a third embodiment of the multithread flush apparatus according to an exemplary embodiment, and as shown in fig. 10, the multithread flush apparatus 100 further includes:
an obtaining module 107, configured to obtain a name and a flashing type of a terminal device to be flashed;
and the downloading module 108 is configured to download the flashing data according to the name of the terminal device to be flashed and the flashing type.
On the basis of the foregoing apparatus embodiment, fig. 11 is a schematic diagram of a fourth multithread flush apparatus embodiment according to an exemplary embodiment, and as shown in fig. 11, the multithread flush apparatus 100 further includes:
the monitoring module 109: the method is used for monitoring the test state of the terminal equipment which is finished by flashing.
The multithreading flush device 100 of this embodiment may be configured to execute the technical solution of the multithreading flush method in any one of the foregoing method embodiments, and the implementation principle and the technical effect are similar, and are not described herein again.
With regard to the multithread flush apparatus in each of the above embodiments, the specific manner in which each module performs operations has been described in detail in the embodiments of the method, and will not be described in detail here. Namely, the internal functional modules and the structural schematic of the brushing control device are described above.
Fig. 12 is a block diagram illustrating a flush control device entity according to an example embodiment. Referring to fig. 12, a brusher control device 60 provided by an embodiment of the present disclosure includes: at least one processor, and a memory 603.
Wherein the content of the first and second substances,
a memory 602 for storing computer-executable instructions;
the processor 601 is configured to execute the computer execution instructions stored in the memory to implement the steps performed by the flashing control device in the foregoing embodiments. Reference may be made in particular to the description relating to the method embodiments described above.
Alternatively, the memory 602 may be separate or integrated with the processor 601.
When the memory 602 is separately provided, the flash control apparatus further includes a bus 603 for connecting the memory 602 and the processor 601.
In the above-mentioned embodiment of the smart device, it should be understood that the Processor may be a Central Processing Unit (CPU), other general-purpose processors, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. The general-purpose processor may be a microprocessor or a processor, or any conventional processor, and the aforementioned memory may be a read-only memory (ROM), a Random Access Memory (RAM), a flash memory, a hard disk, or a solid state disk. The steps of a method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.
The application also provides a computer readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the technical solution of providing the fall protection method for the intelligent device according to any one of the foregoing solutions is implemented.
Referring to FIG. 13, FIG. 13 is a block diagram illustrating a brushhead control apparatus 1200 according to an exemplary embodiment. For example, the intelligent device may be a computer, a notebook, a server, etc.
Referring to fig. 13, the swipe control apparatus 1200 may include one or more of the following components: processing component 1202, memory 1204, power component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, and communications component 1216.
The processing component 1202 generally controls overall operation of the flash control device 1200, such as operations associated with display, data communication, multimedia operations, and recording operations. The processing components 1202 may include one or more processors 1220 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 1202 can include one or more modules that facilitate interaction between the processing component 1202 and other components. For example, the processing component 1202 can include a multimedia module to facilitate interaction between the multimedia component 1208 and the processing component 1202.
The memory 1204 is configured to store various types of data to support the operation of the flash control device 1200. Examples of such data include instructions for any application or method operating on the flash control device 1200, various types of data, messages, pictures, videos, and so forth. The memory 1204 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power supply assembly 1206 provides power to the various components of the brusher control device 1200. The power components 1206 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the swipe control device 1200.
The multimedia component 1208 includes a screen that provides an output interface between the swipe control device 1200 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
Audio component 1210 is configured to output and/or input audio signals. For example, the audio assembly 1210 includes a Microphone (MIC) configured to receive external audio signals when the swipe control device 1200 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 1204 or transmitted via the communication component 1216. In some embodiments, audio assembly 1210 further includes a speaker for outputting audio signals.
The I/O interface 1212 provides an interface between the processing component 1202 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc.
The sensor assembly 1214 includes one or more sensors for providing various aspects of state assessment for the brusher control device 1200. For example, the sensor assembly 1214 may detect an open/closed state of the brusher control apparatus 1200, the relative positioning of the components, such as the display and keypad of the brusher control apparatus 1200, the sensor assembly 1214 may also detect a change in position of the brusher control apparatus 1200 or a component of the brusher control apparatus 1200, the presence or absence of user contact with the brusher control apparatus 1200, the orientation or acceleration/deceleration of the brusher control apparatus 1200, and a change in temperature of the brusher control apparatus 1200. The sensor assembly 1214 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 1214 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communications component 1216 is configured to facilitate communications between the swipe control device 1200 and other devices, either wired or wirelessly. The flash control device 1200 may access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 1216 receives the broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 1216 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the swipe control device 1200 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components. A method for performing a multi-threaded flush, comprising:
controlling a first port of a switch device connected to a first concentrator to be powered on, and controlling other ports to be in a power-off state;
and sending the flashing data to a second concentrator connected with the first port of the switch device, and flashing a plurality of terminal devices connected on the second concentrator.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 1204 comprising instructions, executable by the processor 1220 of the flash control device 1200 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (14)

1. A multi-threaded flash system, comprising:
the system comprises a flashing control device, a switching device, a first concentrator and at least two second concentrators for connecting terminal devices;
the first concentrator is respectively connected with the flashing control equipment and at least two second concentrators;
the switch equipment is respectively connected with the flashing control equipment and the at least two second hubs;
and the flashing control equipment is used for controlling a target second concentrator in the at least two second concentrators to be communicated with the first concentrator through the switch equipment so as to flash the terminal equipment connected with the target second concentrator.
2. The system of claim 1, wherein different output ports of the switching device are respectively connected to the power control port of each of the at least two second hubs;
the switching device is configured to supply power to the power supply control port of the target second hub through the output port connected to the target second hub to power on the target second hub.
3. The system of claim 1, wherein the switching device is coupled to a swipe control device through the first hub.
4. A system according to any one of claims 1 to 3, wherein the swipe control device is a personal computer PC.
5. A multithread flush method applied to a flush control apparatus in a multithread flush system according to any one of claims 1 to 4, comprising:
controlling a first port of a switch device connected to a first concentrator to be powered on, and controlling other ports to be in a power-off state;
and sending the flashing data to a second concentrator connected with the first port of the switch device, and flashing a plurality of terminal devices connected on the second concentrator.
6. The method of claim 5, further comprising:
if a machine-flushing completion message returned by a second concentrator connected with the first port is received, controlling the second port of the switch device to be powered on, and controlling other ports to be in a power-off state;
and the flashing control equipment sends flashing data to a second concentrator connected with a second port of the switch equipment, and performs flashing on a plurality of terminal equipment connected on the second concentrator.
7. The method of claim 5 or 6, wherein the controlling the first port of the switching device connected to the first hub to be powered on and the other ports to be in a powered off state further comprises:
acquiring the name and the flashing type of the terminal equipment to be flashed;
and downloading the flashing data according to the name of the terminal equipment to be flashed and the flashing type.
8. The method of claim 5 or 6, further comprising:
and monitoring the test state of the terminal equipment which is finished by flashing.
9. A multithreaded flash apparatus, the apparatus comprising:
the first processing module is used for controlling a first port of the switch equipment connected to the first concentrator to be powered on, and other ports are in a power-off state;
the first sending module is used for sending the flashing data to a second concentrator connected with a first port of the switch device;
and the second processing module is used for flashing the plurality of terminal devices connected to the second concentrator.
10. The apparatus of claim 9, further comprising:
the third processing module is used for controlling the second port of the switch device to be powered on and other ports to be in a power-off state if a machine-flushing completion message returned by the second concentrator connected with the first port is received;
the second sending module is used for sending the flashing data to a second concentrator connected with a second port of the switch device by the flashing control device;
and the fourth processing module is used for flashing the plurality of terminal devices connected to the second concentrator.
11. The apparatus of claim 9 or 10, further comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring the name and the type of the terminal equipment to be refreshed;
and the downloading module is used for downloading the flashing data according to the name of the terminal equipment to be flashed and the flashing type.
12. The apparatus of claim 9 or 10, further comprising:
and the monitoring module is used for monitoring the test state of the terminal equipment which is finished by flashing.
13. A brusher control apparatus, comprising: at least one processor and memory;
the memory stores computer-executable instructions;
the at least one processor executing the memory-stored computer-executable instructions cause the at least one processor to perform the multithreaded flush method of any of claims 5-8.
14. A computer-readable storage medium having computer-executable instructions stored thereon which, when executed by a processor, implement the multi-threaded flash method of any one of claims 5 to 8.
CN201910934338.7A 2019-09-29 Multithreading brushing system, method, device, equipment and storage medium Active CN112579369B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910934338.7A CN112579369B (en) 2019-09-29 Multithreading brushing system, method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910934338.7A CN112579369B (en) 2019-09-29 Multithreading brushing system, method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112579369A true CN112579369A (en) 2021-03-30
CN112579369B CN112579369B (en) 2024-04-30

Family

ID=

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110267260A (en) * 2019-06-17 2019-09-20 Oppo广东移动通信有限公司 Brush machine method, apparatus, terminal and computer readable storage medium
CN115033466A (en) * 2022-05-23 2022-09-09 珠海视熙科技有限公司 Batch flashing pressure testing method and device, storage medium and computer equipment

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI282224B (en) * 2002-07-19 2007-06-01 Inventec Corp Testing system for distributed testing and centralized management and method thereof
CN102176702A (en) * 2011-02-18 2011-09-07 威盛电子股份有限公司 Test system and test method
CN103473207A (en) * 2013-09-25 2013-12-25 飞天诚信科技股份有限公司 USB (universal serial bus) concentrator device
US20140201399A1 (en) * 2012-03-30 2014-07-17 Charles L. Brabenac Usb hub with automatic communication mode switching
US9667804B1 (en) * 2016-05-17 2017-05-30 David R. Hall Efficient hub switching for mobile network devices
WO2017140622A1 (en) * 2016-02-16 2017-08-24 Teleplan Technology B.V. Mobile device testing apparatus and method
CN208061193U (en) * 2017-12-26 2018-11-06 航天信息股份有限公司 Clustered control device
CN108848120A (en) * 2018-05-02 2018-11-20 深圳创维-Rgb电子有限公司 A kind of system and implementation method of smart television mainboard software batch upgrade
CN108959141A (en) * 2018-06-11 2018-12-07 广州视源电子科技股份有限公司 Usb interface system, method, apparatus, equipment and the storage medium for distributing USB bandwidth
CN109154850A (en) * 2016-05-18 2019-01-04 谷歌有限责任公司 The electric power distribution of mobile device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI282224B (en) * 2002-07-19 2007-06-01 Inventec Corp Testing system for distributed testing and centralized management and method thereof
CN102176702A (en) * 2011-02-18 2011-09-07 威盛电子股份有限公司 Test system and test method
US20140201399A1 (en) * 2012-03-30 2014-07-17 Charles L. Brabenac Usb hub with automatic communication mode switching
CN103473207A (en) * 2013-09-25 2013-12-25 飞天诚信科技股份有限公司 USB (universal serial bus) concentrator device
WO2017140622A1 (en) * 2016-02-16 2017-08-24 Teleplan Technology B.V. Mobile device testing apparatus and method
US9667804B1 (en) * 2016-05-17 2017-05-30 David R. Hall Efficient hub switching for mobile network devices
CN109154850A (en) * 2016-05-18 2019-01-04 谷歌有限责任公司 The electric power distribution of mobile device
CN208061193U (en) * 2017-12-26 2018-11-06 航天信息股份有限公司 Clustered control device
CN108848120A (en) * 2018-05-02 2018-11-20 深圳创维-Rgb电子有限公司 A kind of system and implementation method of smart television mainboard software batch upgrade
CN108959141A (en) * 2018-06-11 2018-12-07 广州视源电子科技股份有限公司 Usb interface system, method, apparatus, equipment and the storage medium for distributing USB bandwidth

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
孟志达;: "多功能USB 2.0集线器的设计与实现", 计算机与现代化, no. 09 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110267260A (en) * 2019-06-17 2019-09-20 Oppo广东移动通信有限公司 Brush machine method, apparatus, terminal and computer readable storage medium
CN110267260B (en) * 2019-06-17 2022-03-01 Oppo广东移动通信有限公司 Flashing method, device, terminal and computer readable storage medium
CN115033466A (en) * 2022-05-23 2022-09-09 珠海视熙科技有限公司 Batch flashing pressure testing method and device, storage medium and computer equipment

Similar Documents

Publication Publication Date Title
CN107402835B (en) Application program exception handling method and device, storage medium and mobile terminal
CN104951377B (en) The abnormality eliminating method and device of intelligent household terminal
CN103440091A (en) Method for realizing shortcut operation and mobile terminal
CN107370834B (en) Abnormity debugging method, device, equipment and storage medium of user equipment
CN104951335A (en) Processing method and device for application program installation packages
CN107066600A (en) Automatic method, system, mobile terminal and the readable storage medium storing program for executing for skipping advertising page
CN107967207B (en) Method and device for testing user interface interaction function
CN112131015B (en) Information processing method and device, cloud server and storage medium
CN109684112B (en) Program file operation method, device, terminal and storage medium
CN107231386B (en) Application state conversion method and device and mobile terminal
CN106021024B (en) A kind of user terminal stops response reminding method and user terminal
CN106101838B (en) The processing method and digit receiving terminal of CI module in quick turn-on
CN112416751A (en) Processing method and device for interface automation test and storage medium
CN112579369B (en) Multithreading brushing system, method, device, equipment and storage medium
CN112579369A (en) Multithreading flashing system, method, device, equipment and storage medium
US20170171374A1 (en) Method and electronic device for user manual callouting in smart phone
CN103002436A (en) Upgrade method and device of terminal device with android platform
CN108874381B (en) Method and device for outputting page view controller and electronic equipment
CN107391354B (en) Method and system for automatically monitoring terminal performance and storage device
CN107015874B (en) Data transmission control method, device and terminal
CN110874143B (en) Sensor data acquisition method, intelligent terminal, storage medium and electronic equipment
CN115729754A (en) Equipment testing method and device, electronic equipment and storage medium
CN111930391B (en) Application data processing method and device, server and user terminal
CN103984510B (en) A kind of printer modes reminding method and device based on Android
CN108228279B (en) BIOS operation method and electronic equipment

Legal Events

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