摘要:介紹了以FreeModbus協議找在嵌入式搶占實時操作系統μC/OS-l的STM32平臺上,成功實現了Modbus協議的移植。通過詳細分析FreeModbus協議花并編寫STM32F103VET6微處理器的底層驅動,成功實現了工業Modbus協議RTU和ASCll兩種模式的通信功能。測試結果表明,在實際工業生產控制和儀表開發中,應用Freemodbus協議,完全符合工業數據采集、實時控制和數據處理等廠級重復性和精確度要求,在一定程度上降低了工業儀表開發的周期及成本。關鍵詞:實時操作系統,uC/OS-ll,FreeModbus,Modbus協議,STM32Abstract:This paper introduces FreeModbus stack transplanted to the STM32 platform which has been embedded in the preemptive real-time operating system uC/OS-ll,in order that the transplantation of the Modbus protocol is successfuly im-plemented.The FreeModbus stack is analyzed in detail and STM32F103VET6 microprocessor underlying driver is writed,so that the two Modbus industrial communication function RTU and ASCll are successfully realized.Keywords:time operating system,uC/OS-ll,.FreeModbus,Modbus協議,STM32
標簽:
freemodbus
通信協議
上傳時間:
2022-06-25
上傳用戶: