CN111459727B - Intelligent automatic test system and method for serial port baud rate maximum error-free tolerance range - Google Patents

Intelligent automatic test system and method for serial port baud rate maximum error-free tolerance range Download PDF

Info

Publication number
CN111459727B
CN111459727B CN201911357934.XA CN201911357934A CN111459727B CN 111459727 B CN111459727 B CN 111459727B CN 201911357934 A CN201911357934 A CN 201911357934A CN 111459727 B CN111459727 B CN 111459727B
Authority
CN
China
Prior art keywords
baud rate
tested
circuit
test
communication
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
Application number
CN201911357934.XA
Other languages
Chinese (zh)
Other versions
CN111459727A (en
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.)
Shandong Youren Networking Co ltd
Original Assignee
Shandong Youren Networking 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 Shandong Youren Networking Co ltd filed Critical Shandong Youren Networking Co ltd
Priority to CN201911357934.XA priority Critical patent/CN111459727B/en
Publication of CN111459727A publication Critical patent/CN111459727A/en
Application granted granted Critical
Publication of CN111459727B publication Critical patent/CN111459727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • 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/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Abstract

The invention provides an intelligent automatic test system and a test method for a serial port baud rate maximum error-free tolerance range, which are used for solving the problems of low manual test efficiency and inaccurate test results. The intelligent automatic test system comprises an automatic test module and a remote control execution module; the automatic test module operates on the test PC, writes an automatic test strategy, and controls the remote control execution module to act and communicate with the communication equipment to be tested; the remote control execution module comprises an MCU control circuit, a power supply circuit, a storage circuit, a status light indicating circuit, a reset circuit, a PC communication circuit and a to-be-tested device communication circuit, wherein the PC communication circuit, the power supply circuit, the storage circuit, the status light indicating circuit, the reset circuit and the to-be-tested device communication circuit are connected with the MCU control circuit, the test PC is connected with the PC communication circuit and the to-be-tested communication device, and the to-be-tested communication device is connected with the to-be-tested device communication circuit.

Description

