Open driver needs 5 seconds to close
Posted: Tue Feb 21, 2012 7:56 pm
I'm trying serial writing and reading from osx usb port. I can send and receive data but I discovered that when I change the open for writing to reading it needs 5 seconds to close the port.
sample:
open driver thePort for write --open driver thePort to send data
// send data to usb
close driver thePort --close the port
(needs about 5 seconds)
open driver thePort for read ---open driver thePort to receive data
// receive data
close driver thePort
Between closing the driver port and opening for receive data needs about 5 seconds.
Could somebody tell me if this delay is "normal"
Thanks to everybody.
sample:
open driver thePort for write --open driver thePort to send data
// send data to usb
close driver thePort --close the port
(needs about 5 seconds)
open driver thePort for read ---open driver thePort to receive data
// receive data
close driver thePort
Between closing the driver port and opening for receive data needs about 5 seconds.
Could somebody tell me if this delay is "normal"
Thanks to everybody.