引用本文: | 潘 可,余华武,陈 磊.Anybus-Profibus在Linux下的驱动设计[J].电力自动化设备,2010,(11): |
| PAN Ke,YU Huawu,CHEN Lei.Design of Anybus-Profibus driver in Linux[J].Electric Power Automation Equipment,2010,(11): |
|
摘要: |
通信管理机利用Anybus-Profibus快速实现了对Profibus现场总线的支持。由于Anybus-Profibus配置流程、通信规约等的复杂性,以及Anybus-Profibus在被快速反复访问同一区域造成其自身锁死的缺陷,提出在Linux下的驱动设计的驱动框架:加载驱动时对Anybus-Profibus进行初始化并配置,在卸载驱动时对Anybus-Profibus进行关闭操作;定时将驱动内部缓存区的数据与Anybus的双端口随机访问内存DPRAM进行同步;将缓存模拟成文件供上层应用程序方便地实时调用。Anybus-Profibus在Linux下的驱动设计是通信管理机的一个重要组成部分,所设计的通信管理机已应用于发电厂监控系统中。 |
关键词: Profibus现场总线 Anybus通信规约 缺陷处理 Linux设备驱动 |
DOI: |
分类号: |
基金项目: |
|
Design of Anybus-Profibus driver in Linux |
PAN Ke, YU Huawu, CHEN Lei
|
Guodian Nanjing Automation Co.,Ltd.,Nanjing 210003,China
|
Abstract: |
Anybus-Profibus is applied in the communication manager to accommodate the Profibus communication port. Because of the complexity of Anybus-Profibus’ configuration procedures,and its deadlock problem caused by frequent access to the same area,the driver design framework in Linux is proposed:Anybus-Profibus is initialized and configured during driver loading and it is shut down during driver unloading;the data of driver buffer are periodically synchronized with those of Anybus-Profibus DPRAM;the data are simulated as one file for convenient real-time call by superordinate applications. Anybus-Profibus driver design in Linux is an important part of the communication manager,which is used in the supervisory system of power plant. |
Key words: Profibus Anybus communication protocol defect handling Linux device driver |