CN104572377A - Device debugging platform and method based on interface bus technology - Google Patents
Device debugging platform and method based on interface bus technology Download PDFInfo
- Publication number
- CN104572377A CN104572377A CN201510041907.7A CN201510041907A CN104572377A CN 104572377 A CN104572377 A CN 104572377A CN 201510041907 A CN201510041907 A CN 201510041907A CN 104572377 A CN104572377 A CN 104572377A
- Authority
- CN
- China
- Prior art keywords
- module
- profibus
- script
- test
- interface
- 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
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a device debugging platform and method based on the interface bus technology. The platform comprises a hardware module supporting a PROFIBUS bus interface protocol and a PROFIBUS upper computer testing tool. The PROFIBUS upper computer testing tool is connected with the hardware module through an Ethernet interface. A Power PC processor module is connected to an isolation filter device through a DM9161 chip and connected with the PROFIBUS upper computer testing tool through an RJ45 interface. The device debugging platform has the advantages that the platform can use a testing script compiled by a system in advance to perform protocol consistency testing on the equipment of a PROFIBUS bus interface, a universal automatic testing script which conforms to the script compiling equipment product function of C language standards, product testing efficiency is increased, and manpower cost is lowered.
Description
Technical field
The present invention relates to a kind of device debugging platform based on interface bus technology and method, belong to technical field of electric power.
Background technology
PROFIBUS is one of representational standard for Fieldbus of current most, with the technical characterstic of its uniqueness, strict authentication specifications, open standard, the support of numerous manufacturer and the application professional etiquette of development, become most important and most widely used standard for Fieldbus.First this bus is released by Siemens Company, within 1989, becomes DIN DIN19245, within 1996, becomes European standard EN50170, and in Dec, 1999 is accepted as a part of international standard IEC61158.Within 2006, PROFIBUS becomes China's first industrial communication field field bus technique national standard, and standard No. is: GB/T20540-2006.Along with domestic to the application of PROFIBUS bussing technique and going deep into Code and standard, product development personnel pay attention to all the more carrying out the test of consistent property and product automation test to developed support PROFIBUS interfacing equipment, also propose requirements at the higher level to testing tool intellectuality simultaneously.Domestic in PROFIBUS bus automatic test art backwardness relatively at present, consistent property testing tool depends on foreign technology platform more, expensive and function singleness, and product is generally only for carrying out the test of consistent property.
Summary of the invention
For filling up PROFIBUS bus automatic test field tool fault, the present invention proposes a kind of multiduty powerful PROFIBUS bus apparatus automated test tool.
Technical scheme of the present invention is as follows:
A kind of device debugging platform based on interface bus technology, described platform comprises the hardware module and PROFIBUS host computer testing tool of supporting PROFIBUS bus inferface protocol, and described PROFIBUS host computer testing tool is connected with hardware module by Ethernet interface;
Described hardware module comprises PowerPC processor module, PROFIBUS driver, FPGA field bus communication controller module:
Described PowerPC processor module is used for being connected to Ethernet, realizes being connected with the communication of PROFIBUS host computer testing tool;
Described PROFIBUS driver is used for FPGA field bus communication controller module and is connected to PROFIBUS-DP bus by the PROFIBUS bus signals driver chip in PROFIBUS driver, and PROFIBUS-DP bus is connected to PROFIBUS equipment to be tested;
Described FPGA field bus communication controller module is for receiving the test command message of PowerPC processor module transmission and converting PROFIBUS-DP bus signals to.
Above-mentioned PowerPC processor module is connected to isolation filter device by DM9161 chip, then is connected with PROFIBUS host computer testing tool by RJ45 interface.
Above-mentioned hardware module also comprises DM9161 module, isolation filter module, RJ45 module, described PowerPC processor module is by DM9161 model calling to isolation filter module, and described isolation filter module is connected with PROFIBUS host computer testing tool by RJ45 module again.
Above-mentioned PROFIBUS host computer testing tool parameter collection module, script driver module, test result analysis module and Hardware drive module;
Described parameter collection module collection test parameter, by script driver module test script, then analyzed by test result analysis module, described Hardware drive module is for driving hardware module.
Above-mentioned parameter collection module utilizes information input equipment GSD file acquisition required test PROFIBUS interface arrangement test parameter information.
Above-mentioned script driver module comprises LUA script module and C language script module;
Described LUA script module adopts LUA language compilation PROFIBUS uniformity test script, trial function content format predefine in script, and the inside comprises content that needs send and the reply that expection will receive and dependence test item bomp information;
Described C language script module adopts the interactive automatic test script of C grammer script edit apparatus function, and script includes message transmission and reception and interface alternation function, can obtain the information of user's input, dynamic display device data variable, user operation prompting.
Above-mentioned test result analysis module comprises autorun and manual test function.
Based on a device debugging method for interface bus technology, utilize above-mentioned device debugging platform, step is as follows:
(1) parameters input interface and GSD document input apparatus test parameter, is utilized;
(2), write/check test script;
(3), select/arrange PROFIBUS bus master parameter;
(4), device is tested automatically;
(5), test result is checked and engineering preservation.
The beneficial effect that the present invention reaches:
The present invention is by the combination of these three kinds of technology of MFC, LUA, C grammer, design automation test script grammer and associated user's Using API Function, design is convenient to multiple PROFIBUS main website card and is driven expansion interface, realizes hardware module driving and the driving of SIEMENS PROFIBUS address card, complete the major function of automated test tool, and content measurement and test result are displayed in visual mode, can intuitively show each test event whether by and do not pointed out by reason.Simultaneously, this testing tool devises powerful manual test function, comprise the complete message manual test function that specification defines, the interactively apparatus function test script of C grammer script edit can also be used, test for device functionality provides a kind of convenient and Automation Approach, exempts the expensive PLC of purchase, builds test environment and write PLC logical program cost.
Accompanying drawing explanation
Fig. 1 is the structural representation of debug platform of the present invention;
Fig. 2 is the process flow diagram of the inventive method;
Fig. 3 is a kind of installation example in the specific embodiment of the invention;
Fig. 4 is harvester parameter information one input example in the specific embodiment of the invention;
Fig. 5 is that Scripting Edition of the present invention checks input example;
Fig. 6 is that Fig. 4 script carries out automatic test test result displaying interface;
Fig. 7 is that manual test test result displaying interface is carried out in invention.
Embodiment
Below in conjunction with accompanying drawing, the invention will be further described.Following examples only for technical scheme of the present invention is clearly described, and can not limit the scope of the invention with this.
As shown in Figure 1, a kind of device debugging platform based on interface bus technology, described platform comprises the hardware module and PROFIBUS host computer testing tool of supporting PROFIBUS bus inferface protocol, and described PROFIBUS host computer testing tool is connected with hardware module by Ethernet interface;
Described hardware module comprises PowerPC processor module, PROFIBUS driver, FPGA field bus communication controller module:
Described PowerPC processor module is used for being connected to Ethernet, realizes being connected with the communication of PROFIBUS host computer testing tool;
Described PROFIBUS driver is used for FPGA field bus communication controller module and is connected to PROFIBUS-DP bus by the PROFIBUS bus signals driver chip in PROFIBUS driver, and PROFIBUS-DP bus is connected to PROFIBUS equipment to be tested;
Described FPGA field bus communication controller module is for receiving the test command message of PowerPC processor module transmission and converting PROFIBUS-DP bus signals to.
Above-mentioned hardware module also comprises DM9161 module, isolation filter module, RJ45 module, described PowerPC processor module is by DM9161 model calling to isolation filter module, and described isolation filter module is connected with PROFIBUS host computer testing tool by RJ45 module again.
Above-mentioned PROFIBUS host computer testing tool parameter collection module, script driver module, test result analysis module and Hardware drive module;
Described parameter collection module collection test parameter, by script driver module test script, then analyzed by test result analysis module, described Hardware drive module is for driving hardware module.
Above-mentioned parameter collection module utilizes information input equipment GSD file acquisition required test PROFIBUS interface arrangement test parameter information.
Above-mentioned script driver module comprises LUA script module and C language script module;
Described LUA script module adopts LUA language compilation PROFIBUS uniformity test script, trial function content format predefine in script, and the inside comprises content that needs send and the reply that expection will receive and dependence test item bomp information;
Described C language script module adopts the interactive automatic test script of C grammer script edit apparatus function, and script includes message transmission and reception and interface alternation function, can obtain the information of user's input, dynamic display device data variable, user operation prompting.
Above-mentioned test result analysis module comprises autorun and manual test function.
As shown in Figure 2, a kind of device debugging method based on interface bus technology, utilize above-mentioned device debugging platform, step is as follows:
(1) parameters input interface and GSD document input apparatus test parameter, is utilized;
(2), write/check test script;
(3), select/arrange PROFIBUS bus master parameter;
(4), device is tested automatically;
(5), test result is checked and engineering preservation.
Embodiment:
Hardware module installs SIEMENS PROFIBUS address card, and install automated test tool software on computers, open software, use information input equipment, by the test parameter information (Fig. 3,4) needed for multiple means input media, open editor and check test script (Fig. 5), select in testing tool and after setting main website parameter, automatic test (Fig. 6) carried out to device.Manual test function can be selected to carry out manual test (Fig. 7) to device simultaneously.Thus realize a kind of implementation method of the device debugging platform based on interface bus technology.
The present invention specifically follows in PROFIBUS bus specification (EN50170 and extension specification thereof) about DP/DPV1 communications protocol and the definition of slave station state machine, and relevant PROFIBUS slave station uniformity test specification, modern computer automatization testing technique and microelectronics infotech are merged, testing tool host computer, based on MFC platform, adopts LUA language and the hybrid script of C language; Hardware module adopts FPGA+PowerPC controller (also supporting SIEMENS PROFIBUS address card), realizes PROFIBUS bus interface equipment protocol specification uniformity test, and the interactive automatic test of functions of the equipments.Application the present invention, the test script that system can be used to write in advance on the one hand carries out testing protocol consistency to the equipment realizing PROFIBUS bus interface, the automatic test script of script edit device product function that is general, that meet C language specification can be used on the other hand, improve product test work efficiency, save human cost.
The above is only the preferred embodiment of the present invention; it should be pointed out that for those skilled in the art, under the prerequisite not departing from the technology of the present invention principle; can also make some improvement and distortion, these improve and distortion also should be considered as protection scope of the present invention.
Claims (7)
1. the device debugging platform based on interface bus technology, it is characterized in that: described platform comprises the hardware module and PROFIBUS host computer testing tool of supporting PROFIBUS bus inferface protocol, and described PROFIBUS host computer testing tool is connected with hardware module by Ethernet interface;
Described hardware module comprises PowerPC processor module, PROFIBUS driver, FPGA field bus communication controller module:
Described PowerPC processor module is used for being connected to Ethernet, realizes being connected with the communication of PROFIBUS host computer testing tool;
Described PROFIBUS driver is used for FPGA field bus communication controller module and is connected to PROFIBUS-DP bus by the PROFIBUS bus signals driver chip in PROFIBUS driver, and PROFIBUS-DP bus is connected to PROFIBUS equipment to be tested;
Described FPGA field bus communication controller module is for receiving the test command message of PowerPC processor module transmission and converting PROFIBUS-DP bus signals to.
2. the device debugging platform based on interface bus technology according to claim 1, it is characterized in that: described hardware module also comprises DM9161 module, isolation filter module, RJ45 module, described PowerPC processor module is by DM9161 model calling to isolation filter module, and described isolation filter module is connected with PROFIBUS host computer testing tool by RJ45 module again.
3. the device debugging platform based on interface bus technology according to claim 1, is characterized in that: described PROFIBUS host computer testing tool parameter collection module, script driver module, test result analysis module and Hardware drive module;
Described parameter collection module collection test parameter, by script driver module test script, then analyzed by test result analysis module, described Hardware drive module is for driving hardware module.
4. the device debugging platform based on interface bus technology according to claim 3, is characterized in that: described parameter collection module utilizes information input equipment GSD file acquisition required test PROFIBUS interface arrangement test parameter information.
5. the device debugging platform based on interface bus technology according to claim 3, is characterized in that: described script driver module comprises LUA script module and C language script module;
Described LUA script module adopts LUA language compilation PROFIBUS uniformity test script, trial function content format predefine in script, and the inside comprises content that needs send and the reply that expection will receive and dependence test item bomp information;
Described C language script module adopts the interactive automatic test script of C grammer script edit apparatus function, and script includes message transmission and reception and interface alternation function, can obtain the information of user's input, dynamic display device data variable, user operation prompting.
6. the device debugging platform based on interface bus technology according to claim 3, is characterized in that: described test result analysis module comprises autorun and manual test function.
7., based on a device debugging method for interface bus technology, it is characterized in that the device debugging platform utilized described in claim 1-7, step is as follows:
(1) parameters input interface and GSD document input apparatus test parameter, is utilized;
(2), write/check test script;
(3), select/arrange PROFIBUS bus master parameter;
(4), device is tested automatically;
(5), test result is checked and engineering preservation.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510041907.7A CN104572377A (en) | 2015-01-27 | 2015-01-27 | Device debugging platform and method based on interface bus technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510041907.7A CN104572377A (en) | 2015-01-27 | 2015-01-27 | Device debugging platform and method based on interface bus technology |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104572377A true CN104572377A (en) | 2015-04-29 |
Family
ID=53088511
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510041907.7A Pending CN104572377A (en) | 2015-01-27 | 2015-01-27 | Device debugging platform and method based on interface bus technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104572377A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105137946A (en) * | 2015-09-11 | 2015-12-09 | 重庆川仪自动化股份有限公司 | Communication detection method and system for PROFIBUS PA protocol instrument |
CN111370052A (en) * | 2018-12-25 | 2020-07-03 | 北京兆易创新科技股份有限公司 | Nonvolatile memory verification system and method |
CN112506728A (en) * | 2021-02-04 | 2021-03-16 | 上海国微思尔芯技术股份有限公司 | Test method and device for prototype verification system |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6122713A (en) * | 1998-06-01 | 2000-09-19 | National Instruments Corporation | Dual port shared memory system including semaphores for high priority and low priority requestors |
US20040210664A1 (en) * | 2003-04-17 | 2004-10-21 | Schneider Automation Inc. | System and method for transmitting data |
CN101841542A (en) * | 2010-05-07 | 2010-09-22 | 北京鼎实创新科技有限公司 | Method for realizing PROFIBUS master station communication protocol based on FPGA (Field Programmable Gate Array) technology |
CN102789210A (en) * | 2011-05-16 | 2012-11-21 | 上海华建电力设备股份有限公司 | Configurable industrial bus interface supporting protocol |
CN102833142A (en) * | 2012-09-10 | 2012-12-19 | 天津理工大学 | Profibus-DP slave station device on basis of FDGA (Field Programmable Gate Array) |
CN103618657A (en) * | 2013-11-29 | 2014-03-05 | 南京科远自动化集团股份有限公司 | RS485-Profibus PA bus converter |
CN104021108A (en) * | 2014-05-28 | 2014-09-03 | 中山火炬职业技术学院 | Communication equipment based on PROFIBUS-DP protocol |
-
2015
- 2015-01-27 CN CN201510041907.7A patent/CN104572377A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6122713A (en) * | 1998-06-01 | 2000-09-19 | National Instruments Corporation | Dual port shared memory system including semaphores for high priority and low priority requestors |
US20040210664A1 (en) * | 2003-04-17 | 2004-10-21 | Schneider Automation Inc. | System and method for transmitting data |
CN101841542A (en) * | 2010-05-07 | 2010-09-22 | 北京鼎实创新科技有限公司 | Method for realizing PROFIBUS master station communication protocol based on FPGA (Field Programmable Gate Array) technology |
CN102789210A (en) * | 2011-05-16 | 2012-11-21 | 上海华建电力设备股份有限公司 | Configurable industrial bus interface supporting protocol |
CN102833142A (en) * | 2012-09-10 | 2012-12-19 | 天津理工大学 | Profibus-DP slave station device on basis of FDGA (Field Programmable Gate Array) |
CN103618657A (en) * | 2013-11-29 | 2014-03-05 | 南京科远自动化集团股份有限公司 | RS485-Profibus PA bus converter |
CN104021108A (en) * | 2014-05-28 | 2014-09-03 | 中山火炬职业技术学院 | Communication equipment based on PROFIBUS-DP protocol |
Non-Patent Citations (3)
Title |
---|
倪君: "基于LUA脚本语言的光模块测试系统", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
孙倩华 等: "FPGA和ARM的Profibus-DP主站通信平台设计", 《单片机与嵌入式系统应用》 * |
杨菲: "基于以太网的PROFIBUS测试平台的研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105137946A (en) * | 2015-09-11 | 2015-12-09 | 重庆川仪自动化股份有限公司 | Communication detection method and system for PROFIBUS PA protocol instrument |
CN111370052A (en) * | 2018-12-25 | 2020-07-03 | 北京兆易创新科技股份有限公司 | Nonvolatile memory verification system and method |
CN111370052B (en) * | 2018-12-25 | 2022-03-29 | 北京兆易创新科技股份有限公司 | Nonvolatile memory verification system and method |
CN112506728A (en) * | 2021-02-04 | 2021-03-16 | 上海国微思尔芯技术股份有限公司 | Test method and device for prototype verification system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105788227B (en) | Fault diagnosis equipment for electricity consumption information acquisition system | |
CN102799511A (en) | Android-based automatic test method and system | |
CN104516798B (en) | Wireless one-to-many test system | |
CN104483959A (en) | Fault simulation and test system | |
CN107861874B (en) | Full-automatic automobile electronic equipment testing system | |
CN104572377A (en) | Device debugging platform and method based on interface bus technology | |
KR101540959B1 (en) | Apparatus For Function Test of Intelligent Electronic Device(IED) In Substation Automation System Based On IEC61850 | |
CN106527401B (en) | Automatic test system for flight control test | |
CN105354118A (en) | Method, apparatus and system for automatically testing intelligent terminal | |
CN105446318A (en) | Portable measurement and control equipment suitable for carrier rocket flight control system | |
CN112631937A (en) | Automatic CAN operation testing method and device for T-Box | |
CN110703741A (en) | Multifunctional communication debugging equipment | |
CN215726739U (en) | Aircraft parts electricity door mechanism test system | |
CN105807730A (en) | Digital equipment industrial control method, digital equipment industrial control device and digital equipment industrial control system | |
CN103812830B (en) | A kind of protocol authentication method for bus slave station equipment | |
CN111277303A (en) | Production testing method and system based on universal asynchronous receiving and transmitting transmitter to Bluetooth | |
CN203720647U (en) | Air data computer testing system | |
CN202870319U (en) | Test system for nuclear magnetic resonance logger | |
CN103595854A (en) | Handheld device and communication method between the handheld device and electronic product | |
CN104022933A (en) | Vehicle bus debugging system based on multi-mode signal conversion | |
CN104461629B (en) | PC terminals and its method for installing application program of mobile phone | |
CN111639413B (en) | Satellite automatic test system and method | |
CN203522753U (en) | Multifunctional serial port testing tool | |
CN111505481A (en) | Mainboard test system, method, equipment and medium | |
CN207337188U (en) | A kind of servomotor detection device based on PLC |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150429 |