#英文#HART协议理解及开发思路


HART (Highway Addressable Remote Transducer), is one of the industrial field bus standards.

Three main layers

Physical layer: analog signal transmission on 4~20 mA carrier;
Data link layer: ensure reliable data transmission on the physical layer;
Application layer: correct implementation of information interactive ;

Technical characteristics

Both two types of communication channels:

  1. 4~ 20mA analog communication
  2. modulated data communication;

Standard operation process:

  1. loop test;
  2. 4~ 20mA analog setting;
  3. Sensors adaption;

Two communication topologies :

  1. Point-to-pointing (classic)
    In the HART network, two Master is allowed, one for system control, another for handling device.
    在这里插入图片描述

  2. Point to multi-point
    在这里插入图片描述

Two communication interactive modes :
2.1. Request mode (Master-slave mode):
2.1.1 The slave response when the request is received ;
2.1.2 Other Masters will be allowed to send requests when time is idle;
2.1.3 2~ 3 times interaction each second;

2.2. Burst mode (slave pub process data):
2.2.1 slave selectable mode;
2.2.2 slave periodic sending measurement;
2.2.3 Other Masters will be allowed to send requests when time is idle;
2.2.4 3~ 4 times interaction each second;

FSK (frequency shift keying)

在这里插入图片描述

HART command types and functions

See the table below:
在这里插入图片描述
在这里插入图片描述

HART message structure

Usually, long-structure and short-structure are used in a different version of HART, for example, HART 5.0 and earlier versions would work with short-structure. Due to the non-uniqueness of the message to HART, it should be considered when designed, but no longer than 25 bytes, generally includes:

  1. Preamble // includes 5 to 20 0xFF, it could be seen as a kind of synchronous signal, check master and slave machine at the beginning of transmission;

  2. Delimiter // start byte includes information about ‘whether long or short structure’, ‘message source’, ‘what type of message’;
    When master to slave is short-structure, this byte is 02;
    When master to slave is long-structure, this byte is 82;
    When slave to master is short-structure, this byte is 06;
    When slave to master is long-structure, this byte is 86;
    Burst mode: short-structure is 01, long-structure is 81;

  3. Address // address byte includes slave and master address;

  4. Command //command byte,0x00 to 0xFD 253 in total;

  5. Bcnt // total data length, it could help to find check-byte and know of the message ends;

  6. Status // status byte, also called ’response code’;

  7. Data // data byte

  8. Check // parity check byte;
    在这里插入图片描述
    There are two frame formats of HART communication from Master to slave and Slave to master. When considering how to build a data structure of a message to satisfy communication with strong flexibility, the content difference between commands should be clearly understood.

  9. Master-to-slave frame
    /preambles +delimeter+ expansion+ longAddr+ byteCnt+ data
    20 + 1 + 3 + 5 +1 + 255 =285
    /
    [ Preamble ]: length depends ( max 20 bytes)
    [ Delimiter ]: fixed-length ( 1 byte)
    [ Address ]: long address(5 bytes) or short address(1 byte) types
    [ Command ]: fixed-length ( 1 byte)
    [ Byte Count ]: fixed-length ( 1 byte)
    [ Data ]: length depends ( max 255 bytes)
    [ Check Byte ]: fixed-length ( 1 byte)
    Also, the expansion byte should be considered in this section.
    According to specific commands, the length of the frame will be different, for example, in the command 0 in the universal command type, the requested data is 0, and using the short address type, it makes the whole length of the frame much shorter than most commands, as a developer, that’s what we concerned when an attempt to build once communication at the beginning.

  10. Slave to the master frame
    Similar to the previous structure, more details will be analysed in serials commands, especially data content.

Program Concerns

在这里插入图片描述
Some points before coding through my experience:

  1. How to understand analog and digital signals in HART transmission;
  2. The configuration of analogue signal output, such as slew rate.
  3. The frame of message in communication, includes how to build an unfixed message, and response time setting(timer).
  4. What command type will be used, clearly understand their difference in each frame section.
  5. Basic communication builds, and debugging.
  6. Build a structure to analyze response data, and translate it to USER data from BYTE data, such as read loop current value.

