CN111007336A - Module production test power-on and power-off automatic detection system and method based on serial port communication - Google Patents

Module production test power-on and power-off automatic detection system and method based on serial port communication Download PDF

Info

Publication number
CN111007336A
CN111007336A CN201911219880.0A CN201911219880A CN111007336A CN 111007336 A CN111007336 A CN 111007336A CN 201911219880 A CN201911219880 A CN 201911219880A CN 111007336 A CN111007336 A CN 111007336A
Authority
CN
China
Prior art keywords
module
tested
reply
power
received
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
CN201911219880.0A
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.)
Sichuan Ai Link Technology Co ltd
Original Assignee
Sichuan Ai Link Technology 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 Sichuan Ai Link Technology Co ltd filed Critical Sichuan Ai Link Technology Co ltd
Priority to CN201911219880.0A priority Critical patent/CN111007336A/en
Publication of CN111007336A publication Critical patent/CN111007336A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Power Sources (AREA)

Abstract

The invention relates to a serial communication technology, and provides a module production test power-on and power-off automatic detection method and system based on serial communication, wherein the technical scheme can be summarized as follows: the control terminal appoints a communication instruction with the module to be tested in advance, the control terminal sends the communication instruction to the module to be tested, the control terminal judges whether a reply of the module to be tested is received, if the reply is not received, the communication instruction is continuously sent to the module to be tested, if the reply is received, the power-on of the module to be tested is indicated, a required test program is started to start testing, after the testing is finished, the communication instruction is continuously sent to the module to be tested, the control terminal judges whether the reply of the module to be tested is received, if the reply of the module to be tested is not received, the power-off of the module to be tested is indicated, and if the reply is received, the power-off of the module is indicated, and the communication instruction is continuously sent to the module to be tested.

Description

Module production test power-on and power-off automatic detection system and method based on serial port communication
Technical Field
The invention relates to a serial communication technology, in particular to a serial communication-based automatic power-on and power-off detection system and method for module production test.
Background
At present, when a module manufacturer produces and tests a low-voltage power supply module (with a serial communication function), the module is required to be subjected to power-up and power-down tests, and further subjected to performance tests, function tests and the like; secondly, a single chip microcomputer is connected with a tool and a control terminal, when a module is electrified, a pin of the single chip microcomputer is pulled high to give a signal, and the control terminal is informed to start testing through a serial port, in both methods, an operator gives a control terminal signal to start testing, but actually, the problem that the actual tool does not supply power to the module due to poor contact or module arrangement position deviation causes an error power-on signal to the control terminal, a test program is started, and testing time is wasted; the first method is that the operator actually completes the identification of power on and power off, and has the disadvantages of complicated operation, low efficiency, easy error and no automation; in the second method, the production cost is increased.
Disclosure of Invention
The invention aims to provide a serial communication-based automatic detection system and method for power-on and power-off of module production test, which realize automatic identification of power-on and power-off of module production test, increase identification accuracy and greatly improve identification efficiency.
The technical scheme adopted by the invention for solving the problems is that the module production test power-on and power-off automatic detection system based on serial port communication comprises: the control terminal is connected with the testing device;
the testing device is used for being connected with the module to be tested;
the control terminal is used for appointing a communication command with the module to be tested in advance, and after the control terminal is connected with the module to be tested through the testing device, sending a communication command to the module to be tested, and determining whether a reply from the module to be tested is received, if not, then, the communication command is continuously sent to the module under test until the reply of the module under test is received, if the reply of the module under test is received, it indicates that the module under test is powered on, starting the required test program to start the test, after the test program is executed, continuing to send communication command to the module to be tested, and determining whether the reply of the module to be tested is received, if the reply of the module to be tested is not received, prompting the module to be tested to power down, if receiving the reply of the module to be tested, prompting the module to be tested not to power down, and continuously sending the communication command to the module to be tested until the reply of the module to be tested is not received any more.
Preferably, the module that awaits measuring includes the serial ports for receive the communication instruction that comes from control terminal and send and reply control terminal communication instruction, testing arrangement includes that USB changes the serial port board, USB changes the serial port board and includes USB interface and serial port interface, the USB interface is used for being connected with control terminal, the serial port interface be used for with the serial port connection of the module that awaits measuring, the communication interface is unanimous, has improved the efficiency of mutual communication.
Preferably, the control terminal is further configured to prompt detection of connection if the reply of the module to be tested is not received after a set period of time, so that time waste caused by hardware connection problems is avoided, and efficiency is improved.
The automatic power-on and power-off detection method based on serial communication for the module production test is applied to the automatic power-on and power-off detection system based on the serial communication and comprises the following steps:
step 1: the control terminal appoints a communication instruction with the module to be tested in advance;
step 2: the control terminal sends a communication instruction to the module to be tested;
and step 3: the control terminal judges whether the reply of the module to be tested is received, if the reply is received, the module to be tested is indicated to be powered on, the step 4 is entered, otherwise, the module to be tested is prompted not to be powered on, and the step 2 is returned;
and 4, step 4: starting a required test program to start testing;
and 5: after the test program is executed, continuing to send a communication instruction to the module to be tested;
step 6: and the control terminal judges whether the reply of the module to be tested is received or not, if the reply is received, the module to be tested is prompted not to power down, the step 5 is returned, and if the reply is not received, the module to be tested is prompted to power down.
Preferably, in step 4, in starting the required test program to start the test, the test includes performance test, functional test and up-down electrical test, and many-sided test can fully master the condition of the module to be tested.
Preferably, in step 1, the control terminal determines a communication instruction in advance with the module to be tested, where the communication instruction includes a port number, an agreed baud rate, a check bit, and a stop bit, which is beneficial to eliminating interference of other signals and fast identifying the communication instruction.
Preferably, in step 3, when the control terminal determines whether the reply of the module to be detected is received, if the control terminal does not receive the reply of the module to be detected after a set period of time, the detection connection is also prompted, so that the problem that the connection problem is always in a state of sending an instruction, time waste is avoided, and efficiency is improved.
The invention has the advantages of realizing automatic power-on and power-off identification based on the serial port communication module production test, increasing the identification accuracy and greatly improving the test efficiency.
Drawings
FIG. 1 is a hardware system framework diagram of the present invention.
FIG. 2 is a block diagram of a hardware system embodiment of the present invention.
Fig. 3 is a flow chart of the method of the present invention.
Detailed Description
In order to make the technical solutions and advantages of the present invention clearer, the following describes the present invention in detail with reference to the accompanying drawings and specific embodiments.
The invention relates to a module production test power-on and power-off automatic detection system based on serial port communication, which has a frame diagram shown in figure 1 and comprises a control terminal and a test device, wherein the control terminal is connected with the test device;
the testing device is used for being connected with the module to be tested;
the control terminal is used for appointing a communication command with the module to be tested in advance, and after the control terminal is connected with the module to be tested through the testing device, sending a communication command to the module to be tested, and determining whether a reply from the module to be tested is received, if not, then, the communication command is continuously sent to the module under test until the reply of the module under test is received, if the reply of the module under test is received, it indicates that the module under test is powered on, starting the required test program to start the test, after the test program is executed, continuing to send communication command to the module to be tested, and determining whether the reply of the module to be tested is received, if the reply of the module to be tested is not received, prompting the module to be tested to power down, if receiving the reply of the module to be tested, prompting the module to be tested not to power down, and continuously sending the communication command to the module to be tested until the reply of the module to be tested is not received any more.
The module that awaits measuring includes the serial ports for receive the communication instruction that comes from control terminal and reply control terminal communication instruction, testing arrangement includes that USB changes the serial port board, USB changes the serial port board and includes USB interface and serial port interface, the USB interface is used for being connected with control terminal, serial port interface be used for with the serial port connection of the module that awaits measuring, the communication interface is unanimous, has improved the efficiency of mutual communication.
The control terminal is also used for prompting detection connection if the reply of the module to be detected is not received after the set period of time, so that time waste caused by hardware connection problems is avoided, and efficiency is improved.
A module production test power-on and power-off automatic detection method based on serial communication is applied to a module production test power-on and power-off automatic detection system based on serial communication, and a flow chart of the method is shown in figure 3 and comprises the following steps:
step 201: the control terminal appoints a communication instruction with the module to be tested in advance;
step 202: the control terminal sends a communication instruction to the module to be tested;
step 203: the control terminal determines whether a reply of the module to be tested is received, if the reply is received, step 204 is executed, if the reply is not received, the module to be tested is prompted not to be powered on, and the process returns to step 202.
Step 204: starting a required test program to start testing;
step 205: after the test program is executed, the control terminal sends a communication instruction to the module to be tested;
step 206: the control terminal judges whether the reply of the module to be tested is received, if the control terminal does not receive the reply of the module to be tested, step 207 is executed to prompt that the module to be tested is powered off, if the reply is received, step 208 is executed to prompt that the module to be tested is not powered off, and the step 205 is returned to;
step 207: prompting that the module to be tested is powered off;
step 208: prompting that the module to be tested is not powered off;
in step 204, the test program required by the start-up starts to be tested, the test includes performance test, function test, up-down electrical test, and multi-aspect test, and the condition of the module to be tested can be fully mastered.
In step 201, the control terminal determines a communication instruction in advance with the module to be tested, where the communication instruction includes a port number, an agreed baud rate, a check bit, and a stop bit, which is beneficial to eliminating interference of other signals and fast identifying the communication instruction.
In step 203, when the control terminal determines whether the reply of the module to be tested is received, if the control terminal does not receive the reply of the module to be tested after a set period of time, the detection connection is prompted, so that the problem that the connection problem is always in a state of sending an instruction, time waste is avoided, and efficiency is improved.
Examples
In the embodiment, a PC upper computer is taken as an example of a control terminal, and a system frame diagram of the PC upper computer is shown as 2, and the PC upper computer comprises a PC upper computer, a testing device and a module to be tested, wherein the PC upper computer is connected with the testing device, and the module to be tested is connected with the testing device; the PC host computer is used for appointing a communication command with the module to be tested in advance, sending the communication command to the module to be tested after being connected with the module to be tested through the testing device, judging whether the reply of the module to be tested is received, continuing to send the communication command to the module to be tested until the reply of the module to be tested is received if the reply of the module to be tested is received and indicates that the module to be tested is powered on, starting a required testing program to start testing, continuing to send the communication command to the module to be tested after the testing program is finished, judging whether the reply of the module to be tested is received, prompting that the module to be tested is powered off if the reply of the module to be tested is not received, prompting that the module to be tested is not powered off if the reply of the module to be tested is received, continuing to send the communication command to the module to be tested until the reply of the module to be tested is not received, the module that awaits measuring includes the serial ports for receive the communication instruction that comes from the PC host computer and reply PC host computer communication instruction, testing arrangement includes that USB changes the serial port board, USB changes the serial port board and includes USB interface and serial port interface, the USB interface is used for being connected with the PC host computer, the serial port interface be used for with the serial port connection of the module that awaits measuring, the communication interface is unanimous, has improved the efficiency of mutual communication.
The specific operation process by combining the specific method flow steps and the system frame diagram of the embodiment of the invention is as follows: the communication instruction parameter between PC host computer and the module that awaits measuring is agreed well in advance to operating personnel, includes: the number of the connected port, the agreed baud rate, the check bit and the stop bit, an operator connects the module to be tested with the testing device, the PC upper computer sends a communication instruction to the module to be tested through the serial port, and the PC upper computer judges whether the PC upper computer receives a reply of the module to be tested, if the PC upper computer does not receive the reply, the PC upper computer continues to send the communication instruction to the module to be tested, and if the PC upper computer does not receive the reply after a set period of time, the PC upper computer prompts detection connection. If the reply from the module to be tested is received, the module to be tested is powered on, the PC upper computer automatically starts testing sequencing to start testing, after the execution of the test program is finished, the PC upper computer continues to send a communication instruction to the module to be tested, the PC upper computer judges whether the reply of the module to be tested is received, if the reply of the module to be tested is received, the module to be tested is not powered off, the PC upper computer prompts that the module to be tested is not powered off and continues to send a communication instruction to the module to be tested, if the reply of the module to be tested is not received, the module to be tested is powered off, and the PC upper computer prompts that the module to be tested is powered off.

