usb

Connect and DisConnect usb devices programmatically .

hi , I need to connect and disconnect the usb devices such as flash drive, etc. in programmatical manner,with out un-plug and re-plug the device. Is there any way to do in .net,c# window application.??? Thanks in advace ...

SWT: Getting notified of a system device change (USB device connection / disconnection)

I'm writing an SWT application which needs to sit in the system tray and pop up automatically whenever the user connects some USB device (the application serves as its control panel). The way to do this in the native environment (win32 in this case, but I should be platform-independent ultimately) is to listen to the WM_DEVICECHANGE eve...

How might I receive notifications when a USB device is connected?

I'm writing a program to monitor a specific device. This device may or may not always be connected, and when connected may be connected to any one of several different ports; I'd like my program to handle this gracefully. Is there a way to receive notifications when a specific USB device is connected, and from there to determine which p...

Writing USB Drive Portable Applications in C#

One of my favorite things about owning a USB flash storage device is hauling around a bunch of useful tools with me. I'd like to write some tools, and make them work well in this kind of environment. I know C# best, and I'm productive in it, so I could get a windows forms application up in no time that way. But what considerations sho...

USB and iPhone. In an iPhone app, USB is not connected to a computer?

I have this scenario where I have Windows Mobile smartphones that talk in low level to the USB port of a device that is not a computer. I now have to do this from an iPhone. Is that possible? ...

Problem when read and write to USB using libhid

Hello Everyone, I want to write and read a response from USB HID device in Linux using user space library. Googling for a while, I found that libhid will be a solution for the problem. So, when I use "hid_interrupt_write" and "hid_interrupt_read" to send and receive data, this error occured: error submitting URB: No such file or dire...

How to know when a new USB storage device is connected in Qt?

I want to know when a USB device is connected to the computer that my Qt application is running on (in Windows). In my main QWidget, I've reimplemented winEventFilter like this: bool winEventFilter ( MSG * msg, long * result ) { qDebug() << msg; return false; } I'd expect qDebug to send at least something when I connect a USB ...

Windows volume device detect failed until reboot. Never failed before.

I have code to detect the connection of USB Flash Drives as volumes. The code has been working very well for awhile, but recently a fellow engineer's machine started to fail and didn't work right again until it was restarted. The project uses Qt 4.5.0, but that shouldn't be very relevant to this question. I register for the notificati...

Java USB library

Is there a good Java USB API i can use? I tried JUSB but it doesn't seem to work. It's also very old, no updates since 2001. ...

getting a string from a []byte in C#

I have a bit of a weird problem. I have a form with a Label in it for outputting text at certain points in the program instead of console output. Given the following code: result = SetupDiGetDeviceRegistryProperty(deviceInfoSet, ref tBuff, (uint)SPDRP.DEVICEDESC, ...

Redirect barcode scanner input to specific widget in linux

Hi: I have a Symbol LS2208 barcode scanner and works OK in my linux box (Kubuntu 8.10 Intrepid Ibex). Whenever you scan a barcode the scanner (connected to an USB port) sends the reading to wherever the text caret is. I would like to redirect all the readings from the scanner to an specific widget in my application (i.e. a text edit con...

how to connect and disconnect usb programmaticaly

hi, i need to connect and disconnect usb progrmmatically , that is i have inserted the usb device i need to transfer the file using C#,.net application ,the application will watch the particular folder and transfer the file from that folder to usb drive. i need to disconnect the usb after the file is transfered and connect the usb wh...

asp.net web page to device connect to server's usb (COM) port

Hello All, I am working on a way to send commands to an Arduino board from a web site. The Arduino board is connected to the computer via a USB port (a COM port) I have managed to connect and control the board using a VB.net program. I also wrote a vb.net class that can instantiate a COM connection and send and receive messages. My ne...

Does the WMI event Win32_VolumeChangeEvent work on Windows XP

I'm trying to use the following c# code to detect the attached/removed event of usb mass storage devices. I'm using the Win32_VolumeChangeEvent. // Initialize an event watcher and subscribe to events that match this query var _watcher = new ManagementEventWatcher("select * from Win32_VolumeChangeEvent"); _watcher.EventArr...

Sending a Generic/Text directly on an Epson Matrix Printer through a USB using Java

Is there a way of sending directly an "ESC" coded string to an Epson Matrix Printer connected on a USB using Java. I've tried this one using the LPT1 port successfully. However, majority of our clients are now using USB cables instead of the old parellel cables. The main problem I have is how to open the particulary USB where the printer...

Whats the most popular Linux distro for a USB flash drive?

I want to put Linux on a USB flash drive in order to run some extension to Pure Data that aren't support for Windows. Is there a particular distro that everyone is using for Linux on a flash drive? ...

connect and disconnect usb programmaticaly "WITHOUT UNPLUG AND REPLUG"

hi, i need to connect and disconnect usb progrmmatically , that is i have inserted the usb device i need to transfer the file using C#,.net application ,the application will watch the particular folder and transfer the file from that folder to usb drive. i need to disconnect the usb after the file is transfered and connect the usb when n...

How can I cycle a USB device from C#?

I'd like to cycle (simulate unplug and re-inserting) a USB device (modem) after a certain event has fired. I found a sample on codeproject: http://www.codeproject.com/KB/system/usbeject.aspx That allows me to identify+eject the device via its non-volatile serial, but I need it to recycle, not just eject. I have read this: http...

USB Hierarchy Driver

Is it possible to create a driver (windows/mac) for a custom usb hub such that it appears as one device in My Computer / Finder and the attached usb card readers each show up as a sub-folder within that device? Any pointers to the right direction to look at would be appreciated. ...

C/C++ USB drive event

Regarding the Windows platform, is their an event I can look for to tell when a USB drive or any type of portable media us plugged in? ...