CN102546630A - Io communication method - Google Patents
Io communication method Download PDFInfo
- Publication number
- CN102546630A CN102546630A CN201210001183XA CN201210001183A CN102546630A CN 102546630 A CN102546630 A CN 102546630A CN 201210001183X A CN201210001183X A CN 201210001183XA CN 201210001183 A CN201210001183 A CN 201210001183A CN 102546630 A CN102546630 A CN 102546630A
- Authority
- CN
- China
- Prior art keywords
- communication
- dynamic link
- hardware
- link library
- read
- 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
Landscapes
- Communication Control (AREA)
Abstract
The invention discloses an IO (input output) communication method, and relates to the technical field of communication of hardware equipment. The IO communication method comprises the following steps: A, encapsulating a read-write operation of the hardware equipment into a standard performance function; B, compiling the encapsulated performance function into a dynamic link library; and C, loading the dynamic link library and invoking the performance function in the dynamic link library so as to realize communication with the hardware equipment. The invention provides a set of normative function interface standard, which encapsulates the communication method of specific hardware equipment into a plugin invoked during the communication of the hardware equipment, can realize the invoking of an external application on hardware IO, and is unrelated to a specific communication protocol; and by adopting the IO communication method, a unified communication interface which is unrelated to a hardware transmission protocol can be provided for access and control of the hardware equipment.
Description
Technical field
The present invention relates to the hardware device communication technical field, relate in particular to a kind of IO means of communication.
Background technology
At present; The integrated circuit board collection is adopted in the data management of carrying out between common automation control system and the hardware that interrelates more; The storage of database and read-write, and and the hardware device of bottom such as the communication between PLC, the controller etc. also need carry out the mutual of various communication protocols, in case change hardware device and communication protocol; Control system IO data communication is also changed thereupon; Cause the repetition of extensive work, efficient is low, and control system overall architecture and control performance have all been produced unfavorable and influence to a certain degree.
Summary of the invention
The technical problem that (one) will solve
The technical problem that the present invention will solve is: a kind of IO means of communication are provided, and it can provide unified and the irrelevant communication interface of hardware host-host protocol for the visit of hardware device and control.
(2) technical scheme
For addressing the above problem, the invention provides a kind of IO means of communication, may further comprise the steps:
A: the power function that the read-write operation of hardware device is packaged into standard;
B: the power function after will encapsulating is compiled as dynamic link library;
C: load said dynamic link library and call power function wherein, realize communication with hardware device.
Preferably, said method also comprises: before writing hardware, carry out interlocking and detect, and the step that detected interlocking is provided with.
Preferably, said method also comprises: the grade according to Alarm is classified, and the step of Alarm solution is set in advance.
Preferably, said step C further may further comprise the steps:
C1: the user sends the request of reading;
C2: the value of from data buffering system, transferring the read request passage according to the said read functions function that reads in the request call dynamic link library;
C3: return to the user and to read the result.
Preferably, said step C further may further comprise the steps:
C4: the user sends the request that writes;
C5: the write-in functions function according in the said write request call dynamic link library sends changing value to related hardware;
C6: return to the user and to write the result.
(3) beneficial effect
The present invention provides the function interface standard of a cover standard; It is encapsulated as plug-in unit with the certain hardware device means of communication and calls for the hardware device communication time; Can realize external application to Hardware I call and irrelevant with concrete communications protocol, the present invention can provide unified and the irrelevant communication interface of hardware host-host protocol for the visit of hardware device and control.
Description of drawings
Fig. 1 is the flow chart of the IO means of communication described in the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing and embodiment, specific embodiments of the invention describes in further detail.Following examples are used to explain the present invention, but are not used for limiting scope of the present invention.
As shown in Figure 1, the invention provides a kind of IO means of communication, may further comprise the steps:
A: the power function that the read-write operation of hardware device is packaged into standard;
B: the power function after will encapsulating is compiled as dynamic link library;
C: load said dynamic link library and call power function wherein, realize communication with hardware device.
In this step, read, write two kinds of communication modes said comprising with communication hardware device, and wherein read operation further may further comprise the steps:
C1: the user sends the request of reading;
C2: the value of from data buffering system, transferring the read request passage according to the said read functions function that reads in the request call dynamic link library;
C3: return to the user and to read the result.
Write operation may further comprise the steps:
C4: the user sends the request that writes;
C5: the write-in functions function according in the said write request call dynamic link library sends changing value to related hardware;
C6: return to the user and to write the result.
Preferably, said method also comprises: before writing hardware, carry out interlocking and detect, and the step that detected interlocking is provided with.
Preferably, said method also comprises: the grade according to Alarm is classified, and the step of Alarm solution is set in advance.
Above execution mode only is used to explain the present invention; And be not limitation of the present invention; The those of ordinary skill in relevant technologies field under the situation that does not break away from the spirit and scope of the present invention, can also be made various variations and modification; Therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.
Claims (5)
1. IO means of communication is characterized in that, may further comprise the steps:
A: the power function that the read-write operation of hardware device is packaged into standard;
B: the power function after will encapsulating is compiled as dynamic link library;
C: load said dynamic link library and call power function wherein, realize communication with hardware device.
2. the IO means of communication as claimed in claim 1 is characterized in that, also comprise: before writing hardware, carry out interlocking and detect, and the step that detected interlocking is provided with.
3. the IO means of communication as claimed in claim 1 is characterized in that, also comprise: the grade according to Alarm is classified, and the step of Alarm solution is set in advance.
4. the IO means of communication as claimed in claim 1 is characterized in that, said step C further may further comprise the steps:
C1: the user sends the request of reading;
C2: the value of from data buffering system, transferring the read request passage according to the said read functions function that reads in the request call dynamic link library;
C3: return to the user and to read the result.
5. the IO means of communication as claimed in claim 1 is characterized in that, said step C further may further comprise the steps:
C4: the user sends the request that writes;
C5: the write-in functions function according in the said write request call dynamic link library sends changing value to related hardware;
C6: return to the user and to write the result.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210001183XA CN102546630A (en) | 2012-01-04 | 2012-01-04 | Io communication method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210001183XA CN102546630A (en) | 2012-01-04 | 2012-01-04 | Io communication method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102546630A true CN102546630A (en) | 2012-07-04 |
Family
ID=46352588
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210001183XA Pending CN102546630A (en) | 2012-01-04 | 2012-01-04 | Io communication method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102546630A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108255542A (en) * | 2018-01-05 | 2018-07-06 | 北京北信源信息安全技术有限公司 | The serial ports parallel port management-control method and device of a kind of virtual machine |
CN109144579A (en) * | 2018-07-17 | 2019-01-04 | 广州睿本信息科技有限公司 | A kind of Web system reads the method and computer readable storage medium of hardware |
CN110221867A (en) * | 2019-05-31 | 2019-09-10 | 湖北三江航天万峰科技发展有限公司 | Pulse I/O function cartoon letters drive system and method under a kind of XP system |
CN111813461A (en) * | 2020-07-06 | 2020-10-23 | 斑马网络技术有限公司 | Vehicle ECU calibration method, device and equipment |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03158947A (en) * | 1989-11-17 | 1991-07-08 | Nec Corp | Communication control system |
CN1444138A (en) * | 2003-04-18 | 2003-09-24 | 上海中纬软件科技有限公司 | Tool bag for control system |
CN101620536A (en) * | 2009-08-17 | 2010-01-06 | 用友软件股份有限公司 | Method and device for invoking performance function |
CN101645745A (en) * | 2009-08-19 | 2010-02-10 | 厦门敏讯信息技术股份有限公司 | Control appliance of comprehensive tester and testing method thereof |
CN101945293A (en) * | 2009-07-08 | 2011-01-12 | 超威半导体(上海)有限公司 | Method and device for using system memory in three-dimensional comb filtering for video decoding |
CN102063113A (en) * | 2010-12-29 | 2011-05-18 | 哈尔滨工业大学 | Standardized LXI (LAN (Local Area Network) Extension for Instrument) equipment software framework based on M module |
-
2012
- 2012-01-04 CN CN201210001183XA patent/CN102546630A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH03158947A (en) * | 1989-11-17 | 1991-07-08 | Nec Corp | Communication control system |
CN1444138A (en) * | 2003-04-18 | 2003-09-24 | 上海中纬软件科技有限公司 | Tool bag for control system |
CN101945293A (en) * | 2009-07-08 | 2011-01-12 | 超威半导体(上海)有限公司 | Method and device for using system memory in three-dimensional comb filtering for video decoding |
CN101620536A (en) * | 2009-08-17 | 2010-01-06 | 用友软件股份有限公司 | Method and device for invoking performance function |
CN101645745A (en) * | 2009-08-19 | 2010-02-10 | 厦门敏讯信息技术股份有限公司 | Control appliance of comprehensive tester and testing method thereof |
CN102063113A (en) * | 2010-12-29 | 2011-05-18 | 哈尔滨工业大学 | Standardized LXI (LAN (Local Area Network) Extension for Instrument) equipment software framework based on M module |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108255542A (en) * | 2018-01-05 | 2018-07-06 | 北京北信源信息安全技术有限公司 | The serial ports parallel port management-control method and device of a kind of virtual machine |
CN109144579A (en) * | 2018-07-17 | 2019-01-04 | 广州睿本信息科技有限公司 | A kind of Web system reads the method and computer readable storage medium of hardware |
CN109144579B (en) * | 2018-07-17 | 2023-09-29 | 广州睿本信息科技有限公司 | Method for reading hardware by Web system and computer readable storage medium |
CN110221867A (en) * | 2019-05-31 | 2019-09-10 | 湖北三江航天万峰科技发展有限公司 | Pulse I/O function cartoon letters drive system and method under a kind of XP system |
CN111813461A (en) * | 2020-07-06 | 2020-10-23 | 斑马网络技术有限公司 | Vehicle ECU calibration method, device and equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108769109B (en) | Unified processing method and system for data of Internet of things heterogeneous equipment | |
CN102802139A (en) | Gateway data adapting system and method of Internet of Things | |
CN102637453B (en) | Phase change memory including serial input/output interface | |
CN102546630A (en) | Io communication method | |
CN103001843B (en) | Based on the OPC protocol converter of embedded VxWorks | |
CN103558812B (en) | Based on the MVB network four kind equipment network interface card of FPGA and ARM | |
CN104965700A (en) | Method and system for implementing driving on SPI equipment under VxWorks operating system | |
US9836236B2 (en) | SPI interface enhanced flash chip and chip packaging method | |
CN102291337B (en) | Gateway for switching communication based on EtherCAT (Ethernet for Control and Automation Technology) protocol and Profibus-DP (Process Field Bus-Decentralized Periphery) protocol and communication method thereof | |
CN102540982A (en) | Motion control card and motion control method | |
CN101763324B (en) | Method for realizing equipment simulating and device thereof | |
CN104699518A (en) | Multi-purpose meter reading machine adapter based on microkernel plug-in and realization method thereof | |
CN103236428B (en) | A kind of enhancement mode Flash chip and method for packing thereof containing RPMC | |
CN1960276B (en) | Remote control system and method | |
CN106357607A (en) | Method and device for connection, security verification, communication, communication monitoring of electronic equipment | |
CN104243172A (en) | Expanded input/output device of decentralized control system, and method thereof | |
CN104778087A (en) | Information processing method and information processing device | |
CN103425123A (en) | Automated testing method for CAN (controller area network) bus based on software script | |
CN111443963A (en) | Numerical control system of reconfigurable formula | |
CN201828970U (en) | Train operation data recorder based on CAN (Controller Area Network) interface | |
CN101561663A (en) | Motion control system and control method thereof | |
CN102760061B (en) | The method of shielding solid state hard disc memory interface difference and storage system | |
CN102393672A (en) | Programmable logic controller and expansion module thereof | |
CN105446863A (en) | Electronic device with recording capability and circuit status recording method | |
CN102890618B (en) | A kind of Memory Extension equipment with partition management |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20120704 |