[Completed] Heart rate measuring protocol using Mi Band 1S - XDA Assist

I'm trying to implement simple sdk for working with fitness tracker Xiaomi Mi Band. Currently I can track steps, actuate the vibration, handle the sensor touch but I have a problem with heart rate measuring. To measure heart rate, I need to write descriptor to appropriate characteristic to enable handling callback when the value of this characteristic was changed and then write appropriate data to heart rate control point characteristic to directly start the heart rate measure process. The problem is that the heart rate measuring process was not started after the data to initiate this process was successfully written to the characteristic (when the Mi Band starts to measure heart rate then the bottom sensor blinks green). This can be caused by a new firmware of fitness tracker (firmware version: 4.15.12.10; HeartRate version: 1.3.74.64) or there are some defects in my code.
Maybe the protocol is deprecated and there are people who can share me a new protocol. I will be very glad) Thanks.

AlexanderHryk said:
I'm trying to implement simple sdk for working with fitness tracker Xiaomi Mi Band. Currently I can track steps, actuate the vibration, handle the sensor touch but I have a problem with heart rate measuring. To measure heart rate, I need to write descriptor to appropriate characteristic to enable handling callback when the value of this characteristic was changed and then write appropriate data to heart rate control point characteristic to directly start the heart rate measure process. The problem is that the heart rate measuring process was not started after the data to initiate this process was successfully written to the characteristic (when the Mi Band starts to measure heart rate then the bottom sensor blinks green). This can be caused by a new firmware of fitness tracker (firmware version: 4.15.12.10; HeartRate version: 1.3.74.64) or there are some defects in my code.
Maybe the protocol is deprecated and there are people who can share me a new protocol. I will be very glad) Thanks.
Click to expand...
Click to collapse
Hi and welcome to XDA!
Try posting your query here:
Android Q&A,Help and Troubleshooting
Experts there may be able to help you.
Good luck
Art Vanderlay
XDA Assist

Related

[Q] Android GPS as GPS sensor for hart rate watch

i just purchast a Polar hart rate watch that has an optional GPS sensor.
The hart rate sensor is possible to use on all android training apps and communicates by bluetooth, i guess the GPS sensor does to.
Have anyone seen an app that can send the necessary gps info from phone to the watch?
Maybe develop it and sell it to me?

[Q] Read ambient RSSI using Wifi

Hi,
I am looking for an API that can read the current ambient rssi with Wifi interface even if there is no AP in the range. Current APIs only returns rssi for an associated AP. How can I add this API in a build? Any direction would be appreciated.
Thanks,
Hossen
What is an ambient RSSI?
If there is no AP in range, whose signal strength do you want to read?
Even if there is no AP, there is some noise signal available (ambient noise). I am working on a project where I need to read the ambient noise value.
Thanks.
Dark3n said:
What is an ambient RSSI?
If there is no AP in range, whose signal strength do you want to read?
Click to expand...
Click to collapse
Dark3n said:
What is an ambient RSSI?
If there is no AP in range, whose signal strength do you want to read?
Click to expand...
Click to collapse
Rssi stands for relitive signal strength indication. It is used to measure the received signal strength in a radio receiver.
So what they are looking for is a way to intercept the signal strength that the wifi is receiving from the wireless router and be able to show it on the screen.
Oh and by ambiant noise they are talking about the background noise from other transmitters that might be using the same radio frequencys that the wifi is using.
sent from my legend, currently using extream legend fuse™
asiful said:
Even if there is no AP, there is some noise signal available (ambient noise). I am working on a project where I need to read the ambient noise value.
Thanks.
Click to expand...
Click to collapse
This might be more appropriate to do research on radio transmitions rather than apps on a phone, for example, set yourself up with radio scanners and antennas that cover the radio frequency's that wifi uses.
P. S. I am a licenced radio ham as well as playing with my phone.
sent from my legend, currently using extream legend fuse™
Any moving on?
Hi, guys. I have almost the same problem.
I am working on a project which need to read signal strength in BCM4313.
I try to measure the wireless signal strength ( Adding noise and normal signal up) in the environment constantly. The sample rate is 1000 Hz, for example.
I was working on CC2420 chip-set (which supports 802.15.4). RSSI in CC2420 can does that thing. So I just wonder does RSSI in WiFi has the same functionality.
So I try to dig into the source code of driver , I still can't figure out how to do that.
Thanks for any help.
Best,
Nathan
I found the answer
After reading the source code of the driver for several days, I finally found the method.
There is no general API to do this job. We should dig into driver to obtain ambient rssi. So this is product dependent.
My NIC is Broadcom BCM4313.
I first download the driver from the website of Broadcom. However they don't provide interface to access the hardware. It cost me a lot of time to figure out this.
Then I turn to the open source driver: brcmsmac. It helps.
In the function wlc_phy_noise_sample_request(...) , in /phy/phy_cmn.c folder, I found the example for how to read ambient rssi.
Nathan

