usb

Putting a compiled boot sector onto an USB Stick

Hey I'm actually interested in how an OS works, from the POST over the Boot process to the Kernel, GUI, etc. Well I have to start at the beginning: The bootsector Most tutorials only specify how to get your .bin bootstrapper onto an USB stick for Linux users. But as I'm using XP I would like to ask how do I get my 512 byte .bin onto ...

arm7 usb programming

we are developing a sendor device, with a arm7(current: LPC2368) . this device samples a mv signal,A/D, and need to send this signal data to the PC.(continusly) at the same time, PC need send command to arm7 (like get temperature, control status, etc..) rs232 is too slow, so we choose USB.(20K/s - 200K/s) but the question is, we donn...

Communicating with USB device

I am working on building a USB Video Class camera, which is supposed to work well with various flavours of Windows. The camera needs firmware upgrade support to upload new software images into it. There are two ways to do it, as far as I know. Use DFU. Use control endpoint of the UVC Class device to transfer bytes into the device. T...

USB on Mac (how to use digital to analog converter on mac with cocoa)

Hi I have to play an audio file on digital to analog converter (Silverstone digital to analog converter Model number DB01S) on Mac ox x 10.6 with cocoa. I used USBSimpleExample from apple but i am always getting this error "dealWithInterface: unable to open interface. ret = e00002c5" Any help would be appreciated! Thanks ...

How to emulate USB devices?

The rest of my team will make for my application a simple non-standard USB microphone, but until they finish it I will have to emulate it, for integration testing purposes. Is there any risk in a physical loopback? Yes there is Will a physical loopback work? Only with an USB bridge There is any way to create a logical loopback? (MSDN h...

Linux USB Mapping Question

Hi, I'm working on a utility that will auto mount an inserted USB stick on linux. I have tied into D-Bus to receive notification of when a device is inserted, and that works great. However, I need to determine which device in /dev is mapped to the inserted USB stick. I am getting the D-Bus notification and then scanning the USB system w...

Programatically getting USB power draw of a device?

In Windows, it is possible to view a Power tab for a USB hub in Device Manager that lists information such as whether the hub is self-powered and the total power available. Is this information available programatically, either in Windows (perhaps WMI?) or Linux? I've looked in MSDN with little success so far. ...

Control USB port's power?

Does anybody know how to control USB pins on a certain USB port? I think it is definately possible in assembler but what about C++ or C#? I want to be able to use USB battery as a power supply for an LED or something like that. So then a program would power it on and power it off making it flash. I know it sounds pointless but I nee...

cross platform usb module for python?

I was interested in doing some cross platform work with a usb device in python, any tips or recommendations on modules that can do this type of thing? I've looked around SF and googlecode without a lot of luck. thanks! ct ...

USB Scanner with Flex / Java applet?

Is there a way to get an image from a usb scanner (on Windows primarily, cross-platform solution would be best) and post the image together to a form in browser with Flex or Java applet? thx! ...

USB Port Speed Linux

How to determine the usb port speed in embedded devices running the linux kernel? ...

how to use usb speaker and built in audio speakers simultaneously on MAC OS X 10.6 using cocoa or anyting else?

Hi I asked this previously but Jeff Atwood moved my question to superuser.com. I need a answer programatically... I want to use built in speakers and usb speakers simultaneously on MAC OS X 10.6. I want to play different files on these (I do not want to play same file on both speakers). Is it possible using cocoa (QTMovie or somethin...

Using RegisterDeviceNotification in a .NET app

I have seen some examples on how to use RegisterDeviceNotification from the Windows API, but I have not seen any .NET examples. I want to write a C# app that is notified when a new drive appears (specifically through USB, firewire, etc). This app needs to be a Windows service, so I can't use WM_DEVICECHANGE messages without some bad-prac...

List machine's serial ports [Qt4]

I have an arduino-based device which connects through USB. I'd like to detect it from my Qt4 application, using QExtSerialPort (or whatever necessary), when it's plugged in. If this weren't possible, I thought I could somehow get a list of the system's port names and just try all of them in search for my arduino (where I'd implement s...

Change Message on Sony Reader to “Do not disconnect”

When I connect a Sony Reader to an USB port “USB connected” is shown on the Reader. When the Sony “Reader Library” software is started this message changes to “Do not disconnect”. I want to implement this in a software tool to. There seems to be no file locked. Perhaps it is done via ebookUsb.dll. Does anybody know how this is done from ...

How to record a serial number in an executable?

Hello, I am trying to secure an application to only run from a specific USB disk. I have code to get the serial number from the device, but the only way I can make this work the way I want to is to manually code the serial number into the binary. Is there a way I could make a stub application that would modify the existing binary to ins...

USB software loopback device on Linux

I have a need to write an client-server application where a tiny server rests on a USB gadget and communicates with a client application on the host. I've not done this sort of thing before but I have done webapps and usually, they're all developed and debugged on the local machine using the lo loopback network interface. This has perh...

Partition a USB stick programmatically under Linux

After deleting the partitions from a USB stick and then re-inserting the disk I see the following from dmesg: [99341.658055] sd 4:0:0:0: [sdb] 15771720 512-byte logical blocks: (8.07 GB/7.52 GiB) [99341.658670] sd 4:0:0:0: [sdb] Write Protect is off [99341.658678] sd 4:0:0:0: [sdb] Mode Sense: 00 00 00 00 [99341.658684] sd 4:0:0:0: [sdb...

HID input report queues on C8051F320

Hi, it seems that as soon as data is ready for the host (such as when I use WriteFile to send a command to the HID in which I tell the HID to give back some data such as the port value) and the in packet ready bit is set, the host reads it (as confirmed by another USB interrupt) before ReadFile ever is called. ReadFile is later used to p...

how to get Device id, vendor id and product id of a mounted usb device in Mac OS cocoa

Hi I am trying to write a Cocoa program which detects iPods connected to Mac OS. I am listening to NSWorkspaceDidMountNotification and NSWorkspaceDidUnmountNotification for the USB device mount and unmount notifications. I can get the device path of the mounted device using NSString *path = [[notif userInfo] objectForKey:@"NSDevicePath"...