CN102761538A - Design management method for communication shared field applied to various communication interface gateways - Google Patents

Design management method for communication shared field applied to various communication interface gateways Download PDF

Info

Publication number
CN102761538A
CN102761538A CN2012101297590A CN201210129759A CN102761538A CN 102761538 A CN102761538 A CN 102761538A CN 2012101297590 A CN2012101297590 A CN 2012101297590A CN 201210129759 A CN201210129759 A CN 201210129759A CN 102761538 A CN102761538 A CN 102761538A
Authority
CN
China
Prior art keywords
communication
data field
communications protocol
agreement
data area
Prior art date
Application number
CN2012101297590A
Other languages
Chinese (zh)
Other versions
CN102761538B (en
Inventor
何斌
张博
陈思宁
陈宇彦
Original Assignee
南大傲拓科技江苏有限公司
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 南大傲拓科技江苏有限公司 filed Critical 南大傲拓科技江苏有限公司
Priority to CN201210129759.0A priority Critical patent/CN102761538B/en
Publication of CN102761538A publication Critical patent/CN102761538A/en
Application granted granted Critical
Publication of CN102761538B publication Critical patent/CN102761538B/en

Links

Abstract

The invention discloses a design management method for a communication shared data field applied to various communication interface gateways. The design management method comprises the following steps: a communication shared data field in a drive service layer and a communication shared data field access interface are built; when the drive program strategy is adopted, the communication shared data field access interface has to be used to access and operate the communication shared data field; and meanwhile, when a program accesses the communication shared data field, the boundary limitation, authority limitation and other safety protection strategies are adopted to ensure that data can not be modified viciously and operated mistakenly. By adopting the scheme, isolation between the shared data field and a user is enhanced before application operation, and the safety of data in the shared data field is ensured; a unified operation interface for adding, deletion, start, stop and the like is provided for communication protocols of various interfaces to facilitate communication protocol management; and the method can be used in various software frameworks, including bare computer programming software frameworks and OS (Operating System)-based software frameworks, has strong universality and practicability, and facilitates function and code migration.

Description

Be applied to the communication sharing data area design management method of various communication interfaces gateway

Technical field

The present invention relates in a kind of communication system, sharing data area designs and Managed Solution, relates in particular to the sharing data area design management scheme of one kind of multiple communication interface gateways.

Background technology

The development of Along with computer technology, increasing instrument and meter, control appliance etc. all have common communication interface, comprise RS23, RS485, CAN, Ethernet etc., and communications protocol have nothing in common with each other because of differences such as interface type, industries.In the time of need carrying out communication at the equipment room of these different communication interfaces, different communications protocol, carry out the conversion of interface or agreement with regard to needing various gateways or transducer; Carry out communication conversion when mutual at gateway, the storage security of data, the management of agreement, agreement just progressively reveal in problem such as the transplanting of different soft and hard part platform and difficulty.

Summary of the invention

Goal of the invention

The objective of the invention is to design the sharing data area design management scheme of one kind of multiple communication interface gateways, strengthen the isolation before of sharing data area and user's application operating, guarantee the data security in the sharing data area; For the communications protocol of various interface provides unified interface, be convenient to the management of communications protocol; Can be applied in the various software architectures, comprise bare machine software programming framework and, have very strong versatility and practicality, make things convenient for the transplanting between different platform and product of function and code based on the software architecture of operating system.

Technical scheme

In order to realize goal of the invention, the technical scheme that the present invention adopts is following:

A kind of communication sharing data area design management method that is applied to the various communication interfaces gateway comprises step: in driving service layer, in memory headroom, open up earlier the communication sharing data area of a zone as various communication interfaces and agreement; Set up a communication sharing data area access interface again;

Said communication sharing data area comprises: communication interface data field, communications protocol configuring area, Debugging message output area and running state information district; Said communication interface data field has a plurality of, and each communication interface data separation is agreement IO data field and communication packet data field; The IO point data that agreement IO data area stores is corresponding with communications protocol, the input and output message of communication packet data area stores communication interface gives over to the protocol-driven debugging and uses;

For the advanced row communication protocol analysis of all communication interfaces of user application layer, again through the communication interface data field in the said communication sharing data area access interface visit communication sharing data area; In the time of visit, according to the corresponding relation between the corresponding communications protocol in communication interface data field, distinguish different data access authorities with client layer, communications protocol can only be visited corresponding communication interface data field under its normal authority;

For the zones of different in the communication sharing data area different operation interface and operating right are arranged:

1) agreement IO data field is operated before, need open agreement IO data field; The communications protocol corresponding with the data field has the authority to the read-write of agreement IO data field, writes only to limit to the input data to carry out, and other operations only possess read right;

