UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Additional sensors (magnetic field, gyroscope)

    Scheduled Pinned Locked Moved Meizu Pro5
    14 Posts 5 Posters 969 Views 2 Watching
    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.
      • W Offline
        wilfridd
        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

        AppLeeA 1 Reply Last reply Reply Quote 0
        • flohackF Offline
          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: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

          KenedaK W 3 Replies Last reply Reply Quote 0
          • AppLeeA Offline
            AppLee @wilfridd
            last edited by

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

            W 1 Reply Last reply Reply Quote 0
            • KenedaK Offline
              Keneda @flohack
              last edited by

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

              2015-2023 : Meizu MX4 ☠️⚰️✝️
              2023-2024 : Nexus 5 ☠️⚰️✝️
              2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
              πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

              1 Reply Last reply Reply Quote 0
              • W Offline
                wilfridd @flohack
                last edited by wilfridd

                @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?

                KenedaK 1 Reply Last reply Reply Quote 0
                • W Offline
                  wilfridd @AppLee
                  last edited by

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

                  1 Reply Last reply Reply Quote 0
                  • KenedaK Offline
                    Keneda @wilfridd
                    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-2023 : Meizu MX4 ☠️⚰️✝️
                    2023-2024 : Nexus 5 ☠️⚰️✝️
                    2024-***** : FPOS Fairphone 5 waiting UT for freedom πŸ˜‰
                    πŸ‡²πŸ‡«πŸ‡¬πŸ‡§

                    MoemM W 2 Replies Last reply Reply Quote 0
                    • MoemM Offline
                      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, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

                      W 1 Reply Last reply Reply Quote 0
                      • W Offline
                        wilfridd @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
                        • W Offline
                          wilfridd @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

                          MoemM 1 Reply Last reply Reply Quote 0
                          • MoemM Offline
                            Moem @wilfridd
                            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, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

                            1 Reply Last reply Reply Quote 0
                            • W Offline
                              wilfridd @flohack
                              last edited by wilfridd

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

                              AppLeeA 1 Reply Last reply Reply Quote 0
                              • AppLeeA Offline
                                AppLee @wilfridd
                                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.

                                W 1 Reply Last reply Reply Quote 0
                                • W Offline
                                  wilfridd @AppLee
                                  last edited by

                                  @applee thanks

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