CN115988096A - Method, system, equipment and medium for reporting test data of electronic equipment - Google Patents

Method, system, equipment and medium for reporting test data of electronic equipment Download PDF

Info

Publication number
CN115988096A
CN115988096A CN202211488418.2A CN202211488418A CN115988096A CN 115988096 A CN115988096 A CN 115988096A CN 202211488418 A CN202211488418 A CN 202211488418A CN 115988096 A CN115988096 A CN 115988096A
Authority
CN
China
Prior art keywords
data
test
json
test data
protocol
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
CN202211488418.2A
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.)
Fujian Newland Communication Science Technologies Co ltd
Original Assignee
Fujian Newland Communication Science Technologies 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 Fujian Newland Communication Science Technologies Co ltd filed Critical Fujian Newland Communication Science Technologies Co ltd
Priority to CN202211488418.2A priority Critical patent/CN115988096A/en
Publication of CN115988096A publication Critical patent/CN115988096A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Maintenance And Management Of Digital Transmission (AREA)

Abstract

The invention provides a method, a system, equipment and a medium for reporting test data of electronic equipment in the technical field of factory test of the electronic equipment, wherein the method comprises the following steps: s10, setting a JSON protocol for acquiring test data; step S20, converting test data generated by testing electronic equipment by each test device into JSON data based on the JSON protocol, and converting the JSON data into byte data; step S30, the byte data is sent to a server through a TCP protocol; and S40, converting the received byte data into JSON data by the server, analyzing the JSON data to obtain test data, and storing each test data into a pre-established database. The invention has the advantages that: the reliability of the electronic equipment test is greatly improved.

Description