Intelligent automatic test system and method for serial port baud rate maximum error-free tolerance range
Technical Field
The invention relates to an intelligent automatic test system and a test method, in particular to an intelligent automatic test system and a test method for a serial port baud rate maximum error-free tolerance range, and belongs to the technical field of communication equipment test.
Background
The serial port baud rate of the communication equipment has common errors, when the serial port baud rate error of the communication equipment is larger, the equipment to be tested can have abnormal communication with the communication equipment, and under the premise of not changing the communication equipment, the serial port error-free maximum baud rate and minimum baud rate of the equipment to be tested can be tested for verifying whether the equipment to be tested can normally communicate with the communication equipment, so that whether the serial port performance of the equipment to be tested meets the baud rate range requirement of normal communication with the communication equipment is judged.
The prior art scheme is as follows: the maximum error-free tolerance range of the serial port baud rate is currently tested manually, the standard baud rate commonly used by the equipment to be tested is taken as a reference, the maximum baud rate and the minimum baud rate which the equipment to be tested should pass through are calculated according to a set error range, then the maximum and minimum baud rate data are manually sent to the equipment to be tested, whether the return data of the equipment to be tested are correct or not is checked, if the return data of the equipment to be tested are correct, the fact that the equipment to be tested recognizes the maximum and minimum baud rate data sent to the equipment to be tested is correct is indicated, and the maximum and minimum baud rate range can be tolerated; if the returned data of the equipment to be tested is checked to be incorrect, the fact that the equipment to be tested does not recognize the maximum or minimum baud rate data is indicated, the baud rate range is required to be reduced, then the test is manually sent again, and the maximum error-free tolerance range of the standard baud rate is determined until the returned data of the equipment to be tested is correct. And the other standard baud rates are manually tested one by one according to the method, and finally the maximum error-free tolerance range of various baud rates identifiable by the communication equipment to be tested is obtained.
The prior art scheme has the defects that:
the results of the manual test are inaccurate. When the maximum and minimum baud rates are calculated according to the set error range and tested, if the baud rates exceeding the range are not tested if the test is successful, whether the tolerance range can be further expanded is not determined, and a more accurate boundary is found; if the test is unsuccessful, the baud rate range needs to be reduced, the baud rate range is not reduced by manual reduction, and the baud rate range is not reduced by small increment for retesting, otherwise, the smaller the increment is, the smaller the possibility of test failure is, the more the test times are, the test workload is extremely large when the baud rate of the small increment is reduced for testing, and the boundary can be tested by manual reduction according to one pre-estimated value only, so that inaccuracy is caused;
the human resources consumed by manual testing are too large. A communication device generally needs to measure more than ten baud rates, each baud rate needs to measure a standard baud rate, a maximum baud rate, a minimum baud rate, and even needs to measure the baud rate after continuously reducing the increment, so that the baud rate is tested, and the manual efficiency is very low.
Disclosure of Invention
The invention aims to provide an intelligent automatic test system and a test method for a serial port baud rate maximum error-free tolerance range, so as to solve the problems of low manual test efficiency and inaccurate test results.
The invention aims to achieve the aim, and the aim is achieved by the following technical scheme:
an intelligent automatic test system with a serial port baud rate maximum error-free tolerance range comprises an automatic test module and a remote control execution module; the automatic test module operates on the test PC, writes an automatic test strategy, and controls the remote control execution module to act and communicate with the communication equipment to be tested; the remote control execution module comprises an MCU control circuit, a power supply circuit, a storage circuit, a status light indicating circuit, a reset circuit, a PC communication circuit and a to-be-tested device communication circuit, wherein the PC communication circuit, the power supply circuit, the storage circuit, the status light indicating circuit, the reset circuit and the to-be-tested device communication circuit are connected with the MCU control circuit, the test PC is connected with the PC communication circuit and the to-be-tested communication device, and the to-be-tested communication device is connected with the to-be-tested device communication circuit.
On the basis of the intelligent automatic test system with the serial port baud rate in the maximum error-free tolerance range, the automatic test module comprises a parameter configuration module, an algorithm module, a display module, a file output module and a communication module, wherein the display module is used for displaying communication interaction information and intermediate results for executing an automatic test strategy; the file output module is used for storing the calculated maximum error-free tolerance range result of each baud rate into the EXCEL table for checking after the execution of the automatic test strategy is completed; the communication module is used for communication interaction with the remote control execution module and the communication equipment to be tested.
Based on the intelligent automatic test system with the serial port baud rate IN the maximum error-free tolerance range, the communication circuit of the device to be tested comprises a multi-protocol transceiver, the model of the multi-protocol transceiver is SP330EEY-L, an R2OUT pin of the multi-protocol transceiver is respectively connected with a receiving pin of an MCU serial port 2 and a TTL interface 2 pin through a resistor R3, a TIIN pin of the multi-protocol transceiver is respectively connected with a transmitting pin of the MCU serial port 1 and a TTL interface 1 pin through a resistor R2, a HALF/FULL pin of the multi-protocol transceiver is connected with a grid electrode of an MOS tube and is connected with a selective control pin of MCU485/422 through a resistor R8, a source electrode of the MOS tube is respectively connected with an RE pin of the multi-protocol transceiver and is connected with GND through a resistor R4, and a drain electrode of the MOS tube is respectively connected with a T2IN pin of the multi-protocol transceiver and a 3.3V power supply through a resistor R1.
An intelligent automatic test method for carrying out the maximum error-free tolerance range of the serial port baud rate by utilizing the intelligent automatic test system of the maximum error-free tolerance range of the serial port baud rate comprises the following steps:
s1, determining a testing strategy as a tested baud rate configuration parameter
Determining the type of the test baud rate, the transmission data content of each baud rate, the received verification data content, the transmission interval time, the transmission times of each baud rate, and the increment change value in the test process of each baud rate;
s2, the algorithm module selects whether to reduce or increase the baud rate increment for further testing or stop testing according to whether the received baud rate is correct or not;
s3, calculating the maximum error-free tolerance range of the data baud rate received by the communication equipment to be tested.
Based on the intelligent automatic test method of the serial port baud rate maximum error-free tolerance range, the specific steps are as follows:
s01, setting N=1, and initializing to the 1 st baud rate;
s02, setting the measured baud rate equal to the Nth baud rate;
s03, setting the baud rate of the communication equipment to be tested to be equal to the baud rate to be tested;
s04, setting the baud rate of a receiving end of the remote control execution module to be equal to the baud rate to be tested;
s05, setting the baud rate of a transmitting end of the remote control execution module to be equal to the baud rate to be measured;
s06, setting the intermediate baud rate equal to the intermediate baud rate-baud rate increment;
s07, transmitting the serial port specific character string to the communication equipment to be tested according to the middle baud rate;
s08, judging whether the received specific character string returned by the communication equipment to be tested received within the set time is correct, if so, executing S06, S07 and S08, and if not, executing the step S09;
s09, recording error-free tolerance minimum baud rate=intermediate baud rate+baud rate increment of the Nth baud rate;
s10, enabling the intermediate baud rate to be equal to the measured baud rate;
s11, the intermediate baud rate is equal to the intermediate baud rate plus the baud rate increment;
s12, transmitting the serial port specific character string to the communication equipment to be tested according to the middle baud rate;
s13, judging whether the received specific character string returned by the communication equipment to be tested received within the set time is correct, if so, executing S11, S12 and S13, and if not, executing the step S14;
s14, recording error-free tolerance maximum baud rate=intermediate baud rate-baud rate increment of the Nth baud rate;
s15, calculating the maximum error-free tolerance range of the Nth baud rate as follows: a-b, wherein
a= (minimum baud rate recorded-baud rate measured)/baud rate measured
b= (maximum baud rate recorded + baud rate measured)/baud rate measured;
s16, judging whether each tested baud rate test is completed or not, if so, ending the test, and if not, making N=N+1 ready to test the next baud rate, and executing the steps from S02 again. .
The invention has the advantages that:
1. according to the invention, the maximum error-free tolerance range of the data baud rate received by the communication equipment to be tested can be automatically tested according to the formulated automatic test strategy, and finally, a test result report is automatically generated, so that manual test is not needed, and the test efficiency is greatly improved;
2. when the maximum error-free tolerance range of the baud rate of the data received by the communication equipment to be tested is tested, a minimum baud rate increment change value can be set for testing, so that an accurate maximum error-free tolerance range of the baud rate is output;
3. the algorithm module can intelligently select whether the baud rate increment is reduced or increased to further test or stop testing according to whether the received baud rate is correct or not, so that automatic testing can be realized without manual participation, and the testing efficiency is greatly improved;
4. the method can control and select various serial communication modes for testing, and can meet the requirements of equipment in various different serial communication modes.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention.
FIG. 1 is an overall block diagram of an embodiment of the present invention.
Fig. 2 is a communication circuit diagram of a device under test according to an embodiment of the present invention.
FIG. 3 is a diagram showing the composition of an automatic test module according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, an intelligent automatic test system with maximum error-free tolerance range of serial port baud rate comprises an automatic test module and a remote control execution module; the automatic test module operates on the test PC, writes an automatic test strategy, and controls the remote control execution module to act and communicate with the communication equipment to be tested; the remote control execution module comprises an MCU control circuit, a power supply circuit, a storage circuit, a status light indicating circuit, a reset circuit, a PC communication circuit and a to-be-tested device communication circuit, wherein the PC communication circuit, the power supply circuit, the storage circuit, the status light indicating circuit, the reset circuit and the to-be-tested device communication circuit are connected with the MCU control circuit, the test PC is connected with the PC communication circuit and the to-be-tested communication device, and the to-be-tested communication device is connected with the to-be-tested device communication circuit.
Referring to fig. 3, the automatic test module includes a parameter configuration module, an algorithm module, a display module, a file output module and a communication module, wherein the parameter configuration module is used for setting the configuration parameters of the baud rate to be tested and determining a test strategy; the algorithm module is used for realizing an intelligent automatic test method with the maximum error-free tolerance range of the serial port baud rate, and the display module is used for displaying communication interaction information and intermediate results for executing an automatic test strategy; the file output module is used for storing the calculated maximum error-free tolerance range result of each baud rate into the EXCEL table for checking after the execution of the automatic test strategy is completed; the communication module is used for communication interaction with the remote control execution module and the communication equipment to be tested.
Referring to fig. 2, the communication circuit of the device to be tested includes a multiprotocol transceiver, the model of the multiprotocol transceiver is SP330EEY-L, the R2OUT pin of the multiprotocol transceiver is connected with the receiving pin of the MCU serial port 2 and the TTL interface 2 pin through the resistor R3, the tin pin of the multiprotocol transceiver is connected with the transmitting pin of the MCU serial port 1 and the TTL interface 1 pin through the resistor R2, the HALF/FULL pin of the multiprotocol transceiver is connected with the gate of the MOS tube and is connected with the MCU485/422 selection control pin through the resistor R8, the source of the MOS tube is connected with the RE pin of the multiprotocol transceiver and is connected with GND through the resistor R4, the drain of the MOS tube is connected with the T2IN pin of the multiprotocol transceiver and is connected with the 3.3V power supply through the resistor R1.
An intelligent automatic test method for carrying out the maximum error-free tolerance range of the serial port baud rate by utilizing the intelligent automatic test system of the maximum error-free tolerance range of the serial port baud rate comprises the following steps:
s1, determining a testing strategy as a tested baud rate configuration parameter
Determining the type of the test baud rate, the transmission data content of each baud rate, the received verification data content, the transmission interval time, the transmission times of each baud rate, and the increment change value in the test process of each baud rate;
s2, the algorithm module selects whether to reduce or increase the baud rate increment for further testing or stop testing according to whether the received baud rate is correct or not;
s3, calculating the maximum error-free tolerance range of the data baud rate received by the communication equipment to be tested.
The intelligent automatic test method for the serial port baud rate maximum error-free tolerance range comprises the following specific steps:
s01, setting N=1, and initializing to the 1 st baud rate;
s02, setting the measured baud rate equal to the Nth baud rate;
s03, setting the baud rate of the communication equipment to be tested to be equal to the baud rate to be tested;
s04, setting the baud rate of a receiving end of the remote control execution module to be equal to the baud rate to be tested;
s05, setting the baud rate of a transmitting end of the remote control execution module to be equal to the baud rate to be measured;
s06, setting the intermediate baud rate equal to the intermediate baud rate-baud rate increment;
s07, transmitting the serial port specific character string to the communication equipment to be tested according to the middle baud rate;
s08, judging whether the received specific character string returned by the communication equipment to be tested received within the set time is correct, if so, executing S06, S07 and S08, and if not, executing the step S09;
s09, recording error-free tolerance minimum baud rate=intermediate baud rate+baud rate increment of the Nth baud rate;
s10, enabling the intermediate baud rate to be equal to the measured baud rate;
s11, the intermediate baud rate is equal to the intermediate baud rate plus the baud rate increment;
s12, transmitting the serial port specific character string to the communication equipment to be tested according to the middle baud rate;
s13, judging whether the received specific character string returned by the communication equipment to be tested received within the set time is correct, if so, executing S11, S12 and S13, and if not, executing the step S14;
s14, recording error-free tolerance maximum baud rate=intermediate baud rate-baud rate increment of the Nth baud rate;
s15, calculating the maximum error-free tolerance range of the Nth baud rate as follows: a-b, wherein
a= (minimum baud rate recorded-baud rate measured)/baud rate measured
b= (maximum baud rate recorded + baud rate measured)/baud rate measured;
s16, judging whether each tested baud rate test is completed or not, if so, ending the test, and if not, making N=N+1 ready to test the next baud rate, and executing the steps from S02 again.
Example 1
In this embodiment, the test PC determines that the test policy is the configuration parameter of the tested baud rate, and specifically includes the following steps: the test parameters are set as test sequence number 1: the method comprises the steps of testing the size of the 1 st baud rate, setting a serial port to transmit a specific character string, setting the serial port to receive the specific character string, and transmitting for 4 times at 1 second intervals, wherein the baud rate increment is 4; test number 2: the size of the 2 nd baud rate is tested, a serial port is set to transmit a specific character string, the serial port is set to receive the specific character string, the transmission interval is 1 second, the transmission times are 4 times, and the baud rate increment is 8; in this way to the last test sequence number N.
The specific steps of this embodiment are as follows:
1) Setting the baud rate of the communication equipment to be tested, the baud rate of the receiving end and the baud rate of the transmitting end of the remote control execution module to be the 1 st baud rate, and starting to transmit the serial port to a specific character string to the communication equipment to be tested;
2) If the correct serial port receiving specific character string is received in the transmission interval of 1 second for 4 times continuously, setting the baud rate=1st baud rate-baud rate increment 4 of the remote control execution module;
3) If the correct serial port receiving specific character string is not received, the serial port sending specific character string is sent to the communication equipment to be tested again by using the newly set sending end baud rate, and if the correct serial port receiving specific character string is received continuously for 4 times within 1 second in a sending interval, the sending end baud rate = 1 st baud rate-baud rate increment 4*2 of the remote control executing module is set;
4) The test is continued until no serial port receiving specific character string is received or no serial port receiving specific character string is received within 1 time and 1 second, the error-free tolerance minimum baud rate is obtained as the baud rate of the serial port receiving specific character string received correctly last time, at the moment, the baud rate of the transmitting end of the remote control executing module is set to be=1st baud rate+baud rate increment 4, and the newly set baud rate of the transmitting end is used for transmitting the serial port transmitting specific character string to the communication equipment to be tested again;
5) If the correct serial port receiving specific character string is received in the transmission interval of 1 second for 4 times continuously, setting the baud rate=1st baud rate+baud rate increment 4*2 of the remote control executing module;
6) And continuing the test until no serial port receiving specific character string or no serial port receiving specific character string is received within 1 time and 1 second, and obtaining the maximum baud rate without error tolerance as the baud rate of the last received correct serial port receiving specific character string;
7) The obtained error-free tolerance minimum baud rate and the obtained maximum baud rate are used for subtracting the 1 st baud rate, and then the maximum error-free tolerance range of the 1 st baud rate is calculated by dividing the 1 st baud rate respectively, so that all the tests of the 1 st baud rate are completed;
8) Setting the baud rate of the communication equipment to be tested, the baud rate of the receiving end and the baud rate of the transmitting end of the remote control execution module to be the 2 nd baud rate, testing the maximum error-free tolerance range of the 2 nd baud rate according to the method, and ending the test until the maximum error-free tolerance range and the accuracy of the Nth baud rate are tested.
The technical scheme of the invention is characterized in that:
1. the testing process is full-automatic: the automatic test strategy is set for each parameter of the tested baud rate, and comprises the types of the tested baud rates, the transmitted data content of each baud rate, the received verification data content, the transmission interval time, the transmission times of each baud rate and the increment change value in the testing process of each baud rate. The system can automatically test all baud rate conditions according to the automatic test strategy to obtain the maximum error-free tolerance range of the baud rate, and output results are stored in an EXCEL table;
2. the testing process is intelligent: the algorithm module intelligently selects whether the baud rate increment is reduced or increased to further test or stop test according to whether the received baud rate is correct or not, and finally calculates the maximum error-free tolerance range of the baud rate of the data received by the communication equipment to be tested;
3. the invention can be used for testing communication equipment in various serial port communication modes of 232, 485, 422 and TTL, serial port receiving and transmitting of the communication circuit of the equipment to be tested are separately controlled, a transmitting end and a receiving end use 2 different UART ports of a high-performance MCU in an MCU control circuit, and different baud rates can be set for receiving baud rate and transmitting baud rate, so that the size of the receiving baud rate is set to be standard baud rate, and meanwhile, the size of the transmitting baud rate can be set to be continuously reduced, increased and tested according to the increment of the baud rate, and finally, the maximum error-free tolerance range of the receiving baud rate of the communication equipment to be tested is obtained.
The problems of low manual testing efficiency and inaccurate testing result are solved through the scheme.
Finally, it should be noted that: the foregoing description is only a preferred embodiment of the present invention, and the present invention is not limited thereto, but it is to be understood that modifications and equivalents of some of the technical features described in the foregoing embodiments may be made by those skilled in the art, although the present invention has been described in detail with reference to the foregoing embodiments. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (4)

