Tranfering data from one USB key to another with a hub

Hi everybody,

I am quite new to Arduino, not really good in electronics and I have a project that perhaps you could help me on. :slight_smile:

I have an Arduino Mega 2560 and a USB host shield from Sparkfun but I have been a bit confused looking for informations and code on several websites all giving different informations.

The idea would be to connect a hub to the USB host shield that could allow the transfer of data between two USB keys…

So I guess the code would be a mix of the hub demo code and the masstorage one, both provided on Circuitsathome?

The compiling part works fine for the hub demo code (even if compiled, I do not know how to test it…) but I can’t go through the masstorage one… I guess that’s a matter of not being good enough in this domain…

I found that some people tried to do the same kind of thing but I couldn’t get any answer of how or if they made it…

Does someone have any clue for me?

Thank you very much!