摘要
为了实现由PC机及其CAN板卡构成的上位机与底层CAN节点之间的实时数字通信,用WinDriver开发了PCI CAN板卡的Windows驱动程序。阐述了WinDriver下开发驱动程序的设计思想及过程,即首先构造API专用函数库,然后构造用户驱动程序,最后实现用户功能。重点分析了处理中断时应特别注意的几个问题。在自行开发的CAN总线实验系统上实际应用表明,所开发的驱动程序及监控软件功能强大、界面友好、实时性强。使用WinDriver开发Windows设备驱动程序,周期短、性能高、可移植性好、易于分发。
In order to realize the real time digital communication between the supervisory computer composed of PC and CAN card , and the low level CAN nodes, the Windows drivers used for the PCI CAN card was developed based on WinDriver. The ideal and process of developing the driver on WinDriver were described, i.e. firstly, the API special function library was constructed, then the user drivers was constructed, finally, the required functions were implemented. Some problems that should be paid special attention to when handling the interrupts were analyzed emphatically. The actual application result on the experimental CAN fieldbus to be developed by us shows that the developed driver and monitoring software features powerful functions, friendly interfaces and good real time ability. By using WinDriver to develop Windows driver, the advantages of short design cycle, high performances, easy to transplant and distribute were obtained.
出处
《低压电器》
北大核心
2005年第9期36-40,共5页
Low Voltage Apparatus