CN107086899B - Intelligent serial port testing device and testing method - Google Patents
Intelligent serial port testing device and testing method Download PDFInfo
- Publication number
- CN107086899B CN107086899B CN201710259799.XA CN201710259799A CN107086899B CN 107086899 B CN107086899 B CN 107086899B CN 201710259799 A CN201710259799 A CN 201710259799A CN 107086899 B CN107086899 B CN 107086899B
- Authority
- CN
- China
- Prior art keywords
- serial port
- module
- target
- microprocessor
- testing device
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/24—Testing correct operation
- H04L1/242—Testing correct operation by comparing a transmitted test signal with a locally generated replica
- H04L1/243—Testing correct operation by comparing a transmitted test signal with a locally generated replica at the transmitter, using a loop-back
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
The invention relates to a serial port intelligent testing device which is used for intelligently detecting the quality of a target to be tested, wherein the target to be tested comprises an RS232 serial port and a product with the RS232 serial port; the serial port intelligent testing device comprises a main control module, a serial port connection module, a storage module, a decoding module and an interface module; the main control module comprises a microprocessor and a clock signal unit; the serial port connection module comprises an RS232 interface connector and a USB interface connector. According to the serial port intelligent testing device, the main control module is used for sending the preset coding signal to the target to be tested, receiving the returned coding signal transferred by the target to be tested, comparing the preset coding signal with the returned coding signal, and displaying the compared judging result on the interface module to realize intelligent detection of the target to be tested; and the serial port intelligent testing device can operate alone or online and networking, so that different testing items can be selected, and the serial port intelligent testing device has higher flexibility, compatibility and expansibility.
Description
Technical Field
The invention relates to the technical field of electronics, in particular to a serial port intelligent testing device and a testing method.
Background
At present, the RS232 serial port is widely applied to the field of industrial control, and is used as a communication interface for connecting a computer with a terminal or peripheral equipment. In the daily working process, the use of serial port lines is indispensable.
The current general RS-232 interface products are 9 pins, and the serial port product test is based on a computer platform, and only 3 pins, namely TXD, RXD and signal ground GND, are actually tested by the test. The electrical of other pins is not tested, so that the quality is lost, the detection efficiency is low, and the manual operation is completed.
Disclosure of Invention
Based on the detection, the invention provides the serial port intelligent testing device and the serial port intelligent testing method, which improve the detection efficiency and ensure the quality of products.
In order to achieve the purpose of the invention, the invention adopts the following technical scheme:
the serial port intelligent testing device is used for intelligently detecting the quality of a target to be tested, wherein the target to be tested comprises an RS232 serial port and a product with the RS232 serial port; the serial port intelligent testing device comprises a main control module, a serial port connection module, a storage module, a decoding module and an interface module, wherein the serial port connection module, the storage module and the decoding module are respectively connected with the main control module; the main control module comprises a microprocessor and a clock signal unit connected with the microprocessor; the serial port connection module comprises an RS232 interface connector and a USB interface connector, wherein the RS232 interface connector and the USB interface connector are respectively connected with the microprocessor, the RS232 interface connector is externally connected with the object to be tested, and the USB interface connector is connected with a host computer which is positioned in a central processing system.
According to the serial port intelligent testing device, the main control module is used for sending the preset coding signal to the target to be tested, receiving the returned coding signal transferred by the target to be tested, comparing the preset coding signal with the returned coding signal, and displaying the compared judging result on the interface module to realize intelligent detection of the target to be tested; and the serial port intelligent testing device can operate alone or online and networking, so that different testing items can be selected, and the serial port intelligent testing device has higher flexibility, compatibility and expansibility.
In one embodiment, the serial port intelligent testing device further comprises a reset unit and a UART interface, wherein the reset unit and the UART interface are respectively connected with the microprocessor.
In one embodiment, the storage unit may be connected to a cloud server.
In one embodiment, the memory unit is a read-write memory.
In one embodiment, the interface module is a display.
A testing method of a serial port intelligent testing device comprises the following steps:
the serial port intelligent testing device comprises a main control module, a serial port connecting module, a storage module, a decoding module and an interface module, wherein the serial port connecting module, the storage module and the decoding module are respectively connected with the main control module; the main control module comprises a microprocessor and a clock signal unit connected with the microprocessor; the serial port connection module comprises an RS232 interface connector and a USB interface connector, wherein the RS232 interface connector and the USB interface connector are respectively connected with the microprocessor, the RS232 interface connector is outwards connected with the target to be tested, and the USB interface connector is connected with a host computer in a central processing system;
the microprocessor sends a preset coding signal to the target to be detected;
after the target to be detected receives the preset coding signal, the target to be detected forwards the return coding signal to the microprocessor;
the microprocessor compares the preset coding signal with the return coding signal and judges whether the preset coding signal and the return coding signal are consistent;
if the target to be detected is consistent, judging that the target to be detected is qualified, and outputting a judging result; if the target to be detected is inconsistent, judging that the target to be detected is not qualified, and outputting a judging result;
in one embodiment, the determination result is displayed on the interface module through the decoding module.
Drawings
FIG. 1 is a schematic diagram of a serial port intelligent testing apparatus according to a preferred embodiment of the present invention;
FIG. 2 is a flow chart of a testing method of the serial port intelligent testing apparatus shown in FIG. 1;
the drawings are marked with the following description:
the system comprises a 10-main control module, a 11-microprocessor, a 12-clock signal unit, a 20-serial port connection module, a 21-RS232 interface connector, a 22-USB interface connector, a 30-storage module, a 40-decoding module, a 50-interface module, a 61-reset device and a 62-UART interface.
Detailed Description
In order that the invention may be readily understood, a more complete description of the invention will be rendered by reference to the appended drawings. Preferred embodiments of the present invention are shown in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
It will be understood that when an element is referred to as being "fixed to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used herein in the description of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
Referring to fig. 1 and 2, a serial port intelligent testing device and testing method according to a preferred embodiment of the invention are used for intelligently detecting quality of RS232 serial ports and products with RS232 serial ports. The serial port intelligent testing device comprises a main control module 10, a serial port connecting module 20, a storage module 30, a decoding module 40 and an interface module 50, wherein the serial port connecting module 20, the storage module 30 and the decoding module 40 are respectively connected with the main control module 10, and the interface module 50 is connected with the decoding module 40; the serial port connection module 20 is connected to an object to be tested outwards, and the object to be tested can be an RS232 serial port or a product with an RS232 serial port.
For convenience of explanation, the invention takes the RS232 serial port as a target to be measured.
The serial port intelligent testing device sends a preset code signal to the target to be tested through the main control module 10, receives a return code signal returned by the target to be tested, compares the preset code signal with the return code signal, and presents a comparison result on the interface module 50, so that whether the target to be tested is qualified or not can be judged.
The main control module 10 mainly comprises a microprocessor 11 and a clock signal unit 12 connected with the microprocessor 11. In this embodiment, the clock signal unit 12 is a pulse clock signal generating unit for generating a pulse clock signal for the microprocessor 11.
The serial port connection module 20 includes an RS232 interface connector 21 and a USB interface connector 22, where the RS232 interface connector 21 and the USB interface connector 22 are respectively connected to the microprocessor 11. The RS232 interface connector 21 is connected to the target to be tested outwards, and the USB interface connector 22 is used as a function expansion interface of the serial intelligent testing device, and can be selectively connected and communicated with the target to be tested or other testing systems.
Specifically, through the USB interface connector 22, the serial port intelligent testing apparatus may be connected to a host computer in a central processing system, so as to implement networking collaboration between the serial port intelligent testing apparatuses in different testing sites; that is, the serial port intelligent testing device can operate alone or online or networked, and has higher flexibility, compatibility and expansibility.
In this embodiment, the storage unit 30 is a readable and writable memory, and is configured to store the preset code signal and the return code signal in pairs.
Specifically, in the storage unit 30, a key value is used to store the preset code signal and the return code signal, and when a call command is input, a history test result can be called out from the storage unit 30, so that a product management and tracing function is realized, and the management and control strength and the management and control quality of a production flow are improved.
Further, the storage unit 30 may be further connected to a cloud server through a network, and synchronously upload the internal storage information to the cloud server, so that the storage information may be backed up, and the storage information may be shared with other terminals.
In this embodiment, the interface module 50 is an LCD/LED display; in other embodiments, the interface module 50 may also be a touchable display screen, to enable selection operations on the interface module 50.
The serial port intelligent testing device is also provided with a resetting unit 61 and a UART interface 62, wherein the resetting unit 61 and the UART interface 62 are respectively connected with the microprocessor 11. When an abnormality of unknown cause occurs in the serial port intelligent test apparatus, the reset unit 61 is triggered to resume the initial setting. The UART interface 62 may burn a program, upgrade the system of the serial port intelligent testing device, and update the test item.
The nine signal pin interfaces of the object to be tested are defined as follows:
in a specific test, the target to be tested is connected to the serial port intelligent test device through the RS232 interface connector 21, the microprocessor 11 generates and sends the preset coding signal, and the preset coding signal is decoded and then sent to interface receiving channels (DCD, RXD, DSR, DTR and RI) of the target to be tested; after loading the preset coding signal on the original RS232 standard signal, the target to be tested sends the return coding signal to the microprocessor 11 through interface sending channels (TXD, DTR and RTS) of the target to be tested, and the microprocessor 11 compares the preset coding signal with the return coding signal and judges whether the preset coding signal is consistent with the return coding signal; if the target to be detected is consistent, judging that the target to be detected is qualified; if the target to be detected is inconsistent, judging that the target to be detected is not qualified. Finally, the comparison result is sent to the interface module 50 through the decoding module 40 to display the determination result.
Further, the serial port intelligent testing device can conduct different testing projects on targets to be tested which are located in different testing sites and in different time periods. For example, for products with different functional requirements, only products with functions of RXD receiving data, TXD transmitting data and GND signals are needed, and the testing of other channels can be closed, so that time is saved, and the production efficiency is improved.
According to the serial port intelligent testing device, the main control module is used for sending the preset coding signal to the target to be tested, receiving the return coding signal returned by the target to be tested, comparing the preset coding signal with the return coding signal, and displaying the compared judging result on the interface module to realize intelligent detection of the target to be tested; and the serial port intelligent testing device can operate alone or online and networking, so that different testing items can be selected, and the serial port intelligent testing device has higher flexibility, compatibility and expansibility.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.
Claims (5)
1. The testing method of the serial port intelligent testing device is characterized by comprising the following steps of:
the serial port intelligent testing device comprises a main control module, a serial port connecting module, a storage module, a decoding module, an interface module, a reset unit and a UART interface, wherein the serial port connecting module, the storage module and the decoding module are respectively connected with the main control module; the main control module comprises a microprocessor and a clock signal unit connected with the microprocessor; the reset unit and the UART interface are respectively connected with the microprocessor; the serial port connection module comprises an RS232 interface connector and a USB interface connector, wherein the RS232 interface connector and the USB interface connector are respectively connected with the microprocessor, the RS232 interface connector is outwards connected with a target to be tested, and the USB interface connector is connected with a host computer in a central processing system; the storage module can be connected with a cloud server;
the microprocessor sends a preset coding signal to the target to be detected;
after the target to be detected receives the preset coding signal, the target to be detected forwards the return coding signal to the microprocessor;
the microprocessor compares the preset code signal with the return code signal and judges whether the preset code signal and the return code signal are consistent;
if the target to be detected is consistent, judging that the target to be detected is qualified, and outputting a judging result; if the target to be detected is inconsistent, judging that the target to be detected is not qualified, and outputting a judging result.
2. The method according to claim 1, wherein the memory module is a read-write memory for storing the preset code signal and the return code signal in pairs.
3. The method of claim 1, wherein the interface module is a display.
4. The testing method of the serial intelligent testing apparatus according to claim 1, wherein the clock signal unit is a pulse clock signal generating unit for generating a pulse clock signal.
5. The method for testing a serial port intelligent testing device according to claim 1, wherein the determination result is displayed on the interface module through the decoding module.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710259799.XA CN107086899B (en) | 2017-04-19 | 2017-04-19 | Intelligent serial port testing device and testing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710259799.XA CN107086899B (en) | 2017-04-19 | 2017-04-19 | Intelligent serial port testing device and testing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107086899A CN107086899A (en) | 2017-08-22 |
CN107086899B true CN107086899B (en) | 2023-05-26 |
Family
ID=59612822
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710259799.XA Active CN107086899B (en) | 2017-04-19 | 2017-04-19 | Intelligent serial port testing device and testing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107086899B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114578217B (en) * | 2022-05-06 | 2022-08-09 | 南京邮电大学 | Controllable Chiplet serial test circuit |
CN117880143B (en) * | 2024-01-11 | 2024-07-30 | 江苏征途技术股份有限公司 | Device and method for detecting read-write function of serial port module of gateway machine equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102298550A (en) * | 2010-06-23 | 2011-12-28 | 鸿富锦精密工业(深圳)有限公司 | Test device for recommended standard 485 (RS 485) port |
CN103888308A (en) * | 2012-12-20 | 2014-06-25 | 研祥智能科技股份有限公司 | Method, system and device for serial port tests |
CN105487948A (en) * | 2015-11-24 | 2016-04-13 | 上海斐讯数据通信技术有限公司 | RS232 port test apparatus and test method |
CN206775511U (en) * | 2017-04-19 | 2017-12-19 | 东莞铭基电子科技集团有限公司 | Serial ports intelligent test device |
-
2017
- 2017-04-19 CN CN201710259799.XA patent/CN107086899B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102298550A (en) * | 2010-06-23 | 2011-12-28 | 鸿富锦精密工业(深圳)有限公司 | Test device for recommended standard 485 (RS 485) port |
CN103888308A (en) * | 2012-12-20 | 2014-06-25 | 研祥智能科技股份有限公司 | Method, system and device for serial port tests |
CN105487948A (en) * | 2015-11-24 | 2016-04-13 | 上海斐讯数据通信技术有限公司 | RS232 port test apparatus and test method |
CN206775511U (en) * | 2017-04-19 | 2017-12-19 | 东莞铭基电子科技集团有限公司 | Serial ports intelligent test device |
Also Published As
Publication number | Publication date |
---|---|
CN107086899A (en) | 2017-08-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106776174B (en) | Display screen parameter debugging method and server | |
CN110908849B (en) | Automatic test equipment and method | |
US20130132628A1 (en) | Plug-in module, electronic system, and judging method and querying method thereof | |
CN104021060A (en) | BMC serial port debugging system and method | |
CN107086899B (en) | Intelligent serial port testing device and testing method | |
CN108399136B (en) | Control method and device of serial interface and host | |
CN104519105A (en) | Method and device for acquiring applications matched with terminals | |
CN111693294A (en) | Vehicle detection method and device, terminal equipment and storage medium | |
CN108650501A (en) | A kind of method, apparatus and electronic equipment of test stability of set-top box | |
CN115904835A (en) | Cable detection method and server | |
US7802143B2 (en) | Testing system and testing method thereof | |
CN112822073B (en) | Test method, device, system, electronic equipment and readable storage medium | |
US9158609B2 (en) | Universal serial bus testing device | |
US11354214B2 (en) | Judgment method for hardware compatibility | |
CN103365735A (en) | Transmission interface and method for determining transmission signal | |
US20090144536A1 (en) | Monitoring method and monitor apparatus | |
CN111352780B (en) | Method and device for determining state of path and readable storage medium | |
CN113468028B (en) | Device management method for computing device, apparatus and medium | |
CN115729872A (en) | Computing device and detection method for PCIE cable connection | |
US20180247291A1 (en) | Point-of-sale system automated testing | |
CN106201930B (en) | A kind of device port determining device, terminal and method | |
CN110943888B (en) | Convenient full-function serial port detection method and device | |
CN113886302A (en) | Serial port number obtaining method and device of application equipment, terminal equipment and storage medium | |
CN106603585B (en) | Interactive system of Internet of things equipment | |
CN111399871A (en) | System updating method, device, equipment and medium for HBA card |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523000 Room 101, No.88, Pingshan Industrial Road, Tangxia Town, Dongguan City, Guangdong Province Applicant after: Guangdong Mingji High Tech Electronics Co.,Ltd. Address before: 523728, No. 188 Industrial Road, Pingshan Industrial Zone, Tangxia Town, Dongguan, Guangdong, 93 Applicant before: DONGGUAN MINGJI ELECTRONICS Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |