CN106598885B - A kind of working method of configurable multiport general data bridge system - Google Patents

A kind of working method of configurable multiport general data bridge system Download PDF

Info

Publication number
CN106598885B
CN106598885B CN201611080089.2A CN201611080089A CN106598885B CN 106598885 B CN106598885 B CN 106598885B CN 201611080089 A CN201611080089 A CN 201611080089A CN 106598885 B CN106598885 B CN 106598885B
Authority
CN
China
Prior art keywords
data
protocol
data frame
frame
communication port
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.)
Active
Application number
CN201611080089.2A
Other languages
Chinese (zh)
Other versions
CN106598885A (en
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.)
Huazhong University of Science and Technology
Original Assignee
Huazhong University of Science and Technology
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 Huazhong University of Science and Technology filed Critical Huazhong University of Science and Technology
Priority to CN201611080089.2A priority Critical patent/CN106598885B/en
Publication of CN106598885A publication Critical patent/CN106598885A/en
Application granted granted Critical
Publication of CN106598885B publication Critical patent/CN106598885B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/40Bus coupling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Communication Control (AREA)

Abstract

The invention belongs to fields of communication technology, a kind of configurable multiport general data bridge system and its working method are provided, the system includes hardware components and the software section for realizing specific function, the hardware components include several data communication ports, storage unit, main control unit, wherein, the data communication port, which has, sends and receives data function, is used for sending and receiving data frame;The storage unit is for storing required data and file;The main control unit is used for runs software part, coordination data communication port and storage unit operation, completes Data Bridge process;The software section includes configuration file, data frame buffer memory queue, data protocol packet, control program and database.The present invention can get up different data system bridges, provide a kind of more inexpensive and convenient and fast Data Bridge scheme.

Description

