usb

Managing Consistant Mounting of External USB Hard Drives in Linux (Centos 5)

I have configured a server with Centos 5.2, and am now working out a backup strategy. I plan on using Amanda as the backup application. Additionally, I am leaning towards using some USB hard drives for backup storage. I will be swapping out one of the Hard Drives each week for an offsite back-up. Does anyone know whether it is possibl...

Find out which process has an exclusive lock on a USB device handle

I have a library that reads/writes to a USB-device using CreateFile() API. The device happens to implement the HID-device profile, such that it's compatible with Microsoft's HID class driver. Some other application installed on the system is opening the device in read/write mode with no share mode. Which prevents my library (and anythin...

How should I configure grub for booting linux kernel from a USB hard drive?

I have a laptop hard drive in an external enclosure which I use as a large pendrive. For an added twist, I have installed Linux on it, so I can boot any machine with my distribution of choice (e.g. for data recovery or repairing a b0rked system or just using a borrowed laptop without destroying the preinstalled Windows). The problem is t...

Windows XP support for Remote NDIS

I'm looking at developing a device which will need to support Ethernet over USB (hosted in Linux, XP, and Vista). As I understand it, Vista and Linux support the industry standard USB CDC. However, in classic Windows style, XP only supports it's own Remote NDIS. So, now I'm thinking of just bowing down and doing it over RNDIS, as opposed...

Can USB devices directly access hardware?

Here's why I'm wondering. I recently bought an external TV tuner for my laptop, which has a feature that when it's being jostled, the hard drive stops spinning. However, even when I move my laptop, the video from the TV tuner (which handles all of the video processing, according to the book on it) doesn't stutter. I'm wondering if this T...

Working with USB devices in .NET

Using .Net (C#), how can you work with USB devices? How can you detect USB events (connections/disconnections) and how do you communicate with devices (read/write). Is there a native .Net solution to do this? ...

How do I figure out which /dev is a USB device?

I want to mount a USB drive, two of them and I need two different mount points. Unfortunately, the Linux kernel underwent a name change and I can't figure out which /dev location is the right one. Is there a way to look through dmesg or /proc or somewhere else to find out which device node is a USB drive. (I'm using ArchLinux if that he...

Access USB with Java, in order to find thumbdrive manufacturer's serial#/unique-ID

Looking for a way to read the unique ID / serial# of a USB thumb drive; please note that - I am looking for the value that the manufacturer's value, not the one Windows allocates for it - need to support multiple OSs (Windows, Unix, Mac), thus needs to be a Java solution the idea is to be able to distinguish between different USB thumb ...

Safe remove USB-Drive using Win32 API?

Anyone knows how to remove a USB drive using the win32 API? I do a lot of work on embedded systems and on one of these I have to copy my programs on a usb-stick an insert it into the target hardware. Since I mostly work on the console I don't like to use the mouse and click on the small task-bar icon hundret times a day. I'd love to w...

Approve USB device after insertion

On Windows, is there any way to programatically approve a USB device after insertion, if it is of a certain type (say Removable Drive) allow its use, otherwise not? Also not to allow running of drivers, only allow usage of the device in an approved way? I.E. We want to allow the insertion of USB drives, but not have to worry about viru...

Using a USB controller as auxiliary keyboard for Visual Studio

Our family no longer uses our Mixman DM2 USB controller for making music. This frees it up for me to use as an auxiliary keyboard with 31 "keys" (and a few "sliders"). I had the crazy idea to use these buttons to send keyboard shortcuts to Visual Studio. It just seems easier pressing one key than some of the finger-bending ctrl double...

How to sniff usb port under Windows?

From time to time I need to dump usb traffic under windows, mostly to support hardware under Linux, so my primary goal is to produce dump files for protocol analysis. For USB traffic, it seems that SniffUsb is the clear winner... It works under XP and has much nicer GUI than earlier versions. It produce huge dump files, but everything i...

how to find usb drive letter?

I'm writing a setup program to install an application to USB drive. the application is meant to be used only from USB drives, so it would save an extra step for the user by automatically selecting USB drive to install to. I might explore using Nullsoft or MSI for install, but since I'm familiar with .NET the most I initially plan to try...

how to determine USB Flash drive manufacturer?

I need my program to work only with certain USB Flash drives (from a single manufacturer) and ignore all other USB Flash drives (from any other manufacturers). is it possible to check that specific USB card is inserted on windows using .NET 2.0? how? if I find it through WMI, can I somehow determine which drive letter the USB drive is ...

How to programatically unplug & replug an arbitrary USB device?

I'm trying to fix a non-responsive USB device that's masquerading as a virtual com port. Manual replugging works, but there may be up to 12 of these units. Is there an API command to do the programatic equivalent of the unplug/replug cycle? ...

How do I program a driver for a USB device for windows platform?

I am looking for a device that reads wiring voltages via a USB interface and returns the data. How would I go about programming something to interpret this data and what language would I use? edit: If it helps, this project is to develop a digital tachometre for older engines that don't support a comprehensive ODB2 data port. Therefore,...

How to Execute an application in XP when a particular type of USB device is attached

In Windows XP what is the best way to execute a particular application when a particular type of USB device is attached (it currently attaches as a storage device - i.e. it appears as a drive). The solution I am looking for must execute the application from the very first time the device is attached or offer the application as a selecti...

How can I do bi-directional communication with a custom USB device?

I'm planning to build a USB device that has buttons that some software needs to respond to, and indicators that the software needs to control. I'm new to USB, so I'm looking for any pointers that will get me started. ...

USB Driver Development on a Mac using Python

I would like to write a driver to talk to my Suunto t3 watch in Python on a Mac. My day job is doing basic web work in C# so my familiarity with Python and developing on a Mac is limited. Can you suggest how one would start doing driver development in general and then more specifically on a Mac. I.e. how to easily see what data is being...

Problem reading from a device with libusb

The situation is this: I have a USB device (a custom device I'm trying to talk to) with two endpoints, one writing to the device, one reading from the device. Both are bulk transfers. Every communication transaction takes the form of (1) Write a command to the device (2) Read the response. I'm using libusb (version 0.1 rather than the 1....