Check patentability & draft patents in minutes with Patsnap Eureka AI!

Interface encoding/decoding method and system

A technology of interface code and interface, which is applied in the field of interface encoding/decoding, can solve the problems of inconsistent definition of byte stream, low quality of interface code, and inability to expand the interface, so as to achieve unified message stream transmission format, reduce coupling, reduce The effect of artificial workload

Inactive Publication Date: 2013-02-13
DATANG MOBILE COMM EQUIP CO LTD
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] First, due to the different levels and abilities of coders, it will directly cause quality differences in the process of interface design and encoding and decoding. The quality of interface codes is not high, and some may even cause potential hidden dangers, which will cause fatal problems to the entire system. Defects
[0005] Second, there will be problems such as inconsistency in the definition of byte streams during the transmission of interface messages, which will lead to problems such as interface docking
[0006] Third, using the existing interface coding method, the coupling between systems is large. When the coding is completed and needs to be expanded, each subsystem not only needs to rewrite the interface file, but also needs to redefine and modify the interface code. The change of this interface will directly affect the business, which may lead to large-scale code modification, and may even cause the interface to be unable to expand

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Interface encoding/decoding method and system
  • Interface encoding/decoding method and system
  • Interface encoding/decoding method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0073] refer to figure 1, which shows a flow chart of an interface encoding / decoding method in this embodiment, and this embodiment may specifically include the following steps:

[0074] S101. Determine interface content according to interface requirements;

[0075] The interface requirements are different, and the interface content is different. For example, if the interface requirement is to allow customers to pay for an order, then the content of the interface is to establish a clearly defined interface between the system and the payment clearing center to allow customers to pay for an order. As another example, if the interface requirement is authentication and authorization, the content of the interface is to establish a clearly defined interface between the system and the authentication and authorization system. The purpose is to verify the digital certificate submitted by the customer. Multiple authentication and authorization systems can be supported, and each authent...

Embodiment 2

[0185] refer to figure 2 , shows the interface design flow chart of this embodiment, specifically including the following steps:

[0186] S201. Determine the interface content between subsystems;

[0187] The interface content between subsystems can be determined according to the interface requirements between subsystems. The interface requirements are different, and the content of the interface between the corresponding subsystems is also different. The interface content includes: message content and structure of the interface, and the message structure includes structure name, member name and member type.

[0188] S202. Write an interface file according to the preset unified specification according to the interface content;

[0189] The preset uniform specifications in this embodiment include interface message definition specifications and interface message flow definition specifications during transmission. In this embodiment, the above-mentioned interface file can be ...

Embodiment 3

[0228] like Image 6 As shown, it is a structural block diagram of an interface encoding / decoding system in this embodiment, which specifically includes:

[0229] Interface content determination module 1001, configured to determine interface content according to interface requirements;

[0230] The interface file writing module 1002 is used to write the interface file according to the preset unified specification according to the interface content; the unified specification described in the second embodiment is the same as that described in the first embodiment, so it will not be described in detail, and reference can be made to the implementation A detailed description of the unified specification in Example 1.

[0231] The interface code file generation module 1003 is used to execute the automatic code generation tool, and parse the interface file to automatically generate the interface code file;

[0232] An encoding module 1004 and / or a decoding module 1005, wherein the ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention provides an interface encoding / decoding method and system, which is used for improving the encoding / decoding quality of an interface. The interface encoding / decoding method comprises the following steps of: determining interface content according to an interface requirement; compiling an interface file according to the interface content and a preset unified regulation; automatically generating an interface code file by executing an automatic code generating tool to analyze the interface file; carrying out decoding by invoking the interface code file, and generating an interface message and sending the interface message; and / or, decoding the interface message by invoking the interface code file, thus obtaining a decoded message. According to the interface encoding / decoding method and system, the interface file is compiled by adopting the unified regulation, the definitions of the interface messages are unified, the coupling among the systems are reduced, and the interface is easily extended.

Description

technical field [0001] The invention relates to the communication field, in particular to a method and system for interface encoding / decoding. Background technique [0002] When encoding and decoding, it is necessary to consider the interface design, encoding and decoding between two related subsystems or modules, and even specifically between two functions. Seriously affect the entire system. [0003] The existing interface codes are defined and implemented in their respective subsystems, and there are the following problems: [0004] First, due to the different levels and abilities of the coders, it will directly cause the quality difference in the interface design and encoding and decoding process. Defects. [0005] Second, there will be a problem that the definition of the byte stream is not uniform during the transmission process of the interface message, which will cause problems such as interface docking. [0006] Third, using the existing interface coding method,...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F9/44G06F17/30
Inventor 武兴
Owner DATANG MOBILE COMM EQUIP CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More