Mobile terminal test method and related device

By reading the hardware unique code of the mobile terminal, the unique serial number is solved, and the problem of inconsistency in the mobile terminal test is realized, the automatic maintenance of the serial number and the consistency between the terminals among different test devices is realized, and automation is supported. Testing and terminal tracking.

CN119211406APending Publication Date: 2024-12-27MEDIATEK SINGAPORE PTE LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310770516.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-27
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

During the test process, the test device cannot correctly identify and operate multiple mobile terminals due to the inconsistency of the serial number of the mobile terminal. Especially after the initial serial number is restarted or flashed, the serial number will automatically recover, causing terminal tracking and information replication. Difficulty in use.

Method used

By reading the hardware unique code of the mobile terminal, the unique serial number is determined and updated to a unique serial number to ensure the uniqueness and consistency of the serial number, and the serial number update unit and monitoring unit are used to continuously monitor and maintain the sequence. to ensure that it does not change before and after the terminal is flashed.

Benefits of technology

The uniqueness and consistency of the serial number of the mobile terminal is achieved, and the serial number consistency between the terminals is ensured between different test devices. The serial number is not restored or randomly generated after flashing, and supports automated testing and terminal tracking. .

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119211406A_ABST
    Figure CN119211406A_ABST
Patent Text Reader

Abstract

The invention discloses a mobile terminal testing method and a related device. The mobile terminal testing device comprises a reading unit used for reading a hardware unique code of a mobile terminal based on connection with the mobile terminal; the serial number updating unit is used for determining a unique serial number of the mobile terminal based on the hardware unique code and updating the serial number of the mobile terminal into the unique serial number; and the testing unit is used for testing the mobile terminal based on the unique serial number. According to the invention, uniqueness and consistency of the serial number of the mobile terminal can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a mobile terminal testing method and related devices. Background Art

[0002] During the production process of mobile terminals, a series of automated functional tests need to be performed on them by a testing device to verify whether the mobile terminals are qualified products. When the testing device performs functional tests on the mobile terminals, it is necessary to operate the mobile terminals by identifying the serial number of the mobile terminals.

[0003] However, when multiple mobile terminals are connected to the same mobile terminal testing device, and at least two of the multiple mobile terminals have initial serial numbers (such as 01233456789ABCEDF), the mobile terminal testing device will return an error of "more than two devices" when issuing instructions through the initial serial number, that is, the mobile terminal testing device cannot operate the at least two mobile terminals through the initial serial number.

[0004] In addition, when a mobile terminal is connected to different test devices, the serial number will automatically return to the initial serial number after restarting or reflashing the device. The mobile terminal test device cannot ensure the consistency of the serial number to uniquely identify the terminal, and cannot achieve terminal tracking and information reuse. Summary of the invention

[0005] The present application provides a mobile terminal testing method and related devices, which can achieve the uniqueness and consistency of the serial number of the mobile terminal.

[0006] To achieve the above object, the present application provides a mobile terminal testing device, the device comprising:

[0007] A reading unit, configured to read a hardware unique code of the mobile terminal based on the connection with the mobile terminal;

[0008] A serial number updating unit, configured to determine a unique serial number of the mobile terminal based on the hardware unique code, and update the serial number of the mobile terminal to the unique serial number;

[0009] A testing unit is used to test the mobile terminal based on the unique serial number.

[0010] In one embodiment, the hardware unique code of the mobile terminal is a stored hardware unique code of the mobile terminal.

[0011] In one embodiment, the mobile terminal testing device also includes a monitoring unit, which is used to continuously monitor whether there are mobile terminals whose serial numbers have not been modified. If so, the serial number of the mobile terminal whose serial number has not been modified is updated to a unique serial number determined based on the hardware unique code through the reading unit and the serial number updating unit.

