usb

Why won't my program read from a usb interrupt endpoint

Hello. I am writing a libusb program to interact with a usb gamepad. I found it, opened it, detached from kernel, claimed interface, and when I try to usb_interrupt_read it returns -110 (resource temporarily unavailable) what is doing on? also, usb_set_configuration fails, so I commented it out. do I need it? Why isn't it reading? i = ...

On a PC, how to write program to give ON/OFF/ON/OFF, like bitstream to USB port, RS-232 port, or Parallel port?

Is there a way to write a program to output ON/OFF/ON/OFF sequence to one of USB, RS-232, or Parallel port? The On probably will be 5V or is "close circuit", and Off will be 0V or is "open circuit". Can the frequency be very high? This can be achieve long time ago by using TTL chips and a "clock", and programming in Microcode, which i...

Block USB, based on Volume/Capacity

Hello, I want to block a USB based on volume using C#. Like I want to block USB stick if capacity is greater than 8GB. Look there is a method to block USB on PC using registry. but this will make USB undetectable so I can not get volume information. I want to do that If my client program is running on some machine and I put restriction...

mouse becoming "corrupt"?

Hi, This is quite possibly a stupid question, but I want to know if it is possible for a standard USB optical mouse to become "defective" simply by connecting it to the USB port of a PC and using it for a while? Meaning it would stop working properly after a short while of being connected, and the problem would persist from then onwards...

2 modems & 2 GPRS connections simultaneously on Android?

Hi. I will develop on an Android device with 2 USB 3G modems plugged in. I require 2 GPRS connections to be available and used at the same time. How can I manage this? What is the best start for implementation? Thanks. ...

Access files on WM6 phone using USB connection

Windows XP shows my Windows Mobile 6 phone (HP iPAQ 514) as "Mobile Device" in "My computer". Using Windows explorer, I can copy files from/to the device and its storage card. Which possibilities are there to access these files programmatically? Any way to access them using normal filenames or special paths? Note that I'm searching for...

LPC1768 usb host

I have a LPC1768 microcontroler that I am trying to use to read a joystick. I am using the usblite sample code provided with the microcontroller to get a head start. It is meant for a flash drive but from what I have read the enumeration is the same no matter what the device is. However when I connect any hid device, it fails to write to...

Win32 API: ReadFile not timing out

I'm writing some code to interface with a piece of hardware. The hardware connects to the PC via a USB with a USB-to-Serial converter inside the device (it shows up as a COM port device in Windows). I'm having issues with the Win32 API ReadFile system call. I can't seem to get it to work as advertised. I've setup the COMMTIMEOUTS str...

Sniffing external(Ps3) Usb port?

Hi, I was interested in seeing how my PS3 synchronised with its sixaxis controller. Whenever you want to use a new controller on the PS3, you have to pair it with the ps3 via USB. So i thought i'd try some usb sniffing to find out what goes on during the process (in the hope i may be able to emulate it with other devices). The only thi...

Eject Memory card from Card Reader C#

I have a custom developed USB card reader. I am using the following code to interact and iterrate over the device: http://www.codeproject.com/KB/system/usbeject.aspx The code above provides an 'eject' method using the following line: Native.CM_Request_Device_Eject_NoUi(device.InstanceHandle, IntPtr.Zero, null, 0, 0); However this 'e...

Listening on USB port for data in iPhone App

I am wanting to send data over the usb on the iphone and have it captured by my application. This application will be private and not sold. I would also like to just use the standard usb cable that is standard. Is this possible? ...

Pic to PIc and PC USB how to?

Hello all, I want to make an application where PIC18F4550 send its internal eeprom data to the pc through usb. Also i want to use the same usb connector to download the data to another PIC18F4550 over usb. How to use ex_usb_serial.c of ccs examples codes for this purpose . If anyone can give me the schematic and what to do on PC side. ...

How to run Java USB API for Windows using Eclipse

I understand that there is no complete support for USB for Java in Windows. But jUSB provides a Java USB API for windows which does not provide support for the complete functionality though. I am trying to install the Java USB API and try it, and the steps provided say he following, jUSB DLL Copy the jusb.dll from the folder \Installa...

USB RF Receiver Mouse Hacking

How do wireless mice work, as in technically, the RF Receiver you plug in via USB (PnP)? I want to know how I would go about accessing the data section of the receiver and see either the actual code involved in sending information to the OS driver, or see the drivers involved to go about decompilation. ...

Scanning Local Windows System for Attached USB Devices Using C++

What is the best way to scan the local Windows system for attached USB devices using C++? I need to get a list of Vendor and Product IDs to match against the my device's IDs. If there is a way to scan for a specific VID/PID combination, that would be even better. My end goal is to retrieve the virtual COM port Windows has assigned to ...

How to disable "USB Over Current Notification" popups in the Finder in Mac OS X 10.6?

On an Intel iMac (Model MB324LL/A) (currently running 10.6.4), every few minutes (or seconds) I get a Finder popup window reading: Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled. In Console, the associated message: USB Notificaton: The device "EHCI Root Hu...

[Android] [Beginner] How to write a app to connect an Android device to a host USB GPS device

I have a standalone GPS enabled data recorder in my car that can function as either a USB host or device. (Its a class 0x00h USB device). I currently connect to it via a WM 6.5 app running on my Palm Treo 750. I would like to port my WM 6.5 app to an Android phone. (I don't have a specific Android phone in mind, I would like it to be...

MacOSX usb vendor device handling KEXT

I am working with a closed source SDK ( i dont have access to the source ) that talks to a USB device using the regular facilities in client land. What i'm writting is a launch daemon that holds onto a connection with that SDK for the whole time the OS is running. By doing this, it disables any other apps to connect to the device using t...