A kind of working method of configurable multiport general data bridge system
Technical field
The invention belongs to fields of communication technology, and in particular to a kind of work of configurable multiport general data bridge system Make method.
Background technique
With the intensification of social informatization and digitization degree, the shared of data and information has become industrial neck with exchanging Realize automation, intelligentized key in domain.For convenient for the data communication in industry field, industry field defines all multi-standards According to communication protocol, in order to realize information communication in industry field.However, due to requirement difference, enterprise or production firm Different data systems, the public data agreement used are often used, or after using and modifying based on common protocol Data protocol, or even use self-defining data agreement.The disunity of data protocol establishes data between enterprise and production firm Exchange has manufactured obstacle, and data sharing realization relies only on data protocol conversion.
Currently, common conversion solution is directionally to realize that a kind of agreement is assisted to another kind using protocol converter The conversion of view.In the occasion for needing to be converted to the third agreement, the general side using the protocol converter for concatenating another specification Formula realizes indirect protocol conversion;Or it develops again, purchase new protocol converter.No matter which kind of mode can all improve data Cost is linked up, it is also more inconvenient to use.Especially when solving the conversion of custom protocol, these problems are more prominent.
Summary of the invention
The object of the invention is to it is logical to provide a kind of configurable multiport in order to solve above-mentioned deficiency in the prior art With the working method of Data Bridge system, different data system bridges can be got up, provide it is a kind of more inexpensive and Convenient and fast Data Bridge scheme.
The purpose of the present invention is what is be achieved through the following technical solutions.
The present invention provides a kind of configurable multiport general data bridge system, and the system includes hardware components and reality The software section of existing specific function, and a data source port and several Data Bridge ports can be determined by software configuration, Realize the data sharing between different data system.
The hardware components include several data communication ports, storage unit, main control unit, wherein the data communication Port, which has, sends and receives data function, is used for sending and receiving data frame;The storage unit is for storing required data and text Part;The main control unit is used for runs software part, coordination data communication port and storage unit operation, completes data bridge and takes over Journey;The software section includes configuration file, data frame buffer memory queue, data protocol packet, control program and database;Wherein, The configuration file is used for configuration data communication port and data conversion relationship, and the data frame buffer memory queue is for temporarily depositing Untreated data frame is stored up, the data protocol packet is used to parse data frame format, data frame institute contained text information is obtained, The database information that frame is included for storing data, the control program are used for control protocol conversion process.
In the above-mentioned technical solutions, the configuration file includes that data communication port protocol configuration part and bridge joint relationship are matched Set part;Wherein, data communication port protocol configuration part specifies the data protocol that each data communication port is followed, and To need data communication port to be used to select operating mode;Bridge joint relationship configuration section then specifies a certain data communication end Mouth Data Bridge relationship of several data communication ports to another or separately.
In the above-mentioned technical solutions, the data frame buffer memory queue includes to receive buffer queue and send buffer queue, is counted According to frame buffer queue for caching data frame receiving or to be sent, and data frame is accessed with the principle of first in, first out.
In the above-mentioned technical solutions, the data protocol packet is that the collection of data protocol is combined into, comprising data protocol itself, The corresponding verification function and relevant parameter used, for parsing data frame content or tissue data frame.
In the above-mentioned technical solutions, the database plans corresponding data area by used data protocol, and by data Frame institute contained text information is stored into corresponding data area.
The present invention also provides a kind of working methods of above-mentioned configurable multiport general data bridge system, including System starting and Data Bridge process:
(1) system starts
Step 1, activation system;
Step 2, each data communication port of initialization system and database;
Step 3 configures data source port mode for the Data Bridge port for being connected to data source according to configuration file, Data Bridge port mode is configured by the Data Bridge port of other work;
Step 4 reads configuration file, and the data protocol for checking that data communication port is configured is in data protocol packet No presence;Continue if by checking, otherwise reports mistake;
Step 5, the data protocol configured according to data communication port call corresponding data from data protocol packet Agreement, and data field is divided in database accordingly, while establishing corresponding storage model;
Step 6, log-on data bridge process;
(2) Data Bridge
Step 1, system start each data communication port;
Step 2, according to the data protocol that data source port uses, system sends the data frame of request data to data source;
Step 3, system wait data source to return to reply data frame, do not obtain return step if reply data frame after 1s Two, and record sending times and go to step four, go to step five if receiving reply data frame;
Step 4 checks sending times, if being less than sending times 3 times, otherwise return step two terminates this data Acquisition process, and to System Reports mistake;
Step 5, system are verified the data frame received by the data protocol configured, are continued if through verification, otherwise eventually Data acquisition here, and to System Reports mistake;
Step 6, system is parsed the data frame received by the data protocol configured, and is extracted data frame text message and deposited It is put into the corresponding position of data source port and each storage model of data communication port in database;
Step 7 checks data frame receipt buffer queue, judges whether data communication port receives data frame, if receiving To data frame, then eight are gone to step, otherwise go to step one;
Step 8, system are verified the data frame received by the data protocol configured, are continued if through verification, are otherwise thrown Abandon the corresponding data frame that this time data communication port is received;
Step 9, system parse the data frame received by the data protocol configured and determine its question and answer relationship;
Step 10, according to question and answer relationship, the corresponding data communication port side number having had been filled in system reading database According to being to be sent by data communication port after correct data frame according to data protocol tissue;
Step 11, return step one.
In the above-mentioned technical solutions, the data protocol configured according to data communication port is called from data protocol packet Corresponding data protocol, and data field is divided in database accordingly, while establishing corresponding storage model, specific steps are such as Under:
Step 1, system data frame format according to provided by data protocol, each field length and content, in the database The memory space of enough size is opened up for pieces of data frame;
Step 2, system data frame and field according to defined in data protocol, according to particular order by pieces of data frame Constant and variable are deployed in the corresponding position of database distribution in defined field, wherein defined constant directly stores In the memory space of distribution, it is long that variable is then returned as storage address, name variable and data that it is distributed from database to system Degree;
Step 3, according to question and answer relationship defined in data protocol, database carries out the response relation of pieces of data frame It is corresponding, this question and answer relationship is indicated using a byte data, wherein highest order is question and answer flag bit, this position, which is 0, to be indicated to inquire Data frame, this position, which is 1, indicates reply data frame;Low 7 expression question and answer relationships number, can voluntarily be worked out by user, so as to area Divide different question and answer relationships;Special, 00H indicates the data frame for not having question and answer relationship.
The multiport general data bridge system that the present invention can configure compared with prior art, the advantage is that: only needing to lead to It crosses change configuration file and changes agreement and protocol conversion relationship used in port, only need to add or replace association when replacing agreement Correspondence agreement in view packet reduces communication so as to avoid the new protocol converter of development agreement converter again or concatenation Cost, it is more convenient efficient.
Detailed description of the invention
Fig. 1 is the hardware components structural schematic diagram for the multiport general data bridge system that can configure in the present invention.
Fig. 2 is the software section framework schematic diagram for the multiport general data bridge system that can configure in the present invention.
Fig. 3 is the flow chart of present system starting.
Fig. 4 is the flow chart of the Data Bridge of present system.
Specific embodiment
The principle of the invention and implementation are described further below in conjunction with the drawings and specific embodiments.It should be appreciated that this Locate described specific embodiment to be only used to explain the present invention, does not limit the present invention.
As shown in Figure 1, present embodiments providing a kind of configurable multiport general data bridge system, hardware components It successively include data communication port, Power Management Unit, memory and main control unit.
Wherein, data communication port contains mainstream communication interface, such as CAN, RS232, RS485, USB interface, includes Corresponding physical connector and transceiver realize the physical link of this system data communication, provide the channel of data transmission;Storage Device is non-volatile memories, such as Flash or EEPROM, for deployment system software, establishes database and saves system operation When generated data.Memory capacity and storage organization can be designed according to actual needs.Main control unit is for running system System software, and correctly execute the operation and control function of system.
As shown in Fig. 2, present embodiments providing a kind of configurable multiport general data bridge system, software section Including configuration file, data frame buffer memory queue, data protocol packet, control program and database;Wherein, the configuration file is used for Configuration data communication port and data conversion relationship, the data frame buffer memory queue is for temporarily storing untreated data Frame, the data protocol packet obtain data frame institute contained text information, the database is used for for parsing data frame format The information that store frames of data is included, the control program are used for control protocol conversion process.
Wherein, the configuration file includes data communication port protocol configuration part and bridge joint relationship configuration section;Wherein, Data communication port protocol configuration part specifies the data protocol that each data communication port is followed, and to be used to need Data communication port has selected operating mode;Bridge joint relationship configuration section then specify a certain data communication port to another or The Data Bridge relationship of another several data communication ports.
The data frame buffer memory queue includes to receive buffer queue and send buffer queue, and data frame buffer memory queue is for delaying Data frame receiving or to be sent is deposited, and data frame is accessed with the principle of first in, first out.
The data protocol packet is that the collection of data protocol is combined into, and includes data protocol itself, the corresponding verification letter used Several and relevant parameter, for parsing data frame content or tissue data frame.
The database plans corresponding data area by used data protocol, and by data frame institute contained text information It stores in corresponding data area.
The control program completes correct protocol conversion for initializing system, and control protocol conversion process.
The present embodiment additionally provides the working method of above-mentioned configurable multiport general data bridge system, including is System starting and Data Bridge process
(1) system starts
Step 1, activation system;
Step 2, each data communication port of initialization system and database;
Step 3 configures data source port mode for the Data Bridge port for being connected to data source according to configuration file, Data Bridge port mode is configured by the Data Bridge port of other work;
Step 4 reads configuration file, and the data protocol for checking that data communication port is configured is in data protocol packet No presence;Continue if by checking, otherwise reports mistake;
Step 5, the data protocol configured according to data communication port call corresponding data from data protocol packet Agreement, and data field is divided in database accordingly, while establishing corresponding storage model;
Step 6, log-on data bridge process;
(2) Data Bridge
Step 1, system start each data communication port;
Step 2, according to the data protocol that data source port uses, system sends the data frame of request data to data source;
Step 3, system wait data source to return to reply data frame, do not obtain return step if reply data frame after 1s Two, and record sending times and go to step four, go to step five if receiving reply data frame;
Step 4 checks sending times, if being less than sending times 3 times, otherwise return step two terminates this data Acquisition process, and to System Reports mistake;
Step 5, system are verified the data frame received by the data protocol configured, are continued if through verification, otherwise eventually Data acquisition here, and to System Reports mistake;
Step 6, system is parsed the data frame received by the data protocol configured, and is extracted data frame text message and deposited It is put into the corresponding position of data source port and each storage model of data communication port in database;
Step 7 checks data frame receipt buffer queue, judges whether data communication port receives data frame, if receiving To data frame, then eight are gone to step, otherwise go to step one;
Step 8, system are verified the data frame received by the data protocol configured, are continued if through verification, are otherwise thrown Abandon the corresponding data frame that this time data communication port is received;
Step 9, system parse the data frame received by the data protocol configured and determine its question and answer relationship;
Step 10, according to question and answer relationship, the corresponding data communication port side number having had been filled in system reading database According to being to be sent by data communication port after correct data frame according to data protocol tissue;
Step 11, return step one.
The data protocol in the present invention is described further again below.
Data protocol defines the semanteme and format of data frame, is the tool of parsing and tissue data frame.Protocol package description Data frame format and question and answer relationship.
The characteristics of according to data frame, data frame can be divided into several fields, specify each word respectively in a specified pattern The format of section.Data frame field is described with keywords such as field name, byte number, contents, citation form is field name: byte Number content.Wherein, field name indicates the field name, for distinguishing each field;Byte number indicates the byte that the field includes Sum;The data content for being included in the content representation field is filled if content is fixed with constant, otherwise with name variable generation It replaces.For example, SZ:3 7EH E7H 7EH, field name SZ, which includes that byte number is 3, and content is fixed as 7EH E7H 7EH;In another example DZ:6 UA UB UC IA IB IC, field name DZ, which includes that byte number is 6, Content is not fixed, and is indicated respectively with variable UA, UB, UC, IA, IB, IC.Distinguishingly, some content need using multiple bytes into When row indicates .n can be added after variable, when n=0 indicates that minimum bit byte, n successively increase 1, byte needed for indicating the variable It successively increases;Such as DZ:12 UA.1 UA.0 UB.1 UB.0 UC.1 UC.0 IA.1 IA.0 IB.1 IB.0 IC.1 IC.0, field name DZ, the field include that byte number is 12, and content is respectively UA high byte, UA low byte, UB high word Section, UB low byte, UC high byte, UC low byte, IA high byte, IA low byte, IB high byte, IB low byte, IC high byte, IC Low byte.
Defined field is subjected to sequential combination, that is, may make up required data frame format.Such as: field name A field Name B field name C field name D, is the data frame format being made of 4 fields according to the sequence of ABCD.
Data communication process is usually realized in a manner of inquiry, it is necessary to after issuing query message by host computer, field device Corresponding response message could be replied according to this message, therefore certain data frames have specific question and answer relationship.This question and answer are closed System may be expressed as: that keyword Qn indicates query message, and keyword An indicates response message, and wherein n is positive integer.For unified lattice Formula, certain data frames without question and answer relationship are also distinguished in this way, the difference is that question and answer relationship is closed Key word is fixed as Q0.
If data frame packet contains check field, it is defined according to following format: method of calibration keyword check banner word Section verification terminates field check results position.Wherein, check results position is indicated in the form of field name content name.For example, CRC word name section A field name D field E.CHK indicates that, using CRC check mode, verification start field is field name A, eventually Only field is field name D, and check results storage position is the position CHK in field E.Check results are defined automatic aligning Content-length, and stored according to byte order.
Based on above-mentioned field definition and data frame definition, data protocol can be write.Data protocol include field definition and Data frame definition.Field definition indicates this definition region using keyword FIELD using symbol " $ " as beginning flag;Data Frame is mark this definition region using symbol " $ " as beginning flag, and using keyword MESSEGE;Field definition and data frame Definition is using " $ END " as end mark;Symbol " # " is as beginning flag for each field definition and data frame definition, with symbol Number ";" it is used as end mark.Data protocol format is exemplified below:
$FIELD
#SZ:3 7EH E7H 7EH;
#CHK: 2 CRC_RES SUM_RES;
……
$END
$MESSEGE
#Q1, SZ DZ CHK EZ, CRCDZDZ CRC.CRC_RES, SUM DZDZ CRC.SUM_RES;
#A1, SZ A B C CHK EZ, CRC A C CRC.CRC_RES, SUM A C CRC.SUM_RES;
#Q0, SZ F G N CHK EZ, CRC F G CRC.CRC_RES, SUM F G CRC.SUM_RES;
$END
Data protocol describes the format and semanteme of data communication, can organize Data Data frame accordingly.System is according to number According to related definition provided by agreement, the storage model of pieces of data frame is established in the database, its step are as follows:
It (1) is that data protocol to be used is needed to distribute memory space.System data frame lattice according to provided by data protocol Formula, each field length and content, open up the memory space of enough size in the database for pieces of data frame.
(2) storage model in pieces of data frame data library is constructed.System data frame and word according to defined in data protocol Constant in field that pieces of data frame is included and variable are deployed in the correspondence position of database distribution according to particular order by section It sets.Wherein, defined constant is stored directly in the memory space of distribution, and variable is then returned as its distribution from database to system Storage address, name variable and data length.For example, defined variable is UA, then variable UA is returned in the database to system Storage address, data length 1 and name variable UA;Special, the data of multiple byte representations, for example, defined variable is UA.1 UA.0 then returns to storage address, data length 2 and the name variable UA of variable UA in the database to system.
(3) question and answer relationship is established.According to question and answer relationship defined in data protocol, response of the database to pieces of data frame Relationship is corresponded to.This question and answer relationship is indicated using a byte data, wherein highest order is question and answer flag bit, this position is 0 Indicate inquiry data frame, this position, which is 1, indicates reply data frame;Low 7 expression question and answer relationships number, can voluntarily be compiled by user System, to distinguish different question and answer relationships;Special, 00H indicates the data frame for not having question and answer relationship.For example, 57H(bis- into Tabulation is shown as 01010111) indicating inquiry data frame, number 87;D7H(is represented in binary as 11010111) indicating answer number According to frame, number 87;This two datas frame is one group of data frame for having question and answer relationship.
By taking following data protocol as an example:
#DZ1: 2 A B;
#DZ2: 4 IA.1 IA.0 IB.1 IB.0;
#CHK: 2 CRC_RES SUM_RES;
#EZ: 1 0DH;
$END
$MESSEGE
#Q1, SZ DZ1 CHK EZ, CRCDZ1 DZ1 CHKCRC_RES, SUM DZ1 DZ1 CHK.SUM_RES;
#A1, SZ DZ2 C CHK EZ, CRC DZ2 DZ2 CHK.CRC_RES, SUM DZ2 DZ2 CHK.SUM_ RES;
$END
It is as follows to be disposed result in the database:
(4) determination of data protocol corresponding relationship.Data protocol has determined the format and semanteme that data communication is followed, and is So that homologous ray does not carry out data exchange, the agreement respectively used must be set up correct corresponding relationship.In the invention patent The corresponding relationship of data protocol is established using the corresponding mode of field name.
It is fixed in the field of data protocol B based on field definition as defined in it according to defined data protocol A In justice, need to inherit the middle name variable of the field definition of legacy data agreement A according to actual use, only in data protocol B The contents such as field name, length redefine.By taking following data protocol as an example:
Data protocol A field definition is as follows:
#DZ1: 2 A B;
#DZ2: 4 IA.1 IA.0 IB.1 IB.0;
#CHK: 2 CRC_RES SUM_RES;
#EZ: 1 0DH;
The field definition for rewriting data protocol B is as follows:
#DZ11: 1 A;
#DZ12: 2 B.1 B.0;
#DZ21: 2 IA.1 IA.0;
#DZ22: 2 IB.1 IB.0;
#CHK: 1 XOR_RES;
#EZ: 1 0DH;
Wherein, data protocol B inherits variables A defined in data protocol A, B, IA, IB, their variables having the same Title.Wherein, variable B is redefined for 2 byte variables in data protocol B.According to the field definition rewritten, number It can define new data frame storage model according to agreement B.
When disposing data protocol A and data protocol B, the variable for having same names occupies identical memory space, example As the variables A in above-described embodiment in data protocol A and data protocol B, IA, IB occupy same storage sky in the database Between;When the length of variable of the same name changes, then the variable of long length of being subject to opens up memory space, and follows low level to it Principle storage, such as the variable B in above-described embodiment in data protocol A and data protocol B, with the variable B in data protocol B Subject to length, the memory block for opening up 2 byte lengths in the database is used for the storage of variable B, and the variable B in data protocol A is then Deposit in the byte in this memory block.
The content that this specification is not described in detail belongs to the prior art well known to professional and technical personnel in the field.

