Rpc communication method based on rto

A communication method and technology for communicating data, applied in the field of rpc communication based on rtos, can solve the problems of information redundancy, the connection process cannot be maintained for a long time, and the data volume increases, so as to simplify the data processing process, improve the real-time communication, The effect of reducing the occupancy ratio

Active Publication Date: 2020-04-28
安徽芯智科技有限公司
View PDF5 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] How to use an effective method to solve the problem that the existing rtos usually use http1.0 / http1.1 or json transmission protocol to communicate through the network. The above-mentioned communication methods have many disadvantages, for example: the network connection cannot be repeated. The connection process cannot be maintained for a long time, and because it contains repeated header information, and cannot be effectively coded, compressed and binarized, the amount of data sent and received increases, resulting in overall information redundancy, which in turn causes network transmission Problems with disadvantages such as large delay, low data throughput and poor transmission efficiency

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
  • Rpc communication method based on rto

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] like figure 1 As shown, an rtos-based rpc communication method includes the following steps:

[0027] Step 1: The client calls the function interface provided by the client stub, and packages the data request message of the client into a proto file format and transmits it to the next-level protobuf for processing;

[0028] Step 2, protobuf will format the data request message in the proto file format according to the protobuf protocol, first perform text formatting on it, and then perform text serialization on it to obtain binary communication data, which in turn can provide extremely small volume for network transmission Binary communication data, improve data processing rate;

[0029] Step 3: Transmit the binary communication data obtained through text formatting and text serialization to the network processing module, and perform http / 2 protocol encapsulation on it, and perform header compression on it according to the incremental information, and change the The he...

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 discloses an rpc communication method based on rtos, and the method comprises the steps: enabling a client side to call a function interface provided by a client stub, packaging a data request message of the client side into a proto file format, and transmitting the data request message to probuf at a next stage for processing; enabling probuf to perform text formatting on the data request message packaged into a proto file format according to a probuf protocol, and then executing text serialization on the data request message to obtain binary communication data; transmitting binary communication data obtained by text formatting and text serialization to a network processing module, and performing http/2 protocol packaging on the binary communication data. According to the invention, the communication real-time performance between the client and the server based on the real-time operating system is improved, the occupation ratio of network resources is reduced, the data processing flow of local calling is simplified, and the convenience of business layer expansion and maintenance is facilitated.

Description

technical field [0001] The invention relates to the technical field of rpc communication, in particular to an rtos-based rpc communication method. Background technique [0002] Different from linux, android and windows systems, rtos is small in size and simple in function, and is often used in the fields of Internet of Things, industrial control, etc. The support provided by technology, new architecture and new applications is very limited. At present, rtos usually uses http1.0 / http1.1 or json transmission protocol to communicate through the network. The above-mentioned communication methods have many disadvantages, such as: network The connection cannot be multiplexed, the connection process cannot be maintained for a long time, and because it contains repeated header information, and cannot be effectively coded, compressed and binarized, the amount of data sent and received increases, resulting in overall information redundancy, and then Causes shortcomings such as large ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): H04L1/24H04L29/06H04L29/08
CPCH04L67/06H04L67/34H04L69/04H04L69/22H04L67/02H04L1/246H04L67/133
Inventor 李重王利平张伟高深
Owner 安徽芯智科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products