CN101695172A - Method and device for independent description and encoding of message interfaces of communication equipment - Google Patents

Method and device for independent description and encoding of message interfaces of communication equipment Download PDF

Info

Publication number
CN101695172A
CN101695172A CN200910236042A CN200910236042A CN101695172A CN 101695172 A CN101695172 A CN 101695172A CN 200910236042 A CN200910236042 A CN 200910236042A CN 200910236042 A CN200910236042 A CN 200910236042A CN 101695172 A CN101695172 A CN 101695172A
Authority
CN
China
Prior art keywords
message
definition file
communication equipment
equipment
communication
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.)
Granted
Application number
CN200910236042A
Other languages
Chinese (zh)
Other versions
CN101695172B (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.)
Beijing T3G Technology Co Ltd
Original Assignee
Beijing T3G Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing T3G Technology Co Ltd filed Critical Beijing T3G Technology Co Ltd
Priority to CN2009102360424A priority Critical patent/CN101695172B/en
Publication of CN101695172A publication Critical patent/CN101695172A/en
Application granted granted Critical
Publication of CN101695172B publication Critical patent/CN101695172B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a method and a device for independent description and encoding of message interfaces of communication equipment and belongs to the technical field of communication. The method includes steps of firstly, adopting an interface definition file to describe interfaces of communication protocol messages in to-be-detected communication equipment and adopting a structure definition file to describe structures of the communication protocol messages in the to-be-detected communication equipment, secondarily, transmitting the interface definition file and the structure definition file which are adopted to a detection facility when the detection facility is connected with the to-be-detected equipment firstly, and finally, adopting a natural data text mode to encode the communication protocol messages in the to-be-detected equipment and then transmitting the encoded texts to the detection facility. Besides, the detection facility utilizes the structure definition file and the interface definition file which are transmitted by the to-be-detected equipment to decode the texts, thereby realizing independence of the communication protocol messages and the communication equipment protocol stack software version.

Description

