Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-60290

Unable to access the humidity sensor on Samsung Galaxy S4 using QHumiditySensor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.0 Beta 1, 5.9.0 Beta 2
    • Sensors
    • None
    • Android

    Description

      I am using Qt 5.9.0 Beta 2 and trying to access the humidity sensor on a Samsung Galaxy S4 running Android 5.0.1 using QHumiditySensor class. Upon running the code and querying the list of available sensors on Samsung Galaxy S4 using QSensor::sensorTypes() the humidity sensor is not recognized and I am only getting a list as follows (no humidity sensor is detected):

      "QMagnetometer", "QGyroscope", "QCompass", "QOrientationSensor", "QTiltSensor", "QAmbientLightSensor", "QProximitySensor", "QPressureSensor", "QLightSensor", "QRotationSensor", "QAccelerometer", "QAmbientTemperatureSensor".

      I am able to access sensor data from other sensors such as the QPressureSensor and the QAmbientTemperatureSensor, it is only the newly introduced QHumiditySensor class which does not seem to recognize the presence of the humidity sensor in the cell phone.

      Additionally, I am able to access the humidity value from the humidity sensor on the S4 using the SmartGadget application from Sensirion https://play.google.com/store/apps/details?id=com.sensirion.smartgadget&hl=en. As such the issue appears to be related to a Qt bug.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lpotter Lorn Potter
            becket becket
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes