Today I've made another test in which the object is updated in real time in Blender while moving the mobile phone. Communication is made via wi-fi using sockets. Check it out.
If it is feasible, one can then fix the mobile to a part of the body or to an object that we want to animate in order to have more realistic movements.