1. An intelligent automatic test system for a serial port baud rate maximum error-free tolerance range is characterized in that: the system comprises an automatic test module and a remote control execution module; the automatic test module operates on the test PC, writes an automatic test strategy, and controls the remote control execution module to act and communicate with the communication equipment to be tested; the remote control execution module comprises an MCU control circuit, a power supply circuit, a storage circuit, a status light indicating circuit, a reset circuit, a PC communication circuit and a to-be-tested device communication circuit, wherein the PC communication circuit, the power supply circuit, the storage circuit, the status light indicating circuit, the reset circuit and the to-be-tested device communication circuit are connected with the MCU control circuit, the test PC is connected with the PC communication circuit and the to-be-tested communication device, and the to-be-tested communication device is connected with the to-be-tested device communication circuit;
the automatic test module comprises a parameter configuration module, an algorithm module, a display module, a file output module and a communication module;
the communication circuit of the device to be tested comprises a multi-protocol transceiver, the model of the multi-protocol transceiver is SP330EEY-L, an R2OUT pin of the multi-protocol transceiver is respectively connected with a receiving pin of an MCU serial port 2 and a TTL interface 2 pin through a resistor R3, a TIIN pin of the multi-protocol transceiver is respectively connected with a transmitting pin of an MCU serial port 1 and a TTL interface 1 pin through a resistor R2, a HALF/FULL pin of the multi-protocol transceiver is connected with a grid electrode of a MOS tube and is connected with an MCU485/422 selection control pin through a resistor R8, a source electrode of the MOS tube is respectively connected with an RE pin of the multi-protocol transceiver and is connected with GND through a resistor R4, and a drain electrode of the MOS tube is respectively connected with a T2IN pin of the multi-protocol transceiver and is connected with a 3.3V power supply through a resistor R1;
and the remote control execution module selects whether the baud rate increment is reduced or increased to further test or stop test according to whether the received baud rate is correct or not, and calculates the maximum error-free tolerance range of the received baud rate of the communication equipment to be tested.
2. The intelligent automated test system of serial port baud rate maximum error-free tolerance range of claim 1, wherein: the display module is used for displaying communication interaction information and intermediate results for executing the automatic test strategy; the file output module is used for storing the calculated maximum error-free tolerance range result of each baud rate into the EXCEL table for checking after the execution of the automatic test strategy is completed; the communication module is used for communication interaction with the remote control execution module and the communication equipment to be tested.
3. An intelligent automation test method for carrying out the serial port baud rate maximum error-free tolerance range by using the intelligent automation test system for the serial port baud rate maximum error-free tolerance range according to any one of claims 1 to 2, which is characterized by comprising the following steps:
s1, determining a testing strategy as a tested baud rate configuration parameter
Determining the type of the test baud rate, the transmission data content of each baud rate, the received verification data content, the transmission interval time, the transmission times of each baud rate, and the increment change value in the test process of each baud rate;
s2, the algorithm module selects whether to reduce or increase the baud rate increment for further testing or stop testing according to whether the received baud rate is correct or not;
s3, calculating the maximum error-free tolerance range of the data baud rate received by the communication equipment to be tested.
4. The intelligent automated testing method for the maximum error-free tolerance range of the serial port baud rate according to claim 3, comprising the following specific steps:
s01, setting N=1, and initializing to the 1 st baud rate;
s02, setting the measured baud rate equal to the Nth baud rate;
s03, setting the baud rate of the communication equipment to be tested to be equal to the baud rate to be tested;
s04, setting the baud rate of a receiving end of the remote control execution module to be equal to the baud rate to be tested;
s05, setting the baud rate of a transmitting end of the remote control execution module to be equal to the baud rate to be measured;
s06, setting the intermediate baud rate equal to the intermediate baud rate-baud rate increment;
s07, transmitting the serial port specific character string to the communication equipment to be tested according to the middle baud rate;
s08, judging whether the received specific character string returned by the communication equipment to be tested received within the set time is correct, if so, executing S06, S07 and S08, and if not, executing the step S09;
s09, recording error-free tolerance minimum baud rate=intermediate baud rate+baud rate increment of the Nth baud rate;
s10, enabling the intermediate baud rate to be equal to the measured baud rate;
s11, the intermediate baud rate is equal to the intermediate baud rate plus the baud rate increment;
s12, transmitting the serial port specific character string to the communication equipment to be tested according to the middle baud rate;
s13, judging whether the received specific character string returned by the communication equipment to be tested received within the set time is correct, if so, executing S11, S12 and S13, and if not, executing the step S14;
s14, recording error-free tolerance maximum baud rate=intermediate baud rate-baud rate increment of the Nth baud rate;
s15, calculating the maximum error-free tolerance range of the Nth baud rate as follows: a-b, wherein
a= (minimum baud rate recorded-baud rate measured)/baud rate measured
b= (maximum baud rate recorded + baud rate measured)/baud rate measured;
s16, judging whether each tested baud rate test is completed or not, if so, ending the test, and if not, making N=N+1 ready to test the next baud rate, and executing the steps from S02 again.
CN201911357934.XA 2019-12-25 2019-12-25 Intelligent automatic test system and method for serial port baud rate maximum error-free tolerance range Active CN111459727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911357934.XA CN111459727B (en) 2019-12-25 2019-12-25 Intelligent automatic test system and method for serial port baud rate maximum error-free tolerance range

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911357934.XA CN111459727B (en) 2019-12-25 2019-12-25 Intelligent automatic test system and method for serial port baud rate maximum error-free tolerance range

