CN104615410A - Multi-type hardware interface instruction processing method and system - Google Patents

Multi-type hardware interface instruction processing method and system Download PDF

Info

Publication number
CN104615410A
CN104615410A CN201510032181.0A CN201510032181A CN104615410A CN 104615410 A CN104615410 A CN 104615410A CN 201510032181 A CN201510032181 A CN 201510032181A CN 104615410 A CN104615410 A CN 104615410A
Authority
CN
China
Prior art keywords
instruction
producer
hardware interface
grouping
polymorphic type
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
CN201510032181.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.)
BEIJING CLOUDS POWER EDUCATION&TECHNOLOGY Co Ltd
Original Assignee
BEIJING CLOUDS POWER EDUCATION&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 BEIJING CLOUDS POWER EDUCATION&TECHNOLOGY Co Ltd filed Critical BEIJING CLOUDS POWER EDUCATION&TECHNOLOGY Co Ltd
Priority to CN201510032181.0A priority Critical patent/CN104615410A/en
Publication of CN104615410A publication Critical patent/CN104615410A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention provides a multi-type hardware interface instruction processing method and system. The method includes the steps that A, instructions are grouped according to hardware factories; B, according to issuing instructions, corresponding factory groups are searched for; C, the factory groups are searched for instructions corresponding to the issuing instructions. A middle connection bridge is established so that the issuing instruction can automatically correspond to hardware equipment of different factories. A development designer does not need to know a source and an output direction of data, an address can be automatically found, the data are analyzed and processed, centralized development and management can be facilitated, and the development speed is greatly increased.

Description