Message interfaces of communication equipment independent description and Methods for Coding and device
Technical field
The invention belongs to communication technical field, relate in particular to a kind of message interfaces of communication equipment independent description and Methods for Coding and device.
Background technology
In communication system, particularly for mobile communication terminal and mobile communication road detector, communication protocol stack is one of whole communication system core part.The exploitation of communication protocol stack needs coacting of PHP and Test Engineer to finish smoothly.In the development process of communication protocol stack, need carry out on-the-spot test to the software of having developed, the problem that occurs in the test is analyzed and researched, again problem is solved.So the on-the-spot test personnel in test process, need to preserve communication device message, and give the research staff with the message that goes wrong, by the research staff message flow is analyzed, thereby the problem that occurs in the test is researched and solved.It is one of main adjustment method of communication protocol stack exploitation that message analysis is handled.
At present in the R﹠D process of communication apparatus communication protocol stack sofeware, usually the method that the message flow of communication protocol is analyzed is, use UART (Universal AsynchronousReceiver/Transmitter, general asynchronous receiving-transmitting transmitter), perhaps USB (Universal Serial Bus, USB), perhaps ICP/IP protocol (the Transfer ControlProtocol/Internet Protocol in the Ethernet (Ethernet), TCP) connection device such as, communication equipment to be tested and staff's checkout equipment is linked to each other, communication equipment to be tested is derived the message of communication protocol in test in real time, give checkout equipment by the connection device real-time Transmission, the analytical tool of while operational communications protocol message on checkout equipment, this analytical tool can be real-time parse message flow, check or preserve for the tester.When the tester pinpoints the problems in test, just message is preserved, issue the software developer then and analyze and handle.
The problem that present this method exists is: because the complexity of communication protocol, from the physical layer to the Non-Access Stratum, communication protocol message is extremely complicated.The tester needs to obtain mass communication protocol message and data usually from communication equipment in test process, then, adopt certain coding/decoding method that the communication protocol message that gets access to is carried out further computational analysis by the analytical tool on the checkout equipment, for research staff's analytic statistics.And in order can to decode to communication protocol message, the analytical tool of communication protocol message need adopt with the message interfaces of communication equipment corresponding coding/decoding method of encoding, and unifies the computing of decoding.Yet because communication protocol message quantity is very huge, the kind of message varies, more complicated is that if the software version of communication apparatus communication protocol stack changes or upgrades, the digital coding of this communication protocol message also can inevitably change.
In sum, must design a kind of coding method that can adapt to various communication protocol message types, and can accomplish with the software version of communication apparatus communication protocol stack independent.Otherwise the decoding problem of communication protocol message will exist serious version coupling and protocol stack code dependence.
Summary of the invention
In order to address the above problem, the purpose of this invention is to provide a kind of message interfaces of communication equipment independent description and Methods for Coding and device, realized that the coding method of communication protocol message is independent of communication equipment protocol stack sofeware version.
In order to achieve the above object, the invention provides a kind of message interfaces of communication equipment independent description and Methods for Coding, described method comprises:
Adopt Interface Definition Document to describe the interface of communication protocol message in the communication equipment to be tested, and adopt structure definition file to describe the structure of communication protocol message in the communication equipment to be tested;
When checkout equipment is connected with described communication equipment to be tested first, the described Interface Definition Document of employing and the described structure definition file of employing are transferred to described checkout equipment;
Communication protocol message in the described communication equipment to be tested is adopted natural data message mode coding, and be transferred to described checkout equipment, adopt described structure definition file and described Interface Definition Document that message is decoded by described checkout equipment.
Preferably, the structure definition file of described structure definition file for adopting Hash hash mode to define.
Preferably, the described described Interface Definition Document that will adopt is specially with the step that adopts described structure definition file to be transferred to described checkout equipment:
With described Interface Definition Document and the described structure definition file packing compression of adopting, and the described Interface Definition Document after will compressing and described defined file as a result are transferred to described checkout equipment.
Preferably, the step of described packing compression specifically comprises:
Compress processing by described Interface Definition Document and described structure definition file respectively;
The processing of packing again of docking port defined file compressed package and structure definition file compressed package, and described Interface Definition Document compressed package and described structure definition file compressed package be cut into a plurality of small data packets.
Preferably, described communication equipment to be measured by Handshake Protocol with the compression algorithm version, type of data packet, the size of packet number and each packet is notified to described checkout equipment.
Preferably, described Interface Definition Document comprises: the process list that the communication equipment protocol stack sofeware is comprised, process sum, process title, one or more in finite state machine message name and message code and applied output message name and the message code.
Preferably, described structure definition file comprises: one or more in finite state machine message, applied output message, time exceeded message, abnormality processing message, mutual control messages and the version information message.
Preferably, described communication equipment to be measured is by the general asynchronous receiving-transmitting transmitter of UART, perhaps USB USB, and perhaps the TCP/IP TCP is connected with described checkout equipment.
The present invention also provides a kind of message interfaces of communication equipment independent description and apparatus for encoding, comprising:
The message semantic definition module is used for adopting Interface Definition Document to describe the interface of communication equipment communication protocol message to be tested, and adopts structure definition file to describe the structure of communication protocol message;
Configuration module is used for when checkout equipment is connected with described communication equipment to be tested first, and the described Interface Definition Document of employing and the described structure definition file of employing are transferred to described checkout equipment;
The transmission of messages module, be used for the message of described communication equipment to be tested is adopted natural data message mode coding, and being transferred to described checkout equipment, described checkout equipment adopts and by the described structure definition file and the described Interface Definition Document of described device transmission to be detected message is decoded.
Preferably, the structure definition file of described structure definition file for adopting Hash hash mode to define.
At least one technical scheme in the technique scheme has following beneficial effect: at first the interface with communication protocol message adopts the Interface Definition Document definition, and adopts structure definition file to describe the structure of communication protocol message; When the message parse instrument on the checkout equipment is connected with this communication equipment to be tested first, the Interface Definition Document of employing and the structure definition file of employing are transferred in the checkout equipment; Then communication protocol message all in the Devices to test is adopted natural data message mode coding, and after being transferred to the message parse instrument of checkout equipment, adopt Interface Definition Document and structure definition file that message is decoded by this message parse instrument, thereby the encoding and decoding that realized communication protocol message are independent of communication equipment protocol stack sofeware version, make and not rely on the source code that concrete communication protocol message defines, and to the real-time decoding of all communication protocol message with the unified approach description, realized the communication protocol message structural change and the autosynchronous purpose of energy of decoding, thereby can effectively improve testing efficiency, can be applied in widely on mobile communication terminal and the mobile communication road detector.
Description of drawings
Fig. 1 is the schematic flow sheet of message interface independent description of the present invention and decoding method;
Fig. 2 is the method flow schematic diagram of message interface independent description of the present invention and coding stipulations transfer of data;
Fig. 3 is a communication protocol message analytic method schematic flow sheet of the present invention;
Fig. 4 is the structural representation of message interfaces of communication equipment independent description of the present invention and code device.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention is clearer,, the embodiment of the invention is done explanation in further detail below in conjunction with embodiment and accompanying drawing.At this, illustrative examples of the present invention and explanation are used to explain the present invention, but not as a limitation of the invention.
The test of communication equipment for convenience in the present embodiment, reduce testing cost and improve testing efficiency, can be at first the interface of communication protocol message in the communication equipment to be tested be adopted the Interface Definition Document definition, and adopt structure definition file to describe the structure of communication protocol message, and with this Interface Definition Document, structure definition file and the defined file relevant with the protocol stack sofeware version when communication equipment programming software to be tested, the firmware in the lump programming in the EPROM (Erasable Programmable Read Only Memory) of communication equipment to be tested; When checkout equipment (for example master control computer) is connected with this communication equipment to be tested first, this Interface Definition Document and structure definition file can be transferred in the checkout equipment; Then all communication protocol message in the Devices to test are adopted natural data message mode coding, and the transmission of messages after will encoding gives checkout equipment, and the message parse instrument in this checkout equipment will adopt the structure definition file that is transmitted by communication equipment to be tested that message is decoded.
As shown in Figure 1, be message interfaces of communication equipment independent description among the present invention and Methods for Coding flow chart, concrete steps are as follows:
Step 11, the software with communication equipment to be tested, firmware and the message interface independent description that comprises communication equipment to be tested and the programming of coding stipulations packet are in the EPROM (Erasable Programmable Read Only Memory) of communication equipment to be tested;
Can use the upgrade software instrument in the communication equipment to be tested in this step, with software, firmware and the message interfaces of communication equipment independent description to be tested of the communication equipment of respective version and coding stipulations data programming in the lump in the data storage cell of communication equipment to be tested.Above-mentioned data storage cell can be positioned at the EEPROM (Electrically-Erasable Programmable Read-Only Memory, Electrically Erasable Read Only Memory) of communication equipment to be tested;
In the present embodiment, above-mentioned message interfaces of communication equipment independent description to be tested comprises following two kinds of files with coding stipulations packet:
1) Interface Definition Document, this Interface Definition Document can be used for defining the interface name and the numbering of communication protocol message in the communication equipment to be tested.
This Interface Definition Document comprises following content: the process name tabulation that the communication equipment protocol stack sofeware is comprised, the process number, finite state machine message name and message code, applied output message name and message code, the message name and the message code thereof of all message of time exceeded message, abnormality processing message, mutual control messages, version information message or the like.Simultaneously, almost every communication protocol message all has a corresponding structure definition, and Interface Definition Document has provided corresponding relation.For different protocol stack sofeware versions, Interface Definition Document will be different fully.
Interface Definition Document will adopt script to extract automatically based on all protocol stack code.But by present embodiment, this Interface Definition Document can be cured in the EPROM (Erasable Programmable Read Only Memory) of communication equipment to be tested, and can be transferred in the checkout equipment, has realized the version independent of the real-time coding of message interface.
Provided the content template of this Interface Definition Document below:
/ * process list
The process sum
/ * process title process numbering
Process title 10
Process title 21
Process title 32
/ * timer table */
/ * #define timer title timer numbering (unsigned int, hexadecimal)
#define timer title 1 0x00000001
#define timer title 2 0x00000002
/ * finite state machine message table */
/ * #define message name message numbering (unsigned int, hexadecimal)
#define message name 1 0x00000001
#define message name 2 0x00000002
#define message name 3 0x00000003
The applied output message table of/* */
/ * #define message name message numbering (no symbol short, hexadecimal)
#define application message title 1 0x0001
#define application message title 2 0x0002
#define application message title 3 0x0003
/ * message structure body title correspondence table
/ * message name: message structure body title
Message name 1: message structure body title 1
Message name 2: message structure body title 2
Message name 3: message structure body title 3
2) structure definition file, each communication protocol message all have corresponding structure, and structure definition file can be used for describing the structure of communication protocol message in the communication equipment to be tested.
This structure definition file comprises following content: the message structure definition of all message of the finite state machine message that comprises in the total interface defined file, applied output message, time exceeded message, abnormality processing message, mutual control messages, version information message or the like is described.For different protocol stack sofeware versions, Interface Definition Document will be different fully.Interface Definition Document will adopt script to extract automatically based on all protocol stack code.
Structure definition file can adopt Hash hash mode set storage, and each basic data type, each structure definition, each typedef type redefine, each enumeration type and each association's type, and unique Hash key assignments unique identification is all arranged.The data member of each structure all has its affiliated type Hash key assignments to describe, and the biased initial value of moving is all arranged.Each structure all has total data size to describe.
By structure definition file, realized that the individual Hash of communication protocol message is described.The advantage that adopts Hash to describe the structure of communication protocol message is, can guarantee the height consistency and the integrality of institute's description object, and platform dependence and the complexity of other interface description language (IDL, Interface Description Language) have been overcome.
Provided the content template of this Interface Definition Document below:
/ * typedef type redefines
(T): the typedef type redefines identifier; This typedef type redefines the Hash key assignments; The original structure body Hash key assignments that is redefined by this typedef type;
/ * structure
(S): the structure title; Structure Hash key assignments; The total position of structure is long;
Structure member variable title 1; This member variable is biased to be moved; The Hash key assignments of the data type of this member variable;
Structure member variable title 2; This member variable is biased to be moved; The Hash key assignments of the data type of this member variable;
Structure member variable title 3; This member variable is biased to be moved; The Hash key assignments of the data type of this member variable;
Structure member variable title 4; This member variable is biased to be moved; The Hash key assignments of the data type of this member variable;
/ * array
(A): the array title; The Hash key assignments of this array; This array dimension (element number); The Hash key assignments of this array data type;
/ * enumeration type
(E): the enumeration type title; The Hash key assignments of this enumeration type; Each of this enumeration type enumerated member's bit length;
Enumerate member 1: this enumerates member's value;
Enumerate member 2: this enumerates member's value;
Enumerate member 3; This enumerates member's value;
Enumerate member 4: this enumerates member's value;
Enumerate member 5: this enumerates member's value;
Enumerate member 6: this enumerates member's value;
/ * association
(U): association's title; This association's Hash key assignments; The bit length that this association is total;
Association's member variable 1,0: the Hash key assignments of the data type of this member variable;
Association's member variable 2,0: the Hash key assignments of the data type of this member variable;
Association's member variable 3,0: the Hash key assignments of the data type of this member variable;
/ * basic data type
(B); The basic data type title; The Hash key assignments of the type; The type data byte length; The type title is called for short;
Step 12, system initialization and user's configuration;
In the present embodiment, this step can comprise following three steps:
Message interface independent description and encoding function characteristic notice checkout equipment that step 121, communication equipment to be tested are supported Devices to test by Handshake Protocol.
Main flow process is: communication equipment to be tested is passed through UART, perhaps USB, perhaps the ICP/IP protocol in the Ethernet links to each other with checkout equipment, and utilize message parse instrument on the checkout equipment to shake hands initially to be connected with communication equipment to be tested, whether communication equipment to be tested reports supports message interface independent description and encoding characteristics, above-mentioned message interface independent description and encoding characteristics comprise: the compression algorithm version of this message interface independent description and coding stipulations packet, type of data packet, packet number and every bag size etc.;
Above-mentioned message parse instrument is an application program that is installed on the checkout equipment, is a kind of analytical tool of message, has communication protocol message is configured, resolves, shows and function such as storage.
Above-mentioned Handshake Protocol is that communication equipment to be tested is when being connected with message parse instrument in the checkout equipment, the initialize communications flow process that adopts, this Handshake Protocol is responsible for indicating the message interface independent description and the encoding function characteristic of communication equipment support to be tested, as the compression algorithm version, type of data packet, the size of packet number and each packet etc.;
Step 122, give communication equipment to be tested according to the configuration information of user's configuration distributing enable messages interface independent description and coding;
The configuration information of above-mentioned enable messages interface independent description and coding is meant a kind of default interface data, can determine whether to require interface independent description and coding by configuration information.
After step 123, message interface independent description and encoding function characteristic obtained confirming, communication equipment to be tested sent to the communication protocol message of message parse instrument, adopted this message interface independent description and encoding process and transmission always;
Step 13, message interface independent description and coding stipulations data compression packing;
Mainly be divided into two steps:
Step 131, behind the configuration information of receiving enable messages interface independent description and coding, earlier with message interface independent description and coding stipulations data, compress respectively by the stipulations file type, this stipulations file type comprises: Interface Definition Document and structure definition file.
Step 132, docking port defined file compressed package and structure definition file compressed package are packed respectively again, respectively are cut into a plurality of little fragment that is easy to transmit.
The transmission of step 14, message interface independent description and the stipulations data of encoding;
Communication equipment to be tested passes through UART, perhaps USB, perhaps the ICP/IP protocol in the Ethernet links to each other with checkout equipment, with interface independent description and coding stipulations data according to default host-host protocol, be transferred to the message parse instrument of checkout equipment, carry out analyzing and processing by the message parse instrument again.
Referring to Fig. 2, be the method flow schematic diagram of message interface independent description with coding stipulations transfer of data, concrete steps are as follows:
Do you step 141, judge that communication equipment to be tested supports coffret defined file and structure definition file? if execution in step 142; Otherwise, but process ends;
Step 142, communication equipment application coffret defined file to be tested and structure definition file;
In this step, communication equipment to be tested sends the number of file type, compressed data packets total length, compressed data packets cutting fragment, the maximum length and the compression type of each fragment to checkout equipment;
Do you step 143, judge that Interface Definition Document and structure definition file transmit and finish? if, execution in step 146; Otherwise, execution in step 144;
The next fragment of step 144, coffret defined file or structure definition file compressed data packets, execution in step 145 then;
Whether the Interface Definition Document and the structure definition file of step 145, verification transmission correct? if, return step 143, otherwise, step 144 returned;
Do you step 146, judge whether Interface Definition Document and structure definition file all transmit and finish? if, but process ends; Otherwise, return step 142;
Step 15, message interface independent description re-assembly with coding stipulations data and decompress;
This step can be divided into following two steps:
Step 151, message interface independent description re-assembly with coding stipulations data.
Detailed process is: the message parse instrument on the checkout equipment is handled the bag sheet of communication equipment to be tested according to default host-host protocol the message interface independent description that sends and the stipulations packet of encoding, and it is whether correct according to its check byte of bag sheet information check, message interface independent description and coding stipulations data file class, sequence number and sum carry out the assembly unit of message interface independent description and coding stipulations data then under the inspection bag sheet.
If find that the bag sheet of certain sequence number is imperfect, verification failure or bust this, then require communication equipment to transmit again, and return step 14, complete until all message interface independent descriptions with the success of coding stipulations data packet transmission.Above-mentioned bag sheet is meant the fragment of cutting in step 132.
Step 152, message interface independent description and coding stipulations packet to re-assemblying, according to the compression algorithm information that obtains from Handshake Protocol in system initialization and the user's layoutprocedure, decompress, and be saved in and be provided with the back on the checkout equipment and use, if next time, communication equipment was not changed upgrading to its software, firmware version, then need not again message transfer interface independent description and coding stipulations packet.If de-compression failure, the indication communication equipment transmits again.
Step 16, loading messages interface independent description and coding stipulations data;
This step can be divided into following two steps:
Message parse instrument on step 161, the checkout equipment will reload message interface independent description after decompressing and coding stipulations packet file.
If load failure, then indicate communication equipment to be tested to transmit again, perhaps point out the user, select local existing Interface Definition Document and structure definition file.Above-mentioned message interface independent description and coding stipulations data, i.e. defined Interface Definition Document of step 11 and structure definition file.
Step 162, message parse instrument extract the information of the message interface independent description wherein and the stipulations of encoding, and comprise all the elements of Interface Definition Document and structure definition file.
Step 17, transport communication protocol message, decoding and preservation;
This step comprises following two steps:
Step 171, according to message interface independent description and coding stipulations data, be responsible for message transfer by communication equipment to be tested, the message parse instrument on the checkout equipment receives message.
Step 172, message parse instrument are responsible for decoding and preserving the message of encoding through these stipulations.
Referring to Fig. 3, be communication protocol message analytic method schematic flow sheet among the present invention, concrete steps are as follows:
Do you step 301, judge that checkout equipment has loaded Interface Definition Document and structure definition file? if, execution in step 302; Otherwise, execution in step 306;
Step 302, according to Interface Definition Document, determine the message name and the structure name of message packet;
Step 303, according to structure definition file, determine the length of message structure, the type of each member variable and skew.And then carry out recursion resolution according to structure definition file, all found the basis definition until all member variables.
The organization definition that step 304, basis are launched is fully resolved message packet, gives each member variable assignment from message;
Step 305, printing show decoded result, and preserve decoded result.Perhaps carrying out further analytical calculation handles.
Step 306, coffret defined file and structure definition file are again perhaps selected local file, load then.
From the above, at first communication protocol message is adopted the Interface Definition Document definition, and adopt structure definition file to describe the structure of communication protocol message; When the message parse instrument on the checkout equipment is connected with this communication equipment to be tested first, the Interface Definition Document of employing and the structure definition file of employing are transferred in the checkout equipment; Then communication protocol message all in the Devices to test is adopted natural data message mode coding, and after being transferred to the message parse instrument of checkout equipment, adopt structure definition file that message is decoded, thereby realized the independence of communication protocol message and communication equipment protocol stack sofeware version, make and not rely on the source code that concrete communication protocol message defines, and to the real-time decoding of all communication protocol message with the unified approach description, realized the communication protocol message structural change and the autosynchronous purpose of energy of decoding, thereby can effectively improve testing efficiency, can be applied in widely on mobile communication terminal and the mobile communication road detector.
In order to realize above-mentioned method embodiment, other embodiment of the present invention also provide a kind of message interfaces of communication equipment independent description and apparatus for encoding.What need at first explanation in addition is; because following embodiment is for realizing aforesaid method embodiment; so the module in this device all is to establish for each step that realizes preceding method; but the present invention is not limited to following embodiment, and any device of said method and module of realizing all should be contained in protection scope of the present invention.And in the following description, the content identical with preceding method omitted at this, to save length.
Referring to Fig. 4, be the structural representation of message interfaces of communication equipment independent description of the present invention and code device, this device comprises:
Message semantic definition module 401 is used for adopting Interface Definition Document to describe the interface of communication equipment communication protocol message to be tested, and adopts structure definition file to describe the structure of communication protocol message;
Configuration module 402 is used for when checkout equipment is connected with described communication equipment to be tested first, and the described Interface Definition Document of employing and the described structure definition file of employing are transferred to described checkout equipment;
Transmission of messages module 403, be used for the message of described communication equipment to be tested is adopted natural data message mode coding, and being transferred to described checkout equipment, described checkout equipment adopts and by the described structure definition file and the described Interface Definition Document of described device transmission to be detected message is decoded.
In another embodiment of the present invention, this device also comprises: human-computer interaction module 404 is used for the various command of process user by the man-machine interface input.When receiving that the user imports the order that enables interface independent description and encoding function, interface independent description and coding stipulations transfer function are opened; When receive that the user imports forbid the order of interface independent description and coding stipulations transfer function the time, interface independent description and coding stipulations transfer function are closed;
In another embodiment of the present invention, this device also comprises: compression module 405, be used for obtaining communication equipment interface independent description and coding stipulations data, and it is solidified in the EPROM (Erasable Programmable Read Only Memory) of communication equipment, when needing transmission, compress these stipulations data earlier;
In the present embodiment, realized and the independence of protocol stack sofeware version and the independence of protocol stack code, whichever communication equipment software version, the user needn't be concerned about these protocol of messages stack software versions of definition for decode messages; Simultaneously, for the finite state machine message in the communication equipment, applied output message, time exceeded message, abnormality processing message, mutual control messages, version information message or the like all message, realized unified real-time coding, be no longer dependent on the change of each message definition, realized that message structure changes and the autosynchronous purpose of decoding energy.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (10)

1. message interfaces of communication equipment independent description and Methods for Coding is characterized in that described method comprises:
Adopt Interface Definition Document to describe the interface of communication protocol message in the communication equipment to be tested, and adopt structure definition file to describe the structure of communication protocol message in the communication equipment to be tested;
When checkout equipment is connected with described communication equipment to be tested first, the described Interface Definition Document of employing and the described structure definition file of employing are transferred to described checkout equipment;
Communication protocol message in the described communication equipment to be tested is adopted natural data message mode coding, and be transferred to described checkout equipment, adopt described structure definition file and described Interface Definition Document that message is decoded by described checkout equipment.
2. method according to claim 1 is characterized in that, the structure definition file of described structure definition file for adopting Hash hash mode to define.
3. method according to claim 1 is characterized in that, described described Interface Definition Document that will adopt and the step that adopts described structure definition file to be transferred to described checkout equipment are specially:
With described Interface Definition Document and the described structure definition file packing compression of adopting, and the described Interface Definition Document after will compressing and described defined file as a result are transferred to described checkout equipment.
4. method according to claim 3 is characterized in that, the step of described packing compression specifically comprises:
Compress processing by described Interface Definition Document and described structure definition file respectively;
The processing of packing again of docking port defined file compressed package and structure definition file compressed package, and described Interface Definition Document compressed package and described structure definition file compressed package be cut into a plurality of small data packets.
5. method according to claim 4 is characterized in that, described communication equipment to be measured by Handshake Protocol with the compression algorithm version, type of data packet, the size of packet number and each packet is notified to described checkout equipment.
6. method according to claim 1, it is characterized in that, described Interface Definition Document comprises: the process list that the communication equipment protocol stack sofeware is comprised, the process sum, the process title, one or more in finite state machine message name and message code and applied output message name and the message code.
7. method according to claim 1 is characterized in that, described structure definition file comprises: one or more in finite state machine message, applied output message, time exceeded message, abnormality processing message, mutual control messages and the version information message.
8. method according to claim 1 is characterized in that, described communication equipment to be measured is by the general asynchronous receiving-transmitting transmitter of UART, perhaps USB USB, and perhaps the TCP/IP TCP is connected with described checkout equipment.
9. message interfaces of communication equipment independent description and apparatus for encoding is characterized in that, comprising:
The message semantic definition module is used for adopting Interface Definition Document to describe the interface of communication equipment communication protocol message to be tested, and adopts structure definition file to describe the structure of communication protocol message;
Configuration module is used for when checkout equipment is connected with described communication equipment to be tested first, and the described Interface Definition Document of employing and the described structure definition file of employing are transferred to described checkout equipment;
The transmission of messages module, be used for the message of described communication equipment to be tested is adopted natural data message mode coding, and being transferred to described checkout equipment, described checkout equipment adopts and by the described structure definition file and the described Interface Definition Document of described device transmission to be detected message is decoded.
10. device according to claim 9 is characterized in that, the structure definition file of described structure definition file for adopting Hash hash mode to define.
CN2009102360424A 2009-10-16 2009-10-16 Method and device for independent description and encoding of message interfaces of communication equipment Expired - Fee Related CN101695172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102360424A CN101695172B (en) 2009-10-16 2009-10-16 Method and device for independent description and encoding of message interfaces of communication equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102360424A CN101695172B (en) 2009-10-16 2009-10-16 Method and device for independent description and encoding of message interfaces of communication equipment

