A memory management method for embedded protocol stack

A technology of memory management and management method, which is applied in the field of embedded device communication optimization, and can solve problems such as difficult expansion of business modules

Active Publication Date: 2021-09-14
XUJI GRP +2
View PDF10 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0011] The purpose of the present invention is to provide an embedded protocol stack memory management method to solve the problem that the business module is not easy to expand due to the current general memory pool

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
  • A memory management method for embedded protocol stack
  • A memory management method for embedded protocol stack
  • A memory management method for embedded protocol stack

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0026] The specific implementation manners of the present invention will be further described below in conjunction with the accompanying drawings.

[0027] The present invention only provides the basic data global memory when the protocol stack is initialized to ensure that the system can run; the related memory of the protocol stack required by the business is provided by the business module itself - when each business module is initialized, the memory actually used by itself is injected into the protocol stack according to the requirements The memory pool management module is uniformly managed and scheduled by the protocol stack. The process is as figure 1 As shown, the specific implementation steps are as follows.

[0028] 1. Create the protocol stack's own memory when the protocol stack is initialized to ensure that the system can run.

[0029] For embedded devices, the memory occupied by the protocol stack itself is within 4K. Therefore, a 4K memory needs to be created...

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 an embedded protocol stack memory management method, which belongs to the technical field of embedded device communication optimization. The present invention only provides basic data global memory when the protocol stack is initialized to ensure that the system can run; the related memory of the protocol stack required by the business is provided by the business module itself, and each business module injects the memory actually used by itself according to the demand during initialization In the protocol stack, the protocol stack performs unified management and scheduling, which can not only meet the standardization of the protocol stack interface, is fully compatible with the original standard Socket interface, but also minimizes the memory. The memory occupied by the protocol stack itself is within 4K. The present invention can better solve the problem that the memory scale of the protocol stack is difficult to adapt to the business requirement on the basis of maintaining the standardized interface of the protocol stack, and is convenient for the expansion of the business module.

Description

technical field [0001] The invention relates to an embedded protocol stack memory management method, which belongs to the technical field of embedded device communication optimization. Background technique [0002] Low-cost embedded devices often face the dilemma of limited memory, and the memory requirements of the protocol stack are relatively high. A typical embedded device memory allocation is shown in Table 1 (system physical memory is 128K). [0003] Table 1 [0004] serial number Function memory requirements 1 operating system 20K 2 Business functions 60K 3 data storage 20K 4 standard protocol stack More than 20K [0005] It can be seen that the memory reserved for the protocol stack is only 28K, which certainly cannot meet the requirements of the protocol stack. To solve this problem, there are two common methods: one is to use a non-standard interface such as a callback method; the other is to use memory The two proce...

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 Patents(China)
IPC IPC(8): G06F12/02G06F9/50
CPCG06F9/5016G06F12/0246G06F12/0253
Inventor 陈玉峰应站煌徐涛高建琨方正王龙洋李文明李永亮
Owner XUJI GRP
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