写完了终于可以吃饭去了

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
### 回答1: HART协议(Highway Addressable Remote Transducer)是一种用于工业自动化领域的数字通信协议HART协议提供了在现场设备和控制系统之间进行双向通信的能力,使得设备能够实现参数配置、状态监测和故障诊断等功能。 HART协议的版本6.0及以上版本是在早期版本的基础上进行了改进和升级的。这些改进包括增加了更高的通信速率、提高了数据传输的稳定性和可靠性,并增强了通信的安全性。 HART协议6.0及以上版本还提供了更好的网络管理功能,包括支持网络拓扑自动发现、设备配置和维护等。此外,还提供了更灵活的命令和响应机制,能够适应更多类型和更复杂的设备。 HART协议6.0及以上版本还引入了更高级的诊断功能,能够提供更详细和准确的设备状态信息,帮助使用者更好地监测和维护设备。此外,还提供了更高级的加密和安全机制,保护通信和设备的安全。 总的来说,HART协议6.0及以上版本在速率、稳定性、安全性和功能等方面都有了显著的改进和提升。这使得HART协议在工业自动化领域中更加普遍和广泛地应用,为现场设备和控制系统之间的通信提供了更高效、安全和可靠的解决方案。 ### 回答2: HART协议是一种用于工业过程控制系统的数字通信协议HART 6.0及以上版本是HART协议的最新版本,它具有以下特点。 首先,HART 6.0及以上版本支持双通道通信,即可以同时进行数字信号传输和模拟信号传输。这意味着可以通过同一个通信线路传输更多的信息,提高了通信的效率和可靠性。 其次,HART 6.0及以上版本支持更高的通信速率,能够实现更快的数据传输。这使得在实时控制和监控过程中,可以更快地获取和处理数据,提高了系统的响应速度。 此外,HART 6.0及以上版本引入了HART-IP(HART over IP)功能,这使得HART设备可以通过以太网进行通信。通过HART-IP功能,可以实现更灵活的网络配置和管理,便于远程监控和诊断。 HART 6.0及以上版本还提供了更多的网络安全功能,包括身份验证、加密和防篡改措施。这些功能可以保护通信数据的安全性和完整性,防止数据被非法获取或篡改。 最后,HART 6.0及以上版本具备更好的可扩展性和兼容性。它可以与之前的HART版本兼容,并且支持大量的第三方设备和系统集成,提供更多的应用选择和拓展能力。 总的来说,HART 6.0及以上版本在传输速率、通信效率、网络安全和系统兼容性方面有了显著的改进,使得HART协议在工业过程控制领域更加可靠和灵活。 ### 回答3: Hart协议6.0及以上版本是一种用于工业自动化领域的通讯协议Hart是Highway Addressable Remote Transducer的缩写,意为“可寻址远程传感器”。这种协议通过4-20mA信号线传输数字和模拟数据,使得智能仪表和系统能够相互通信和控制。 相比于早期版本,Hart协议6.0及以上版本具有以下改进: 1. 增强的数据传输速率:新版本中引入了更高的数据传输速率,提高了通信的效率和响应时间,降低了通信的延迟。 2. 增加了网络拓扑:新版本支持更复杂的网络拓扑设计,可以实现多个智能仪表的链接和控制,提高了系统的可扩展性和灵活性。 3. 改进了诊断功能:新版本引入了更强大和全面的诊断功能,能够帮助用户检测和解决问题,提高了系统的可靠性和可维护性。 4. 增加了设备管理功能:新版本中的设备管理功能使得用户能够更方便地进行设备配置、监测和维护,提高了系统的可管理性和易用性。 5. 提高了安全性:新版本增强了通信的安全性,采用更强大的加密算法和认证机制,保护了通信数据的机密性和完整性,提高了系统的安全性。 总之,Hart协议6.0及以上版本通过提高数据传输速率、增加网络拓扑、改进诊断功能、增加设备管理功能和提高安全性等方面的改进,使得智能仪表和系统之间的通信更加高效、灵活和可靠。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值