基于STM32F103实现Profibus-DP从站软核的研发
发布时间:2018-12-14 17:09
【摘要】:Profibus-DP具有很高的市场占有率,主要用于设备级控制系统与分散式I/O的通信中,安装简单,即插即用,且通信实时可靠,功能比较完善等特点,是目前国际上应用最广泛的一种现场总线。当前,国内对Profibus-DP的应用与研究主要以国外的一些成套设备为主,而自主研究开发通信接口却比较少[1]。在国内大多数采用德国西门子公司提供的ASIC专用Profibus协议芯片SPC3开发Profibus-DP从站,但由于SPC3芯片价格昂贵,再之外围器件的成本和软件开发的成本,给生产厂家带来了巨大的成本压力,导致国内只有少量产品带有Profibus-DP通信接口,无法被广泛应用。本文就针对该方案的缺点,提出了采用廉价的高性能的普通ARM7芯片STM32F103软核开发Profibus-DP从站,,代替了Profibus-DP专用芯片。通过有效地分配STM32F103的资源,采用硬件与软件相结合,开发智能DP从站,具有硬件成本低、通信速率高、易修改及扩展、灵活性高等优点。 本文将从以下几方面进行介绍Profibus-DP从站: (1)介绍现场总线技术的发展概况、应用前景以及Profibus-DP协议在国内外的应用情况,论述了国内开发Profibus-DP从站所采取的方案及其存在的局限性,指出了本课题的研究方案、研究内容及待解决的关键技术。 (2)比较目前国内开发Profibus-DP从站所采取的方案,指出各自存在的优缺点,提出一种基于ARM7芯片STM32F103软件实现Profibus-DP智能从站的方案,并针对预期的指标进行可行性分析。 (3)重点介绍Profibus-DP从站的硬件和软件设计。从硬件原理图的设计、PCB版的制作、电路的焊接及调试到软件编程进行详细介绍。硬件电路主要包含微处理器接口、电源电路、RS485通信接口。软件主要完成MAC层及LLC层的功能,如高速数据收发、帧间隔识别、帧解析、处理及封装等。 (4)采用CP5611+PC机作为Profibus-DP主站,搭建Profibus-DP从站的测试平台,对本方案实现的Profibus-DP从站进行测试,是否达到预期的指标。 (5)最后,采用自制的丢包率测试站对已完成的DP从站进行丢包率测试,给出测试的实验结果,并对实验数据进行详细地分析。 本文实现的Profibus-DP从站在降低成本的同时,确保了高速通信的功能,可以广泛地应用于高速通信的工业现场网络中,实现一个智能化的网络,便于用户的管理。
[Abstract]:Profibus-DP has a high market share. It is mainly used in the communication between device level control system and distributed I / O, simple installation, plug and play, real time and reliable communication, perfect function, etc. It is the most widely used field bus in the world. At present, the domestic application and research of Profibus-DP is mainly based on some foreign complete sets of equipment, but the independent research and development of communication interface is relatively few [1]. In our country, most of the Profibus-DP slave stations are developed by SPC3, a special Profibus protocol chip provided by Germany Siemens. However, because of the high price of SPC3 chips, the cost of peripheral devices and software development is very high. It brings huge cost pressure to the manufacturers, resulting in a small number of domestic products with Profibus-DP communication interface, which can not be widely used. In view of the disadvantages of this scheme, this paper proposes to develop Profibus-DP slave station with cheap and high performance ordinary ARM7 chip STM32F103 soft core instead of Profibus-DP chip. By effectively allocating the resources of STM32F103 and combining hardware with software, the intelligent DP slave station is developed, which has the advantages of low hardware cost, high communication rate, easy modification and extension, high flexibility and so on. This paper will introduce the Profibus-DP slave station from the following aspects: (1) introduce the development of fieldbus technology, the application prospect and the application of Profibus-DP protocol at home and abroad. This paper discusses the scheme and limitations of developing Profibus-DP slave station in China, and points out the research scheme, research contents and key technologies to be solved. (2) comparing the schemes of developing Profibus-DP slave station in China, pointing out their advantages and disadvantages, putting forward a scheme of implementing Profibus-DP intelligent slave station based on STM32F103 software of ARM7 chip, and analyzing the feasibility of the expected index. (3) introduce the hardware and software design of Profibus-DP slave station. From the hardware schematic design, PCB version of the production, circuit welding and debugging to software programming for detailed introduction. Hardware circuit mainly includes microprocessor interface, power circuit, RS485 communication interface. The software mainly completes the functions of MAC layer and LLC layer, such as high-speed data transceiver, frame interval identification, frame analysis, processing and encapsulation. (4) using CP5611 PC machine as Profibus-DP master station, the test platform of Profibus-DP slave station is built, and the Profibus-DP slave station realized by this scheme is tested, whether or not it reaches the expected target. (5) finally, the self-made test station for packet loss rate is used to test the packet loss rate of the completed DP slave station, and the experimental results are given, and the experimental data are analyzed in detail. The Profibus-DP realized in this paper not only reduces the cost, but also ensures the function of high speed communication. It can be widely used in the industrial field network of high speed communication, and realize an intelligent network, which is convenient for user management.
【学位授予单位】:温州大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP273.5;TP368.1
本文编号:2378994
[Abstract]:Profibus-DP has a high market share. It is mainly used in the communication between device level control system and distributed I / O, simple installation, plug and play, real time and reliable communication, perfect function, etc. It is the most widely used field bus in the world. At present, the domestic application and research of Profibus-DP is mainly based on some foreign complete sets of equipment, but the independent research and development of communication interface is relatively few [1]. In our country, most of the Profibus-DP slave stations are developed by SPC3, a special Profibus protocol chip provided by Germany Siemens. However, because of the high price of SPC3 chips, the cost of peripheral devices and software development is very high. It brings huge cost pressure to the manufacturers, resulting in a small number of domestic products with Profibus-DP communication interface, which can not be widely used. In view of the disadvantages of this scheme, this paper proposes to develop Profibus-DP slave station with cheap and high performance ordinary ARM7 chip STM32F103 soft core instead of Profibus-DP chip. By effectively allocating the resources of STM32F103 and combining hardware with software, the intelligent DP slave station is developed, which has the advantages of low hardware cost, high communication rate, easy modification and extension, high flexibility and so on. This paper will introduce the Profibus-DP slave station from the following aspects: (1) introduce the development of fieldbus technology, the application prospect and the application of Profibus-DP protocol at home and abroad. This paper discusses the scheme and limitations of developing Profibus-DP slave station in China, and points out the research scheme, research contents and key technologies to be solved. (2) comparing the schemes of developing Profibus-DP slave station in China, pointing out their advantages and disadvantages, putting forward a scheme of implementing Profibus-DP intelligent slave station based on STM32F103 software of ARM7 chip, and analyzing the feasibility of the expected index. (3) introduce the hardware and software design of Profibus-DP slave station. From the hardware schematic design, PCB version of the production, circuit welding and debugging to software programming for detailed introduction. Hardware circuit mainly includes microprocessor interface, power circuit, RS485 communication interface. The software mainly completes the functions of MAC layer and LLC layer, such as high-speed data transceiver, frame interval identification, frame analysis, processing and encapsulation. (4) using CP5611 PC machine as Profibus-DP master station, the test platform of Profibus-DP slave station is built, and the Profibus-DP slave station realized by this scheme is tested, whether or not it reaches the expected target. (5) finally, the self-made test station for packet loss rate is used to test the packet loss rate of the completed DP slave station, and the experimental results are given, and the experimental data are analyzed in detail. The Profibus-DP realized in this paper not only reduces the cost, but also ensures the function of high speed communication. It can be widely used in the industrial field network of high speed communication, and realize an intelligent network, which is convenient for user management.
【学位授予单位】:温州大学
【学位级别】:硕士
【学位授予年份】:2012
【分类号】:TP273.5;TP368.1
【参考文献】
相关期刊论文 前10条
1 李扬继;范宝锋;杨洋;;网络性能测量技术分析[J];兵工自动化;2006年10期
2 张学渊,梁雄健;关于通信网可靠性定义的探讨[J];北京邮电大学学报;1997年02期
3 杨冬梅;陈思宁;;基于Profibus的水电厂分布式测控装置——(一)Profibus-DP主站设计[J];水电自动化与大坝监测;2006年06期
4 何缓,王积勤;射频电路PCB设计中应注意的有关问题[J];电力系统通信;2003年06期
5 乔渠;赵国豪;王文记;;串行通信波特率的自动识别[J];单片机与嵌入式系统应用;2007年02期
6 梁龙;;基于信号完整性分析的高速PCB设计[J];单片机与嵌入式系统应用;2010年10期
7 张玉萍;佟为明;李辰;;现场总线网络性能指标与评估方法[J];低压电器;2009年03期
8 王建国;孙丰祥;李红梅;张艺琼;李晓辉;;基于软件协议的PROFIBUS-DP从站实现[J];化工自动化及仪表;2010年01期
9 周胜海;抑制△I噪声的PCB设计方法[J];计算机测量与控制;2004年11期
10 李陈武;;Profibus-DP总线从站的通信测试研究[J];科学咨询(决策管理);2008年09期
相关博士学位论文 前1条
1 高会生;电力通信网可靠性研究[D];华北电力大学(河北);2009年
相关硕士学位论文 前1条
1 唐志辉;基于Profibus-DP智能通信模块设计及开发[D];湖南大学;2008年
本文编号:2378994
本文链接:https://www.wllwen.com/kejilunwen/jisuanjikexuelunwen/2378994.html