Mi band 4 and broadcast heart rate - Xiaomi Mi Band 4 Questions & Answers

Hello,
I was looking into a feature that can somehow broadcast the heart rate of the mi band 4. Broadcasting is different than normal heart rate tracking because it sends a ble packet containing the HR value and other peripherals receive the data without pairing. This is useful in more than one scenario:
1. I use a bike computer but it cannot see my mi band 4 (as factory made), lacking the broadcast feature it cannot be detected by the bike computer
2. at the gym, maybe you have a treadmill and it can receive the hr trough broadcast.
I found this app, https://github.com/WebBluetoothCG/ble-test-peripheral-android ( https://play.google.com/store/apps/details?id=io.github.webbluetoothcg.bletestperipheral ) that my bike computer can see the HR emulator. I was wondering how can this be made to communicate with each other, or another way if it is possible.
A scenario:
1. start biking activity - we have the heart rate
2. I used Notify and Fitness and in tasker I could get the hr value http://mibandnotify.com/help/tasker_send_intent.php (sadly tasker does not have yet the ble broadcast feature)
3. Is it possible to make an app that does exactly this thing? Like get the HR from the mi band and using the code in ble-test-peripheral-android emulate a HR sensor on the phone that broadcasts the value.
Other solutions are welcomed,
thanks.

Niflheim123 said:
http://mibandnotify.com/help/tasker_send_intent.php (sadly tasker does not have yet the ble broadcast feature)
Click to expand...
Click to collapse
Having Tasker support for BLE would be nice and is probably also interesting for other use cases. Maybe ask on r/tasker if the wanted feature is already possible to do with Tasker and if not put up a feature request on tasker.helprace.com. I'm sure Mi Band 4 users like myself will vote for it.

Niflheim123 said:
Hello,
I was looking into a feature that can somehow broadcast the heart rate of the mi band 4. Broadcasting is different than normal heart rate tracking because it sends a ble packet containing the HR value and other peripherals receive the data without pairing. This is useful in more than one scenario:
1. I use a bike computer but it cannot see my mi band 4 (as factory made), lacking the broadcast feature it cannot be detected by the bike computer
2. at the gym, maybe you have a treadmill and it can receive the hr trough broadcast.
I found this app, https://github.com/WebBluetoothCG/ble-test-peripheral-android ( https://play.google.com/store/apps/details?id=io.github.webbluetoothcg.bletestperipheral ) that my bike computer can see the HR emulator. I was wondering how can this be made to communicate with each other, or another way if it is possible.
A scenario:
1. start biking activity - we have the heart rate
2. I used Notify and Fitness and in tasker I could get the hr value http://mibandnotify.com/help/tasker_send_intent.php (sadly tasker does not have yet the ble broadcast feature)
3. Is it possible to make an app that does exactly this thing? Like get the HR from the mi band and using the code in ble-test-peripheral-android emulate a HR sensor on the phone that broadcasts the value.
Other solutions are welcomed,
thanks.
Click to expand...
Click to collapse
Even i am interested to do something like this to use my mi band data to broadcast into my bike computer. Have you find any solutions yet?

yes, switched to garmin vivosmart )

Related

Can GPS get a silent fix?