A kind of polymorphic type hardware interface command processing method and system
Technical field
The present invention relates to hardware communications technical field, particularly relate to a kind of polymorphic type hardware interface command processing method and system.
Background technology
In design in the past, because docking hardware product is single, instruction type and limited amount, the communication mode between hardware product is comparatively single.If there is numerous no type of hardware, then by above-mentioned single communication mode and the communication technology, module number can be caused sharply to rise, exploitation amount and maintenance are all pressed geometry level and are increased, and are not easy to realize and safeguard.
Summary of the invention
In view of above-mentioned the deficiencies in the prior art part, the object of the present invention is to provide a kind of polymorphic type hardware interface command processing method and system, be intended to the problem that solution existing communication treatment mechanism cannot adapt to many type of hardwares.
In order to achieve the above object, this invention takes following technical scheme:
A kind of polymorphic type hardware interface command processing method, wherein, described method comprises: A, foundation hardware vendors divide into groups to instruction; Send instructions under B, foundation and find corresponding producer's grouping; C, find in producer's grouping with under to send instructions corresponding instruction.
Described polymorphic type hardware interface command processing method, wherein, sends instructions under described and specifically comprises: producer ID, process type, title and/or parameter.
Described polymorphic type hardware interface command processing method, wherein, before described step B, also comprises after steps A: B1, according to producer's grouping, arrange the allocation table of a corresponding record implementation method.
Described polymorphic type hardware interface command processing method, wherein, the instruction number in the grouping of described producer is identical.
Described polymorphic type hardware interface command processing method, wherein, also comprises after described step C: D, when there being the hardware access of new producer, if there is newly-increased instruction, in allocation table, increase new implementation method.
A kind of polymorphic type hardware interface instruction process system, wherein, described system comprises: grouping module, for dividing into groups to instruction according to hardware vendors, addressed module, finds corresponding producer's grouping for sending instructions under foundation, and find in producer's grouping with under to send instructions corresponding instruction.
Described polymorphic type hardware interface instruction process system, wherein, sends instructions under described and specifically comprises: producer, process type, title, parameter.
Described polymorphic type hardware interface instruction process system, wherein, described system also comprises allocation table generation module, for according to producer's grouping, arranges the allocation table of a corresponding record implementation method.
Described polymorphic type hardware interface instruction process system, wherein, the instruction number in the grouping of described producer is identical.
Described polymorphic type hardware interface instruction process system, wherein, described system also comprises information increases module, for when there being the hardware access of new producer, if there is newly-increased instruction, in allocation table, increases new implementation method.
Beneficial effect: a kind of polymorphic type hardware interface command processing method provided by the invention and system, by setting up an intermediate coupling bridge beam, under send instructions can be automatically corresponding with the hardware device of different manufacturers.Concerning exploitation deviser, source and the whereabouts of data need not be known, can automatic addressing, treatment and analysis is carried out to data, concentrated development management can be convenient to, greatly improve the speed of exploitation.
Accompanying drawing explanation
Fig. 1 is the method flow diagram of a kind of polymorphic type hardware interface command processing method in the specific embodiment of the invention.
Fig. 2 uses a kind of polymorphic type hardware interface command processing method in the specific embodiment of the invention to perform the process flow diagram that instruction is issued to equipment.
Fig. 3 is the process flow diagram of the data of a kind of polymorphic type hardware interface command processing method reclaimer feedback used in the specific embodiment of the invention.
Fig. 4 is the concrete schematic diagram of the command assignment table of a kind of polymorphic type hardware interface command processing method in the specific embodiment of the invention.
Fig. 5 is the structured flowchart of a kind of polymorphic type hardware interface instruction process system in the specific embodiment of the invention.
Embodiment
The invention provides a kind of polymorphic type hardware interface command processing method and system.For making object of the present invention, technical scheme and effect clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, be the specific embodiment of polymorphic type hardware interface command processing method of the present invention.Wherein, described method comprises:
S100, foundation hardware vendors divide into groups to instruction.
Send instructions under S200, foundation and find corresponding producer's grouping.
S300, find in producer's grouping with under to send instructions corresponding instruction.
Send instructions under described specifically comprise instruction issue and reclaimer feedback data, send instructions to the specific embodiment of equipment under described, as shown in Figure 2, comprising:
S1, platform data have instruction to issue request
S2, reception program are issued data " data processing platform (DPP) "
Wherein, data processing platform (DPP) be can under to send instructions the handling procedure analyzed.
S3, " data processing platform (DPP) " are analyzed instruction and are divided into groups, and find diverse ways, and the instruction after grouping is sent to different ports and processes
Instruction after S4, analysis and grouping is issued in different hardware devices by the IP address of equipment, device id number.
The specific embodiment of the data of described reclaimer feedback, as shown in Figure 3, comprising:
S10, receive data from serve port (Socket)
S20, reception program are issued data " data processing platform (DPP) "
S30, every bar data have different classification numbers, to data analysis, find diverse ways
Data after S40, analysis and grouping carry out respective handling, write database or cause other operation
Concrete, send instructions under described and specifically comprise: producer ID, process type, title and/or parameter.
It is preferred that also comprise between step S200 and S300: according to producer's grouping, arrange the allocation table of a corresponding record implementation method.
What said method adopted is data analysis and group technology.Due to instruction type, the hardware device kind of product type and access is more.Therefore the process of data analysis, the first step carries out instruction classification to producer, and instruction of the same type has different parameters and packet, is then that the IP of analysis instruction points to (namely search out with under send instructions corresponding part), points to corresponding hardware device.Can address these problems by setting up a command assignment table, during described command assignment table analysis, automatic matching produces packet and finds corresponding disposal route.Described command assignment table is concrete as shown in Figure 4.
Concrete, the instruction number in the grouping of described producer is identical.But the parameter of each instruction and packet etc. are not identical.
Such as, when sending instructions under needing to perform deletion card authority: first, interface operation provides " card number, device id " in the instruction issued.Then, analyze shape parameter table after data module analysis: device id (0001), producer ID(1234), instruction type (1), instruction name (delcard), card number (12345677890), re-send to " data processing platform (DPP) ".
" data processing platform (DPP) ", by instruction matching table, is looked for corresponding method " DelCard ", finally, is required form to packet according to hardware vendors, then oil (gas) filling device IP and device id are issued by port.
And the concrete operations flow process receiving the equipment feedback data of a record of swiping the card is: service platform receives a record from port; A record of swiping the card is confirmed to be through " data processing platform (DPP) "; Find out " card number, device id, producer ID, instruction type (0), instruction name (Entry), card number (12345677890), charge time etc. in the data; By instruction matching table, find corresponding method (SaveEntry); The method writes database data, and issue one receive data reply to corresponding hardware.
More specifically, also comprise after described step S300: when there being the hardware access of new producer, if there is newly-increased instruction, in allocation table, increase new implementation method.
The present invention also provides a kind of polymorphic type hardware interface instruction process system.As shown in Figure 5, described system comprises: grouping module 100, and for dividing into groups to instruction according to hardware vendors, addressed module 200, finds corresponding producer's grouping for sending instructions under foundation, and find in producer's grouping with under to send instructions corresponding instruction.
Send instructions under described and specifically comprise: producer, process type, title, parameter.
More specifically, as shown in Figure 3, described system also comprises allocation table generation module 300, for according to producer's grouping, arranges the allocation table of a corresponding record implementation method.
Wherein, the instruction number in the grouping of described producer is identical.
It is preferred that described system also comprises information increase module, for when there being the hardware access of new producer, if there is newly-increased instruction, in allocation table, increase new implementation method.
In sum, a kind of polymorphic type hardware interface command processing method provided by the invention and system, to exploitation, deviser comes, source and the whereabouts of data need not be known, can automatic addressing, treatment and analysis is carried out to data, concentrated development management can be convenient to, greatly improve the speed of exploitation.
Be understandable that, for those of ordinary skills, can be equal to according to technical scheme of the present invention and the present invention's design and replace or change, and all these change or replace the protection domain that all should belong to the claim appended by the present invention.

Claims (10)

1. a polymorphic type hardware interface command processing method, is characterized in that, described method comprises: A, foundation hardware vendors divide into groups to instruction; Send instructions under B, foundation and find corresponding producer's grouping; C, find in producer's grouping with under to send instructions corresponding instruction.
2. polymorphic type hardware interface command processing method according to claim 1, is characterized in that, send instructions and specifically comprise under described: producer ID, process type, title and/or parameter.
3. polymorphic type hardware interface command processing method according to claim 1, is characterized in that, before described step B, also comprise after steps A: B1, according to producer's grouping, arrange the allocation table of a corresponding record implementation method.
4. polymorphic type hardware interface command processing method according to claim 3, is characterized in that, the instruction number in the grouping of described producer is identical.
5. polymorphic type hardware interface command processing method according to claim 3, is characterized in that, also comprise after described step C: D, when there being the hardware access of new producer, if there is newly-increased instruction, in allocation table, increase new implementation method.
6. a polymorphic type hardware interface instruction process system, it is characterized in that, described system comprises: grouping module, for dividing into groups to instruction according to hardware vendors, addressed module, find corresponding producer's grouping for sending instructions under foundation, and find in producer's grouping with under to send instructions corresponding instruction.
7. polymorphic type hardware interface instruction process system according to claim 6, is characterized in that, send instructions and specifically comprise: producer under described, process type, title, parameter.
8. polymorphic type hardware interface instruction process system according to claim 6, it is characterized in that, described system also comprises allocation table generation module, for according to producer's grouping, arranges the allocation table of a corresponding record implementation method.
9. polymorphic type hardware interface instruction process system according to claim 8, is characterized in that, the instruction number in the grouping of described producer is identical.
10. polymorphic type hardware interface instruction process system according to claim 8, it is characterized in that, described system also comprises information increases module, for when there being the hardware access of new producer, if there is newly-increased instruction, in allocation table, increases new implementation method.
CN201510032181.0A 2015-01-22 2015-01-22 Multi-type hardware interface instruction processing method and system Pending CN104615410A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510032181.0A CN104615410A (en) 2015-01-22 2015-01-22 Multi-type hardware interface instruction processing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510032181.0A CN104615410A (en) 2015-01-22 2015-01-22 Multi-type hardware interface instruction processing method and system

Publications (1)

Publication Number Publication Date
CN104615410A true CN104615410A (en) 2015-05-13

Family

ID=53149874

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510032181.0A Pending CN104615410A (en) 2015-01-22 2015-01-22 Multi-type hardware interface instruction processing method and system

Country Status (1)

Country Link
CN (1) CN104615410A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411550A (en) * 2015-07-31 2017-02-15 中国电信股份有限公司 Antenna control method, device and system
CN112214294A (en) * 2019-09-18 2021-01-12 华为技术有限公司 Method for calling hardware interface and electronic equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63216136A (en) * 1987-03-04 1988-09-08 Fujitsu Ltd Multi-language processing system
CN201118640Y (en) * 2007-07-20 2008-09-17 核工业理化工程研究院 Multi-interface communication protocol converter
CN102434444A (en) * 2012-01-04 2012-05-02 北京爱社时代科技发展有限公司 Industrial air compressor controller capable of automatically transforming with multiple protocols
CN103166776A (en) * 2011-12-13 2013-06-19 成都勤智数码科技有限公司 Access network device total management system
CN103795729A (en) * 2014-02-25 2014-05-14 国云科技股份有限公司 Unified device control method based on multiple protocols

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63216136A (en) * 1987-03-04 1988-09-08 Fujitsu Ltd Multi-language processing system
CN201118640Y (en) * 2007-07-20 2008-09-17 核工业理化工程研究院 Multi-interface communication protocol converter
CN103166776A (en) * 2011-12-13 2013-06-19 成都勤智数码科技有限公司 Access network device total management system
CN102434444A (en) * 2012-01-04 2012-05-02 北京爱社时代科技发展有限公司 Industrial air compressor controller capable of automatically transforming with multiple protocols
CN103795729A (en) * 2014-02-25 2014-05-14 国云科技股份有限公司 Unified device control method based on multiple protocols

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106411550A (en) * 2015-07-31 2017-02-15 中国电信股份有限公司 Antenna control method, device and system
CN112214294A (en) * 2019-09-18 2021-01-12 华为技术有限公司 Method for calling hardware interface and electronic equipment
CN112214294B (en) * 2019-09-18 2022-01-14 华为技术有限公司 Method for calling hardware interface and electronic equipment

Similar Documents

Publication Publication Date Title
CN102799519A (en) Automatic test method for cluster file system
CN101090295A (en) Test system and method for ASON network
JP2016164775A (en) Field device commissioning system and method
CN105071994B (en) A kind of mass data monitoring system
CN108073146A (en) The automatic business processing control hardware engineering of the requirement represented using framework is planned
CN106095597A (en) Client data processing method and processing device
CN111026460A (en) Method and device for quickly matching points by using area template in configuration tool
CN104504495A (en) Operation and maintenance abnormity processing method, device and equipment
CN104951481A (en) Method and device for managing database connection
CN104615410A (en) Multi-type hardware interface instruction processing method and system
CN106156170A (en) The analysis of public opinion method and device
CN107194658A (en) The project iteration branch management method of micro services system
CN104158714A (en) Master device of process field bus decentralized periphery
CN113918954A (en) Automated vulnerability scanning integration method, device, equipment and storage medium
CN112860954A (en) Real-time computing method and real-time computing system
CN108282347A (en) A kind of server data online management method and system
CN105871659A (en) Monitoring method and device of newly added server
CN102523229B (en) A kind of access method of information and equipment
CN105703964A (en) Online application system test method and equipment
CN104407848A (en) Data processing method and device
US11327471B2 (en) Building and tracking of an automation engineering environment
CN103268274B (en) A kind of method of testing based on fieldbus experiment porch and device
CN113671924A (en) DCS real-time value setting method and system, equipment and storage medium
CN113269538A (en) Method, device and equipment for forwarding parallel approval nodes and storage medium
CN102523124A (en) Method and apparatus for carrying out batch processing on lots of hosts in CDN network

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: 20150513