[0012] In one embodiment, the monitoring unit is used to continuously monitor whether there is a terminal whose current serial number format does not match the predetermined format. If so, the terminal whose current serial number format does not match the predetermined format is a mobile terminal whose serial number has not been modified. The serial number of the mobile terminal whose serial number has not been modified is updated to a unique serial number in the predetermined format through the reading unit and the serial number updating unit. The predetermined format is different from the format of the initial serial number of the mobile terminal.

[0013] In one embodiment, the reading unit is used to send an instruction to the mobile terminal to read the storage hardware unique code of the mobile terminal based on relevant information that distinguishes the mobile terminal from the other mobile terminals when the serial number of the mobile terminal is the same as the serial numbers of the other mobile terminals connected to the test device;

[0014] The relevant information of each mobile terminal is information identified by the test device in response to the mobile terminal accessing the test device; or, the relevant information of each mobile terminal is specific information of each mobile terminal acquired by the test device through instructions.

[0015] In one embodiment, the relevant information of each mobile terminal includes a product name, a device name and / or an access port number of each mobile terminal.

[0016] In one embodiment, the mobile terminal testing device also includes a reconnection unit, which is used to send a reconnection instruction to the mobile terminal after the serial number of the mobile terminal is updated to the unique serial number, so that the mobile terminal responds to the reconnection instruction and reconnects the testing device based on the unique serial number.

[0017] In one embodiment, the serial number updating unit is used to process the hardware unique code through the md5 algorithm to obtain a unique serial number of the mobile terminal.

[0018] To achieve the above object, the present application also provides a mobile terminal testing method, the method comprising:

[0019] The testing device reads the unique code of the storage hardware of the mobile terminal based on the connection with the mobile terminal;

[0020] Determining a unique serial number of the mobile terminal based on the stored hardware unique code;

[0021] Updating the serial number of the mobile terminal to the unique serial number;

[0022] The mobile terminal is tested based on the unique serial number.

[0023] To achieve the above object, the present application also provides a mobile terminal testing method, the method comprising:

[0024] The mobile terminal sends the storage hardware unique code of the mobile terminal to the testing device based on the connection between the mobile terminal and the testing device;

[0025] Acquire a unique serial number determined based on the unique code of the storage hardware from the test device, and update the serial number of the mobile terminal to the unique serial number;

[0026] A test instruction issued by a test device is obtained based on the unique serial number, and a test operation of the mobile terminal is performed based on the test instruction.

[0027] To achieve the above objectives, the present application also provides a computer-readable storage medium, which is used to store instructions / program data, and the instructions / program data can be executed to implement the above method.

[0028] The mobile terminal testing method of the present application reads the hardware unique code of the mobile terminal, determines the unique serial number of the mobile terminal based on the hardware unique code of the mobile terminal, and then updates the serial number of the mobile terminal to the unique serial number, so as to test the mobile terminal using the unique serial number. Compared with the BT mac / WIFI mac / IMEIaddress / Android device ID of the mobile terminal, which may have the problem that the value is restored or randomly generated after the terminal is downloaded and flashed, the hardware unique code of the mobile terminal will not be restored or randomly generated after the terminal is flashed, that is, the hardware unique code after the terminal is refreshed is the same as the hardware unique code before the terminal is refreshed. In this way, the present application strongly binds the serial number of the mobile terminal and the hardware unique code of the terminal. There is no need to manually maintain the serial number of the terminal, and the uniqueness of the terminal serial number can be guaranteed. The unique serial number determined based on the hardware unique code will not change before and after the terminal is flashed, that is, the consistency of the serial number is achieved through the solution provided by the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0030] Figure 1It is a flowchart of an implementation method of a mobile terminal testing method of the present application;

[0031] Figure 2 It is a flowchart of an embodiment of a mobile terminal testing method of the present application;

[0032] Figure 3 It is a flowchart of another embodiment of the mobile terminal testing method of the present application;

[0033] Figure 4 It is a flowchart of another implementation method of the mobile terminal testing method of the present application;

[0034] Figure 5 It is a structural schematic diagram of an implementation method of a mobile terminal testing device of the present application;