When I get in the car and turn on bluetooth, a script starts to run in conjuction with my car stereo for handsfree and audio etc.
I would like to add a command to the script that switches on GPS straight away and gets a fix in the background so that if I get lost or stuck in traffic I can run TomTom and the fix will have already been established thus enabling me to navigate to where I need to be more efficiently?
Is there such a way of doing this?
the simplest idea I have is to run a 3rd party app such as gpsgate when your script runs.
debully,
I did think about using a 3rd party app but wondered if the trinity is capable of getting a fix just by enabling GPS and not running any other app?
The problem is that using A2DP is quite CPU greedy. Running another app will just add to it. Incidently, I've read posts where people are quoting percentages of CPU used by certain programs, how is this done?
interested as well
Let me know if you get a way to do this... I would be interested as well.
;-)
-Daniel
If you'd like to have a GPS fix all the time (even when you push the power button for 'stand by') you will have to modify the radio rom..
But for in-windows usage you could install a program with a virtual COM port that redirects the GPS data.. (so, when your batch file is ran this program will open and connect to the GPS port.. it wil create another COM port and when tomtom connects it will have a fix instantly)
I use gpsgate, not only does it give me a fix all the time when I set it to run on softreset, it can send your position to googlemaps so people can track you if you want and other nifty stuff.
Floriz said:
If you'd like to have a GPS fix all the time (even when you push the power button for 'stand by') you will have to modify the radio rom..
But for in-windows usage you could install a program with a virtual COM port that redirects the GPS data.. (so, when your batch file is ran this program will open and connect to the GPS port.. it wil create another COM port and when tomtom connects it will have a fix instantly)
Click to expand...
Click to collapse
I downloaded a little app called ODGPS (900KB cab file and free) It took a while playing around with the settings to get a fix but once the fix was there I opened TomTom and it knew where I was almost instantly.
I stumbled across a website yesterday with links to other sites of free gps software. http://www.maps-gps-info.com/fgpfw.html (where I found ODGPS)
My plan is to test a number of programs from here to establish a) how much memory they use and b) how quick they get a fix.
Once I have found a small enough app with a fairly quick fix I shall implement it into my script. Now if someone could just tell me how I monitor the CPU usuage of each app?
mcq3000
How memory hungry is gpsgate?
neomagik said:
I downloaded a little app called ODGPS (900KB cab file and free) It took a while playing around with the settings to get a fix but once the fix was there I opened TomTom and it knew where I was almost instantly.
I stumbled across a website yesterday with links to other sites of free gps software. http://www.maps-gps-info.com/fgpfw.html (where I found ODGPS)
My plan is to test a number of programs from here to establish a) how much memory they use and b) how quick they get a fix.
Once I have found a small enough app with a fairly quick fix I shall implement it into my script. Now if someone could just tell me how I monitor the CPU usuage of each app?
Click to expand...
Click to collapse
you can use "BatteryStatus", very small today-plugin that shows you the energiedrain... more cpu = more energiedrain
I'm getting closer to having this working:-
ODGPS is not ideal because it seems to freeze the phone after a while. It also makes a funny tapping noise every 2 or 3 minutes and for some reason and I can't disable it.
I'm now experimenting with NoniGPSPlot, a very small program that runs easily in the background. You can save a track of your journey too and view it on google earth.
Once it's established a fix, TomTom will fix almost instantly.
I've integrated it into my script so that it opens and minimizes as soon as I switch to 'car' profile. My phone then detects my stereo and connects to it for handsfree profile, then for wireless stereo.
What would be cool is if I can get it to display a message telling me that a fix has been established and likewise when the fix is lost. The trouble is I can't find what registry change takes place once it has a fix.
neomagik said:
I'm getting closer to having this working:-
ODGPS is not ideal because it seems to freeze the phone after a while. It also makes a funny tapping noise every 2 or 3 minutes and for some reason and I can't disable it.
I'm now experimenting with NoniGPSPlot, a very small program that runs easily in the background. You can save a track of your journey too and view it on google earth.
Once it's established a fix, TomTom will fix almost instantly.
I've integrated it into my script so that it opens and minimizes as soon as I switch to 'car' profile. My phone then detects my stereo and connects to it for handsfree profile, then for wireless stereo.
What would be cool is if I can get it to display a message telling me that a fix has been established and likewise when the fix is lost. The trouble is I can't find what registry change takes place once it has a fix.
Click to expand...
Click to collapse
Wow this sounds great !!! I have just bought an A2DP capable car radio and I would love to being able to do exactly this. Can you share your script when its finished??
Kind regards
neomagik said:
I've read posts where people are quoting percentages of CPU used by certain programs, how is this done?
Click to expand...
Click to collapse
Task Manager
availible here: http://www.buzzdev.net/index.php?option=com_phorum&Itemid=125&phorum_query=read,27,15027
@ rdkay>
Which stereo do you have? The script I have written is specifically for the Pioneer DEH P75BT
I've just used ssnap to create 2 snapshots of my registry, the 1st with a gps fix, and the 2nd without. When comparing the files using ExamDiff there is no obvious change that takes place.
Does anybody know of a GPS program that creates or changes registry entries once a fix is established?
neomagik said:
@ rdkay>
Which stereo do you have? The script I have written is specifically for the Pioneer DEH P75BT
Click to expand...
Click to collapse
slightly off topic - apologies -
how do you find the DEHP75BT at registering and automatically recognising your phone?
I have a DEHP55BT (think it was the first BT radio available for under £200) and had loads of trouble with registration (had to use 'connect
wait') and unless I manually switch on BT on phone (mUn's WM6 SE) or manually tell the pioneer to connect nothing happens.
Also, when callers call me I cannot hear their voices through the speakers, but it's ok when I call them - do you have this problem?
neomagik said:
I've just used ssnap to create 2 snapshots of my registry, the 1st with a gps fix, and the 2nd without. When comparing the files using ExamDiff there is no obvious change that takes place.
Does anybody know of a GPS program that creates or changes registry entries once a fix is established?
Click to expand...
Click to collapse
GPSGate changes the colour of its icon that resides in the system tray (red -no gps data, yellow - gps data but no fix, Green - Fixed). Not sure if this is controlled by a registry setting but may be worth a look. GPSGate also lets you use more than one GPS app at once and allows you to delegate COM ports for output.
@ debully>
There is a very simple fix to enable the Pioneer to recognise and connect to your phone. You see the Pioneer is searching for a phone or a Smartphone, the Trinity identifies itself as a PPC and so the Pioneer ignores it.
The Class of Device or CoD must be changed so that the Trinity identifies itself as either a phone or Smartphone.
If you change the Dword Data value in.... HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Bluetooth\SYS\COD"
to 5374476 (decimal) and set bluetooth to discoverable in your Trin, you should find that it connects automatically.
It took me 8 months to find this out.
PS. I don't have the problem with not hearing the callers.
@neomagic
wow - thanks dude. Your a star!
To understand what you are dealing with in getting a "fix" you need to understand how the system works. When started for the first time in 2 hours (or whatever it's been programmed for) the gps does a cold start and needs to download almanac data from the sat's in order to determine their trajectories which is needed to calculate a fix. Once that data has been pulled, it's valid for a certain amount of time (about 2 hours if I'm remembering correctly). So, although no registry keys are going to change, the easy way to deal with this is to keep your own timestamp, and make sure to ping the gps with a fix request every 2 hours or so in order to keep it ready for a warm/quick start...
@ Shadowmite>
Thanks for the info, I've read similar information about cold/warm starts. A couple of questions though...
1) I can deal with the timestamp but how do I "ping" the gps with a fix request?
2) If I do ping a request every 2 hours and I'm indoors and can't get a fix, will it go back to needing a cold start?

