CN114356673A - Mainboard test method and device - Google Patents

Mainboard test method and device Download PDF

Info

Publication number
CN114356673A
CN114356673A CN202111667702.1A CN202111667702A CN114356673A CN 114356673 A CN114356673 A CN 114356673A CN 202111667702 A CN202111667702 A CN 202111667702A CN 114356673 A CN114356673 A CN 114356673A
Authority
CN
China
Prior art keywords
tested
mainboard
test
configuration file
testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111667702.1A
Other languages
Chinese (zh)
Inventor
张晓旭
张丛丛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Zhidong Seiko Electronic Co ltd
Original Assignee
Qingdao Zhidong Seiko Electronic Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Zhidong Seiko Electronic Co ltd filed Critical Qingdao Zhidong Seiko Electronic Co ltd
Priority to CN202111667702.1A priority Critical patent/CN114356673A/en
Publication of CN114356673A publication Critical patent/CN114356673A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The application discloses a mainboard testing method and device, wherein the method is applied to an industrial personal computer, and the method comprises the following steps: acquiring a bar code of a mainboard to be tested; matching a configuration file for the mainboard to be tested according to the bar code of the mainboard to be tested; obtaining a test flow matched with the product type of the mainboard to be tested; and testing the mainboard to be tested according to the testing flow based on the configuration file and the testing file corresponding to the mainboard to be tested. According to the embodiment of the application, the configuration file is matched for the mainboard to be tested according to the bar code of the mainboard to be tested, the test flow of the mainboard to be tested can be set, the problems that the test efficiency is low and the flexibility of the test flow is insufficient due to the fact that the configuration file is compiled by the mainboard test, and the test efficiency and the flexibility of the test flow are improved.

Description

