Page 1 of 1
USB Serial
Posted: Sun Jan 19, 2014 6:36 pm
by Desdewit
Hi
Is it normal for a program that are using usb serial to stop running If the usb is not plugged in or should the program continue to run

Re: USB Serial
Posted: Mon Jan 20, 2014 10:42 am
by Benj
Hello,
The USB Init routine will by default wait forever for a USB enumeration, that is the PC request for info and the device is setup correctly with device drivers.
If you go into the USB component properties then you can enable a timeout which will allow the init function to wait for a bit and then resume your program. The return value from the init routine then tells you if the USB is active or not.
Re: USB Serial
Posted: Mon Jan 20, 2014 6:01 pm
by Desdewit
Hi Benj
Thanks for the info. I got this one sorted just before you replied.