[Q]Connecting to multiple Bluetooth devices

I just started going back to the gym and I use Bluetooth headphones with my note 2. I'm debating on buying a Bluetooth heart rate monitor to use with a couple of workout apps to track my calories being burned.
I'm wondering.. will I be able to connect both devices simultaneously?
In the car I connect to my head unit, cobra iradar and obd2 scanner. So I don't think you should Have a problem
Sent from my SGH-T889 using Tapatalk 4
I figured it wouldn't be an issue. Thanks
desikilla said:
I figured it wouldn't be an issue. Thanks
Click to expand...
Click to collapse
how....as far as i know....one connection can be made at a time; as soon as you connect one BT, the other got disconnected.
just like wifi and hotpost; your phone either is on wife mode to get internet connection from other or your phone is on wifi-hotpost mode to provide internet connection to others
desikilla said:
I just started going back to the gym and I use Bluetooth headphones with my note 2. I'm debating on buying a Bluetooth heart rate monitor to use with a couple of workout apps to track my calories being burned.
I'm wondering.. will I be able to connect both devices simultaneously?
Click to expand...
Click to collapse
You can simultaneously connect and use the devices only if they use different BT Profiles. For example, I routinely connect the Note2 to my car's BT receiver for phone calls (Hands-Free Profile, HFP), MP3 playback to the car's speakers (A2DP), and navigation using an external GPS device (Serial Port Profile, SPP). Works fine.

