device-driver

How might I learn to write char device drivers for Linux?

How to write char device drivers in Linux? ...

kernel source code location in linux

Hi all.. i am working in Fedora OS.. actually i am working in windows and running fedora through VMware (as u all know, VMware is used to load the OS image, thus running a different OS being in one OS).. by default the kernel source tree should be in usr/src/ directory.. instead i could find only an empty directory called kernels.. the a...

Serial port communications in C#

We have a scenario where multiple devices are connected to one com port. Each device has an access code, which is manually defined within the device. Can I access all the connected devices with/by access code in C#?. Does anybody have any idea as to how to do this? In my case multiple devices are connected with single port but slave ad...

Writing a windows driver for an emulated input device

My application needs to behave as a virtual joystick (imagine dragging a square with the mouse and translating that to the output of an analog joystick) and send some keystrokes over the network to another computer where the driver would receive that input. I only need to support XP, Vista and Win7. Maybe it can be done without writing...

Assistance in debugging FreeBSD drivers (Ethernet problem)

I've just installed pfSense (a FreeBSD distro) and I'm having problems with my Ethernet adapters - I seem to be able to get it into a state where I cannot ping any machine despite the ARP tables etc... all being correct (On the machine I'm pinging I can see the packets arrive and the response sent in Wireshark, but the remote machine get...

How to implement/use a secure 'read-once' local file access system?

Hi, does anybody know of a secure 'read-once' local file access system? Or how one might create one? I realise that if data is to be used on a system, then it must be capable of being read, but I think it may be possible to severely limit how data is made available and reduce the possibility of it being copied and used elsewhere. These ...

Raw PDO to send IOCTL to upper filter driver (kbfiltr/moufiltr) to enable/disable device

I am quite new to driver development and trying to write a simple filter driver that will enable or disable a keyboard or mouse device. If I can make it work, I want to use it to disable the touchpad on my laptop when a mouse is plugged in. I realize there is probably software out there that does this already, but I am really interested ...

Best way to watch process (and sub-processes) for file system read() I/O?

I would like to develop a command line program that worked like so: myprogram /c [some_executable_here] Which launched the command specified by the user and "watched" the process (and any sub-processes) for read I/O and when that program exits, print a listing of files that were "read" (ultimately resulted in a read() system call). My...

how to associate the the device in /dev/ with the actual driver

Hi , I am trying to understand how device driver works in linux. I have a device node as follows (Major number 89, device name i2c-0) crw-r--r-- 1 0 0 89, 0 Sep 29 01:36 /dev/i2c-0 I have the i2c driver with the name i2c.ko and I will do insmod i2c.ko during start up. And in the driver , following function will ...

Peripheral interaction via a web portal

Ok, I'm pretty sure this is a stupid question so I apologise in advance. I have never done anything with ActiveX, nor have I really got stuck in with what you can do with Flash/Silverlight, but what I am wondering is can either of these technologies be used to talk to external devices that are connected to a machine? I guess what I am...

Install device driver silently on Windows XP

Is there a way to programmatically install device driver silently without cat file and without connecting the device on Windows Xp? I'm using DriverPackageInstall function from Windows Driver Kit. And I can install driver only if device is attached. In other case I get an error: ERROR_NO_SUCH_DEVINST. But that method works fine with Win...

Looking to learn writing a NDIS or TDI Driver

Can anyone possibly suggest a good book which steps through the development of such a driver written in C. I'm looking for a book which is good for beginners. If there is an online resource on how to do this which explains the process from ground up it would be greatly appreciated. Thanking you Victor ...

Automating Win32 Driver Testing

Does anyone know ways of partially or fully automating driver test installation? I am new to driver development and am used to more of a test-driven approach in higher level languages, so moving to the kind of environment where I can't easily test as I go has been a step up for me. I am using Virtual PC for my test environment and curr...

How to share register and bit field definitions between a device driver and the FPGA it controls

Are there any good, existing software tools available to assist in generating C header files with appropriate #defines for register offsets as well as bit definitions from VHDL? If any such tools do exist, what restrictions to they place on the VHDL and how are things that should be exported designated? So far, I've found these tools b...

Iphone device token - NSData or NSString

Hi Guys, I am receiving iPhone device token in the form of NSData object. When I tested my notifications script function, I have only copied that object from log and the notifications went fine. However when I try now to automatically do it, I am sending the device token as ASCII encoded string in the form of variable self.deviceToken...

Good real-time programming books for beginner's questions

I find myself in a situation where I need to work on a embedded, real-time system at work without much prior knowledge. I've done a fair amount of research online, but found nothing satisfactory, so I'm now turning my attention to books. I've seen this StackOverflow page but I'm not sure if the books that it points to are what I'm looki...

programming touchpad of laptop

I want to write a program which can control my cursor movements depending on the the way I move my finger on the touchpad. I want my program to get the location where the user touched the touchpad, then I want to control mouse movement using my own program. I want do this in Java. Can I do this in Java? I would like to run it on Windo...

Virtual Webcam Driver

Hi I want to develop a virtual webcam driver which from User mode I'll pass image to it and it will display as webcam output. I don't want to use DirectX filter and CSourceStream etc. Because they don't work on some programs which doesn't use DirectX for capturing webcam image. I have to write a kernel mode device driver so. Any id...

Are there recommended tutorials for writing drivers for Gnu/Linux?

I'm getting to the point where, after a year or so, I'm more or less comfortable using Linux (Ubuntu, first 8.04, now 9.04) as my main OS (it helped that the competition was, primarily, Vista). I can't shake the feeling that I should learn more about the workings under the hood. I'm relatively inexperienced in programming (I can write s...

Smartcard Driver (KMDF with SCardLib) Issues

I'm developing Smartcard Driver using KMDF and SCardlib, I used the WDK Smarcard Sample as reference, I think I implemented all of the callbacks correctly except for CardPower and CardTracking. (My reader and card don't now support for now RESET commands and insertion of new card) When I try to run test application that invoke SCardLis...