Method and system for realizing CLI command interface on single-chip microcomputer
A command interface, single chip technology, applied in user interface execution, program control design, instruments, etc., can solve problems such as insufficient single chip, and achieve the effect of efficient and convenient scripting
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0048] Embodiment 1 of the present invention proposes a method for realizing a CLI command interface on a single-chip microcomputer, which can realize a human-computer interaction interface of a command line interface, such as figure 1 Shown is a flow chart of a method for implementing a CLI command interface on a single-chip microcomputer.
[0049] In step S101, first define the global variable CLI_SCAN, which is used to describe the session window of the CLI, and record the information of one startup; in the future, attributes such as destination IP and port can be added for common use in telnet.
[0050] The specific content is:
[0051] typedef struct
[0052] {
[0053] UINT32 key; / * use each character temporarily stored in get_input * /
[0054]int cmd_len; / * cmd_input uses the final length position pointed to by cmd_line * /
[0055] int cur_pos; / * cmd_input points to the current cursor position * /
[0056] int login_level; / * login level * /
[0057] char login_na...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com