AVL通讯协议.doc

  1. 1、本文档共6页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
AVL通讯协议

Serial communication protocol Master/Slave 1.1 ASCII - Protocol Each measurement value starts with a code number ( 3 characters ). You can look in the code table on the end of this document to know the value-name. The characters between the code and ETB or HT are the value with some blanks on the end. If a value is not ok we don’t send it to the PC, therefore the length of the protocol is not always constant. 1.2 Master mode The measurement tool send a data block to the PC. The PC have to wait for this block and send after controlling the checksum a answer ( ACK + ETB ) to our tool. ACK ... checksum is OK NAK ... checksum is NOT OK, we can repeat the datablock 2 times. Parameter: 9600 baud, 8 data bit, 1 stop bit, NO parity 2 sec timeout for RS232 Datablock - Format: AVL465 / AVL4000 -- PC STX start of data block nnn vvvv _ _ HT 1. value nnn vvvv _ _ HT 2. value . . . nnn vvvv _ _ HT last value ‘5 ‘ ‘A ‘ 2 byte checksum ASCII 0..F ETB “ end of data block nnn = ( code table vvvv = value with some Blanks on the end PC -- AVL465 / AVL4000 PC test the checksum and send the answer ACK checksum was OK ETB or NAK checksum was not OK ETB 1.3 Slave mode ( ISOTEC - MODE) The PC send a question (ENQ) to the measurement tool. If our tool is not ready to send a data block, we answer with a NAK. If our tool is ready, we send the data block. The PC have to wait for this block and send after controlling the checksum a answer ( ACK or NAK). ACK : the checksum of the data block was OK, if there are more than one data blocks we send the next one. NAK : the checksum of the data block was not OK, we can repeat the data block 2 times. Parameter: 9600 baud, 8 data bit, 1 stop bit, NO parity 2 sec timeout for RS232 Format: Slave mode STX start of data block nnn vvvv _ _ ETB 1. value nnn vvvv _ _ ETB 2. value . . . nnn vvvv _ _ ETX last value ‘5 ‘ ‘A ‘ 2 byte checksum

文档评论(0)

xcs88858 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

版权声明书
用户编号:8130065136000003

1亿VIP精品文档

相关文档