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

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 stored in plain text, which consumes a lot of valuable memory and flash memory hardware resources

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

Embodiment 1

[0067] Embodiment 1, 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- acl-2, ip, 192.168.1.1, permit these six fields;

[0069] According to the predefined corresponding relationship, the field of the keyword type in the plurality of fields is converted into an identification code; the corresponding 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 meanings in embedded devices, which can also be called reserved words; because some keywords are relatively long, such as class-map, user-access-list, ip-access-list, etc. , when the identification code is used i...

Embodiment 2

[0109] Embodiment 2, a command line decoding method of an embedded device, comprising:

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

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

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

[0113] In this embodiment, the corresponding relationship is expressed as 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] ...

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
Features
  • Generate Ideas
  • 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