[0035] Figure 6 It is a structural schematic diagram of an embodiment of the electronic device of the present application;

[0036] Figure 7 It is a structural schematic diagram of an implementation method of a computer-readable storage medium of the present application. DETAILED DESCRIPTION

[0037] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without making creative work are within the scope of protection of the present application. In addition, unless otherwise specified (for example, "or in addition" or "or in an alternative"), the term "or" as used herein refers to a non-exclusive "or" (that is, "and / or"). Moreover, the various embodiments described herein are not necessarily mutually exclusive, because some embodiments can be combined with one or more other embodiments to form new embodiments.

[0038] In order to solve the technical problems raised by the background technology, the relevant technology will manually define a new serial number, write the manually defined new serial number into a file specified by the mobile terminal, and let the mobile terminal reconnect with the test device through the new serial number to achieve the purpose of modifying the serial number. In this way, the test device can perform test operations on the mobile terminal through the new serial number.

[0039] The serial number in the related technology needs to be manually assigned, which is inconvenient to maintain; and the serial number will automatically return to the initial serial number after the mobile terminal is restarted, formatted or flashed. When multiple mobile terminals are restarted at the same time, the related technology cannot automatically identify the correct serial number of each mobile terminal. In addition, after the mobile terminal is replaced with a test device, the consistency of the mobile terminal serial number cannot be ensured, which makes it inconvenient to complete tests that require the terminal to be formatted to clear previously saved data.

[0040] Based on this, the present application proposes a mobile terminal testing method, which reads the hardware unique code of the mobile terminal, and then determines the unique serial number of the mobile terminal based on the hardware unique code of the mobile terminal, and then updates the serial number of the mobile terminal to a unique serial number, so as to test the mobile terminal using the unique serial number. Compared with the BT mac / WIFI mac / IMEI address / Android device ID of the mobile terminal, which may have the problem that the value is restored or randomly generated after the terminal is downloaded and flashed, the hardware unique code of the mobile terminal will not be restored or randomly generated after the terminal is flashed, that is, the hardware unique code after the terminal is refreshed is the same as the hardware unique code before the terminal is refreshed. In this way, the present application strongly binds the serial number of the mobile terminal and the hardware unique code of the terminal. There is no need to manually maintain the serial number of the terminal, and the uniqueness of the terminal serial number can be guaranteed. The unique serial number determined based on the hardware unique code will not change before and after the terminal is flashed, that is, the consistency of the serial number is achieved through the solution provided by the present application.

[0041] The mobile terminal can be a mobile phone, a tablet or an IOT device, etc. Furthermore, the mobile terminal can be a mobile phone or a tablet with an embedded system (such as Linux, Android, Ubuntu, etc.) installed. The test device can be a computer or a tablet that has the function of testing the mobile terminal.

[0042] In one embodiment, the mobile terminal may be an ADB device, and the test device may be a device loaded with an Android platform debug bridge (Android Debug Bridge, ADB), so that the test device can test the mobile terminal by operating the mobile terminal using commands such as adb shell / adb pull. The Android platform debug bridge is a bridge connecting the Android mobile terminal and the test device, and the test device is based on the Android platform debug bridge and can operate the Android mobile terminal connected to the test device through adb.

[0043] Optionally, the above-mentioned hardware unique code may be a storage hardware unique code (storage uniqeid) or a chip unique code of the mobile terminal.

[0044] Preferably, the hardware unique code of the mobile terminal is the storage hardware unique code of the mobile terminal. Compared with the chip unique code, which is complicated to obtain and has great restrictions on use, the storage hardware unique code of the mobile terminal can be read through simple instructions, so that the storage hardware unique code solution of the present application can be implemented through simple instruction interaction, and the storage hardware unique code solution of the present application is relatively lightweight.

[0045] The following will take the storage of hardware unique code as an example to illustrate the mobile terminal testing method of the present application.

