Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    1. Home
    2. jiho
    3. Best
    • Profile
    • Following 0
    • Followers 1
    • Topics 1
    • Posts 36
    • Best 11
    • Groups 0

    Best posts made by jiho

    • Smartwatch sync app

      Warning: I removed gattool support from the latest builds. This causes devices on stable to not be able to communicate to the paired watches as the current BlueZ (bluetoothctl) version is not able to send GATT commands.

      Working build for xenial which includes support for gatttool: https://gitlab.com/jiiho1/uwatch/uploads/c4dd2cffae019106bebab9641f69c4b1/uwatch.jiho_0.1_all.click

      What works:

      • Searching and adding devices from within the app (to connect the device automatically, use System Settings)
      • Sync time on the watch upon connecting
      • Sync battery level
      • Sync heart rate
      • Sync firmware version
      • Sync device name
      • Sync hardware revision
      • Sync steps (available in firmware version 1.7.0 and higher)
      • Graphs to display synced data over time
      • Automatically fetch data regularly

      Things I want to implement or things I'm currently working on:

      • Calculate burnt calories (will be calclated by steps per day)
      • Notifications
      • Music controls
      • (Maybe an indicator)

      Also I am currently focusing on the PineTime with InfiniTime.

      Source code: https://gitlab.com/jiiho1/uwatch
      uGatt: https://gitlab.com/jiiho/ugatt (GattTool for Ubuntu Touch)

      posted in App Development
      jiho
      jiho
    • RE: Smartwatch sync app

      I just added automatic sync to the app and I'd like to get some feedback, if anyone is interested. To sync in the background, disable suspension with UTTT.

      Build: https://gitlab.com/jiiho1/uwatch/-/jobs/3214702902/artifacts/download?file_type=archive

      If everything works as expected, then I'd like to submit it as a beta app to the app store. 🙂

      posted in App Development
      jiho
      jiho
    • RE: Smartwatch sync app

      @lakotaubp Sorry for the late reply. (And missing news in general)

      To be honest I ran into some problems with the current version of bluez.
      Pin verification will be made mandatory in Infinitime at some point. As this functionality is already included in the System Settings, I wanted to use it, to pair and verify the watch and then use it in the app. That would also provide an easy way to automatically connect to the watch. Gatttool however is not able to enter existing bluetooth connections and the implemented version of bluez is not able to handle GATT very well or at all (never actually got it to do what I want).

      So to work around some things, I started to rethink the backend and am currently working on that.

      Also I want to see what I can do with the upcoming 20.04 base as hopefully the bluez version will be able to handle the requests way better.

      posted in App Development
      jiho
      jiho
    • RE: An app for smartwatches that expect Android?

      I am currently working on a Smartwatch Sync App for UT, to at least be able to sync the time and get data like heart rate, steps, etc. (for now at least)

      I might have an alpha version of it ready in a few days (can't guarantee that though), if anyone would be interested.

      I am currently focused on supporting Infinitime.

      posted in App Development
      jiho
      jiho
    • RE: Smartwatch sync app

      @jf002 Hi JF002! Thank you for creating InfiniTime. Using the PineTime with InfiniTime actually pushed me to try my hands on my first ever QML app. I got the opportunity to learn so much and of course I am still learning and experimenting.

      I am always happy to receive feedback and help especially with the BLE part, as I am sure, I am doing many things wrong or at least not the best way.

      posted in App Development
      jiho
      jiho
    • RE: Smartwatch sync app

      @equareo Could you please try this one: https://gitlab.com/jiiho1/uwatch/-/jobs/3199676376/artifacts/download?file_type=archive

      I added a progress bar to display the initial sync (firmware version should then automatically update). Before that, could you delete the app data via UT Tweak Tool to get a clean state?

      Only after the firmware version synced successfully will you be able to sync the rest of the data. (Battery status is currently broken as BlueZ can't fetch that attribute)

      posted in App Development
      jiho
      jiho
    • RE: Smartwatch sync app

      @equareo Sure, here you go 🙂 https://gitlab.com/jiiho1/uwatch/-/jobs/2982616820/artifacts/download?file_type=archive

      posted in App Development
      jiho
      jiho
    • RE: Smartwatch sync app

      @phiibuntu You can download build artifacts from here: https://gitlab.com/jiiho1/uwatch/-/pipelines

      You'll be able to download a ZIP file that contains the click package. You can install it either with UTTT or opening it with the Open Store.

      Beware however... I am currently rewriting a huge part of the backand in 'movetojs'. So make sure to download the artifact from 'main', because some things are not yet working in 'movetojs'.

      If needed I can also build a package for you.

      posted in App Development
      jiho
      jiho
    • RE: Smartwatch sync app

      @lakotaubp Sorry, I moved to project to a group in GitLab (to have all UT apps in the same place).

      You can find the latest builds here: https://gitlab.com/jiiho1/uwatch/-/pipelines

      The latest build (a few minutes ago) should be one last one you already have (with clickable 7 build).

      A lot more changes are currently happening in the branch "movetojs", however not everything is working in there yet.

      posted in App Development
      jiho
      jiho
    • RE: Smartwatch sync app

      @lakotaubp Very nice!
      Be aware though that UT does not seem to be able to connect, if the firmware version 1.3.0 is installed.

      Many things are not yet implemented, but I am getting there. OTA support and notifications will probably be the next things I'm going to implement.

      posted in App Development
      jiho
      jiho
    • RE: porting lenovo smart tab m10 plus x606

      @FP2andFP3-User I have the same device and the firmware downgrade also bricked my device.
      This guide and tool did help me to fix the problem: https://www.xda-developers.com/bypass-mediatek-sp-flash-tool-authentication-requirement

      THIS TIME though! Before that tablet I also had another MediaTek device I tried to unbrick... but I made the mistake of unplugging it before that tool finished.... after that... the device was totally and forever borked.... not even the correct drivers showed up in device manager.... and Ubuntu was not able to detect the device at all... the device completely malfunctioned.

      The tool will basically start the device in OEM mode ... and let's you bypass everything... so you can literally destroy everything with it. It will disable protection... and while the device is still connected, run the SP Flash Tool (I used the one provided by the Lenovo Rescue tool) and flash the correct firmware...

      One last warning here:
      This tool is able to make the device never recoverable! Use at own risk!

      posted in Porting
      jiho
      jiho