Publications (2)

Publication Number Publication Date
CN111459727A CN111459727A (en) 2020-07-28
CN111459727B true CN111459727B (en) 2023-07-14

Family

ID=71679939

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911357934.XA Active CN111459727B (en) 2019-12-25 2019-12-25 Intelligent automatic test system and method for serial port baud rate maximum error-free tolerance range

Country Status (1)

Country Link
CN (1) CN111459727B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114070753B (en) * 2021-10-12 2023-03-21 山东有人物联网股份有限公司 Transparent transmission equipment testing method and device and computer readable storage medium
CN115412469B (en) * 2022-11-01 2023-03-24 深圳市航顺芯片技术研发有限公司 Tolerance detection method, computer device and readable storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004064616A (en) * 2002-07-31 2004-02-26 Sharp Corp Baud rate setting method, baud rate setting program, readable recording medium, communication system and communication method
CN101083014A (en) * 2007-07-03 2007-12-05 浙江大学 Fire hazard centralized and dispersed type monitoring network based on RS232 and RS485 bus
CN102315983A (en) * 2010-12-30 2012-01-11 杭州鼎利环保科技有限公司 Circuit and method for automatically detecting Baud rate of multiple paths of serial communication interfaces
CN102904688A (en) * 2012-10-12 2013-01-30 北京新雷能科技股份有限公司 Method and device for regulating baud rate
CN103150283A (en) * 2011-12-06 2013-06-12 株式会社日立超Lsi系统 Electronic apparatus
CN105141489A (en) * 2014-05-29 2015-12-09 中国人民解放军93199部队飞行仿真技术研究所 Real-time data acquisition system for simulator
CN107320893A (en) * 2017-08-16 2017-11-07 山东通源电气有限公司 The device of monitoring and writing function is changed with fire-fighting controlling switch
CN109522229A (en) * 2018-11-15 2019-03-26 四川九州电子科技股份有限公司 A kind of high-efficient automatic test macro and its test method
CN109768907A (en) * 2019-01-09 2019-05-17 北京安控科技股份有限公司 A kind of CAN bus baud rate self-adapting setting method
CN110430109A (en) * 2019-08-11 2019-11-08 南京中消安全技术有限公司 A kind of means of communication and system of the fire-fighting equipment based on two lines bus
CN110581814A (en) * 2019-09-06 2019-12-17 惠州志顺电子实业有限公司 Baud rate adjusting method of communication equipment and communication equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100525548B1 (en) * 2000-12-29 2005-10-31 엘지전자 주식회사 Baudrate Detection Circuit of Universal Asynchronous Receiver/Transmitter

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004064616A (en) * 2002-07-31 2004-02-26 Sharp Corp Baud rate setting method, baud rate setting program, readable recording medium, communication system and communication method
CN101083014A (en) * 2007-07-03 2007-12-05 浙江大学 Fire hazard centralized and dispersed type monitoring network based on RS232 and RS485 bus
CN102315983A (en) * 2010-12-30 2012-01-11 杭州鼎利环保科技有限公司 Circuit and method for automatically detecting Baud rate of multiple paths of serial communication interfaces
CN103150283A (en) * 2011-12-06 2013-06-12 株式会社日立超Lsi系统 Electronic apparatus
CN102904688A (en) * 2012-10-12 2013-01-30 北京新雷能科技股份有限公司 Method and device for regulating baud rate
CN105141489A (en) * 2014-05-29 2015-12-09 中国人民解放军93199部队飞行仿真技术研究所 Real-time data acquisition system for simulator
CN107320893A (en) * 2017-08-16 2017-11-07 山东通源电气有限公司 The device of monitoring and writing function is changed with fire-fighting controlling switch
CN109522229A (en) * 2018-11-15 2019-03-26 四川九州电子科技股份有限公司 A kind of high-efficient automatic test macro and its test method
CN109768907A (en) * 2019-01-09 2019-05-17 北京安控科技股份有限公司 A kind of CAN bus baud rate self-adapting setting method
CN110430109A (en) * 2019-08-11 2019-11-08 南京中消安全技术有限公司 A kind of means of communication and system of the fire-fighting equipment based on two lines bus
CN110581814A (en) * 2019-09-06 2019-12-17 惠州志顺电子实业有限公司 Baud rate adjusting method of communication equipment and communication equipment