[0046] like Figure 1 and Figure 2 As shown, the mobile terminal testing method of the present application includes the following steps. It should be noted that the following step numbers are only used to simplify the description and are not intended to limit the execution order of the steps. The steps of this embodiment can be arbitrarily changed in execution order without violating the technical idea of ​​the present application.

[0047] S101: The testing device reads the unique hardware code stored in the mobile terminal based on the connection with the mobile terminal.

[0048] The testing device can read the storage hardware unique code of the mobile terminal based on the connection with the mobile terminal, so as to subsequently determine the unique serial number of the mobile terminal based on the storage hardware unique code of the mobile terminal, thereby facilitating subsequent testing of the mobile terminal based on the unique serial number.

[0049] Optionally, the test device can read the storage hardware unique code of the mobile terminal based on the current serial number of the mobile terminal. Reading the storage hardware unique code of the mobile terminal based on the current serial number of the mobile terminal can refer to: sending an instruction to the mobile terminal based on the current serial number of the mobile terminal, so that the mobile terminal sends the storage hardware unique code to the test device based on the instruction.

[0050] In one embodiment, the mobile terminal is an ADB device, and the test device can send an adb command to the mobile terminal based on the current serial number of the mobile terminal, so as to read the storage hardware unique code of the mobile terminal through the adb command, so that the storage hardware unique code of the mobile terminal can be read through a simple adb command, so that the solution of the present application can be implemented through simple command interaction, and the solution of the present application is relatively lightweight. Exemplarily, the storage hardware specific node file can be read through the adb shell cat method to obtain the storage hardware unique code of the mobile terminal. In a more specific example, for a mobile terminal with a storage type of emmc, the storage hardware file of the " / sys / bus / mmc / devices / mmc0:0001 / cid" node can be read through the adb shell cat method to obtain the CID (card identification) unique identifier (i.e., the storage hardware unique code) of the mobile terminal. In another more specific example, for a mobile terminal with a storage type of ufs, the storage hardware file of the " / sys / bus / scsi / devices / 0:0:0:0 / vpd_pg80" node can be read through adb shell cat to obtain the SCSI VPD (virtual product data) unique identifier (i.e., storage hardware unique code) of the mobile terminal.

[0051] In certain embodiments, when a test device is connected to multiple mobile terminals, if the serial number of a mobile terminal is the same as the serial numbers of the remaining mobile terminals connected to the test device, an instruction can be sent to the mobile terminal based on relevant information that distinguishes the mobile terminal from the remaining mobile terminals to read the storage hardware unique code of the mobile terminal. In this way, when the current serial numbers of at least two mobile terminals connected to the test device are the same, the storage hardware unique codes of the at least two mobile terminals can also be obtained, and then the unique serial number of each mobile terminal can be determined based on the solution of the present application and the storage hardware unique code of each mobile terminal. In one embodiment, the mobile terminal is an ADB device, and the test device can send an adb instruction to the mobile terminal based on relevant information that distinguishes the mobile terminal from the remaining mobile terminals, so as to read the storage hardware unique code of the mobile terminal through the adb instruction.

[0052] The relevant information of each mobile terminal may be information identified by the test device in response to each mobile terminal being connected to the test device; or, the relevant information of each mobile terminal may also be specific information of each mobile terminal obtained by the test device through an adb command. Optionally, at least one relevant information of the mobile terminal identified by the test device may include the current serial number of the mobile terminal, the device name of the mobile terminal, the access port number (tranport_id) of the mobile terminal and / or the BT mac of the mobile terminal. Assuming that the current serial numbers of at least two mobile terminals connected to the test device are the same, and the device names or access port numbers and BT macs of the at least two mobile terminals are different, the storage hardware unique codes of the at least two mobile terminals can be read based on the device names or access port numbers or BT macs of the at least two mobile terminals.