2) the communication packet data field is when the letter literary composition is received and dispatched, to accomplish the renewal of data field by the backstage service function that communication sharing data area management system provides automatically, is used for debugging or keeping watch on to communications protocol;

3) the communication protocol configuring area is to resolve the configuration data that configuration file obtains (content of said configuration data comprises: protocol name, protocol number, protocol analysis function pointer, agreement IO counts and agreement IO dot address distribution condition) by the backstage service function that communication sharing data area management system provides;

4) state in communications protocol changes, or to the communication sharing data area when operating, communication sharing data area management system can be deposited corresponding information in the said running state information district;

5) Debugging message output area storage: when the user debugs, can from other districts, read information and come, deliver to host computer and show.

Required service function and the operation-interface of operation communication sharing data area comprises: consultative management function, agreement IO data field read and system's backstage service function;

The consultative management function comprises: the Register Cancel of agreement, the configuration operation of agreement stop, to inspection and the prompting of communications protocol to the boundary limitation of the authority of different communication interface data district visit and data;

Agreement IO data field read: opening, closing and read-write interface to the communications protocol data field; Wherein to carry out the inspection of operating right; Communications protocol can only be read and write own corresponding protocols IO data field; To the read right that has only of its agreement IO data field, when carrying out read-write operation, also to check simultaneously read/write address whether correctly, whether the situation of the visit of crossing the border arranged;

System's backstage service function, comprise user's Debugging message write and the writing of management, protocol running state information, configuration file is resolved and the communications protocol debugging.

The step of said communication sharing data area operation:

At first, when starting, accomplish the parsing of system protocol configuration and writing of communications protocol configuring area;

Then, communications protocol is registered startup one by one, and opens required communication interface data field,

Next, operation is upgraded in the preservation of carrying out communication, IO reading and writing data, Debugging message output, running status and transmitting-receiving message;

When communications protocol need be closed, close agreement IO data field earlier, nullify communications protocol then.

Technique scheme; Adopt the driver strategy; Use communication sharing data area access interface conducts interviews to the communication sharing data area and operates; Simultaneously program has adopted strategies such as boundary limitation, authority restriction when visit communication sharing data area, guarantee data not can by malicious modification, can not be by misoperation.During initialization, accomplish the registration and the configuration of communications protocol, start the communication driving function, accomplish communication according to system configuration.

Beneficial effect

The present invention strengthens sharing data area and the isolation before of user's application operating through the isolation of data and agreement, guarantees the data security in the sharing data area; For the communications protocol of various interface provides unified interface, be convenient to the management of communications protocol; Can be applied in the various software architectures, comprise bare machine software programming framework and, have very strong versatility and practicality, make things convenient for the transplanting between different platform and product of function and code based on the software architecture of operating system.

Description of drawings

Fig. 1 is a data interactive mode between existing protocol;

Fig. 2 is a communication shared data system pie graph;

Fig. 3 is the formation and the read-write properties figure of communication sharing data area;

Fig. 4 is the step of communication sharing data area operation.

Embodiment

Below in conjunction with accompanying drawing and embodiment the present invention is further specified as follows:

A kind of communication sharing data area design management method that is applied to the various communication interfaces gateway comprises step: in driving service layer, in memory headroom, open up earlier the communication sharing data area of a zone as various communication interfaces and agreement; Set up a communication sharing data area access interface again;

Said communication sharing data area comprises: communication interface data field, communications protocol configuring area, Debugging message output area and running state information district; Said communication interface data field has a plurality of, and each communication interface data separation is agreement IO data field and communication packet data field; The IO point data that agreement IO data area stores is corresponding with communications protocol, the input and output message of communication packet data area stores communication interface gives over to the protocol-driven debugging and uses;