Claims (6)

1. a kind of working method of configurable multiport general data bridge system, the system includes hardware components and software Part, the hardware components include several data communication ports, storage unit, main control unit, wherein the data communication port Have and send and receive data function, is used for sending and receiving data frame;The storage unit is for storing required data and file;Institute Main control unit is stated for runs software part, coordination data communication port and storage unit operation, completes Data Bridge process;Institute Stating software section includes configuration file, data frame buffer memory queue, data protocol packet, control program and database;Wherein, described to match File is set for configuration data communication port and data conversion relationship, the data frame buffer memory queue is not located for temporarily storing The data frame of reason, the data protocol packet obtain data frame institute contained text information, the number for parsing data frame format According to the library information that frame is included for storing data, the control program is used for control protocol conversion process, it is characterised in that: should Method includes system starting and Data Bridge
(1) system starts
Step 1, activation system;
Step 2, each data communication port of initialization system and database;
Step 3 configures data source port mode for the Data Bridge port for being connected to data source, by it according to configuration file The Data Bridge port that he works is configured to Data Bridge port mode;
Step 4 reads configuration file, and whether the data protocol for checking that data communication port is configured is deposited in data protocol packet ?;Continue if by checking, otherwise reports mistake;
Step 5, the data protocol configured according to data communication port call corresponding data protocol from data protocol packet, And data field is divided in database accordingly, while establishing corresponding storage model;
Step 6, log-on data bridge process;
(2) Data Bridge
Step 1, system start each data communication port;
Step 2, according to the data protocol that data source port uses, system sends the data frame of request data to data source;
Step 3, system wait data source to return to reply data frame, do not obtain return step two if reply data frame after 1s, and Record sending times simultaneously go to step four, go to step five if receiving reply data frame;
Step 4 checks sending times, if being less than sending times 3 times, otherwise return step two terminates this data acquisition Process, and to System Reports mistake;
Step 5, system are verified the data frame received by the data protocol configured, are continued if through verification, are otherwise terminated this Data acquisition, and to System Reports mistake;
Step 6, system are parsed the data frame received by the data protocol that is configured, and extract data frame text message store into The corresponding position of data source port and each storage model of data communication port in database;
Step 7 checks data frame receipt buffer queue, judges whether data communication port receives data frame, if receiving number According to frame, then eight are gone to step, otherwise go to step one;
Step 8, system are verified the data frame received by the data protocol configured, are continued if through verification, are otherwise abandoned phase The data frame for answering this data communication port to be received;
Step 9, system parse the data frame received by the data protocol configured and determine its question and answer relationship;
Step 10, according to question and answer relationship, the corresponding data communication port side data having had been filled in system reading database, according to It is to be sent by data communication port after correct data frame according to data protocol tissue;
Step 11, return step one.
2. the working method of configurable multiport general data bridge system according to claim 1, it is characterised in that The data protocol configured according to data communication port calls corresponding data protocol from data protocol packet, and accordingly in number According to dividing data field in library, while corresponding storage model is established, the specific steps of which are as follows:
Step 1, system data frame format according to provided by data protocol, each field length and content are each in the database Data frame opens up the memory space of enough size;
Step 2, system data frame and field according to defined in data protocol determine pieces of data frame according to particular order Constant and variable are deployed in the corresponding position of database distribution in the field of justice, wherein defined constant is stored directly in point The memory space matched, variable are then returned as its storage address, name variable and data length for distributing from database to system;
Step 3, according to question and answer relationship defined in data protocol, database corresponds to the response relation of pieces of data frame, This question and answer relationship is indicated using a byte data, wherein highest order is question and answer flag bit, this position, which is 0, indicates inquiry data Frame, this position, which is 1, indicates reply data frame;Low 7 expression question and answer relationships number, can voluntarily be worked out by user, to distinguish not Same question and answer relationship;00H then indicates the data frame for not having question and answer relationship.
3. the working method of configurable multiport general data bridge system according to claim 1, it is characterised in that: The configuration file of configurable multiport general data bridge system includes that data communication port protocol configuration part and bridge joint close It is configuration section;Wherein, data communication port protocol configuration part specifies the data association that each data communication port is followed View, and to need data communication port to be used to select operating mode;Bridge joint relationship configuration section then specifies a certain data Communication port Data Bridge relationship of several data communication ports to another or separately.
4. the working method of configurable multiport general data bridge system according to claim 1, it is characterised in that: The data frame buffer memory queue of configurable multiport general data bridge system includes to receive buffer queue and transmission buffer queue, Data frame buffer memory queue accesses data for caching data frame receiving or to be sent, and with the principle of first in, first out Frame.
5. the working method of configurable multiport general data bridge system according to claim 1, it is characterised in that: The data protocol packet of configurable multiport general data bridge system is that the collection of data protocol is combined into, and includes data protocol sheet Body, the corresponding verification function and relevant parameter used, for parsing data frame content or tissue data frame.
6. the working method of configurable multiport general data bridge system according to claim 1, it is characterised in that: The database of configurable multiport general data bridge system plans corresponding data area by used data protocol, and will count According to the storage of frame institute contained text information into corresponding data area.
CN201611080089.2A 2016-11-30 2016-11-30 A kind of working method of configurable multiport general data bridge system Active CN106598885B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611080089.2A CN106598885B (en) 2016-11-30 2016-11-30 A kind of working method of configurable multiport general data bridge system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611080089.2A CN106598885B (en) 2016-11-30 2016-11-30 A kind of working method of configurable multiport general data bridge system

