Giter Club home page Giter Club logo

Comments (11)

haivala avatar haivala commented on July 30, 2024 1

Yes it works for the stats collection and there is times when the stats say
"ccal": null, "ccal_net": null, "ccal_sum": null, "ccal_net_sum": null
but then right after it works again like this:

{"time": 211, "dist": 13, "steps": 317, "speed": 30, "app_speed": 7, "belt_state": 1, "controller_button": 0, "manual_mode": 1, "raw": "f8a2011e010000d300000d00013d07000000e7fd", "rec_time": 1649253095.8210037, "pid": "user", "ccal": null, "ccal_net": null, "ccal_sum": null, "ccal_net_sum": null}
{"time": 212, "dist": 14, "steps": 317, "speed": 30, "app_speed": 7, "belt_state": 1, "controller_button": 0, "manual_mode": 1, "raw": "f8a2011e010000d400000e00013d07000000e9fd", "rec_time": 1649253095.8585336, "pid": "user", "ccal": 0.072, "ccal_net": 0.049, " ccal_sum": 13.453, "ccal_net_sum": 8.722}

from ph4-walkingpad.

haivala avatar haivala commented on July 30, 2024 1

yeah changed the interval and it seems to be working better. I just noticed first time that it seems like the peep comes from changing from manual speed mode to automatic. Without the connection to the script it cannot be changed in the middle of walk. (haven't used it for a long time without the connection so I'm not sure.)

from ph4-walkingpad.

ph4r05 avatar ph4r05 commented on July 30, 2024

thanks for the report! Unfortunately it seems that DTM100i is using a different protocol which is not reversed yet.

from ph4-walkingpad.

ph4r05 avatar ph4r05 commented on July 30, 2024

I have no access to this belt type, so in order to reverse engineer the protocol we would need couple of messages being exchanged between app and the belt. Android application is ideal for it.

https://github.com/ph4r05/ph4-walkingpad#easy-way---android-logs

from ph4-walkingpad.

haivala avatar haivala commented on July 30, 2024

I really don't want to install the android app.

I have been using this program to collect the stats and it has been enough for that. Just wondering should there be a way to use only the connecting and stats part of the program as those work for my pad. As I said I use the remote to control it.

from ph4-walkingpad.

ph4r05 avatar ph4r05 commented on July 30, 2024

@haivala ah so you say that this script works for you for stats collection? Stacktrace you posted indicates that the program has problems with parsing belt data packets (WalkingPadCurStatus.from_data(data)) containing number of steps, etc.

So do you get meaningful data from the belt, just the program randomly outputs errors you posted?

from ph4-walkingpad.

ph4r05 avatar ph4r05 commented on July 30, 2024

ah, in that case, I've pushed an update, you can try running it with --ignore-bad-packets, it should silence those errors you are getting.

It is just matter of logging, those unsupported packets won't be decoded, just discarded. But if you get reasonable info anyway, this should do the job.

from ph4-walkingpad.

haivala avatar haivala commented on July 30, 2024

Seems to be working but it gives this error on startup:

Executing <Task pending name='Task-1' coro=<WalkingPadControl.main() running at /.local/lib/python3.10/site-packages/ph4_walkingpad/main.py:375> wait_for=<Future pending cb=[BaseSelectorEventLoop._sock_read_done(10, handle=<Handle BaseS...events.py:254>)(), Task.task_wakeup()] created at /usr/lib/python3.10/asyncio/base_events.py:429> cb=[_run_until_complete_cb() at /usr/lib/python3.10/asyncio/base_events.py:184] created at /usr/lib/python3.10/asyncio/tasks.py:636> took 0.114 seconds

from ph4-walkingpad.

haivala avatar haivala commented on July 30, 2024

Hmm. And sometimes the belt starts peeping and starts to go faster for few seconds then it calms down. Bit dangerous but I'll live with it :)

from ph4-walkingpad.

haivala avatar haivala commented on July 30, 2024

Now it suddenly stopped which it has never done before

from ph4-walkingpad.

ph4r05 avatar ph4r05 commented on July 30, 2024

Hmm, use this at your own risk 😅 do not leave belt powered on unattended, etc.

The stats collection works in a way it sends periodically stats prompt message (each 500ms) to the belt, i.e., [247, 162, 0, 0, 162, 253]. Belt responds with the latest stats (including steps).

As this app was not tested with the belt, it can have unknown protocol and belt can interpret prompt message in a different way.

Maybe try using --stats 1500 to ask for stats each 1.5 second. The application is not sending any other messages.

from ph4-walkingpad.

Related Issues (13)

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.