Menu

USB Test Application Freezes on Open Device

Help
Anonymous
2008-12-04
2012-12-06
  • Anonymous

    Anonymous - 2008-12-04

    Hi!

    I am writing a X10 remote control which uses the CM19E USB interface. To do some testing, I have been using the USBView and the USB Test, mainly to sent X10 commands to the interface. However sometimes, when I click the Open Device button it simply freezes and nothing more happens. The USB port where the interface is plugged in also seems to freeze since I plug the interface in and out and nothing happens, even the windows sound for USB events doesn't play. At last: when this happen, my machine does not reboot or shutdown when I try to do so.

    Any ideas about what can be wrong?

    Thanks in advance,

    Davide Carneiro

     
    • Anonymous

      Anonymous - 2008-12-04

      After some debugging, I reached the exact point where the program freezes, it is when it opens the device (well it actually does not open since it freezes at that point...) it simply freezes, no error thrown, nothing...

      Any suggestions?

      Thanks,
      Davide Carneiro

       
      • andi

        andi - 2008-12-07

        I never experienced such problems. Here some thoughts:

        - Make sure you're using the latest libusb-win32 version (right-click on <windows>/system32/libusb0.dll -> Version).
        - Did you try to kill the process which hangs? Maybe that will release the USB port.
        - Reset the device instead of closing it before opening it again. This should initialize the device (depends on the firmware implementation).

        - As it is most likely not a JNI/Java issue you may get more help on the libusb-win32 mailing list.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.