device-driver

Problems getting a device driver to load at startup - WM6.1

谁说我不能喝 提交于 2019-12-11 12:48:52
问题 Our embedded systems programmer has developed the shell of a virtual serial port driver for our mobile hardware, and I have been filling in the methods to get it to work. The driver does work as expected, it simulates a COM port for a USB device that is spewing out NMEA strings (GPS data). I type WM6 for short, but the OS is WM6.1 if it makes any difference. The problem I am having is that the driver does not load at start up of the device on WM6 only. The driver was developed for both CE5

Error using Windows Driver Kit DriverPackagePreinstall

与世无争的帅哥 提交于 2019-12-11 12:28:35
问题 I am trying to preinstall an .inf driver after my windows program loads and was using this question as an example. I am writing in VB.Net while the original question was done in C# so it might be something I lost in translation but here's what I have: Public Shared Function PreInstall(ByVal fileName As String, Optional ByVal useDefaultLocation As Boolean = True) As Boolean Try Dim file As String = IIf(useDefaultLocation, DriverLocation(fileName), fileName) Dim result As Int32 =

Error while installing Windows sample port monitor localmon

喜你入骨 提交于 2019-12-11 11:54:56
问题 I am trying to install windows sample port monitor(localmon) provided in WDK. But I keep getting error while installing it: An error occurred while installing port monitor 'DDK sample port monitor'. Please contact manufacturer for assistance. I am using following instructions to install it:- Open 'Devices and printers' folder. Right click on my targeted printer and choose 'printer properties'. Click the 'Ports' tab, and then click the 'Add Port...' button. On the Printer Ports dialog, click

change smp_affinity from linux device driver

爷,独闯天下 提交于 2019-12-11 09:31:34
问题 If I examine the cat /proc/interrupts command, all the IRQs are listed under cpu0 in SMP system. I can change the smp_affinity mask to tag the IRQ to particular CPU using following command. echo "4" > /proc/irq/230/smp_affinity Above command sets the affinity mask of the interrupt 230 to CPU 2. I would like achieve same from linux kernel module. How can I do this? I see create_proc_entry method which allows to create new proc entry. Is there any method which we can use to write existing proc

Why does DeviceIoControl fail with “Incorrect Function”

心已入冬 提交于 2019-12-11 05:39:43
问题 I am trying to communicate with my USB driver. I am able to get a handle, but once I use DeviceIoControl it fails, GetLastError() says error is an incorrect function. I am stumped on how to debug this. I am using XP 32bit machine. Handle = CREATEFILE( DevicePath1, GENERIC_READ | GENERIC_WRITE, FILE_SHARE_READ, NULL, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, NULL); if (INVALID_HANDLE_VALUE == Handle) { printf("INVALIDHANDLE USB\n"); return PHNFCSTVAL(CID_NFC_DAL, NFCSTATUS_INVALID_DEVICE); } else {

Are there any open source C Library (not c++) for Windows Driver Development? [closed]

半城伤御伤魂 提交于 2019-12-11 00:15:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . Are there any open source C Library (not c++) for Windows Driver Development ? I am developing a network device driver that need some functionality such as RegEx, string manipulation, Object Oriented by C and XML and so on... thanks. 回答1: Not aware of any real regular expression libraries. However, depending on

Determining the name of the HAL that is installed on Windows 7 SP1 32-bit

安稳与你 提交于 2019-12-10 20:24:19
问题 I am trying to install just checked HAL and kernel on Windows 7 SP 1 32-bit. The instruction on the Microsoft Dev Center web site MSDN suggests I do the following: Open the file %SystemRoot%\Inf\setupapi.dev.log and search for hal.dll. You should find a line like TargetFilename - 'hal.dll' In the same section of the log file, look for the corresponding SourceFilename. The name to the right of SourceFilename is the name of the HAL file that you need to copy from the checked build. setupapi.dev

No driver for Asus MeMO Pad to do application debug using eclipse

十年热恋 提交于 2019-12-10 19:28:10
问题 I have the same problem like in the following SO post- I got a new Asus Memo Pad for debugging my android application in eclipse while running the application in the Asus Memo Pad. But when I go to devise chooser in eclipse, I does not find my devise in the list. I know this is because I am not having the appropriate usb driver installed for my Asus Memo Pad but I didn't found its driver in the asus site and also after googling a lot. Any suggestions? 回答1: It worked by installing PdaNet

How to get RGB pixel values from Linux framebuffer?

谁说胖子不能爱 提交于 2019-12-10 18:57:57
问题 I want to get RGB values of screen pixels in the most efficient way, using Linux. So I decided to use the framebuffer library in C ( fb.h ) to access the framebuffer device ( /dev/fb0 ) and read from it directly. This is the code: #include <stdint.h> #include <linux/fb.h> #include <fcntl.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <sys/ioctl.h> #include <sys/mman.h> int main() { int fb_fd; struct fb_fix_screeninfo finfo; struct fb_var_screeninfo vinfo; uint8_t *fb_p

Raw access to HID devices in OS X

浪尽此生 提交于 2019-12-10 12:41:37
问题 What is the simplest way to get raw access to HID devices on OS X? I've been looking through the IOKit examples, but even opening a device seems needlessly complex, involving multiple callbacks and include things from half a dozen libraries. libusb is available for OS X, but the kernel grabs all HID devices for exclusive access, and I have been getting strange behavior while trying to use a codeless .kext to block it from associating with my device (it prevents the kernel from grabbing the