-
Notifications
You must be signed in to change notification settings - Fork 39
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
added peloton bike decoding service #12
Conversation
I'm waiting on delivery of my coupler, but I'll document my setup as I go to help drive the efforts here. |
PS. I haven't written Javascript in any serious capacity since roughly 2014, and even then I was terrible at it. My apologies in advanced. |
Hi, sorry for the slow reply here, have been away for a bit. I know this PR is still in Draft but just wanted to say this looks super exciting! |
Bike is currently off, so these are empty buffer reads, and we should cut down on the extra work being done to parse, process, and log these messages for cleanliness. |
Additionally, for ease of use, rather than soldering, using the same USB to Serial part mentioned above, I've had success with: 1x 7238 Monoprice 2x RCA Jack to 2x RCA Jack Adapter, Gold Plated |
Taking the changes from #15 helped with the cadence accuracy, but I could still see a visible lag between the Peloton display and Zwift/TR/Garmin. In |
@notsureifkevin @ptx2 Given that this has sat in draft for a month now, do you want me to fork this and push toward merging? |
@jeremydk Thanks, got a message about this yesterday on reddit as well. I'm now using an ANT+ stick and commanding the sensor package on the bike without the head unit. all that's necessary is swapping over the TIP/RING wires and use ANT+ is sort of messy so I never brought those changes over to this project. ANT+ is nice though because multiple devices are able to receive the data. Anyways, I'll clean this PR up and get it ready to merge. |
Once this is shipped and merged, it might be cool to look at merging in the request path as well under a cli flag since it would allow people with a broken tablet to continue to use their Peloton. I'd also be interested in maybe exploring ANT+, but I think that may boil down to @ptx2 's vision for the project, and if we should refactor around an abstract Interface type. |
Thanks for submitting this @notsureifkevin! At a glance this looks good to me, I'll have a proper look tomorrow morning. One quick question though: any thoughts on @jeremydk's proposed change above about reducing log messages / lag? |
I’m happy to do a PR after as well; this will let me rebase and validate
against the other commits.
…On Tue, Oct 6, 2020 at 7:59 PM ptx2 ***@***.***> wrote:
Thanks for submitting this @notsureifkevin
<https://github.com/notsureifkevin>!
At a glance this looks good to me, I'll have a proper look tomorrow
morning. One quick question though: any thoughts on @jeremydk
<https://github.com/jeremydk>'s proposed change above about reducing log
messages / lag?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAM6MYJCF77WFM73TFOWL3SJPKRXANCNFSM4Q5A4NKQ>
.
|
@notsureifkevin / @jeremydk fantastic that Peloton support has been added. I've got the Mac branch with master merged in working with Peloton/Zwift with my 16 inch MBP. I now need to hook up the cables to the peloton to see the power/cadence and wondered if there was any reason that replacing the RCA phono cables/RCA coupler for a 3.5mm female coupler wouldn't work? |
Two things: you need to flip the Tip and Ring (with the RCA, that’s the
cross wiring), and leave the Tx side from the serial disconnected or you’ll
disrupt the communication between the tablet and the bike.
…On Wed, Oct 14, 2020 at 2:45 AM vodlogic ***@***.***> wrote:
Additionally, for ease of use, rather than soldering, using the same USB
to Serial part mentioned above, I've had success with:
2x 7238 Monoprice 2x RCA Jack to 2x RCA Jack Adapter, Gold Plated
1x 5612 Monoprice 6in Premium 3.5mm Stereo Female to 2x RCA Male Cable,
22AWG Gold Plated, Black
1x 30897 Monoprice Onyx Series Auxiliary 3.5mm Stereo Jack to Two 3.5mm
Stereo Plug Cable (Gold Plated), 6 inch
[image: 119198591_10110895062000318_4048965111995435773_n]
<https://user-images.githubusercontent.com/12635955/93815957-b0d7e480-fc0b-11ea-9554-9e8c3c1f1598.jpg>
@notsureifkevin <https://github.com/notsureifkevin> / @jeremydk
<https://github.com/jeremydk> fantastic that Peloton support has been
added. I've got the Mac branch with master merged in working with
Peloton/Zwift with my 16 inch MBP. I now need to hook up the cables to the
peloton to see the power/cadence and wondered if there was any reason that
replacing the RCA phono cables/RCA coupler for a 3.5mm female coupler
wouldn't work?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAM6M5TE4RN6AH4RRQU5U3SKVXMJANCNFSM4Q5A4NKQ>
.
|
OK thanks for the tip, will see how things work with the same setup... |
Thanks for doing this! Not sure sure if this is the correct place to ask a question regarding the peloton but, is there anything unique about the 3.5mm splitter in use here? I have the serial cable re-wired with what looks/sounds correct and can get my devices to see the power meter coming from the rasp pi but no data is being read. I'm assuming there is something wrong with my cabling. |
Do you have a class loaded? The Peloton Tablet will only start sending data
with a class (at the start screen, or later).
Does the tablet show data still? If you’re not seeing data to the tablet,
that usually means your tx is still connected.
Finally, your splitter might be TRRS rather than TRS, which I didn’t test
with.
…On Wed, Oct 14, 2020 at 9:59 AM miked4499 ***@***.***> wrote:
Thanks for doing this! Not sure sure if this is the correct place to ask a
question regarding the peloton but, is there anything unique about the
3.5mm splitter in use here? I have the serial cable re-wired with what
looks/sounds correct and can get my devices to see the power meter coming
from the rasp pi but no data is being read. I'm assuming there is something
wrong with my cabling.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAM6M2QNIS5I47T5LJ4P2LSKXKI5ANCNFSM4Q5A4NKQ>
.
|
Yes, I was launching a "just ride" session. I noticed that if I have one end of the splitter connected to the bike, I get data on the tablet, if I swap connections on the splitter I get no data on the tablet. Which is why I'm thinking its the splitter. For reference , these are the two splitters I've tried - Thanks for the assist |
Can you take a similar picture to the one I posted with the parts list
above? The exact wiring i have shown is critical to make this work.
…On Wed, Oct 14, 2020 at 10:12 AM miked4499 ***@***.***> wrote:
Do you have a class loaded? The Peloton Tablet will only start sending
data with a class (at the start screen, or later). Does the tablet show
data still? If you’re not seeing data to the tablet, that usually means
your tx is still connected. Finally, your splitter might be TRRS rather
than TRS, which I didn’t test with.
… <#m_-751417690062948692_>
On Wed, Oct 14, 2020 at 9:59 AM miked4499 *@*.***> wrote: Thanks for
doing this! Not sure sure if this is the correct place to ask a question
regarding the peloton but, is there anything unique about the 3.5mm
splitter in use here? I have the serial cable re-wired with what
looks/sounds correct and can get my devices to see the power meter coming
from the rasp pi but no data is being read. I'm assuming there is something
wrong with my cabling. — You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#12 (comment)
<#12 (comment)>>, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/ADAM6M2QNIS5I47T5LJ4P2LSKXKI5ANCNFSM4Q5A4NKQ
.
Yes, I was launching a "just ride" session. I noticed that if I have one
end of the splitter connected to the bike, I get data on the tablet, if I
swap connections on the splitter I get no data on the tablet. Which is why
I'm thinking its the splitter. For reference , these are the two splitters
I've tried -
https://www.amazon.com/gp/product/B073ZDDTH2
https://www.monoprice.com/product?p_id=30897
Thanks for the assist
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAM6M5EMBIXAO274F2LV4TSKXLZBANCNFSM4Q5A4NKQ>
.
|
Sure can. I'll do it tonight. |
Created a bucket Issue to discuss these cabling issues such that we can let this PR settle. |
#22 Referencing this issue for advice on sideloading Zwift on the Peloton bike |
This PR will introduce Peloton bike support with the following caveats:
serialport
node package (build-essentials
,python
)Things left to do:
Credits to @jeremydk for helping solve the encoding format mystery