基于 MODBUS 协议的通讯系统【摘 要】 本设计讨论如何通过 MODBUS 通讯协议,设计利用单片机,结合NRF24L01 无线收发芯片,实现了温度实时采集与主机(PC 机)显示。用 STC89C52单片机与 DS18B20 对温度采集显示于数码管,在通过无线模块发送到另一块单片机系统里通过 1602 液晶显示,成后,基于 MODBUS 通讯协议通过 RS-485 的物理层实现串口通信,发送实时数据给主机。经过一系列的处理后,温度得以实时在两个单片机系统中显示并准确显示在主机串口调试软件中。经检测,作品实现了基于 MODBUS协议的通讯。【关键词】 MODBUS NRF24L01 STC89C52 PC 机[Abstract] This design to study how through the MODBUS communication protocol designed to use microcontroller, to combine NRF24L01 wireless transceiver chip temperature real-time acquisition with the host (PC) display. The STC89C52 SCM and DS18B20 temperature acquisition and display digital control, the 1602 LCD, after the completion of a microcontroller system via RS-485 physical layer communication protocol based on MODBUS serial communication through a wireless module to send to send real-time data to the host. After a series of treatments, the temperature can be shown in the two single-chip system in real time and accurately displayed on the host serial port debugging software. After testing, the works based on MODBUS protocol communication.[Key words] The MODBUS nRF24L01 STC89C52 host computer目 录第1章 绪论.............................................................11.1 Modbus 协议简介................................................11.2 Modbus 协议的应用..............................................11.3、本论文的主要内容..............................................1第2章 设计总思路和法案选择............................................22.1、设计总体思路基本原理和框图....................................22.2 MODBUS 方案选择..................................................22.3 通讯接口选择....................