b/t heart rate monitor?

Has anyone found a heart rate monitor that will communicate with free Android GPS programs like sports-tracker on an infuse?
When I look at the cheap heart-rate monitors that are claimed to be blue-tooth compatible,I see many customers with problems finding a combination of phone, app, and blue-tooth enabled heart rate monitor that worked together.

Mercedes Benz A class Comfort Can

Hi forum,
since I do so hard to find information what and how to send on can bus to my Mtcd Lm Px5 unit for Mercedes Benz A class to get any reaction I sum up the little I found up to now, so others can add.
I found some sites saying Mercedes Comfort Can (B?) uses 83.3 kbps low speed can.
Besides the lower baud rate low speed can uses another termination causing other levels on can rezessive.
While Highspeed Can uses 120 Ohm between CanHi/Lo each end, each LowSpeed Can node terminates CanHi against GND and CanLo against VCC by some resistance, the overall resistance shall be 100 Ohm but not less then 500 Ohm on a tja1055 transceiver, described in detail in follow document:
https://www.nxp.com/docs/en/supporting-information/AH0801.pdf
I can't find any boards with Low Speed Can Transceivers on the net but comparing drivers and input logic of a tja1050 HighSpeed and a tja1055 LowSpeed transceiver it is may be possible to use an tja1050 with external low speed termination as described for low speed can.
I can measure minus 10.x Volt between the unconnected CanHi and CanLo Lines of my unit matching the described low speed termination.
..
If there is somebody out there having sucessfully sent something to an unit for Mercedes Benz I will gladly do what he have done.
I now at least get Can Acks from my mtcd_lm unit sending with 83.3 kbps with an mcp2515/tj1050 without termination and nothing else at the bus, unit in deep sleep or up.
I get nothing logged in the factory settings logcan logger, don't know if the number in the upper right corner matters.
I now found all info on mbworld.org, the radio can bus is Can B / Body Can, 83 kbps low speed, spec:
https://drive.google.com/file/d/0B1Rb8jOWwErbQ19CM3dnZmsyRlU/view
a lot of info to Mercedes Message Ids and the mbworld.org thread:
https://github.com/jumph4x/can-bus-w211.git
https://mbworld.org/forums/audio-electronics/580108-w211-can-b-hacking.html
I now can switch on and off unit with raspberry pi and mcp2515/tja1050, no termination, nothing else at bus:
sudo ip link set can0 up type can bitrate 83300 loopback off
cansend can0 000#FF
cansend can0 000#FF --> On
cansend can0 000#00 --> Off
I still get nothing with the factory settings logcan logger, will try other ids for steering wheel buttons next.
Good to know that are you looking into the issue from the HW side .Several people with Mercedes have similar issues with CanBus.
I also create a thread here > https://forum.xda-developers.com/an...t/adapter-help-mercedes-t3903165#post79005544 not so technical though.
It seems that we might need a more robust CanBus adapter and i cannot find any info where to buy one or create a custom made using raspberry or arduino. I assume you are focusing on the second ?

GPS vs Track IMEI vs Track Number vs Triangulation

Hello expert Androiders! I'm feeling my way around a the excellent Google find my phone functions - but wish to enhance performance and reliability. Can you help me understand how best to use a permanently installed/ powered Smartphone as a Car Tracker Device? I'm installing it as an always-on (hidden inside car with hard wired 12v - and with an Anker Powercore battery). I have a Moto G4 and have checked its GPS satellite performance (which is fine) but I am conscious it needs reasonable line of sight (though I've read there is some signal bounce). My questions are as follows: a) is the optimum location for the hidden Smartphone and battery inside under the boot floor/ outside on the underside arch/ chassis/ underneath the rear (plastic) bumper - or somewhere else...; b) is an external GPS of real net benefit eg Garmin GLO BT - and if so, would it be better sited above a parcel shelf for strong signal (and, is Glonass worthwhile - in this context); c) is there an APP/ method to track (independently of the GPS signal - ie by IMEI/ SIM number/ by Phone number/ Triangulate (if the GPS were lost/ blocked)? THANK YOU for your expertise and kind assistance!

Categories

Resources