Claims (7)

1. Automatic checkout system that electrified on module production test based on serial port communication, its characterized in that, this system includes: the control terminal is connected with the testing device;
the testing device is used for being connected with the module to be tested;
the control terminal is used for appointing a communication command with the module to be tested in advance, and after the control terminal is connected with the module to be tested through the testing device, sending a communication command to the module to be tested, and determining whether a reply from the module to be tested is received, if not, then, the communication command is continuously sent to the module under test until the reply of the module under test is received, if the reply of the module under test is received, it indicates that the module under test is powered on, starting the required test program to start the test, after the test program is executed, continuing to send communication command to the module to be tested, and determining whether the reply of the module to be tested is received, if the reply of the module to be tested is not received, prompting the module to be tested to power down, if receiving the reply of the module to be tested, prompting the module to be tested not to power down, and continuously sending the communication command to the module to be tested until the reply of the module to be tested is not received any more.
2. The serial port communication-based module production test power-on and power-off automatic detection system according to claim 1, characterized in that: the module that awaits measuring includes the serial ports for receive the communication instruction that comes from control terminal and reply control terminal communication instruction, testing arrangement includes that USB changes the serial port board, USB changes the serial port board and includes USB interface and serial interface, the USB interface is used for being connected with control terminal, serial interface be used for with the serial connection of the module that awaits measuring.
3. The serial port communication-based module production test power-on and power-off automatic detection system according to claim 1, characterized in that: and the control terminal is also used for prompting detection connection if the reply of the module to be detected is not received after a set period of time.
4. The serial communication based module production test power-on and power-off automatic detection method is applied to the serial communication based module production test power-on and power-off automatic detection system as claimed in any one of claims 1 to 3, and comprises the following steps:
step 1: the control terminal appoints a communication instruction with the module to be tested in advance;
step 2: the control terminal sends a communication instruction to the module to be tested;
and step 3: the control terminal judges whether the reply of the module to be tested is received, if the reply is received, the module to be tested is indicated to be powered on, the step 4 is entered, otherwise, the module to be tested is prompted not to be powered on, and the step 2 is returned;
and 4, step 4: starting a required test program to start testing;
and 5: after the test program is executed, continuing to send a communication instruction to the module to be tested;
step 6: and the control terminal judges whether the reply of the module to be tested is received or not, if the reply is received, the module to be tested is prompted not to power down, the step 5 is returned, and if the reply is not received, the module to be tested is prompted to power down.
5. The serial port communication-based module production test power-on and power-off automatic detection method according to claim 4, characterized in that: in step 4, the test program required by the starting starts to be tested, and the test comprises a performance test, a function test and an upper and lower electric test.
6. The serial port communication-based module production test power-on and power-off automatic detection method according to claim 4, characterized in that: in the step 1, the control terminal determines a communication instruction in advance with the module to be tested, wherein the communication instruction comprises a port number, an appointed baud rate, a check bit and a stop bit.
7. The serial port communication-based module production test power-on and power-off automatic detection method according to claim 4, characterized in that: in step 3, when the control terminal judges whether the reply of the module to be detected is received, if the control terminal does not receive the reply of the module to be detected after a set period of time, the detection connection is also prompted.
CN201911219880.0A 2019-11-29 2019-11-29 Module production test power-on and power-off automatic detection system and method based on serial port communication Pending CN111007336A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911219880.0A CN111007336A (en) 2019-11-29 2019-11-29 Module production test power-on and power-off automatic detection system and method based on serial port communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911219880.0A CN111007336A (en) 2019-11-29 2019-11-29 Module production test power-on and power-off automatic detection system and method based on serial port communication

