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

Embedded system software order resolution offset method

An embedded system and offset technology, applied in the direction of program control devices, etc., can solve the problems of cursor confusion, the inability to guarantee variable number of parameters, lengthy code, etc.

Inactive Publication Date: 2007-05-23
FUJI XEROX SHANGHAI
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] 1) For a tree menu like Figure 2-1 (the depth of the tree exceeds 2), the command with the same name will not be recognized;
[0008] 2) This method does not modularize the extraction method of continuous characters, so it has poor readability and is not easy to maintain; it is also not conducive to code porting and modularized programming style;
[0009] 3) The cursor i and CP / PP cursors of the program record Str seem to be confusing, and there is no way to guarantee the variable number of parameters;
[0010] 4) The command set is completely determined by the subsequent matching judgment statement. When the command is expanded, the code will inevitably become lengthy and difficult to maintain;
[0011] 5) Lack of command backup and extraction mechanism, lack of necessary interaction prompt information with users

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
  • Embedded system software order resolution offset method
  • Embedded system software order resolution offset method
  • Embedded system software order resolution offset method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The present invention will be further described below in conjunction with drawings and embodiments.

[0026] The hardware used by the offset method OM: including processor MCU, DMA controller, image processing dedicated chip

[0027] With reference to Fig. 2, this is the complete flow program of the order analysis offset method of the present invention.

[0028] As shown in the figure, the process is as follows: start from the [start analysis menu] 1, then enter [print prompt information] 2, [empty command character array str] 3, [receive string empty? ] 4 to judge, if yes, enter [end analysis menu] 11; if not, [extract last command? ]5, if yes, [extract oldstr->str]6, if no, [backup str->oldstr]7, then enter together [the number of parameters obtained by command analysis Gparse]8, [match the command in the command set, if Execute if it matches] 9, [Exception handling of commands not in the command set (printing error)] 10, re-[return to print prompt information] 2. ...

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

This invention relates to an offset method of instruction analysis in embedded system software for all types of software development. The hardware includes MCU processor, DMA controller, and image processing ASIC. The software of the method includes reasonable data structure, appropriate and effective analysis algorithm, and an intercepted paragraph-by-paragraph analysis method is optimized as follows: 1) define a new type MENU, including the prompt message of the instruction, which can support the rename instruction under different depth of the tree; 2) module the analysis of the substring code to CParse process; 3) define the characters pointer array argv[] of substring starting address; 4) add CS instruction set, and afterwards, only type MENU variables array can be added; 5) add backup and retrieval mechanism of the instructions. The method also relates to integrity flow procedures and substring positioning procedures.

Description

technical field [0001] The invention relates to an offset method for command parsing in embedded system software, and belongs to the technical field of embedded system software. Background technique [0002] In Fuji Xerox's eGret series products, the software upgrade, debugging and maintenance of the embedded system are currently sent to the IOT host through the PC through serial communication, and then the system software (closely integrated with CMX , IOT software based on the state machine mode) first parses the command, then executes the corresponding program code according to the command requirement, and returns the required data to the PC. [0003] From the perspective of the recipient, what the PC sends is just a string of characters. IOT needs to decompose the string into a command part and a data parameter part. In addition, there must be an exception handling method for strings that do not conform to the command format. This process of decomposition and processing...

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): G06F9/44
Inventor 金辉
Owner FUJI XEROX SHANGHAI
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