Publications (2)

Publication Number Publication Date
CN106598885A CN106598885A (en) 2017-04-26
CN106598885B true CN106598885B (en) 2019-07-09

Family

ID=58595936

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611080089.2A Active CN106598885B (en) 2016-11-30 2016-11-30 A kind of working method of configurable multiport general data bridge system

Country Status (1)

Country Link
CN (1) CN106598885B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110474690A (en) * 2018-05-11 2019-11-19 中山市明阳电器有限公司 A kind of optic communication wireless networking arrangement and method applied to drawer-type switch cabinet
CN111930083B (en) * 2020-08-05 2021-08-27 智昌科技集团股份有限公司 Method and device for collecting industrial equipment data
TWI764311B (en) * 2020-10-08 2022-05-11 大陸商星宸科技股份有限公司 Memory access method and intelligent processing apparatus
CN113760577B (en) * 2021-08-04 2024-04-19 广东能龙教育股份有限公司 Dynamic connection answering device, processing method, control device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212454A (en) * 2006-12-25 2008-07-02 深圳Tcl工业研究院有限公司 Protocol bridging method and device
CN101388889A (en) * 2008-10-23 2009-03-18 上海大学 Conversion method between multiple protocol bus
CN102193887A (en) * 2010-03-11 2011-09-21 炬力集成电路设计有限公司 Multi-channel bridge and bus system
CN103457845A (en) * 2013-09-09 2013-12-18 江南大学 Conversion technology capable of being configured with multiple protocols
CN103973710A (en) * 2014-05-28 2014-08-06 中国兵器工业集团第二一四研究所苏州研发中心 Multi-protocol synchronous digital system conversion device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9489307B2 (en) * 2012-10-24 2016-11-08 Texas Instruments Incorporated Multi domain bridge with auto snoop response

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101212454A (en) * 2006-12-25 2008-07-02 深圳Tcl工业研究院有限公司 Protocol bridging method and device
CN101388889A (en) * 2008-10-23 2009-03-18 上海大学 Conversion method between multiple protocol bus
CN102193887A (en) * 2010-03-11 2011-09-21 炬力集成电路设计有限公司 Multi-channel bridge and bus system
CN103457845A (en) * 2013-09-09 2013-12-18 江南大学 Conversion technology capable of being configured with multiple protocols
CN103973710A (en) * 2014-05-28 2014-08-06 中国兵器工业集团第二一四研究所苏州研发中心 Multi-protocol synchronous digital system conversion device