Method, system, equipment and medium for reporting test data of electronic equipment
Technical Field
The present invention relates to the field of electronic device delivery testing technologies, and in particular, to a method, a system, a device, and a medium for reporting test data of an electronic device.
Background
After the electronic equipment is produced, the electronic equipment needs to be subjected to related delivery tests, the delivery tests relate to more test items, different test items need to use different test equipment, the test equipment is often from different manufacturers, different processing systems and processing schemes exist for generated test data, namely, no unified standard is available for reporting the test data, the test data can be checked only in a manual checking mode, so that the electronic equipment with partial test failures cannot be screened, and the reject ratio of the electronic equipment is increased.
Therefore, how to provide a method, a system, a device and a medium for reporting test data of an electronic device to improve the reliability of testing the electronic device becomes a technical problem to be solved urgently.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, a system, a device and a medium for reporting test data of an electronic device, so as to improve the reliability of the test of the electronic device.
In a first aspect, the present invention provides a method for reporting test data of an electronic device, including the following steps:
s10, setting a JSON protocol for acquiring test data;
step S20, converting test data generated by testing electronic equipment by each test device into JSON data based on the JSON protocol, and converting the JSON data into byte data;
step S30, the byte data is sent to a server through a TCP protocol;
and S40, converting the received byte data into JSON data by the server, analyzing the JSON data to obtain test data, and storing each test data into a pre-established database.
Further, in the step S10, the JSON protocol at least includes a device number, a test item, and a test failure item name;
the test items at least comprise test items, process names and starting times; the test items at least comprise item names, test duration, test results, item standard values and item actual values.
Further, the step S30 specifically includes:
after signing the byte data, the signed byte data is sent to a server side in real time through a TCP (transmission control protocol) based on the I P address and the port number.
Further, the step S40 specifically includes:
and the server checks the received byte data and converts the byte data into JSON data, analyzes the JSON data to obtain test data comprising equipment numbers, test items and test failure item names, and stores each test data into a pre-established database in a structuralized manner.
In a second aspect, the present invention provides a system for reporting test data of an electronic device, including the following modules:
the JSON protocol setting module is used for setting a JSON protocol for acquiring test data;
the test data conversion module is used for converting test data generated by testing the electronic equipment by each test device into JSON data based on the JSON protocol and converting the JSON data into byte data;
the byte data sending module is used for sending the byte data to a server through a TCP (transmission control protocol);
and the test data storage module is used for converting the received byte data into JSON data by the server, analyzing the JSON data to obtain test data, and storing each test data into a pre-established database.
Further, in the JSON protocol setting module, the JSON protocol at least includes a device number, a test item, and a test failure item name;
the test items at least comprise test items, process names and start times; the test items at least comprise item names, test duration, test results, item standard values and item actual values.
Further, the byte data sending module is specifically configured to:
after signing the byte data, the signed byte data is sent to a server side in real time through a TCP (transmission control protocol) based on a I P address and a port number.
Further, the test data storage module is specifically configured to:
and the server checks the received byte data and converts the byte data into JSON data, analyzes the JSON data to obtain test data comprising equipment numbers, test items and test failure item names, and stores each test data into a pre-established database in a structuralized manner.
In a third aspect, the present invention provides an electronic device test data reporting device, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the method of the first aspect when executing the program.
In a fourth aspect, the present invention provides an electronic device test data reporting medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method of the first aspect.
One or more technical schemes provided in the embodiments of the present invention have at least the following technical effects or advantages:
1. the JSON protocol is set to convert test data generated by each test device into JSON data, the JSON data are converted into byte data and then are sent to the server through the TCP protocol, the received byte data are converted into the JSON data by the server and are analyzed to obtain the test data, finally, each test data is stored in the database, the test data generated by each test device can be obtained through the database subsequently, qualified electronic devices are automatically screened out according to the preset screening standard based on the test data, whether the electronic devices are qualified or not is checked through manually checking the test data in the prior art, manual operation errors are avoided, and the reliability of electronic device testing is greatly improved.
2. The byte data obtained through JSON data conversion are signed and then sent to the server side, the server side checks the received byte data, subsequent analysis and storage are performed only after the check, integrity of the byte data can be verified, the stored tampered test data is avoided, the safety of test data transmission is greatly improved, and the safety of electronic equipment testing is greatly improved.
3. The JSON protocol is set to comprise an equipment number, a test item and a test failure item name, the test item comprises a test item, a process name and start time, the test item comprises an item name, test duration, a test result, an item standard value and an item actual value, so that the collected test data comprises the equipment number, the test item and the test failure item name, and the subsequent traceability and screening are facilitated.
The above description is only an overview of the technical solutions of the present invention, and the present invention can be implemented in accordance with the content of the description so as to make the technical means of the present invention more clearly understood, and the above and other objects, features, and advantages of the present invention will be more clearly understood.
Drawings
The invention will be further described with reference to the following examples with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for reporting test data of an electronic device according to the present invention.
Fig. 2 is a schematic structural diagram of a system for reporting test data of an electronic device according to the present invention.
Fig. 3 is a schematic structural diagram of a device for reporting test data of an electronic device according to the present invention.
Fig. 4 is a schematic structural diagram of a test data reporting medium of an electronic device according to the present invention.
Detailed Description
The embodiment of the application realizes the improvement of the reliability of the test of the electronic equipment by providing the method, the system, the equipment and the medium for reporting the test data of the electronic equipment.
The technical scheme in the embodiment of the application has the following general idea: the JSON protocol is set to convert the test data generated by each test device into JSON data, the JSON data is converted into byte data and then sent to the server, the byte data is converted into the JSON data by the server and analyzed to obtain the test data, finally, each test data is stored in the database, and the test data generated by each test device can be obtained through the database subsequently and qualified electronic devices can be automatically screened, so that the test reliability of the electronic devices can be improved.
Example one
This embodiment provides a method for reporting test data of an electronic device, as shown in fig. 1, including the following steps:
s10, setting a JSON protocol for acquiring test data;
step S20, converting test data generated by testing electronic equipment by each test device into JSON data based on the JSON protocol, and converting the JSON data into byte data;
step S30, the byte data is sent to a server through a TCP protocol; the TCP protocol is realized based on Socket sockets;
and S40, converting the received byte data into JSON data by the server, analyzing the JSON data to obtain test data, and storing each test data into a pre-established database.
In the step S10, the JSON protocol at least includes a device number, a test item, and a test failure item name;
the test items at least comprise test items, process names and start times; the test items at least comprise item names, test duration, test results, item standard values and item actual values.
The step S30 specifically includes:
after signing the byte data, the signed byte data is sent to a server in real time through a TCP (transmission control protocol) based on the I P address and the port number, and the server automatically receives and processes the byte data.
In step S30, the public key sent by the server is used for encryption during the transmission of the byte data.
The step S40 is specifically:
and the server checks the received byte data and converts the byte data into JSON data, analyzes the JSON data to obtain test data comprising equipment numbers, test items and test failure item names, and automatically stores the test data into a pre-established database in a structured manner through a preset code. And subsequently, reading the test data from the database, and judging whether the test of the electronic equipment is qualified.
In the step S40, the server side decrypts the received byte data by using a private key, and then checks the signature after the decryption is finished; the public key and the private key are a pair of keys, and data encrypted by the public key can only be decrypted by the private key. By signing and encrypting the byte data, the safety of data transmission is greatly improved.
Example two
The embodiment provides a system for reporting test data of electronic equipment, as shown in fig. 2, including the following modules:
the JSON protocol setting module is used for setting a JSON protocol for acquiring test data;
the test data conversion module is used for converting test data generated by testing the electronic equipment by each test device into JSON data based on the JSON protocol and converting the JSON data into byte data;
the byte data sending module is used for sending the byte data to a server through a TCP (transmission control protocol); the TCP protocol is realized based on Socket sockets;
and the test data storage module is used for converting the received byte data into JSON data by the server, analyzing the JSON data to obtain test data, and storing each test data into a pre-established database.
In the JSON protocol setting module, the JSON protocol at least comprises a device number, a test item and a test failure item name;
the test items at least comprise test items, process names and start times; the test items at least comprise item names, test duration, test results, item standard values and item actual values.
The byte data sending module is specifically configured to:
after signing the byte data, the signed byte data is sent to a server in real time through a TCP (transmission control protocol) based on a I P address and a port number, and the server automatically receives and processes the byte data.
In the byte data sending module, a public key sent by a server side is used for encryption in the byte data transmission process.
The test data storage module is specifically configured to:
and the server checks the received byte data and converts the byte data into JSON data, analyzes the JSON data to obtain test data comprising equipment numbers, test items and test failure item names, and automatically stores the test data into a pre-established database in a structured manner through a preset code. And subsequently, reading the test data from the database, and judging whether the test of the electronic equipment is qualified.
In the test data storage module, the server side decrypts the received byte data by using a private key, and checks the signature after the decryption is finished; the public key and the private key are a pair of keys, and data encrypted by the public key can only be decrypted by the private key. By signing and encrypting the byte data, the safety of data transmission is greatly improved.
Based on the same inventive concept, the application provides an electronic device embodiment corresponding to the first embodiment, which is detailed in the third embodiment.
EXAMPLE III
The embodiment provides an electronic device test data reporting device, as shown in fig. 3, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, and when the processor executes the computer program, any implementation manner of the first embodiment may be implemented.
Since the electronic device described in this embodiment is a device used for implementing the method in the first embodiment of the present application, based on the method described in the first embodiment of the present application, a specific implementation of the electronic device in this embodiment and various variations thereof can be understood by those skilled in the art, and therefore, how to implement the method in the first embodiment of the present application by the electronic device is not described in detail herein. The equipment used by those skilled in the art to implement the method in the embodiments of the present application is all within the protection scope of the present application.
Based on the same inventive concept, the application provides a storage medium corresponding to the fourth embodiment, which is described in detail in the fourth embodiment.
Example four
The embodiment provides a test data reporting medium for electronic equipment, as shown in fig. 4, where a computer program is stored on the test data reporting medium, and when the computer program is executed by a processor, any implementation manner of the first embodiment may be implemented.
The technical scheme provided in the embodiment of the application has at least the following technical effects or advantages:
1. the JSON protocol is set to convert test data generated by each test device into JSON data, the JSON data are converted into byte data and then are sent to the server through the TCP protocol, the received byte data are converted into the JSON data by the server and are analyzed to obtain the test data, finally, each test data is stored in the database, the test data generated by each test device can be obtained through the database subsequently, qualified electronic devices are automatically screened out according to the preset screening standard based on the test data, whether the electronic devices are qualified or not is checked through manually checking the test data in the prior art, manual operation errors are avoided, and the reliability of electronic device testing is greatly improved.
2. The byte data obtained through JSON data conversion are signed and then sent to the server side, the server side checks the received byte data, subsequent analysis and storage are performed only after the check, integrity of the byte data can be verified, the stored tampered test data is avoided, the safety of test data transmission is greatly improved, and the safety of electronic equipment testing is greatly improved.
3. The JSON protocol is set to comprise an equipment number, a test item and a test failure item name, the test item comprises a test item, a process name and start time, the test item comprises an item name, test duration, a test result, an item standard value and an item actual value, so that the collected test data comprises the equipment number, the test item and the test failure item name, and the subsequent traceability and screening are facilitated.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention 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, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Although specific embodiments of the invention have been described above, it will be understood by those skilled in the art that the specific embodiments described are illustrative only and are not limiting upon the scope of the invention, and that equivalent modifications and variations can be made by those skilled in the art without departing from the spirit of the invention, which is to be limited only by the appended claims.

Claims (10)

1. A method for reporting test data of electronic equipment is characterized by comprising the following steps: the method comprises the following steps:
s10, setting a JSON protocol for acquiring test data;
step S20, converting test data generated by testing electronic equipment by each test device into JSON data based on the JSON protocol, and converting the JSON data into byte data;
step S30, the byte data is sent to a server through a TCP protocol;
and S40, converting the received byte data into JSON data by the server, analyzing the JSON data to obtain test data, and storing each test data into a pre-established database.
2. The method for reporting test data of electronic equipment according to claim 1, wherein: in the step S10, the JSON protocol at least includes a device number, a test item, and a test failure item name;
the test items at least comprise test items, process names and starting times; the test items at least comprise item names, test duration, test results, item standard values and item actual values.
3. The method for reporting test data of electronic equipment according to claim 1, wherein: the step S30 specifically includes:
and after the byte data are signed, the signed byte data are sent to a server side in real time through a TCP (transmission control protocol) based on the IP address and the port number.
4. The method for reporting test data of electronic equipment according to claim 1, wherein: the step S40 is specifically:
and the server checks the received byte data and converts the byte data into JSON data, analyzes the JSON data to obtain test data comprising equipment numbers, test items and test failure item names, and stores each test data into a pre-established database in a structuralized manner.
5. A system for reporting test data of electronic equipment is characterized in that: the system comprises the following modules:
the JSON protocol setting module is used for setting a JSON protocol for acquiring test data;
the test data conversion module is used for converting test data generated by testing the electronic equipment by each test equipment into JSON data based on the JSON protocol and converting the JSON data into byte data;
the byte data sending module is used for sending the byte data to a server through a TCP (transmission control protocol);
and the test data storage module is used for converting the received byte data into JSON data by the server, analyzing the JSON data to obtain test data, and storing each test data into a pre-established database.
6. The system for reporting test data of electronic devices as claimed in claim 5, wherein: in the JSON protocol setting module, the JSON protocol at least comprises a device number, a test item and a test failure item name;
the test items at least comprise test items, process names and start times; the test items at least comprise item names, test duration, test results, item standard values and item actual values.
7. The system for reporting test data of electronic devices as claimed in claim 5, wherein: the byte data sending module is specifically configured to:
and after signing the byte data, sending the signed byte data to a server side in real time through a TCP (transmission control protocol) based on the IP address and the port number.
8. The system for reporting test data of electronic devices as claimed in claim 5, wherein: the test data storage module is specifically configured to:
and the server checks the received byte data and converts the byte data into JSON data, analyzes the JSON data to obtain test data comprising equipment numbers, test items and test failure item names, and structurally stores each test data into a pre-established database.
9. An electronic device test data reporting device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 4 when executing the program.
10. An electronic device test data reporting medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method of any of claims 1 to 4.
CN202211488418.2A 2022-11-25 2022-11-25 Method, system, equipment and medium for reporting test data of electronic equipment Pending CN115988096A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211488418.2A CN115988096A (en) 2022-11-25 2022-11-25 Method, system, equipment and medium for reporting test data of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211488418.2A CN115988096A (en) 2022-11-25 2022-11-25 Method, system, equipment and medium for reporting test data of electronic equipment