Also Published As

Publication number Publication date
CN111459727A (en) 2020-07-28

Similar Documents

Publication Publication Date Title
CN111459727B (en) Intelligent automatic test system and method for serial port baud rate maximum error-free tolerance range
US8131223B2 (en) System for testing an embedded wireless transceiver
US7865147B2 (en) System for testing an embedded wireless transceiver
CN102109572B (en) Method for testing and method for testing and controlling transmission chip
WO2017000424A1 (en) Protocol detection method and apparatus
CN202305756U (en) Relay service life tester and relay service life test system
CN111984477B (en) PCIe equipment signal parameter dynamic correction device and method
TW201325273A (en) Testing system and testing method for wireless network device
CN102891745A (en) Network equipment and terminal abnormality identification method thereof
CN110554940A (en) Serial port detection tool and method based on electric energy meter communication
CN101452631A (en) Test method and system for management terminal of power use
CN101800672A (en) Equipment detection method and equipment
CN109739716B (en) Method and system for testing HBA card in storage system
CN105354157A (en) Method, device and system for configuring IIC (Inter-Integrated Circuit) device
CN111611186B (en) Transmission control method and device in embedded chip
CN115480975A (en) Wiring checking method and device
CN113986600B (en) Test method and device for chip serial interface and chip
CN106370955B (en) USB PD protocol-based adapter detection method and device
CN110139314A (en) Method, apparatus, equipment and the medium of MDT terminal measurement position information
CN115328708A (en) Parameter testing method and device for serial peripheral interface timing sequence
CN101316429A (en) Mobile phone and automatic error report sending method
CN219351748U (en) BLE production detection device
CN213521918U (en) Automatic testing arrangement of thing networking communication terminal, system
TWI732725B (en) Debugging method for narrowband internet of things terminal and electronic device using the same
CN110473586A (en) A kind of replacement method that writing failed storage unit, device, equipment and storage medium

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

Address after: Room 1103 and 1105, 11 / F, building 1, Aosheng building, 1166 Xinluo street, high tech Zone, Jinan City, Shandong Province, 250100

Applicant after: Shandong Youren networking Co.,Ltd.

Address before: 250100 1105, building 1, Aosheng building, 1166 Xinluo street, high tech Zone, Jinan City, Shandong Province

Applicant before: SHANDONG YOUREN INFORMATION TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant