Thank you so much for this switching between USB modes, especially supporting charge mode.
So I have a question whether it is possible to charge n900 from active hub and at the same time use multiple devices with it? (ex. mouse, usb dongles etc)
Active hubs, most of the time, have separation (if even by single diode) of downlink current (actively provided from power source) and uplink, to never, ever, put power back to uplink.
That said, there are also many routers that doesn't follow this rule, or follow it "twisted way" (acting like Y-cable has been put between uplink and actual hub + no limits of current drawn by downlink, if this "like-y-cable" power is detected). In the latter case, You may charge device during hostmode.
Still, y-cable is the only way, that will work for sure, with all devices. Keep in mind, though, that this way, most hubs *won't* allow more than 100 mA per device (they still "think" that are powered from uplink hostmode device, with 500 mA max, so they reserve 100 mA for self and 100 mA per all 4 ports), so "H-cable" may be needed.
H-cable is same as Y-cable, but it also contain one cable part and plug for putting into active hub's power input. That type of cable covers every need, but You must be sure to have it ended with plug fitting into router's DC in, or use adaptors.
/Estel
// edit
Or alternatively to H-cable, You may sue both Y-cable, and hub's native power input adapter. Most of the time, it require two power adapters, though (one powering Y-cable, and one powering hub). H-cable decrease number of power supplies to 1 (but it must be powerful enough, 2A or more, preferably).
can we use direct adaptors or do we have to use a female to female usb adaptor in between? Reason for this question is because it was heavily stressed not to do this by mohammedAG in the following thread (when he initially announced his usb host mode):
can we use direct adaptors or do we have to use a female to female usb adaptor in between? Reason for this question is because it was heavily stressed not to do this by mohammedAG in the following thread (when he initially announced his usb host mode):
so it sounds like only a case of putting too much pressure to fragile microusb port on n900 and fear of mechanically ripping it apart, i see no other reasons not to use it.
so it sounds like only a case of putting too much pressure to fragile microusb port on n900 and fear of mechanically ripping it apart, i see no other reasons not to use it.