Publications (2)

Publication Number Publication Date
CN101695172A true CN101695172A (en) 2010-04-14
CN101695172B CN101695172B (en) 2012-06-27

Family

ID=42094101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102360424A Expired - Fee Related CN101695172B (en) 2009-10-16 2009-10-16 Method and device for independent description and encoding of message interfaces of communication equipment

Country Status (1)

Country Link
CN (1) CN101695172B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270223A (en) * 2011-06-22 2011-12-07 中兴通讯股份有限公司 Method and device for generating message decoding library, and message decoding method and device
CN105429982A (en) * 2015-11-20 2016-03-23 北京畅游天下网络技术有限公司 Method and device for analyzing communication content between client and server
CN103677946B (en) * 2013-12-30 2017-02-01 广州日滨科技发展有限公司 Method and system for updating elevator device control programs

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363184B (en) * 2014-10-31 2018-04-17 北京思特奇信息技术股份有限公司 A kind of JSON message processing methods and system based on tuxedo communication patterns

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100417075C (en) * 2001-09-10 2008-09-03 中兴通讯股份有限公司 Interface test method
CN1767453A (en) * 2004-10-31 2006-05-03 中兴通讯股份有限公司 Automatic test method and system
CN100370764C (en) * 2004-11-16 2008-02-20 华为技术有限公司 Protocol test device and method for realizing protocol test
CN100493046C (en) * 2006-10-09 2009-05-27 华为技术有限公司 Coding/decoding method for communication system information and coder/decoder

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102270223A (en) * 2011-06-22 2011-12-07 中兴通讯股份有限公司 Method and device for generating message decoding library, and message decoding method and device
CN102270223B (en) * 2011-06-22 2017-03-29 中兴通讯股份有限公司 The generation method in source codec storehouse, device and source codec method, device
CN103677946B (en) * 2013-12-30 2017-02-01 广州日滨科技发展有限公司 Method and system for updating elevator device control programs
CN105429982A (en) * 2015-11-20 2016-03-23 北京畅游天下网络技术有限公司 Method and device for analyzing communication content between client and server

