Connecting Smartband

Post your questions and help other users.

Moderator: Martin

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Connecting Smartband

Post by Desmanto » 09 Jun 2018 10:12

Hahaha, sometimes we miss the most basic one. But I really can't get the BLE device working anymore in the new phone. Old phone still work though.

I upgrade to Xiaomi Redmi Note 5, MIUI 9.5.13.0 base on Oreo 8.1. I have so many new features that I can't use on old phone, because it is only LP 5.1. The upgrade also really boost my user experience, flows execute much faster, Control UI can be set to lower delay and many new features can be used now.

From 100+ flows, only about 10 flows need to be adjusted. Most of these are phone specific flow. Example, my screenshot flow used to take 1920x1080. Now RN5 has the resolution 2160x1080, need to adjust the script, widget and the resolution. Old phone has its own camera interface, I need to adjust the new camera interface on RN5. Old phone setting located at different position, need to adjust the control UI (as I have stated, it is phone specific).

Having new phone, open up new possibilty of Gesture control using the Control UI. Haven't tried it extensively yet. Split screen also is very tempting. And now the new EAP version introduce even more accessibility features. Arrgh, very tempting to test it at my current main phone.
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Connecting Smartband

Post by digitalstone » 09 Jun 2018 16:50

The temptation is real. Fortunately i don't have to make that decision since my old phone's (Nexus 5) screen is broken from the inside. All black and colored randomized bars.
But darn, that's a lot of flows. Not sure how you set up your flows. But i like to create fundamental flows to be reused as much as possible to be called on other flows.
To check and wait ping-signal first for example, in order to presume with calling flow afterwards, is where i use only 1 separate flow for. It's called "Check Ping Response", and uses dynamic IP's depending on own WiFi or 4G etc.
In this manner i reuse flows whenever i can.
But yeah different phone ~= different experience at phone specific and user experience i suppose.

On a side note, since it's now possible to order my phone around with the MB2, i'm started trying sending notifications/text from my phone to the MB2...
The Mi Fit itself doesn't do much unless specific apps are showing notifications.
Sending a broadcast should do the trick (i believe) but apart from some very in-depth hackery, i just can't seem to find how to send information to the smartband.
Do you have experience with that?
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

User avatar
Desmanto
Posts: 2709
Joined: 21 Jul 2017 17:50

Re: Connecting Smartband

Post by Desmanto » 10 Jun 2018 17:34

You can always use scrcpy to use the phone :) But need to grant the usb debug first, which is impossible then.

I also reuse. There are widgets with 4-12 buttons, and all of them use the execute flow with different parameter (the x y of the widget) to execute different branch. Only about 50 are active flows. (but consist of more than 100 triggers) There are more than 10 are others' flows, which I test the concept and leave it there until I do clean up.

To send the notifications to MB2, there are apps those can do that. But I don't need the notification, hence I never really look into it. It needs to dig deep to the MB2 BLE protocol, which is kinda low level reverse engineering at the kernel level (probably). I don't think we can do it in Automagic, except using java as the medium. And for that, I surrender for now. :lol:
Index of Automagic useful thread List of my other useful posts (and others')
Xiaomi Redmi Note 5 (whyred), AOSP Extended v6.7 build 20200310 Official, Android Pie 9.0, Rooted.

User avatar
digitalstone
Posts: 342
Joined: 21 Oct 2017 12:36
Location: The Netherlands

Re: Connecting Smartband

Post by digitalstone » 10 Jun 2018 18:50

Oh that's right. I think it still has USB-debug mode on. See if i can charge it up and hook it to scrcpy.

Interesting, using the position parameter data to evaluate its identity. Plans are to design a nice, clear, functional widget layout.
I think it's gonna be overlay-type with tabs on top to show/hide different layouts based on current profile (no need for Hue smartlamp control when i'm at work).

I shall do a search about 3th party apps that would allow simple notifications to the MB2.
But i have no intentions to program this stuff on hardcore level.
Other than that, i hope that cat.exe isn't broken after that surrender :lol:
Phone: LG Nexus 5X (rooted vanilla Android 7.1.2)

Post Reply