基于CAN總線的嵌入式監控設備的設計
中國測試期刊
孔祥通, 王春平, 孫書鷹, 劉江義
(軍械工程學院,河北 石家莊 050003)
摘 要:根據嵌入式技術和CAN總線通信技術,設計一套分布式結構多節點某高炮火控裝備信號監控采集設備。首先對以STM32F407單片機為核心的設備硬件設計進行分析,介紹基本原理及模塊實現方案;其次根據系統的通信任務要求,介紹CAN通信在系統中的應用實現過程,數據幀的組成及通信軟件的設計;最后設計人機交互界面。通過數據采集試驗表明:整個系統能完成實時采集監控功能且工作穩定可靠,具有成本低、實時性好、工作穩定及便于擴展等優點。
關鍵詞:CAN總線;分布式系統;STM32F407單片機;模塊設計;采集測試
中圖分類號:TP368.1;TP277.2;TP336;TP274+.2 文獻標志碼:A 文章編號:1674-5124(2013)04-0085-03
Design of embedded monitor system based on CAN bus
KONG Xiang-tong, WANG Chun-ping, SUN Shu-ying, LIU Jiang-yi
(Ordnance Engineering College,Shijiazhuang 050003,China)
Abstract: A multi-nodes monitor system which based on embedded and CAN bus technology was proposed in this paper. Firstly, the basic hardware structure was analyzed, the basic theory and the realize method of the modules are emphasized. The tested signals were illuminated and the ADC method was also discussed in this paper. According to the requirements of communication task, the CAN bus communication method was also discussed, including the software design and the constitutions of the data frames. Finally, experimental results show that this system is stable, lower cost and easy to expand.
Key words: CAN bus; distributed system; STM32F407; module design; acquisition and test