[0053] In one example, the relevant information of each mobile terminal can be obtained through adb devices -l, wherein the return format of each mobile terminal can be as follows: "serial number device product: name device: name transport_id: a digital id connecting the ADB service and the mobile terminal"; compare the product name, device name or transport_id in the relevant information of multiple mobile terminals one by one; if any content is different, use the information to perform adb operation to obtain the storage hardware unique code of each mobile terminal; if the product name or device name is used, use adb -sxxx method to perform adb operation to obtain the storage hardware unique code of each mobile terminal; and if the transport_id is used, use adb -t xxx method to perform adb operation to obtain the storage hardware unique code of each mobile terminal.

[0054] S102: Determine a unique serial number of the mobile terminal based on the stored hardware unique code.

[0055] After reading the storage hardware unique code of the mobile terminal based on the connection with the mobile terminal, the unique serial number of the mobile terminal can be determined based on the storage hardware unique code, so as to subsequently test the mobile terminal based on the unique serial number.

[0056] Optionally, the storage hardware unique code may be processed by a data processing algorithm such as an encryption algorithm or a decryption algorithm to obtain a unique serial number of the mobile terminal. For example, the storage hardware unique code may be processed by an md5 algorithm to obtain a unique serial number of the mobile terminal. In a specific example, the storage hardware unique code of the mobile terminal is converted by an md5 algorithm to obtain a 32-bit character, and the middle 16 bits or the last 16 bits of the 32-bit character converted by the md5 algorithm are taken and filled into the serial number template to obtain a unique serial number of the mobile terminal.

[0057] In another achievable manner, at least part of the content of the stored hardware unique code may be filled into a serial number template to obtain a unique serial number of the mobile terminal.

[0058] In addition, the unique serial number of the mobile terminal determined based on step S102 can be unified into a predetermined format. Further, the predetermined format is different from the format of the initial serial number of the mobile terminal, so before step S102, it can be determined whether the serial number of the mobile terminal has been updated through the method of the present application by judging whether the current serial number of the mobile terminal matches the predetermined format. Specifically, if it is determined that the current serial number of the mobile terminal does not match the predetermined format, it can be considered that the serial number of the mobile terminal has not been updated through the method of the present application. In order to ensure that the mobile terminal can be tested with a consistent serial number, the mobile terminal testing method of this embodiment can be executed to update the serial number of the mobile terminal based on the storage hardware unique code of the mobile terminal, so as to ensure that the storage hardware unique code of each mobile terminal can be used to update the serial number of each mobile terminal, so as to strongly bind the serial number of each mobile terminal and the storage hardware unique code of each mobile terminal, thereby achieving the uniqueness and consistency of the serial number of the mobile terminal.

[0059] Furthermore, if Figure 3 As shown, the test device may be provided with a monitoring thread, and the monitoring thread may be used to continuously monitor whether there are mobile terminals whose serial numbers have not been modified, and if so, modify the serial numbers of the mobile terminals whose serial numbers have not been modified. Optionally, the monitoring thread may determine whether there are mobile terminals whose serial numbers have not been modified by determining whether the current serial numbers of each mobile terminal are the same as the initial serial numbers (e.g., 01233456789ABCEDF). Alternatively, the monitoring thread may determine whether there are mobile terminals whose serial numbers have not been modified by determining whether the format of the current serial numbers of each mobile terminal is the same as the predetermined format.

[0060] S103: Update the serial number of the mobile terminal to a unique serial number.

[0061] After the unique serial number of the mobile terminal is determined based on the storage hardware unique code, the serial number of the mobile terminal can be updated to the unique serial number, so that the mobile terminal can be tested subsequently using the unique serial number.

[0062] Optionally, updating the serial number of the mobile terminal to a unique serial number means: writing the unique serial number to the corresponding place of the serial number of the mobile terminal. In one embodiment, the unique serial number of the mobile terminal can be written into a specified file of the mobile terminal, so that the subsequent mobile terminal can connect to the test device through the unique serial number newly written in the specified file, thereby facilitating the test device to test the mobile terminal through the unique serial number, so that there is no need to flash a new file, it will not affect the default flashing process, and there is no need to rely on a special binary to write environment variables. Further, the current serial number in a specified file of the mobile terminal can be replaced with the unique serial number of the mobile terminal. Exemplarily, assuming that the mobile terminal is an Android device, the test device can write the relevant serial number echo to a file specified by Android through the native adb serial number modification scheme of the mobile terminal, without modifying the Android source code, that is, there is no need to customize the mobile terminal, and it can be implemented based on the Android native method, that is, this embodiment is a non-intrusive (without modifying the Android source code) solution, which is industry-wide.

