CN111175632A - Single board testing system based on python - Google Patents
Single board testing system based on python Download PDFInfo
- Publication number
- CN111175632A CN111175632A CN201811345463.6A CN201811345463A CN111175632A CN 111175632 A CN111175632 A CN 111175632A CN 201811345463 A CN201811345463 A CN 201811345463A CN 111175632 A CN111175632 A CN 111175632A
- Authority
- CN
- China
- Prior art keywords
- test
- board
- tester
- python
- testing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
- G01R31/28—Testing of electronic circuits, e.g. by signal tracer
- G01R31/2801—Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP]
- G01R31/2803—Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP] by means of functional tests, e.g. logic-circuit-simulation or algorithms therefor
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Microelectronics & Electronic Packaging (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
The invention discloses a single board testing system based on python, which comprises a testing host and a tester, wherein the testing host is connected to a tester backboard through a USB interface, various testing board cards are arranged on the tester backboard, the testing host compiles a standard testing message based on python language and realizes the encapsulation of the standard testing message and a corresponding testing function, and the tester calls the testing function to test the board cards; the test host writes and generates a test report in a standard format based on the python language. The invention completes the test script based on python language, accelerates development time, only needs a single interface loop and a function test loop for the tester, reduces hardware cost expenditure, and can realize a large amount of function reuse.
Description
Technical Field
The invention relates to a single board testing system based on python, and belongs to the technical field of board card testing.
Background
With the development of the electronic and electrical appliance industry, electronic and electrical appliance device products in various industries need to be combined by a plurality of circuit boards to complete product functions, and in the face of the test and program downloading requirements of a single circuit board, a general scheme is to develop a single device test instrument aiming at related plug-ins, integrate the processes of single board card hardware circuit test, program downloading and the like in a single device.
With the expansion of product lines of enterprises, new product series are continuously released, the requirements for the test process are increasingly complex, the requirements for testing the functions of chips of various colors are gradually enriched, and various program downloading protocols are provided, so that the requirements for developing test devices are more and more complicated.
Different series of products in the same enterprise have different requirements for program downloading, and corresponding downloading interfaces need to be developed for different product series.
Disclosure of Invention
The invention aims to provide a single board test system based on python, which adopts python language to complete the development process of a test program, and only needs to provide a simple interface loop and a function test loop for a board-level system.
In order to achieve the purpose, the technical scheme adopted by the invention is as follows:
a single board test system based on python comprises a test host and a tester, wherein the test host is connected to a tester backboard through a USB interface; various test board cards are arranged on the tester back plate, and all the test board cards are connected by a CAN bus; various testing standard source interfaces are configured on the tester back plate, and various testing standard sources are accessed into the tester back plate through corresponding interfaces to control input and output of various standard sources;
the test host writes and generates a test report in a standard format based on a python language;
the test host writes a standard test message based on python language and realizes the encapsulation of the standard test message and a corresponding test function; the tester calls a test function to test the board card;
the test host finishes downloading the related driving program provided by the chip manufacturer; the debugger directly calls the driver on the test host.
The test board card comprises an input board card, an output board card, a power supply board card and an analog quantity test board card.
The aforementioned CAN bus address is configured manually.
The resistance configuration mode of each board card slot is adjusted by welding the resistance.
The testing standard source interface comprises a CAN port, a serial port and a 485 port.
4-6 com ports are configured on the tester back plate and used for expanding related serial ports.
The tester back plate is provided with a strong current output interface.
The test host is accessed to an enterprise intranet, and all test reports and test contents are transmitted in the intranet in a sharing mode.
The invention achieves the following beneficial effects:
(1) the invention completes the test script based on the python language, accelerates the development time, improves the development speed because the python language is an interpreted language, does not need a compiling process, and can start the test process immediately after the program is compiled.
(2) The tester only needs a single interface loop and a function test loop, reduces the hardware cost expenditure, and can realize a large amount of function multiplexing.
(3) The tester of the invention directly calls and utilizes the relevant program download driver provided by the chip manufacturer, thereby avoiding independently developing various download protocols.
(4) All the test processes are realized by adopting the programming of the test host, so that the later program upgrading and other function expansion are facilitated.
Drawings
FIG. 1 is a block diagram of the system of the present invention.
Detailed Description
The invention is further described below. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
The invention provides a single board testing system based on python, which has a specific structure shown in figure 1: the test system comprises a test host and a tester, wherein the test host is connected to a tester backboard through a USB interface.
Various test board cards are arranged on the tester back plate and comprise an input board card, an output board card, a power supply board card, an analog quantity test board card and the like, all the test board cards are connected through a CAN bus, and the CAN address is guaranteed to be flexibly configurable. The CAN bus has the characteristics of high speed and flexibility and configurability, and all the devices hung on the CAN bus CAN be flexibly increased and decreased. For the CAN bus address, a manual configuration scheme is provided, and the configuration mode of each slot resistance is adjusted in a welding resistance mode, so that the expandability is improved.
The continuously updated market demand can lead the test content to be gradually complicated, the flexible configuration of the address is reserved, the continuously updated capability of the tester is improved, any new standard board card for testing can be randomly replaced in the reserved slot position, and the integral compatibility capability is enhanced.
Various testing standard source interfaces including CAN port, serial port and 485 port are configured on the tester backboard, and various testing standard sources are connected to the tester backboard through corresponding interfaces to control input and output of various standard sources.
For a common test board card, the test content of the common test board card generally needs external voltage and current or a small signal source and the like to provide an original test environment, different test content generally needs different external sources, in order to ensure the compatibility of a debugging instrument, a tester backboard forwards related serial port content based on an FPGA, 4-6 com ports are configured on the tester backboard to be used for expanding related serial ports, and the common test requirements are basically met. And meanwhile, a strong current output interface is arranged on the back plate of the tester.
The test host computer adopts python language to complete the development process of the test program, and the specific contents are as follows:
the test host application layer comprises abundant network setting tools, all test hosts are connected to an enterprise intranet by using the extensible type of the test hosts in the same enterprise, all test reports and test contents can be shared and transmitted in the intranet, the test hosts upload the test reports through the intranet, and the test hosts compile and generate the test reports in a standard format based on python language.
The USB interface realizes the communication between the tester and the test host, the high-speed USB interface expands the tester to use the CAN port, the serial port and the backboard bus interface, the USB interface has the characteristics of hot plug and high speed, and the expansion tester is configured with various test standard source interfaces by utilizing the characteristics of the USB interface, thereby realizing the connection of the tester into various standard sources and improving the expandability of the tester.
The test host provides a standardized program interface for common test contents, such as common switching value test, analog quantity test, more uniform test method and more fixed test hardware, the test host software writes a standard test message based on python language, and the standard test message and a corresponding test function are packaged. For example, for the test of a common relay outlet board card, a uniform standardized program interface is formed, and the test can be completed by directly calling a test function during the test. In the testing process, the problem analysis is carried out by directly inquiring related variables in the testing host for related problems in the testing process by using the glue characteristic of python. For example, a pressure test is required for a part of test boards, a pressure test program is written in the test host, fault content is analyzed through recorded log content, a test report is generated, and the test content and the test report are stored in the test host.
For the test board cards using different main control chips, a common chip manufacturer finishes a drive program for using a test host to download the MCU program, the test host and the tester adopt USB for communication, and a debugging instrument can directly use the glue characteristic of python language to directly call the flash programming program of a chip manufacturer, thereby avoiding independent development of various download protocols.
The test system of the invention completes the development process of the test program on the upper layer of the test host by using the python language, the lower layer board level system only needs to provide a simple interface loop and a function test loop, the development process is independently completed by a tester, and the bottom layer driver completely uses an open source driver, thereby avoiding the development process of protocol content.
The above description is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, several modifications and variations can be made without departing from the technical principle of the present invention, and these modifications and variations should also be regarded as the protection scope of the present invention.
Claims (8)
1. A single board test system based on python is characterized by comprising a test host and a tester, wherein the test host is connected to a tester backboard through a USB interface; various test board cards are arranged on the tester back plate, and all the test board cards are connected by a CAN bus; various testing standard source interfaces are configured on the tester back plate, and various testing standard sources are accessed into the tester back plate through corresponding interfaces to control input and output of various standard sources;
the test host writes and generates a test report in a standard format based on a python language;
the test host writes a standard test message based on python language and realizes the encapsulation of the standard test message and a corresponding test function; the tester calls a test function to test the board card;
the test host finishes downloading the related driving program provided by the chip manufacturer; the debugger directly calls the driver on the test host.
2. The python-based board test system according to claim 1, wherein the test boards comprise an input board, an output board, a power board and an analog test board.
3. A python-based on-board test system according to claim 1, wherein the CAN bus address is manually configured.
4. The python-based board testing system according to claim 1, wherein the resistance configuration of each board card slot is adjusted by welding resistors.
5. The python-based single board test system as claimed in claim 1, wherein the test standard source interface comprises a CAN port, a serial port and a 485 port.
6. The single board testing system based on python according to claim 1, wherein 4-6 com ports are configured on the tester backplane for expanding related serial ports.
7. The python-based single board test system according to claim 1, wherein a strong electrical output interface is arranged on the tester backplane.
8. The python-based single board test system according to claim 1, wherein the test hosts are all connected to an intranet, and all test reports and test contents are transmitted in the intranet in a shared manner.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811345463.6A CN111175632A (en) | 2018-11-13 | 2018-11-13 | Single board testing system based on python |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811345463.6A CN111175632A (en) | 2018-11-13 | 2018-11-13 | Single board testing system based on python |
Publications (1)
Publication Number | Publication Date |
---|---|
CN111175632A true CN111175632A (en) | 2020-05-19 |
Family
ID=70657318
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811345463.6A Pending CN111175632A (en) | 2018-11-13 | 2018-11-13 | Single board testing system based on python |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111175632A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112285528A (en) * | 2020-09-25 | 2021-01-29 | 杭州加速科技有限公司 | Scalable semiconductor test equipment |
CN114327571A (en) * | 2022-03-14 | 2022-04-12 | 合肥悦芯半导体科技有限公司 | File configuration method, chip testing machine and computer readable storage medium |
CN116148636A (en) * | 2023-02-28 | 2023-05-23 | 广东龙芯中科电子科技有限公司 | Method and device for testing embedded board card, electronic equipment and readable storage medium |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101615163A (en) * | 2008-06-23 | 2009-12-30 | 矽创电子股份有限公司 | The circuit for detecting of electronic installation and method for detecting thereof |
CN101950265A (en) * | 2010-09-19 | 2011-01-19 | 南京南瑞继保电气有限公司 | Method for CPU board card program downloading and hardware online detection and plug-in connector |
CN102468993A (en) * | 2010-11-17 | 2012-05-23 | 大唐移动通信设备有限公司 | Terminal test equipment and method |
CN103207338A (en) * | 2013-04-25 | 2013-07-17 | 上海纳恩汽车技术有限公司 | Python script-based automotive electronic test platform |
CN203217364U (en) * | 2013-03-01 | 2013-09-25 | 中国南方电网有限责任公司超高压输电公司检修试验中心 | Function testing system for hardware board card of DC transmission project control and protection system |
CN203858506U (en) * | 2014-04-26 | 2014-10-01 | 广西电网公司电力科学研究院 | Card-inserting type automated test equipment based on network backplane bus |
CN105319480A (en) * | 2014-07-21 | 2016-02-10 | 中兴通讯股份有限公司 | Line diagnosis method and device |
CN206906538U (en) * | 2017-06-19 | 2018-01-19 | 南京南瑞继保电气有限公司 | A kind of test device of On-off signal output board card |
-
2018
- 2018-11-13 CN CN201811345463.6A patent/CN111175632A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101615163A (en) * | 2008-06-23 | 2009-12-30 | 矽创电子股份有限公司 | The circuit for detecting of electronic installation and method for detecting thereof |
CN101950265A (en) * | 2010-09-19 | 2011-01-19 | 南京南瑞继保电气有限公司 | Method for CPU board card program downloading and hardware online detection and plug-in connector |
CN102468993A (en) * | 2010-11-17 | 2012-05-23 | 大唐移动通信设备有限公司 | Terminal test equipment and method |
CN203217364U (en) * | 2013-03-01 | 2013-09-25 | 中国南方电网有限责任公司超高压输电公司检修试验中心 | Function testing system for hardware board card of DC transmission project control and protection system |
CN103207338A (en) * | 2013-04-25 | 2013-07-17 | 上海纳恩汽车技术有限公司 | Python script-based automotive electronic test platform |
CN203858506U (en) * | 2014-04-26 | 2014-10-01 | 广西电网公司电力科学研究院 | Card-inserting type automated test equipment based on network backplane bus |
CN105319480A (en) * | 2014-07-21 | 2016-02-10 | 中兴通讯股份有限公司 | Line diagnosis method and device |
CN206906538U (en) * | 2017-06-19 | 2018-01-19 | 南京南瑞继保电气有限公司 | A kind of test device of On-off signal output board card |
Non-Patent Citations (1)
Title |
---|
余蕾: "光传输设备自动化测试平台的设计与实现第I138-1454页", 《中国优秀博硕士学位论文全文数据库(硕士)信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112285528A (en) * | 2020-09-25 | 2021-01-29 | 杭州加速科技有限公司 | Scalable semiconductor test equipment |
CN114327571A (en) * | 2022-03-14 | 2022-04-12 | 合肥悦芯半导体科技有限公司 | File configuration method, chip testing machine and computer readable storage medium |
CN114327571B (en) * | 2022-03-14 | 2022-06-14 | 合肥悦芯半导体科技有限公司 | File configuration method, chip testing machine and computer readable storage medium |
CN116148636A (en) * | 2023-02-28 | 2023-05-23 | 广东龙芯中科电子科技有限公司 | Method and device for testing embedded board card, electronic equipment and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0530247B1 (en) | In-circuit emulator | |
CN111175632A (en) | Single board testing system based on python | |
CN112014726B (en) | DSP chip testing device and method | |
US5581695A (en) | Source-level run-time software code debugging instrument | |
CN109739770B (en) | Debugging method and device for small program | |
CN111930031B (en) | Relay protection single board debugging system and implementation method thereof | |
CN110405759B (en) | Chip control system | |
JPS6244618B2 (en) | ||
WO2016184170A1 (en) | Smi interface device debugging apparatus and method, and storage medium | |
CN117370093B (en) | Chip debugging method, device, equipment and storage medium | |
JPS6246894B2 (en) | ||
CN103440133A (en) | Development method and system of chip testing software | |
CN104331350A (en) | Method and device for debugging serial port of IC (Integrated Circuit) card electronic equipment | |
CN109144849B (en) | Embedded software debugging method | |
CN106354598A (en) | One-time programmable microcontroller debugging method based on flash memory | |
US20070258298A1 (en) | Parallel programming of flash memory during in-circuit test | |
US11520644B2 (en) | Software-trace message sink peripheral | |
KR100294633B1 (en) | Simulator of plc | |
CN108196988B (en) | Automatic identification method for board card of aerospace test equipment | |
CN116909894B (en) | Virtual-real fusion hybrid dynamic test platform design method | |
CN218675712U (en) | MCU simulation equipment | |
CN110162438B (en) | Simulation debugging device and simulation debugging method | |
CN103902332A (en) | Device for downloading programs of single-chip microcomputer and debugging method | |
JPH1083320A (en) | Microprocessor built-in device | |
Li et al. | Research of “Stub” remote debugging technique |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200519 |
|
RJ01 | Rejection of invention patent application after publication |