-
Notifications
You must be signed in to change notification settings - Fork 27
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
error when calling set target resistance level #46
Comments
Hi, I'm afraid I'm not familiar with the FTMS implementation - perhaps @tensorturtle or @bytosaur may be able to help. |
Hey @nbazimi, Firstly, I havent tried the system on windows. Any chance to test it on linux or Mac? I tested this on RPi5 and MacM1. Secondly, can you share the complete file you r running? It looks like you have modified the example. Thirdy, please copy the whole error message. The message you sent looks like it is missing characters and doesnt make sense, e.g. the file |
Hi I'm monitoring this issue and will chime in if I see anything I can help with. Thanks @bytosaur for taking initiative to resolve this issue. |
this is what i used: import asyncio async def run(address):
if name == "main":
|
First, could you first enable DEBUG level logging and then please copy and paste the error (as you did at the beginning). Second, git clone and run this script that I wrote to check that the trainer supports the right operations on each characteristic. Please run the script, find the trainer, and copy the output and paste it here. Third, thank you for pasting the script you've used, but for now can we focus on running the provided example script? That would reduce the confusion. I have used this FTMS implementation on Windows (not WSL) so it is expected to work, let's try to figure out why it isn't working. |
Hi
I have smart trainer Tacx Neo 3m.
this error occurs when calling fitness machin example: set target resistance level
Traceback (most recent call last)
File "C: \Users \Baran\Desktop \Arbeit\New folder \pycycling-masterlexamples\fitness machine service example.py", line 47, in
loop.run_until_complete(run(device_address))
File "C: \Users\Baran\AppData\LocallPrograms\Python\Python37\liblasyncio\base_events.py", line 579, in run_until_complete
return future.result()
File "C:\Users\Baran\Desktop\Arbeit\New folder\pycycling-master\examples\fitness machine_service example.py", line 25, in run
await ftms.set_target_resistance_Level(10)
File "C: \Users\Baran\Desktop\Arbeit\New folder\pycycling-master\pycyclinglfitness machine service.py", line 235, in set_target_resistance leve
ftms_fitness_machine_control_point_characteristic_id, message, True
File "C:\Users\Baran\Desktop\Arbeit\New folder\pycycling-master.venv\lib\site-packages\bleakl init _py", line 659, in write_gatt_char
await self._backend write_gatt_char(char_specifier, data, response)
File "C: \Users\Baran\Desktop \Arbeit\New folder\pycycling-masterl.venv\lib\site-packages\bleaklbackends\winrt\client.py", line 876, in write_ge
f"Could not write value (data) to characteristic (characteristic.handle:04X)",
File "C:\Users\Baran\Desktop\Arbeit\New folder\pycyclinq-master.venv\lib\site-packages\bleak\backends\winrt\client.pỵ", line 116, in _ensure.
f"(fail_msgł: Protocol Error 0xfresult.protocol_error:02X): ferr)"
bleak.exc.BleakError: Could not write value b'Ix04\n' to characteristic 004B: Protocol Error 0xFD: Client Characteristic Configuration Descriptc.
The text was updated successfully, but these errors were encountered: