-
Notifications
You must be signed in to change notification settings - Fork 17
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
Works for a few seconds only #16
Comments
After switching the device off and on and running
It takes about 10 seconds. Switching the thing off and on, and restarting bluetooth again, I get another error:
|
Using --ignore-bad-packets helps somewhat: I get data for longer (about one minute), then no more. No exception is logged, but no more data is collected either. |
Hi,
I have a KingSmith WalkingPad A1 Pro from which I'd like to collect stats during use. The Bluetooth connection seems to work fine (as seen in
bluetoothctl
) but the ph4-walkingpad-ctl script only retrieves data for a few seconds. I managed to get a few tens of lines of json with aph4-walkingpad-ctl -a 85:20:00:00:34:52 --stats 750 --json-file ~/walking.json
command, then I got an exception that I didn't copy but that looked very much like the second one mentioned in #8:[Removed after inserting the real backtrace in a comment later]
Then I can no longer get any data out of the device. I had to run bluezctl to disconnect it before
ph4-walkingpad-ctl
would connect again, but even then it never gets any data.status
returnsNone
, no matter how many times I runask_stats
before. (start
orswitch_mode
don't have any effect either, but I'm really only interested in the stats.)Running with --debug yields a huge amount of
2024-07-27 21:19:55 mammamir ph4_walkingpad.main[57264] INFO Error in ask stats: Task <Task pending name='Task-9' coro=<WalkingPadControl.stats_fetcher() running at /home/blagandzig/walkingpad/lib/python3.11/site-packages/ph4_walkingpad/main.py:171> cb=[_chain_future.<locals>._call_set_state() at /usr/lib/python3.11/asyncio/futures.py:394]> got Future <Future pending created at /usr/lib/python3.11/asyncio/base_events.py:427> attached to a different loop
lines.I'm runnning a Debian 12 system with Python 3.11, and I created a venv so that I could
pip install -U ph4-walkingpad
.The text was updated successfully, but these errors were encountered: