DTU hardware testing method, terminal and computer-readable storage medium

By identifying and burning the test firmware on the DTU hardware test tool, performing test actions, and writing the target firmware and voucher information, the problem of manual testing being difficult to accurately detect hardware quality is solved, and efficient and reliable testing of DTU hardware is achieved.

CN112783708BActive Publication Date: 2024-09-06MOGULINKER TECHNOLOGY (SHENZHEN) CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202110122287.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-01-28
Publication Date
2024-09-06
Estimated Expiration
2041-01-28

AI Technical Summary

Technical Problem

In the production process of DTU hardware, manual testing is difficult to quickly and accurately detect the quality of the hardware, resulting in equipment that may be defective when it enters the market, affecting the interests of the company.

Method used

By identifying the DTU hardware on the test tool, obtaining and burning the test firmware, sending test instructions to perform test actions, and writing the target firmware and credential information after the test is completed, the automated hardware test process is realized.

Benefits of technology

It improves the efficiency and quality of DTU hardware testing, reduces manual errors, and ensures the reliability and traceability of the hardware in the production process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112783708B
    Figure CN112783708B
Patent Text Reader

Abstract

The present application discloses a DTU hardware testing method, terminal and computer-readable storage medium. The DTU hardware testing method includes: when the DTU hardware to be tested is identified on the test tool, the test firmware is obtained, and the test firmware is burned to the DTU hardware to be tested; after the burning is successful, a test instruction is sent to the DTU hardware to be tested, and different test tasks are selected according to the test instruction, so that the DTU hardware to be tested performs the corresponding test action based on the test task; after the test is completed, the target firmware and the set credential information are obtained, and the target firmware and the set credential information are written to the DTU hardware to be tested. By tracking and testing the DTU hardware production link, the quality problem of DTU hardware that is easy to occur when using manual testing of DTU hardware is solved, so that the efficiency of DTU hardware testing is improved and the quality of DTU hardware testing is guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of device testing, and in particular to a DTU hardware testing method, a terminal, and a computer-readable storage medium. Background Art

[0002] DTU is a data collection and transmission unit for a scene. It usually includes communication modules, communication interfaces, I\O input and output, analog quantity acquisition and other interfaces. In the current DTU production process, the testing of DTU often requires many complex links to test. The technical level of factory workers varies, which often leads to defects in DTU hardware. When a batch of equipment enters the market, it often has a significant impact on the company. Among them, the detection of DTU in the production process has also become a knot in the hearts of many DTU manufacturers. How to quickly and accurately detect DTU has also become a problem that needs to be solved urgently. Summary of the invention

[0003] The embodiments of the present application provide a DTU hardware testing method, a terminal, and a computer-readable storage medium, aiming to solve the quality problems of DTU hardware that are prone to occur when using manual testing of DTU hardware.

[0004] To achieve the above object, the present application provides a DTU hardware testing method on one hand, and the DTU hardware testing method comprises the following steps:

[0005] When the DTU hardware to be tested is identified on the test tool, the test firmware is obtained and burned into the DTU hardware to be tested;

[0006] After the burning is successful, a test instruction is sent to the DTU hardware to be tested, and different test tasks are selected according to the test instruction, so that the DTU hardware to be tested performs corresponding test actions based on the test tasks;

[0007] After the test is completed, the target firmware and the set credential information are obtained, and the target firmware and the set credential information are written into the DTU hardware to be tested.

[0008] Optionally, the step of obtaining the test firmware and burning the test firmware to the DTU hardware to be tested includes:

[0009] Acquire the device information of the DTU hardware to be tested, and select the corresponding test firmware according to the device information of the DTU hardware to be tested;

[0010] The program burning interface is called to burn the test firmware to the DTU hardware to be tested.

[0011] Optionally, after the step of sending a test instruction to the DTU hardware to be tested and selecting different test tasks according to the test instruction, the method further comprises:

[0012] Get test results;

[0013] The test results are displayed through a visualization page and sent to a cloud server.

[0014] Optionally, before the step of selecting corresponding test firmware according to the device information of the DTU hardware to be tested, the step includes:

[0015] Send a download request to the cloud server according to the device information of the DTU hardware to be tested;

[0016] The test firmware is downloaded from the cloud server according to the download request.

[0017] Optionally, after the step of displaying the test result through a visualization page and sending the test result to a cloud server, the following steps are included:

[0018] Select the control type and the control quantity according to the test item corresponding to the device information of the DTU hardware to be tested;

[0019] The test interface is dynamically adjusted according to the control type and the control quantity.

[0020] Optionally, when the DTU hardware to be tested is identified on the test tool, before the step of obtaining the test firmware and burning the test firmware to the DTU hardware to be tested, the step includes:

[0021] Identify the hardware code of the DTU hardware on the test fixture by using an identification device to determine whether the DTU hardware is the DTU hardware to be tested, wherein the hardware code is pre-pasted on the DTU hardware;

[0022] If the DTU hardware is the DTU hardware to be tested, the step of burning the test firmware to the DTU hardware to be tested is performed.

[0023] Optionally, after the step of identifying the hardware code of the DTU hardware on the test fixture by using an identification device, the step further includes:

[0024] Obtain an image of the DTU hardware to be tested, and store the image in the cloud server and the terminal locally.

[0025] Optionally, after the test is completed, the step of obtaining the target firmware and the set credential information, and writing the target firmware and the set credential information into the DTU hardware to be tested includes:

[0026] Set the label information corresponding to the DTU hardware to be tested;

[0027] A printing instruction is sent to a printing device, so that the printing device prints the label information according to the printing instruction.

[0028] In addition, to achieve the above-mentioned purpose, the present application also provides a terminal on the other hand, which includes a memory, a processor, and a DTU hardware test program stored in the memory and running on the processor, and when the processor executes the DTU hardware test program, the steps of the DTU hardware test method as described above are implemented.

[0029] In addition, to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium on the other hand, on which a DTU hardware test program is stored, and when the DTU hardware test program is executed by a processor, the steps of the DTU hardware test method described above are implemented.

[0030] When the DTU hardware to be tested is identified on the test tooling, the present embodiment obtains the test firmware and burns the test firmware to the DTU hardware to be tested; after the burning is successful, a test instruction is sent to the DTU hardware to be tested, and different test tasks are selected according to the test instruction, so that the DTU hardware to be tested performs the corresponding test action based on the test task; after the test is completed, the target firmware and the set credential information are obtained, and the target firmware and the set credential information are written to the DTU hardware to be tested. By tracking the DTU hardware production process, the quality problem of DTU hardware that is prone to occur when using manual testing of DTU hardware is solved, thereby improving the efficiency of DTU hardware testing and ensuring the quality of DTU hardware testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Figure 1 A schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application;

[0032] Figure 2 This is a flowchart of the first embodiment of the DTU hardware testing method of the present application;

[0033] Figure 3 This is a flow chart of the second embodiment of the DTU hardware testing method of the present application;

[0034] Figure 4 This is a flowchart of the third embodiment of the DTU hardware testing method of the present application;

[0035] Figure 5 This is a flow chart before the step of selecting the corresponding test firmware according to the device information of the DTU hardware to be tested in the DTU hardware testing method of the present application;

[0036] Figure 6 A flowchart after the step of obtaining the target firmware and the set credential information and writing the target firmware and the set credential information into the DTU hardware to be tested in the DTU hardware testing method of the present application after the test is completed;

[0037] Figure 7 This is a flowchart after the step of displaying the test results through a visualization page and sending the test results to a cloud server in the DTU hardware testing method of this application.

[0038] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0039] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0040] The main solution of the embodiment of the present application is: when the DTU hardware to be tested is identified on the test tooling, the test firmware is obtained, and the test firmware is burned to the DTU hardware to be tested; after the burning is successful, a test instruction is sent to the DTU hardware to be tested, and different test tasks are selected according to the test instruction, so that the DTU hardware to be tested performs the corresponding test action based on the test task; after the test is completed, the target firmware and the set credential information are obtained, and the target firmware and the set credential information are written to the DTU hardware to be tested.

[0041] In the current DTU production process, the testing of DTU often requires many complex links to be tested, the technical levels of factory workers vary greatly, and quality problems of DTU hardware are prone to occur. When the DTU hardware to be tested is identified on the test tooling, the application obtains the test firmware and burns the test firmware to the DTU hardware to be tested; after the burning is successful, a test instruction is sent to the DTU hardware to be tested, and different test tasks are selected according to the test instructions, so that the DTU hardware to be tested performs the corresponding test actions based on the test tasks; after the test is completed, the target firmware and the set credential information are obtained, and the target firmware and the set credential information are written to the DTU hardware to be tested. By tracking the DTU hardware production links, the quality problems of DTU hardware that are prone to occur when using manual testing of DTU hardware are solved, the efficiency of DTU hardware testing is improved, and the quality of DTU hardware testing is guaranteed.

[0042] like Figure 1 As shown, Figure 1 This is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application.

[0043] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0044] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, a remote controller, an audio circuit, a WiFi module, a detector, etc. Of course, the terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a temperature sensor, etc., which will not be described in detail here.

[0045] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0046] like Figure 1 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a DTU hardware test program.

[0047] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and perform data communication with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and perform data communication with the client; and the processor 1001 can be used to call the DTU hardware test program in the memory 1005 and perform the following operations:

[0048] When the DTU hardware to be tested is identified on the test tool, the test firmware is obtained and burned into the DTU hardware to be tested;

[0049] After the burning is successful, a test instruction is sent to the DTU hardware to be tested, and different test tasks are selected according to the test instruction, so that the DTU hardware to be tested performs corresponding test actions based on the test tasks;

[0050] After the test is completed, the target firmware and the set credential information are obtained, and the target firmware and the set credential information are written into the DTU hardware to be tested.

[0051] refer to Figure 2 , Figure 2 This is a flowchart of the first embodiment of the DTU hardware testing method of the present application.

[0052] The embodiments of the present application provide embodiments of the DTU hardware testing method. It should be noted that although the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that shown here.

[0053] DTU hardware testing methods include:

[0054] Step S10, when the DTU hardware to be tested is identified on the test tool, the test firmware is obtained, and the test firmware is burned into the DTU hardware to be tested;

[0055] In this embodiment, DTU (Data Transfer Unit) is a wireless terminal device specially used to convert serial port data into IP data or convert IP data into serial port data for transmission through a wireless communication network. The DTU hardware is DTU PCBA, where PCBA is called a circuit board.

[0056] The test firmware is a program written into a flash memory chip such as an EROM (Erasable Read-Only Memory) or an EEPROM (Electrically Erasable Programmable Read-Only Memory). Through the test firmware, the DTU PCBA to be tested can implement specific test actions according to the standard program. The result after the test firmware runs is the test result. Among them, the test firmware can specifically include but is not limited to one or a combination of read-write test firmware, speed test firmware, chip test firmware, hardware test firmware, etc.

[0057] Before testing the DTU PCBA, the DTU PCBA to be tested needs to be installed on a test fixture, which is a device used to check whether the DTU PCBA reaches the expected index expectation, wherein the DTU PCBA to be tested has multiple interfaces, including but not limited to communication interface, I / O input and output interface, analog interface, program burning interface, etc. The DTU PCBA to be tested is connected to the test terminal through the communication interface and using a communication conversion module, and the communication conversion module is used to convert the received signal, for example: the test terminal receives the data frame transmitted by the USB bus, and the communication conversion module converts the USB communication into the corresponding host communication (test terminal), and then sends the data to the test terminal, and the data returned from the test terminal is converted into a USB signal and returned to the DTU PCBA to be tested, wherein the test terminal of the present application includes other intelligent terminals such as test tablets, test mobile phones, and test computers. In addition, the program burning interface in the DTU PCBA to be tested is connected to the test terminal through a burning tool.

