I would like to know how can I avoid this situation. I open a device and try to write and read to the device. Sometimes I will be blocked when I try to read from the device. So how can I know the device does not response in 2 secs?? Is there any timer or some way I can avoid this situation??