Zero terminal test method and system
By sending production test USB information in the zero-terminal test, receiving and installing the production test software, and deleting it after running, the problem of low efficiency of two software downloads in the existing technology is solved, and a more efficient test process and production efficiency are achieved.
Patent Information
- Application Number
- CN202410755814.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-22
Smart Images

Figure CN118820071A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of zero terminal technology, and in particular, to a zero terminal testing method and system. Background Art
[0002] Zero terminal refers to a terminal product without a central processing unit (CPU), memory, or hard disk operating system. This solution can greatly simplify the size and configuration of the zero terminal. All programs of the zero terminal run in the cloud server. The zero terminal uses the corresponding application by accessing the cloud server and controls the corresponding application through reverse control. The server will send the real-time processing screen to the zero terminal, so that for the zero terminal, it is just like operating locally.
[0003] In order to provide users with a better user experience, after the zero terminal is produced, a test program will be executed on the zero terminal to test whether each hardware unit in the zero terminal is working properly.
[0004] At present, the commonly used testing method is: download the production version during production testing. The production version is a software version specifically responsible for production testing. After the production test is completed, the official software version needs to be downloaded again before leaving the factory.
[0005] However, this method requires the production line to go through the software download process twice, that is, burn the chip twice. Since the medium needs to be written twice, the speed is slow, resulting in low production efficiency. Summary of the invention
[0006] In view of the above problems, the embodiments of the present application provide a zero-terminal testing method and system to overcome the above problems.
[0007] In a first aspect, a zero terminal testing method is provided, wherein the method is applied to a zero terminal and comprises:
[0008] After detecting that the server is connected via the USB port, sending production test USB information to the server, the production test USB information including: a supplier identification code corresponding to the production test USB port and a product identification code corresponding to the production test USB port;
[0009] Receiving production test software download information sent by the server, the production test software download information including: a production test software program, and an address of a double rate synchronous dynamic random access memory for installing the production test software program;
[0010] Install the production test software program according to the location corresponding to the address of the double rate synchronous dynamic random access memory;
[0011] running the production test software program;
[0012] After detecting that the production test software program runs successfully, performing a restart operation to delete the production test software program installed in the location corresponding to the address of the double rate synchronous dynamic random access memory;
[0013] After detecting that the production test software program fails to run, the production test software program is exited.
[0014] In one embodiment, before sending the production test USB information to the server, the method further includes:
[0015] Sending blank USB information to the server, wherein the blank USB information includes: a supplier identification code corresponding to the blank download USB port and a product identification code corresponding to the blank download USB port;
[0016] Receiving production test software download agent information sent by the server, the production test software download agent information including: a production test software download agent program, and a static random access memory address for installing the production test software download agent program;
[0017] Installing the production test software download agent program according to the location corresponding to the static random access memory address;
[0018] Running the production test software download agent program to initialize the double rate synchronous dynamic random access memory;
[0019] After the production test software download agent program is run, the production test USB information is sent to the server.
[0020] In one embodiment, the receiving the production test software download agent information sent by the server includes:
[0021] Receive an agent start download instruction sent by the server, wherein the agent start download instruction carries the total length of data corresponding to the production test software download agent program and the static random access memory address where the production test software download agent program is installed;
[0022] Sending a proxy start download instruction reception success message to the server;
[0023] Receiving the production test software download agent program sent by the server;
[0024] After detecting that the total length of the currently received data is the same as the total length of the data corresponding to the production test software download agent program, a production test software download agent program reception completion instruction is sent to the server.
[0025] In one embodiment, the receiving the production test software download information sent by the server includes:
[0026] Receiving a software download start instruction sent by the server, wherein the software download start instruction carries the total length of data corresponding to the production test software program and the address of the double rate synchronous dynamic random access memory in which the production test software program is installed;
[0027] Sending software download start instruction reception success information to the server;
[0028] receiving the production test software program sent by the server;
[0029] After detecting that the total length of the currently received data is the same as the total length of the data corresponding to the production test software program, a production test software program reception completion instruction is sent to the server.
[0030] In one embodiment, after performing the restart operation, the method further includes:
[0031] Sending a formal software download request to the server;
[0032] Receiving the official software information sent by the server, the official software information including: an official software program, and an address in a permanent storage medium where the official software program is installed;
[0033] The official software program is burned according to the location corresponding to the address in the permanent storage medium.
[0034] In a second aspect, a zero terminal testing method is provided, the method being applied to a server, the method comprising:
[0035] Receive production test USB information sent by the null terminal, wherein the production test USB information includes: a supplier identification code corresponding to the production test USB port and a product identification code corresponding to the production test USB port;
[0036] After detecting that the USB port of the zero terminal is a production test USB port according to the production test USB information, obtaining production test software download information, the production test software download information including: a production test software program, and an address of a double rate synchronous dynamic random access memory for installing the production test software program;
[0037] The production test software download information is sent to the zero terminal.
[0038] In one embodiment, before receiving the production test USB information sent by the zero terminal, the method further includes:
[0039] Receive the blank USB information sent by the null terminal, wherein the blank USB information includes: a supplier identification code corresponding to the blank download USB port and a product identification code corresponding to the blank download USB port;
[0040] After detecting that the USB port of the zero terminal is a blank download USB port according to the blank USB information, obtaining production test software download agent information, the production test software download agent information including: a production test software download agent program, and a static random access memory address where the production test software download agent program is installed;
[0041] The production test software download agent information is sent to the zero terminal.
[0042] In one embodiment, sending the production test software download agent information to the zero terminal includes:
[0043] Sending an agent start download instruction to the zero terminal, wherein the agent start download instruction carries the total length of data corresponding to the production test software download agent program and the static random access memory address where the production test software download agent program is installed;
[0044] After receiving the agent start download instruction reception success information sent by the zero terminal, the production test software download agent program sent to the zero terminal;
[0045] Receive the production test software download agent program reception completion instruction sent by the zero terminal.
[0046] In one embodiment, sending the production test software download information to the zero terminal includes:
[0047] Sending a software download start instruction to the zero terminal, wherein the software download start instruction carries the total length of data corresponding to the production test software program and the address of the double rate synchronous dynamic random access memory in which the production test software program is installed;
[0048] After receiving the software start download instruction received successfully information sent by the zero terminal, sending the production test software program to the zero terminal;
[0049] Receive the production test software program reception completion instruction sent by the zero terminal.
[0050] In one embodiment, the method further comprises:
[0051] After receiving the official software download request sent by the zero terminal, obtaining official software information, the official software information including: an official software program, and an address in a permanent storage medium where the official software program is installed;
[0052] The official software information is sent to the null terminal.
[0053] In a third aspect, a zero terminal testing device is provided, the device is applied to a zero terminal, and the device includes:
[0054] A first sending module, configured to send production test USB information to the server after detecting that the server is connected via a USB port, wherein the production test USB information includes: a supplier identification code corresponding to the production test USB port and a product identification code corresponding to the production test USB port;
[0055] A first receiving module is used to receive the production test software download information sent by the server, wherein the production test software download information includes: a production test software program, and an address of a double rate synchronous dynamic random access memory for installing the production test software program;
[0056] A first installation module, used for installing the production test software program according to the position corresponding to the address of the double rate synchronous dynamic random access memory;
[0057] A first running module, used for running the production test software program;
[0058] A restart module, configured to execute a restart operation after detecting that the production test software program runs successfully, so as to delete the production test software program installed in the position corresponding to the address of the double rate synchronous dynamic random access memory;
[0059] The exit module is used to exit the operation of the production test software program after detecting that the production test software program fails to operate.
[0060] In one embodiment, it further includes:
[0061] A second sending module is used to send blank USB information to the server, wherein the blank USB information includes: a supplier identification code corresponding to the blank download USB port and a product identification code corresponding to the blank download USB port;
[0062] A second receiving module is used to receive the production test software download agent information sent by the server, wherein the production test software download agent information includes: a production test software download agent program, and a static random access memory address where the production test software download agent program is installed;
[0063] A second installation module, used for installing the production test software download agent program according to the position corresponding to the static random access memory address;
[0064] The second running module is used to run the production test software download agent program to initialize the double rate synchronous dynamic random access memory. After the production test software download agent program is run, the first sending module sends the production test USB information to the server.
[0065] In one embodiment, the second receiving module includes:
[0066] A first receiving submodule, configured to receive an agent start download instruction sent by the server, wherein the agent start download instruction carries the total length of data corresponding to the production test software download agent program and the static random access memory address where the production test software download agent program is installed;
[0067] A first sending submodule, used for sending a proxy start download instruction reception success message to the server;
[0068] A second receiving submodule, configured to receive the production test software download agent program sent by the server;
[0069] The second sending submodule is used to send a production test software download agent program reception completion instruction to the server after detecting that the total length of the currently received data is the same as the total length of the data corresponding to the production test software download agent program.
[0070] In one embodiment, the first receiving module includes:
[0071] A third receiving submodule is used to receive a software start download instruction sent by the server, wherein the software start download instruction carries the total length of data corresponding to the production test software program and the address of the double rate synchronous dynamic random access memory in which the production test software program is installed;
[0072] The third sending submodule is used to send a software download start instruction reception success message to the server;
[0073] A fourth receiving submodule, configured to receive the production test software program sent by the server;
[0074] The fourth sending submodule is used to send a production test software program reception completion instruction to the server after detecting that the total length of the currently received data is the same as the total length of the data corresponding to the production test software program.
[0075] In one embodiment, it further includes:
[0076] A third sending module, configured to send a formal software download request to the server after the restart module performs the restart operation;
[0077] A third receiving module is used to receive the official software information sent by the server, wherein the official software information includes: an official software program and an address in a permanent storage medium where the official software program is installed;
[0078] The burning module is used to burn the official software program according to the position corresponding to the address in the permanent storage medium.
[0079] In a fourth aspect, a zero terminal testing device is provided, the device is applied to a server, and the device includes:
[0080] A fourth receiving module is used to receive the production test USB information sent by the zero terminal, wherein the production test USB information includes: a supplier identification code corresponding to the production test USB port and a product identification code corresponding to the production test USB port;
[0081] A first acquisition module is used to acquire production test software download information after detecting that the USB port of the zero terminal is a production test USB port according to the production test USB information, wherein the production test software download information includes: a production test software program, and an address of a double rate synchronous dynamic random access memory in which the production test software program is installed;
[0082] The fourth sending module is used to send the production test software download information to the zero terminal.
[0083] In one embodiment, the apparatus further comprises:
[0084] A fifth receiving module, configured to receive a blank USB information sent by the zero terminal before the fourth receiving module receives the production test USB information sent by the zero terminal, wherein the blank USB information includes: a supplier identification code corresponding to the blank download USB port and a product identification code corresponding to the blank download USB port;
[0085] A second acquisition module is used to acquire production test software download agent information after detecting that the USB port of the zero terminal is a blank download USB port according to the blank USB information, wherein the production test software download agent information includes: a production test software download agent program, and a static random access memory address where the production test software download agent program is installed;
[0086] The fifth sending module is used to send the production test software download agent information to the zero terminal.
[0087] In one embodiment, the fifth sending module includes:
[0088] A fifth sending submodule, configured to send an agent start download instruction to the zero terminal, wherein the agent start download instruction carries the total length of data corresponding to the production test software download agent program and the static random access memory address where the production test software download agent program is installed;
[0089] A sixth sending submodule, configured to send the production test software download agent program to the zero terminal after receiving the agent start download instruction reception success information sent by the zero terminal;
[0090] The fifth receiving submodule is used to receive the production test software download agent program reception completion instruction sent by the zero terminal.
[0091] In one embodiment, the fourth sending module includes:
[0092] A seventh sending submodule, used for sending a software start download instruction to the zero terminal, wherein the software start download instruction carries the total length of data corresponding to the production test software program and the address of the double rate synchronous dynamic random access memory in which the production test software program is installed;
[0093] An eighth sending submodule, configured to send the production test software program to the zero terminal after receiving the software start download instruction reception success information sent by the zero terminal;
[0094] The sixth receiving submodule is used to receive the production test software program reception completion instruction sent by the zero terminal.
[0095] In one embodiment, the apparatus further comprises:
[0096] A third acquisition module is used to acquire the official software information after receiving the official software download request sent by the zero terminal, wherein the official software information includes: the official software program and the address in the permanent storage medium where the official software program is installed;
[0097] The sixth sending module is used to send the official software information to the zero terminal.
[0098] In a fifth aspect, a zero terminal testing system is provided, the system comprising: a zero terminal and a server;
[0099] The zero terminal is connected to the server via a USB port;
[0100] The zero terminal is used to perform the method steps in any one of the embodiments of the first aspect above;
[0101] The server is used to execute the method steps in any one of the embodiments of the second aspect.
[0102] The above description is only an overview of the technical solution of the embodiment of the present application. In order to more clearly understand the technical means of the embodiment of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the embodiment of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0103] In order to more clearly illustrate the technical solutions of the embodiments of the present application, a brief introduction will be given below to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0104] Figure 1 A schematic diagram of a zero terminal test method provided in this embodiment Figure 1 ;
[0105] Figure 2 A schematic diagram of a zero terminal test method provided in this embodiment Figure 2 ;
[0106] Figure 3 A schematic diagram of the structure of a zero-terminal test device provided in this embodiment Figure 1 ;
[0107] Figure 4 A schematic diagram of the structure of a zero-terminal test device provided in this embodiment Figure 2 . DETAILED DESCRIPTION
[0108] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0109] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used in the specification of the application are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" and any variations thereof in the specification, claims and drawings of this application are intended to cover non-exclusive inclusions.
[0110] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase "embodiments" in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0111] The term "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists, A and B exist at the same time, and B exists. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0112] In addition, the terms "first", "second", etc. in the specification and claims of this application or the above-mentioned drawings are used to distinguish different objects rather than to describe a specific order, and may explicitly or implicitly include one or more of the features.
[0113] In the description of the present application, unless otherwise specified, "plurality" means more than two (including two), and similarly, "multiple groups" means more than two groups (including two).
[0114] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0115] Figure 1 The flowchart of a zero terminal testing method provided in this embodiment is as follows. The method of this embodiment is applied to a zero terminal. The zero terminal testing method includes steps S110-S160:
[0116] S110. After detecting that the server is connected via the USB port, sending production test USB information to the server, the production test USB information including: a supplier identification code corresponding to the production test USB port and a product identification code corresponding to the production test USB port.
[0117] After the production of the zero terminal is completed, it is necessary to test whether each hardware unit in the zero terminal is working properly. When performing the test, the USB port of the zero terminal needs to be connected to the USB port of the server through a universal serial bus (English full name: Universal Serial BUS, abbreviated as: USB) cable. At this time, the server can also be called a production line PC.
[0118] After the zero terminal detects that its USB port is successfully connected to the USB port of the server, it will execute the BOOTROM program to initiate the USB blank download process. It is worth noting that the BOOTROM program is automatically initiated by the zero terminal when there is no boot image in the storage medium.
[0119] When requesting to install the production test software program, the zero terminal will first prepare the vendor identification code (full name in English: Vendor ID, abbreviated as: VID) and the product identification code (full name in English: Product ID, abbreviated as: PID) corresponding to its own production test USB port, and send the prepared information to the server.
[0120] It is worth noting that the zero terminal will also prepare its own device descriptor and port descriptor, and send this information to the server in the production test USB information.
[0121] In one embodiment, before sending the production test USB information to the server to burn the production test software, in some scenarios it is also necessary to install a production test software download agent program. The function of the production test software download agent program is to initialize the double data rate synchronous dynamic random access memory (full name in English: Double Data Rate SDRAM, abbreviated as: DDR) that installs the production test software program.
[0122] Therefore, before sending the production test USB information to the server in the above step S110, the following sub-steps A1-A5 are also included:
[0123] A1. Sending a blank USB information to the server, wherein the blank USB information includes: a supplier identification code corresponding to the blank USB port for downloading the blank and a product identification code corresponding to the blank USB port for downloading the blank.
[0124] When the zero terminal needs to request installation of the production test software download agent, the zero terminal will first prepare the supplier identification code corresponding to its own blank download USB port and the product identification code corresponding to the blank download USB port, and send the prepared information to the server.
[0125] It is worth noting that the zero terminal will also prepare its own device descriptor and port descriptor, and send this information to the server in the blank USB information.
[0126] A2. Receive production test software download agent information sent by the server, the production test software download agent information including: production test software download agent program, and static random access memory (English full name: static RAM, referred to as: SRAM) address where the production test software download agent program is installed.
[0127] In one embodiment, the server may directly send the obtained production test software download agent information to the zero terminal. However, since the amount of data in the production test software download agent information may be large, if the zero terminal has not made relevant preparations to receive the data, data loss may occur. In order to improve the reliability of data transmission, receiving the production test software download agent information sent by the server in step A2 includes the following sub-steps A21-A24:
[0128] A21. Receive an agent download start instruction sent by the server, where the agent download start instruction carries the total length of data corresponding to the production test software download agent program and a static random access memory address for installing the production test software download agent program.
[0129] After receiving the agent start download instruction sent by the server, make relevant preparations to receive the production test software download agent program.
[0130] A22, sending the agent to the server to start downloading instructions and receiving successful information.
[0131] A23. Receive the production test software download agent sent by the server.
[0132] A24. After detecting that the total length of the currently received data is the same as the total length of the data corresponding to the production test software download agent program, a production test software download agent program reception completion instruction is sent to the server.
[0133] When the zero terminal receives the production test software download agent program sent by the server, since the server will send it in batches, the zero terminal will also count the length of the received data when receiving the data. After detecting that the total length of the currently received data is the same as the total length of the data corresponding to the production test software download agent program, indicating that the production test software download agent program has been received, the zero terminal will send a production test software download agent program reception completion instruction to the server to let the server know that the production test software download agent program has been received.
[0134] If the zero terminal fails to complete the reception of the production test software download agent program within the preset time, or fails to receive the production test software download agent program, the zero terminal will send a production test software download agent program reception failure instruction to the server to let the server resend the production test software download agent program.
[0135] It should be noted that before receiving the production test software download agent program again, the previously received information related to the production test software download agent program may be deleted.
[0136] A3. Install the production test software download agent program according to the location corresponding to the static random access memory address.
[0137] A4. Run the production test software download agent to initialize the double rate synchronous dynamic random access memory.
[0138] A5. After the production test software download agent is run, the production test USB information is sent to the server.
[0139] After the zero terminal completes the initialization of the double rate synchronous dynamic random access memory, the production test software can be installed in the double rate synchronous dynamic random access memory, and then the production test USB information can be sent to the server.
[0140] S120, receiving production test software download information sent by the server, where the production test software download information includes: a production test software program, and an address of a double rate synchronous dynamic random access memory for installing the production test software program.
[0141] In one embodiment, the server may directly send the obtained production test software download information to the zero terminal. However, since the amount of data in the production test software download information may be large, if the zero terminal has not made relevant preparations to receive the data, data loss may occur. In order to improve the reliability of data transmission, the step S120 of receiving the production test software download information sent by the server includes the following sub-steps B1-B4:
[0142] B1. Receive a software download start instruction sent by a server, wherein the software download start instruction carries the total length of data corresponding to the production test software program and the address of the double rate synchronous dynamic random access memory where the production test software program is installed.
[0143] After receiving the software download start instruction sent by the server, make relevant preparations to receive the production test software program.
[0144] B2. Send software download start command to the server and receive successful information.
[0145] B3. Receive the production test software program sent by the server.
[0146] B4. After detecting that the total length of the currently received data is the same as the total length of the data corresponding to the production test software program, a production test software program reception completion instruction is sent to the server.
[0147] When the zero terminal receives the production test software program sent by the server, since the server will send it in batches, the zero terminal will also count the length of the received data when receiving the data. After detecting that the total length of the currently received data is the same as the total length of the data corresponding to the production test software program, indicating that the production test software program has been received, the zero terminal will send a production test software program reception completion instruction to the server to let the server know that the production test software program has been received.
[0148] If the zero terminal does not complete the reception of the production test software program within the preset time, or fails to receive the production test software program, the zero terminal will send a production test software reception failure instruction to the server to let the server resend the production test software program.
[0149] It is worth noting that before re-receiving the production test software program, the previously received information related to the production test software program may be deleted.
[0150] S130, installing a production test software program according to a position corresponding to an address of the double rate synchronous dynamic random access memory.
[0151] S140, running the production test software program.
[0152] S150. After detecting that the production test software program runs successfully, a restart operation is performed to delete the production test software program installed in the location corresponding to the address of the double rate synchronous dynamic random access memory.
[0153] S160: After detecting that the production test software program fails to run, exit the running of the production test software program.
[0154] After the zero terminal successfully receives the production test software program, it will install the production test software program at the location corresponding to the address of the double-rate synchronous dynamic random access memory where the production test software program is installed as indicated by the server. After successful installation, the zero terminal automatically runs the production test software program to execute various hardware test cases. If the hardware test case is executed successfully, a restart operation is performed to delete the production test software program installed in the location corresponding to the address of the double-rate synchronous dynamic random access memory. If the hardware test case fails to execute, the entire process is exited, that is, the operation of the production test software program is exited.
[0155] In one implementable method, if the hardware test case is executed successfully, a production test software program successful execution instruction can also be sent to the server so that the server can save the test success record and send a reset instruction to the zero terminal. After the zero terminal receives the reset instruction sent by the server, it starts to execute the restart operation.
[0156] In the present disclosure, when the zero terminal performs the test, the production test software program will be installed in the double-speed synchronous dynamic random access memory. Since the double-speed synchronous dynamic random access memory is a volatile memory, the content stored therein will be lost after power failure, and the double-speed synchronous dynamic random access memory does not need to be burned like a permanent storage medium, thereby shortening the test time of the zero terminal and improving the production efficiency of the zero terminal.
[0157] In one embodiment, the zero terminal may also burn the official software after performing the restart operation. At this time, the following steps C1-C3 may also be included:
[0158] C1. Send a formal software download request to the server.
[0159] C2. Receive the official software information sent by the server, where the official software information includes: the official software program, and the address in the permanent storage medium where the official software program is installed.
[0160] C3. Burn the official software program according to the location corresponding to the address in the permanent storage medium.
[0161] After the zero terminal executes the restart operation, it will also install the official software. At this time, the zero terminal will send a formal software download request to the server. After receiving the formal software information sent by the server, it will execute the burning operation. The burning process of the official version is similar to that in the related technology.
[0162] Specifically, after the zero terminal performs a restart operation, the zero terminal starts to execute the BOOTROM program and initiates the USB blank download process. It is worth noting that the BOOTROM program is automatically initiated by the zero terminal when there is no boot image in the storage medium.
[0163] When it is necessary to request the installation of a formal software program, the zero terminal will first prepare the product identification code (full name in English: Product ID, abbreviated as: PID) and VID corresponding to its own formal software download USB port, and send the prepared information to the server in the formal software download request.
[0164] It is worth noting that the zero terminal will also prepare the vendor identification code (full name in English: Vendor ID, abbreviated as: VID), device descriptor and port descriptor corresponding to its own USB port, and also carry this information in the formal software download request and send it to the server.
[0165] After receiving the official software information sent by the server, the official software program will be burned according to the location corresponding to the address in the permanent storage medium.
[0166] In one embodiment, before the zero terminal sends a formal software download request to the server to burn the formal software, in some scenarios it is necessary to install a formal software download agent program. At this time, the zero terminal will first prepare the VID and PID corresponding to its own blank download USB port, and carry the prepared information in the formal software download agent request information and send it to the server. After receiving the formal software download agent information sent by the server (the formal software download agent information includes: the formal software download agent program, and the static random access memory address for installing the formal software download agent program), the formal software download agent program is installed according to the position corresponding to the static random access memory address. After the installation is complete, a formal software download request is sent to the server.
[0167] Figure 2 The flowchart of a zero terminal test method provided in this embodiment is as follows. The method of this embodiment is applied to a server. The zero terminal test method includes steps S210-S230:
[0168] S210: Receive production test USB information sent by the null terminal, where the production test USB information includes: a product identification code corresponding to the production test USB port.
[0169] S220. After detecting that the USB port of the zero terminal is a production test USB port according to the production test USB information, obtain production test software download information, the production test software download information including: a production test software program, and an address of a double rate synchronous dynamic random access memory for installing the production test software program.
[0170] S230. Send production test software download information to the zero terminal.
[0171] After receiving the production test USB information sent by the zero terminal, the server enumerates the USB port currently connected to the zero terminal as the production test USB port based on the PID corresponding to the production test USB port in the production test USB information. After enumerating the USB port of the zero terminal as the production test USB port, the server queries the information related to the production test software from its own device, such as the production test software program and the address of the double-rate synchronous dynamic random access memory where the production test software program is installed in the zero terminal, and carries the queried information related to the production test software in the production test software download information and sends it to the zero terminal.
[0172] In one embodiment, the server may directly send the acquired production test software program to the zero terminal. However, since the amount of data in the production test software program may be large, if the zero terminal has not made relevant preparations to receive the data, data loss may occur. In order to improve the reliability of data transmission, in step S230, the production test software download information is sent to the zero terminal, including the following sub-steps D1-D3:
[0173] D1. Send a software start download instruction to the zero terminal. The software start download instruction carries the total length of data corresponding to the production test software program and the address of the double rate synchronous dynamic random access memory where the production test software program is installed.
[0174] The server may first send a software download start instruction to the zero terminal, where the software download start instruction is used to indicate to the zero terminal that the server is about to send information related to the production test software.
[0175] D2. After receiving the software start download instruction received successfully from the zero terminal, send the production test software program to the zero terminal.
[0176] In order to improve the reliability of data transmission, the server can send the production test software program in batches, that is, divide the production test software program into multiple data packets, and then send them to the zero terminal in sequence. The data amount of each data packet can be the same or different, and the present disclosure does not limit it.
[0177] D3. Receive the production test software program receiving completion instruction sent by the zero terminal.
[0178] After receiving the production test software program reception completion instruction sent by the zero terminal, it indicates that the zero terminal has received it successfully.
[0179] In one embodiment, if a production test software program reception failure instruction is received from the zero terminal, or if a production test software program reception completion instruction is not received from the zero terminal within a preset time, a notification message for resending the production test software program will be sent to the zero terminal, and after receiving a response, it will be resent.
[0180] In one embodiment, before the zero terminal installs the production test software, if the information related to the production test software download agent has not been installed, at this time, in executing step S210, before receiving the production test USB information sent by the zero terminal, the method further includes the following sub-steps E1-E3:
[0181] E1. Receive the blank USB information sent by the null terminal, where the blank USB information includes: a product identification code corresponding to the blank download USB port.
[0182] E2. After detecting that the USB port of the zero terminal is an empty download USB port according to the empty USB information, obtain the production test software download agent information, the production test software download agent information includes: the production test software download agent program, and the static random access memory address where the production test software download agent program is installed.
[0183] After receiving the blank USB information sent by the zero terminal, the server enumerates the USB port currently connected to the zero terminal as the blank download USB port based on the PID corresponding to the blank download USB port in the blank USB information. After enumerating the USB port of the zero terminal as the blank download USB port, the server queries the information related to the production test software download agent from its own device.
[0184] E3. Send the production test software download agent information to the zero terminal.
[0185] In one embodiment, the server can directly send the obtained production test software download agent information to the zero terminal. However, since the amount of data in the production test software download agent information may be large, if the zero terminal has not made relevant preparations to receive the data, data loss may occur. In order to improve the reliability of data transmission, in step E3, the production test software download agent information is sent to the zero terminal, including the following sub-steps E31-E32:
[0186] E31. Send an agent download start instruction to the zero terminal, where the agent download start instruction carries the total length of data corresponding to the production test software download agent program and the static random access memory address for installing the production test software download agent program.
[0187] The server may first send an agent start download instruction to the zero terminal, where the agent start download instruction is used to indicate the zero terminal that the server is about to send information related to the production test software download agent.
[0188] E32. After receiving the successful reception information of the agent start download instruction sent by the zero terminal, download the production test software agent program sent to the zero terminal.
[0189] In order to improve the reliability of data transmission, the server can send the production test software download agent program in batches, that is, divide the production test software download agent program into multiple data packets, and then send them to the zero terminal in sequence. The data amount of each data packet can be the same or different, and the present disclosure does not limit it.
[0190] E33. Receive the production test software download agent program reception completion instruction sent by the zero terminal.
[0191] After receiving the production test software download agent program receiving completion instruction sent by the zero terminal, it indicates that the zero terminal has received it successfully.
[0192] In one embodiment, if a production test software download agent program reception failure instruction is received from the zero terminal, or if a production test software download agent program reception completion instruction is not received from the zero terminal within a preset time, a notification message for resending the production test software download agent program will be sent to the zero terminal, and after receiving a response, it will be resent.
[0193] In the present disclosure, when the zero terminal is performing a test, the server will notify the zero terminal to install the production test software program in the double-speed synchronous dynamic random access memory. Since the double-speed synchronous dynamic random access memory is a volatile memory, the content stored therein will be lost after a power outage, and the double-speed synchronous dynamic random access memory does not need to be burned like a permanent storage medium, thereby shortening the test time of the zero terminal and improving the production efficiency of the zero terminal.
[0194] In one embodiment, the above method further includes the following sub-steps F1-F2:
[0195] F1. After receiving the official software download request sent by the zero terminal, obtain the official software information, which includes: the official software program and the address in the permanent storage medium where the official software program is installed.
[0196] F2. Send official software information to the zero terminal.
[0197] Specifically, after receiving the official software download request sent by the zero terminal, the server enumerates the USB port to which the zero terminal is currently connected as the official software download USB port based on the PID corresponding to the official software download USB port in the official software download request. After enumerating the USB port of the zero terminal as the official software download USB port, the server will query the information related to the official software from its own device, such as: the official software program and the address of the permanent storage medium where the official software program is installed in the zero terminal, and send the queried information related to the official software to the zero terminal in the official software information.
[0198] In one embodiment, before the zero terminal installs the official software, if the official software download agent related information has not been installed before, the zero terminal also needs to install the official software download agent. Specifically, after receiving the official software download agent request information sent by the zero terminal, the server will query the information related to the official software download agent from its own device, such as: the official software download agent program and the address in the static random access memory where the official software download agent program is installed in the zero terminal, and carry the queried information related to the official software download agent in the official software download agent information and send it to the zero terminal.
[0199] The present disclosure also provides a zero terminal testing method, specifically:
[0200] Step 1: Connect the USB download port of the zero terminal to the USB port of the production line PC (the server in the above embodiment).
[0201] Step 2: The zero terminal starts to execute the BOOTROM program and initiates the USB blank download process (when there is no boot image on the storage medium, the zero terminal automatically initiates it).
[0202] Step 3: The zero terminal prepares the VID, blank download PID, device descriptor, and port descriptor of the USB device, and carries them in the blank USB information and sends them to the PC, so that the PC can enumerate the "blank download USB port" of the zero terminal according to the blank USB information.
[0203] Step 4: After the PC enumerates the "blank chip download USB port" of the zero terminal, it sends an agent start download instruction to the zero terminal. The agent start download instruction carries the total length of data corresponding to the production test software download agent program and the SRAM address where the production test software download agent program is installed.
[0204] Step 5: The zero terminal replies with a message that the agent starts downloading instructions have been successfully received, indicating that the agent starts downloading instructions have been received.
[0205] Step 6: The PC starts sending the production test software download agent program to the zero terminal.
[0206] Step 7: The zero terminal receives the production test software download agent program. Steps 6 and 7 are repeated until the total length of data corresponding to the production test software download agent program specified in step 4 is completely received.
[0207] Step 8: The zero terminal sends the agent start download command to the PC to receive the successful message, and jumps to the SRAM address of the production test software download agent program specified in step 4 to start executing the production test software download agent program. The production test software download agent program initializes the DDR of the zero terminal, reinitializes the USB port, prepares the VID, production test PID, device descriptor, and port descriptor of the USB device, and carries this information in the production test USB information to the PC. The PC enumerates the USB port of the zero terminal as a blank chip download USB port based on the production test USB information.
[0208] Step 9: After the PC enumerates the USB port of the zero terminal as a blank chip download USB port, it sends a software start download instruction to the zero terminal. The software start download instruction carries the total length of data corresponding to the production test software program and the address of the DDR where the production test software program is installed. Among them, the total length of data corresponding to the production test software program can be the total length of the "production test software program" image.
[0209] Step 10: The zero terminal replies with a successful software download command reception message, indicating that the software download start command has been received.
[0210] Step 11: The PC starts sending the production test software program.
[0211] Step 12: Zero terminal receiving production test software program. Step 11 and step 12 are repeated until the total length of data specified in step 9 is received.
[0212] Step 13: The zero terminal sends a production test software program reception completion instruction to the PC, and jumps to the address of the DDR specified in step 9 to start executing the production test software program.
[0213] Step 14: The production test software program executes each hardware test case.
[0214] Step 15: If the hardware test case fails to execute, exit the entire process.
[0215] Step 16: If the hardware test case is executed successfully, the PC saves the test success record and sends a "reset" command.
[0216] Step 17: The zero terminal restarts after receiving the "reset" command.
[0217] Step 18: The zero terminal starts to execute the BOOTROM program and initiates the USB blank download process (when there is no boot image on the storage medium, the zero terminal automatically initiates it).
[0218] Step 19: The zero terminal prepares the VID, blank download PID, device descriptor, and port descriptor of the USB device, and carries this information in the formal software download agent request information to the PC. Based on the formal software download agent request information, the PC enumerates the USB port of the zero terminal as the blank download USB port.
[0219] Step 20: The PC sends the official software download agent information to the tested zero terminal. The official software download agent information carries the total length of the official software download agent program data and the SRAM address of the official software download agent program downloaded to the zero terminal.
[0220] Step 21: The zero terminal replies with the official software download agent information received successfully command, indicating that the official software download agent information has been received.
[0221] Step 22: The PC starts sending the official software download agent program.
[0222] Step 23: The zero terminal receives the official software download agent program. Steps 22 and 23 are repeated until the total length of data specified in step 20 is received.
[0223] Step 24: The zero terminal sends a formal software download agent program receiving completion instruction to the PC, and jumps to the SRAM address specified in step 20 to start executing the formal software download agent program. The formal software download agent program initializes the DDR of the zero terminal, reinitializes the USB port, prepares the VID of the USB device, the PID for formal software version download, the device descriptor, and the port descriptor, and carries this information in the formal software download request and sends it to the PC. According to the formal software download request, the PC enumerates the USB port of the zero terminal as the USB port for formal software download.
[0224] Step 25: The PC enumerates the USB port of the zero terminal as the USB port for formal software download, and sends formal software download information to the zero terminal. The formal software download information carries the total length of the formal software program data and the address of the formal software program downloaded to the permanent storage medium of the zero terminal (for example, parsed as the block address and block offset inside the NOR FLASH).
[0225] Step 26: The zero terminal replies with the official software download information successfully received instruction, indicating that the official software download information has been received.
[0226] Step 27: The PC starts sending the official software program.
[0227] Step 28: Zero terminal receives the formal software program. Steps 27 and 28 are repeated until the total length of the data specified in step 25 is reached.
[0228] Step 29: The zero terminal sends the official software program to the PC to successfully receive the instruction.
[0229] Step 30: Zero terminal burning of official software program.
[0230] Figure 3 A schematic diagram of the structure of a zero terminal test device provided in this embodiment, the zero terminal test device is applied to a zero terminal, such as Figure 3 As shown, the zero-terminal test device includes:
[0231] The first sending module 11 is used to send production test USB information to the server after detecting that the server is connected via the USB port, wherein the production test USB information includes: a product identification code corresponding to the production test USB port.
[0232] The first receiving module 12 is used to receive the production test software download information sent by the server, wherein the production test software download information includes: a production test software program and an address of a double rate synchronous dynamic random access memory for installing the production test software program.
[0233] The first installation module 13 is used to install the production test software program according to the position corresponding to the address of the double rate synchronous dynamic random access memory.
[0234] The first running module 14 is used to run the production test software program.
[0235] The restart module 15 is used to perform a restart operation after detecting that the production test software program runs successfully, so as to delete the production test software program installed in the position corresponding to the address of the double rate synchronous dynamic random access memory.
[0236] The exit module 16 is used to exit the operation of the production test software program after detecting that the production test software program fails to operate.
[0237] In one embodiment, it further includes:
[0238] The second sending module is used to send blank USB information to the server, wherein the blank USB information includes: a product identification code corresponding to the blank download USB port.
[0239] The second receiving module is used to receive the production test software download agent information sent by the server, wherein the production test software download agent information includes: a production test software download agent program and a static random access memory address for installing the production test software download agent program.
[0240] The second installation module is used to install the production test software download agent program according to the position corresponding to the static random access memory address.
[0241] The second running module is used to run the production test software download agent program to initialize the double rate synchronous dynamic random access memory. After the production test software download agent program is run, the first sending module sends the production test USB information to the server.
[0242] In one embodiment, the second receiving module includes:
[0243] The first receiving submodule is used to receive the agent start download instruction sent by the server, and the agent start download instruction carries the total length of data corresponding to the production test software download agent program and the static random access memory address where the production test software download agent program is installed.
[0244] The first sending submodule is used to send agent start download instruction reception success information to the server.
[0245] The second receiving submodule is used to receive the production test software download agent program sent by the server.
[0246] The second sending submodule is used to send a production test software download agent program reception completion instruction to the server after detecting that the total length of the currently received data is the same as the total length of the data corresponding to the production test software download agent program.
[0247] In one embodiment, the first receiving module includes:
[0248] The third receiving submodule is used to receive the software start download instruction sent by the server, and the software start download instruction carries the total length of data corresponding to the production test software program and the address of the double rate synchronous dynamic random access memory where the production test software program is installed.
[0249] The third sending submodule is used to send software download start instruction reception success information to the server.
[0250] The fourth receiving submodule is used to receive the production test software program sent by the server.
[0251] The fourth sending submodule is used to send a production test software program reception completion instruction to the server after detecting that the total length of the currently received data is the same as the total length of the data corresponding to the production test software program.
[0252] In one embodiment, it further includes:
[0253] The third sending module is used to send a formal software download request to the server after the restart module performs the restart operation.
[0254] The third receiving module is used to receive the official software information sent by the server, wherein the official software information includes: an official software program and an address in a permanent storage medium where the official software program is installed.
[0255] The burning module is used to burn the official software program according to the position corresponding to the address in the permanent storage medium.
[0256] Figure 4 A schematic diagram of the structure of a zero terminal test device provided in this embodiment, the zero terminal test device is applied to a server, such as Figure 4 As shown, the zero-terminal test device includes:
[0257] The fourth receiving module 21 is used to receive the production test USB information sent by the null terminal, wherein the production test USB information includes: a product identification code corresponding to the production test USB port.
[0258] The first acquisition module 22 is used to acquire production test software download information after detecting that the USB port of the zero terminal is a production test USB port according to the production test USB information. The production test software download information includes: a production test software program, and the address of a double-rate synchronous dynamic random access memory for installing the production test software program.
[0259] The fourth sending module 23 is used to send the production test software download information to the zero terminal.
[0260] In one embodiment, the apparatus further comprises:
[0261] The fifth receiving module is used to receive the blank USB information sent by the zero terminal before the fourth receiving module receives the production test USB information sent by the zero terminal, wherein the blank USB information includes: a product identification code corresponding to the blank download USB port.
[0262] The second acquisition module is used to obtain the production test software download agent information after detecting that the USB port of the zero terminal is a blank download USB port according to the blank USB information. The production test software download agent information includes: a production test software download agent program, and a static random access memory address for installing the production test software download agent program.
[0263] The fifth sending module is used to send the production test software download agent information to the zero terminal.
[0264] In one embodiment, the fifth sending module includes:
[0265] The fifth sending submodule is used to send an agent start download instruction to the zero terminal, and the agent start download instruction carries the total length of data corresponding to the production test software download agent program and the static random access memory address where the production test software download agent program is installed.
[0266] The sixth sending submodule is used to send the production test software download agent program to the zero terminal after receiving the agent start download instruction reception success information sent by the zero terminal.
[0267] The fifth receiving submodule is used to receive the production test software download agent program reception completion instruction sent by the zero terminal.
[0268] In one embodiment, the fourth sending module includes:
[0269] The seventh sending submodule is used to send a software start download instruction to the zero terminal, and the software start download instruction carries the total length of data corresponding to the production test software program and the address of the double-rate synchronous dynamic random access memory where the production test software program is installed.
[0270] An eighth sending submodule is used to send the production test software program to the zero terminal after receiving the software start download instruction reception success information sent by the zero terminal.
[0271] The sixth receiving submodule is used to receive the production test software program reception completion instruction sent by the zero terminal.
[0272] In one embodiment, the apparatus further comprises:
[0273] The third acquisition module is used to acquire the official software information after receiving the official software download request sent by the zero terminal. The official software information includes: the official software program and the address in the permanent storage medium where the official software program is installed.
[0274] The sixth sending module is used to send the official software information to the zero terminal.
[0275] The present disclosure also provides a zero terminal testing system, which includes: a zero terminal and a server.
[0276] The zero terminal is connected to the server via a USB port.
[0277] The zero terminal is used to execute the method steps corresponding to the zero terminal in any of the above embodiments.
[0278] The server is used to execute the method steps corresponding to the server in any of the above embodiments.
[0279] In the claims, any reference symbols placed between brackets shall not be construed as limiting the claims. The word "comprising" described in the present application does not exclude the presence of elements or steps not listed in the claims. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The present application can be implemented with the aid of hardware comprising several different elements and with the aid of a suitably programmed computer. In a unit claim that lists a number of devices, several units of these devices may be embodied by the same hardware item. The use of first, second, and third, etc. does not indicate any order, and these words may be interpreted as names. The steps in the above embodiments, unless otherwise specified, should not be understood as limitations on the order of execution.
[0280] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application is described in detail with reference to the above embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the above embodiments can still be modified, or some of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A zero-terminal testing method, It is characterized in that The method is applied to a zero terminal, and the method comprises: After detecting that the server is connected via the USB port, sending production test USB information to the server, the production test USB information including: a supplier identification code corresponding to the production test USB port and a product identification code corresponding to the production test USB port; Receiving production test software download information sent by the server, the production test software download information including: a production test software program, and an address of a double rate synchronous dynamic random access memory for installing the production test software program; Install the production test software program according to the location corresponding to the address of the double rate synchronous dynamic random access memory; running the production test software program; After detecting that the production test software program runs successfully, performing a restart operation to delete the production test software program installed in the location corresponding to the address of the double rate synchronous dynamic random access memory; After detecting that the production test software program fails to run, the production test software program is exited.
2. The method according to claim 1, It is characterized in that Before sending the production test USB information to the server, the method further includes: Sending blank USB information to the server, wherein the blank USB information includes: a supplier identification code corresponding to the blank download USB port and a product identification code corresponding to the blank download USB port; Receiving production test software download agent information sent by the server, the production test software download agent information including: a production test software download agent program, and a static random access memory address for installing the production test software download agent program; Installing the production test software download agent program according to the location corresponding to the static random access memory address; Running the production test software download agent program to initialize the double rate synchronous dynamic random access memory; After the production test software download agent program is run, the production test USB information is sent to the server.
3. The method according to claim 2, It is characterized in that The receiving of the production test software download agent information sent by the server includes: Receive an agent start download instruction sent by the server, wherein the agent start download instruction carries the total length of data corresponding to the production test software download agent program and the static random access memory address where the production test software download agent program is installed; Sending a proxy start download instruction reception success message to the server; Receiving the production test software download agent program sent by the server; After detecting that the total length of the currently received data is the same as the total length of the data corresponding to the production test software download agent program, a production test software download agent program reception completion instruction is sent to the server.
4. The method according to any one of claims 1 to 3, It is characterized in that The receiving the production test software download information sent by the server includes: Receiving a software download start instruction sent by the server, wherein the software download start instruction carries the total length of data corresponding to the production test software program and the address of the double rate synchronous dynamic random access memory in which the production test software program is installed; Sending software download start instruction reception success information to the server; receiving the production test software program sent by the server; After detecting that the total length of the currently received data is the same as the total length of the data corresponding to the production test software program, a production test software program reception completion instruction is sent to the server.
5. The method according to claim 1, It is characterized in that After the restart operation is performed, the method further includes: Sending a formal software download request to the server; Receiving the official software information sent by the server, the official software information including: an official software program, and an address in a permanent storage medium where the official software program is installed; The official software program is burned according to the location corresponding to the address in the permanent storage medium.
6. A zero-terminal test method, It is characterized in that The method is applied to a server, and the method comprises: Receiving production test USB information sent by the null terminal, the production test USB information including: a supplier identification code corresponding to the production test USB port and a product identification code corresponding to the production test USB port; After detecting that the USB port of the zero terminal is a production test USB port according to the production test USB information, obtaining production test software download information, the production test software download information including: a production test software program, and an address of a double rate synchronous dynamic random access memory for installing the production test software program; The production test software download information is sent to the zero terminal.
7. The method according to claim 6, It is characterized in that Before receiving the production test USB information sent by the zero terminal, the method further includes: Receive the blank USB information sent by the null terminal, wherein the blank USB information includes: a supplier identification code corresponding to the blank download USB port and a product identification code corresponding to the blank download USB port; After detecting that the USB port of the zero terminal is a blank download USB port according to the blank USB information, obtaining production test software download agent information, the production test software download agent information including: a production test software download agent program, and a static random access memory address where the production test software download agent program is installed; The production test software download agent information is sent to the zero terminal.
8. The method according to claim 7, It is characterized in that The sending the production test software download agent information to the zero terminal includes: Sending an agent start download instruction to the zero terminal, wherein the agent start download instruction carries the total length of data corresponding to the production test software download agent program and the static random access memory address where the production test software download agent program is installed; After receiving the agent start download instruction reception success information sent by the zero terminal, the production test software download agent program sent to the zero terminal; Receive the production test software download agent program reception completion instruction sent by the zero terminal.
9. The method according to any one of claims 6 to 8, It is characterized in that The sending the production test software download information to the zero terminal includes: Sending a software download start instruction to the zero terminal, wherein the software download start instruction carries the total length of data corresponding to the production test software program and the address of the double rate synchronous dynamic random access memory where the production test software program is installed; After receiving the software start download instruction received successfully information sent by the zero terminal, sending the production test software program to the zero terminal; Receive the production test software program reception completion instruction sent by the zero terminal.
10. The method according to claim 6, It is characterized in that The method further comprises: After receiving the official software download request sent by the zero terminal, obtaining official software information, the official software information including: an official software program, and an address in a permanent storage medium where the official software program is installed; The official software information is sent to the null terminal.
