Did you test to turn the unit on when charging? Maybe it will not allow charging with the unit off.
The standard for charging via USB says that D+ and D- should be connected on the device side. Then it will detect that and not ask if you want to charge or transfer data. For my Nokia Phone (N85) if I use an ordinary USB cable it will only trickle charge.