[0063] In addition, after the unique serial number of the mobile terminal is written into a designated file of the mobile terminal, the mobile terminal can reconnect to the test device based on the designated file, so that the test device responds to the reconnection of the mobile terminal and reads the unique serial number of the mobile terminal and other related information, thereby facilitating the test device to issue instructions to the mobile terminal based on the unique serial number of the mobile terminal, thereby enabling the test device to test the mobile terminal based on the unique serial number of the mobile terminal.

[0064] In one embodiment, when the mobile terminal is an adb device, the test device can use the adb usb command to reconnect the device via USB. After reconnection, the serial number of the mobile terminal displayed by the test device is the newly written unique serial number. In this way, the test device will first identify the initial serial number of the mobile terminal, such as 01233456789ABCEDF, and then this serial number will go offline and a new serial number will be online later (i.e., a unique serial number determined based on the storage hardware unique code of the mobile terminal).

[0065] S104: Testing the mobile terminal based on the unique serial number.

[0066] After the serial number of the mobile terminal is updated to a unique serial number, the testing device can test the mobile terminal using the unique serial number.

[0067] In the present embodiment, the mobile terminal testing method reads the hardware unique code of the mobile terminal, determines the unique serial number of the mobile terminal based on the hardware unique code of the mobile terminal, and then updates the serial number of the mobile terminal to the unique serial number, so as to test the mobile terminal using the unique serial number. Compared with the BT mac / WIFI mac / IMEI address / Android device ID of the mobile terminal, which may have the problem that the value is restored or randomly generated after the terminal is downloaded and flashed, the hardware unique code of the mobile terminal will not be restored or randomly generated after the terminal is flashed, that is, the hardware unique code after the terminal is refreshed is the same as the hardware unique code before the terminal is refreshed. In this way, the present application strongly binds the serial number of the mobile terminal and the hardware unique code of the terminal. There is no need to manually maintain the serial number of the terminal, and the uniqueness of the terminal serial number can be guaranteed. The unique serial number determined based on the hardware unique code will not change before and after the terminal is flashed, that is, the consistency of the serial number is achieved through the solution provided by the present application.

[0068] When the test device is connected to multiple mobile terminals, the method of the above-mentioned implementation can be used to modify the serial numbers of the multiple mobile terminals one by one to a unique serial number determined based on the storage hardware unique code of each terminal. In this way, when the test device is connected to multiple mobile terminals, the serial number of each mobile terminal will be automatically modified to a unique serial number, and when these devices are connected to other test devices running the test system, the serial number will be automatically modified and remain consistent regardless of the restart or flashing.

[0069] Further, in the case where the test device is connected to multiple mobile terminals, the unique serial number can be unified into a predetermined format, and the predetermined format is different from the format of the initial serial number of the mobile terminal; in this way, by judging whether the current serial number of each mobile terminal matches the predetermined format one by one, it can be determined whether the serial number of the mobile terminal has been updated to a unique serial number determined based on the unique code of the storage hardware of the mobile terminal; if it is determined that the current serial number of a mobile terminal does not match the predetermined format, the serial number of the mobile terminal can be modified to a unique serial number determined based on the unique code of the storage hardware of the mobile terminal using the method of the above embodiment, so that in the case where the list of mobile terminals connected to the test device changes greatly, the mobile terminals whose serial numbers have not been modified based on the method of the above embodiment can be automatically judged based on the serial numbers of each mobile terminal in the mobile terminal list, and then the serial numbers of these mobile terminals whose serial numbers have not been modified can be automatically modified based on the method of the above embodiment. Among them, the predetermined format is not limited and can be set by itself, for example, set to XX-****************.