IFTTT channel for Mi Band

IFTTT is an automation system that "puts the internet to work for you", as they claim.
It works via channels and recipes with a "if" "do" mechanism.
I asked IFTTT to create a channel for Mi Band to aumatically connect the band to other service.
Since there are other channels for other wearables, such as fitbit and jawbone, it shouldn't be a huge problem to create one for Mi Band, one of the best selling wearable in the world.
For example you could export your sleep track to a gdrive spreadsheet every morning, to keep tracks of your sleep, without even touch your phone, or receive an email when you achieve your daily goal and so on.
Possibility are virtually infinite.
The discussion about the request is in this subreddit, with a lot of IFTTT developer http://redd.it/3baq4k
If you want to support the request upvote, leave a comment, explain what you would do with IFTTT integration or whatever you want.
Than you for your time
There was an app for android, which creates a channel for IFTTT.com
https://forum.xda-developers.com/general/accessories/miband2-app-to-channel-ifttt-com-mi-t3672229

Polar H7 and Ghostracer

Hey.
I did my first run with the SW3 paired with a Polar H7 using Ghostracer. It saved my heart rate the entire run but I couldnt see it while running.
I saw in the settings that you can edit the interface for running but it requires the pro app.
Is the paid version required to show heart rate while running or did I miss another setting?
angwar90 I can't answer your question mate but have one of my own to ask you lol. Can you use the Polar H7 and Bluetooth headphones all paired at the same time with the SmartWatch 3?
cool-jet said:
angwar90 I can't answer your question mate but have one of my own to ask you lol. Can you use the Polar H7 and Bluetooth headphones all paired at the same time with the SmartWatch 3?
Click to expand...
Click to collapse
Yes, you can use both at the same time. The watch and Ghostracer also supports combined devices (HR+Headphone) such as the Jabra Pulse.
angwar90 said:
Hey.
I did my first run with the SW3 paired with a Polar H7 using Ghostracer. It saved my heart rate the entire run but I couldnt see it while running.
I saw in the settings that you can edit the interface for running but it requires the pro app.
Is the paid version required to show heart rate while running or did I miss another setting?
Click to expand...
Click to collapse
In order to customize the Android Wear Screen via the settings in the Smartphone app, you need the paid version.
You can also change the data fields on your watch by pressing long on the fields.
However I highly recommend the paid version, as it's a great solution for the SW3.
The paid version also offers unlimited ghosts.
flowjob said:
Yes, you can use both at the same time. The watch and Ghostracer also supports combined devices (HR+Headphone) such as the Jabra Pulse.
In order to customize the Android Wear Screen via the settings in the Smartphone app, you need the paid version.
You can also change the data fields on your watch by pressing long on the fields.
However I highly recommend the paid version, as it's a great solution for the SW3.
The paid version also offers unlimited ghosts.
Click to expand...
Click to collapse
Thanks for clearing that up, I might go pro and invest in the H7 :good:
flowjob said:
Yes, you can use both at the same time. The watch and Ghostracer also supports combined devices (HR+Headphone) such as the Jabra Pulse.
In order to customize the Android Wear Screen via the settings in the Smartphone app, you need the paid version.
You can also change the data fields on your watch by pressing long on the fields.
However I highly recommend the paid version, as it's a great solution for the SW3.
The paid version also offers unlimited ghosts.
Click to expand...
Click to collapse
Thanks I bought the paid version. Its a great app
dear friends
i have a problem with my android wear swr3.
I would like to run with ghostracer on my sony smartwatch 3 with paired my Polar h7 heart monitor in a STAND-ALONE way.
I updated to the last firmware the sony smartwatch software and i install ghostracer on my android virtual machine.
the problem is that in the app in my android virtual machine there is NOT the voice and the possibility to check the pair from HRM H7 and the watch in wearable settings in the app.
I have the last app version 0.9.4.4. Could someone confirm that this possibility is still available in 0.9.4.4 version?
thank you

