CANopen
CANopen 是一种基于 CAN 的通信系统,它被开发为一个具有高度灵活配置能力的标准化嵌入式网络, 广泛应用于医疗设备、越野车辆、海事电子、铁路应用或建筑自动化等多个领域。
网络接驳
CAN 总线必须通过透传网关(CAN-over-IP Gateway)接入以太网,实现双向通信。 透传网关通常提供:监听、发送、接收指令的功能, 应首选支持硬件掩码过滤的网关,次选仅有软件过滤功能的网关。
协议透传与转换网关: JOYZL SCADA 推荐采用 CAN 协议透传网关实现数据采集与监控, 这有助于降低硬件成本,同时获得最大的可用性。 协议转换网关需要额外的算力和程序处理协议转换, 因此成本更高,同时转换后的协议可能无法支持所有功能而降低可用性。
过滤设置
通信配置
主动轮询时不能发太多,纯轮询必须≥10ms间隔 OUC_TCP_MASTERJOYZL SCADA 作为主端(MASTER) 由设备主动发起连接,因此须在设备中设置连接的目标地址和端口; 设备由以太网接口(RJ45)连接到网络, 设备通信参数按如下方式进行设置。
- 驱动:OUC_TCP_MASTER
- 接点:网络地址和端口(IP:PORT),缺省地址仅指定端口时,监听本机所有地址,例如 1000
- 地址:设置为设备固定地址,例如 192.168.8.8,由地址区分设备,因此不能使用动态地址(DHCP)
JOYZL SCADA 作为主端(MASTER) 由设备主动发送数据报,因此须在设备中设置发送的目标地址和端口; 设备由以太网接口(RJ45)连接到网络, 设备通信参数按如下方式进行设置。
- 驱动:OUC_UDP_MASTER
- 接点:网络地址和端口(IP:PORT),缺省地址仅指定端口时,监听本机所有地址,例如 1000
- 地址:设置为设备固定地址,例如 192.168.8.8,由地址区分设备,因此不能使用动态地址(DHCP)
JOYZL SCADA 作为从端(SLAVE) 主动发起连接到设备, 设备由以太网接口(RJ45)连接到网络, 设备通信参数按如下方式进行设置。
- 驱动:OUC_TCP_SLAVE
- 接点:设备地址和端口(IP:PORT),例如 192.168.8.8:1000
- 地址:未使用
JOYZL SCADA 作为从端(SLAVE) 主动发送空报文到设备用以报告自身地址, 设备由以太网接口(RJ45)连接到网络, 设备通信参数按如下方式进行设置。
- 驱动:OUC_UDP_SLAVE
- 接点:设备地址和端口(IP:PORT),例如 192.168.8.8:1000
- 地址:未使用
数据配置
JOYZL SCADA 严格按照配置的属性代码排序(从小到大), 然后按照属性的原值类型解析数据。 可在设备中配置任意数量且不重复(Code)的属性。
JOYZL SCADA 属性代码(Code)格式为:任意可见 ASCII 字符。
数据项对应: 请仔细核对配置的属性与设备发送的数据项严格对应, 否则将获得非预期的数据值,并且不会报告任何异常或错误。
JOYZL SCADA 属性支持的数据类型请参考 数据类型表 。
标准规范
遵循和参考的标准或规范:
GB/T 41588-2022 道路车辆 控制器局域网(CAN)
GB/T 41588.1-2022 道路车辆 控制器局域网(CAN) 第1部分:数据链路层和物理信令
GB/T 41588.2-2022 道路车辆 控制器局域网(CAN) 第2部分:高速媒介访问单元
GB/T 41588.3-2022 道路车辆 控制器局域网(CAN) 第3部分:低速容错、媒介相关接口
GB/T 41588.4-2022 道路车辆 控制器局域网(CAN) 第4部分:时间触发通信
ISO 11519 Road vehicles — Low-speed serial data communication
ISO 11519-1 Road vehicles — Low-speed serial data communication — Part 1: General and definitions
ISO 11519-3 Road vehicles — Low-speed serial data communication — Part 3: Vehicle area network (VAN)
ISO 11898 Road vehicles — Controller area network (CAN)
ISO 11898-1 Road vehicles — Controller area network (CAN) — Part 1: Data link layer and physical coding sublayer
ISO 11898-2 Road vehicles — Controller area network (CAN) — Part 2: High-speed physical medium attachment (PMA) sublayer
ISO 11898-3 Road vehicles — Controller area network (CAN) — Part 3: Low-speed, fault-tolerant, medium-dependent interface
ISO 11898-4 Road vehicles — Controller area network (CAN) — Part 4: Time-triggered communication
ISO 15765 Road vehicles — Diagnostic communication over Controller Area Network (DoCAN)
ISO 15765-2 Road vehicles — Diagnostic communication over Controller Area Network (DoCAN) — Part 2: Transport protocol and network layer services
ISO 15765-4 Road vehicles — Diagnostic communication over Controller Area Network (DoCAN) — Part 4: Requirements for emissions-related systems
ISO 15765-5 Road vehicles — Diagnostic communication over Controller Area Network (DoCAN) — Part 5: Specification for an in-vehicle network connected to the diagnostic link connector
CiA 301 CANopen application layer and communication profile