Detecting USB Device insertion/​removal

Hi All,
With reference the an earlier post by softengr (here), I'm trying to detect the USB devices while being connected.
I'm trying to compile the same code posted by softengr, but getting some compilation error even after adding windows.h.
I think I'm missing some header file here.
The following are the errors during compilation;
  Undeclared identifier 'DEV_BROADCAST_DEVICEINTERFACE'.
  Undeclared identifier 'NotificationFilter'.
  Undeclared identifier 'GUID_DEVINTERFACE_USB_DEVICE'.
  Undeclared identifier 'GUID_CLASS_USB_DEVICE'.
I'm using LabWindows/CVI 2012 with Windows7 64bit.
Can anybody suggest waht am i doing wrong here.
Thankyou,
Dosth

A search of the NI forums for "USB Event notification" returned an entry that may help you:
Windows device event notification
Message Edited by Phillip Brooks on 12-01-2008 06:49 AM
Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.
"You are what you don't automate"
Inplaceness is synonymous with insidiousness

Similar Messages

  • Program to automatically detect usb device

    Dear labview users,
                                       I wanna build a program such that when a USB device (pen drive/ memory stick) is connected to a PC, it has to detect the device and prompt the user to provide a password and then only the user gets the accessbility to open the memory stick.  This is mainly for security purpose of the PC, such that in no condition without the programmer's knowledge no one should transport the data from the PC.
                                       To add more to the program, this labview program should be run in the background in all the time in the sense that even the labview program is triggered by the user or not, it has to run all the time in background without anybody's intervention. when a memory stick is connected it has to prompt the password.
                                        Is this possible in labview, Iam using labview 8.0. If anybody gets solution to this young chap's idea please response to this query.
    Labview lovers.....

    Hi Shivkumar,
    Would it be acceptable for the entire PC to be in a way "locked down" untill a password is entered once a pen drive is detected? Or would you simply want the password dialog to pop-up when they try to double click on the actual drive under "My Computer" to access the data? Also, if the password is not entered but the pen drive is remove, should the password dialog box disappear?
    Best regards,
    Steven

  • How to detect USB device drives

    Hi
    I want to write a program which will detect the drive letter when a usb device is plugged in. i.e., if a usb device is plugged in and the drive letter is "F:", then my program will instantly detect the presense of the device as well as get the drive letter. How's that possible in Java?
    Thanx in advance
    Regards
    Mathew

    cotton.m wrote:
    Well if you're looking for the newUSBDriveListener API you're out of luck.
    There is no way to do what you are looking for in a number of ways.
    1) If something is listed as a drive the best you can now (from FileSystemView) is that it's a drive.
    2) There isn't "new drive/or device added" event API.
    So what you would have to do is when your program starts get the list of roots. Then poll at some intervals to get the list of roots and see if there are changes. If new drives show up then they show up.I agree!!!

  • New wdtv, 1.02.17, cannot detect usb-device

    Have had wdtv for years. Small to no problems. Use only external harddrive, no streaming at all. Bought a new wdtv for daughter the other day. First thing noticed is new GUI (the old one was better). But ok. The other thing is that the wd my book or the wd my passport is not detected. Waited for several minutes, in case the new wdtv was slow. Nothing happened. Tried the old one (same chassis but onother gui), 1.12.14. Both usb-devices detected at once.  Is it something I am missing? I have used wdtv for years, since 1. generation, only for usb-connection. Have had almost no problems (use apple-tv for streaming  Thanks

    tinuadmin wrote:
    The other thing is that the wd my book or the wd my passport is not detectedso, are you saying the hard drives led lights don't even come on when you plug the drive in ? a bit strange ... my wdtv (1.02.17) sees all my wd hdd's (My Book, Elements and Passport) all are NTFS things you can try ... do a factory reset (yes, even if it's brand new out-of-the-box)Setup > System > Device Reset > Reset All Settings Back to Factory Default content source button ?  press the red button on the remote and select "Local Storage"  if none of that works ... keep your purchase receipt handy in case you bought a dud

  • Problem with detecting USB devices.. something abt ehci-hcd??

    Hi All,
    I have a DELL E6410 laptop. I have a problem with connecting USB devices.
    Whenever a power event (such as connecting/disconnecting of AC adaptor) happens, my laptop stops detecting any USB devices and any changes that happen on the USB ports. That is, say an external mouse is connected to the laptop, the mouse stops functioning, and if I connect a mouse/USB_stick or any such thing to the computer, the device is not detected.
    dmesg output show that any connecting/disconnecting events are not detected by the computer. lsusb output too shows the same thing.
    To solve the problem, I need to rmmod the module ehci-hcd and modprobe it back. That is, I have to run the commands rmmod ehci-hcd followed by modprobe ehci-hcd. Then, this problem goes away until the next power event happens.
    This event does not happen all the time, but it happens very regularly.
    Here are the kernel and laptop specs..
    uname -a
    Linux myhost 3.0-ARCH #1 SMP PREEMPT Tue Aug 30 08:53:25 CEST 2011 x86_64 Intel(R) Core(TM) i5 CPU M 520 @ 2.40GHz GenuineIntel GNU/Linux
    Kindly help me on this issue.
    Thanks

    This is the output of kernel.log when I unplug my AC adaptor with the external USB mouse connected.
    Sep 12 11:18:33 localh ost kernel: [ 591.015557] EXT4-fs (sda6): re-mounted. Opts: commit=600
    Sep 12 11:18:37 localhost kernel: [ 595.478866] ehci_hcd 0000:00:1a.0: PCI INT A disabled
    Sep 12 11:18:37 localhost kernel: [ 595.478919] ehci_hcd 0000:00:1a.0: PME# enabled
    Sep 12 11:18:37 localhost kernel: [ 595.498827] ehci_hcd 0000:00:1d.0: PCI INT A disabled
    Sep 12 11:18:37 localhost kernel: [ 595.498877] ehci_hcd 0000:00:1d.0: PME# enabled
    After this the the mouse goes dead (the light on the mouse also goes off).
    If I disconnect the mouse at this stage, there is no change in kernel.log. If I the mouse back too, there is no change in kernel.log.
    Now, when I turn the AC adaptor on, this is the output on kernel.log
    Sep 12 11:22:16 localhost kernel: [ 813.917712] EXT4-fs (sda6): re-mounted. Opts: commit=0
    Sep 12 11:22:16 localhost kernel: [ 813.977405] NMI watchdog enabled, takes one hw-pmu counter.
    Sep 12 11:22:16 localhost kernel: [ 813.977453] NMI watchdog enabled, takes one hw-pmu counter.
    Sep 12 11:22:16 localhost kernel: [ 813.980838] NMI watchdog enabled, takes one hw-pmu counter.
    Sep 12 11:22:16 localhost kernel: [ 813.980874] NMI watchdog enabled, takes one hw-pmu counter.
    Sep 12 11:22:16 localhost kernel: [ 814.075104] ehci_hcd 0000:00:1a.0: BAR 0: set to [mem 0xd6970000-0xd69703ff] (PCI address [0xd6970000-0xd69703ff])
    Sep 12 11:22:16 localhost kernel: [ 814.075148] ehci_hcd 0000:00:1a.0: restoring config space at offset 0xf (was 0x100, writing 0x10b)
    Sep 12 11:22:16 localhost kernel: [ 814.075189] ehci_hcd 0000:00:1a.0: restoring config space at offset 0x1 (was 0x2900000, writing 0x2900002)
    Sep 12 11:22:16 localhost kernel: [ 814.075256] ehci_hcd 0000:00:1a.0: PME# disabled
    Sep 12 11:22:16 localhost kernel: [ 814.075279] ehci_hcd 0000:00:1a.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    Sep 12 11:22:16 localhost kernel: [ 814.075295] ehci_hcd 0000:00:1a.0: setting latency timer to 64
    Sep 12 11:22:17 localhost kernel: [ 814.228224] ehci_hcd 0000:00:1d.0: BAR 0: set to [mem 0xd6950000-0xd69503ff] (PCI address [0xd6950000-0xd69503ff])
    Sep 12 11:22:17 localhost kernel: [ 814.228246] ehci_hcd 0000:00:1d.0: restoring config space at offset 0xf (was 0x100, writing 0x10a)
    Sep 12 11:22:17 localhost kernel: [ 814.228273] ehci_hcd 0000:00:1d.0: restoring config space at offset 0x1 (was 0x2900000, writing 0x2900002)
    Sep 12 11:22:17 localhost kernel: [ 814.228310] ehci_hcd 0000:00:1d.0: PME# disabled
    Sep 12 11:22:17 localhost kernel: [ 814.228324] ehci_hcd 0000:00:1d.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
    Sep 12 11:22:17 localhost kernel: [ 814.228333] ehci_hcd 0000:00:1d.0: setting latency timer to 64
    Sep 12 11:22:17 localhost kernel: [ 814.614404] usb 2-1.1: reset low speed USB device number 3 using ehci_hcd
    At this point, the mouse comes back to life (its light begins to glow) and I can move the mouse pointer on the screen.
    The output of the grep command that rwd gave is too big (16000 lines) to be pasted here..
    Thanks,

  • Detect USB Stick insertion

    I am trying to write a LabVIEW app that will be able to detect that a USB stick/key has been inserted into the computer. I know that I can get the names and serial numbers of all the drives that are currently mounted. However, I do not know how to check to see if one of them is a USB mass storage device, more specifically a USB stick as opposed to a USB-attached optical drive.
    I could just check the size of the device and if it is under 4GB assume that it is a USB key. But if there is a more elegant way of doing it that I can be more sure of, I would like to do it.
    Using LabVIEW 8.2.1
    Kyle

    Thank you. I think I am just going to go with the polling with the list directory VI every 100 ms or around that. Just compare the new list of drives to the old ones, if there is a new one I will take the action that I want.
    I think the environment is controlled enough that we won't have issues with that. No one will be swapping drives out like mad (or at least they shouldn't be!).
    Kyle
    Message Edited by Kyle Thompson on 05-29-2007 08:07 AM

  • USB Ports on HP G60-230US Notebook Not Detecting USB Devices

    I've had an HP G60-230US Notebook PC for about three and a half years now, and all of a sudden tonight my USB ports decided to all stop working.  I first noticed it when I tried to hook up my iPod to sync it and it didn't show up in iTunes.  I unplugged my wireless mouse to see if the other USB port would work with no luck, and when I plugged my wireless mouse back in it wasn't detected either.  I tried restarting my computer twice to see if that would take care of the problem but it didn't. 
    My notebook currently runs Windows Vista.  On a normal day I'll have my external harddrive (WD My Passport Essential 500 GB), my wireless mouse (Microsoft Wireless Mobile 3500) and my Targus Chillmat with 4 USB hubs in the back plugged into my 3 USB ports.  My printer is usually plugged into one of the Chillmat's USB ports.  When I want to sync my iPod I usually unplug the Chillmat because none of the USB hubs on it will detect the iPod.  At the moment my wireless mouse will still work if I leave it plugged into its USB port when I restart my computer, and all the chillmat is doing is cooling my laptop down.
    Any help would be very much appreciated.

    You may have exceeded the available power capacity of the USB ports in your notebook PC too many times. That can result in non functioning (forever)  ports. That is the specific reason that I recommend only using externally powered USB hubs.
    You can check the current carrying capacity of the USB ports and see how much they are using via the device manager.
    Open Device Manager and then right-click a USB root hub. Select properties and then the Power tab.
    This particular system has many ports available.
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • IMac says usb device removed insecurely?

    my iMac keeps saying a usb device was removed insecurely but I'm not adding or removing anything at the time - the spurious message comes up randomly every 5 minutes or so

    Try resetting both the SMC and PRAM.
    SMC RESET
    Shut down the computer.
    Unplug the computer's power cord and all peripherals.
    Wait 15 seconds.
    Attach the computers power cable.
    Wait another 5 seconds and press the power button to turn on the computer.
    PRAM RESET
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.

  • New USB Problems - USB Device Not Recognized

    I've had Ultimate x64 installed for awhile now.  It's gone through some growing pains (mostly NVIDIA-related BSOD issues) but it's usually pretty stable.  About a week ago it started having USB problems.
    I have a SanDisk ImageMate USB 2.0 card reader that suddenly stopped reading my camera media.  I also have an HP photosmart 7960 that stopped printing (I was using drivers for another printer, per instructions from HP, because this printer doesn't have Vista drivers).  My Memorex flash drive also no longer works, and it no longer sees my Garmin GPS.  They all say "USB Device Not Recognized".
    I contacted HP and they determined that my USB needed to be rebuilt.  This is what I did:
    Unplugged all USB devices.
    Removed all related USB software.
    Booted up in safe mode and went to Device Manager and uninstalled, in this order: USB root hubs, then USB host controllers.
    Even in safe mode, I couldn't get everything to stay deleted.  As soon as I deleted a USB host controller it would reinstall itself and install a root hub.
    I rebooted, and now I'm trying to install the SanDisk card reader.  It installs it, and then there is an exclamation point next to "USB Mass Storage Device" in Device Manager.  I've tried to update the driver (also by having it look in C:\Windows and all subfolders) and it says "Windows was able to successfully install device driver software, but the driver software encountered a problem when it tried to run.  The problem code is 10."
    So I seem to be stuck with no USB.  I've been throwing new hardware at Vista, determined not to go back to XP.  However, I'm sure I can't work without USB.  What should I do at this point?
    Thanks!

    WHY hasn't anyone replied to this thread?  This is a huge issue, and I am certain millions are affected.  Glowball, did you find a solution.
    I have had major issues with my PC Card (PCIMIA SLOT) Adapter TYPE I & II Compact Flash Card Readers, which were plug and play in XP, give the same behavior - now you see it , now you don't!  None of the manufacturers were willing to provide any acknowledgement nor certify their devices for VISTA.  However, on the MS Support site I did find the attached instruction for a Reg Edit which allows the assignment of an IRQ to the PC Card Adapter in VISTA - apparently this was not required in XP (is this an advance in the OS??? I think not!).  IRQ 16 was assigned, and now works great on my Vista Home Premium laptop.
    On my other Vista Business laptop, I have a PC Express Cardslot - haven't tried an Adapter for SD + cards yet there, but supposed to not have the same issues, I believe.  However, I am having the same issue Glowball describes above with my USB  Card reader. It is USB 2.0 high speed certified and has been working great for Readyboost with an 8 GB SD card inserted and adding 4 GB of Readyboost "ram".  However, when I also inserted a CF card into the adjacent slot of the same card reader, it has become an "unrecognized device" as noted above.  Tried unplugging, replugging USB cable.  Although still displayed in My Computer and Explorer, the drive contents are not updated or active and cannot be opened - get "drive not present error" and the USB error noted above.
    I am unwilling to delete the USB drivers/device EVERY time I need to work with a CF card.  Surely there is a registry correction for this issue.  It must also tie into this IRQ issue noted with the PCIMIA card readers above as well?
    Anybody know or CARE?
    Mike Mulligan
    720-987-4470
    [email protected]

  • Here's a program for finding your product ID and Vendor ID of USB device

    Greetings, All
    Just to let you know of a program I found that will tell you the Product ID and Vendor ID. A long with a bunch
    of other stuff for your USB device.
    This all started trying to find my product ID and Vendor ID for my Radium 49 MIDI USB keyboard to use with VISA.
    Tech Support at M-Audio had no idea what I was talking about so I found this instead. Hope this helps
    someone else out that uses no standard hardware.
    Enjoy
    It's called usb monitor
    http://www.hhdsoftware.com/usbmon.html

    Thank you son,
    I will try this out. This could become a good tool to detect USB devices which are part of an ATE (for which there may not be LV drivers).
    I will post feedback after "experimenting with it".
    Thanks again!!
    -JLV-

  • HP Compaq dc5750 SFF boot problem with USB devices installed.

    HP Compaq dc5750 SFF
    AMD Athlon (tm) 64 X2 Dual Core Processor 3800+
    2.00 GHz 1.37 GB of RAM
    XP Professional SP2 with latest updates.
    HP Compaq Business System BIOS (786E3 BIOS)(ver. 2.36 Rev. A)
    This is a problem when a Microsoft web camera is installed prior to the boot up of the computer
    The webcam works fine if it is installed after the boot up.
    When any type of USB product that does not have an OS is installed in any USB port the computer freezes at the BIOS POST screen and will not finish the POST unless the USB device is removed. If there is an OS on the USB device it boots normally to that device and it also boots normally to the installed OS if the USB device is not installed.
    Contacted HP Support and was told to update the BIOS, which I had already done. Then I was told that the computer was out of warranty and I could pay for the service if I wanted help. I agreed to pay if the problem was fixed. This brought a reply that they did not know if the problem could be fixed.
    The next day I received an email with Critical Alerts, one showing the BIOS update I had already installed and 2 other non critical updates.
    Since HP did not show any interest in fixing this problem I am posting it here to see if anyone else has had this problem.

    Hi,
    Boot into the bios and change the boot priority order and save the setting change.  Look under the Storage TAB drop down and then Boot Order. Highlight USB and press enter and then the down arrow to move it below the hard drive.  Save the changes when you exit the bios.
    HP DV9700, t9300, Nvidia 8600, 4GB, Crucial C300 128GB SSD
    HP Photosmart Premium C309G, HP Photosmart 6520
    HP Touchpad, HP Chromebook 11
    Custom i7-4770k,Z-87, 8GB, Vertex 3 SSD, Samsung EVO SSD, Corsair HX650,GTX 760
    Custom i7-4790k,Z-97, 16GB, Vertex 3 SSD, Plextor M.2 SSD, Samsung EVO SSD, Corsair HX650, GTX 660TI
    Windows 7/8 UEFI/Legacy mode, MBR/GPT

  • MSI P43 won't boot with usb devices connected

    My system:
    MSI P43 Neo
    Intel Core 2 Duo E8400
    NorthQ Black Magic 850 watt PSU
    Corsair 4 x 2GB ram PC2-8500 1066MHz
    Seagate 320 GB hd
    Hitachi 1 TB hd
    Samsung 1.5 TB hd
    Club3D Nvidia GTX275 1,75 GB
    Samsung DVD Write Master
    When i try to boot i freezes at the detecting usb devices when i have a usb device connected. It does with any usb device. But when i boot up without any usb devices connected then i boot fine and i can connect the devices right after the detection of usb devices. How can that be?

    Googled on "computer not booting with usb code 6b38" and found this:
     Quote
    ****SLOW BOOT-UP in POST SCREEN****
    P.S. If you see the BIOS code 6B38 in the bottom right corner of the screen, this is a indication that USB Legancy support is enabled in the BIOS. If this is enabled and you have any usb devices attached such as a external USB Hard drive, your system will take ages to go through the POST boot screens.
    So disable this setting in the BIOS and the system will then boot in a matter of Seconds
    From:
    http://www.rebelshavenforum.com/sis-bin/ultimatebb.cgi?ubb=get_topic;f=30;t=000250
    Also try and see if a clear CMOS will help, some people suggested that from a old post from MSI forum here, saying its bios 1.3 thats bugged.
    So if disabling doesnt work, perhaps down/upgrading BIOS might.

  • Using NI-VISA to detect USB insertion/​removal

    Is there a way to use NI-VISA to detect when a USB device has been inserted or removed?
    I am currently using Windows API in my LabWindows application to capture the WM_DEVICECHANGE event.  When this event is called, I check to see if the USB devices are still connected to my PC  by using viFindRsrc function.  On Windows XP 32-bit, this approached worked successfully.  On my Windows 7 64-bit system this is no longer working.  After I remove the USB device, the viFindRsrc function is still indicating that the device is connected even though it isn't. 
    Also, when a USB device is controlled by a NI-VISA driver, I cannot capture the Windows DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE events.  I am able to see these events for other USB devices that are not controlled by a NI-VISA driver.
    Solved!
    Go to Solution.

    I solved the issue.
    The behavior of the NI-VISA driver requires that you register to receive Windows notifications. The other USB devices that weren't controlled by a NI-VISA driver didn't require me to register to receive the DBT_DEVICEARRIVAL and DBT_DEVICEREMOVECOMPLETE events.  I received them by default...
    Here is the code to register USB events
    Here is the code where I register the USB events:
    DEV_BROADCAST_DEVICEINTERFACE NotificationFilter;
    intptr_t postHandle = 0;
    /* Windows HWND */
    HWND hWnd = 0;
    long long unsigned int hWndVal = 0;
    /* Get HWND of LabWindows\CVI panel */
    GetPanelAttribute(panelHandle,ATTR_SYSTEM_WINDOW_H​ANDLE,&hWndVal);
    hWnd = (HWND)hWndVal;
    * USB Raw Device
    * Device Interface Class GUID = {a5dcbf10-6530-11d2-901f-00c04fb951ed}
    GUID_CLASS_USB_DEVICE.Data1 = 0xA5DCBF10L;
    GUID_CLASS_USB_DEVICE.Data2 = 0x6530;
    GUID_CLASS_USB_DEVICE.Data3 = 0x11D2;
    GUID_CLASS_USB_DEVICE.Data4[0] = 0x90;
    GUID_CLASS_USB_DEVICE.Data4[1] = 0x1F;
    GUID_CLASS_USB_DEVICE.Data4[2] = 0x00;
    GUID_CLASS_USB_DEVICE.Data4[3] = 0xC0;
    GUID_CLASS_USB_DEVICE.Data4[4] = 0x4F;
    GUID_CLASS_USB_DEVICE.Data4[5] = 0xB9;
    GUID_CLASS_USB_DEVICE.Data4[6] = 0x51;
    GUID_CLASS_USB_DEVICE.Data4[7] = 0xED;
    NotificationFilter.dbcc_size = sizeof(DEV_BROADCAST_DEVICEINTERFACE);
    NotificationFilter.dbcc_devicetype = DBT_DEVTYP_DEVICEINTERFACE;
    NotificationFilter.dbcc_classguid = GUID_CLASS_USB_DEVICE;
    * Installs a callback function for WM_DEVICECHANGE Windows message posted
    * or sent to a LabWindows/CVI panel.
    InstallWinMsgCallback (panelHandle, WM_DEVICECHANGE,
    WindowsDeviceDetection, VAL_MODE_INTERCEPT, NULL, &postHandle);
    * Register device notification for USB Raw Device interface class GUID
    RegisterDeviceNotification(hWnd, &NotificationFilter,
    DEVICE_NOTIFY_WINDOW_HANDLE);
    Here is the code that responds:
    static int CVICALLBACK WindowsDeviceDetection (int panelHandle, int message,
    unsigned int* wParam, unsigned int* lParam, void* callbackData)
    PDEV_BROADCAST_HDR lpdb = (PDEV_BROADCAST_HDR)lParam;
    switch (message)
    /* Received Windows WM_DEVICECHANGE message */
    case WM_DEVICECHANGE:
    switch (*wParam)
    * Received Windows device-change event "DBT_DEVNODES_CHANGED".
    * Device has been added or removed from the system.
    case DBT_DEVNODES_CHANGED:
    printf("[%s] DBT_DEVNODES_CHANGED\n",TimeStr());
    break;
    * Received Windows device-change event "DBT_DEVICEARRIVAL".
    case DBT_DEVICEARRIVAL:
    printf("[%s] DBT_DEVICEARRIVAL\n",TimeStr());
    break;
    * Received Windows device-change event "DBT_DEVICEREMOVECOMPLETE".
    case DBT_DEVICEREMOVECOMPLETE:
    printf("[%s] DBT_DEVICEREMOVECOMPLETE\n",TimeStr());
    break;
    default:
    break;
    return 0;

  • Detecting removal of uninstalled usb device

    Hello,
    I have an application where I am setting a serial number in a USB device. I then remove the device from the Registry using Devcon (Devcon will not uninstall the device if it isn't plugged in). At this point I want the operator to unplug the device from the cable. My problem is that with the device uninstalled Devcon doesn't report the unplug event.
    However, Device Manager will refresh upon unplugging the device, even with it uninstalled. So something tells it to refresh. How do I tap into that?
    And I did look at this link, but couldn't get it to help me. Did I miss something there?
    http://forums.ni.com/ni/board/message?board.id=170&message.id=249567&requireLogin=False
    Tay
    Solved!
    Go to Solution.

    One of the annoying bits about URLs is that they're static, so if the target no longer exists, or has been moved, the links are no longer valid. I know the two links that I had provided in my response in that other thread are no longer valid. The first one pointed to a LAVA thread that no longer exists. LAVA had a major server failure a while back. The other link points to a project that was moved to a new location. Don't know about George's site.
    As for what to do now, one thing that you can do is to use the Windows Message Queue Library.  The example that ships with the library is pretty self-explanatory. In your case you would want to listen to the WM_DEVICECHANGE message. The readme contained within the archive lists the values for the various messages. 
    Message Edited by smercurio_fc on 04-01-2010 09:36 AM

  • Macbook not (completely) detecting USB audio device

    Here's what I'm doing. I am ripping my cassette collection using a tape deck, a Roxio video capture device (VHS to DVD), Soundflower, and Adobe Audition. Everything was working fine. I finished a tape and unplugged the USB device to make room for my headphones so I could check the file I created. After doing this, OS X stopped detecting the USB device. Here's what I can tell you:
    It no longer appears as an input device under System Preferences > Sound.
    If I fire up the Easy VHS to DVD Capture software it's clear the software is getting audio (the faux LED meters are responding to the audio coming from the tape deck) - just can't hear anything!
    Adobe Audition was listing the device as "USB 2861 (Not Working)" right after this issue. As soon as I changed the input in Audition, this entry completely disappeared. (For those unfamiliar with audio applications, it's simply looking at the inputs set up in the OS.)
    Under About This Mac > More Info > System Report > USB, I see the USB 2861 device.
    I'm at a loss. So you can see that in some way the device is being detected, but the OS doesn't see it, which means I'm effectively dead in the water. I've tried a number of things; rebooting, an SMC reset (I think that's what it was called), physically removing and reconnecting the device both the while the machine was on/off/after reboot.

    Problem Solved!  
    It turned out to be a combination of the usb cable and the OTG USB hub.  On my desktop the iBaso was cable specific as to the device being recognized.  When I tried the working cable witht the OTG hub on the Stream 7 it failed as usual.  But when I tried the cheap monoprice adapter it worked.
    The usb audio solves the horrible sound problem with the Stream 7 for anybody who is lookiing for a Fix.
    The OTG hub works with a mouse and  a mSata drive perfectly but not with the iBAso DAC.  
    Thanks to everyone who replied for keeping me trying.  

Maybe you are looking for

  • How can I control dpi when importing with Image Capture?

    This is not really an iPhoto question, but there is no forum for Image Capture - and I am hoping some iPhoto user has discovered a solution. I usually import my digital camera images into a folder using Image Capture, apply Photoshop corrections, THE

  • Former pc user converted to mac..ipod not recognised? help please

    I have just changed my operating system from windows to mac osx. I plugged in my ipod and it only recharges,it doesn't recognise ipod. I assume this is becauseI need to reformat the ipod.Can anyone inform the the process involved,I have looked throug

  • GRN number in MIRO

    Hi I would like to enter grn number directly in MIRO instead of searching through Vendor =>P.O => GRN. is there any way.... please help Regards. Sr

  • How to create ADF region without Task Flow

    I want to divide my page into different regions, but I don't want to have any bounded task flow under each region. I want to include Page Fragment inside the Region. I find the example of creating Region using some page flow, would you please help me

  • GPO order in Active Directory

    Hello, I know the order in which the group policies get applied depends on their placing within the Active Directory structure, following the LSDO order (Local, Site, Domain, Organisational Unit). But for the GPOs which are at the same level what is