Best standalone GPS apps?

Hello, just bought a SW3.
Does Google Maps work with the built in GPS? I noticed that it starts to look immediatly for the phone...also is it possibile to move the offline maps I downloaded to the smartwatch internal memory? How does it work? I am new thanks.
I've got an LG G5 which is affected by the GPS hardware issues (ie GPS is non-existent) - my SW3 works fine in maps when paired to this phone so would guess the watches GPS is working well. Guess it could be using the phone to grab location via phone masts, but not as slow as phone location so doubt it.
gurningchimp said:
I've got an LG G5 which is affected by the GPS hardware issues (ie GPS is non-existent) - my SW3 works fine in maps when paired to this phone so would guess the watches GPS is working well. Guess it could be using the phone to grab location via phone masts, but not as slow as phone location so doubt it.
Click to expand...
Click to collapse
In fact I was wandering if it was possible to use the smartwatch alone for running, with its built-in GPS (and perhaps offline maps loaded) but without the 4G connection of the phone.
Sony said the point of this smartwatch was to leave the smartphone at home, but I saw that the location doesn't fix if the smartwatch doesn't connect to phone first (Bluetooth and 4G).
Am I doing something wrong?
Menomis said:
In fact I was wandering if it was possible to use the smartwatch alone for running, with its built-in GPS (and perhaps offline maps loaded) but without the 4G connection of the phone.
Sony said the point of this smartwatch was to leave the smartphone at home, but I saw that the location doesn't fix if the smartwatch doesn't connect to phone first (Bluetooth and 4G).
Am I doing something wrong?
Click to expand...
Click to collapse
I have two of these devices. In order to use the google fit stand alone gps, i suggest that you turn off your phone or BT connection between the phone and watch as well as the wifi setting on the watch prior to a run. When you go outside, turn on the google fit app and wait a few moments while you warm up, this will give the watch a chance to lock into GPS. Then all you have to do is start moving and the standalone gps will work. The problem with google fit is that it so dependent on communications between the phone and device as well as not having a gps locking icon. I prefer to use Ghostrunner app for the sony smartwatch 3, its completely independent from the phones gps and has such a setting in the app to force the watches gps to work over the phone.
Thanks and what about google maps? Can it be used in standalone for running? Just for mapping andò routes
And what about runtastic? Can I use it with position on the phone turned off but watch GPS turned on? Apparently it doesn't work for me
I use mine for running and I use Endomondo. I just use the watch GPS on its own and after the run it syncs via bluetooth to the phone. I've heard there has been issues with this but with my LG G4 it's all worked fine.
Does anyone know how to use the smartwatch in standalone with Google Maps tracking while running? It searches for the phone connection everytime...do I have to turn BT off or follow specific steps?
thank you in advance
Menomis said:
Does anyone know how to use the smartwatch in standalone with Google Maps tracking while running?
thank you in advance
Click to expand...
Click to collapse
What do you mean? Maps doesn't record your path, if that's what you're after.
If you want to see yourself on a map, including your trail where you've been, use ghostracer. You can also load a gpx path and follow it on the map, but it doesn't give you navigation instructions, you have to watch for the turns yourself.
Navigation is in osm offline maps, but I never had much luck with it.

Categories

Resources