[0070] The present application also provides a mobile terminal testing method, which is applied to a mobile terminal, such as Figure 4 As shown, the mobile terminal testing method specifically includes the following steps. It should be noted that the following step numbers are only used to simplify the description and are not intended to limit the execution order of the steps. The execution order of each step of this embodiment can be changed arbitrarily without violating the technical idea of ​​this application.

[0071] S201: The mobile terminal sends the storage hardware unique code of the mobile terminal to the testing device based on the connection between the mobile terminal and the testing device.

[0072] The above process can be as described in step S101 and will not be described in detail here.

[0073] S202: Acquire a unique serial number determined based on the unique code of the storage hardware from the test device, and update the serial number of the mobile terminal to the unique serial number.

[0074] The above steps can be as described in steps S102 and S103, which will not be described in detail here.

[0075] S203: Acquire a test instruction issued by the test device based on the unique serial number, and perform a test operation on the mobile terminal based on the test instruction.

[0076] The above process can be carried out as described in step S104 and will not be described in detail here.

[0077] After the mobile terminal updates the serial number of the mobile terminal to a unique serial number, it can reconnect to the test device based on the updated unique serial number, so that the serial number of the mobile terminal displayed on the test device is the updated unique serial number. In this way, the mobile terminal can obtain the test instructions issued by the test device based on the unique serial number, and then perform testing of the mobile terminal based on the unique serial number.

[0078] See also Figure 5 , Figure 5 It is a structural diagram of an embodiment of a mobile terminal testing device of the present application. The mobile terminal testing device 10 includes a reading unit 11, a serial number updating unit 12 and a testing unit 13. The reading unit 11 is used to read the hardware unique code of the mobile terminal based on the connection with the mobile terminal. The serial number updating unit 12 is used to determine the unique serial number of the mobile terminal based on the hardware unique code, and is also used to update the serial number of the mobile terminal to a unique serial number. The testing unit 13 is used to test the mobile terminal based on the unique serial number. Please refer to the description of the above embodiment for the connection between the units and the more specific functions of each unit, which will not be repeated here.

[0079] Furthermore, the mobile terminal testing device 10 may further include a monitoring unit and / or a reconnection unit.

[0080] The monitoring unit is used to continuously monitor whether there is a mobile terminal whose serial number has not been modified. If so, the serial number of the mobile terminal whose serial number has not been modified is updated to a unique serial number determined based on the hardware unique code through the reading unit and the serial number updating unit.

[0081] The reconnection unit is used to send a reconnection instruction to the mobile terminal after updating the serial number of the mobile terminal to the unique serial number, so that the mobile terminal reconnects to the mobile terminal testing device 10 based on the unique serial number.

[0082] See also Figure 6 , Figure 6 1 is a schematic diagram of the structure of an electronic device of the present application. The electronic device 20 includes a processor 22, and the processor 22 is used to execute instructions to implement the above mobile terminal testing method. The specific implementation process can be found in the description of the above embodiment, which will not be repeated here.

[0083] The processor 22 may also be referred to as a CPU (Central Processing Unit). The processor 22 may be an integrated circuit chip having signal processing capabilities. The processor 22 may also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor 22 may also be any conventional processor, etc.

[0084] The electronic device 20 may further include a memory 21 for storing instructions and data required for the processor 22 to run.

[0085] The processor 22 is used to execute instructions to implement the method provided by any embodiment of the mobile terminal testing method of the present application and any non-conflicting combination.

[0086] See also Figure 7 , Figure 7 It is a schematic diagram of the structure of the computer-readable storage medium in the embodiment of the present application. The computer-readable storage medium 30 of the embodiment of the present application stores instructions / program data 31, and when the instructions / program data 31 are executed, the method provided by any embodiment of the mobile terminal test method of the present application and any non-conflicting combination is implemented. Among them, the instructions / program data 31 can form a program file and be stored in the above-mentioned storage medium 30 in the form of a software product, so that a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (processor) executes all or part of the steps of each embodiment method of the present application. The aforementioned storage medium 30 includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, or a terminal device such as a computer, a server, a mobile phone, and a tablet.