For the advanced row communication protocol analysis of all communication interfaces of user application layer, again through the communication interface data field in the said communication sharing data area access interface visit communication sharing data area; In the time of visit, according to the corresponding relation between the corresponding communications protocol in communication interface data field, distinguish different data access authorities with client layer, communications protocol can only be visited corresponding communication interface data field under its normal authority;

For the zones of different in the communication sharing data area different operation interface and operating right are arranged:

1) agreement IO data field is operated before, need open agreement IO data field; The communications protocol corresponding with the data field has the authority to the read-write of agreement IO data field, writes only to limit to the input data to carry out, and other operations only possess read right;

2) the communication packet data field is the renewal of being accomplished the communication sharing data area by the backstage service function that provides of management system of communication sharing data area when the transmitting-receiving of letter literary composition automatically, is used for debugging or keeping watch on to communications protocol;

3) the communication protocol configuring area is that the backstage service function that the management system by the communication sharing data area provides is resolved the configuration data that configuration file obtains;

4) state in communications protocol changes, or to the communication sharing data area when operating, the management system of communication sharing data area can be deposited corresponding information in the said running state information district;

5) Debugging message output area storage: when the user debugs, can from other districts, read information and come, deliver to host computer and show.

Required service function and the operation-interface of operation communication sharing data area comprises: consultative management function, agreement IO data field read and system's backstage service function;

The consultative management function comprises: the Register Cancel of agreement, the configuration operation of agreement stop, to inspection and the prompting of communications protocol to the boundary limitation of the authority of different communication interface data district visit and data;

Agreement IO data field read: opening, closing and read-write interface to the communications protocol data field; Wherein to carry out the inspection of operating right; Communications protocol can only be read and write own corresponding protocols IO data field; To the read right that has only of its agreement IO data field, when carrying out read-write operation, also to check simultaneously read/write address whether correctly, whether the situation of the visit of crossing the border arranged;

System's backstage service function, comprise user's Debugging message write and the writing of management, protocol running state information, configuration file is resolved and the communications protocol debugging.

The step of said communication sharing data area operation:

At first, when starting, accomplish the parsing of system protocol configuration and writing of communications protocol configuring area;

Then, communications protocol is registered startup one by one, and opens required communication interface data field,

Next, operation is upgraded in the preservation of carrying out communication, IO reading and writing data, Debugging message output, running status and transmitting-receiving message;

When communications protocol need be closed, close agreement IO data field earlier, nullify communications protocol then.

The content of said configuration data comprises: protocol name, protocol number, protocol analysis function pointer, agreement IO counts and agreement IO dot address distribution condition.

Specific in this example:

As shown in Figure 1; The data interval that interactive mode is employed in two communications more between existing communications protocol carries out the copy operation of data; Thisly operate in that agreement is few, be suitable under the simple situation of data structure; But increase along with communications protocol quantity and diversity are complicated, use will occur when carrying out data interaction between this agreement to agreement seriously rely on, functional check increases, the logical relation of several data intervals complicated, be not easy to problem such as transplanting.

Scheme among Fig. 2; All communications protocol are all passed through unified communication shared region data access interface and are conducted interviews; Operation is unitized, according to the corresponding relation between communication interface data field and agreement and the interface, distinguishes different data access authorities; Communications protocol can only be under its normal authority the visit data district, visit plays a very good protection to data; The consultative management function can realize the work coordination between agreement so that understand operating state each other between agreement simultaneously for the interface that the user provides consultative management; Because the isolation of agreement and data interval, agreement can be transplanted in the system in identical data sharing district at an easy rate.

As shown in Figure 3; Sharing data area comprises and the corresponding communication interface of agreement data field, communications protocol configuring area, Debugging message output area, running state information district that wherein the communication interface data field is divided into agreement IO data field and communication packet data field two parts again.Agreement IO data field comprises the IO point data corresponding with agreement, and the communication packet data field is to be used for the input and output message of memory communicating interface, gives over to the protocol-driven debugging and uses.

Step for the operation of communication sharing data area shown in Figure 4:

At first, startup accomplishes the parsing of system protocol configuration and writing of communications protocol configuring area when being provided; Agreement is registered startup one by one then; And open required communication interface data field, next be exactly the operations such as preservation renewal of carrying out communication, IO reading and writing data, Debugging message output, running status and transmitting-receiving message.Close the data field when agreement need be closed earlier, nullify agreement then, such as two of time-division operations even a plurality of communications protocol on a hardware interface.

