Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Device Support Request] H40F Treadmill "TOPUTURE" #13

Open
tmeuze opened this issue Oct 24, 2024 · 7 comments
Open

[Device Support Request] H40F Treadmill "TOPUTURE" #13

tmeuze opened this issue Oct 24, 2024 · 7 comments

Comments

@tmeuze
Copy link

tmeuze commented Oct 24, 2024

Hi there, thanks for this project!

I'm hoping to get help adding support for a certain model of treadmill - one which appears to support FTMS protocol, as tested using nRF Connect per this article.

Here is an Amazon link to the product. And here is a manual for one of the same/similar controller model.

I would love to help however I can. Thank you.

@dudanov
Copy link
Owner

dudanov commented Oct 25, 2024

Hi.

If your fitness machine supports FTMS, it should be supported by the integration without any problems. According to the documentation, it has a FitShow controller installed, which usually supports both FTMS and its own proprietary FitShow protocol.

@tmeuze
Copy link
Author

tmeuze commented Oct 25, 2024

Hi, thank you for your response. Is there a way to debug the component's search for FTMS devices? It seems to very quickly claim that there are no compatible devices found:

CleanShot 2024-10-25 at 11 24 43

And there isn't anything particularly useful in the core logs:

CleanShot 2024-10-25 at 11 27 39

I have a built-in Bluetooth adapter (HA Yellow), as well as a few BT proxies around the area.

Thank you, again.

8AFD3A38-355F-40E7-ABA2-283FF9812935_4_5005_c

PS: the model number that is actually advertised by BLE properties is FS-BT-D2

@dudanov
Copy link
Owner

dudanov commented Oct 25, 2024

Please, send me BLE advertising data that the device broadcasts. FTMS service support is determined by this data without connecting to the device.

@tmeuze
Copy link
Author

tmeuze commented Oct 25, 2024

I appreciate your help, Sergey. I am not perfectly clear on what BLE data you might need, or whether iOS can capture it. I have captured the following in hopes that it answers your question:

2512424D-7A3C-4197-B865-1863082130D6_1_101_o

UUID (Fitness Machine): 1826
UUID (Fitness Machine Feature): 2ACC
Value (Fitness Machine Feature): C456 0000 0D00 0000

Perhaps I need to get an nRF device, or use an Android device, for this...

@dudanov
Copy link
Owner

dudanov commented Oct 26, 2024

ftms-data

This data on screenshot that interested me. It is correct and does not contain errors, the device type is a treadmill.

Your fitness device should not be connected to any devices except HASS. When the trainer is connected to any device, it stops being in discovery mode and cannot be used in another application, HASS for example. For this reason, I made a BLE connection switch so that it would be possible to connect the trainer to third-party software.

I have now tried to disconnect the BLE adapter from my HASS server and work exclusively with the ESPHome BLE proxy. And everything works fine, even faster than before.

@tmeuze
Copy link
Author

tmeuze commented Nov 4, 2024

Thank you. I have disabled the in-built adapter for my HA Yellow, and tried my nearby ESP proxy, but to no avail. I ordered an nRF dongle to capture BLE data. I'm hoping that you might be able to help decypher that if you are so inclined.

Thanks again.

@tmeuze
Copy link
Author

tmeuze commented Nov 12, 2024

Hi there @dudanov. Got a BLE Sniffer adapter, and was able to capture this in Wireshark:

0000   8d 35 00 03 12 3c 02 0a 01 25 3f 00 00 d6 e0 90   .5...<...%?.....
0010   25 d6 be 89 8e 00 22 af 86 bd ab e5 7a 02 01 06   %.....".....z...
0020   0d ff f0 03 a1 00 7a e5 ab 3d 00 00 00 5b 0a 09   ......z..=...[..
0030   46 53 2d 44 42 31 36 45 35 88 5d 4f               FS-DB16E5.]O

CleanShot 2024-11-12 at 17 31 10

I am hoping that helps. If not, I will do some research into Wireshark, as this is my first time actually using the software.

Thank you for any help in implementation that you can provide!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants