device-driver

Is it possible to code a device driver in Java?

我的未来我决定 提交于 2019-11-27 18:34:19
Introduction I heard something about writing device drivers in Java (heard as in "with my ears", not from the internet) and was wondering... I always thought device drivers operated on an operating system level and thus must be written in the same language as the OS (thus mostly C I suppose) Questions Am I generally wrong with this assumption? (it seems so) How can a driver in an "alien" language be used in the OS? What are the requirements (from a programming language point of view) for a device driver anyway? Thanks for reading There are a couple of ways this can be done. First, code running

Virtual Webcam Driver

走远了吗. 提交于 2019-11-27 18:24:19
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 ideas? I tried testcap from DDK samples, but it doesn't process image from user mode and doesn't get any input, just it displays 7 colors in webcam... Any help would be greatly appreciated. Thanks Thank you all! I tried code from here: http://tmhare.mvps.org/downloads.htm

How can I get a list of all the active kernel drivers on my Android system?

牧云@^-^@ 提交于 2019-11-27 16:16:09
问题 How can I get a list of all the active kernel drivers on my Android system?. What is the equivelant of Linux "lsmod" in Android? I used adb shell and also opened my Android Terminal emulator app and did an "lsmod". I get some kind of a lame list of two items from my BSP. But it doesn't list all the drivers on my entire system that the Linux kernel has actively running. 回答1: Doing an 'ls /sys/module/' on my Samsung Galaxy S3 running 4.1.1 Jelly bean, I get the following output http://pastebin

Extending Functionality of Magic Mouse: Do I Need a kext?

余生长醉 提交于 2019-11-27 11:03:20
I recently purchased a Magic Mouse. It is fantastic and full of potential. Unfortunately, it is seriously hindered by the software support. I want to fix that. I have done quite a lot of research and these are my findings regarding the event chain thus far: The Magic Mouse sends full multitouch events to the system. Multitouch events are processed in the MultitouchSupport.framework (Carbon) The events are interpreted in the framework and sent up to the system as normal events When you scroll with one finger it sends actual scroll wheel events. When you swipe with two fingers it sends a swipe

Can't read from linux character device

ⅰ亾dé卋堺 提交于 2019-11-27 07:17:11
问题 I am implementing an SPI driver for an accelerometer. The SPI part is done but I can't read values from userspace. static char charDevMessage[CD_BUFFER_SIZE] = { 0 }; ... static ssize_t char_dev_read(struct file *filep, char *buffer, size_t len, loff_t *position) { int error_count = 0; struct xyz_values xyz; size_t size_requested; xyz = adxl345_get_xyz(); memset(charDevMessage, 0, CD_BUFFER_SIZE); sprintf(charDevMessage, "%d,%d,%d", xyz.x, xyz.y, xyz.z); printk(KERN_INFO "MOB: %s, requested

Is it possible to code a device driver in Java?

落花浮王杯 提交于 2019-11-26 19:26:00
问题 Introduction I heard something about writing device drivers in Java (heard as in "with my ears", not from the internet) and was wondering... I always thought device drivers operated on an operating system level and thus must be written in the same language as the OS (thus mostly C I suppose) Questions Am I generally wrong with this assumption? (it seems so) How can a driver in an "alien" language be used in the OS? What are the requirements (from a programming language point of view) for a

Virtual Webcam Driver

不羁岁月 提交于 2019-11-26 19:25:15
问题 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 ideas? I tried testcap from DDK samples, but it doesn't process image from user mode and doesn't get any input, just it displays 7 colors in webcam... Any help would be

Extending Functionality of Magic Mouse: Do I Need a kext?

空扰寡人 提交于 2019-11-26 17:58:56
问题 I recently purchased a Magic Mouse. It is fantastic and full of potential. Unfortunately, it is seriously hindered by the software support. I want to fix that. I have done quite a lot of research and these are my findings regarding the event chain thus far: The Magic Mouse sends full multitouch events to the system. Multitouch events are processed in the MultitouchSupport.framework (Carbon) The events are interpreted in the framework and sent up to the system as normal events When you scroll