Timeout issues between USB2 and USB3 within 'while' loop

I have written code to run on my Arduino that includes numerous loops. After testing my code on multiple systems using the same cable, Arduino board, and MATLAB version (2015a or b) I have noticed inconsistencies with connectivity. Using a laptop with USB3.0 I can run my code without fault. Switching my code to a desktop PC with USB2.0 will cause a non-predictable timeout during one of the loops. The same issue persists on an iMac desktop. I found a way around this issue by placing the board on an externally powered USB 3.0 hub and connecting that hub to the USB 2.0 ports. This gives me a reliable connection. Why do I need this extra hub? How come I can't just run off the on-board USB ports on the desktops? Note: this is not on simulink, but regular MATLAB scripting

Answers (1)

USB3.0 is allowed to draw more current. Your available current might not always be enough on the desktop or the iMac.
Which iMac model do you have? My MacBook Pro mid-2012 is rated for full USB 3.0 including the higher current draw, but I do not know at the moment which iMac refresh went for full USB 3.0 support.

Categories

Asked:

on 20 Oct 2015

Answered:

on 20 Oct 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!