#####read live sensor data via FILE and ADB set ADB logcat buffer (10MB):
adb logcat -G 10Mclear ADB buffer:
adb logcat -ccreate fifo for file:
mkfifo pipe && exec 7<>pipeADB logcat forward to pipe:
adb logcat -s AV-SDK | grep --line-buffered MotionCapturing | sed -u s/\.\*MotionCapturing://g > pipe#####read live sensor data via FILE and TCP/IP
- use same comands above
nc -k -l 4000 > pipe #####data construction, which are calculated in the mobile device
String data = accelerometerValues + "," + magneticValues + "," + gyroscopeValues + ",:," + azimuth + "," + pitch + "," + roll;
========================