[0058] When the test terminal identifies the DTU PCBA to be tested on the test tool, the device information of the DTU PCBA to be tested is obtained, such as the device model, device type, device name, version number and other information, and the test content is determined according to the device information of the DTU PCBA to be tested, and the corresponding test firmware is selected based on the test content, such as read-write test firmware, chip test firmware, hardware test firmware, etc., and then the test terminal calls the program burning interface to burn the test firmware to the DTU PCBA to be tested. In one embodiment, taking the Jlink burning tool as an example, the Jlink burning tool is connected between the USB of the test terminal and the program burning interface of the DTU PCBA to be tested. When burning, the corresponding port, the model of the Jlink chip and other configuration information need to be set. After the setting is completed, the test firmware to be burned is selected, such as the jlink-v8.bin file, and the test firmware can be burned by clicking Send.

[0059] Furthermore, before conducting the DTU PCBA test, it is necessary to debug the environment of the test fixture, for example, simulate the response according to the DTU interface, such as the 4-20mA interface. When testing, a 10mA current input is given, and the current is determined by testing whether it is 10mA to determine whether the hardware is normal; 0-5V is similar, a voltage input is given, and the hardware is read by the test firmware to determine whether it is normal. In subsequent tests, the DTU PCBA to be tested only needs to be placed on the test fixture to complete the automated test, and during the test process, the software automatically performs the test operation without manual intervention.

[0060] The test firmware in the test terminal is obtained from the cloud server. Figure 5 , before the step of selecting the corresponding test firmware according to the device information of the DTU hardware to be tested, it includes:

[0061] Step S11, sending a download request to the cloud server according to the device information of the DTU hardware to be tested;

[0062] Step S12: downloading the test firmware from the cloud server according to the download request.

[0063] The cloud server stores configuration information and test firmware corresponding to different models of DTU PCBA. At the same time, there are multiple versions of the test firmware, and the latest version is stored in the cloud server. Therefore, before burning the test firmware, the test terminal needs to send a download request to the cloud server. The download request includes the device information of the DTU PCBA to be tested. After receiving the download request, the cloud server searches for the latest version of the test firmware that matches the device information, sends the latest version of the test firmware to the test terminal, and then the test terminal burns the latest version of the test firmware.

[0064] Step S20, after the burning is successful, sending a test instruction to the DTU hardware to be tested, and selecting different test tasks according to the test instruction, so that the DTU hardware to be tested performs corresponding test actions based on the test tasks;

[0065] After the test terminal burns the test firmware to the DTU PCBA to be tested, it will receive the burning feedback information, and determine whether the current burning is successful based on the burning feedback information. If the burning is successful, the DTU PCBA to be tested can be subjected to various tests according to the communication protocol. In one embodiment, the test terminal communicates with the DTU PCBA to be tested using Modbus, but is not limited to using serial port class and network class for communication, wherein Modbus is a serial communication protocol; in the test firmware, an RTOS system (real-time operating system) is used to separate all test items into a test task, and the test task includes a watchdog test, a system clock test, and peripheral interfaces such as analog input 0-5V, 4-20mA and 485, 232, TTL and communication module interface tests, and the specific test items are determined according to the interfaces of the DTU. When the test terminal sends a test instruction to the DTU PCBA to be tested, different test tasks can be selected based on the test instruction. Specifically, the test items of the DTU PCBA to be tested are selected and controlled through the holding register in the Modbus protocol. For example, the start and pause of each test task are realized through the address 01 of the holding register, or the test item is selected through the address 02 of the holding register, etc. After receiving the test instruction, the DTU PCBA to be tested performs the corresponding test action according to the test task selected in the test instruction. For example, if the current test task is the system clock test, the DTU PCBA to be tested performs various tests related to the system clock.

[0066] Step S30, after the test is completed, the target firmware and the set credential information are obtained, and the target firmware and the set credential information are written into the DTU hardware to be tested.

