device-driver

Install ADB interface driver for android

不想你离开。 提交于 2019-12-30 05:30:16
问题 I tried to install through Device Manager. After I connected the phone to my laptop, i got link as 'Celkon incorporated GSM handset' in 'Other devices' portion of Device manager. I right clicked and clicked 'uddate driver' and 'install from specified location' and located the 'inf' file (usb2ser_2kXP.inf), but the messsage is ' cannot install this hardware, and 'the wizard cannot find the necessary software'.. So, how i have to edit the 'inf' file ? 回答1: Right click on mycomputer-->then go to

From where platform device gets it name

扶醉桌前 提交于 2019-12-30 05:02:06
问题 I am reading about the Linux Device model which is built around buses,devices and drivers .I am able to understand a bit about how devices and driver matches happen but not clear about the role of buses here,how buses matches with device. One more doubt I have regarding where platform device gets it name from. "The platform bus,simply compares the name of each device against the name of each driver; if they are the same, the device matches the driver." Now I could n't really understand above

dpinst / DifX won't install signed driver silently

我们两清 提交于 2019-12-30 03:24:04
问题 When installing a signed driver (i.e. with a properly signed .CAB) on Windows 7 through DpInst, unless it's a WHQL-signed driver, you cannot install it silently. If you run DpInst in the non-silent mode, it'll prompt you to trust the "publisher". If you run DpInst in silent mode, it would fail with a signing-related error code (something like 0x800b0109 -- check your setupapi.app.log). 回答1: While ilya's answer is good, the solution on Windows 7 is even easier. The command below deploys the

Getting device/driver information related to a COM port?

£可爱£侵袭症+ 提交于 2019-12-28 13:51:14
问题 I have a Serial-to-USB device with a similarly named device driver in the Windows device manager. The devices do not always grab the same COM port on system boot, so my program needs to identify it on start up. I've tried using RXTX to enumerate the COM ports on the system, but this didn't work because CommPortIdentifier.getName() simply returns the COM name (eg. COM1, COM2, etc.) I need to acquire either the driver manufacturer name, or the driver name as it appears in the device manager,

Getting device/driver information related to a COM port?

こ雲淡風輕ζ 提交于 2019-12-28 13:51:02
问题 I have a Serial-to-USB device with a similarly named device driver in the Windows device manager. The devices do not always grab the same COM port on system boot, so my program needs to identify it on start up. I've tried using RXTX to enumerate the COM ports on the system, but this didn't work because CommPortIdentifier.getName() simply returns the COM name (eg. COM1, COM2, etc.) I need to acquire either the driver manufacturer name, or the driver name as it appears in the device manager,

Determining if a device is a touchscreen device in linux

こ雲淡風輕ζ 提交于 2019-12-25 03:13:36
问题 I am trying to determine what /dev/input/eventX device is the touchScreen. I am currently looking at the return of EVIOCGNAME to get device name. Looking at the return values of the EVIOCGBIT ioctl I don't think there is a generic way to determine what is the touchscreen. I am interested in any sort of solution to this problem. Thanks in advance for your time!!! 回答1: Take a look at: /dev/input/by-path/ /dev/input/by-id/ /sys/class/input/event?/device/ These might have enough info for your

How to read data from usb device on Android?

喜你入骨 提交于 2019-12-24 21:25:28
问题 I have a device which I need to connect via usb to my android phone. I simply want to read some data this device is sending and present it on my app screen. I've tried some API's such https://github.com/felHR85/UsbSerial and https://github.com/mik3y/usb-serial-for-android where I found the code below public class MainActivity extends AppCompatActivity { private TextView data; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R

HIDManager Wierd CFRunLoop Termination

天大地大妈咪最大 提交于 2019-12-24 16:30:32
问题 I've created device matching and device removal callbacks, And need to run CFRunLoop to get those callbacks invoked whenever device plugged in and removed. But the problem is, DeviceMatching callback takes a lot of processing time and depends on device to be attached, So I want to detect if device is removed by running the CFRunLoop for a limited time, and With that the device removal callback happens. But, It works for 2 times and then it throws exe_bad_access. IOHIDManagerSetDeviceMatching(

Why the number of minor devices are not listed here in this program in /dev?

大兔子大兔子 提交于 2019-12-24 16:25:26
问题 I want to create the number of minor character drivers for my module. I want to see it at the /dev/ . However, I see only one driver. What is the problem in my code? What should be the right code? #include <linux/init.h> #include <linux/module.h> /** needed by all modules **/ #include <linux/kernel.h> /** This is for KERN_ALERT **/ #include <linux/fs.h> /** for file operations **/ #include <linux/cdev.h> /** character device **/ #include <linux/device.h> /** for sys device registration in

disable online driver search on windows 7 programatically

和自甴很熟 提交于 2019-12-24 10:13:42
问题 I am working on a program that requires to install a driver for Plug and Play. My issue is that the first time the device plugs into, by default, windows 7 32-bit automatically search online for drivers that better match to device. As i observe, it takes too long (15m) to correctly install the driver. How can i turn off the automatic search on windows 7? Thank you for any useful information. 回答1: Apparently you do this through GPO, as described here: http://www.verboon.info/index.php/2010/12