VXI-11(网络设备)协议学习

VXI-11是由VXIbus Consortium制定的网络设备协议,用于控制器与设备间的通信。它基于ONC/RPC模型,允许客户端调用远程服务器上的程序。该协议建立在标准协议栈上,适用于IEEE 488设备类似的通信方式。创建链接、设备读写等网络仪器消息通过RPC进行。
›VXI-11 Concept
VMEbus Extensions for Instrumentation TCP/IP Instrument Protocol Specification VXI-11, Revision 1.0 is authored by the VXIbus Consortium, Inc. and its sponsor members:
–GenRad, Inc.
–Hewlett-Packard Co.
–National Instruments, Corp.
–Racal Instruments, Inc.
–Tektronix, Inc.
–Wavetek, Inc.
VXI-11 Family
VXI-11.1TCP/IP-VXIbus Interface Specification
VXI-11.2TCP/IP-IEEE 488.1 Interface Specification
VXI-11.3TCP/IP-IEEE 488.2 Instrument Interface Specification
 
Network Instrument Protocol
The network instrument protocol uses the ONC remote procedure call (RPC) model. Conceptually, this model allows one application (typically called the client) to call procedures in a remote application (typically called the server) as if the remote procedures were local.
This specification uses ONC/RPC for defining thenetwork instrumentmessages which are passed over the network, but does not require that these RPCs be provided as the application interface. The ONC/RPC interface may,  however, be used by a device designer as a matter of convenience.
 
Network Instrument Protocol
 
Protocol Foundations
The network instrument protocol is an application layer protocol designed for controller to device
communication using a paradigm similar to communication with IEEE 488 devices.
The networkinstrument protocol is built on an industry-standard protocol stack, allowing instrumentation and controllers to communicate over existing networks.
The following sections work from the bottom of the protocol stack upward, describing the protocol stack requirements of controllers or devices which implement thenetwork instrumentprotocol.
 
Protocol Stack Summary
 
Network Instrument Messages (RPCs)
 
Example:create_link
The create_link RPC creates a new link. This link is identified on subsequent RPCs by thelidreturned
from the network instrument server.
struct Create_LinkParms {
long clientId; /* implementation specific value.*/
bool lockDevice; /* attempt to lock the device */
unsigned long lock_timeout; /* time to wait on a lock */
string device<>; /* name of device */
};
struct Create_LinkResp {
Device_ErrorCode error;
Device_Link lid;
unsigned short abortPort; /* for the abort RPC */
unsigned long maxRecvSize; /* specifies max data size in bytes
device will accept on a write */
};
Create_LinkResp create_link(Create_LinkParms) = 10;
RULE B.6.3:
To successfully complete a create_linkRPC, anetwork instrument server SHALL:
1. If lockDevice is set to true, acquire the lock for the device.
2. Return in lid a link identifier to be used with future calls. The value oflidSHALL be unique for
all currently active links within a network instrument server.
3. Return in maxRecvSize the size of the largestdataparameter the network instrument server can
accept in a device_write RPC. This valueSHALLbe at least 1024.
4. Return in asyncPort the port number for asynchronous RPCs. Seedevice_abort.
5. Return with error set to 0, no error, to indicate successful completion.
The device parameter is a string which identifies the device for communications. See the document(s)
referred to in section A.6, Related Documents, for definitions of this string.
 
 
Demo
 
Port Map Register
 
Port Map look up (GetPort Call)
Port Map look up (GetPort Reply)
Create Link Request
Create Link Response
 
Device Write Request
 
Device Write Response
 
Device Read Request
 
Device Read Response
 
 
 
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值