[0087] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0088] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0089] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0090] The above are only implementation methods of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A mobile terminal testing device, characterized in that: The mobile terminal testing device comprises: A reading unit, configured to read a hardware unique code of the mobile terminal based on the connection with the mobile terminal; A serial number updating unit, configured to determine a unique serial number of the mobile terminal based on the hardware unique code, and update the serial number of the mobile terminal to the unique serial number; A testing unit is used to test the mobile terminal based on the unique serial number.

2. The mobile terminal testing device according to claim 1, characterized in that: The hardware unique code of the mobile terminal is a stored hardware unique code of the mobile terminal.

3. The mobile terminal testing device according to claim 1, characterized in that: The mobile terminal testing device also includes a monitoring unit, which is used to continuously monitor whether there are mobile terminals with unmodified serial numbers. If so, the serial numbers of the mobile terminals with unmodified serial numbers are updated to unique serial numbers determined based on the hardware unique code through the reading unit and the serial number updating unit.

4. The mobile terminal testing device according to claim 3, characterized in that: The monitoring unit is used to continuously monitor whether there is a mobile terminal whose current serial number format does not match the predetermined format. If so, the mobile terminal whose current serial number format does not match the predetermined format is a mobile terminal whose serial number has not been modified. The serial number of the mobile terminal whose serial number has not been modified is updated to a unique serial number in the predetermined format through the reading unit and the serial number updating unit. The predetermined format is different from the format of the initial serial number of the mobile terminal.

5. The mobile terminal testing device according to any one of claims 1 to 4, characterized in that: The reading unit is used to send an instruction to the mobile terminal to read the storage hardware unique code of the mobile terminal based on relevant information that distinguishes the mobile terminal from the other mobile terminals when the serial number of the mobile terminal is the same as the serial numbers of the other mobile terminals connected to the mobile terminal testing device; Among them, the relevant information of each mobile terminal is the information identified by the mobile terminal testing device in response to the each mobile terminal accessing the mobile terminal testing device; or, the relevant information of each mobile terminal is the specific information of each mobile terminal acquired by the mobile terminal testing device through instructions.

6. The mobile terminal testing device according to claim 5, characterized in that: The relevant information of each mobile terminal includes a product name, a device name and / or an access port number of each mobile terminal.

7. The mobile terminal testing device according to claim 1, characterized in that: The mobile terminal testing device also includes a reconnection unit, which is used to send a reconnection instruction to the mobile terminal after updating the serial number of the mobile terminal to the unique serial number, so that the mobile terminal responds to the reconnection instruction and reconnects to the mobile terminal testing device based on the unique serial number.

8. The mobile terminal testing device according to claim 1, characterized in that: The serial number updating unit is used to process the hardware unique code through the md5 algorithm to obtain the unique serial number.

9. A mobile terminal testing method, characterized in that: The method comprises: The testing device reads the unique code of the storage hardware of the mobile terminal based on the connection with the mobile terminal; Determining a unique serial number of the mobile terminal based on the stored hardware unique code; Updating the serial number of the mobile terminal to the unique serial number; The mobile terminal is tested based on the unique serial number.

10. A mobile terminal testing method, characterized in that: The method comprises: The mobile terminal sends the storage hardware unique code of the mobile terminal to the testing device based on the connection between the mobile terminal and the testing device; Acquire a unique serial number determined based on the unique code of the storage hardware from the test device, and update the serial number of the mobile terminal to the unique serial number; A test instruction issued by a test device is obtained based on the unique serial number, and a test operation of the mobile terminal is performed based on the test instruction.

11. A computer-readable storage medium having instructions / program data stored thereon, characterized in that: When the instructions / program data are executed, the steps of the method according to any one of claims 9 to 10 are implemented.