Publications (1)

Publication Number Publication Date
CN115988096A true CN115988096A (en) 2023-04-18

Family

ID=85967031

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211488418.2A Pending CN115988096A (en) 2022-11-25 2022-11-25 Method, system, equipment and medium for reporting test data of electronic equipment

Country Status (1)

Country Link
CN (1) CN115988096A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117235307A (en) * 2023-11-15 2023-12-15 镇江矽佳测试技术有限公司 STDF data processing method and device and computing equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117235307A (en) * 2023-11-15 2023-12-15 镇江矽佳测试技术有限公司 STDF data processing method and device and computing equipment
CN117235307B (en) * 2023-11-15 2024-01-26 镇江矽佳测试技术有限公司 STDF data processing method and device and computing equipment

Similar Documents

Publication Publication Date Title
US9547579B1 (en) Method and apparatus for automatically detecting defects
CN107483472B (en) Network security monitoring method and device, storage medium and server
US8627146B2 (en) Model-based testing of an application program under test
CN111726420A (en) Communication method, device, equipment and storage medium based on RPA
CN110896367A (en) Method, system and computer readable medium for calibration testing and tracing
CN111327636B (en) S7-300PLC private protocol reverse method relating to network security
CN115988096A (en) Method, system, equipment and medium for reporting test data of electronic equipment
CN112256532A (en) Test interface generation method and device, computer equipment and readable storage medium
CN109587180B (en) Method for establishing connection, client and server
CN116074492A (en) Method, system, equipment and medium for testing infrared function of set top box
CN114117374A (en) Authentication method, device, equipment and medium based on distributed system
CN111382050B (en) Network service interface testing method and device
CN112433947A (en) Chaos engineering method and system based on network data
Wang et al. A model-based fuzzing approach for DBMS
CN111010391A (en) Vulnerability repairing method, device and related equipment
CN114816876B (en) Automatic test system for server Redfish interface specifications
CN113504931B (en) Controller testing method, device, equipment and storage medium
US12034708B2 (en) Method and reproduction unit for reproducing protected messages
CN116074493A (en) Set top box wireless hardware testing method, system, equipment and medium
CN114553490B (en) Industrial passive fuzzy test method, system and readable storage medium
CN109255233B (en) Vulnerability detection method and device
US20230353544A1 (en) Method and reproduction unit for reproducing protected messages
CN114491486A (en) Unauthorized software checking method and device
CN117220883A (en) Method, system, equipment and medium for managing ipc network camera
CN116366829A (en) Automatic factory testing method, system, equipment and medium for set top box

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