[0067] When the DTU PCBA to be tested is completed, that is, the test is successful, the target firmware is obtained according to the device information of the tested DTU PCBA. The target firmware is the official firmware, which refers to the device "driver" stored inside the device. Only through the official firmware can the DTU PCBA implement the operation of a specific machine according to the standard device driver. At the same time, the test terminal sends a request to obtain the credential information to the cloud server, and the cloud server feeds back the corresponding credential information to the test terminal based on the acquisition request, and further writes the official firmware and credential information into the successfully tested DTU PCBA, where the credential information refers to the relevant information of the DTU access to the network, such as the device ID, the manufacturer's number and other identity information, such as Alibaba's triple information, etc.

[0068] It should be noted that the credential information here is related to the cloud server used, and the credential information of different cloud servers may be different. Secondly, the role of the credential information is similar to the user's ID card, which serves as a credential for identity identification.

[0069] Further, refer to Figure 6 , after the test is completed, the step of obtaining the target firmware and the set credential information, and writing the target firmware and the set credential information into the DTU hardware to be tested includes:

[0070] Step S31, setting label information corresponding to the DTU hardware to be tested;

[0071] Step S32: sending a printing instruction to a printing device, so that the printing device prints the label information according to the printing instruction.

[0072] After completing the DTU PCBA test, the label information corresponding to the DTU PCBA can also be printed out for user viewing. Before printing the label information, the content and format of the label information need to be set first. For example, the content of the label information can be set according to the device information corresponding to the DTU PCBA. The label information can include device number, device model, device ID, device name and other information. A print instruction is sent to a printing device (such as a printer), and the printing device prints the corresponding label information based on the print instruction. Alternatively, a pre-stored label information template is directly used to perform customized printing based on the label information template, wherein the content in the label information template can be implemented by customizing the selection parameters in the configuration information.

[0073] When the DTU hardware to be tested is identified on the test tooling, the present embodiment obtains the test firmware and burns the test firmware to the DTU hardware to be tested; after the burning is successful, a test instruction is sent to the DTU hardware to be tested, and different test tasks are selected according to the test instruction, so that the DTU hardware to be tested performs the corresponding test action based on the test task; after the test is completed, the target firmware and the set credential information are obtained, and the target firmware and the set credential information are written to the DTU hardware to be tested. By conducting full-link testing and configuration of the DTU hardware from the PCBA link to the factory state, user intervention is reduced and testing efficiency is improved. At the same time, all links of the PCBA from production to delivery are actively traceable, a reliable closed loop is achieved, and losses caused by abnormal hardware delivery are avoided. Furthermore, the DTU hardware test is integrated with the firmware writing and configuration before delivery to reduce errors caused by human factors, and at the same time, test cases can be reduced and production capacity can be improved.

[0074] Further, refer to Figure 3 , a second embodiment of the DTU hardware testing method of the present application is proposed.

[0075] The difference between the second embodiment of the DTU hardware testing method and the first embodiment of the DTU hardware testing method is that after the step of sending a test instruction to the DTU hardware to be tested and selecting different test tasks according to the test instruction, the method further comprises:

[0076] Step S21, obtaining test results;

[0077] Step S22, displaying the test results through a visualization page, and sending the test results to a cloud server.

[0078] During the DTU PCBA test, the test terminal will obtain the test results in real time and display the test results through a visualization page. Specifically, the test terminal uses data analysis tools or software and computer graphics, images, human-computer interaction and other technologies to map the test data in the obtained test results into recognizable graphics, images, and charts. Among them, visualization is the process of converting data, information and knowledge into a visual form, focusing on the top-down processing of data, information and knowledge by people. Compared with complex data, charts can not only express information more concisely, but also are suitable for describing a large amount of information.

[0079] The test terminal also needs to send the test results to the cloud server for synchronization so that users can subsequently query and use relevant test data, analyze the test results based on the test data, and generate corresponding analysis reports.

[0080] Further, refer to Figure 7 , after the step of displaying the test result through a visualization page and sending the test result to a cloud server, it includes:

[0081] Step S220, selecting a control type and a control quantity according to a test item corresponding to the device information of the DTU hardware to be tested;