Also Published As

Publication number Publication date
CN106598885A (en) 2017-04-26

Similar Documents

Publication Publication Date Title
CN106598885B (en) A kind of working method of configurable multiport general data bridge system
CN105608088B (en) A kind of database based on configuration file automatically creates and data dynamic recording method
CN102164050B (en) Log parsing method and log parsing node device
US5202977A (en) Edi translation system using plurality of communication processes and de-enveloping procedure corresponding to transmitted communication process
US6836890B1 (en) Methods and systems for message translation and parsing of data structures in a distributed component architecture
CN102810057B (en) A kind of method of log
CN110134671B (en) Traceability application-oriented block chain database data management system and method
CN109768970A (en) It is a kind of based on configurable puppy parc generation method
CN108304463A (en) A kind of data managing method and its database application component for database
CN107665216A (en) A kind of data bank access method and middleware
CN103902283B (en) Method for achieving real-time asynchronous communication through model transformation in CORBA
CN109146095A (en) The treating method and apparatus of multiservice system problem
CN109656986A (en) A kind of householder method that business datum summarizes, device and electronic equipment
CN107193917A (en) Whole station CONFIG.SYS lossless data update method based on IID
CN105005543A (en) Interface generation apparatus and method
US20120124066A1 (en) Secs communication device and secs communication method thereof
CN109814896A (en) Server updating method, apparatus, computer system and readable storage system
CN101202736B (en) Method for realizing encoding-decoding in communication network
CN107992293A (en) A kind of enterprise attributes dividing system and its implementation
CN101909013B (en) Information exchange device capable of dynamic configuration
CN101702119B (en) Device oriented programming technology and method
US20140052710A1 (en) Device and method of mass data storage based on tree structure
CN1851577A (en) Virtual control method for site controller
CN106201542B (en) WOF rapid development platform
CN107133040A (en) A kind of standardized product service apparatus and business module extend method of replacing

Legal Events

Date Code Title Description
PB01 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