CN103544122A - Port adaptive matching synergetic system and synergetic method thereof - Google Patents
Port adaptive matching synergetic system and synergetic method thereof Download PDFInfo
- Publication number
- CN103544122A CN103544122A CN201310525279.0A CN201310525279A CN103544122A CN 103544122 A CN103544122 A CN 103544122A CN 201310525279 A CN201310525279 A CN 201310525279A CN 103544122 A CN103544122 A CN 103544122A
- Authority
- CN
- China
- Prior art keywords
- under test
- equipment under
- module
- hardware information
- 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.)
- Granted
Links
- 230000003044 adaptive effect Effects 0.000 title claims abstract description 19
- 230000002195 synergetic effect Effects 0.000 title claims abstract description 18
- 238000000034 method Methods 0.000 title claims abstract description 17
- 238000012360 testing method Methods 0.000 claims description 51
- 238000001514 detection method Methods 0.000 claims description 21
- 230000008878 coupling Effects 0.000 claims description 15
- 238000010168 coupling process Methods 0.000 claims description 15
- 238000005859 coupling reaction Methods 0.000 claims description 15
- 238000011161 development Methods 0.000 abstract description 4
- 238000013461 design Methods 0.000 description 3
- 230000018109 developmental process Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000033772 system development Effects 0.000 description 2
- 235000015429 Mirabilis expansa Nutrition 0.000 description 1
- 244000294411 Mirabilis expansa Species 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000002474 experimental method Methods 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 230000013011 mating Effects 0.000 description 1
- 235000013536 miso Nutrition 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 238000012545 processing Methods 0.000 description 1
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a port adaptive matching synergetic system which comprises a detected device, a detecting module, a data base, an identification module and a project building module. The detecting module is connected with the detected device through a port to obtain hardware information and port pin information of the detected device. The data base stores storage driving program templates. The identification module is used for identifying the type of the detected device according to the hardware information, drawing a pin distributing table of the detected device according to the port pin information and downloading a driving program template matched with the type of the detected device from the data base. The project building module is used for conducting code relocation on the driving program templates according to the hardware information and the pin distributing table to obtain a driving program suitable for the detected device and used for generating a software project according to the driving program. The port adaptive matching synergetic system can identify the detected device connected into an embedding system automatically and write the driving program of the detected device automatically so that development of the embedding system can be achieved by using one developing tool. The invention further discloses a synergetic method of the port adaptive matching synergetic system.
Description
Technical field
The present invention relates to embedded system field, relate in particular to cooperative system and the Synergistic method thereof of a kind of interface adaptive coupling that can automatically identify matched interfaces.
Background technology
When design embedded hardware, need IO interface type and the host-host protocol thereof of the identification external equipment module on embedded microprocessor that is connected to, and the no exact connect ion of interface that need to judge this external equipment module is to the corresponding port on embedded external equipment.Therefore when at the corresponding embedded software of design, need under the prerequisite of interface of identifying external equipment module, according to the module type of this external equipment module, in microprocessor, write corresponding driver.Therefore, only by a kind of embedded system development tools, cannot complete smoothly the exploitation of Embedded hardware and software section.
At present, Arduino is a sensitiveer hardware development instrument, the Eagle form PCB that can provide according to official and SCH circuit diagram are simplified Arduino module, complete micro-processing controls of independent running, also can be simply and sensor, various electronic components connect (such as infrared ray, ultrasonic, thermistor, photoresistance, servo motor etc.).But Arduino cannot adapt to the driver of all external equipment modules of coupling, and this has brought technical difficulty in embedded development process.
In order to overcome defects such as cannot working in coordination with the interface type of various external equipment modules and host-host protocol thereof in prior art, a kind of cooperative system of interface adaptive coupling has been proposed.
Summary of the invention
The present invention proposes a kind of cooperative system of interface adaptive coupling, can automatically identify the interface of the equipment under test of access embedded system, and can automatically write according to interface the driver of this equipment under test, thereby can utilize a kind of developing instrument to realize the exploitation of embedded system.
The cooperative system that the present invention proposes a kind of interface adaptive coupling, comprising: equipment under test; Detection module, it is connected with described equipment under test by interface, obtains hardware information and the interface pin information of described equipment under test; Database, its store driver template; Identification module, it identifies the type of described equipment under test according to described hardware information, draw the pin assignment table of described equipment under test according to described interface pin information, and downloads the driver template with the type matching of described equipment under test from described database; Engineering is set up module, according to described hardware information and described pin assignment table, described driver template is carried out to the driver that code reorientation obtains being applicable to described equipment under test, and generates soft project according to described driver.
The cooperative system of the interface adaptive coupling that the present invention proposes, described equipment under test comprises: hardware information memory module, described detection module is communicated by letter with described hardware information memory module by single bus agreement, obtains the hardware information leaving in described hardware information memory module.
The Synergistic method that the invention allows for a kind of cooperative system of described interface adaptive coupling, comprises the steps:
Step 1: described equipment under test is connected with described detecting unit, and described detecting unit obtains hardware information and the interface pin information of described equipment under test;
Step 2: described detection module is sent to described identification module by described hardware information and interface pin information;
Step 3: described identification module is identified the type of described equipment under test according to described hardware device, the driver template of the type matching of download and described equipment under test from described database;
Step 4: the pin assignment table of drawing described equipment under test according to described interface pin information;
Step 5: engineering is set up module, according to described hardware information and described pin assignment table, described driver template carried out to code reorientation, obtains being applicable to the driver of described equipment under test;
Step 6: described engineering is set up module and generated soft project according to described driver.
The Synergistic method that the present invention proposes, described step 2 is sent to described identification module by described hardware information and interface pin information and comprises the steps:
Step a1: download trace routine in the chip of described detection module;
Step a2: described detection module connects by single bus agreement and described hardware information memory module;
Step a3: described detection module obtains hardware information and the described interface pin information of described hardware information memory module inside by trace routine.
The Synergistic method that the present invention proposes, institute tells and in step 3, described driver template is carried out to code reorientation and comprise the steps: described hardware information and described pin assignment table to be supplemented in described driver template.
The Synergistic method of the interface adaptive coupling that the present invention proposes, described step 6 further comprises after generating soft project: provide and the corresponding interface of described soft project.
Beneficial effect of the present invention comprises: the module of different interface type can be connected on any IO port on MCU/MP, and these ports can be identified the type of institute's link block, and in system development, automatically generate corresponding driver for Embedded Software Engineer, and can carry out line test to IO port, thereby link block state is detected, not only realize embedded agile development, and reduced design difficulty, improved designed reliability.
Accompanying drawing explanation
Fig. 1 is the structural representation of the cooperative system of interface adaptive coupling of the present invention.
Fig. 2 is the process flow diagram of the Synergistic method of interface adaptive coupling of the present invention.
Embodiment
In conjunction with following specific embodiments and the drawings, the present invention is described in further detail.Implement process of the present invention, condition, experimental technique etc., except the content of mentioning specially below, be universal knowledege and the common practise of this area, the present invention is not particularly limited content.
As shown in Figure 1, the cooperative system of interface adaptive of the present invention coupling comprises that equipment under test, database, detection module, identification module, engineering set up module.Its Synergistic method as shown in Figure 2.
Equipment under test is the external equipment that is connected to interface, stores the corresponding driver template of various device in database.Preferably, user's game server is uploaded driver template to driver template base, or revises the driver template in driver template base.
Detection module comprises a plurality of IO interface (I/O interface), is connected, and obtains the hardware information of equipment under test by IO interface with equipment under test.Hardware information comprises device id number, and interface pin information comprises the pin number of current connection.In the chip of detection module, be loaded with trace routine TestBench, during the operation of TestBench program, travel through each pin on detection module, by single bus agreement, communicate by letter with the hardware information memory module (WireAgent) on the equipment under test being connected on detection module, obtain the device id that leaves hardware store inside modules in, thereby identify the type of this equipment under test.Particularly, hardware information memory module is WireAgent, WireAgent is a simple state machine, equipment under test is held on any pin that is linked into its chips by WireAgent, when equipment under test dispatches from the factory, can in the WireAgent being connected with it, deposit the device id of this equipment under test.For example, when TestBench starts to travel through each pin of detection module, communicate and obtain No. ID of pin is connected therewith equipment under test with each pin, obtain pin P1 in detection module, P2, P3, the equipment under test that P4 connects is 00001 No. ID, with pin P5, the equipment under test that P6 connects is 00002 No. ID.
Identification module is connected with detection module and database, and identification module is according to the type of hardware device identification equipment under test, according to this device id number in database with this type of hardware matching for No. ID.Identification module is downloaded the driver template of mating with the type from database.Identification module is also drawn the pin assignment table of equipment under test according to interface pin information.Engineering is set up module and is connected with identification module.Before setting up soft project, engineering is set up module driver template is carried out to code reorientation, and soon hardware information is inserted in driver template to information relevant in pin assignment table, thereby obtains being applicable to the driver of this equipment under test.
For example, a Serial Peripheral Interface (SPI) module as equipment under test (SPI module), to acquire its device id number be 00001 to the TestBench program of module after testing, this SPI module comprises P1, P2, P3, P4 for the pin connecting.Identification module obtains this No. ID from detection module, and by retrieving in database, the driver template that obtains being applicable to this SPI module leaves in SPI_Module.h header file, the pin assignment table that simultaneously obtains SPI module is: 00001-P1, P2, P3, P4.In the SPI_Module.h template base that identification module is downloaded from database, find the default place of pin (for example, SCLK, MOSI, MISO, SS), by P1, P2, P3, P4 is filled up to default place, and the SPI_Module.h header file obtaining is the driver that meets this SPI module.In like manner, if equipment under test is two or more, identification module is according to No. ID and pin obtaining, and drafting obtains pin assignment table and is:
00001?P1,P2,P3,P4
00002?P5,P6:
Obtain corresponding driver template according to No. ID, the pin in pin assignment table is inserted to the corresponding vacancy of driver module, thereby obtain being applicable to the driver of different equipment under tests.
Engineering is set up module the Drivers Library after reorientation is loaded in new soft project and sets up the soft project that is applicable to this equipment under test, and engineering is set up the api function interface that module also offers this driver of user in addition, facilitates user to call.
Protection content of the present invention is not limited to above embodiment.Do not deviating under the spirit and scope of inventive concept, variation and advantage that those skilled in the art can expect are all included in the present invention, and take appending claims as protection domain.
Claims (6)
1. a cooperative system for interface adaptive coupling, is characterized in that, comprising:
Equipment under test;
Detection module, it is connected with described equipment under test by interface, obtains hardware information and the interface pin information of described equipment under test;
Database, its store driver template;
Identification module, it identifies the type of described equipment under test according to described hardware information, draw the pin assignment table of described equipment under test according to described interface pin information, and downloads the driver template with the type matching of described equipment under test from described database;
Engineering is set up module, according to described hardware information and described pin assignment table, described driver template is carried out to the driver that code reorientation obtains being applicable to described equipment under test, and generates soft project according to described driver.
2. the cooperative system that interface adaptive as claimed in claim 1 mates, it is characterized in that, described equipment under test comprises: hardware information memory module, described detection module is communicated by letter with described hardware information memory module by single bus agreement, obtains the hardware information leaving in described hardware information memory module.
3. a Synergistic method for the cooperative system of the coupling of the interface adaptive described in claim 1 to 2, is characterized in that, comprises the steps:
Step 1: described equipment under test is connected with described detecting unit, and described detecting unit obtains hardware information and the interface pin information of described equipment under test;
Step 2: described detection module is sent to described identification module by described hardware information and interface pin information;
Step 3: described identification module is identified the type of described equipment under test according to described hardware device, the driver template of the type matching of download and described equipment under test from described database;
Step 4: the pin assignment table of drawing described equipment under test according to described interface pin information;
Step 5: engineering is set up module, according to described hardware information and described pin assignment table, described driver template carried out to code reorientation, obtains being applicable to the driver of described equipment under test;
Step 6: described engineering is set up module and generated soft project according to described driver.
4. Synergistic method as claimed in claim 3, is characterized in that, described step 2 is sent to described identification module by described hardware information and interface pin information and comprises the steps:
Step a1: download trace routine in the chip of described detection module;
Step a2: described detection module connects by single bus agreement and described hardware information memory module;
Step a3: described detection module obtains hardware information and the described interface pin information of described hardware information memory module inside by trace routine.
5. Synergistic method as claimed in claim 3, is characterized in that, institute tells and in step 3, described driver template carried out to code reorientation and comprise the steps: described hardware information and described pin assignment table to be supplemented in described driver template.
6. the Synergistic method of interface adaptive coupling as claimed in claim 3, is characterized in that, described step 6 further comprises after generating soft project: provide and the corresponding interface of described soft project.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310525279.0A CN103544122B (en) | 2013-10-29 | 2013-10-29 | The cooperative system and its Synergistic method of a kind of interface adaptive matching |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310525279.0A CN103544122B (en) | 2013-10-29 | 2013-10-29 | The cooperative system and its Synergistic method of a kind of interface adaptive matching |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103544122A true CN103544122A (en) | 2014-01-29 |
CN103544122B CN103544122B (en) | 2017-09-05 |
Family
ID=49967594
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310525279.0A Expired - Fee Related CN103544122B (en) | 2013-10-29 | 2013-10-29 | The cooperative system and its Synergistic method of a kind of interface adaptive matching |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103544122B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103984540A (en) * | 2014-04-14 | 2014-08-13 | 美的集团股份有限公司 | Method and device for generating hardware interface running program |
CN104889990A (en) * | 2015-05-22 | 2015-09-09 | 活点信息技术有限公司 | Robot core control system based on Internet of Things technology |
CN107003974A (en) * | 2016-06-03 | 2017-08-01 | 达闼科技(北京)有限公司 | A kind of interface detection method and device |
CN107168275A (en) * | 2017-03-23 | 2017-09-15 | 许继集团有限公司 | A kind of relay protection function module automatic identification collocation method and device |
CN109032089A (en) * | 2018-07-25 | 2018-12-18 | 珠海格力智能装备有限公司 | The collecting method and device of industrial equipment |
CN109782153A (en) * | 2019-01-14 | 2019-05-21 | 大唐微电子技术有限公司 | A kind of method, apparatus of chip testing, chip and computer storage medium |
CN109921852A (en) * | 2019-04-22 | 2019-06-21 | 南方电网科学研究院有限责任公司 | Polymer optical fiber communication operation wavelength detection method, device, equipment and storage medium |
CN114020350A (en) * | 2021-10-20 | 2022-02-08 | 浪潮金融信息技术有限公司 | Android system-based terminal external device detection method, system and medium |
CN114739543A (en) * | 2022-04-21 | 2022-07-12 | 深圳国微感知技术有限公司 | Adaptive identification system for pressure distribution measurement |
CN115134244A (en) * | 2022-06-24 | 2022-09-30 | 重庆长安汽车股份有限公司 | Vehicle access equipment management method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101281473A (en) * | 2008-04-29 | 2008-10-08 | 纽海信息技术(上海)有限公司 | Method and device for allocating pipe foot |
CN101520756A (en) * | 2009-04-07 | 2009-09-02 | 深圳华为通信技术有限公司 | Equipment driving method, equipment driving device and communication system |
US20100277104A1 (en) * | 2009-01-29 | 2010-11-04 | Ixys Corporation | 1-wire communication protocol and interface circuit |
CN102262600A (en) * | 2010-05-25 | 2011-11-30 | 安凯(广州)微电子技术有限公司 | Method and system for recognizing USB (Universal Serial Bus) equipment |
CN103019751A (en) * | 2011-09-20 | 2013-04-03 | 奇智软件(北京)有限公司 | Plug-in equipment matching and maintaining method |
CN103051261A (en) * | 2012-12-07 | 2013-04-17 | 海尔集团公司 | Motor driving device and driving method |
CN103150198A (en) * | 2013-02-22 | 2013-06-12 | 三一重工股份有限公司 | Display method of configuration software |
-
2013
- 2013-10-29 CN CN201310525279.0A patent/CN103544122B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101281473A (en) * | 2008-04-29 | 2008-10-08 | 纽海信息技术(上海)有限公司 | Method and device for allocating pipe foot |
US20100277104A1 (en) * | 2009-01-29 | 2010-11-04 | Ixys Corporation | 1-wire communication protocol and interface circuit |
CN101520756A (en) * | 2009-04-07 | 2009-09-02 | 深圳华为通信技术有限公司 | Equipment driving method, equipment driving device and communication system |
CN102262600A (en) * | 2010-05-25 | 2011-11-30 | 安凯(广州)微电子技术有限公司 | Method and system for recognizing USB (Universal Serial Bus) equipment |
CN103019751A (en) * | 2011-09-20 | 2013-04-03 | 奇智软件(北京)有限公司 | Plug-in equipment matching and maintaining method |
CN103051261A (en) * | 2012-12-07 | 2013-04-17 | 海尔集团公司 | Motor driving device and driving method |
CN103150198A (en) * | 2013-02-22 | 2013-06-12 | 三一重工股份有限公司 | Display method of configuration software |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103984540A (en) * | 2014-04-14 | 2014-08-13 | 美的集团股份有限公司 | Method and device for generating hardware interface running program |
CN104889990A (en) * | 2015-05-22 | 2015-09-09 | 活点信息技术有限公司 | Robot core control system based on Internet of Things technology |
CN107003974B (en) * | 2016-06-03 | 2020-07-14 | 达闼科技(北京)有限公司 | Interface detection method and device |
CN107003974A (en) * | 2016-06-03 | 2017-08-01 | 达闼科技(北京)有限公司 | A kind of interface detection method and device |
CN107168275A (en) * | 2017-03-23 | 2017-09-15 | 许继集团有限公司 | A kind of relay protection function module automatic identification collocation method and device |
CN107168275B (en) * | 2017-03-23 | 2020-01-17 | 许继集团有限公司 | Automatic identification configuration method and device for relay protection function module |
CN109032089A (en) * | 2018-07-25 | 2018-12-18 | 珠海格力智能装备有限公司 | The collecting method and device of industrial equipment |
CN109782153A (en) * | 2019-01-14 | 2019-05-21 | 大唐微电子技术有限公司 | A kind of method, apparatus of chip testing, chip and computer storage medium |
CN109921852A (en) * | 2019-04-22 | 2019-06-21 | 南方电网科学研究院有限责任公司 | Polymer optical fiber communication operation wavelength detection method, device, equipment and storage medium |
CN114020350A (en) * | 2021-10-20 | 2022-02-08 | 浪潮金融信息技术有限公司 | Android system-based terminal external device detection method, system and medium |
CN114020350B (en) * | 2021-10-20 | 2023-10-03 | 浪潮金融信息技术有限公司 | Android system-based terminal off-load equipment detection method, system and medium |
CN114739543A (en) * | 2022-04-21 | 2022-07-12 | 深圳国微感知技术有限公司 | Adaptive identification system for pressure distribution measurement |
CN115134244A (en) * | 2022-06-24 | 2022-09-30 | 重庆长安汽车股份有限公司 | Vehicle access equipment management method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN103544122B (en) | 2017-09-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103544122A (en) | Port adaptive matching synergetic system and synergetic method thereof | |
US20150066180A1 (en) | Quick processing system and method for smt equipment | |
TW201341811A (en) | Adapter module and motherboard testing device using the same | |
CN108983077B (en) | Circuit board test system and test method based on JTAG link | |
CN104461610A (en) | Platformized multi-ECU online flashing method | |
CN108196861B (en) | Data upgrading method and diagnostic equipment thereof | |
CN106709120A (en) | PCIE (peripheral component interface express) verification method | |
EP2469416A1 (en) | Test bed for an AUTOSAR software component and method for checking an AUTOSAR software component | |
CN105137218B (en) | A kind of system and method for recognizing test product | |
US6842883B2 (en) | Application of co-verification tools to the testing of IC designs | |
CN104793081B (en) | USB interface detection means and method | |
TW200521831A (en) | Apparatus for burning MAC address | |
CN106649186A (en) | Communication method and device for application program and serial port peripheral | |
EP3264226A1 (en) | Pin control method and device | |
JP2007094506A (en) | System, method and program for verifying circuit | |
CN105094886A (en) | Device and method for burning serial number to lower computer containing RS (Recommended Standard) 485 bus from PC (Personal Computer) machine | |
CN112346918A (en) | Method and application for assisting waveform debug in chip verification | |
US6484281B1 (en) | Software-based simulation system capable of simulating the combined functionality of a north bridge test module and a south bridge test module | |
CN109102436A (en) | The soft core property right protection of IP and infringement identification method based on USB3.0 agreement TS1 training sequence | |
CN109214144A (en) | The soft core property right protection of IP and infringement identification method based on USB3.2 agreement TS2 training sequence | |
CN108614901A (en) | A kind of PCIE verification method | |
CN104181828B (en) | CAN bus controller adaptor | |
CN107341064A (en) | Anti-misplug system based on vehicle Variable flow control unit sub-circuit board | |
CN103702112B (en) | Based on register adjustment method and the device of factory menu | |
CN110413471A (en) | A kind of FPGA internal signal data capture method, system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170905 |