CFP last date
20 January 2025
Reseach Article

Development and Implementation of a Linux- Xenomai based Hard Real-Time Device Driver for PCI Data Acquisition System (DAS) Card

by Amit Bhaira, Gaurav Rudra, Tanmoy Bag, Yusuf Husainy
International Journal of Computer Applications
Foundation of Computer Science (FCS), NY, USA
Volume 81 - Number 12
Year of Publication: 2013
Authors: Amit Bhaira, Gaurav Rudra, Tanmoy Bag, Yusuf Husainy
10.5120/14065-2292

Amit Bhaira, Gaurav Rudra, Tanmoy Bag, Yusuf Husainy . Development and Implementation of a Linux- Xenomai based Hard Real-Time Device Driver for PCI Data Acquisition System (DAS) Card. International Journal of Computer Applications. 81, 12 ( November 2013), 24-28. DOI=10.5120/14065-2292

@article{ 10.5120/14065-2292,
author = { Amit Bhaira, Gaurav Rudra, Tanmoy Bag, Yusuf Husainy },
title = { Development and Implementation of a Linux- Xenomai based Hard Real-Time Device Driver for PCI Data Acquisition System (DAS) Card },
journal = { International Journal of Computer Applications },
issue_date = { November 2013 },
volume = { 81 },
number = { 12 },
month = { November },
year = { 2013 },
issn = { 0975-8887 },
pages = { 24-28 },
numpages = {9},
url = { https://ijcaonline.org/archives/volume81/number12/14065-2292/ },
doi = { 10.5120/14065-2292 },
publisher = {Foundation of Computer Science (FCS), NY, USA},
address = {New York, USA}
}
%0 Journal Article
%1 2024-02-06T21:55:53.826387+05:30
%A Amit Bhaira
%A Gaurav Rudra
%A Tanmoy Bag
%A Yusuf Husainy
%T Development and Implementation of a Linux- Xenomai based Hard Real-Time Device Driver for PCI Data Acquisition System (DAS) Card
%J International Journal of Computer Applications
%@ 0975-8887
%V 81
%N 12
%P 24-28
%D 2013
%I Foundation of Computer Science (FCS), NY, USA
Abstract

This paper elaborates the implementation of a PCI based device driver for a Data Acquisition System (DAS) Card using the RTDM (Real-Time Driver Model) skin over Xenomai kernel, which is integrated with the Linux kernel. A C language kernel module was written for the PCI bus based driver to provide hard real-time capabilities and determinism to any application accessing the DAS card. The PCI DAS card used consisted of 12-bit ADC, 12-bit DAC, Programmable Digital I/O lines (TTL compatible) and Timers/Counters. In order to test all the features of the DAS and the performance of the driver, a test system, consisting of a 3-axis analog accelerometer connected to the ADC of the DAS via a junction box and powered by its DAC, was been constructed. Additionally, a 3-axis digital accelerometer communicated with an AVR development board via I2C in order to generate conditioned input for the programmable digital I/O lines of the DAS card. A graphical tilt measurement application involving real time acquisition of the accelerometers data was implemented using OpenGL. Finally, the driver was thoroughly tested with this arrangement, and the interrupt latencies were noted to be around 4µsec.

References
  1. Xenomai documentation at www. xenomai. org.
  2. J. Kiszka, "The Real-Time Driver Model and First Applications", svn. gna. org.
  3. Doug Abbott, "PCI Bus Demystified", Elsevier, 2004.
  4. "PCI 9052 Data Book", PLX Technology, 2000.
  5. Daniel P. Bovet, Marco Cesati, "Understanding the Linux Kernel", O'Reilly, 2006
  6. Jonathan Corbet, Alessandro Rubini, Greg Kroah-Hartman, "Linux Device Drivers", O'Reilly 2005.
  7. P. Gerum, "Xenomai – Implementing a RTOS emulation framework on GNU/Linux", 2004, 2008.
  8. Don Anderson, Tom Shanley, "PCI System Architecture", Mindshare, 1999
  9. Robert Love, "Linux Kernel Development", Pearson Education, 2010.
  10. Mark Pedley, AN3461 Application Note, "Tilt Sensing Using a Three-Axis Acclerometer", Freescale Semiconductor, 2013.
  11. AN3182 Application Note "Tilt measurement using a low-g 3-axis accelerometer", ST Microelectronics, 2010.
Index Terms

Computer Science
Information Sciences

Keywords

Real-Time PCI Device Driver Xenomai RTDM Data Acquisition Systems