CN106453016A - A method and a device for generating a message matching relationship - Google Patents
A method and a device for generating a message matching relationship Download PDFInfo
- Publication number
- CN106453016A CN106453016A CN201610997758.6A CN201610997758A CN106453016A CN 106453016 A CN106453016 A CN 106453016A CN 201610997758 A CN201610997758 A CN 201610997758A CN 106453016 A CN106453016 A CN 106453016A
- Authority
- CN
- China
- Prior art keywords
- message
- identifier
- group
- connection group
- connection
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/40006—Architecture of a communication node
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L12/4013—Management of data rate on the bus
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/40—Bus networks
- H04L2012/40208—Bus networks characterized by the use of a particular bus standard
- H04L2012/40215—Controller Area Network CAN
Abstract
The invention provides a method and a device for generating a message matching relationship which classify identifiers of the messages to form a plurality of message identifier groups containing the identifiers of request messages and the identifiers of response messages corresponding to the request messages, and add connection group information to each of the message identifier groups to obtain a message information table. It is possible to match the identifiers of the request messages and the identifiers of the response messages in each packet identifier group through the connection group information, thus realizing the establishment of the matching relationship between the request messages and the response messages. In addition, since the connection group information added in the message identifier group is not affected by vehicle models and can be adapted to various vehicle models, the transplantability of the generation method of the message matching relationship is high. In addition, the number of the connection group information added by the identifier group can be adjusted according to the number of message identifiers to be built. Therefore, the method of generating the message matching relationship has high scalability.
Description
Technical field
The present invention relates to vehicle bus technical field, more particularly to a kind of generation method of message matching relationship and device.
Background technology
Electronic control unit ECU (Electronic Control Unit) also known as " vehicle-mounted computer ", in the car in occupation of
Highly important effect.ECU carries out information exchange with message form with host computer through single CAN mostly, to complete brush
Newly, the function of diagnosing and demarcate.And the development with automotive electronics, need the data volume of interaction increasing, the office of CAN
Sex-limited gradually appear, New Bus are due to possessing more preferable transfer rate and bandwidth, and a lot of vehicles all adopt CAN and new
The mixed method of bus.In such cases, when ECU is communicated with host computer, need to support the multigroup report from different bus
How text request, therefore, enable vehicle-mounted ECU clearly to provide the corresponding sound of multigroup request message from different bus
Answer message to become the problem of people's solution.
Prior art builds request message and response message using the rule of classification of the message identifier that appoints in advance
Corresponding relation, for example:In the message identifier of CAN, by identifier for 0x710 message and identifier for 0x71F report
Text is defined as one group of request message and response message, and message and identifier of the identifier for 0x720 is specified for the message of 0x72F
For another group of request message and response message.When host computer is communicated with ECU, ECU is according to the message mark that appoints in advance
Know the rule of classification of symbol, response message identifier corresponding with request message identifier is obtained, then the response message is identified
Accord with corresponding response message and issue host computer.
However, completing to refresh, diagnosing and staking-out work in the ECU to different automobile types, the rule of classification of message identifier is
Differ, accordingly, it would be desirable to the ECU to different automobile types, arranges the rule of classification of different message identifiers, so, message mark
The portability for knowing the rule of classification of symbol is not high;Further, since the number of packet of the message identifier of agreement is limited, when many
When the quantity of group request message exceedes number of packet, it is also desirable to reformulate the rule of classification of message identifier, so message mark
The extensibility for knowing the rule of classification of symbol is not high yet.
Content of the invention
Based on above-mentioned the deficiencies in the prior art, the present invention proposes a kind of generation method of message matching relationship and device, with
Solve to exist the not high and extensibility of portability that the rule of classification of message identifier is present in prior art not high to ask
Topic.
For solving the above problems, it is proposed that scheme as follows:
A kind of generation method of message matching relationship, including:
Obtain multiple messages;
Extract the identifier of the message;
The message is parsed, obtains the classification of the message;
According to the classification of the message, by the sorting identifiers of the message, multiple message identifier groups are formed, wherein,
The message identifier group is comprising the identifier of request message and the identifier of response message corresponding with the request message;
The input operation of response user, adds connection group information, obtains message information to message identifier group each described
Table.
Alternatively, the connection group information includes:The title of connection group, the type of connection group, the scope of connection group and company
Connect the parameter value of group;Wherein,
The input operation of the response user, adds connection group information, obtains message to message identifier group each described
Information table, including:
The input operation of response user, to the title of corresponding connection group, connection group in message identifier group each described
Type, the scope of connection group and connection group parameter value respectively assignment, obtain message information table.
Alternatively, the type of the connection group includes:Integer variable, character string type and enumeration type.
Alternatively, if the parsing message, when the type for obtaining the message is predefined type, described to report each described
The parameter value assignment of corresponding connection group in literary group identifier, including:
Invalid value is assigned to the parameter value of corresponding connection group in message identifier group each described;
Wherein, it is the request message without response message that the predefined type is used for identifying the message.
Alternatively, methods described also includes:
Read each the message identifier group in the message information table;
According to the connection group information of each message identifier group, request report in each message identifier group described is built
The matching relationship of the identifier of the identifier of text and response message;
According to the identifier of request message in each message identifier group described and identifier, the Yi Jisuo of response message
The matching relationship of the identifier of request message and the identifier of response message is stated, generates message identifier relation table.
A kind of generating means of message matching relationship, including:
Acquiring unit, for obtaining multiple messages;
Extraction unit, for extracting the identifier of the message;
Resolution unit, for parsing the message, obtains the classification of the message;
First signal generating unit, for the classification according to the message, by the sorting identifiers of the message, forms multiple reports
Literary group identifier, wherein, the message identifier group includes the identifier of request message and sound corresponding with the request message
Answer the identifier of message;
Second signal generating unit, for responding the input operation of user, adds connection group to message identifier group each described
Information, obtains message information table.
Alternatively, the connection group information includes:The title of connection group, the type of connection group, the scope of connection group and company
Connect the parameter value of group;Wherein,
Second signal generating unit, including:
Second generates subelement, for responding the input operation of user, to corresponding in message identifier group each described
The title of connection group, the type of connection group, the parameter value assignment respectively of the scope of connection group and connection group, obtain message information
Table.
Alternatively, the type of the connection group includes:Integer variable, character string type and enumeration type.
Alternatively, when the type of the message that the resolution unit parsing is obtained is predefined type, described second generates son list
Unit executes the parameter value assignment to corresponding connection group in message identifier group each described, specifically for:To report each described
In literary group identifier, the parameter value of corresponding connection group assigns invalid value;
Wherein, it is the request message without response message that the predefined type is used for identifying the message.
Alternatively, described device also includes:
Reading unit, for reading each the message identifier group in the message information table;
Construction unit, for the connection group information according to each message identifier group, builds each message mark described
Know the identifier of request message and the matching relationship of the identifier of response message in symbol group;
3rd signal generating unit, for the identifier according to the request message in each message identifier group described and response report
The identifier of text and the identifier of the request message and the matching relationship of the identifier of response message, generate message identification
Symbol relation table.
In the generation method of the message matching relationship that the present invention is provided and device, by the sorting identifiers of message, bag is formed
Multiple message identifier groups of the identifier of identifier and response message corresponding with the request message containing request message, and
Add connection group information to message identifier group each described, obtain message information table, it is possible to achieve will by connecting group information
The identifier of request message and the identifier of response message in each message identifier group is mated, and then achieves request
The foundation of the matching relationship of message and response message.Also, due to the connection group information that adds in message identifier group, do not receive
The impact of vehicle, is adapted to various vehicles, so the portability of the generation method of this message matching relationship is high;Separately
Outward, the quantity of the connection group information that adds in message identifier group, can be carried out according to the quantity of message identifier to be built
Adjustment, therefore, the generation method of this message matching relationship has higher extensibility.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
Accompanying drawing to be used needed for technology description is had to be briefly described, it should be apparent that, drawings in the following description are only this
Inventive embodiment, for those of ordinary skill in the art, on the premise of not paying creative work, can also basis
The accompanying drawing of offer obtains other accompanying drawings.
Fig. 1 (a) is a kind of flow chart of the generation method of message matching relationship disclosed in the embodiment of the present invention;
Fig. 1 (b) is the schematic diagram of message between ECU and diagnostic device disclosed in the embodiment of the present invention;
Fig. 2 is a kind of flow chart of the generation method of message matching relationship disclosed in another embodiment of the present invention;
Fig. 3 is the structural representation of the generating means of message matching relationship disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of the generating means of message matching relationship disclosed in another embodiment of the present invention;
Fig. 5 is the disclosed schematic diagram for adding connection group information of the embodiment of the present invention;
Fig. 6 is the disclosed schematic diagram configured by the connection group information of the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
The embodiment of the invention discloses a kind of generation method of message matching relationship, to solve message identification in prior art
The not high problem of the not high and extensibility of portability that the rule of classification of symbol is present.
Referring to Fig. 1 (a), the generation method of message matching relationship disclosed in the embodiment of the present invention, including step:
S101, the multiple messages of acquisition;
Wherein, multiple messages of acquisition include request message and response message, and the request message can be divided into function request
Message and physics request message.
It should be noted that each message carries identifier, the identifier is the Identity Code of message, is to report
The unique mark that text is made a distinction with other messages.Also, the attribute of each message is comprising for showing that message is request message
Or the identity attribute of response message, and for showing the transmission property of the bus type of transmitting message, also include for table
Contract quotation text be diagnostic message or for refresh message, or for demarcate message type attribute.
In an example of the present invention, can be found in Fig. 1 (b), ECU101 and connect two diagnostic devices, one is directly to connect
The CanTester102 being connected in CAN, another is the EthTester103 being connected on car load Ethernet interface.And
And, ECU101 needs to be connected with EthTester103 through router 104.Therefore, for ECU and two diagnostic device, meeting
Totally 6 messages of 2 diagnostic bank are produced, specially:
1st, CAN the diagnostic bank ----diagnosis message that transmitted by CAN
Fun message:The function request message of CanTester102;
Phy message:The physics request message of CanTester102;
Resp message:ECU101 is to the response message of CanTester102;
2nd, ETH diagnostic bank ----by Ethernet bus transfer diagnosis message
EthFunReq message:The function request message of EthTester103;
EthPhyReq message:The physics request message of EthTester103;
EthResp message:ECU101 is to the response message of EthTester103.
This step can obtain above-mentioned 6 messages for producing in the example of the present invention.
S102, the identifier of the extraction message;
Due to the identity tag code that the identifier of message is message, therefore, the matching relationship for building message equivalent can be managed
The matching relationship for generating the identifier of message is solved, so first extracting the identifier of the message of acquisition.
S103, the parsing message, obtain the classification of the message;
Including, the attribute of each message for obtaining in identification step S101, the classification of each message is obtained, the message
Classification is used for showing specific identity attribute, transmission property and the category attribute of message.
In the example of the present invention, 6 messages for obtaining are parsed, can be obtained:
The classification of Fun message is:CanTester102 sends, is transmitted by CAN and diagnostic function request report
Text;
The classification of Phy message is:CanTester102 sends, is transmitted by CAN and diagnostic physics request report
Text;
The classification of Resp message is:ECU101 feeds back to CanTester102, is transmitted by CAN and diagnostic sound
Answer message;
The classification of EthFunReq message is:EthTester103 send, by Ethernet bus transfer and diagnostic
Function request message;
The classification of EthPhyReq message is:EthTester103 send, by Ethernet bus transfer and diagnostic
Physics request message;
The classification of EthResp message is:ECU101 feeds back to EthTester103, by Ethernet bus transfer and for
The response message of diagnosis.
S104, according to the message classification, the sorting identifiers of the message form multiple message identifier groups;
Wherein, identifier of the message identifier group comprising request message and response report corresponding with the request message
The identifier of text, also, the identifier of the request message includes:The identifier of function request message and physics request message
Identifier.
It should be noted that after obtaining the classification of the message, can according to the classification of message by with matching relationship please
Ask message and response message that a class is classified as, specifically, the identifier of the message with matching relationship is classified as a class.
In the example of the present invention, Fun message, Phy message and Resp message have matching relationship;EthFunReq message,
EthFunReq message and EthResp message have matching relationship, and therefore, the message identifier group of acquisition includes:By Fun message,
First message identifier group of the identifier composition of Phy message and Resp message;Reported by EthFunReq message, EthFunReq
Second message identifier group that the identifier of text and EthResp message constitutes.
S105, the input operation of response user, add connection group information, obtain message to message identifier group each described
Information table.
Specifically, the control instruction of receiving user's input, extracts the connection group information that the control instruction is carried, to each
The message identifier group adds connection group information, obtains message information table.
It should be noted that can complete in each report in the communications database of the forms such as DBC or Excel
The step of literary group identifier adds connection group information, formation message information table.
In the example of the present invention, it is 1, second message identifier that first message identifier group adds connection group information
It is that 0, the message information table of formation can be as following table that group adds connection group information:
It should be noted that in the generation method of the message matching relationship of the present embodiment offer, the identifier of message is divided
Class, forms multiple message marks of the identifier of the identifier comprising request message and response message corresponding with the request message
Know symbol group, and connection group information is added to message identifier group each described, obtain message information table, it is possible to achieve by connection
The identifier of request message in each message identifier group and the identifier of response message are mated by group information, Jin Ershi
The foundation of the matching relationship of request message and response message is showed.Also, due to the connection group letter for adding in message identifier group
Breath, is not affected by vehicle, is adapted to various vehicles, so the transplantation of the generation method of this message matching relationship
Property high;In addition, the quantity of the connection group information that adds in message identifier group, can be according to the number of message identifier to be built
Amount is adjusted, and therefore, the generation method of this message matching relationship has higher extensibility.
Also, it should be noted in the generation method of message matching relationship disclosed in the present embodiment, generating message information table
Afterwards, each is known the connection group information of each message identifier group, is reported with passing through per family to search the message information table
Matching relationship between text.
Alternatively, in another embodiment of the present invention, referring to Fig. 5 and Fig. 6, the connection group information includes:Connection group
Title, the type of connection group, the parameter value of the scope of connection group and connection group;Specifically, in the present embodiment, above-mentioned steps S105
Specifically include:
The input operation of response user, to the title of corresponding connection group, connection group in message identifier group each described
Type, the scope of connection group and connection group parameter value respectively assignment, obtain message information table.
It should be noted that the title of connection group can carry out assignment according to user's request or custom, for example:Define connection group
Entitled ConnectionGroup.In the example of the present invention, it is in the connection group information that two message identifier groups are added
The title of connection group can be all ConnectionGroup.
The type of connection group, common are integer variable, and also referred to as Int type, i.e., using simple digital, represent different connections
Group;Character string type, also referred to as String type, i.e., using character string, represent different connection group names;Enumeration type, also referred to as
Enum type, is wherein fixedly connected group for number, can be defined as enumeration type.In the example of the present invention, definition
The type of ConnectionGroup is Int type.
The scope of connection group refers to the numerical range of connection group attribute;Also, user can set connection group as needed
The numerical range of attribute.For example:Type is set as in the connection group information of integer variable, the numerical range of the attribute of its connection group
For 0-255.In the example of the present invention, it is the numerical range of the connection group attribute that two message identifier groups all set as 0-
255.
Also, it should be noted but and not all message identifier group be required for add connection group information, generally,
The message identifier group being made up of the identifier without the request message of response message, is to add connection group information
, because this kind of message does not have corresponding response message, it is not necessary to set up request message and response report by connecting group information
The matching relationship of text.Wherein, the request message for not having response message can include:Normal communication message or user make by oneself
The message of justice.For meeting the demand of this kind of situation, the connection group parameter value for defining in certain connection group information is invalid parameter values,
So, to should invalid parameter values connection group information be invalid, build message between matching relationship when, then negligible should
The corresponding message identifier group of connection group parameter value.
For example:Type is set as in the connection group information of integer variable, 255 this connection group parameter value are invalid value.
Therefore, in the above embodiment of the present invention, in step S103, analytic message, the classification for obtaining message is predefined type
When, corresponding, parameter value assignment to corresponding connection group in message identifier group each described, including:To report each described
In literary group identifier, the parameter value of corresponding connection group assigns invalid value.
Wherein, it is the request message without response message that the predefined type is used for identifying the message.
The parameter value of connection group refers to the property value of connection group, i.e., certain for selecting from the numerical range of connection group attribute
Value.
In the example of the present invention, the parameter of the connection group in the connection group information that first message identifier group is added
Value is entered as 1, and the parameter value of the connection group in the connection group information that second message identifier group is added is entered as 0.
Also, it should be noted the parameter value of the connection group in the connection group information added by different message identifier groups
During assignment, the message identifier that combines in the message identifier group is needed to correspond to the category attribute of message, for example:To executing diagnosis
Message identifier composition message identifier group and execute demarcate message identifier composition message identifier group, system
The parameter value assignment of the connection group in the connection group information of a pair of interpolation, or respectively to the connection in the connection group information of interpolation
The parameter value assignment of group.
If unified assignment, then for example:10 message identifier groups, the message identifier in front 5 message identifier groups
Corresponding message is used for diagnosing, and the message identifier in rear 5 message identifier groups corresponds to message to be used for demarcating.In such cases,
The parameter value 0-5 of connection group is the parameter value of the connection group in the connection group information that front 5 message identifier groups are added, connection group
Parameter value 6-10 be rear 5 message identifier groups add connection group information in connection group parameter value.
If difference assignment, then for example:The parameter value 0-5 of connection group is the connection group that front 5 message identifier groups are added
The parameter value of the connection group in information, or the connection group in the connection group information that rear 5 message identifier groups are added
Parameter value.
Referring to Fig. 2, the generation method of message matching relationship disclosed in another embodiment of the present invention, including step:
S201, the multiple messages of acquisition;
Wherein, multiple messages of acquisition include request message and response message, and the request message can be divided into function request
Message and physics request message.
Also, the message carries identifier, the identifier for message Identity Code, be by message and other
The unique mark that message makes a distinction.
S202, the identifier of the extraction message;
Due to the identity tag code that the identifier of message is message, therefore, the matching relationship for building message equivalent can be managed
Solve for generating the matching relationship between the identifier of message, so first extracting the identifier of message for obtaining.
S203, the parsing message, obtain the classification of the message;
S204, according to the message classification, the sorting identifiers of the message form multiple message identifier groups,
Wherein, the message identifier group is comprising the identifier of request message and the mark of response message corresponding with the request message
Symbol;
S205, the input operation of response user, add connection group information, obtain message to message identifier group each described
Information table;
S206, each the message identifier group for reading in the message information table;
In step S205, in the message information table of acquisition, can pass through look-up table in connection group information, judge have
Join the identifier of the message of relation.But, when needing for the message information table to import ECU, then only need to import message letter
The matching relationship of the identifier of message in breath table.
S207, according to each message identifier group connection group information, build in each message identifier group described
The matching relationship of the identifier of the identifier of request message and response message;
It should be noted that due in connection group information that the group identifier of each message is added, the parameter of connection group
Be worth for identical, illustrate the message in the group identifier of the message the corresponding message of identifier be with matching relationship, because
This, need to build this matching relationship.
S208, the identifier of the identifier according to the request message in each message identifier group described and response message,
And the identifier of the request message and the matching relationship of the identifier of response message, generate message identifier relation table.
Wherein, the message identifier relation table of generation, for showing the identifier of request message and the mark of response message
The matching relationship of symbol.Therefore, if message identifier relation table importing ECU, ECU then can be looked into according to the message identifier relation table
Table obtains the identifier of the corresponding response message of identifier of the request message for receiving, and then obtains the mark of the response message
The response message that symbol is referred to.
A kind of generating means of message matching relationship disclosed in another embodiment of the present invention, as shown in figure 3, including:
Acquiring unit 301, for obtaining multiple messages;
Extraction unit 302, for extracting the identifier of the message;
Resolution unit 303, for parsing the message, obtains the classification of the message;
First signal generating unit 304, for the classification according to the message, by the sorting identifiers of the message, forms many
Individual message identifier group, wherein, the message identifier group is comprising the identifier of request message and corresponding with the request message
Response message identifier;
Second signal generating unit 305, for responding the input operation of user, adds connection to message identifier group each described
Group information, obtains message information table.
In the generating means of message matching relationship disclosed in the present embodiment, the first signal generating unit 304 is by the identifier of message
Classification, forms multiple messages of the identifier of the identifier comprising request message and response message corresponding with the request message
Group identifier, the second signal generating unit 305 adds connection group information to message identifier group each described, obtains message information table,
Can realize by connecting group information by the identifier of request message in each message identifier group and the mark of response message
Symbol is mated, and then achieves the foundation of the matching relationship of request message and response message.Also, due in message identifier
The connection group information that group is added, is not affected by vehicle, is adapted to various vehicles, so this message matching relationship
The portability of generation method is high;In addition, the quantity of the connection group information that adds in message identifier group, can be according to be built
The quantity of message identifier be adjusted, therefore, the generation method of this message matching relationship with higher expansible
Property.
Also, it should be noted unit in the generating means of message matching relationship disclosed in the present embodiment is concrete
Work process, can be found in the embodiment of the method content of corresponding Fig. 1, and here is omitted.
Alternatively, in another embodiment of the present invention, the connection group information includes:The title of connection group, the class of connection group
The parameter value of type, the scope of connection group and connection group;Wherein,
Second signal generating unit, including:Second generates subelement, for responding the input operation of user, to each institute
State the parameter value of the title of corresponding connection group in message identifier group, the type of connection group, the scope of connection group and connection group
Assignment, obtains message information table respectively.
Alternatively, in another embodiment of the present invention, the type of the connection group includes:Integer variable, character string type and
Enumeration type.
Alternatively, in another embodiment of the present invention, the type of the message that the resolution unit parsing is obtained is predefined type
When, described second generates parameter value assignment of the subelement execution to corresponding connection group in message identifier group each described, tool
Body is used for:Invalid value is assigned to the parameter value of corresponding connection group in message identifier group each described;
Wherein, it is the request message without response message that the predefined type is used for identifying the message.
In the above embodiment of the present invention, the specific works mistake of the unit in the generating means of message matching relationship
Journey, can be found in corresponding embodiment of the method content, and here is omitted.
Alternatively, in another embodiment of the present invention, referring to Fig. 4, the generation of message matching relationship disclosed in the present embodiment is filled
In putting, except including, acquiring unit 401, extraction unit 402, resolution unit 403, the first signal generating unit 404, the second signal generating unit
405, also include:
Reading unit 406, for reading each the message identifier group in the message information table;
Construction unit 407, for the connection group information according to each message identifier group, builds each message described
The matching relationship of the identifier of the identifier of request message and response message in group identifier;
3rd signal generating unit 408, for the identifier according to the request message in each message identifier group described and sound
The matching relationship of the identifier of message and the identifier of the request message and the identifier of response message is answered, generates message
Identifier relationships table.
It should be noted that the concrete work of the unit in the generating means of message matching relationship disclosed in the present embodiment
Make process, the embodiment of the method content of corresponding Fig. 2 is can be found in, here is omitted.
Professional and technical personnel can realize or use the present invention.Specialty to multiple modifications of these embodiments to this area
Will be apparent for technical staff, generic principles defined herein can be in the spirit without departing from the present invention or model
In the case of enclosing, realize in other embodiments.Therefore, the present invention is not intended to be limited to the embodiments shown herein,
And it is to fit to the most wide scope consistent with principles disclosed herein and features of novelty.
Claims (10)
1. a kind of generation method of message matching relationship, it is characterised in that include:
Obtain multiple messages;
Extract the identifier of the message;
The message is parsed, obtains the classification of the message;
According to the classification of the message, by the sorting identifiers of the message, multiple message identifier groups are formed, wherein, described
Message identifier group is comprising the identifier of request message and the identifier of response message corresponding with the request message;
The input operation of response user, adds connection group information, obtains message information table to message identifier group each described.
2. method according to claim 1, it is characterised in that the connection group information includes:The title of connection group, connection
The parameter value of the type of group, the scope of connection group and connection group;Wherein,
The input operation of the response user, adds connection group information, obtains message information to message identifier group each described
Table, including:
The input operation of response user, the class to the title of corresponding connection group, connection group in message identifier group each described
The parameter value difference assignment of type, the scope of connection group and connection group, obtains message information table.
3. method according to claim 2, it is characterised in that the type of the connection group includes:Integer variable, character string
Type and enumeration type.
4. method according to claim 2, it is characterised in that if the parsing message, the type for obtaining the message is
During predefined type, the parameter value assignment to corresponding connection group in message identifier group each described, including:
Invalid value is assigned to the parameter value of corresponding connection group in message identifier group each described;
Wherein, it is the request message without response message that the predefined type is used for identifying the message.
5. method according to claim 1, it is characterised in that also include:
Read each the message identifier group in the message information table;
According to the connection group information of each message identifier group, request message in each message identifier group described is built
The matching relationship of the identifier of identifier and response message;
According to the identifier of request message in each message identifier group described and the identifier of response message and described please
The matching relationship of the identifier of message and the identifier of response message is sought, generates message identifier relation table.
6. a kind of generating means of message matching relationship, it is characterised in that include:
Acquiring unit, for obtaining multiple messages;
Extraction unit, for extracting the identifier of the message;
Resolution unit, for parsing the message, obtains the classification of the message;
First signal generating unit, for the classification according to the message, by the sorting identifiers of the message, forms multiple message marks
Know symbol group, wherein, identifier of the message identifier group comprising request message and response corresponding with the request message are reported
The identifier of text;
Second signal generating unit, for responding the input operation of user, adds connection group information to message identifier group each described,
Obtain message information table.
7. device according to claim 6, it is characterised in that the connection group information includes:The title of connection group, connection
The parameter value of the type of group, the scope of connection group and connection group;Wherein,
Second signal generating unit, including:
Second generates subelement, for responding the input operation of user, to corresponding connection in message identifier group each described
The title of group, the type of connection group, the parameter value assignment respectively of the scope of connection group and connection group, obtain message information table.
8. device according to claim 7, it is characterised in that the type of the connection group includes:Integer variable, character string
Type and enumeration type.
9. device according to claim 7, it is characterised in that the type of the message that the resolution unit parsing is obtained is pre-
When determining type, described second generates subelement executes the parameter value tax to corresponding connection group in message identifier group each described
Value, specifically for:Invalid value is assigned to the parameter value of corresponding connection group in message identifier group each described;
Wherein, it is the request message without response message that the predefined type is used for identifying the message.
10. device according to claim 6, it is characterised in that also include:
Reading unit, for reading each the message identifier group in the message information table;
Construction unit, for the connection group information according to each message identifier group, builds each message identifier described
The matching relationship of the identifier of the identifier of request message and response message in group;
3rd signal generating unit, for the identifier according to the request message in each message identifier group described and response message
The matching relationship of the identifier of the identifier and response message of identifier and the request message, generates message identifier pass
It is table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610997758.6A CN106453016A (en) | 2016-11-11 | 2016-11-11 | A method and a device for generating a message matching relationship |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610997758.6A CN106453016A (en) | 2016-11-11 | 2016-11-11 | A method and a device for generating a message matching relationship |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106453016A true CN106453016A (en) | 2017-02-22 |
Family
ID=58207925
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610997758.6A Pending CN106453016A (en) | 2016-11-11 | 2016-11-11 | A method and a device for generating a message matching relationship |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106453016A (en) |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101009635A (en) * | 2006-01-27 | 2007-08-01 | 上海贝尔阿尔卡特股份有限公司 | A message forwarding method for the dynamic host configuration protocol and its network device |
CN102882703A (en) * | 2012-08-31 | 2013-01-16 | 赛尔网络有限公司 | Hyper text transfer protocol (HTTP)-analysis-based uniform resource locator (URL) automatically classifying and grading system and method |
US20140365588A1 (en) * | 2012-09-22 | 2014-12-11 | Cedar Point Partners, Llc | Methods, systems, and computer program products for processing a data object identification request in a communication |
CN104333552A (en) * | 2014-11-04 | 2015-02-04 | 福建星网锐捷网络有限公司 | Authentication determination method and accessing equipment |
CN105591811A (en) * | 2015-10-23 | 2016-05-18 | 杭州华三通信技术有限公司 | Mapping server restart recovery method and device in LISP |
-
2016
- 2016-11-11 CN CN201610997758.6A patent/CN106453016A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101009635A (en) * | 2006-01-27 | 2007-08-01 | 上海贝尔阿尔卡特股份有限公司 | A message forwarding method for the dynamic host configuration protocol and its network device |
CN102882703A (en) * | 2012-08-31 | 2013-01-16 | 赛尔网络有限公司 | Hyper text transfer protocol (HTTP)-analysis-based uniform resource locator (URL) automatically classifying and grading system and method |
US20140365588A1 (en) * | 2012-09-22 | 2014-12-11 | Cedar Point Partners, Llc | Methods, systems, and computer program products for processing a data object identification request in a communication |
CN104333552A (en) * | 2014-11-04 | 2015-02-04 | 福建星网锐捷网络有限公司 | Authentication determination method and accessing equipment |
CN105591811A (en) * | 2015-10-23 | 2016-05-18 | 杭州华三通信技术有限公司 | Mapping server restart recovery method and device in LISP |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103020024B (en) | A kind of file layout change-over method | |
CN109739915B (en) | Cross-domain shared data model construction method | |
CN110110509A (en) | Right management method and Related product | |
CN102231107B (en) | Method for automatically generating communication data format of electric control unit based on AUTOSAR (Automotive Open System Architecture) | |
CN102708213A (en) | Method for realizing BOM (Bill of Material) information transmission between PDM (Product Data Management) system and ERP (Enterprise Resource Planning) system | |
CN107329849A (en) | A kind of data verification method and system based on Java systems | |
CN102611741B (en) | Method for extracting communication matrix from AUTOSAR (Automotive Open System Architecture) system allocation model | |
CN102932431A (en) | Message-routing-based state monitoring data interface configuration method | |
CN107645497A (en) | Internet of things equipment control and authority share system and method based on public number | |
CN103810171A (en) | Method and system for generating random test data within limited range | |
CN106294299A (en) | A kind of report form generation method and device | |
CN105141627B (en) | Data sending and receiving method, device and equipment | |
CN103399844B (en) | Report generation method and generation device | |
CN102999329B (en) | The Active Directory interface exploitation method of configuration is mapped based on extend markup language | |
CN104991977A (en) | Assembly unit specification obtain and generation method and system, assembly and terminal | |
CN101930362A (en) | Method for integrating TTCN language and data description language | |
CN114039808A (en) | CAN-based multi-channel CAN/LIN/SENT forwarding protocol | |
CN104811479B (en) | A kind of creation method based on forwarding with the virtual network node of control separated protocol | |
CN106453016A (en) | A method and a device for generating a message matching relationship | |
CN110365498B (en) | Group new construction and message interaction method and system | |
CN105256733B (en) | The outbound guidance method of subway station and system | |
CN105912723A (en) | Storage method of custom field | |
CN103458039A (en) | Message generation method, mobile terminal, communication server and message generation system | |
CN101620592A (en) | Method for storing data by combination of PDF and XML | |
CN104933546B (en) | Data reporting method and system based on custom built forms |
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: 20170222 |