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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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.