I saw yesterday that if you connect with the USB cable, you switch of the phone, you switch on and stay connected with the cable, you choose on your settings share USB connection and you relaunch the PC companion software from your phone you can charge the phone and the PC companion software recognize your phone. Once you disconnect and connect once again your USB cable you have the same problem and you have to switch of, switch on, choose on your settings share USB and relaunch PC companion software from your phone once again.
That's a partial solution only because I cannot find up to now how to make it automatically but if it can helps someone that's better than nothing.