Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Additional sensors (magnetic field, gyroscope)

    Meizu Pro5
    5
    14
    599
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nauvpp last edited by

      Hi,
      The Ubuntu Touch OTA-19 Release states that Halium 5.1/7.1 devices have access to magnetic field and gyroscope sensors.
      I remembered @Flohack demoing rough compass support (with erratic values) on a device (don't know which one) in a Q&A session some months ago.
      On [PRO5] "SensorStatus" does not display any value but "test_sensors" seems to show lots of sensors [1].
      I'd like to dig this out... I searched for "sensor" throughout the forum, read couple of posts, but no clue how to move forward... Does some of you have hints or docs to read ?
      BR,
      Nauvpp

      [1]
      Hardware module ID: sensors
      Hardware module Name: CyWee SENSORS Module
      Hardware module Author: CyWee Group Ltd.
      Hardware module API version: 0x1
      Hardware HAL API version: 0x0
      Poll device version: 0x1030001
      API VERSION 0.1 (legacy): 0x1
      API VERSION 0.1: 0x65537
      API VERSION 1.0: 0x16777217
      API VERSION 1.1: 0x16842753
      API VERSION 1.2: 0x16908289
      API VERSION 1.3: 0x16973825
      API VERSION 1.4: 0x17039361
      Got 36 sensors

      === Sensor 0 ==
      Name: Accelerometer Sensor
      Vendor: CyWee Group Ltd.
      Version: 0x1
      Handle: 0x0
      Type: 1
      maxRange: 78.453201
      resolution: 0.9999
      power: 0.170000 mA
      minDelay: 10000

      === Sensor 1 ==
      Name: Magnetic field Sensor
      Vendor: CyWee Group Ltd.
      Version: 0x1
      Handle: 0x1
      Type: 2
      maxRange: 200.0
      resolution: 0.9999
      power: 5.0 mA
      minDelay: 10000

      === Sensor 2 ==
      Name: Gyroscope Sensor
      Vendor: CyWee Group Ltd.
      Version: 0x1
      Handle: 0x2
      Type: 4
      maxRange: 40.0
      resolution: 0.9999
      power: 6.99999 mA
      minDelay: 10000

      [...]
      === Sensor 32 ==
      Name: Geomagnetic Rotation Vector (WAKE_UP)
      Vendor: CyWee Group Ltd.
      Version: 0x1
      Handle: 0x23
      Type: 20
      maxRange: 1.0
      resolution: 0.99
      power: 11.270000 mA
      minDelay: 10000

      AppLee 1 Reply Last reply Reply Quote 0
      • Flohack
        Flohack last edited by

        Unfortunately the Meizu Pro 5 is not a Halium device, but a legacy port which we cannot rebuild (closed sources), so we cannot inject the missing sensor glue code. Its the same on the BQs...

        My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

        Keneda N 3 Replies Last reply Reply Quote 0
        • AppLee
          AppLee @nauvpp last edited by

          Hi @nauvpp
          As it turns out it's device specific, I moved the thread to the corresponding subforum.

          N 1 Reply Last reply Reply Quote 0
          • Keneda
            Keneda @Flohack last edited by

            @flohack
            Problem with accessing sources is on Canonical side or Meizu/BQ one ?

            2015-Now : Meizu MX4 (Stable) for daily use
            Spare : Nexus 5 (Stable)

            1 Reply Last reply Reply Quote 0
            • N
              nauvpp @Flohack last edited by nauvpp

              @flohack ok thank you for the clarification

              • Legacy means closed source, so very few chance to have additional sensors supported. Moreover, these devices are becoming ”oldβ€ž (as I do πŸ˜ƒ)
              • Halium means additional sensors may be supported, depending on Halium availability

              How to consider a GSI device? Is it halium too?

              Keneda 1 Reply Last reply Reply Quote 0
              • N
                nauvpp @AppLee last edited by

                @applee thanks! Status changed to β€œtopicβ€ž

                1 Reply Last reply Reply Quote 0
                • Keneda
                  Keneda @nauvpp last edited by

                  @nauvpp said in Additional sensors (magnetic field, gyroscope):

                  Moreover, these devices are becoming ”oldβ€ž (as I do )

                  But old is not dead.
                  I can assure you that my MX4 is still kicking a**es 😁

                  2015-Now : Meizu MX4 (Stable) for daily use
                  Spare : Nexus 5 (Stable)

                  Moem N 2 Replies Last reply Reply Quote 0
                  • Moem
                    Moem @Keneda last edited by

                    @keneda said in Additional sensors (magnetic field, gyroscope):

                    @nauvpp said in Additional sensors (magnetic field, gyroscope):

                    Moreover, these devices are becoming ”oldβ€ž (as I do )

                    But old is not dead.

                    Exactly. It's good for the planet to keep using existing devices, instead of getting new ones every two years and creating tons of e-waste!
                    🌍🌱

                    Is currently using an Op5t
                    Also owns an Op1 and a BQ E4.5. And an Xperia X. Please, someone... make it stop.

                    N 1 Reply Last reply Reply Quote 0
                    • N
                      nauvpp @Keneda last edited by

                      @keneda Sure it does !
                      I also own a MX4 (Ubuntu edition). I can't make the GPS to work since a while. It can't fix my position even after let it try for 1 hour...

                      1 Reply Last reply Reply Quote 0
                      • N
                        nauvpp @Moem last edited by

                        @moem I totally agree and that's a benefit among many other with UBp. I learned with this post that β€œlegacy” devices will likely not have such sensors working. IMHO, that's a drawback to me cause compass is so convenient combined to GPS when navigating by foot

                        Moem 1 Reply Last reply Reply Quote 0
                        • Moem
                          Moem @nauvpp last edited by

                          @nauvpp said in Additional sensors (magnetic field, gyroscope):

                          compass is so convenient combined to GPS when navigating by foot

                          Get yourself a Pebble smartwatch (yes, that is legacy too)... you can connect it with your UT phone and it's a compass too! 😌⌚️

                          Is currently using an Op5t
                          Also owns an Op1 and a BQ E4.5. And an Xperia X. Please, someone... make it stop.

                          1 Reply Last reply Reply Quote 0
                          • N
                            nauvpp @Flohack last edited by nauvpp

                            @flohack one more question I you don't mind: I also own a N5 hammerhead, is it legacy or halium 5.1?
                            Thank you

                            AppLee 1 Reply Last reply Reply Quote 0
                            • AppLee
                              AppLee @nauvpp last edited by

                              @nauvpp
                              IIRC the official port is a legacy one.
                              There is also a work in progress about an halium 7.1 port.

                              N 1 Reply Last reply Reply Quote 0
                              • N
                                nauvpp @AppLee last edited by

                                @applee thanks

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post