山东科学 ›› 2020, Vol. 33 ›› Issue (6): 1-7.doi: 10.3976/j.issn.1002-4026.2020.06.001

• 海洋科技与装备 •    下一篇

基于Libmodbus的走航式海表温度传感器总线协议设计

贺亚楠,朱洪海*   

  1. 齐鲁工业大学(山东省科学院) 山东省科学院海洋仪器仪表研究所 山东省海洋环境监测技术重点实验室 国家海洋监测设备工程技术研究中心,山东 青岛266061

  • 收稿日期:2020-04-21 出版日期:2020-12-09 发布日期:2020-12-09
  • 通信作者: 朱洪海,男,副教授,研究方向为智能检测及仪器、海洋仪器仪表。Tel:13854214398,E-mail:hyyqyj@163.com E-mail:hyyqyj@163.com
  • 作者简介:贺亚楠(1993—),女,硕士研究生,研究方向为智能检测及仪器。E-mail:18833215812@163.com
  • 基金资助:
    国家重点基础研究发展计划(2017YFC1405600

Libmodbus-based bus protocol design for navigational sea surface temperature sensors

HE Ya-nan, ZHU Hong-hai*   

  1. National Engineering and Technological Research Center of Marine Monitoring Equipment, Shandong Provincial Key Laboratory of Ocean Enviromental Monitoring Technology, Institute of Oceanographic Instrumentation,Qilu University of Technology (Shandong Academy of Sciences),Qingdao 266061,China

  • Received:2020-04-21 Online:2020-12-09 Published:2020-12-09

摘要: 针对船用海水表层水温观测以人工观测为主的现状,基于跨平台的ModbusLibmodbus的走航式海洋表层水温监测系统,通过在船舶一侧布放处于船舶吃水线范围的水温传感器来采集表层水温信息。采用RS485/Modbus协议实现多站多点联网,构成分布式系统,进行海水表层温度的自动采集。上位机基于Modbus-RTU协议,并添加循环冗余校验以保证其对水温传感器的远程控制和表层水温信息采集功能的可靠性、安全性。该系统不仅运行稳定,操作简单方便,还具有可移植性和可扩展性。实验结果表明,该系统可以稳定可靠地监测海洋表层水温,实现表层水温的随船在线测量。

关键词: 水温传感器, 海水表层温度, Modbus-RTU协议, RS485总线

Abstract: In this study, a design is proposed based on the cross-platform Modbus library Libmodbus’ navigational sea surface temperature monitoring system to address the current situation in which the sea surface water temperature observations are mainly conducted via manual processes. In this design, the sensors located under the waterline toward the side of the ship are used to obtain the surface water temperature. The RS485/Modbus protocol is adopted to implement a multistation multipoint network to obtain a distributed system for automatically obtaining the sea surface temperature. The host computer is based on the Modbus-RTU protocol and involves cyclic redundancy check to ensure remote control of the water temperature sensor and the reliability as well as safety of the surface water temperature collection function. The designed system is not only stable, simple, and easy to operate but also portable and scalable. The experimental results show that the designed system can monitor the sea surface temperature in a stable and reliable manner and realize online measurement of the surface water temperature with respect to a ship.

Key words: water temperature sensor, sea surface water temperature, Modbus-RTU protocol, RS485 bus

中图分类号: 

  • TH766