Also Published As

Publication number Publication date
CN101695172B (en) 2012-06-27

Similar Documents

Publication Publication Date Title
US10915247B2 (en) Efficient data management through compressed data interfaces
CN110445860B (en) Message sending method, device, terminal equipment and storage medium
CN101695172B (en) Method and device for independent description and encoding of message interfaces of communication equipment
CN111683066B (en) Heterogeneous system integration method, heterogeneous system integration device, computer equipment and storage medium
CN112015430A (en) JavaScript code translation method and device, computer equipment and storage medium
CN105659274A (en) Method and device for decoding data streams in reconfigurable platforms
CN106713357A (en) Universal network protocol analysis method
CN106444657B (en) A kind of Modbus main website command processing method and main station controller
CN110287247A (en) Date storage method, device, equipment and storage medium based on Unionpay's system
CN101795270A (en) Server control method based on serial port
CN106941501B (en) Data communication method and device
CN109255111A (en) A kind of telemetry intelligence (TELINT) standard configurations method, system, medium and equipment
CN104361007B (en) The processing method of browser and its collection
US8805801B2 (en) Method for compressing a .net file
CN106406923A (en) Processing method and device of dynamic library file
CN116405091B (en) Method and device for analyzing telemetry data, electronic equipment and storage medium
CN101662466A (en) Transmission method of protocol data in communication system, communication device and communication system
CN101110019B (en) Method for implementing remote Shell based on VxWorks operating system
CN116894016A (en) Log compression method and device for rail transit signals
CN113656044B (en) Android installation package compression method and device, computer equipment and storage medium
CN106998355B (en) Data transmission method between electronic devices, electronic device and data transmission system
CN103605496A (en) Method for fast analyzing communication instruction based on SCPI protocol
CN104821901B (en) A kind of intelligent substation electric energy metrical communication protocol test device
CN104460490A (en) Programmable logic control processing method of frequency converter, digital processor and frequency converter
CN104331017A (en) Method and device for realizing programmable logic control function of frequency converter as well as frequency converter

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120627

Termination date: 20181016

CF01 Termination of patent right due to non-payment of annual fee