Mainboard test method and device
Technical Field
The present application relates to the field of test technologies, and in particular, to a method and an apparatus for controlling motherboard test.
Background
The mainboard of electronic equipment such as washing machine, refrigerator is an important component part of electronic equipment, and the quality of its quality directly influences electronic equipment's quality, consequently, no matter be mainboard manufacture producer or equipment manufacture factory, need detect the mainboard that the preparation was accomplished or need install the mainboard that uses usually, guarantee that mainboard circuit performance and function are qualified, even if equipment has come into use, when meetting the mainboard repair problem, also can detect the mainboard.
In the related mainboard test mode, a tester needs to set a configuration file for each mainboard to be tested, so that the efficiency is low; and the flexibility of the tester setting the test flow based on the type of the test mainboard is not enough.
Disclosure of Invention
The embodiment of the application provides a mainboard testing method and device, solves the problems of low mainboard testing efficiency and insufficient testing process flexibility, and improves the testing efficiency and the testing process flexibility.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to a first aspect of the embodiments of the present application, a motherboard testing method is provided, which is applied to an industrial personal computer, and the method includes:
acquiring a bar code of a mainboard to be tested;
matching a configuration file for the mainboard to be tested according to the bar code of the mainboard to be tested;
obtaining a test flow matched with the product type of the mainboard to be tested;
and testing the mainboard to be tested according to the testing flow based on the configuration file and the testing file corresponding to the mainboard to be tested.
In some embodiments of the present application, based on the foregoing scheme, the configuration file includes at least one of a model configuration file and a base configuration file;
the matching configuration file for the mainboard to be tested according to the bar code of the mainboard to be tested comprises the following steps:
if the cloud server contains the model configuration file matched with the mainboard to be tested, downloading the model configuration file from the cloud server to the industrial personal computer;
and if the cloud server does not contain the model configuration file matched with the mainboard to be tested, downloading the basic configuration file from the cloud server to the industrial personal computer.
In some embodiments of the present application, based on the foregoing solution, the method further comprises:
acquiring revision parameters corresponding to the model configuration file, and storing the revised model configuration file to the cloud server;
and acquiring revision parameters corresponding to the basic configuration file, storing the revised basic configuration file to the cloud server, and taking the revised basic configuration file as a model configuration file corresponding to the mainboard to be tested.
In some embodiments of the present application, based on the foregoing solution, the storing the revised model configuration file to the cloud server includes:
determining a partition factor according to the size of the revised model configuration file;
dividing the revised model configuration file according to the division factors to obtain a plurality of subfiles and generating MD5 values of the subfiles;
obtaining the offset address of each subfile, and mapping each subfile to a memory according to the offset address of each subfile;
sending the MD5 value of each subfile to the cloud server, and obtaining an MD5 matching result fed back by the cloud server, wherein the MD5 matching result comprises an MD5 value which is successfully matched and an MD5 value which is not successfully matched;
and storing the contents and offset addresses of the MD5 values which are not successfully matched and the corresponding subfiles thereof to the cloud server.
In some embodiments of the present application, based on the foregoing scheme, the obtaining a test procedure matched with a product type of the motherboard to be tested includes:
acquiring a selected test item of the mainboard to be tested and the sequence of the selected test item according to the product type of the mainboard to be tested and the corresponding selectable test item;
and assembling the selected test items according to the sequence of the selected test items to obtain the test flow of the mainboard to be tested.
In some embodiments of the application, based on the foregoing scheme, if the product type of the to-be-tested motherboard is a test motherboard to which no MAC is written, and the selected test item includes a written MAC and a password, the testing the to-be-tested motherboard according to the test flow based on the configuration file and the test file corresponding to the to-be-tested motherboard includes:
sending the bar code of the mainboard to be tested to a key writing upper computer through a handle message to trigger the key writing upper computer to write an MAC and a password into the mainboard to be tested;
inquiring the log of the key writing upper computer, and determining the writing result of the mainboard to be tested through the log;
if the writing result is writing failure, the key writing upper computer is triggered again to write the MAC and the password into the mainboard to be tested;
and if the writing result is successful, continuing to execute the subsequent selected test item in the test flow.
In some embodiments of the application, based on the foregoing scheme, if the selected test item includes a functional test, the testing the motherboard to be tested according to the test flow based on the configuration file and the test file corresponding to the motherboard to be tested includes:
if the current testing sub-item in the function test needs to compare the test results manually, the previous and the next testing sub-items of the current testing sub-item are locked within a preset time length after the current testing sub-item starts.
In some embodiments of the application, based on the foregoing scheme, if the selected test item includes a functional test, the testing the motherboard to be tested according to the test flow based on the configuration file and the test file corresponding to the motherboard to be tested includes:
sending a remote control code value corresponding to the function test to an infrared remote control board through a first serial port, so that the infrared remote control board sends the remote control code value to the mainboard to be tested, and the mainboard to be tested is tested; and
and sending a remote control instruction to the mainboard to be tested through the second serial port so as to test the mainboard to be tested, reading basic data of the mainboard to be tested through the second serial port, and taking the basic data as data to be compared in the function test.
In some embodiments of the present application, based on the foregoing solution, the method further comprises:
acquiring user rights, wherein the user rights comprise super administrator rights, administrator rights and common user rights;
if the user authority is the super administrator authority, opening the increasing, deleting, modifying and checking authority of the test file corresponding to the test flow;
if the user authority is the administrator authority, opening the increasing, changing and checking authority of the test file;
and if the user authority is the common user authority, closing the increasing, deleting, modifying and checking authority of the test file.
According to a second aspect of the embodiment of the application, a mainboard testing device is provided and is applied to an industrial personal computer, the device includes:
the bar code acquisition unit is used for acquiring a bar code of the mainboard to be tested;
the configuration file acquisition unit is used for matching a configuration file for the mainboard to be tested according to the bar code of the mainboard to be tested;
the test flow acquiring unit is used for acquiring a test flow matched with the product type of the mainboard to be tested;
and the testing unit is used for testing the mainboard to be tested according to the testing flow based on the configuration file and the testing file corresponding to the mainboard to be tested.
According to the embodiment of the application, the configuration file is matched for the mainboard to be tested according to the bar code of the mainboard to be tested, the test flow of the mainboard to be tested can be set, the problems that the test efficiency is low and the flexibility of the test flow is insufficient due to the fact that the configuration file is compiled by the mainboard test, and the test efficiency and the flexibility of the test flow are improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied.
Fig. 2 is a schematic flowchart of a motherboard testing method according to an embodiment of the present application.
Fig. 3 is a schematic flowchart of a method for uploading a configuration file fragment to a server according to an embodiment of the present application.
Fig. 4 is a schematic flowchart of another motherboard testing method according to an embodiment of the present application.
Fig. 5 is a serial port connection diagram of a motherboard to be tested according to an embodiment of the present application.
Fig. 6 is a schematic structural diagram of another motherboard testing device according to an embodiment of the present application.
Fig. 7 is a schematic diagram of an architecture design of a motherboard testing system according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
In the description of the present application, it is to be understood that the terms "second", "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, a feature defined as "second" or "first" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless otherwise specified.
The mainboard test method provided by the embodiment of the application can be applied to testing mainboards such as washing machines, televisions and air conditioners, and the mainboard test efficiency is improved.
Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied.
As shown in fig. 1, the system architecture may include a plurality of industrial computers 101, a network 102, and a server 103. Network 102 is used to provide a medium for a communication link between industrial personal computer 101 and server 103. The industrial personal computer 101 is connected to the server 103 through a network 102, which may include various connection types, such as a wired communication link, a wireless communication link, and the like.
The mainboard testing method provided by the embodiment of the application can be executed by an industrial personal computer, the configuration file for testing the mainboard is stored in the server, and the industrial personal computer can acquire the configuration file from the server.
It should also be noted that the number of industrial computers, networks and servers in fig. 1 is merely illustrative. According to implementation needs, the server may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a CDN (content distribution network), a big data and artificial intelligence platform, and the like. The terminal may be a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart television, and the like, but is not limited thereto, and the application is not limited thereto.
It should be explained that cloud computing (cloud computing) as above is a computing model that distributes computing tasks over a resource pool of a large number of computers, enabling various application systems to obtain computing power, storage space, and information services as needed. The network that provides the resources is referred to as the "cloud". Resources in the cloud can be infinitely expanded to users, and can be acquired at any time, used as required and expanded at any time. The cloud computing resource pool mainly comprises computing equipment (which is a virtualization machine and comprises an operating system), storage equipment and network equipment.
Fig. 2 is a schematic diagram of a motherboard testing method according to an embodiment of the present application. The mainboard testing method is applied to an industrial personal computer, and as shown in figure 2, the method at least comprises the following steps.
Step 210: and acquiring a bar code of the mainboard to be tested.
The mainboard test method can be executed by a test software system, the test software system is deployed in an industrial personal computer, test files which can be shared by different models of mainboards to be tested are stored in the industrial personal computer, but testers can compile different configuration files aiming at different mainboards to be tested, so that the mainboards to be tested can be tested in different ways. In specific implementation, when a tester opens a test file in a test system of an industrial personal computer, the system automatically pops up a code scanning dialog box, and the tester can use code scanning equipment to scan a bar code of a mainboard to be tested, so that the bar code of the mainboard to be tested can be obtained.
Step 220: and matching the configuration file for the mainboard to be tested according to the bar code of the mainboard to be tested.
The configuration file contains test parameters required by the operation of the test file, and can be stored in the cloud server or a local database. After the bar code of the mainboard to be tested is obtained, whether a configuration file corresponding to the model exists or not can be inquired in a cloud server or a local database according to the information of the model BOM (internal sales machine) or the order number (external sales machine) in the bar code. By utilizing the pre-stored configuration file, the work of writing the configuration file from the beginning of the local test personnel can be reduced, and the test efficiency is improved.
Step 230: and acquiring a test flow matched with the product type of the mainboard to be tested.
In specific implementation, a tester sets a test sequence of each test item of the mainboard to be tested according to the selectable test item of the product type of the mainboard to be tested, so that a test flow of the mainboard to be tested is formed, and the flexibility of the test flow is improved.
Step 240: and testing the mainboard to be tested according to the testing flow based on the configuration file and the testing file corresponding to the mainboard to be tested.
The test file is a basic test file stored in the local industrial personal computer and comprises execution codes of all selectable test items, and after the configuration file and the test flow are obtained, the execution codes and the configuration file of all the test items in the test file can be called according to the sequence of all the test items in the test flow to test the mainboard to be tested.
According to the embodiment of the application, the configuration file is matched for the mainboard to be tested according to the bar code of the mainboard to be tested, the test flow of the mainboard to be tested can be set, the problems that the test efficiency is low and the flexibility of the test flow is insufficient due to the fact that the configuration file is compiled by oneself in the mainboard test are solved, and the test efficiency and the flexibility of the test flow are improved.
In some embodiments of the present application, based on the foregoing scheme, the configuration file includes at least one of a model configuration file and a base configuration file;
matching a configuration file for the mainboard to be tested according to the bar code of the mainboard to be tested, comprising:
if the cloud server contains the machine type configuration file matched with the mainboard to be tested, downloading the machine type configuration file from the cloud server to the industrial personal computer;
and if the cloud server does not contain the model configuration file matched with the mainboard to be tested, downloading the basic configuration file from the cloud server to the industrial personal computer.
In specific implementation, if the cloud server contains a model configuration file matched with the mainboard to be tested, the configuration file is directly called to a test interface of the industrial personal computer by the server, a tester can be used for testing after finely adjusting parameters of the configuration file, and the modified configuration file can be stored locally in the industrial personal computer as a unique test scheme.
It should be noted that, when the configuration file matched with the mainboard to be tested is matched in the cloud server, a keyword fuzzy matching mode can be adopted, and the barcode of the mainboard to be tested is used as a keyword, and fuzzy matching is performed in a large number of configuration files to obtain the configuration file matched with the mainboard to be tested.
If the cloud server does not contain the model configuration file matched with the mainboard to be tested, the basic configuration file is called to a configuration interface, a tester modifies the basic configuration file according to the SOP test rule corresponding to the model of the mainboard to be tested and can be used for testing, and the modified basic configuration file can be stored locally in the industrial personal computer as a unique test scheme.
When the test system is started on the industrial personal computer again, the system can load a local test scheme by default. When the configuration files and the basic configuration files are stored in a cloud storage mode and a local storage mode in parallel, a standard test scheme can be guaranteed for each machine type or each order, time for a tester to write the configuration files is saved, and a unique test scheme is locally stored, so that the test scheme of each industrial personal computer is optimally matched with the industrial personal computer, and the optimal test scheme stored by the current industrial personal computer is realized.
It should be emphasized that, although the system may default to loading the local test scheme when the test system is started on the industrial personal computer again, in order to ensure that the local test scheme is matched with the next mainboard to be tested, the tester needs to scan the bar code of the next mainboard to be tested again, and compare and check the bar code with the model BOM (internal sales machine) or order number (external sales machine) information in the name of the local test scheme, if the two are consistent, the local test scheme can be used to directly test, otherwise, the tester is reminded to change the test scheme.
In some embodiments of the present application, based on the foregoing solution, the motherboard testing method further includes:
acquiring revision parameters corresponding to the model configuration file, and storing the revised model configuration file to a cloud server;
and acquiring revision parameters corresponding to the basic configuration file, storing the revised basic configuration file to the cloud server, and taking the revised basic configuration file as a model configuration file corresponding to the mainboard to be tested.
The tester can store the revised model configuration file or the basic configuration file to the cloud server, and the revised basic configuration file is stored in the cloud server as the configuration file of the model, so that the sharing of the configuration file can be realized, and the time for the tester to edit the configuration file is further saved.
Note that when uploading a revised model configuration file or a revised basic configuration file (hereinafter, both configuration files are collectively referred to as a revised configuration file) to a cloud service, the entire configuration file may be directly uploaded to a cloud server or the configuration files may be uploaded to the cloud server in pieces.
Fig. 3 is a schematic flowchart of a method for uploading a configuration file fragment to a server according to an embodiment of the present application. The method is applied to an industrial personal computer, and as shown in fig. 3, the method for uploading the configuration file fragments to the server at least comprises the following steps.
Step 310: the partitioning factor is determined based on the size of the revised configuration file.
The larger the revised profile, the larger the splitting factor, i.e. the greater the number of pieces the revised profile is to be split into.
Step 320: the revised configuration file is partitioned according to the partition factor to obtain a plurality of subfiles, and MD5 values for each subfile are generated.
In a specific implementation, the configuration file may be divided evenly according to the division factor to obtain a plurality of subfiles, and each subfile has its unique MD5 value, i.e. file tag, for ensuring consistency of transmission of each subfile.
Step 330: and acquiring the offset address of each subfile, and mapping each subfile to the memory according to the offset address of each subfile.
The offset address can be used as an index of the subfile, and a plurality of subfiles can be recombined into a complete configuration file through the offset address. And mapping each subfile to a memory so as to establish mapping between a certain area of a process virtual address space and each subfile on a disk, and after the mapping is established, directly accessing the mapped disk file through the area without executing file I/O operation or buffering the file content, so that the processing of each subfile can be accelerated.
Step 340: and sending the MD5 values corresponding to the sub files to a cloud server, and acquiring MD5 matching results fed back by the server, wherein the MD5 matching results comprise successfully matched MD5 values and unsuccessfully matched MD5 values.
The feedback result of the server comprises a successfully matched MD5 value, namely the same MD5 value already stored in the cloud server; and the MD5 value for which the match was not successful. The configuration files of different main boards have a large number of same parts, and the same parts of the configuration files of different main boards have the same MD5 value, so that a large number of files with the same MD5 value are stored in the server in the process of continuously uploading and modifying the configuration files, and the server side retrieves the database after receiving the MD5 values of all sub-files sent by the industrial personal computer, so that the sub-files with the same MD5 value are not uploaded in an overlapping mode.
Step 350: and storing the contents and offset addresses of the MD5 values which are not matched successfully and the corresponding subfiles thereof to the cloud server.
In specific implementation, the file name of the revised configuration file can be used as a main key to store the successfully matched MD5 value and the corresponding offset thereof, and the unsuccessfully matched MD5 value and the content and offset address of the corresponding subfile to the cloud server, so that the storage of the revised configuration file in the server is lighter, and the file content corresponding to all the subfiles does not need to be stored.
According to the embodiment of the application, repeated uploading of the same subfile is reduced by matching the MD5 value of the subfile, and the industrial personal computer only uploads the file content of the subfile corresponding to the MD5 value which does not exist in the server, so that the uploading speed of the configuration file after revision of the industrial personal computer end is increased on the contrary under the condition that more and more configuration files exist in the server, and the storage capacity of the server end is reduced.
Correspondingly, when the industrial personal computer downloads the configuration file from the cloud server, only after the configuration file is matched according to the bar code of the mainboard to be tested, the file content of each subfile under the main key corresponding to the matched configuration file, the corresponding MD5 value and the offset address are downloaded to the local, and the subfiles are recombined according to the offset addresses of the subfiles, so that the complete configuration file can be obtained.
In some embodiments of the present application, based on the foregoing scheme, obtaining a test flow matched with a product type of a motherboard to be tested includes:
acquiring a selected test item and a sequence of the selected test item of the mainboard to be tested according to the product type of the mainboard to be tested and the corresponding selectable test item;
and assembling the selected test items according to the sequence of the selected test items to obtain the test flow of the mainboard to be tested.
In specific implementation, different product types correspond to different selectable test items, and a tester can select among the selectable test items and set the sequence of the selected test items. The product types of the mainboard to be tested comprise a test mainboard with written MAC and a test mainboard without written MAC. The test board to which the MAC has been written means that the MAC address has been written therein, and the test board to which the MAC has not been written means that the MAC address has not been written therein.
Optional test items of the test mainboard with the written MAC comprise an MAC check item, a check result uploading MES item and a function test item; optional test items of the test mainboard without writing the MAC comprise writing the MAC and the password item, uploading a writing result to an MES item and a functional test item. The MES is a manufacturing execution management system and is used for controlling the test flow and storing test result data; the password is the password for logging in the mainboard subsequently.
For example, if the product type of the mainboard to be tested is toshiba and the MAC address and the login password are already written into the mainboard of the type, the operation of writing the MAC and the password is not needed, only the MAC verification and the function test are needed, and after the test is finished, the key-writing upper computer uploads the test result to the MES system. If the product type of the main board to be tested is not Toshiba, a tester can automatically select whether to write MAC or not and whether to upload the verification result to MES, and automatically design the test flow of the test sub-items in the function test, for example, for the function test of a television, the test sub-items comprise: and testing the sub-functions of volume adjustment, channel adjustment and the like.
Before the key writing host computer interacts with the key writing host computer to write the MAC, the password or the MAC check, a tester needs to scan the bar code to correspond the bar code of the mainboard to be tested with the MAC writing result or the MAC check result; when the verification result is uploaded to the MES during interaction with the MES, the code needs to be scanned again to correspond the verification result to the bar code of the mainboard to be tested.
Fig. 4 is a schematic flowchart of a motherboard testing method according to an embodiment of the present application, and as shown in fig. 4, the testing process includes the following steps.
Step 410: and judging whether the mainboard to be tested is the Toshiba product.
Step 420: and if the product type of the mainboard to be tested is Toshiba, checking whether code scanning operation exists.
In the specific implementation, the test personnel scans the bar code of the mainboard to be tested.
Step 430: if the code scanning operation is detected, the bar code is sent to a key writing upper computer, and MAC verification is carried out on the mainboard to be tested; if no code scanning operation is detected, step 440 is performed.
Step 440: and executing functional test.
Step 450: if the MAC check is successful, step 440 is executed, and if the MAC check fails, the code is scanned again, and the MAC check is performed again.
Step 460: and if the product type of the mainboard to be tested is not Toshiba, checking whether code scanning operation exists.
Step 470: if the currently selected test item is the write MAC, sending the bar code to a write key upper computer to write the MAC into the mainboard to be tested; if the currently selected test item is not a write MAC, go to step 480; and if the MAC write is successful, go to step 480; if the MAC write fails, step 460 is re-executed.
Step 480: and executing functional test.
Step 490: and after the functional test is finished, judging whether the currently selected test item is a verification result and uploading the verification result to the MES.
Step 4100: and if the currently selected test item is the check result and is uploaded to the MES, scanning the code again and uploading the check result to the MES.
In some embodiments of the present application, based on the foregoing scheme, if the product type of the to-be-tested motherboard is a test motherboard to which the MAC is not written, and the selected test item includes writing the MAC and the password, the testing of the to-be-tested motherboard according to the test flow based on the configuration file and the test file corresponding to the to-be-tested motherboard includes:
sending the bar code of the mainboard to be tested to a key writing upper computer through the handle message to trigger the key writing upper computer to write the MAC and the password into the mainboard to be tested;
inquiring a log of the key writing upper computer, and determining a writing result of the mainboard to be tested through the log;
if the writing result is writing failure, the key writing upper computer is triggered again to write the MAC and the password into the mainboard to be tested;
if the writing result is successful, the subsequent selected test items in the test flow are continuously executed.
In the embodiment of the application, in order to ensure the consistency of writing MAC and password functions of each industrial personal computer and realize timely updating of the functions, the writing MAC and password functions can be independently realized, the writing MAC and password functions of each industrial personal computer are realized through the shared key writing upper computer, and each industrial personal computer only needs to call the key writing upper computer.
In specific implementation, after the bar code is obtained, the bar code can be transmitted to a key writing upper computer through a handle message carried by Windows, and the key writing upper computer performs MAC and password writing operation according to a normal flow. In order to ensure that the writing of the MAC and the password is successful, a test system in the industrial personal computer can inquire the log information of the key writing upper computer in real time, judge whether the writing of the MAC and the password is successful or not rapidly according to the log information, and then determine whether the writing of the MAC and the password to the mainboard to be tested is needed again or not according to the judgment result.
In some embodiments of the application, based on the foregoing scheme, if the selected test item includes a functional test, the testing the motherboard to be tested according to a test flow based on the configuration file and the test file corresponding to the motherboard to be tested includes:
if the current testing sub-item in the function test needs to compare the test results manually, the previous and the next testing sub-items of the current testing sub-item are locked within the preset time length after the current testing sub-item starts.
The embodiment of the application performs fool-proof processing in the testing process. In the testing process, in order to ensure that a tester strictly tests according to a designed testing process step by step and avoid missing testing of the tester, a forced waiting time is set for a testing sub-item needing to compare a testing result manually, if the testing time of the current testing sub-item does not reach the forced waiting time, the tester cannot test other testing sub-items, namely, when the tester clicks the next or previous testing operation in an interactive interface of a testing system, the previous and the next testing sub-items of the current testing sub-item are locked (for example, an infrared remote control board is in a locked state and cannot send a testing instruction corresponding to the previous or the next testing sub-item to a main board to be tested), and the tester is ensured to check the testing result of the current testing sub-item as far as possible.
In some embodiments of the application, based on the foregoing scheme, if the selected test item includes a functional test, the testing the motherboard to be tested according to a test flow based on the configuration file and the test file corresponding to the motherboard to be tested includes:
the remote control code value corresponding to the function test is sent to the infrared remote control board through the first serial port, so that the infrared remote control board sends the remote control code value to the mainboard to be tested, and the mainboard to be tested is tested; and
and sending the remote control instruction to the mainboard to be tested through the second serial port so as to test the mainboard to be tested, reading basic data of the mainboard to be tested through the second serial port, and taking the basic data as data to be compared in the function test.
When testing the mainboard to be tested, the testing instruction about the remote control function (for example, the television needs to have remote control functions of remote control on/off, volume adjustment, channel switching and the like, and the air conditioner needs to have remote control functions of remote control on/off, temperature adjustment and the like) needs to use an infrared remote control mode to transmit the mainboard to be tested, so as to test the remote control function of the mainboard, however, the testing instruction of some special functions is transmitted to the mainboard to be tested in a serial port mode more conveniently, in order to ensure the effective performance of the remote control function and some special function tests of the mainboard to be tested, in the embodiment of the application, the testing instruction is transmitted in two modes of infrared and serial port simultaneously, so as to control the mainboard to be tested, and the two modes both contain all options required by the function tests.
In specific implementation, the infrared mode supports two encoding formats, namely NEC/RC5, and sends a corresponding remote control code value to the infrared remote control board according to the remote control code value configured in the test file and the infrared encoding format, for example, sends a remote control code value corresponding to the volume adjustment of the television to the infrared remote control board. The infrared remote control board and the industrial personal computer can be connected through a D-Sub9 needle interface, and the communication form is RS 232. The infrared remote control board receives the back remote control code value, sends the remote control code value to the mainboard that awaits measuring to the control mainboard carries out the function test according to the remote control code value, for example the mainboard that infrared remote control board control TV set corresponds adjusts the volume.
In specific implementation, partial function test of the mainboard is simpler and more convenient through the serial port, for example, when the mainboard is prefabricated with signals, at least 5 infrared remote control code values are needed to be prefabricated successfully, the corresponding infrared remote control board also needs to send the remote control code values to the mainboard to be tested for at least 5 times, the test efficiency is not high, but when the serial port is used for transmitting the remote control command, one remote control command can be prefabricated successfully. After the industrial personal computer sends the remote control command through the serial port, the mainboard to be tested returns a corresponding command according to the rule after successfully receiving the command, and whether the remote control is successful or failed can be judged by analyzing the returned command value. In addition, the industrial personal computer can also read physical data in the mainboard to be tested through a control instruction sent by the serial port, such as the number of USB, MAC address, IP address and the like. The tester can set a physical data comparison test item in some test items in the test process, and when the test item is carried out, the test result of the physical data can be automatically judged by analyzing the returned physical data of the mainboard to be tested and comparing the returned physical data with the preset physical data.
It should be noted that, when the mainboard to be tested and the industrial personal computer transmit the remote control command in a serial port mode, and the mainboard to be tested and the key writing upper computer communicate through the serial port, so as to realize MAC verification or MAC and password writing, if only one serial port interface is provided in the mainboard to be tested, both the remote control command transmission through the serial port and the key writing upper computer interaction through the serial port cannot be performed simultaneously.
In specific implementation, the above problem can be solved by two software or hardware solutions, for example, by using a complete function of a Virtual Serial Port Driver Pro software, two inputs (an industrial control machine end) and one output (a to-be-tested mainboard end) are realized, and the problem that the to-be-tested mainboard end only has one Serial Port can be solved by the software; or as shown in fig. 5, an RS232 serial port distributor is externally connected to the industrial personal computer, and the serial port interface of the main board end to be tested is shared by the key writing upper computer and the industrial personal computer through two female-female crossed lines (two ends of one crossed line are respectively connected with the industrial personal computer and the serial port distributor, two ends of the other crossed line are respectively connected with the key writing upper computer and the serial port distributor) and one male-female crossed line (one end is connected with the serial port distributor and the other end is connected with the main board to be tested), so that the problem that the main board end to be tested only has one serial port interface is solved in a hardware manner.
It is worth noting that, as mentioned above, the industrial personal computer needs to be connected with peripheral devices such as a server, an MES, a key writing upper computer, a scanning device, and the like, so that it is necessary to ensure that the test software system and each peripheral device communication interface operate normally. The test software system can firstly carry out communication state self-checking when being started, and carries out handshake interaction with each peripheral device by adopting a corresponding communication protocol, thereby determining the identities of the two parties, verifying the communication connection condition, ensuring the reliable hardware connection and simultaneously ensuring the correctness of the communication protocol. And if communication abnormality of a certain communication interface is found in the handshaking interaction process, prompting information aiming at the abnormal communication interface is carried out so as to facilitate field personnel to troubleshoot the fault. For example, the industrial personal computer and the key writing upper computer adopt RS232 serial port communication, and if the serial port communication is abnormal in the handshaking interaction process, the test software system generates prompt information of the serial port communication abnormality.
In some embodiments of the present application, based on the foregoing solution, the motherboard testing method further includes:
acquiring user rights, wherein the user rights comprise super administrator rights, administrator rights and common user rights;
if the user authority is the super administrator authority, opening the addition, deletion, modification and check authority of the test file corresponding to the test flow;
if the user authority is the administrator authority, opening the increasing, changing and checking authority of the test file;
and if the user authority is the common user authority, closing the increasing, deleting, modifying and checking authority of the test file.
In the embodiment of the application, three kinds of authorities, namely a super administrator, an administrator and a user, can be set in the test software system. The user role is aimed at field testers, and only has the operation authority of a test main interface of a test system in the industrial personal computer, namely, the test system in the industrial personal computer can be only used for testing, a test file cannot be operated, and a user cannot be newly built; the administrator role aims at the line length and the segment length of a production line, can add and edit the test file, but cannot delete the test file, only can newly build a common user role, and cannot newly build the administrator role; the role of the super manager aims at field process personnel, has all the authority of increasing, deleting, modifying and checking the test file, and can establish a new manager role and a new super manager role. It should be noted that in the implementation, all operation records of the hypervisor, the administrator, and the user may be stored in the database, so as to trace the change information of the test file.
In the following, embodiments of an apparatus for performing the above-mentioned motherboard testing method are described, and please refer to the embodiments of the above-mentioned motherboard testing method for details that are not disclosed in the motherboard testing apparatus.
Fig. 6 is a schematic structural diagram of a motherboard testing apparatus according to an embodiment of the present application, and as shown in fig. 4, the motherboard testing apparatus 600 at least includes the following components.
The barcode acquiring unit 610 is configured to acquire a barcode of a motherboard to be tested.
The configuration file obtaining unit 620 is configured to match a configuration file for the motherboard to be tested according to the barcode of the motherboard to be tested.
The test flow obtaining unit 630 is configured to obtain a test flow matched with a product type of the motherboard to be tested.
The testing unit 640 is configured to test the motherboard to be tested according to a testing process based on the configuration file and the testing file corresponding to the motherboard to be tested.
In some embodiments of the present application, based on the foregoing scheme, the configuration file includes at least one of a model configuration file and a base configuration file;
the configuration file acquisition unit is configured to:
if the cloud server contains the machine type configuration file matched with the mainboard to be tested, downloading the machine type configuration file from the cloud server to the industrial personal computer;
and if the cloud server does not contain the model configuration file matched with the mainboard to be tested, downloading the basic configuration file from the cloud server to the industrial personal computer.
In some embodiments of the present application, based on the foregoing solution, the motherboard testing apparatus further includes:
the machine type configuration file storage unit is used for acquiring revision parameters corresponding to the machine type configuration file and storing the revised machine type configuration file to the cloud server;
the model configuration file storage unit is further used for acquiring revision parameters corresponding to the basic configuration file, storing the revised basic configuration file to the cloud server, and taking the revised basic configuration file as the model configuration file corresponding to the mainboard to be tested.
In some embodiments of the present application, based on the foregoing solution, the test flow acquiring unit is configured to:
acquiring a selected test item and a sequence of the selected test item of the mainboard to be tested according to the product type of the mainboard to be tested and the corresponding selectable test item;
and assembling the selected test items according to the sequence of the selected test items to obtain the test flow of the mainboard to be tested.
In some embodiments of the present application, based on the foregoing solution, if the product type of the motherboard to be tested is a test motherboard without writing MAC, and the selected test item includes writing MAC and password, the test unit is configured to:
sending the bar code of the mainboard to be tested to a key writing upper computer through the handle message to trigger the key writing upper computer to write the MAC and the password into the mainboard to be tested;
inquiring a log of the key writing upper computer, and determining a writing result of the mainboard to be tested through the log;
if the writing result is writing failure, the key writing upper computer is triggered again to write the MAC and the password into the mainboard to be tested;
if the writing result is successful, the subsequent selected test items in the test flow are continuously executed.
In some embodiments of the present application, based on the foregoing solution, if the selected test item includes a functional test, the test unit is configured to:
if the current testing sub-item in the function test needs to compare the test results manually, the previous and the next testing sub-items of the current testing sub-item are locked within the preset time length after the current testing sub-item starts.
In some embodiments of the present application, based on the foregoing solution, if the selected test item includes a functional test, the test unit is configured to:
the remote control code value corresponding to the function test is sent to the infrared remote control board through the first serial port, so that the infrared remote control board sends the remote control code value to the mainboard to be tested, and the mainboard to be tested is tested; and
and sending the remote control instruction to the mainboard to be tested through the second serial port so as to test the mainboard to be tested, reading basic data of the mainboard to be tested through the second serial port, and taking the basic data as data to be compared in the function test.
In some embodiments of the present application, based on the foregoing solution, the motherboard testing apparatus further includes a user right management unit, and the user right management unit is configured to:
acquiring user rights, wherein the user rights comprise super administrator rights, administrator rights and common user rights;
if the user authority is the super administrator authority, opening the addition, deletion, modification and check authority of the test file corresponding to the test flow;
if the user authority is the administrator authority, opening the increasing, changing and checking authority of the test file;
and if the user authority is the common user authority, closing the increasing, deleting, modifying and checking authority of the test file.
The embodiment of the application also provides a mainboard test system which comprises the industrial personal computer, the key writing upper computer and the infrared remote control board;
the industrial personal computer is connected with the mainboard to be tested and used for testing the mainboard to be tested;
the key writing upper computer is respectively connected with the industrial personal computer and the mainboard to be tested and is used for writing the MAC and the password into the mainboard to be tested according to the control of the industrial personal computer;
and the infrared remote control board is respectively connected with the industrial personal computer and the mainboard to be tested and is used for forwarding the remote control code sent by the industrial personal computer to the mainboard to be tested.
Fig. 7 is a schematic diagram of an architecture design of a motherboard testing system according to an embodiment of the present application, and as shown in fig. 7, the motherboard testing system can be divided into the following layers according to functional division.
The platform layer comprises a key writing upper computer which is independently taken out from the industrial personal computers, the key writing upper computer of the platform layer shared by the plurality of industrial personal computers is realized, and the MAC and the password are written into the mainboard to be tested.
And the data management layer comprises a cloud server and an MES, and is used for storing a configuration file and a test result required by the test respectively.
The service layer is at least a remote control code value matching module and is used for matching the received remote control code value with a prestored operation instruction so as to obtain an operation instruction corresponding to the remote control code value and executing the operation instruction for testing; and the user role management module is used for managing the operation authority of users with different roles.
And the display layer comprises a system GUI (graphical user interface), so that testers can conveniently select the product type of the mainboard to be tested, revise the configuration file, select optional test items and the like through a GUI visual operation interface.
The embodiments of the present application further provide a storage medium, which includes a program or an instruction, and when the program or the instruction is executed, the storage medium is used to execute a motherboard testing method and any optional method provided in the embodiments of the present application.
Finally, it should be noted that: as will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A mainboard test method is characterized by being applied to an industrial personal computer, and comprises the following steps:
acquiring a bar code of a mainboard to be tested;
matching a configuration file for the mainboard to be tested according to the bar code of the mainboard to be tested;
obtaining a test flow matched with the product type of the mainboard to be tested;
and testing the mainboard to be tested according to the testing flow based on the configuration file and the testing file corresponding to the mainboard to be tested.
2. A motherboard testing method as recited in claim 1, wherein the configuration file comprises at least one of a model configuration file and a base configuration file;
the matching configuration file for the mainboard to be tested according to the bar code of the mainboard to be tested comprises the following steps:
if the cloud server contains the model configuration file matched with the mainboard to be tested, downloading the model configuration file from the cloud server to the industrial personal computer;
and if the cloud server does not contain the model configuration file matched with the mainboard to be tested, downloading the basic configuration file from the cloud server to the industrial personal computer.
3. A motherboard testing method as recited in claim 2, said method further comprising:
acquiring revision parameters corresponding to the model configuration file, and storing the revised model configuration file to the cloud server;
and acquiring revision parameters corresponding to the basic configuration file, storing the revised basic configuration file to the cloud server, and taking the revised basic configuration file as a model configuration file corresponding to the mainboard to be tested.
4. A motherboard testing method as recited in claim 3, wherein the storing the revised model configuration file to the cloud server comprises:
determining a partition factor according to the size of the revised model configuration file;
dividing the revised model configuration file according to the division factors to obtain a plurality of subfiles and generating MD5 values of the subfiles;
obtaining the offset address of each subfile, and mapping each subfile to a memory according to the offset address of each subfile;
sending the MD5 value of each subfile to the cloud server, and obtaining an MD5 matching result fed back by the cloud server, wherein the MD5 matching result comprises an MD5 value which is successfully matched and an MD5 value which is not successfully matched;
and storing the contents and offset addresses of the MD5 values which are not successfully matched and the corresponding subfiles thereof to the cloud server.
5. The method for testing a motherboard according to claim 1, wherein the obtaining of the test flow matched with the product type of the motherboard to be tested comprises:
acquiring a selected test item of the mainboard to be tested and the sequence of the selected test item according to the product type of the mainboard to be tested and the corresponding selectable test item;
and assembling the selected test items according to the sequence of the selected test items to obtain the test flow of the mainboard to be tested.
6. The method for testing a motherboard according to claim 5, wherein if the product type of the motherboard to be tested is a test motherboard without writing MAC and the selected test item includes writing MAC and password, the testing the motherboard to be tested according to the test flow based on the configuration file and the test file corresponding to the motherboard to be tested comprises:
sending the bar code of the mainboard to be tested to a key writing upper computer through a handle message to trigger the key writing upper computer to write an MAC and a password into the mainboard to be tested;
inquiring the log of the key writing upper computer, and determining the writing result of the mainboard to be tested through the log;
if the writing result is writing failure, the key writing upper computer is triggered again to write the MAC and the password into the mainboard to be tested;
and if the writing result is successful, continuing to execute the subsequent selected test item in the test flow.
7. The method for testing a motherboard according to claim 5, wherein if the selected test item includes a functional test, the testing the motherboard to be tested according to the test flow based on the configuration file and the test file corresponding to the motherboard to be tested comprises:
if the current testing sub-item in the function test needs to compare the test results manually, the previous and the next testing sub-items of the current testing sub-item are locked within a preset time length after the current testing sub-item starts.
8. The method for testing a motherboard according to claim 5, wherein if the selected test item includes a functional test, the testing the motherboard to be tested according to the test flow based on the configuration file and the test file corresponding to the motherboard to be tested comprises:
sending a remote control code value corresponding to the function test to an infrared remote control board through a first serial port, so that the infrared remote control board sends the remote control code value to the mainboard to be tested, and the mainboard to be tested is tested; and
and sending a remote control instruction to the mainboard to be tested through the second serial port so as to test the mainboard to be tested, reading basic data of the mainboard to be tested through the second serial port, and taking the basic data as data to be compared in the function test.
9. A motherboard testing method as recited in claim 1, said method further comprising:
acquiring user rights, wherein the user rights comprise super administrator rights, administrator rights and common user rights;
if the user authority is the super administrator authority, opening the increasing, deleting, modifying and checking authority of the test file corresponding to the test flow;
if the user authority is the administrator authority, opening the increasing, changing and checking authority of the test file;
and if the user authority is the common user authority, closing the increasing, deleting, modifying and checking authority of the test file.
10. The utility model provides a mainboard testing arrangement, its characterized in that is applied to the industrial computer, the device includes:
the bar code acquisition unit is used for acquiring a bar code of the mainboard to be tested;
the configuration file acquisition unit is used for matching a configuration file for the mainboard to be tested according to the bar code of the mainboard to be tested;
the test flow acquiring unit is used for acquiring a test flow matched with the product type of the mainboard to be tested;
and the testing unit is used for testing the mainboard to be tested according to the testing flow based on the configuration file and the testing file corresponding to the mainboard to be tested.
CN202111667702.1A 2021-12-30 2021-12-30 Mainboard test method and device Pending CN114356673A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111667702.1A CN114356673A (en) 2021-12-30 2021-12-30 Mainboard test method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111667702.1A CN114356673A (en) 2021-12-30 2021-12-30 Mainboard test method and device

