Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Software framework implementing method supporting multi-interface protocol processing

An implementation method and protocol processing technology, applied in electrical components, transmission systems, etc., can solve problems such as increasing the difficulty of design, and achieve the effects of good scalability, clear program structure, and convenient function calls

Inactive Publication Date: 2014-05-14
BEIJING SIMULATION CENT
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the large-scale application and development of network, communication and computer systems, various communication methods and transmission modes are constantly increasing. Among them, serial port communication is widely used due to many advantages such as transparent protocol, low equipment investment, and simple programming. It is used in data collection, The fields of monitoring, communication and control occupy an important position; network communication is unprecedentedly developed and widely used, and the TCP / IP protocol has become the de facto standard for Internet communication. Devices that follow the TCP / IP protocol can easily access the Internet for instant communication; Large-scale application systems often use multiple communication methods for data communication and control, such as serial port communication, parallel port communication, network communication, etc. Different communication devices use different interface protocols, and designers need to implement different interfaces for different communication methods. Design, although the interface is different, the processing method of information is roughly the same, how to support and control the interaction relationship between protocols and conveniently support expansion, etc., add difficulty to the system design

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
  • Software framework implementing method supporting multi-interface protocol processing

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] figure 1 Shown is a schematic diagram of the composition of the software framework of the present invention, a method for implementing a software framework supporting multi-interface protocol processing, and its software framework is realized through the CreatePort module 1, ReceiveData module 2, and SendData module 3. The implementation method includes the following steps:

[0018] 1) CreatePort module 1 establishes port object classes for various communication ports, generates message queues, and starts message daemon threads;

[0019] 2) ReceiveData module 2 monitors all started message daemon threads, and performs message queue processing and data / protocol dictionary analysis;

[0020] 3) SendData module 3 sets the port type, and performs message establishment and message sending.

[0021] Each step is described in detail below.

[0022] CreatePort module 1 comprises three steps of setting up port object class, generating message queue, starting message daemon th...

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 relates to a software framework implementing method supporting multi-interface protocol processing. The software framework implementing method supporting multi-interface protocol processing comprises the following steps that (1) port object classes are built for various communication ports, a message queue is generated, and message daemon threads are started; (2) monitoring is carried out on all the started message daemon threads, and processing of the message queue and data / protocol dictionary analysis are carried out; (3) the types of the ports are set, and message building and message sending are carried out. The software framework implementing method supporting multi-interface protocol processing has the advantages that the multi-interface design is simpler, the program structure is clearer, function calling is more convenient, code implementation is more efficient, and the software framework implementing method has good extendibility.

Description

technical field [0001] The invention relates to a method for realizing a communication interface protocol, in particular to a method for realizing a software framework supporting multi-interface protocol processing. Background technique [0002] With the large-scale application and development of network, communication and computer systems, various communication methods and transmission modes are increasing, among which serial communication is widely used due to its transparent protocol, low equipment investment, simple programming and many other advantages. The fields of monitoring, communication and control occupy an important position; network communication is unprecedentedly developed and widely used, and the TCP / IP protocol has become the de facto standard for Internet communication. Devices that follow the TCP / IP protocol can easily access the Internet for instant communication; Large-scale application systems often use multiple communication methods for data communica...

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): H04L29/06
Inventor 郑燕红张进张庆义
Owner BEIJING SIMULATION CENT
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products