CN112579369B - Multi-thread flashing system, method, device, equipment and storage medium - Google Patents
Multi-thread flashing system, method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112579369B CN112579369B CN201910934338.7A CN201910934338A CN112579369B CN 112579369 B CN112579369 B CN 112579369B CN 201910934338 A CN201910934338 A CN 201910934338A CN 112579369 B CN112579369 B CN 112579369B
- Authority
- CN
- China
- Prior art keywords
- hub
- flashing
- port
- switch device
- control device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2205—Detection 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/2215—Detection 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
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4403—Processor initialisation
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
Description
技术领域Technical Field
本公开涉及终端测试领域,尤其涉及一种多线程刷机系统、方法、装置、设备和存储介质。The present disclosure relates to the field of terminal testing, and in particular to a multi-threaded flashing system, method, device, equipment and storage medium.
背景技术Background technique
随着社会经济的发展和技术水平的提高,智能终端产品的市场不断扩大,销售量也逐年增加,每个生产企业将面对大批量的产品测试工作。With the development of social economy and the improvement of technological level, the market of intelligent terminal products continues to expand and sales volume increases year by year. Each manufacturer will face large-scale product testing work.
针对平均故障间隔时间(Mean Time Between Failure,MTBF)测试,现有技术中,终端设备与电脑连接进行MTBF测试,普通台式电脑的USB连接口约为8个,因此,可以允许8台终端设备同时进行MTBF测试。Regarding the mean time between failures (MTBF) test, in the prior art, a terminal device is connected to a computer to perform an MTBF test. An ordinary desktop computer has about 8 USB connection ports, so 8 terminal devices can be allowed to perform an MTBF test simultaneously.
然而,在实际应用中,需要进行MTBF测试的终端设备数量往往大于8台,则需要通过人工插拔更换测试机器,降低了工作效率以及生产效率。However, in actual applications, the number of terminal devices that need to undergo MTBF testing is often greater than 8, and the test machine needs to be replaced by manual plugging and unplugging, which reduces work efficiency and production efficiency.
发明内容Summary of the invention
为克服相关技术中存在的问题,本公开提供一种多线程刷机系统、方法、装置、设备和存储介质。In order to overcome the problems existing in the related art, the present disclosure provides a multi-threaded flashing system, method, apparatus, device and storage medium.
根据本公开实施例的第一方面,提供一种多线程刷机系统,包括:According to a first aspect of an embodiment of the present disclosure, a multi-threaded flashing system is provided, comprising:
刷机控制设备,开关设备,第一集线器和至少两个用于连接终端设备的第二集线器;A flash control device, a switch device, a first hub and at least two second hubs for connecting terminal devices;
所述第一集线器分别与刷机控制设备和至少两个第二集线器连接;The first hub is connected to the flash control device and at least two second hubs respectively;
所述开关设备分别与刷机控制设备和所述至少两个第二集线器连接;The switch device is connected to the flash control device and the at least two second hubs respectively;
所述刷机控制设备用于通过所述开关设备控制至少两个第二集线器中的目标第二集线器与第一集线器接通,以对目标第二集线器连接的终端设备进行刷机。The flashing control device is used to control a target second hub among at least two second hubs to be connected to the first hub through the switch device, so as to flash the terminal device connected to the target second hub.
本公开实施例提供的方案中,多线程刷机系统由刷机控制设备,开关设备,第一集线器和至少两个用于连接终端设备的第二集线器组成,第一集线器分别与刷机控制设备和至少两个第二集线器连接,开关设备分别与刷机控制设备和至少两个第二集线器连接,刷机控制设备用于通过开关设备控制至少两个第二集线器中的目标第二集线器与第一集线器接通,以对目标第二集线器连接的终端设备进行刷机,实现了同时连接多台终端设备进行测试,提高了工作效率。In the solution provided by the embodiment of the present disclosure, the multi-threaded flashing system consists of a flashing control device, a switching device, a first hub and at least two second hubs for connecting terminal devices. The first hub is respectively connected to the flashing control device and the at least two second hubs, the switching device is respectively connected to the flashing control device and the at least two second hubs, and the flashing control device is used to control the target second hub among the at least two second hubs to be connected to the first hub through the switching device, so as to flash the terminal device connected to the target second hub, thereby realizing the simultaneous connection of multiple terminal devices for testing and improving work efficiency.
可选的,所述开关设备的不同的输出端口分别与所述至少两个第二集线器中的每个第二集线器的供电控制端口连接;Optionally, different output ports of the switch device are respectively connected to a power supply control port of each second hub of the at least two second hubs;
所述开关设备用于通过与所述目标第二集线器连接的输出端口向所述目标第二集线器的供电控制端口供电,以使所述目标第二集线器通电。The switch device is used to supply power to a power control port of the target second hub through an output port connected to the target second hub, so as to power on the target second hub.
在一种具体的实现方式中,所述开关设备通过所述第一集线器与刷机控制设备连接。In a specific implementation manner, the switch device is connected to the flash control device through the first hub.
在一种具体的实现方式中,所述刷机控制设备为个人计算机PC。In a specific implementation, the flashing control device is a personal computer PC.
根据本公开实施例的第二方面,提供一种多线程刷机方法,应用于第一方面所述的多线程刷机系统中的刷机控制设备中,包括:According to a second aspect of an embodiment of the present disclosure, a multi-thread flashing method is provided, which is applied to a flashing control device in the multi-thread flashing system of the first aspect, and includes:
控制第一集线器上连接的开关设备的第一端口通电,其他端口处于断电状态;Controlling the first port of the switch device connected to the first hub to be powered on, and the other ports to be powered off;
向所述开关设备的第一端口连接的第二集线器发送刷机数据,对所述第二集线器上连接的多个终端设备进行刷机。Sending flashing data to a second hub connected to the first port of the switch device to flash multiple terminal devices connected to the second hub.
本公开实施例提供的方案中,通过控制第一集线器上连接的开关设备的第一端口通电,其他端口处于断电状态,并向开关设备的第一端口连接的第二集线器发送刷机数据,对该第二集线器上连接的多个终端设备进行刷机,提高了测试效率。In the solution provided by the embodiment of the present disclosure, the first port of the switching device connected to the first hub is controlled to be powered on, while 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 switching device, so that multiple terminal devices connected to the second hub are flashed, thereby improving the test efficiency.
进一步地,所述方法还包括:Furthermore, the method further comprises:
若接收到所述第一端口连接的第二集线器返回的刷机完成消息,则控制所述开关设备的第二端口通电,其他端口处于断电状态;If a flashing completion message returned by the second hub connected to the first port is received, the second port of the switch device is controlled to be powered on, and other ports are in a power-off state;
所述刷机控制设备向所述开关设备的第二端口连接的第二集线器发送刷机数据,对所述第二集线器上连接的多个终端设备进行刷机。The flashing control device sends flashing data to the second hub connected to the second port of the switch device, and flashes multiple terminal devices connected to the second hub.
本公开实施例提供的方案中,当第一端口连接的第二集线器返回刷机完成消息,则控制开关设备的第二端口通电,其他端口处于断电状态,并向与第二端口连接的第二集线器发送刷机数据,对第二集线器上连接的多个终端设备进行刷机,通过自动切换对多台待测试终端设备分批完成测试,减少了人工作业的复杂性。In the solution provided by the embodiment of the present disclosure, when the second hub connected to the first port returns a flashing completion message, the second port of the control switch device is powered on, and other ports are in a power-off state, and flashing data is sent to the second hub connected to the second port, and multiple terminal devices connected to the second hub are flashed. By automatically switching, the test of multiple terminal devices to be tested is completed in batches, reducing the complexity of manual work.
在一种具体的实现方式中,所述控制第一集线器上连接的开关设备的第一端口通电,其他端口处于断电状态之前,所述方法还包括:In a specific implementation, before controlling the first port of the switch device connected to the first hub to be powered on and other ports to be powered off, the method further includes:
获取待刷机的终端设备的名称和刷机类型;Get the name and type of the terminal device to be flashed;
根据所述待刷机的终端设备的名称和所述刷机类型,下载所述刷机数据。Download the flashing data according to the name of the terminal device to be flashed and the flashing type.
本公开实施例提供的方案中,通过获取待刷机的终端设备的名称和刷机类型,并根据待刷机的终端设备的名称和所述刷机类型,下载所述刷机数据,能够对多种不同的终端设备进行刷机以及测试工作。In the solution provided by the embodiment of the present disclosure, by obtaining the name and flashing type of the terminal device to be flashed, and downloading the flashing data according to the name and the flashing type of the terminal device to be flashed, a variety of different terminal devices can be flashed and tested.
在一种具体的实现方式中,所述方法还包括:In a specific implementation, the method further includes:
监控已经刷机完成的终端设备的测试状态。Monitor the test status of terminal devices that have completed flashing.
本公开实施例提供的方案中,通过监控已经刷机完成的终端设备的测试状态,能够及时发现故障机器。In the solution provided by the embodiment of the present disclosure, by monitoring the test status of the terminal device that has completed the flashing, a faulty machine can be discovered in time.
根据本公开实施例的第三方面,提供一种多线程刷机装置,所述装置包括:According to a third aspect of an embodiment of the present disclosure, a multi-threaded flashing device is provided, the device comprising:
第一处理模块,用于控制第一集线器上连接的开关设备的第一端口通电,其他端口处于断电状态;A first processing module, used for controlling a first port of a switch device connected to a first hub to be powered on, and other ports to be powered off;
第一发送模块,用于向所述开关设备的第一端口连接的第二集线器发送刷机数据;A first sending module, used for sending flashing data to a second hub connected to the first port of the switch device;
第二处理模块,用于对所述第二集线器上连接的多个终端设备进行刷机。The second processing module is used to flash the multiple terminal devices connected to the second hub.
在一种具体的实现方式中,所述装置还包括:In a specific implementation, the device further includes:
第三处理模块,用于若接收到所述第一端口连接的第二集线器返回的刷机完成消息,则控制所述开关设备的第二端口通电,其他端口处于断电状态;A third processing module is used for controlling the second port of the switch device to be powered on and other ports to be powered off if a flashing completion message returned by the second hub connected to the first port is received;
第二发送模块,用于所述刷机控制设备向所述开关设备的第二端口连接的第二集线器发送刷机数据;A second sending module, used for the flashing control device to send the flashing data to the second hub connected to the second port of the switch device;
第四处理模块,用于对所述第二集线器上连接的多个终端设备进行刷机。The fourth processing module is used to flash the multiple terminal devices connected to the second hub.
在一种具体的实现方式中,所述装置还包括:In a specific implementation, the device further includes:
获取模块,用于获取待刷机的终端设备的名称和刷机类型;The acquisition module is used to obtain the name and type of the terminal device to be flashed;
下载模块,用于根据所述待刷机的终端设备的名称和所述刷机类型,下载所述刷机数据。The download module is used to download the flashing data according to the name of the terminal device to be flashed and the flashing type.
在一种具体的实现方式中,所述装置还包括:In a specific implementation, the device further includes:
监控模块,用于监控已经刷机完成的终端设备的测试状态。The monitoring module is used to monitor the test status of the terminal device that has completed the flashing.
根据本公开实施例的第四方面,提供一种刷机控制设备,包括:至少一个处理器和存储器;According to a fourth aspect of an embodiment of the present disclosure, there is provided a flash control device, including: at least one processor and a memory;
所述存储器存储计算机执行指令;The memory stores computer-executable instructions;
所述至少一个处理器执行所述存储器存储的计算机执行指令,使得所述至少一个处理器执行如第二方面任一项所述的多线程刷机方法。The at least one processor executes the computer-executable instructions stored in the memory, so that the at least one processor executes the multi-threaded flashing method as described in any one of the second aspects.
根据本公开实施例的第五方面,提供一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机执行指令,当处理器执行所述计算机执行指令时,实现如第二方面任一项所述的多线程刷机方法。According to a fifth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer execution instructions. When a processor executes the computer execution instructions, the multi-threaded flashing method as described in any one of the second aspects is implemented.
本公开实施例提供的多线程刷机系统、方法、装置、设备和存储介质,通过控制第一集线器上连接的开关设备的第一端口通电,其他端口处于断电状态,并向开关设备的第一端口连接的第二集线器发送刷机数据,对该第二集线器上连接的多个终端设备进行刷机,实现了自动刷机及测试,节省了人力,提高了工作效率以及生产效率。The multi-threaded flashing system, method, apparatus, device and storage medium provided by the embodiments of the present disclosure control the first port of the switch device connected to the first hub to be powered on, while the other ports are in a power-off state, and sends flashing data to the second hub connected to the first port of the switch device, so as to flash multiple terminal devices connected to the second hub, thereby realizing automatic flashing and testing, saving manpower, and improving work efficiency and production efficiency.
附图说明BRIEF DESCRIPTION OF THE 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.
图1a是根据一示例性实施例示出的多线程刷机系统实施例一的结构示意图。Fig. 1a is a schematic structural diagram of a first embodiment of a multi-threaded flashing system according to an exemplary embodiment.
图1b是根据一示例性实施例示出的多线程刷机系统实施例二的结构示意图。Fig. 1b is a schematic structural diagram of a second embodiment of a multi-threaded flashing system according to an exemplary embodiment.
图2为根据一示例性实施例示出的远程监控设备的显示界面示意图。Fig. 2 is a schematic diagram of a display interface of a remote monitoring device according to an exemplary embodiment.
图3是根据一示例性实施例示出的多线程刷机方法实施例一的流程图。Fig. 3 is a flow chart of a first embodiment of a multi-thread flashing method according to an exemplary embodiment.
图4是根据一示例性实施例示出的多线程刷机方法实施例二的流程图。Fig. 4 is a flow chart of a second embodiment of a multi-thread flashing method according to an exemplary embodiment.
图5是根据一示例性实施例示出的多线程刷机方法实施例三的流程图。Fig. 5 is a flow chart of a third embodiment of a multi-thread flashing method according to an exemplary embodiment.
图6是根据一示例性实施例示出的多线程刷机方法实施例四的流程图。Fig. 6 is a flow chart of a fourth embodiment of a multi-thread flashing method according to an exemplary embodiment.
图7是根据一示例性实施例示出的一种软件侧刷机及测试的流程示意图。Fig. 7 is a schematic diagram of a flow chart of software-side flashing and testing according to an exemplary embodiment.
图8是根据一示例性实施例示出的多线程刷机装置实施例一的示意图。Fig. 8 is a schematic diagram of a first embodiment of a multi-threaded flashing device according to an exemplary embodiment.
图9是根据一示例性实施例示出的多线程刷机装置实施例二的示意图。Fig. 9 is a schematic diagram of a second embodiment of a multi-threaded flashing device according to an exemplary embodiment.
图10是根据一示例性实施例示出的多线程刷机装置实施例三的示意图。Fig. 10 is a schematic diagram of a third embodiment of a multi-threaded flashing device according to an exemplary embodiment.
图11是根据一示例性实施例示出的多线程刷机装置实施例四的示意图。Fig. 11 is a schematic diagram of a fourth embodiment of a multi-threaded flashing device according to an exemplary embodiment.
图12是根据一示例性实施例示出的刷机控制设备实体的框图。Fig. 12 is a block diagram showing a flash control device entity according to an exemplary embodiment.
图13是根据一示例性实施例示出的一种刷机控制设备1200的框图。Fig. 13 is a block diagram of a flash control device 1200 according to an exemplary embodiment.
具体实施方式Detailed ways
这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本发明相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本发明的一些方面相一致的装置和方法的例子。Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same 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. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
MTBF测试是衡量一个产品(尤其是电器产品)的可靠性指标,作为手机量产准入标准,保证手机的稳定性,提高用户在使用过程中的提要感受。面对大量需要进行MTBF测试以及刷机的需求,实现自动刷机、解放人力、提高测试效率、以及能够远程监控测试状态变得尤为重要。MTBF test is an indicator to measure the reliability of a product (especially electrical products). As a standard for mass production of mobile phones, it ensures the stability of mobile phones and improves the user experience during use. Faced with a large number of demands for MTBF testing and flashing, it is particularly important to realize automatic flashing, free up manpower, improve test efficiency, and be able to remotely monitor the test status.
对此,现有技术中没有相关的解决方案,而本方案提供的一种多线程刷机系统、方法、装置、设备和存储介质,通过增加开关设备部件,使得突破电脑对终端设备识别数量少且不稳定的瓶颈,并且采用自动的刷机及测试方法,节省了人力,提高了工作效率。下面通过几个具体实施例对本方案进行详细说明。There is no relevant solution in the prior art, and the present solution provides a multi-thread flashing system, method, device, equipment and storage medium, which, by adding a switch device component, breaks through the bottleneck of the small and unstable number of terminal devices recognized by the computer, and adopts an automatic flashing and testing method, which saves manpower and improves work efficiency. The present solution is described in detail through several specific embodiments.
图1a是根据一示例性实施例示出的多线程刷机系统实施例一的结构示意图,图1b是根据一示例性实施例示出的多线程刷机系统实施例二的结构示意图,如图1a所示,该多线程刷机系统10,包括:刷机控制设备11,开关设备13,第一集线器12和至少两个第二集线器14。Figure 1a is a structural diagram of a first embodiment of a multi-threaded flashing system according to an exemplary embodiment, and Figure 1b is a structural diagram of a second embodiment of a multi-threaded flashing system according to an exemplary embodiment. As shown in Figure 1a, the multi-threaded flashing system 10 includes: a flashing control device 11, a switch device 13, a first hub 12 and at least two second hubs 14.
其中,第一集线器12分别与刷机控制设备11和至少两个第二集线器14连接,开关设备13分别与刷机控制设备11和至少两个第二集线器12连接。The first hub 12 is connected to the flash control device 11 and at least two second hubs 14 respectively, and the switch device 13 is connected to the flash control device 11 and at least two second hubs 12 respectively.
在一种可能的设计中,结合图1b所示,开关设备13可以通过第一集线器12与刷机控制设备11连接,具体的,刷机控制设备11与第一集线器12的输入接口连接,第一集线器12的一个输出端口连接开关设备13,第一集线器12的其他多个输出端口分别连接不同的第二集线器14。In a possible design, in combination with what is shown in FIG1b, the switch device 13 can be connected to the flash control device 11 through the first hub 12. Specifically, the flash control device 11 is connected to the input interface of the first hub 12, an 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.
每个第二集线器14的供电控制端口分别与开关设备13的不同的输出端口连接,每个第二集线器14的输出端口用于连接待刷机的终端设备15;The power supply control port of each second hub 14 is respectively connected to different output ports of the switch device 13, and the output port of each second hub 14 is used to connect to the terminal device 15 to be flashed;
刷机控制设备11用于通过开关设备13控制至少两个第二集线器14中的目标第二集线器与第一集线器12接通,以对目标第二集线器连接的终端设备进行刷机。The flashing control device 11 is used to control a target second hub among at least two second hubs 14 to be connected to the first hub 12 through a switch device 13, so as to flash the terminal device connected to the target second hub.
进一步地,开关设备13的不同的输出端口分别与至少两个第二集线器14中的每个第二集线器的供电控制端口连接,开关设备13用于通过与目标第二集线器连接的输出端口向目标第二集线器的供电控制端口供电,以使目标第二集线器通电。Furthermore, different output ports of the switch device 13 are respectively connected to the power control port of each of the at least two second hubs 14, and the switch device 13 is used to supply power to the power control port of the target second hub through the output port connected to the target second hub to power on the target second hub.
可选的,开关设备13可以是继电器,或者包括继电器。Optionally, the switch device 13 may be a relay, or include a relay.
在一种具体的实现方式中,刷机控制设备11为个人计算机PC。In a specific implementation, the flashing control device 11 is a personal computer PC.
可选的,第一集线器12和至少两个第二集线器14均为多端口的集线器(HUB),第一集线器的端口数大于任一第二集线器的端口数。例如,第一集线器为20端口的HUB,第二集线器为16端口的HUB,这样可以实现多线程刷机系统连接更多的终端设备,已满足同时对大量终端设备的进行刷机或者测试。Optionally, the first hub 12 and at least two second hubs 14 are multi-port hubs (HUBs), and the number of ports of the first hub is greater than the number of ports of any second hub. For example, the first hub is a 20-port HUB, and the second hub is a 16-port HUB, so that the multi-threaded flashing system can be connected to more terminal devices, which can meet the needs of flashing or testing a large number of terminal devices at the same time.
可选的,终端设备可以是手机、平板电脑、笔记本电脑、可穿戴、以及其他智能终端设备。Optionally, the terminal device may be a mobile phone, a tablet computer, a laptop computer, a wearable device, or other smart terminal devices.
在上述方案中,应理解,刷机控制设备用于根据脚本向第一集线器发送刷机数据和测试数据。其中,刷机数据包括待刷机的终端设备对应的软件版本;测试数据包括测试需要的程序安装包。In the above solution, it should be understood that the flashing control device is used to send flashing data and test data to the first hub according to the script. The flashing data includes the software version corresponding to the terminal device to be flashed; the test data includes the program installation package required for the test.
进一步地,刷机控制设备还用于控制开关设备在同一时间只有一个端口通电,进而使至少两个第二集线器中只有一个第二集线器通电,即同一时间只允许一个第二集线器为可识别状态,能够进行数据传输。Furthermore, the flash control device is also used to control the switch device to power on only one port at a time, thereby powering on only one second hub among at least two second hubs, that is, only one second hub is allowed to be in a recognizable state at the same time and capable of data transmission.
并且,刷机控制设备连接第一集线器以及与第一集线器的输出端口连接的至少个第二集线器,实现数据传输,以使终端设备在刷机控制设备的控制下能够完成自动刷机以及自动测试。Furthermore, the flash control device is connected to the first hub and at least a second hub connected to the output port of the first hub to realize data transmission, so that the terminal device can complete automatic flashing and automatic testing under the control of the flash control device.
在一种具体的实现方式中,该多线程刷机系统还包括远程监控设备,该远程监控设备用于在对多台终端设备进行测试时,显示终端设备的测试状态,如图2所示,图2为根据一示例性实施例示出的远程监控设备的显示界面示意图。当终端设备发生死机等故障时,远程监控设备将显示该终端设备“offline”,测试人员能够通过设备监控的表格快速定位到是那台HUB下的那台终端设备发生了故障。In a specific implementation, the multi-thread flashing system also includes a remote monitoring device, which is used to display the test status of the terminal device when testing multiple terminal devices, as shown in Figure 2, which is a schematic diagram of the display interface of the remote monitoring device according to an exemplary embodiment. When a terminal device crashes or fails, the remote monitoring device will display the terminal device as "offline", and the tester can quickly locate the terminal device under which the HUB has failed through the device monitoring table.
本实施例提供的多线程刷机系统由刷机控制设备,开关设备,第一集线器和至少两个用于连接终端设备第二集线器,第一集线器分别与刷机控制设备和至少两个第二集线器连接,开关设备分别与刷机控制设备和至少两个第二集线器连接,该刷机控制设备用于通过开关设备控制至少两个第二集线器中的目标第二集线器与第一集线器接通,以对目标第二集线器连接的终端设备进行刷机,实现了同时连接多台终端设备进行测试,提高了工作效率。The multi-threaded flashing system provided in this embodiment consists of a flashing control device, a switch device, a first hub and at least two second hubs for connecting terminal devices. The first hub is respectively connected to the flashing control device and the at least two second hubs, and the switch device is respectively connected to the flashing control device and the at least two second hubs. The flashing control device is used to control the target second hub among the at least two second hubs to be connected to the first hub through the switch device, so as to flash the terminal device connected to the target second hub, thereby realizing the simultaneous connection of multiple terminal devices for testing and improving work efficiency.
在上述实施例的基础上,图3是根据一示例性实施例示出的多线程刷机方法实施例一的流程图,如图3所示,该多线程刷机方法,包括:Based on the above embodiments, FIG3 is a flow chart of a multi-thread flashing method embodiment 1 according to an exemplary embodiment. As shown in FIG3 , the multi-thread flashing method includes:
S101:控制第一集线器上连接的开关设备的第一端口通电,其他端口处于断电状态。S101: Control a first port of a switch device connected to a first hub to be powered on, and other ports to be powered off.
在本步骤中,刷机控制设备控制第一集线器上连接的开关设备的第一端口通电,其他端口则处于断电状态,此处,应理解,开关设备与多个第二集线器连接并根据刷机控制设备的指令对第二集线器进行通断电的控制。由于刷机控制设备对于连接的终端设备的可识别数量有限制,因此,对每个第二集线器进行轮流通电,使得在同一时间段仅一个第二集线器处于可识别状态。In this step, the flash 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 power-off state. Here, it should be understood that the switch device is connected to multiple second hubs and controls the power on and off of the second hubs according to the instructions of the flash control device. Since the flash control device has a limit on the number of identifiable terminal devices connected, each second hub is powered on in turn, so that only one second hub is in a identifiable state in the same time period.
S102:向开关设备的第一端口连接的第二集线器发送刷机数据,对第二集线器上连接的多个终端设备进行刷机。S102: Send flashing data to a second hub connected to a first port of the switch device, and flash multiple terminal devices connected to the second hub.
在本步骤中,刷机控制设备向第一集线器发送刷机数据,并由第一集线器向处于可识别状态的第二集线器发送刷机数据,最终由该第二集线器将刷机数据发送给连接的每个终端设备,终端设备根据接收到刷机数据进行刷机。In this step, the flashing control device sends the flashing data to the first hub, and the first hub sends the flashing data to the second hub in a recognizable state. Finally, the second hub sends the flashing data to each connected terminal device, and the terminal device flashes according to the received flashing data.
在刷机过程中,若终端设备出现刷机失败,则控制该终端设备重新刷机。During the flashing process, if the terminal device fails to flash, the terminal device is controlled to flash again.
其中,刷机数据为与所连接的终端设备对应的用于测试的软件版本。The flashing data is the software version for testing corresponding to the connected terminal device.
本实施例提供的一种多线程刷机方法,通过控制第一集线器上连接的开关设备的第一端口通电,其他端口处于断电状态,并向开关设备的第一端口连接的第二集线器发送刷机数据,对该第二集线器上连接的多个终端设备进行刷机,提高了测试效率。A multi-threaded flashing method provided in this embodiment controls the first port of a switching device connected to a first hub to be powered on, while other ports are in a power-off state, and sends flashing data to a second hub connected to the first port of the switching device, thereby flashing multiple terminal devices connected to the second hub, thereby improving test efficiency.
图4是根据一示例性实施例示出的多线程刷机方法实施例二的流程图,如图4所示,在图3所示实施例的基础上,该多线程刷机方法,还包括以下步骤:FIG4 is a flow chart of a second embodiment of a multi-thread flashing method according to an exemplary embodiment. As shown in FIG4 , based on the embodiment shown in FIG3 , the multi-thread flashing method further includes the following steps:
S103:若接收到第一端口连接的第二集线器返回的刷机完成消息,则控制开关设备的第二端口通电,其他端口处于断电状态。S103: If a flashing completion message returned by the second hub connected to the first port is received, the second port of the switch device is controlled to be powered on, and other ports are powered off.
在本步骤中,当前述S102步骤中的与第一端口连接的第二集线器上连接的所有终端设备完成刷机后,该第二集线器向刷机控制设备返回刷机完成消息,刷机控制设备接收到该刷机完成消息后,控制开关设备的第二端口通电,第一端口断电,并且其余端口仍处于断电状态,相应的,与第二端口连接的第二集线器将处于可识别状态。In this step, when all terminal devices connected to the second hub connected to the first port in the aforementioned step S102 complete the flashing, the second hub returns a flashing completion message to the flashing control device. After receiving the flashing completion message, the flashing control device controls the second port of the switch device to be powered on, the first port to be powered off, and the remaining ports remain in the power-off state. Accordingly, the second hub connected to the second port will be in a recognizable state.
S104:刷机控制设备向开关设备的第二端口连接的第二集线器发送刷机数据,对第二集线器上连接的多个终端设备进行刷机。S104: The flashing control device sends flashing data to the second hub connected to the second port of the switch device, and flashes multiple terminal devices connected to the second hub.
在本步骤中,与开关设备通电的第二端口连接的第二集线器处于可识别状态,此时,刷机控制设备能够通过第一集线器向该第二集线器发送刷机数据,以使该第二集线器上连接的每个终端设备接收到刷机数据进行刷机。In this step, the second hub connected to the second port of the switch device that is powered on is in a recognizable state. At this time, the flashing control device can send flashing data to the second hub through the first hub, so that each terminal device connected to the second hub receives the flashing data for flashing.
其中,刷机数据为与所连接的终端设备对应的用于测试的软件版本。The flashing data is the software version for testing corresponding to the connected terminal device.
本实施例提供的一种多线程刷机方法,当第一端口连接的第二集线器返回刷机完成消息,则控制开关设备的第二端口通电,其他端口处于断电状态,并向与第二端口连接的第二集线器发送刷机数据,对第二集线器上连接的多个终端设备进行刷机,通过自动切换对多台待测试终端设备分批完成测试,减少了人工作业的复杂性。This embodiment provides a multi-threaded flashing method. When the second hub connected to the first port returns a flashing completion message, the second port of the switch device is controlled to be powered on, and other ports are in a power-off state. Flashing data is sent to the second hub connected to the second port, and multiple terminal devices connected to the second hub are flashed. Through automatic switching, multiple terminal devices to be tested are tested in batches, reducing the complexity of manual work.
图5是根据一示例性实施例示出的多线程刷机方法实施例三的流程图,如图5所示,在图3和图4所示实施例的基础上,在S101步骤之前,该多线程刷机方法,还包括以下步骤:FIG5 is a flow chart of a third embodiment of a multi-thread flashing method according to an exemplary embodiment. As shown in FIG5 , based on the embodiments shown in FIG3 and FIG4 , before step S101, the multi-thread flashing method further includes the following steps:
S201:获取待刷机的终端设备的名称和刷机类型。S201: Obtain the name and flashing type of the terminal device to be flashed.
在本步骤中,在多线程刷机系统正式运行之前,需要根据待刷机的终端设备匹配对应的刷机数据。那么,首先需要获取待刷机的终端设备的名称和刷机类型,其获取的方式可以是通过用户配置的配置文件中获取,或者沿用上一次获取到的终端设备的名称和刷机类型。应理解,此处的设备的名称可以是产品的型号、测试代号、宣传名等,且刷机类型包括机器型号、软件版本等信息。In this step, before the multi-threaded flashing system is officially running, it is necessary to match the corresponding flashing data according to the terminal device to be flashed. Then, first of all, it is necessary to obtain the name and flashing type of the terminal device to be flashed, which can be obtained from the configuration file configured by the user, or the name and flashing type of the terminal device obtained last time can be used. It should be understood that the name of the device here can be the model, test code, promotional name, etc. of the product, and the flashing type includes information such as the machine model and software version.
S202:根据待刷机的终端设备的名称和刷机类型,下载刷机数据。S202: Download the flashing data according to the name of the terminal device to be flashed and the flashing type.
在本步骤中,根据获取的待刷机的终端设备的名称和刷机类型下载对应的刷机数据。以使刷机控制设备能够发送与待刷机的终端设备对应的刷机数据,使之完成刷机。In this step, the corresponding flashing data is downloaded according to the acquired name and flashing type of the terminal device to be flashed, so that the flashing control device can send the flashing data corresponding to the terminal device to be flashed, so that the flashing is completed.
本实施例提供的一种多线程刷机方法,通过获取待刷机的终端设备的名称和刷机类型,并根据待刷机的终端设备的名称和所述刷机类型,下载所述刷机数据,能够对多种不同的终端设备进行刷机以及测试工作。A multi-threaded flashing method provided in this embodiment can flash and test a variety of different terminal devices by obtaining the name and flashing type of the terminal device to be flashed, and downloading the flashing data according to the name of the terminal device to be flashed and the flashing type.
图6是根据一示例性实施例示出的多线程刷机方法实施例四的流程图,如图6所示,在图3至图5所示实施例的基础上,在前述所有终端设备完成刷机过程之后,该多线程刷机方法,还包括以下步骤:FIG6 is a flow chart of a fourth embodiment of a multi-thread flashing method according to an exemplary embodiment. As shown in FIG6, based on the embodiments shown in FIG3 to FIG5, after all the terminal devices complete the flashing process, the multi-thread flashing method further includes the following steps:
S301:监控已经刷机完成的终端设备的测试状态。S301: Monitor the test status of the terminal device that has completed the flashing.
在步骤S104完成之后,将继续控制开关设备其他端口轮流通电,以使与开关设备连接的每个第二集线器上连接的终端设备完成刷机。若在刷机的过程中出现终端设备刷机失败的情况,则控制该终端设备重新刷机。等待全部终端设备刷机成功后,根据脚本控制终端设备跳过开机引导界面,完成解锁,并安装测试所需的安卓安装包(AndroidPackage,APK),运行测试。并且,参见图2,在运行测试的过程中通过远程监控设备对每个终端设备的测试状态进行监控,并可通过图2所示的表格快速定位故障机。After step S104 is completed, the other ports of the switch device will continue to be controlled to energize in turn, so that the terminal devices connected to each second hub connected to the switch device can complete the flashing. If the flashing of the terminal device fails during the flashing process, the terminal device is controlled to flash again. After waiting for all terminal devices to flash successfully, the terminal device is controlled according to the script to skip the boot interface, complete the unlocking, and install the Android installation package (AndroidPackage, APK) required for the test, and run the test. In addition, referring to Figure 2, during the test, the test status of each terminal device is monitored by the remote monitoring device, and the faulty device can be quickly located through the table shown in Figure 2.
本实施例提供的一种多线程刷机方法,通过监控已经刷机完成的终端设备的测试状态,能够及时发现故障机器。The multi-threaded flashing method provided in this embodiment can detect faulty machines in time by monitoring the test status of terminal devices that have completed flashing.
在上述实施例的基础上,下面将以刷机控制设备为电脑、第一集线器为主HUB、第二集线器为副HUB、测试为MTBF测试,终端设备为手机为例,通过硬件和软件两部分对本方案进行详细说明。Based on the above embodiments, the flashing control device is a computer, the first hub is the main HUB, the second hub is the secondary HUB, the test is the MTBF test, and the terminal device is a mobile phone. The present solution is described in detail through both hardware and software.
(一)硬件部分:(I) Hardware:
所有手机需通过HUB与电脑连接,其中,主HUB连接多个副HUB,以实现大批量手机与电脑连接。因电脑连接手机可识别设备(adb devices)的数量有限制,因此通过开关设备指定副HUB通断电的方法,保证同一时间段内只有一个HUB对电脑来说是可识别状态,并轮流对多个副HUB所连接的手机进行刷机或测试。All mobile phones need to be connected to the computer through a HUB, where the main HUB is connected to multiple secondary HUBs to achieve large-scale mobile phone and computer connection. Because the number of devices (adb devices) that can be recognized by the computer connected to the mobile phone is limited, the method of switching the device to specify the secondary HUB on and off ensures that only one HUB is recognizable to the computer in the same time period, and the mobile phones connected to multiple secondary HUBs are flashed or tested in turn.
例如:副HUB包括:HUB1、HUB2、HUB3,且这3个副HUB分别接到开关设备的第一端口、第二端口、和第三端口。刷机前,电脑通过脚本控制开关设备的第二端口和第三端口处于断电状态,只有第一端口是可识别状态,等待HUB1上所有设备刷机完成后,则控制第一端口断电,第二端口通电,即控制HUB2处于可识别状态,此时处于断电状态的是第一端口和第三端口。其余副HUB的通断控制以此方法类推,此处不再赘述。For example, the secondary HUBs include: HUB1, HUB2, and HUB3, and these three secondary HUBs are connected to the first port, the second port, and the third port of the switch device respectively. Before flashing, the computer controls the second and third ports of the switch device through a script to be in a power-off state, and only the first port is in a recognizable state. After all devices on HUB1 are flashed, the first port is controlled to be powered off and the second port is powered on, that is, HUB2 is controlled to be in a recognizable state, and the first and third ports are in a power-off state at this time. The on-off control of the remaining secondary HUBs is analogous to this method, and will not be repeated here.
(二)软件部分:(II) Software:
软件侧刷机以及测试流程可参见图7,图7是根据一示例性实施例示出的一种软件侧刷机及测试的流程示意图。The software side flashing and testing process can be referred to FIG. 7 , which is a schematic diagram of a software side flashing and testing process according to an exemplary embodiment.
如图7所示,开关设备的通断状态均由电脑通过脚本控制,通过脚本可控制自动下载手机刷机数据进行刷机,在刷机过程中如果某台收集出现刷机失败的情况,可自动对这台手机重新刷机,等待全部刷机成功后通过脚本设置跳过开机引导界面,并进行解锁、安装MTBF测试所需要的APK,最后运行测试,并监控手机测试状态。As shown in Figure 7, the on and off states of the switch devices are controlled by the computer through scripts. The scripts can be used to automatically download the mobile phone flashing data for flashing. If a mobile phone fails to flash during the flashing process, the phone can be automatically re-flashed. After all the flashing is successful, the script settings can be used to skip the boot interface, unlock, install the APK required for the MTBF test, and finally run the test and monitor the test status of the mobile phone.
以上所有操作均可通过脚本设置实现,无需人工介入。All the above operations can be achieved through script settings without manual intervention.
当待测试的手机或者其对应的软件版本变更时,需要在Jenkins上建立节点,构建测试任务,设置定时运行,该操作在变更测试对象时进行一次即可。When the mobile phone to be tested or its corresponding software version changes, it is necessary to create a node on Jenkins, build a test task, and set a scheduled run. This operation only needs to be performed once when the test object is changed.
图8是根据一示例性实施例示出的多线程刷机装置实施例一的示意图,如图8所示,该多线程刷机装置100包括:FIG8 is a schematic diagram of a first embodiment of a multi-thread flashing device according to an exemplary embodiment. As shown in FIG8 , the multi-thread flashing device 100 includes:
第一处理模块101:用于控制第一集线器上连接的开关设备的第一端口通电,其他端口处于断电状态;The first processing module 101 is used to control the first port of the switch device connected to the first hub to be powered on, and the other ports to be powered off;
第一发送模块102:用于向所述开关设备的第一端口连接的第二集线器发送刷机数据;The first sending module 102 is used to send flashing data to the second hub connected to the first port of the switch device;
第二处理模块103:用于对所述第二集线器上连接的多个终端设备进行刷机。The second processing module 103 is used to flash the multiple terminal devices connected to the second hub.
本实施例的多线程刷机装置100,通过控制第一集线器上连接的开关设备的第一端口通电,其他端口处于断电状态,并向开关设备的第一端口连接的第二集线器发送刷机数据,对该第二集线器上连接的多个终端设备进行刷机,提高了测试效率。The multi-threaded flashing device 100 of this embodiment controls the first port of the switch device connected to the first hub to be powered on, while the other ports are in a power-off state, and sends flashing data to the second hub connected to the first port of the switch device, thereby flashing multiple terminal devices connected to the second hub, thereby improving test efficiency.
在图8所示实施例的基础上,图9是根据一示例性实施例示出的多线程刷机装置实施例二的示意图,如图9所示,该多线程刷机装置100还包括:Based on the embodiment shown in FIG8 , FIG9 is a schematic diagram of a second embodiment of a multi-thread flashing device according to an exemplary embodiment. As shown in FIG9 , the multi-thread flashing device 100 further includes:
第三处理模块104:用于若接收到所述第一端口连接的第二集线器返回的刷机完成消息,则控制所述开关设备的第二端口通电,其他端口处于断电状态;The third processing module 104 is configured to control the second port of the switch device to be powered on and other ports to be powered off if a flashing completion message returned by the second hub connected to the first port is received;
第二发送模块105:用于所述刷机控制设备向所述开关设备的第二端口连接的第二集线器发送刷机数据;The second sending module 105 is used for the flashing control device to send the flashing data to the second hub connected to the second port of the switch device;
第四处理模块106:用于对所述第二集线器上连接的多个终端设备进行刷机。The fourth processing module 106 is used to flash the multiple terminal devices connected to the second hub.
在上述图8和图9所示的实施例的基础上,图10是根据一示例性实施例示出的多线程刷机装置实施例三的示意图,如图10所示,该多线程刷机装置100还包括:Based on the embodiments shown in FIG. 8 and FIG. 9 , FIG. 10 is a schematic diagram of a third embodiment of a multi-thread flashing device according to an exemplary embodiment. As shown in FIG. 10 , the multi-thread flashing device 100 further includes:
获取模块107,用于获取待刷机的终端设备的名称和刷机类型;The acquisition module 107 is used to obtain the name and type of the terminal device to be flashed;
下载模块108,用于根据所述待刷机的终端设备的名称和所述刷机类型,下载所述刷机数据。The download module 108 is used to download the flashing data according to the name of the terminal device to be flashed and the flashing type.
在上述装置实施例的基础上,图11是根据一示例性实施例示出的多线程刷机装置实施例四的示意图,如图11所示,该多线程刷机装置100还包括:Based on the above device embodiments, FIG11 is a schematic diagram of a fourth embodiment of a multi-thread flashing device according to an exemplary embodiment. As shown in FIG11 , the multi-thread flashing device 100 further includes:
监控模块109:用于监控已经刷机完成的终端设备的测试状态。Monitoring module 109: used to monitor the test status of the terminal device that has completed the flashing.
本实施例的多线程刷机装置100,可以用于执行前述任一方法实施例中的多线程刷机方法的技术方案,其实现原理和技术效果类似,此处不再赘述。The multi-thread flashing device 100 of this embodiment can be used to execute the technical solution of the multi-thread flashing method in any of the aforementioned method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
关于上述各个实施例中的多线程刷机装置,其中各个模块执行操作的具体方式已经在有关方法的实施例中进行了详细描述,此处将不做详细阐述说明。即以上描述了刷机控制设备的内部功能模块和结构示意。Regarding the multi-thread flashing device in each of the above embodiments, the specific way in which each module performs operations has been described in detail in the embodiments of the related methods, and will not be elaborated here. That is, the internal functional modules and structural schematics of the flashing control device are described above.
图12是根据一示例性实施例示出的刷机控制设备实体的框图。参考图12,本公开实施例提供的刷机控制设备60,包括:至少一个处理器和存储器602。Fig. 12 is a block diagram of a flash control device entity according to an exemplary embodiment. Referring to Fig. 12 , a flash control device 60 provided by an embodiment of the present disclosure includes: at least one processor and a memory 602 .
其中,in,
存储器602,用于存储计算机执行指令;Memory 602, used to store computer-executable instructions;
处理器601,用于执行存储器存储的计算机执行指令,以实现上述实施例中刷机控制设备所执行的各个步骤。具体可以参见前述方法实施例中的相关描述。The processor 601 is used to execute the computer-executable instructions stored in the memory to implement the various steps performed by the flash control device in the above embodiment. For details, please refer to the relevant description in the above method embodiment.
可选地,存储器602既可以是独立的,也可以跟处理器601集成在一起。Optionally, the memory 602 may be independent or integrated with the processor 601 .
当存储器602独立设置时,该刷机控制设备还包括总线603,用于连接所述存储器602和处理器601。When the memory 602 is independently provided, the flashing control device further includes a bus 603 for connecting the memory 602 and the processor 601 .
在上述智能设备的实施例中,应理解,处理器可以是中央处理单元(英文:CentralProcessing Unit,简称:CPU),还可以是其他通用处理器、数字信号处理器(英文:DigitalSignal Processor,简称:DSP)、专用集成电路(英文:Application Specific IntegratedCircuit,简称:ASIC)等。通用处理器可以是微处理器或者处理器也可以是任何常规的处理器等,而前述的存储器可以是只读存储器(英文:read-only memory,缩写:ROM)、随机存取存储器(英文:random access memory,简称:RAM)、快闪存储器、硬盘或者固态硬盘。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。In the above-mentioned embodiment of the intelligent device, it should be understood that the processor can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or a processor, or any conventional processor, etc., and the aforementioned memory can be a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk, or a solid-state drive. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
本申请还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时,实现前述任一方案提供智能设备的跌落保护方法的技术方案。The present application also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the technical solution of providing a fall protection method for a smart device according to any of the aforementioned solutions is implemented.
请参考图13,图13是根据一示例性实施例示出的一种刷机控制设备1200的框图。例如,该智能设备可以是电脑、笔记本、服务器等设备。Please refer to Fig. 13, which is a block diagram of a flash control device 1200 according to an exemplary embodiment. For example, the smart device can be a computer, a notebook, a server, or other devices.
参照图13,刷机控制设备1200可以包括以下一个或多个组件:处理组件1202,存储器1204,电源组件1206,多媒体组件1208,音频组件1210,输入/输出(I/O)的接口1212,传感器组件1214,以及通信组件1216。13 , the flash control device 1200 may include one or more of the following components: a processing component 1202 , a memory 1204 , a power component 1206 , a multimedia component 1208 , an audio component 1210 , an input/output (I/O) interface 1212 , a sensor component 1214 , and a communication component 1216 .
处理组件1202通常控制刷机控制设备1200的整体操作,诸如与显示,数据通信,多媒体操作和记录操作相关联的操作。处理组件1202可以包括一个或多个处理器1220来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1202可以包括一个或多个模块,便于处理组件1202和其他组件之间的交互。例如,处理组件1202可以包括多媒体模块,以方便多媒体组件1208和处理组件1202之间的交互。The processing component 1202 generally controls the overall operation of the flash control device 1200, such as operations associated with display, data communication, multimedia operations, and recording operations. The processing component 1202 may include one or more processors 1220 to execute instructions to complete all or part of the steps of the above method. In addition, the processing component 1202 may include one or more modules to facilitate the interaction between the processing component 1202 and other components. For example, the processing component 1202 may include a multimedia module to facilitate the interaction between the multimedia component 1208 and the processing component 1202.
存储器1204被配置为存储各种类型的数据以支持在刷机控制设备1200的操作。这些数据的示例包括用于在刷机控制设备1200上操作的任何应用程序或方法的指令,各类数据,消息,图片,视频等。存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。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, etc. The memory 1204 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, 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 disk or optical disk.
电源组件1206为刷机控制设备1200的各种组件提供电力。电源组件1206可以包括电源管理系统,一个或多个电源,及其他与为刷机控制设备1200生成、管理和分配电力相关联的组件。The power supply component 1206 provides power to various components of the flash control device 1200. The power supply component 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the flash control device 1200.
多媒体组件1208包括在刷机控制设备1200和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与触摸或滑动操作相关的持续时间和压力。The multimedia component 1208 includes a screen that provides an output interface between the brush control device 1200 and the 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 input signals from the 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 boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
音频组件1210被配置为输出和/或输入音频信号。例如,音频组件1210包括一个麦克风(MIC),当刷机控制设备1200处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1204或经由通信组件1216发送。在一些实施例中,音频组件1210还包括一个扬声器,用于输出音频信号。The audio component 1210 is configured to output and/or input audio signals. For example, the audio component 1210 includes a microphone (MIC), and when the brush control device 1200 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 1204 or sent via the communication component 1216. In some embodiments, the audio component 1210 also includes a speaker for outputting audio signals.
I/O接口1212为处理组件1202和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。The I/O interface 1212 provides an interface between the processing component 1202 and a peripheral interface module, which may be a keyboard, a click wheel, a button, etc.
传感器组件1214包括一个或多个传感器,用于为刷机控制设备1200提供各个方面的状态评估。例如,传感器组件1214可以检测到刷机控制设备1200的打开/关闭状态,组件的相对定位,例如组件为刷机控制设备1200的显示器和小键盘,传感器组件1214还可以检测刷机控制设备1200或刷机控制设备1200一个组件的位置改变,用户与刷机控制设备1200接触的存在或不存在,刷机控制设备1200方位或加速/减速和刷机控制设备1200的温度变化。传感器组件1214可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1214还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,传感器组件1214还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。The sensor assembly 1214 includes one or more sensors for providing various aspects of status assessment for the flash control device 1200. For example, the sensor assembly 1214 can detect the open/closed state of the flash control device 1200, the relative positioning of components, such as the display and keypad of the flash control device 1200, and the sensor assembly 1214 can also detect the position change of the flash control device 1200 or a component of the flash control device 1200, the presence or absence of user contact with the flash control device 1200, the orientation or acceleration/deceleration of the flash control device 1200, and the temperature change of the flash control device 1200. The sensor assembly 1214 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 1214 may also include an optical 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.
通信组件1216被配置为便于刷机控制设备1200和其他设备之间有线或无线方式的通信。刷机控制设备1200可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1216经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,通信组件1216还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1216 is configured to facilitate wired or wireless communication between the brush control device 1200 and other devices. The brush control device 1200 can 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 a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,刷机控制设备1200可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现。用于执行多线程刷机方法,包括:In an exemplary embodiment, the flash 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, microcontrollers, microprocessors, or other electronic components. The method for executing a multi-threaded flash method includes:
控制第一集线器上连接的开关设备的第一端口通电,其他端口处于断电状态;Controlling the first port of the switch device connected to the first hub to be powered on, and the other ports to be powered off;
向所述开关设备的第一端口连接的第二集线器发送刷机数据,对所述第二集线器上连接的多个终端设备进行刷机。Sending flashing data to a second hub connected to the first port of the switch device to flash multiple terminal devices connected to the second hub.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1204,上述指令可由刷机控制设备1200的处理器1220执行以完成上述方法。例如,非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1204 including instructions, and the instructions can be executed by a processor 1220 of the flash control device 1200 to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本申请旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由权利要求书指出。Those skilled in the art will readily appreciate other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses or adaptations of the present invention that follow the general principles of the present invention and include common knowledge or customary techniques in the art that are not disclosed in this disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present invention are indicated by the claims.
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求书来限制。It should be understood that the present invention is not limited to the exact construction that has been 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 present invention is limited only by the appended claims.
Claims (13)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910934338.7A CN112579369B (en) | 2019-09-29 | 2019-09-29 | Multi-thread flashing 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 | 2019-09-29 | Multi-thread flashing system, method, device, equipment and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN112579369A CN112579369A (en) | 2021-03-30 |
| CN112579369B true CN112579369B (en) | 2024-04-30 |
Family
ID=75111296
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910934338.7A Active CN112579369B (en) | 2019-09-29 | 2019-09-29 | Multi-thread flashing system, method, device, equipment and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN112579369B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110267260B (en) * | 2019-06-17 | 2022-03-01 | Oppo广东移动通信有限公司 | Flashing method, device, terminal and computer readable storage medium |
| CN114064057B (en) * | 2021-11-16 | 2025-07-11 | 展讯通信(天津)有限公司 | Distributed flashing system, flashing method and server |
| CN115033466B (en) * | 2022-05-23 | 2023-04-07 | 珠海视熙科技有限公司 | Batch flashing pressure testing method and device, storage medium and computer equipment |
| CN118963808A (en) * | 2024-08-29 | 2024-11-15 | 润芯微科技(江苏)有限公司 | A method and terminal for regularly downloading version packages and flashing the device |
Citations (9)
| 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 |
| 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, device and storage medium for allocating USB bandwidth |
| CN109154850A (en) * | 2016-05-18 | 2019-01-04 | 谷歌有限责任公司 | Power Distribution for Mobile Devices |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2013147860A1 (en) * | 2012-03-30 | 2013-10-03 | Intel Corporation | Usb hub with automatic communication mode switching |
-
2019
- 2019-09-29 CN CN201910934338.7A patent/CN112579369B/en active Active
Patent Citations (9)
| 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 |
| 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 | 谷歌有限责任公司 | Power Distribution for Mobile Devices |
| 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, device and storage medium for allocating USB bandwidth |
Non-Patent Citations (1)
| Title |
|---|
| 多功能USB 2.0集线器的设计与实现;孟志达;;计算机与现代化(第09期);全文 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN112579369A (en) | 2021-03-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112579369B (en) | Multi-thread flashing system, method, device, equipment and storage medium | |
| CN111142711B (en) | Firmware configuration method and device, storage medium and mobile terminal | |
| CN109542744B (en) | Method, device, storage medium and terminal for detecting abnormal starting problem of terminal | |
| CN110457154B (en) | Abnormal service processing method and device, storage medium and communication terminal | |
| CN112199246B (en) | Terminal test method and device, storage medium and mobile terminal | |
| CN102331834B (en) | Mobile terminal-opening control method and mobile terminal | |
| CN112415367B (en) | Drive chip abnormality detection method, drive chip abnormality detection device, electronic device and readable storage medium | |
| CN112131015B (en) | An information processing method, device, cloud server and storage medium | |
| CN110413497B (en) | Abnormal monitoring method, device, terminal equipment and computer-readable storage medium | |
| CN102647515B (en) | Terminal state displaying control method and device | |
| CN113821128B (en) | Terminal device and gesture operation method and medium thereof | |
| CN107861738A (en) | Application exception handling method, device, storage medium and terminal equipment | |
| CN107832214A (en) | Test method, device, storage medium, terminal equipment and system | |
| CN112463199A (en) | System upgrading method and terminal | |
| CN108121560A (en) | Difference bag upgrade method, device, terminal and computer readable storage medium | |
| CN104951348B (en) | A kind of interruptable recovery upgrade method and device | |
| CN108432161A (en) | Interference control method and terminal for audio service | |
| CN114117562B (en) | Management method, device, electronic equipment and computer storage medium of intelligent network card | |
| CN108365982A (en) | Unit exception adjustment method, device, equipment and storage medium | |
| CN102253690B (en) | Computer integration device, system and method | |
| CN107786729A (en) | A kind of operating system update method and terminal | |
| WO2023000777A9 (en) | Method for performing restarting during upgrade process of recovery mode, and terminal | |
| CN110865823B (en) | Preinstalled application control method, preinstalled application control device and storage medium | |
| CN109684112A (en) | Program file operation method, device, terminal and storage medium | |
| CN110874143B (en) | Sensor data acquisition method, intelligent terminal, storage medium 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 | ||
| GR01 | Patent grant | ||
| TG01 | Patent term adjustment | ||
| TG01 | Patent term adjustment |