[Q] magnetic field sensor in Moto 360 not sending updates - Wear OS Q&A, Help & Troubleshooting

I wonder if others have experienced this as well. when attaching to the Sensor.TYPE_MAGNETIC_FIELD sensor on a Moto 360 (Android Wear), I'm not getting any updates.
the following code all works:
Code:
SensorManager sm = (SensorManager) this.getSystemService(Context.SENSOR_SERVICE);
Sensor magnetic = sm.getDefaultSensor(Sensor.TYPE_MAGNETIC_FIELD);
Log.i("Wear", "magnetic: " + magnetic);
with the output:
Code:
I/Wear (17471): magnetic: {Sensor name="Compass Sensor", vendor="Motorola", version=1, type=2, maxRange=4900.0, resolution=0.15, power=0.45, minDelay=40000}
but after registering a listener to this sensor, no events are ever fired.
other sensors (like the accelerometer and the gyro) work fine.

Same on the LG G Watch. I used some sensor test app to check.

Related

Shake?

Is there a shake function on the xperia so we can bind commands to it?
Nope, it's not there. A "shake" would be connected to motion sensor, which is not present.
Yup, no accelerometer = no shake.

Sensors test

Phone -> Keypad -> *#0*# -> Sensor -> put your device on a flat/steady surface and tell me if the numbers of the magnetic sensor are always changing rapidly, the azimuth is sometimes changing in increments of 1 vice versa.
The accelerometer is showing x: 0, y: 0 z: -240 or sometimes -216 (as long as i don't move it).
How does your device behave?...
accelero 0, 0, -216
Magnetic keeps changing constantly indeed.
azimuth keeps changing between 15-17
same
accelerometer x:0,y:0,z:-216
magnetic 2, x: (-6.0 --> -6.4), y: (-15.6-->-16), z: (-154-->-156)
azimuth: (145-->146)
My results of the accelerometer x:0,y:0,z:-216
but, 'z' value (-216) indicates that the accelerometer isn't working right, is it? It should be all "0" when it is on a flat surface, or??
the accelerometer Z axis is 0 when the device is upright, not flat down.
-216 is perfectly fine, considering that the device's back is not flat at all.
try moving the device when in test mode, you'll see the values change.
And in this opprotunity, i have to say the sensors in the SGS are amazingly responsive, even when compared to other same category phones.
For a more fun way to test all the sensors, install the Tricorder app from the market and play with all the scanning options.

Proximity sensor issue?

Hello,
I noticed that the proximity sensor on the nexus 4 is not a proximity sensor persay, it just detects if an object is there or not (digital on/off). To give you an example, when downloading the following application (Android Sensor Box), testing the proximity sensor would actually give you a number between 0-5 cm. So if the object was 2.5 cm away from the sensor, the software would report 2.5cm and so on. On the other hand, for the nexus 4, when placing a object between 0-5 cm away from the sensor, the software would report 0, when the object is 5cm or greater from the sensor, the software would report 5cm. Can anyone confirm?
Thank you
iamcanadian said:
Hello,
I noticed that the proximity sensor on the nexus 4 is not a proximity sensor persay, it just detects if an object is there or not (digital on/off). Can anyone confirm?
Click to expand...
Click to collapse
Confirmed. This is a hardware limitation of the phone.

Android wear - Face with complications - access to sensors inside the watch

So i just got a Nixon Mission, awesome android wear device, lacks access to the sensors inside of it like : thermometer, altimeter, barometer, e-compass, gyrometer, accelerometer and humidity sensors.
Does anybody know if there is a face out there that has all these , or an app ?
tks

Gyroscope?

Hi everyone,
I would to know if this tablet has a gyroscope sensor. According to gsmarena, there is one, however according to an app called Gyroscope Test there is not. Also apps that required a gyroscope doesn't seem to work. I don't know if the kernel I installed simply doesn't support the gyroscope.
Thank you
Hey, I just downloaded aida64 and gyroscope test to test it.
Aida64 shows me:
LIS3DH Acceleration sensor: x / y / z
MS-3R(YAS532) Magnetic sensor: x / y / z
MS-x Orientation sensor: Azimuth / Pitch / Roll
AL3201 Light sensor
Screen orientation sensor
If I open the gyroscope test app it shows me:
Device Model ID: Samsung GT-N5110
Detected hardware
Gyroscope: No
Magnetometer: Yes
Accelerometer: Yes
Google Cardboard compatible: No
If I run the simulation in the app, I was able to looking around by moving my tab. It was smooth and correct.
(stock, rooted ROM)

Categories

Resources