USB HUB and a printer is connected to the hub?

I have a USB Hub which is connected to Electric Imp 005, with which a printer is connected. How to find the _bulkout endpoint so that I can transfer my data to it.

My current code for the direct printer attached to electric imp is working, but now I have a USB Hub in between.

Please help me do it.

  1. Get it working directly connected (no hub). There are printer examples in git.
  2. Include the hub code from github, then add this to the driver list. The printer should continue to work connected through a hub now.