CN100369012C - Method and sytem for parsing transmission control codes of computer communication interface - Google Patents
Method and sytem for parsing transmission control codes of computer communication interface Download PDFInfo
- Publication number
- CN100369012C CN100369012C CNB2005100931894A CN200510093189A CN100369012C CN 100369012 C CN100369012 C CN 100369012C CN B2005100931894 A CNB2005100931894 A CN B2005100931894A CN 200510093189 A CN200510093189 A CN 200510093189A CN 100369012 C CN100369012 C CN 100369012C
- Authority
- CN
- China
- Prior art keywords
- code
- communications interface
- computer
- communication interface
- running
- 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.)
- Expired - Fee Related
Links
Images
Abstract
A transmission control code analysis system of computer communication interface consists of header recording region of multiple storage-fetch address, storage code, code definition recording region of operation description content presented by said code and analysis unit of description point. It is featured as reinterpreting transmission handle presented by figure mode in communication interface to be a specific and easily understood symbol mode being used to make user understand content of each description easily.
Description
Technical field
The invention relates to a kind of electronic information technology, particularly about a kind of analytic method and system that is used for analytical Calculation machine communication interface transmission handle.
Background technology
The most computers platform, for example desktop PC, notebook computer, Tablet PC, network workstation etc., usually all collocation has an external communication interface, USB (universal serial bus) (Universal Serial Bus for example, USB) formula communication interface, live wire formula (FireWire) communication interface etc., computer platform can be carried out data with an external connected electronic massaging device (for example being printer, external hard drive device, carry-on dish, digital camera, keyboard, mouse and scanner etc.) by this communication interface and be exchanged.Because USB or FireWire formula communication interface have the function of plug and play (plug-and-play) easily, therefore become at present a kind of external communication interface of most computers platform indispensability.
Based on above-mentioned factor, computer vendors all can be integrated USB or FireWire formula communication interface when making personal computer at present; Therefore in research and development and production run, just have and to carry out test job to USB in the computer product or FireWire formula communication interface.
At present in the test job of USB formula communication interface, if when finding wrong situation, then need wherein used transmission handle to be carried out a debug job by the Computer Engineer, check each description entry (descriptor) in the transmission handle, for example comprise end point description entry (EndpointDescriptor, ED), (Transfer Descriptor TD) etc., checks whether its setting value is correct to the transmission description entry.
Yet at present the problem of USB formula communication interface in debug work is that wherein embedded transmission handle normally represents with the machine code of 16 systems, as shown in Figure 1 the i.e. content synoptic diagram of machine code for this reason.General this machine code is to be read by Computer Communications Interface by a data fetch device (for example Tracer) to carry out the transmission handle that the electronic information aid (for example above-mentioned printer, external hard drive device, dish, digital camera, keyboard, mouse and scanner etc.) with oneself of data transmission is produced, therefore the content of this machine code rather is difficult to understand, make the Computer Engineer when carrying out debug work, must utilize comparison list to understand the meaning of the transmission handle representative of every 16 systems, make debug work rather waste time and energy and inefficent.
Summary of the invention
For overcoming the shortcoming of above-mentioned prior art, fundamental purpose of the present invention is to provide a kind of Computer Communications Interface transmission handle analytic method and system, combine the tabulation mode that the transmission ten days handle in USB or the FireWire formula communication interface can be resolved to user's readability, the Computer Engineer can carry out debug work more efficiently.
For reaching above-mentioned purpose and other purpose, the invention provides a kind of Computer Communications Interface transmission handle analytic method and system.The computer platform that this Computer Communications Interface transmission handle analytic method is used to receive machine code data file is resolved the content of this machine code, and this machine code is to read the transmission handle that electronic information aid was produced that carries out data transmission with Computer Communications Interface by a Tracer (being a data reader), this analytic method comprises at least: make this computer platform set up the header recording areas, this header recording areas has a plurality of headers unit, and each header unit is used for storage and reads address information; Make this computer platform set up a sign indicating number definition record district, this yard definition record district is used to store the code that is produced when carrying out data transmission according to this electronic information aid by this communication interface, and stores the represented running of this code and describe content; Make this computer platform when receiving these machine code archives, read address information, find out this from these machine code archives and read the stored data of address information according to what the header unit of this header recording areas stored; And make this computer platform according to the data that reads, find out from this yard definition record district with the running of the corresponding code of this data and this code and describe, and it is presented on the display unit that electrically connects with this computer platform.
This Computer Communications Interface transmission ten days handle resolution system comprises: the header recording areas have a plurality of headers unit, and each header unit is used for storing and reads the address; Sign indicating number definition record district is used to store the code that is produced when carrying out data transmission according to this electronic information aid by this communication interface, and stores the represented running of this code and describe content; And description point analysis unit, when receiving these machine code archives, according to the header unit of this header recording areas stored read the address, find out this from these machine code archives and read the stored data in address, and the data that foundation reads is found out from this yard definition record district with the running of the pairing code of this data and this code and is described, and it is presented on the display unit that electrically connects with this system.
Computer Communications Interface of the present invention transmission ten days handle analytic method and system are translated into the transmission control code represented with the numerical value form in the communication interface one specific according to a predetermined corresponded manner, understandable sign format, and this sign format that is translated into converged the form document that is made into a specific format according to a predetermined tabulation mode, it for example is the form document of a HTML (Hyper Text MarkupLanguage) form, wherein be to list in the transmission control code each with forms mode to describe described content, the user can be easy to understand each and describe described content, can be in debug work more easily in finding out error code, and make user's (being the Computer Engineer) can understand the meaning of transmission control code more easily, can carry out debug work more efficiently.
Description of drawings
Fig. 1 is an existing example by 16 system transmission control codes that read in the usb communication interface;
Fig. 2 shows transmission control codes of computer communication interface resolution system application structure of the present invention and system architecture block schematic diagram thereof;
Fig. 3 is the example of the stored content of header recording areas of displayed map 2;
Fig. 4 is that first kind of obtaining after to the transmission control code translation process of display application transmission control codes of computer communication interface resolution system of the present invention represents the result;
Fig. 5 is that second kind of obtaining after to the transmission control code translation process of display application transmission control codes of computer communication interface resolution system of the present invention represents the result; And
Fig. 6 is the operation workflow figure that shows transmission control codes of computer communication interface analytic method of the present invention.
Embodiment embodiment
Be the basic structure calcspar that shows transmission control codes of computer communication interface resolution system 2 of the present invention as shown in Figure 1.As shown in the figure, transmission control codes of computer communication interface resolution system 2 of the present invention is arranged on a computer platform 3 in practical application, desktop PC for example, notebook computer, Tablet PC, network workstation etc., just this transmission control codes of computer communication interface resolution system 2 for example is a computer software, and this computer platform 3 can receive a data fetch device (not marking) and read transmission control code (as shown in Figure 1), this transmission control code (machine code) is meant that electronic information aid (not marking) with Computer Communications Interface and the electronics main frame that has Computer Communications Interface equally (do not mark, for example be computer platform 3) machine code that produces when carrying out data transmission, and read by this data fetch device and to form the machine code archives.This must explanation be that read machine sign indicating number and the mode that forms the machine code archives are prior aries, so will not give unnecessary details for literary composition at this.Wherein, the data fetch device of present embodiment for example is Tracer, and this Tracer is the machine code archives that the transmission control code that will read accumulates a primitive form, and these machine code archives store with the form of archive files (* .txt).This electronic information aid is for example carry-on dish, printer, the external hard drive device, external optical disc apparatus, digital camera etc. (not marking) at this, this communication interface for example is USB (universal serial bus) (UniversalSerial Bus, USB) formula communication interface or live wire (FireWire) formula communication interface, the machine code archives 1 (the normally numerical code of 16 systems) that computer platform 3 can be received by transmission control codes of computer communication interface resolution system 2 of the present invention resolve to the information of user's readability, and the Computer Engineer can more effectively carry out debug work.
Transmission control codes of computer communication interface resolution system 2 of the present invention comprises header recording areas 20, description point analysis unit 22, sign indicating number definition record district 21 and represents module 23.
This header recording areas 20 has a plurality of headers (Head) unit, as shown in Figure 3, each header unit (200,201,202 and 203 etc.) be used for storing and read address information.Because when this Tracer reads and carries out transmission control code (machine code) that the electronic information aid of data transmission produces with Computer Communications Interface, when whenever reading an electronic information aid, promptly the particular address in storer (not marking at this) is set up a document, this data is and reads address information, is used for indicating this electronic information aid to carry out the start address that transmission control code (machine code) that data transmission produced stores at this storer.Therefore, promptly set up and have a plurality of headers unit the header recording areas 20 of (200,201,202 and 203 etc.) according to this characteristic.With regard to present embodiment, this header recording areas 20 is to have 32 header unit, with first header unit 200, it the corresponding address information that stores promptly be 20810E00, wherein, in this address information 2081 is offset address (offset address) information, and 20 in the offset address information is low levels, in the offset address information 81 is high-order, moreover, 0E00 in the address information represents sector address (segment address), and as from the foregoing, the actual address of reading that first header unit 200 stores is 000E:8120.All the other header unit the corresponding address information that stores all by that analogy, will not illustrate for being reduced at this.As from the foregoing, when transmission control codes of computer communication interface resolution system 2 of the present invention carries out the machine code dissection process, need that also Tracer is read address information and load this header recording areas 20.
This yard definition record district 21 is issuable codes when being used to store this electronic information aid and carrying out data transmission by this communication interface, and store the represented running of this code and describe content, for example the machine code of 16 systems (being code) is 40 o'clock, represents that promptly this is transmission description entry (TD) and this electronic information aid output (output) data (i.e. content is described in running) is described.Just set up each description entry (descriptor) in the transmission control code, for example comprise end point description entry (Endpoint Descriptor, ED), the transmission description entry (Transfer Descriptor, TD) etc., and respectively this description entry all to there being the understandable running of readability to describe content.
This describes point analysis unit 22 is when receiving the transmission control code (machine code archives) that this Tracer reads, read address information according to what the header unit of this header recording areas 20 (200,201,202 and 203 etc.) stored, find out this from these machine code archives and read the data that address information stores, and find out with the running of the pairing code of this data and this code from this yard definition record district 21 according to the data that reads and to describe content.
This represents module 23 is to describe the code found out point analysis unit 22 and content is described in the running of this code according to this, it is presented on the display unit 30 of computer platform 3, the mode of its demonstration can be tabulation formula information 230 (as shown in Figure 4) or diagram form information 235 (as shown in Figure 5), browse for the user, wherein figure is a serialization graph.And this represents module 23 and can respond the description entry that a user controls and clicks incident, for example the user utilizes mouse to click specific description entry in tabulation formula information 230 or the diagram form information 235, the described content of the description that the user clicked can be shown.For instance, in the embodiment shown in fig. 4, if the user utilizes mouse to click description entry " _ command_ED " in the tabulation formula information 230, then this represents module 23 and will for example pass through pop-up window (popup window) 23 1, demonstrates the content (i.e. running is described) of this description entry " _ command_ED ".The user can check that whether each describes described content correct, finds out error code and whether exist by this pop-up window 231.Wherein, the File Format of this tabulation formula information 230 is HTML (Hyper Text Markup Language).Moreover among the embodiment shown in Figure 5, this represents module 23 is each description entry that represents a header unit correspondence.
Shown in Figure 6 is the operation workflow figure that shows transmission control codes of computer communication interface analytic method of the present invention.Because electronic information aid carries out data transmission by Computer Communications Interface and main frame and promptly produces transmission control code, this transmission control code can be read (16 system machine codes as shown in Figure 1) by Tracer, but can't be according to the transmission content between this transmission control code understanding electronic information aid and main frame for those skilled in the art, therefore, by transmission control codes of computer communication interface analytic method of the present invention, can allow user (Test Engineer) be easy to understand the meaning of transmission control code, can carry out debug work more efficiently.
As shown in Figure 6, at first carry out step S1, set up header recording areas 20 and sign indicating number definition record district 21 in the storer in computer platform 3, wherein, Tracer judges and sets up the header unit when a predetermined electronic information aid carries out data transmission by Computer Communications Interface and main frame, this header unit promptly is to read address information, be used for indicating this electronic information aid to carry out the start address that transmission control code (machine code) that data transmission produced is stored in this storer, this Tracer obtains this header unit and is about to it and is stored in the specific memory device, for example can directly be stored in the storer of computer platform 3 or the storer of Tracer (not marking), before activating the transmission control codes of computer communication interface parsing, again this header unit be deposited in this header recording areas 20 at this; Moreover, because this electronic information aid all can produce corresponding code when carrying out data transmission by this communication interface, so the sign indicating number definition record district 21 in this computer platform 3 be when being used to store this electronic information aid and carrying out data transmission by this communication interface issuable code and the represented running of this code content is described, for in the subsequent process machine code is interpreted to the comprehensible content of user, then enters step S2.
In step S2, read acquired transmission control code (machine code) archives, then enter step S3.Be that this transmission control code (machine code) archives are to be read or to be obtained by debug port (debugport) (not marking at this) forward data that electrically connects with this computer platform 3 by Tracer what this must propose explanation.
In step S3, the description point analysis unit 22 of this computer platform 3 is obtained according to the header unit of header recording areas 20 and is read the address, then enters step S4.
In step S4, the description point analysis unit 22 of this computer platform 3 is found out the data that this reads the address storage according to the address of obtaining of reading from these machine code archives, then enters step S5.
In step S5, this computer platform 3 is according to the data that reads, find out from this yard definition record district 21 with the running of the corresponding code of this data and this code and describe, and it is presented on the display unit 30 that electrically connects with this computer platform 3, wherein, can show that with tabulation or graphics mode (respectively as Fig. 4 and shown in Figure 5) wherein figure is a serialization graph through the machine code content after the decipher according to user's demand.
Generally speaking, provide the transmission control code analytical capabilities by transmission control codes of computer communication interface analytic method of the present invention and system, be translated into specific according to a predetermined corresponded manner transmission control code of specific communication interface transmission, understandable sign format, and this sign format that is translated into converged the form document that is made into a specific format according to a predetermined tabulation mode, for example be the form document or the graphical format content of a html format, list in the transmission control code each and describe described content, the user is easy to understand each and describes described content, can more easily find out error code in debug work.
Claims (16)
1. a Computer Communications Interface transmits the handle analytic method, resolve this machine code content for the computer platform that receives the machine code archives, and this machine code is to read the transmission handle that electronic information aid was produced that carries out data transmission with Computer Communications Interface by a Tracer, and this analytic method comprises at least:
Make this computer platform set up the header recording areas, this header recording areas has a plurality of headers unit, and each header unit is used for storage and reads address information;
Make this computer platform set up a sign indicating number definition record district, this yard definition record district is used to store the code that is produced when carrying out data transmission according to this electronic information aid by this communication interface, and stores the represented running of this code and describe content;
Make this computer platform when receiving these machine code archives, read address information, find out this from these machine code archives and read the stored data of address information according to what the header unit of this header recording areas stored; And
Make this computer platform according to the data that reads, find out from this yard definition record district with the running of the corresponding code of this data and this code and describe, and it is presented on the display unit that electrically connects with this computer platform.
2. Computer Communications Interface transmission handle analytic method as claimed in claim 1 is characterized in that communication interface is a USB (universal serial bus) formula communication interface.
3. Computer Communications Interface transmission handle analytic method as claimed in claim 1 is characterized in that this communication interface is a live wire formula communication interface.
4. Computer Communications Interface transmission handle analytic method as claimed in claim 1 is characterized in that it is to show with forms mode that the code that this computer platform finds and the running of this code are described.
5. Computer Communications Interface transmission handle analytic method as claimed in claim 4 is characterized in that the File Format of this form is HTML.
6. as claim 1 or 4 described Computer Communications Interfaces transmission handle analytic methods, it is characterized in that the display mode that this running is described is the relation that the employing pop-up window shows itself and code.
7. Computer Communications Interface transmission handle analytic method as claimed in claim 1 is characterized in that it is to show with graphics mode that the code that this computer platform finds and the running of this code are described.
8. Computer Communications Interface transmission handle analytic method as claimed in claim 7 is characterized in that this figure is a serialization graph.
9. a Computer Communications Interface transmits the handle resolution system, the machine code archive content that parsing receives, and this machine code is to read the transmission handle that electronic information aid was produced that carries out data transmission with Computer Communications Interface by a Tracer, it is characterized in that this Computer Communications Interface transmission handle resolution system comprises at least:
The header recording areas has a plurality of headers unit, and each header unit is used for storing and reads the address;
Sign indicating number definition record district is used to store the code that is produced when carrying out data transmission according to this electronic information aid by this communication interface, and stores the represented running of this code and describe content; And
The point analysis unit is described, when receiving these machine code archives, according to the header unit of this header recording areas stored read the address, find out this from these machine code archives and read the stored data in address, and the data that foundation reads is found out from this yard definition record district with the running of the pairing code of this data and this code and is described, and it is presented on the display unit that electrically connects with this system.
10. Computer Communications Interface transmission handle resolution system as claimed in claim 9 is characterized in that this communication interface is a USB (universal serial bus) formula communication interface.
11. Computer Communications Interface transmission handle resolution system as claimed in claim 9 is characterized in that this communication interface is a live wire formula communication interface.
12. Computer Communications Interface transmission handle resolution system as claimed in claim 9 is characterized in that it is to show with forms mode that the code that this computer platform found and the running of this code are described.
13. Computer Communications Interface transmission handle resolution system as claimed in claim 12 is characterized in that the File Format of this form is HTML.
14. Computer Communications Interface as claimed in claim 13 transmission handle resolution system is characterized in that, the display mode that this running is described is to adopt pop-up window to show that the running of itself and code concerns.
It is characterized in that the display mode that this running is described is to adopt pop-up window to show that its running with code concerns.
15. Computer Communications Interface transmission handle resolution system as claimed in claim 9 is characterized in that it is to show with graphics mode that the code that this computer platform found and the running of this code are described.
16. Computer Communications Interface transmission handle resolution system as claimed in claim 9 is characterized in that this figure is a serialization graph.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100931894A CN100369012C (en) | 2005-08-19 | 2005-08-19 | Method and sytem for parsing transmission control codes of computer communication interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNB2005100931894A CN100369012C (en) | 2005-08-19 | 2005-08-19 | Method and sytem for parsing transmission control codes of computer communication interface |
Publications (2)
Publication Number | Publication Date |
---|---|
CN1916872A CN1916872A (en) | 2007-02-21 |
CN100369012C true CN100369012C (en) | 2008-02-13 |
Family
ID=37737872
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNB2005100931894A Expired - Fee Related CN100369012C (en) | 2005-08-19 | 2005-08-19 | Method and sytem for parsing transmission control codes of computer communication interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN100369012C (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6427169B1 (en) * | 1999-07-30 | 2002-07-30 | Intel Corporation | Parsing a packet header |
-
2005
- 2005-08-19 CN CNB2005100931894A patent/CN100369012C/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6427169B1 (en) * | 1999-07-30 | 2002-07-30 | Intel Corporation | Parsing a packet header |
CN1377548A (en) * | 1999-07-30 | 2002-10-30 | 英特尔公司 | Parsing packet header |
Also Published As
Publication number | Publication date |
---|---|
CN1916872A (en) | 2007-02-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1801149B (en) | Systems and methods for converting a formatted document to a web page | |
CN101183355B (en) | Copy and paste processing method, apparatus | |
US20030210428A1 (en) | Non-OCR method for capture of computer filled-in forms | |
TWI740907B (en) | Method and system for input areas in documents for handwriting devices | |
CN101183360B (en) | Program, character input editing method and equipment | |
CN103136173A (en) | Method converting mass word or excel format form documents into webpages | |
CN101401117A (en) | EDI instance based transaction set definition | |
US9658997B2 (en) | Portable page template | |
WO2009000141A1 (en) | Representation method, system and device of layout file logical structure information | |
WO2012002551A1 (en) | Automatic attachment of a captured image to a document based on context | |
AU2015211150B2 (en) | Document page identifiers from selected page region content | |
CN105589959A (en) | Form processing method and form processing system | |
CN109766085A (en) | A kind of method and device handling enumeration type code | |
CN112395843A (en) | PHP code-based service processing method, device, equipment and medium | |
CN111913922B (en) | Binary structured log generation method, device, equipment and storage medium | |
CN102222059A (en) | Method, device and system for realizing multi-format information display of electronic reader | |
US7793210B2 (en) | Method and apparatus for formula evaluation in spreadsheets on small devices | |
CN102081597A (en) | Failure analysis report generation system and method | |
CN100369012C (en) | Method and sytem for parsing transmission control codes of computer communication interface | |
US20080043272A1 (en) | Method, system and article for exposing printer functionality via a logical file system | |
US7773534B2 (en) | Computer communication interface transmission control codes analyzing method and system | |
CN100377129C (en) | Method of computer transmission text to portable browsing apparatus and its device | |
US20040139229A1 (en) | Method for outputting content from the internet or an intranet | |
CN116911264B (en) | Large PDF annotation method and device | |
US20120137218A1 (en) | Method to Automatically Display Filenames Encoded in Multiple Code Sets |
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 | ||
C17 | Cessation of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20080213 Termination date: 20110819 |