usb

Check if drive is writable windows API function

Hello is there any windows API function that would return if drive is writable. Sometimes drive is visible under drives but when trying to programaticly write to it, it gives you a msg box error wich freezes the application until user presses the ok button. Is there any built in function that would check if drive is writable without the...

Accessing a USB device through Windows application

I want to access a mobile phone connected through a USB port through a simple Windows Application. Is there any tutorial such as http://www.robbayer.com/files/serial-win.pdf (for serial port) which can help me understand the basics of USB port programming in C/C++ ? ...

How do I read input from a USB HID device?

I'm making an application to run in the background on a salespoint to read input from a usb scanner. How can I get the input of the scanner from C#? And can I differentiate between the scanner and a usb keyboard? (Scanner is a HID device) ...

How to set a usb camera as a source to wpf MediaElemt in VS2010 in c#?

Hi, I have a Windows WPF application and I want to stream a video from my usb camera using MediaElement control. Is it possible to set usb camera as source to MediaElement? I'm using VS2010 framework 4.0 and c# language. ...

Controlling Old Nokia phone via PC

Hi all, I need to develop a PC program (C++ / C# ) in order to control basic actions (Calls and SMS) on an old Nokia phone (a one with black and white screen) Do anyone knows where to find a library or a SDK for that purpose? Edit: Probably you can not download a program on that old phone.. The connection between the phone and PC will...

What USB class fits multi functional Bluetooth dongle?

Hi, I've seen a lot of programming unrelated questions on Bluetooth topic here, I hope I wont be another one :) Basically, I'm developing USB/BT dongle with following features: ability to receive digital audio stream via BT from A2DP source ability to receive commands like volume up, down, mute from A2DP source ability to send comman...

Preventing .net serialport crashing on FTDI USB device disconnect

I have an application which is supposed to communicate with multiple custom devices, some of which use FTDI USB-to-serial converter chips, and some of which use TCP. The application needs to be able to accept data at any time, from devices which may be plugged or unplugged at any time; the application serves as a bridge between devices ...

How to watch/change windows buffer size for rs232(com)?

I'm using usb for communication, our device send 100k/s data(arm7, very small memory size), and PC need receive and process them all. my previous design is make device as a mess storage device, and extend a command for communication protocol, the PC software run a thread looping get data. issue is: sometime it loses data. so we use an...

Simulating a keyboard's output (making a computer pose as another computer's keyboard)

Hi I want to be able to connect a computer A's USB port to computer B's USB port so as to make computer A act as computer B's keyboard. Any idea how I would go about doing that? I'm not looking for a ready-made solution (though if one already exists and is open-sources I would not object), but for a starting point or a good resource....

Sockets (or Other Communication) Over USB with iOS Device

I am having trouble with my Google Ki today and I can't seem to find anything about this. How can I use TCP sockets -- or any other relevant way to send bytes -- to talk between an iOS device and a host via USB instead of Wifi? ...

Delphi - How to get list of USB removable hard drives and memory sticks?

In my application (Delphi), I need to list all the USB storage devices. These can be either flash memory sticks or external storage drives. There is a Jvcl component JvDriveCombo, and it has the DriveType property - the problem is if I select 'DriveType := Fixed' then in addition to the external drive, it also lists the internal drives...

Tool for Scanning for Attached USB Devices in Windows

Can anyone recommend a (preferably free) tool for scanning for attached USB devices in a Windows environment? This is for development purposes only. I have a USB peripheral that I know works when it is attached to my system, but I'm having trouble finding it in the Device Manager. I would like to be able to scan for it specifically be...

Sending Printer Commands via USB in C#

Hi All, I have a ticket printer I am trying to send raw print commands to, I am currently sending the commands by pinvoke to winspool.drv and calling WritePrinter. This is working for most of the commands I am sending, but I cannot get feedback from the printer this way (for example, the printer has a barcode reader on it, I can send ...

flash drive imaging

I would like to write an application that will create an 'image' of a flash drive. This includes the total topography of the drive, not just the files. So if the drive is 4GB you get a 4GB file. Is this possible, and if so, could someone point me in the direction of information on how this may be accomplished? ...

How to open and write/read to a USB CDC "serial" device on Windows, Linux, OS X?

I've got an Atmel AVR A90USBxxxx device that I have configured to "talk USB" via CDC. It's designed to take input from a Host computer, running Windows, Linux, or OS X. I'm under the impression that Linux and OS X will immediately recognize this CDC device, and with a simple .inf a Windows machine can be told my VID/PID should be opene...

Reading USB input stream on linux

Hello, I'm currently working on an embedded linux machine. Im trying to read a USB devices input stream but for some reason I dont have any such thing in my /dev directory. I would assume it would be something like /dev/ttyUSB01 or /dev/input/usb or something similar but it's not there. dmesg returns the following [ 195.863911] input: G...

Why does PyUSB / libusb require root (sudo) permissions on Linux?

I have been toying around with PyUSB lately, and found that it works beautifully on Linux (Ubuntu has libusb 0.1 and 1.0, as well as OpenUSB)... but only if I run the program with root privileges (with sudo, of course). Can anyone tell me why it requires elevated privileges and, more importantly, if I can change the permissions somehow ...

When do USB Hosts require a zero-length IN packet at the end of a Control Read Transfer?

I am writing code for a USB device. Suppose the USB host starts a control read transfer to read some data from the device, and the amount of data requested (wLength in the Setup Packet) is a multiple of the Endpoint 0 max packet size. Then after the host has received all the data (in the form of several IN transactions with maximum-siz...

How to get USB devices List from Browser

What browser-based technology would allow me to query the client's currently connected USB devices - specifically name and device id of these. Of course, I'm ok with the client having to allow and confirm such an activity. I don't care if at low-level, it uses WMI, direct access or some other sort of access layer, all I want is to be a...

iPod/iPhone USB Product IDs

Is there a list somewhere of all iProduct USB prodcut ids? I use the IOKit to get notifications for attached/detached USB devices and would like to identify the device. Currently i get the device name and search for "iPod" and "iPhone" but i guess that's not really safe since it could also be an accessory (or could it?). Regards, Erik ...