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

Method for fast analyzing communication instruction based on SCPI protocol

A communication instruction and instruction technology, applied in the direction of machine execution devices, etc., can solve the problems of complex communication instructions and achieve the effect of good readability

Inactive Publication Date: 2014-02-26
TOEC TECH
View PDF2 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] With the development of communication and computer technology, the communication instructions between the current equipment and each subunit in the equipment have become more complicated.

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
  • Method for fast analyzing communication instruction based on SCPI protocol

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0010] Below in conjunction with accompanying drawing, the present invention will be further described: each node format in the whole instruction tree is set, described as follows with C language:

[0011] typedef struct TreeNode *PtrToNode;

[0012] struct TreeNode

[0013] {

[0014] The key character content of the node

[0015] unsignedchar str;

[0016] The command number of the node, the command number is ERR, which means the wrong command number

[0017] unsigned char CommandNO;

[0018] PtrToNodeFirstChild; node's children

[0019] PtrToNodeNextBrer; node's next sibling

[0020]}

[0021] For example, the command to measure the voltage cycle in the MEASure subsystem: MEA-Sure: VOLTage: PERiod ".

[0022] SCPI instructions generally follow a hierarchical tree structure, which is inconvenient to operate. The tree structure is converted into a special structure of a binary tree. Nodes at the same level are sibling nodes, and each node has a ch...

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 the communication technology among programmable devices, equipment and a board level, in particular to a method for fast analyzing a communication instruction based on an SCPI protocol. The method achieves C language description. The method comprises the steps that an SCPI instruction is set to be of a binary tree structure according to levels, the meaning represented by the instruction is analyzed in an iterative mode, the meaning is the instruction number of the instruction, each instruction number represents an operation on an instrument and equipment, the newly-received instruction is analyzed from a root node firstly, and then each level of node of the received instruction is analyzed. Through the method, the SCPI instruction can be explained conveniently, and the equipment can execute the operation corresponding to the instruction. An SCPI has good readability and maintainability and can be widely applied to the communication between the equipment and the board level. The method can be achieved on an MCU, an ARM, a POWERPC, MIPS, an FPGA and other programmable devices.

Description

technical field [0001] The invention relates to communication technology between programmable devices and equipment, and board level, in particular to a method for realizing fast parsing of communication instructions based on SCPI protocol. Background technique [0002] With the development of communication and computer technology, the communication instructions between the current equipment and each subunit in the equipment have become more complicated. The SCPI (Standard Commands for Programmable Instrument) language itself defines a set of basic subsystem keywords, and at the same time allows users to increase or decrease keywords. These keywords are usually meaningful English words for easy memory, also known as mnemonics symbol. It is very convenient to formulate the communication protocol through SCPI, and the protocol is relatively easy to understand. Contents of the invention [0003] The purpose of the present invention is to provide a method described in C lang...

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/30
Inventor 王东峰陈伟峰张睿王卫龙刘佳
Owner TOEC TECH
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