Giter VIP home page Giter VIP logo

Comments (13)

shogunxam avatar shogunxam commented on July 19, 2024 1

Not all the BLE devices are compatible, the scan check for the MAC Address of the device, and some devices have a changing BLE address (normally called random instead of public address) for privacy/security reason. The same for the reading of the battery level, the device has to expose the Battery Service (0x180F) and the Battery Level characteristic (0x2A19),
I have tested successfully with:

  • nut mini (work both discovery and battery level).
  • Amazfit bit (works only the discovery)
  • Xiomi Mi Smart Band 4 (works only the discovery)

from esp32_bletracker.

DivanX10 avatar DivanX10 commented on July 19, 2024

I bought a Redmond SkyTracker 08S tracker. Works. Displays the on and off status, and displays the RSSI signal strength. The battery status is always -1. Do I understand correctly that the battery status is not displayed for all devices? Although the app itself displays the battery level of the REDMOND RFT-08S tracker.

from esp32_bletracker.

shogunxam avatar shogunxam commented on July 19, 2024

Yes, the battery level can be read only from the devices providing the Battery Service (0x180F) and the Battery Level characteristic (0x2A19), check the availability using a nRF Sniffer i.e. nRF Connect. Also in this case can happen the esp32 fails to pair with the device so the battery cannot be read. Unfortunately I haven't a lot of devices to test.
I will add your device to the list of working devices 😃

from esp32_bletracker.

DivanX10 avatar DivanX10 commented on July 19, 2024

Installed nRF Connect and connected to the tracker. I didn't find a line about the battery. There are lines Generic Access, Device Name, Appearance, Peripheral, Preferred Connection, Generic Attribute, Nordic UART Service, TX Characteristics, RX Characteristics.

from esp32_bletracker.

shogunxam avatar shogunxam commented on July 19, 2024

Within nRF Connect you have to connect to the discovered device (it can take a while) Then you have to search for the highlighted items.
photo_2020-12-05_19-45-07

from esp32_bletracker.

DivanX10 avatar DivanX10 commented on July 19, 2024

Thanks for the screenshots, now everything is clear. Well, this is not critical, the main thing is that in your firmware I see the tracker and there is an on\off status. Added a mac to the white list and extra Macs are eliminated. Very convenient. For example, there is a firmware OpenMQTTGateway, it is useless, there is no normal connection with the tracker and a lot of extra. Thank you for the excellent firmware.

from esp32_bletracker.

DivanX10 avatar DivanX10 commented on July 19, 2024

I connected the itag tracker. Only the status works, the battery level is not displayed, although through nRF Connect there is a display of the battery level. Will it be possible to display the battery level of the itag tracker?

Screenshot_nRF Connect

These are the topics I have displayed in the MQTT client
tracker

from esp32_bletracker.

shogunxam avatar shogunxam commented on July 19, 2024

Perhaps the ESP is failing to connect to the itag unfortunately I haven't one to test. I have seen a similar issue with the nut (non nut mini) of another guy but I haven't found a solution yet.

from esp32_bletracker.

shogunxam avatar shogunxam commented on July 19, 2024

I forgot, obviously you have added the itag's MAC address to the list of the devices for which the tracker has to read the batteries, right?

from esp32_bletracker.

DivanX10 avatar DivanX10 commented on July 19, 2024

Вы не указали еще BLE трекер iTag. Данный трекер тоже обнаруживается в вашей прошивке.
You haven't specified the iTag BLE tracker yet. This tracker is also found in your firmware.
iTag

from esp32_bletracker.

shogunxam avatar shogunxam commented on July 19, 2024

Is the itag only discovered or is the battery value read also?

from esp32_bletracker.

DivanX10 avatar DivanX10 commented on July 19, 2024

Only iTag is detected, and the battery is not read. The value -1 is displayed.
Обнаруживается только iTag, а батарея не считывается. Отображается значение -1.
iTag state

from esp32_bletracker.

shogunxam avatar shogunxam commented on July 19, 2024

This issue has been marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.

from esp32_bletracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.