Claims (4)

1. a communication sharing data area design management method that is applied to the various communication interfaces gateway is characterized in that comprising step: in driving service layer, in memory headroom, open up earlier the communication sharing data area of a zone as various communication interfaces and agreement; Set up a communication sharing data area access interface again;
Said communication sharing data area comprises: communication interface data field, communications protocol configuring area, Debugging message output area and running state information district; Said communication interface data field has a plurality of, and each communication interface data separation is agreement IO data field and communication packet data field; The IO point data that agreement IO data area stores is corresponding with communications protocol, the input and output message of communication packet data area stores communication interface gives over to the protocol-driven debugging and uses;
For the advanced row communication protocol analysis of all communication interfaces of user application layer, again through the communication interface data field in the said communication sharing data area access interface visit communication sharing data area; In the time of visit, according to the corresponding relation between the corresponding communications protocol in communication interface data field, distinguish different data access authorities with client layer, communications protocol can only be visited corresponding communication interface data field under its normal authority;
Zones of different in the communication sharing data area there are different operation interface and operating right:
1) agreement IO data field is operated before, need open agreement IO data field; The communications protocol corresponding with the data field has the authority to the read-write of agreement IO data field, writes only to limit to the input data to carry out, and other operations only possess read right;
2) the communication packet data field is the renewal of being accomplished the communication sharing data area by the backstage service function that provides of management system of communication sharing data area when the transmitting-receiving of letter literary composition automatically, is used for debugging or keeping watch on to communications protocol;
3) the communication protocol configuring area is that the backstage service function that the management system by the communication sharing data area provides is resolved the configuration data that configuration file obtains;
4) state in communications protocol changes, or to the communication sharing data area when operating, the management system of communication sharing data area can be deposited corresponding information in the said running state information district;
5) Debugging message output area storage: when the user debugs, can from other districts, read information and come, deliver to host computer and show.
2. the communication sharing data area design management method that is applied to the various communication interfaces gateway according to claim 1 is characterized in that operating required service function of communication sharing data area and operation-interface and comprises: consultative management function, agreement IO data field read and system's backstage service function;
The consultative management function comprises: the Register Cancel of agreement, the configuration operation of agreement stop, to inspection and the prompting of communications protocol to the boundary limitation of the authority of different communication interface data district visit and data;
Agreement IO data field read: opening, closing and read-write interface to the communications protocol data field; Wherein to carry out the inspection of operating right; Communications protocol can only be read and write own corresponding protocols IO data field; To the read right that has only of its agreement IO data field, when carrying out read-write operation, also to check simultaneously read/write address whether correctly, whether the situation of the visit of crossing the border arranged;
System's backstage service function, comprise user's Debugging message write and the writing of management, protocol running state information, configuration file is resolved and the communications protocol debugging.
3. the communication sharing data area design management method that is applied to the various communication interfaces gateway according to claim 1 is characterized in that the step that said communication sharing data area is operated:
At first, when starting, accomplish the parsing of system protocol configuration and writing of communications protocol configuring area;
Then, communications protocol is registered startup one by one, and opens required communication interface data field,
Next, operation is upgraded in the preservation of carrying out communication, IO reading and writing data, Debugging message output, running status and transmitting-receiving message;
When communications protocol need be closed, close agreement IO data field earlier, nullify communications protocol then.
4. the communication sharing data area design management method that is applied to the various communication interfaces gateway according to claim 1 is characterized in that the content of said configuration data comprises: protocol name, protocol number, protocol analysis function pointer, agreement IO counts and agreement IO dot address distribution condition.
CN201210129759.0A 2012-04-27 2012-04-27 Design management method for communication shared field applied to various communication interface gateways CN102761538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210129759.0A CN102761538B (en) 2012-04-27 2012-04-27 Design management method for communication shared field applied to various communication interface gateways

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210129759.0A CN102761538B (en) 2012-04-27 2012-04-27 Design management method for communication shared field applied to various communication interface gateways

Publications (2)

Publication Number Publication Date
CN102761538A true CN102761538A (en) 2012-10-31
CN102761538B CN102761538B (en) 2014-10-22

