How to transfer Android real-time sensor data to a computer?

I want to transfer real-time data collected by an Android smartphone to my computer and perform signal processing on my computer. How can i achieve this ? Any useful links to tutorials are very welcome.

Either wireless tools or USB cables are available.

When data is transferred, how can a computer process it?

I am familiar with Python and therefore use Python to process upcoming data.

Is it possible that Python is constantly accepting new data and processing it?

+8
python android data-transfer transmission
source share
4 answers

You can use python sockets to receive data and process it. Have a look: https://docs.python.org/2/howto/sockets.html for some idea on how to configure the server machine.

Android has a compatible socket that you can use to send your data: See: http://examples.javacodegeeks.com/android/core/socket-core/android-socket-example/ for some ideas on how to use it.

Edit: this will work for Wi-Fi and 3G / 4g.

+2
source share

There are several Android applications for transmitting sensor data wirelessly. Place an order, for example. "Smartphone IMU GPS" [1], which is open source [2]. It transmits data over UDP. A snippet of Python code for receiving a data stream is given in the application description [1]. Make sure that the smartphone as well as the receiving device are connected to the same WiFi network and the firewall is not blocking traffic.

[1] https://play.google.com/store/apps/details?id=de.lorenz_fenster.sensorstreamgps
[2] https://sourceforge.net/projects/smartphone-imu/

+2
source share

In some Android applications, you can share sensors over the network:

You can also read sensors via ADB !

+2
source share

How can I transfer imu data to a blender to control a cube or camera? Is there a script or addon?

0
source share

All Articles