Publications (1)

Publication Number Publication Date
CN111007336A true CN111007336A (en) 2020-04-14

Family

ID=70113950

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911219880.0A Pending CN111007336A (en) 2019-11-29 2019-11-29 Module production test power-on and power-off automatic detection system and method based on serial port communication

Country Status (1)

Country Link
CN (1) CN111007336A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117995261A (en) * 2024-03-21 2024-05-07 星汉智能科技股份有限公司 Smart card power-off test method and device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090292911A1 (en) * 2008-05-21 2009-11-26 Yu-Feng Chien Boot test system and method thereof
CN102447591A (en) * 2010-12-31 2012-05-09 北京谊安医疗系统股份有限公司 System and method for testing multiple serial devices
CN103312852A (en) * 2013-06-07 2013-09-18 广东欧珀移动通信有限公司 Automatic mobile terminal current testing device and testing method thereof
CN104866418A (en) * 2014-02-26 2015-08-26 研祥智能科技股份有限公司 Automatic testing method and system
CN108732443A (en) * 2018-05-21 2018-11-02 湖北三江航天万峰科技发展有限公司 A kind of Auto-Test System and method based on Linux
CN108828350A (en) * 2018-05-04 2018-11-16 天地融电子(天津)有限公司 A kind of test method
CN109274555A (en) * 2018-10-11 2019-01-25 深圳市菲菱科思通信技术股份有限公司 Interchanger automatic test device and test method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090292911A1 (en) * 2008-05-21 2009-11-26 Yu-Feng Chien Boot test system and method thereof
CN102447591A (en) * 2010-12-31 2012-05-09 北京谊安医疗系统股份有限公司 System and method for testing multiple serial devices
CN103312852A (en) * 2013-06-07 2013-09-18 广东欧珀移动通信有限公司 Automatic mobile terminal current testing device and testing method thereof
CN104866418A (en) * 2014-02-26 2015-08-26 研祥智能科技股份有限公司 Automatic testing method and system
CN108828350A (en) * 2018-05-04 2018-11-16 天地融电子(天津)有限公司 A kind of test method
CN108732443A (en) * 2018-05-21 2018-11-02 湖北三江航天万峰科技发展有限公司 A kind of Auto-Test System and method based on Linux
CN109274555A (en) * 2018-10-11 2019-01-25 深圳市菲菱科思通信技术股份有限公司 Interchanger automatic test device and test method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117995261A (en) * 2024-03-21 2024-05-07 星汉智能科技股份有限公司 Smart card power-off test method and device and storage medium