Family

ID=47055860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210129759.0A CN102761538B (en) 2012-04-27 2012-04-27 Design management method for communication shared field applied to various communication interface gateways

Country Status (1)

Country Link
CN (1) CN102761538B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401769A (en) * 2013-07-24 2013-11-20 佳都新太科技股份有限公司 Implementation method of universal gateway service framework
CN104104674A (en) * 2014-07-01 2014-10-15 广东艾科技术股份有限公司 Multiprotocol distributed data acquisition control system of equipment sensor and method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1694415A (en) * 2005-04-29 2005-11-09 北京邦诺存储科技有限公司 Method and device for safety of storaged network data
US20080002595A1 (en) * 2006-06-23 2008-01-03 Rao Umesh R Network monitoring system and method thereof
CN101145982A (en) * 2007-10-29 2008-03-19 广州复旦奥特科技股份有限公司 A general gateway design method based on object model and protocol dynamic component configuration

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1694415A (en) * 2005-04-29 2005-11-09 北京邦诺存储科技有限公司 Method and device for safety of storaged network data
US20080002595A1 (en) * 2006-06-23 2008-01-03 Rao Umesh R Network monitoring system and method thereof
CN101145982A (en) * 2007-10-29 2008-03-19 广州复旦奥特科技股份有限公司 A general gateway design method based on object model and protocol dynamic component configuration

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401769A (en) * 2013-07-24 2013-11-20 佳都新太科技股份有限公司 Implementation method of universal gateway service framework
CN104104674A (en) * 2014-07-01 2014-10-15 广东艾科技术股份有限公司 Multiprotocol distributed data acquisition control system of equipment sensor and method thereof

Also Published As

Publication number Publication date
CN102761538B (en) 2014-10-22

Similar Documents

Publication Publication Date Title
US20150287307A1 (en) Wireless Sensor Network
US8726334B2 (en) Model based systems management in virtualized and non-virtualized environments
US20140317737A1 (en) Hypervisor-based intrusion prevention platform and virtual network intrusion prevention system
CN103841192B (en) A kind of method and system of remote control mobile terminal application software
CN102541634B (en) Inserted by the detection of background virtual machine
CN1719410B (en) Implementation of concurrent programs in object-oriented languages
CN104321749B (en) For managing the architecture and method of the interruption in virtualized environment
US8230149B1 (en) Method and apparatus for managing a peripheral port of a computer system
US7987497B1 (en) Systems and methods for data encryption using plugins within virtual systems and subsystems
CN103621026B (en) The method for interchanging data of virtual machine, device and system
CN101065740B (en) USB On-The-Go controller
CN104052621B (en) Method and system for the platform management message across quick peripheral assembly interconnecting (PCIE) section
US8955108B2 (en) Security virtual machine for advanced auditing
CN101356506B (en) Smart scalable storage switch architecture
CN106575243A (en) Hypervisor-hosted virtual machine forensics
US8893124B2 (en) Method, apparatus and system for limiting access to virtualization information in a memory
US8438360B2 (en) Distributed storage through a volume device architecture
CN101488174B (en) Implementing method for dynamically transparent virtual credible platform module
CN100449488C (en) Systems and methods for bimodal device virtualization of actual and idealized hardware-based devices
CN101411163B (en) System and method for tracking the security enforcement in a grid system
US8478982B2 (en) Media access control security management in physical layer
CN102790716A (en) Techniques for securing a virtualized computing environment using a physical network switch
CN102999716B (en) Virtual machine supervisory system and method
US9037960B2 (en) Monitoring and tracking application usage
CN102939588B (en) The method and apparatus not relying on data center's management of management program platform

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
GR01 Patent grant
C14 Grant of patent or utility model
CP01 Change in the name or title of a patent holder

Address after: 211102 No. 199 West Ting Road, Jiangning Economic Development Zone, Nanjing, Jiangsu

Patentee after: NANDA AUTOMATION TECHNOLOGY JIANGSU CO., LTD.

Address before: 211102 No. 199 West Ting Road, Jiangning Economic Development Zone, Nanjing, Jiangsu

Patentee before: Nanda Automation Technology Jiangsu Co., Ltd.

C56 Change in the name or address of the patentee