[0082] Step S221, dynamically adjusting the test interface according to the control type and the control quantity.

[0083] While displaying the test results, the test terminal can also dynamically adjust the content of the test interface. Specifically, the device information of the DTU PCBA to be tested is obtained, the device model is obtained from the device information, and the control type and the number of controls are selected according to the test items corresponding to the device model. For example, model A has 5 items to be tested, of which 3 are of state type and 2 are of value type. The test terminal will automatically set the test page according to these state types, use the state control to indicate the real-time status of each state type test item, and use the value control to display the specific value of the value type test item in real time, so as to realize the visual display and dynamic adjustment of the test.

[0084] In this embodiment, the test results are obtained and displayed through a visualization page, and the displayed content can be dynamically adjusted based on the test item information corresponding to the device model, so that users can understand the test results more clearly. At the same time, the test results are synchronized to the cloud server, which facilitates users to query and use related test data later.

[0085] Further, refer to Figure 4 , a third embodiment of the DTU hardware testing method of the present application is proposed.

[0086] The third embodiment of the DTU hardware testing method is different from the first embodiment and the second embodiment of the DTU hardware testing method in that, when the DTU hardware to be tested is identified on the test tool, before the step of obtaining the test firmware and burning the test firmware to the DTU hardware to be tested, the method includes:

[0087] Step S13, identifying the hardware code of the DTU hardware on the test fixture by an identification device to determine whether the DTU hardware is the DTU hardware to be tested, and the hardware code is pre-pasted on the DTU hardware;

[0088] Step S14: If the DTU hardware is the DTU hardware to be tested, the step of burning the test firmware to the DTU hardware to be tested is performed.

[0089] The factory will generate a hardware code during the production of DTU PCBA and paste the hardware code on the DTUPCBA as the hardware code for test traceability. The hardware code includes but is not limited to barcode format, and can also be the chip's unique identification code UID, etc. The hardware code can be in the form of: XX-XX, such as XY-04A.

[0090] The test terminal is provided with a camera or a scanning device. When it is detected that a DTU PCBA is installed on the test tooling, the hardware code on the DTU PCBA is identified through the camera or the scanning device, and the identified hardware code is matched with the pre-stored hardware code to determine whether the currently identified hardware code is identified for the first time. If it is identified for the first time, it means that the DTU PCBA is the DTU PCBA to be tested. If it is not identified for the first time, it means that the DTU PCBA has been tested. After determining that the current DTU PCBA is the DTU PCBA to be tested, the test firmware is obtained and burned to the DTU PCBA to be tested. Among them, the camera or scanning device in the test terminal will detect the dynamics of the DTU PCBA on the test tooling in real time. When it is detected that a new DTU PCBA is installed on the test tooling, a new round of test operations will be automatically performed.

[0091] Furthermore, after the step of identifying the hardware code of the DTU hardware on the test fixture by using an identification device, it also includes:

[0092] Obtain an image of the DTU hardware to be tested, and store the image in the cloud server and the terminal locally.

[0093] When the test terminal identifies the DTU PCBA, it will also take a photo of the DTU PCBA through the camera and store the photo in the cloud server and the terminal for users to view and use later.

[0094] In this embodiment, the DTU PCBA on the test tool is identified by a camera or a code scanning device to determine whether the DTU PCBA is the DTU PCBA to be tested. At the same time, the image of the DTU PCBA is stored in the cloud server and the terminal locally to facilitate subsequent search and use by users.

[0095] The present application also proposes a DTU hardware testing device. In one embodiment, the DTU hardware testing device includes a memory, a processor, and a DTU hardware testing program stored in the memory and executable on the processor. When the DTU hardware testing program is executed by the processor, the following steps are implemented:

[0096] When the DTU hardware to be tested is identified on the test tool, the test firmware is obtained and burned into the DTU hardware to be tested;

[0097] After the burning is successful, a test instruction is sent to the DTU hardware to be tested, and different test tasks are selected according to the test instruction, so that the DTU hardware to be tested performs corresponding test actions based on the test tasks;

[0098] After the test is completed, the target firmware and the set credential information are obtained, and the target firmware and the set credential information are written into the DTU hardware to be tested.

[0099] In one embodiment, the DTU hardware testing device includes a burning module, a sending module and an acquiring module;

[0100] A burning module, used for obtaining the test firmware when the DTU hardware to be tested is identified on the test tool, and burning the test firmware to the DTU hardware to be tested;

[0101] A sending module, used for sending a test instruction to the DTU hardware to be tested after the burning is successful, and selecting different test tasks according to the test instruction, so that the DTU hardware to be tested performs corresponding test actions based on the test tasks;

[0102] The acquisition module is used to acquire the target firmware and the set credential information after the test is completed, and write the target firmware and the set credential information into the DTU hardware to be tested.

[0103] Furthermore, the burning module includes an acquisition unit and a burning unit;

[0104] The acquisition unit is used to acquire the device information of the DTU hardware to be tested, and select the corresponding test firmware according to the device information of the DTU hardware to be tested;

[0105] The burning unit is used to call the program burning interface to burn the test firmware to the DTU hardware to be tested.

[0106] Further, the sending module includes an acquisition unit and a sending unit;

[0107] The acquisition unit is used to acquire the test result;

[0108] The sending unit is used to display the test result through a visual page and send the test result to a cloud server.

[0109] Further, the acquisition unit includes a sending subunit and a downloading subunit;

[0110] The sending subunit is used to send a download request to the cloud server according to the device information of the DTU hardware to be tested;

[0111] The download subunit is used to download the test firmware from the cloud server according to the download request.

[0112] Further, the sending unit includes a selection subunit and an adjustment subunit;

[0113] The selection subunit is used to select the control type and the control quantity according to the test item corresponding to the device information of the DTU hardware to be tested;

[0114] The adjustment subunit is used to dynamically adjust the test interface according to the control type and the control quantity.

[0115] Furthermore, the acquisition module includes an identification unit and a burning unit;

[0116] The identification unit is used to identify the hardware code of the DTU hardware on the test fixture through an identification device to determine whether the DTU hardware is the DTU hardware to be tested, and the hardware code is pre-pasted on the DTU hardware;

[0117] The burning unit is used to execute the step of burning the test firmware to the DTU hardware to be tested if the DTU hardware is the DTU hardware to be tested.

[0118] Further, the identification unit includes an acquisition subunit;

[0119] The acquisition subunit is used to acquire the image of the DTU hardware to be tested and store the image in the cloud server and the terminal locally.

[0120] Furthermore, the acquisition module also includes a setting unit and a sending unit;

[0121] The setting unit is used to set the label information corresponding to the DTU hardware to be tested;

[0122] The sending unit is used to send a printing instruction to a printing device, so that the printing device prints the label information according to the printing instruction.

[0123] The implementation of the functions of each module of the above-mentioned DTU hardware testing device is similar to the process in the above-mentioned method embodiment, and will not be repeated here one by one.

[0124] In addition, the present application also provides a terminal, which includes a memory, a processor, and a DTU hardware test program stored in the memory and running on the processor. When the terminal identifies the DTU hardware to be tested on the test tooling, it obtains the test firmware and burns the test firmware to the DTU hardware to be tested; after the burning is successful, a test instruction is sent to the DTU hardware to be tested, and different test tasks are selected according to the test instructions, so that the DTU hardware to be tested performs the corresponding test action based on the test task; after the test is completed, the target firmware and the set credential information are obtained, and the target firmware and the set credential information are written to the DTU hardware to be tested. By conducting full-link testing and configuration of the DTU hardware from the PCBA link to the factory state, user intervention is reduced and the test efficiency is improved. At the same time, all links of the PCBA from production to delivery are traceable, a reliable closed loop is achieved, and losses caused by abnormal hardware delivery are avoided. Furthermore, the DTU hardware test is integrated with the firmware writing and configuration before delivery to reduce errors caused by human factors, and at the same time, test cases can be reduced and production capacity can be improved.

[0125] In addition, the present application also provides a computer-readable storage medium, on which a DTU hardware test program is stored. When the DTU hardware test program is executed by a processor, the steps of the DTU hardware test method described above are implemented.

[0126] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0127] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0128] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0129] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0130] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The present application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0131] Although the optional embodiments of the present application have been described, those skilled in the art, once informed of the basic creative concept, may make additional changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including optional embodiments and all changes and modifications falling within the scope of the present application.

[0132] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A DTU hardware testing method, characterized in that: The method comprises: When the DTU hardware to be tested is identified on the test tool, the test firmware is obtained and burned into the DTU hardware to be tested; After the burning is successful, a test instruction is sent to the DTU hardware to be tested, and different test tasks are selected according to the test instruction, so that the DTU hardware to be tested performs corresponding test actions based on the test tasks; After the test is completed, the target firmware and the set credential information are obtained, and the target firmware and the set credential information are written into the DTU hardware to be tested; The step of selecting different test tasks according to the test instruction includes: The test tasks of the DTU hardware to be tested are selected and controlled through the holding registers in the Modbus protocol, wherein the test tasks include a watchdog test, a system clock test, a peripheral interface test, and a communication module test; The step of obtaining the test firmware and burning the test firmware to the DTU hardware to be tested includes: Acquire the device information of the DTU hardware to be tested, and select the corresponding test firmware according to the device information of the DTU hardware to be tested; Calling a program burning interface to burn the test firmware to the DTU hardware to be tested; After the step of sending a test instruction to the DTU hardware to be tested and selecting different test tasks according to the test instruction, the method further comprises: Get test results; Displaying the test results through a visualization page and sending the test results to a cloud server; Before the step of selecting the corresponding test firmware according to the device information of the DTU hardware to be tested, the method includes: Send a download request to the cloud server according to the device information of the DTU hardware to be tested; The test firmware is downloaded from the cloud server according to the download request.

2. The DTU hardware testing method according to claim 1, characterized in that: After the step of displaying the test result through a visualization page and sending the test result to a cloud server, the method further includes: Select the control type and the control quantity according to the test item corresponding to the device information of the DTU hardware to be tested; The test interface is dynamically adjusted according to the control type and the control quantity.

3. The DTU hardware testing method according to claim 1, characterized in that: Before the step of obtaining the test firmware and burning the test firmware to the DTU hardware to be tested when the DTU hardware to be tested is identified on the test tool, the method includes: Identify the hardware code of the DTU hardware on the test fixture by using an identification device to determine whether the DTU hardware is the DTU hardware to be tested, wherein the hardware code is pre-pasted on the DTU hardware; If the DTU hardware is the DTU hardware to be tested, the step of burning the test firmware to the DTU hardware to be tested is performed.

4. The DTU hardware testing method according to claim 3, characterized in that: After the step of identifying the hardware code of the DTU hardware on the test fixture by using the identification device, the method further includes: Obtain an image of the DTU hardware to be tested, and store the image in the cloud server and the terminal locally.

5. The DTU hardware testing method according to claim 1, characterized in that: After the test is completed, the step of obtaining the target firmware and the set credential information, and writing the target firmware and the set credential information into the DTU hardware to be tested includes: Set the label information corresponding to the DTU hardware to be tested; A printing instruction is sent to a printing device, so that the printing device prints the label information according to the printing instruction.

6. A terminal, characterized in that: The terminal includes a memory, a processor, and a DTU hardware test program stored in the memory and running on the processor. When the processor executes the DTU hardware test program, the steps of the DTU hardware test method according to any one of claims 1 to 5 are implemented.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a DTU hardware test program, and when the DTU hardware test program is executed by the processor, the steps of the DTU hardware test method according to any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Device and method for calibrating data processing apparatus

    CN101304542A

  • Method and system for testing PCBA board, test device and micro-control unit

    CN111143150A

  • Board card testing method and system based on Debian system

    CN111209150A

  • Finished product testing method and device and circuit board testing method and device

    CN111610427A

  • Hardware integration test method

    KR1019980025438A