Publications (1)

Publication Number Publication Date
CN114356673A true CN114356673A (en) 2022-04-15

Family

ID=81104996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111667702.1A Pending CN114356673A (en) 2021-12-30 2021-12-30 Mainboard test method and device

Country Status (1)

Country Link
CN (1) CN114356673A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760466A (en) * 2022-04-19 2022-07-15 深圳创维-Rgb电子有限公司 Display device testing method and device and storage medium
CN114815923A (en) * 2022-04-18 2022-07-29 重庆海尔热水器有限公司 Water heater automatic production control method, device and system and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114815923A (en) * 2022-04-18 2022-07-29 重庆海尔热水器有限公司 Water heater automatic production control method, device and system and storage medium
CN114760466A (en) * 2022-04-19 2022-07-15 深圳创维-Rgb电子有限公司 Display device testing method and device and storage medium

Similar Documents

Publication Publication Date Title
US20200004660A1 (en) Systems and methods of integrated testing and deployment in a continuous integration continuous deployment (cicd) system
CN114356673A (en) Mainboard test method and device
US20180285099A1 (en) Systems, methods, and apparatus for migrating code to a target environment
CN110933189A (en) Fabric-based block chain network deployment method, device, equipment and medium
CN112799782B (en) Model generation system, method, electronic device and storage medium
CN106406980B (en) A kind of dispositions method and device of virtual machine
CN116266296A (en) Production test method and device for base station product
CN113094251B (en) Method and device for testing embedded system, computer equipment and storage medium
CN112114897A (en) Parameter configuration method and device based on industrial control screen and computer equipment
CN118369659A (en) Techniques for building and validating database software in a shared management environment
CN118394425A (en) Application starting operation method, application starting operation device and computing equipment
CN110515924A (en) Database manipulation logic verify method, apparatus, equipment and readable storage medium storing program for executing
CN115129574A (en) Code testing method and device
CN117519046A (en) Industrial sequence control system and method based on BPMN standard
US12003594B2 (en) Systems and methods for network discovery in a multi-layer operational technology network
CN116483416A (en) Firmware online upgrading method, server and storage medium
CN112015715A (en) Industrial Internet data management service testing method and system
CN112732280B (en) Personal habit data management system for computer users
CN118132450B (en) Management method and system for Windows integrated test environment
CN116614323B (en) Cloud storage enterprise network management method and system based on Rclone
CN116743566B (en) Network access method, device and computer storage medium
CN107967366A (en) File management method, USB flash disk and computer-readable recording medium
CN113886780B (en) Client information verification method, device, medium and electronic equipment
JP4827024B2 (en) Server monitoring system and method
CN118796206A (en) Construction method of environment deployment tool, environment deployment method and device

Legal Events

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