Similar Documents

Publication Publication Date Title
CN108919778B (en) electric automobile vehicle control unit testing arrangement
CN106383268A (en) Mobile terminal power consumption test device and test method
CN101865125B (en) Test method of fan module
CN106844268A (en) A kind of USB device test system, method of testing and test device
CN210041853U (en) Automatic test system for automobile CAN/LIN bus
CN104866418A (en) Automatic testing method and system
CN115128429A (en) Chip testing system and testing method thereof
CN111831495A (en) Production automation test method and system
CN103412203A (en) Motor variable-frequency driver aging test device and test method thereof
CN101706550A (en) Method for testing mainboard
CN215867583U (en) Controller fault diagnosis test system
CN111007336A (en) Module production test power-on and power-off automatic detection system and method based on serial port communication
CN106610885A (en) Server failure detection system and method
CN105094880A (en) USB driving method, computer and compound equipment
CN114584498A (en) Method, device, equipment, system and product for testing power on and power off of gateway equipment
CN110907020A (en) Control system of civil intelligent gas meter controller function detection equipment
TWI555992B (en) Device of synchronized signal monitoring for motor
CN111257674A (en) Test system of converter
KR20090095029A (en) Control method for programable power control unit and test system for semiconductor
CN111596647B (en) Efficient and intelligent test system and method for wind turbine generator
CN209930280U (en) Network automation bus test rack
CN109861766B (en) Function test system and method related to radio frequency signals
CN113992555B (en) Automatic testing method and system for main node network
CN110647430A (en) Board card test system
CN112003656A (en) System and method for testing vehicle-mounted wireless communication terminal assembly product

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: 621000 Sichuan Ailian Technology Co.,Ltd., Anzhou Industrial Park, Mianyang City, Sichuan Province

Applicant after: Sichuan Ailian Technology Co.,Ltd.

Address before: 621000 Mianyang city of Sichuan Province, Sichuan Industrial Park, love science and Technology Co.

Applicant before: SICHUAN AI-LINK TECHNOLOGY Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200414