Share My Creation BLE fun

i've spent a lot of time scanning neighborhoods, hospitals, athletic facilities and municipal buildings for bluetooth ble devices. i know who has giant tv's (and whether they're on or not), clothes washers, smart watches, hp printers, soil ph testers, nanny cams, door cams, earpods, "find me" tags, windows laptops, sleep monitors, not to mention the array of ios devices blanketing the world with their continuity broadcasts. but it's time to move on.

before archiving my research into ble devices, i wanted to mention some (cheap) fun devices which crossed my desk: thermometers and personal medical/sports devices, among which the so-called smartring(drgottjr recommended). some of the devices are pictured below, and their measurements as transmitted via bluetooth follow this post.

xiomi.png
scosche-rhythm.png
smartring.jpg
 

Attachments

  • xiaomi.png
    xiaomi.png
    47.5 KB · Views: 193
  • scosche1.png
    scosche1.png
    46.1 KB · Views: 185
  • scosche2.png
    scosche2.png
    41.4 KB · Views: 177
  • colmi1.png
    colmi1.png
    45.7 KB · Views: 178
  • colmi2.png
    colmi2.png
    43.8 KB · Views: 186

emexes

Expert
Licensed User
Longtime User
Were you able to read the Xiaomi (Tuya?) temperature and humidity sensor directly via BLE, without a home hub in the middle?

I tried about six months ago, but not as successfully as you:

 

drgottjr

Expert
Licensed User
Longtime User
check the image below. it refers to the model number returned when scanning the device's advertisement.
tuya may work the same way. my understanding is that, at some point, they were probably the same. although
xiaomi likes to say otherwise, it is possible to connect to the device directly.

as i said, i was moving on from ble, so it's been a while since i've worked with this thermometer, but i think there
were only 2 things you could do with it: toggle the output between celsius and farenheit, and get the actual
temp/humidity/battery status. xiaomi's later models may have actually shut down direct access to the services. in
any case, and for this model at least, you don't need some "official" app. and in spite of there being so little one
can accomplish with this device, it has a couple dozen services (which output firmware revision versions and the like).
you have to scan through the services looking for the one the outputs the measurements. if you want to change the
output to farenheit, you have to find the characteristic that does that and write to it.

i don't use the various ble libraries, but i have no reason not to assume they won't achieve the same result. after
you get the output, you need to convert/decode it. there's been a lot of hacking of the xiaomi. i spent hours. at this
stage i imagine most of that work has been aggregated (or aggravated) by the a.i. ask it. worst case, google stuff.

by the way, there is a similar(ly), cheap govee thermometer which outputs the same data right in the advertisement
without any connection, so all you have to do is scan it and parse the advertisement to get a reading. i'm afraid the
govee and its brother devices are in a box somewhere headed for electronics recycling, so i can't post a screen cap.
 

Attachments

  • 10.png
    10.png
    69.9 KB · Views: 157

emexes

Expert
Licensed User
Longtime User
which outputs the same data right in the advertisement

Lol I was so busy looking for the normal GATT method, that I didn't even think to look at that. Spewing if that works. I'll check it out when I get home.
 

drgottjr

Expert
Licensed User
Longtime User
Lol I was so busy looking for the normal GATT method, that I didn't even think to look at that. Spewing if that works. I'll check it out when I get home.
it's the govee that broadcasts the measurements in the advertisement, not the miaomi/tuya. model H075, maybe others. i don't know if this helps:
you just need to know which ad type has the payload, probably 0x16 or 0xFF. then apply the parser.
 
Top