Storing method and decoding method for command line of embedded equipment

An embedded device, command line technology, applied in the computer field, can solve the problem of consuming memory and flash hardware resources, and achieve the effect of simple, good support and reduced occupation

Active Publication Date: 2012-06-20
RAISECOM TECH
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, the command line (CLI) configuration storage of embedded devices is generally

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
  • Storing method and decoding method for command line of embedded equipment
  • Storing method and decoding method for command line of embedded equipment
  • Storing method and decoding method for command line of embedded equipment

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0067] The first embodiment is a method for saving the command line of an embedded device, such as figure 1 Shown, including:

[0068] Divide the command line to be saved into multiple fields according to the spaces in the command line; for example, the command line ip-access-list 2 bcity-acl-2 ip 192.168.1.1 permit is divided into ip-access-list, 2, bcity- The six fields of acl-2, ip, 192.168.1.1, permit;

[0069] According to a predefined correspondence relationship, converting a field of a keyword type among the multiple fields into an identification code; the correspondence relationship is a one-to-one correspondence between each keyword and the identification code;

[0070] Save the converted command line.

[0071] Keywords are pre-defined identifiers with special meaning in embedded devices. They can also be called reserved words; some keywords are relatively long, such as class-map, user-access-list, ip-access-list, etc. , When the identification code is used instead, the leng...

Example Embodiment

[0109] The second embodiment is a method for decoding command lines of embedded devices, including:

[0110] Convert the identification code in the command line into keywords according to the predefined correspondence;

[0111] The corresponding relationship is a one-to-one correspondence between keywords and identification codes.

[0112] In this embodiment, the type identification of the keyword may include multiple, which are used to represent different types of keywords; the correspondence relationship includes multiple correspondence relationships, which belong to different types of keywords; The correspondence between words is the one-to-one correspondence between keywords and identification codes in this category of keywords.

[0113] In this embodiment, the expression form of the corresponding relationship is a keyword table, and the storage location represented by the identification code in the keyword table is the keyword corresponding to the identification code.

[0114] In ...

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 storing method and a decoding method for a command line of embedded equipment. The storing method includes: dividing the command line to be stored into a plurality of fields according to spaces in the command line; converting the fields of keyword types in the fields into identification codes, wherein the keywords and the identification codes are in one-to-one correspondence; and storing the converted command line. Using the storing method and the decoding method for the command line of the embedded equipment can save storage resources for storing the command line and keep friendliness of a user interface.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method for saving and decoding command lines of embedded devices. Background technique [0002] Embedded devices are usually composed of embedded processors, related supporting hardware and embedded software systems. It is a "device" that integrates software and hardware and can work independently. Embedded processors are mainly composed of a single-chip microcomputer or microcontroller (MCU). Relevant supporting hardware includes display card, storage medium, communication equipment, reading equipment of IC card or credit card, etc. Embedded devices do not have a large-capacity storage medium like a hard disk, but mostly use flash memory (Flash Memory) as a storage medium. Embedded software includes underlying software related to hardware, operating system, graphical interface, communication protocol, database system, standardized browser and application software, etc. [0003] At ...

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/45
Inventor 刘纪开
Owner RAISECOM TECH
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