-
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
Peloton Wiring Troubleshooting #48
Comments
Hi @barrettec777 -- Let's start with a few easy things:
|
Hey @jeremydk, thanks for your help!
Note: Enclosure for PI currently en route. 😅 |
So - I just figured I'd give the reverse a try in case the wires were switched up or something... Bike --> RCA white --> RCA coupler --> RCA red --> Serial USB adapter --> MicroUSB adapter --> PI. Now I'm seeing some data coming in. Example:
Peloton still receiving stats just fine. It seems as though this is more periodic/continuous - I'm not sure if spinning the pedals has any significant effect on the data / volume of data. Gymnasticon also isn't picking anything up in its log (via journalctl), still just the same as before:
So at least this is some potential confirmation that data is being sent from the USB decoder? |
Okay, no data coming in off the USB device at all means we can focus only on the cabling. The path you described sounds correct -- I'm curious about the splitter at this point. Can I get a photo of the Y splitter itself? I'm curious if it's TRS or TRRS (a picture of the male plug sides would confirm that.) With the reversed direction, you might be seeing the "polling" from the tablet to the bike, which Gymnasticon itself will throw out. Also worth noting that the different USB serial devices might put Tx/Rx on Tip/Ring differently. We need to ensure that we're mapping the serial's RX to the Bike's Tx, and leaving the serial's TX floating. If you're seeing the tablet's Tx, we need to flip the wire on the bike side. You might actually need RCA red to RCA red for your specific usb serial model |
So going from Bike --> RCA Red --> RCA Red --> Serial produces the same result as the switched config above (consistent data regardless of pedaling). I don't see anything coming in on gymnasticon. Here's that config: I believe that my Y cable is just TRS. It's this one from Amazon. Should it be TRRS? Just for completeness sake, going from RCA White --> RCA White produces no data at all (so the same result as the first configuration as directed in your original post). Edit: These are the 3.5mm --> RCA Stereo adapters that I have. I think they're the same as the ones you used. |
TRS is good and correct -- I'm glad that we can dismiss that as a worry.
We can infer that serial "red" is your Rx pin since we are seeing data flowing. We should be able to confirm that with the product listing as well. For kicks, can you flip the connections on the splitter? From what I'm seeing, things should be okay. I might need to throw together a debug/raw mode build to help troubleshoot things like this in the future The full chain is that: Tablet sends REQUEST frame to Bike. Bike sends CADENCE or POWER frame to Tablet, we snoop the Bike Tx via serial RX + splitter, and decode the frames. We shouldn't see the tablet REQ frames because they'd be on the other wire. Lemme pull a PR together to add some deeper logging from a gymnasticon perspective as we continue to look at this. |
Awesome - thanks for your help, man. I switched the connections on the splitter, same result. Also - I tried wiring this up: I think this accomplishes what we want, no? Does that look correct? Maybe this'll help with the troubleshooting. When connected such that Bike --> RS --> TS --> USB Adapter, I see a significant increase in data compared to before (regardless of pedaling), but nothing from gymnasticon. When I turn my cable around (Bike --> TS --> RS --> USB Adapter), I see no data. |
That should help as well, since we can actually tightly control the connections and iterate through. I've got a PR up at #49 -- setting the NODE_DEBUG environment flag to "gymnasticon:bikes:peloton:trace" with that build will start to log the raw messages from the bike or tablet. |
Awesome. Sounds good - will try when the pr gets through. |
Hi, I am really new here. I tried this nice project out but it seems I have a problem with the cabling. |
Most USB serial devices should be fine -- the biggest question is if they are Tx/Rx Tip/Ring or Ring/Tip -- you need to ensure that the receive pin of the serial is connected to the transmit pin of the Bike (not Tablet). I can offer advice, from afar, but this is hard to walk folks through due to their own personal setups. |
Built a little switch box per the diagram above today and can validate that it works with the recommended USB serial device. For folks having trouble, please validate the Rx/Tx pinout of your USB Serial device, and ensure your wiring matches the diagram above. |
@Harti-801 @barrettec777 Are you still having problems with the cables? |
thanks to the diagram I could double check my cabling, I found no mistakes here. |
i bought the recommended cables but the rca connectors from monoprice are still in transit so i cut and resoldered the serial cable, reversing the tip and ring wiring (and shortening the cable to a reasonable length). i have both tx and rx connected and no connection to the peloton tablet to use the direct polling from gymnasticon. gymnasticon connects ok to trainerroad on my laptop but there power and cadence stay at 0 when pedaling. i went back and rechecked my soldering with a multimeter and it turns out the rx was initially connected to the ring so i cut the wires and resoldered back the way they came with the white wire connected to the ring, the green connected to the tip, and the black to the sleeve. i still get no data from gymnasticon. i have another 3.5mm coupler coming, although the one im using has worked in other uses. i also have a replacement usb to micro usb adapter en route. i flashed the most recent gymnasticon version (as of 2/25/2021). does the direct polling function automatically or did i miss a step? i dont have the right splitter right now (or the rca cables / coupler to disconnect the tx side) to check. *edited to remove link to incorrect decoder |
Please try turning on the trace logging, as well as giving us the output of It isn’t feasible for us to begin to troubleshoot without understanding if this is a physical wiring issue or a software one. Direct polling is a default behavior, so this is either a wiring issue or a setup issue with the USB serial. |
It looks like you purchased a USB to TTL adapter, not an RS232 as linked.
The voltages (among other things) differ (3.3v vs 5), and it is unable to
read the signals from the Peloton bike.
Was helping someone else via Facebook where we discovered they made the
incorrect purchase as well.
…On Sun, Mar 7, 2021 at 5:35 PM chaloney ***@***.***> wrote:
unfortunately my raspberry pi skills were limited to creating an XMBC
server about 7 years ago so I need more guidance than that to give you
useful information. i have tried every combination of connections possible
with the RCA cords/coupler both with a "just ride" running and without,
with the serial decoder i mentioned above and with a new, unaltered one.
power and cadence remain at 0/0 (using trainerroad as that is why i am
doing this).
i know i saw a mention of trace logging somewhere on the github but i
cannot find it now.
[image: File_10]
<https://user-images.githubusercontent.com/79726549/110263397-89d85980-7f84-11eb-9155-8ecea073d713.jpeg>
this is while the pi is connected to the bike, both tx (tip) and rx (ring)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAM6M67NGWIBMWY4YW3MU3TCQSXZANCNFSM4XN4WDDQ>
.
|
the first purchase was from the amazon link kevtainer posted in the peloton bike decoding pull request, obviously the seller changed the item. it looks like the link is in stock again with the correct ("not ttl" description) will try again. thanks. the second decoder i bought from the link in my first post is the same pcb with the same chip as the first one. hopefully better luck this time. thanks for your help |
You’re specifically looking for rs232, and as long as it says that you
should be good to go.
…On Sun, Mar 7, 2021 at 6:16 PM chaloney ***@***.***> wrote:
the first purchase was from the amazon link kevtainer posted in the
peloton bike decoding pull request, obviously the seller changed the item.
it looks like the link is in stock again with the correct ("not ttl"
description) will try again. thanks. the second decoder i bought from the
link in my first post is the same pcb with the same chip as the first one.
hopefully better luck this time. thanks for your help
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAM6MZRYRNQCNJAPWJMSHLTCQXRDANCNFSM4XN4WDDQ>
.
|
the original link now specifically says rs232, "not TTL" i dont know if it said that the first time i ordered but whatever it said, they sent me the wrong thing. now i know what to look for. thanks. |
New cable works! Thank you!! |
Fantastic -- glad that worked out!
…On Thu, Mar 11, 2021 at 6:30 PM chaloney ***@***.***> wrote:
New cable works! Thank you!!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAM6M2GBL7HZWWEF6P5SLTTDFVCFANCNFSM4XN4WDDQ>
.
|
Hi Everyone, How do I enable the NODE_DEBUG variable? Is that just export NODE_DEBUG="gymnasticon:bikes:peloton:trace" and then just restart Gymnasticon? Where I do see the logging from that and what other helpful logs can I provide? Thanks! |
I'm not sure if anyone is still paying attention to this but I had a question - I have this working currently on Zwift and with peloton as well but I need to unplug one of the RCA cables for it to work on peloton. This isn't really a problem but I just want to get a better understanding. My hardware understanding is pretty minimal so I'm not sure if I can describe this correctly. Basically, I think I kinda get why it doesn't work with peloton as the data going back on the receiver cable is messing things up and that I've seen mentioned in a couple places on here. What I don't understand is why it doesn't output power/cadence without both cables plugged in. If I only hook up red to white as is shown by most of the images here I see 0w and 0 cadence. I tried ever other combination with only one cable and its the same thing. The only thing that works is red to white and white to red both plugged in. I don't understand this as, with my basic understanding, the only thing that matters is that peloton is transmitting to the pi and anything going back to peloton shouldn't matter and in fact causes problems when using the peloton software. Can anyone shed some light on this? |
Originally posted by @barrettec777
I think I might be having a similar issue. Here's my gymnasticon log (from my raspberry pi zero WH).
Gymnasticon connects just fine to Zwift on my phone/ipad. But I see nothing more in the log when I pedal, and no response in Zwift. When I disconnect from Zwift, I see this (which may very well be expected behavior):
Feb 10 09:22:14 gymnasticon gymnasticon[269]: noble warning: unknown handle 64 disconnected!
I have the same RCA cabling setup as shown in the first issue as well as in this one, but I use a UGREEN USB to MicroUSB adapter to connect the USB-Serial decoder to the pi zero. I have a regular Pi 4 coming in the mail in a couple days, so I'll give that a try as well.
I do have a multimeter if there's something you'd like me to check. I did a quick connection check myself and it does appear that the RING and TIP are indeed swapped.
Edit: This was with a scenic ride started and a bit of pedaling.
Originally posted by @barrettec777 in #21 (comment)
The text was updated successfully, but these errors were encountered: