16 ms·
Unbricking a $2k bike with a $10 Raspberry Pi
- mikece 6y agoAwesome project. I wish more smart devices offered a “run it locally on a Pi if you’re paranoid or a control freak.” I avoid IoT devices in general because I have no idea where the data is being stored, if it’s stored securely, or if it’s being sold. I prefer to manage this all myself.
- foxrob92 6y ago>I wish more smart devices offered a “run it locally on a Pi if you’re paranoid or a control freak.” Wouldn't that defeat the purpose of the "smart device" (from the manufacturer's point of view)? The business model often seems to be locking you in to a subscription (rent seeking) or selling your personal information (surveillance capitalism).
- Johnny555 6y agoThis is the reason I bought a Keiser bike instead of a Peloton, it has a simple display that works with Bluetooth sensors (I use my watch to record my sessions). I use the Peloton app in an iPad (I could pair the bike with the iPad app, but don't). The bikes are about the same price, but the Keiser screen is a simple LCD display that's much cheaper to replace if it gets broken and is fully usuable without a subscription. Plus, I think the bike looks better. https://www.keiser.com https://www.keiser.com
- troydavis 6y agoI did the same and my Keiser M3i has been fantastic. Their GitHub repos are current and their lead developer actually answers implementation questions: https://github.com/KeiserCorp https://github.com/KeiserCorp When I'm considering buying a smart device that I'd be uncomfortable throwing away if/when the company ceases support, I ask them beforehand: Is there an open API and/or SDK? Does code or protocol escrow exist? This saved me from buying a smart watch and a smart ring. The manufacturers seemed healthy at the time but were bankrupt or acqui-hired and shut down within a year.
- mttjj 6y agoHmmm. Both of you are getting me very close to pulling the trigger on the M3i. Just so I’m clear, you have to buy the “M Series Converter” bluetooth device as well so it can connect to 3rd party apps, correct? Or I could just record an Indoor Cycling workout manually on my Apple Watch, right?
- emb-fit 6y agoMentioned some of this in another comment: "It's a $2k training bike. You could spend $1k and get a really nice brand new road bike and a smart trainer that controls resistance like a Wahoo Kickr Snap (or several others) for ~$500." That being said the M3i seems to be one of the more flexible options if you are gonna go the stationary bike route.
- Johnny555 6y ago$1K would get a decent road bike, but not really one I'd consider "really nice". I have a really nice road bike, and a decent steel framed commute bike. I've used both on a trainer, but it's not the same feel as a spinning bike, particularly when standing up and cranking hard on the pedals. A good spinning bike will last a decade or more with little maintenance, but you'll be changing tires often on the road bike trainer as well as all of the other maintenance that comes with a bicycle. You can get a good workout on a bike+trainer and if that's all your budget (or space) allows, it's a good option, just don't expect it to be a spinning bike.
- troydavis 6y agoSomeone else answered your question, but I’d add that I previously owned a Sunny SF-B1002 “dumb” belt drive spin bike for about $350 and it worked great. It’s 90% as good for much less money. I only upgraded because I use it a lot and wanted a couple M3 features (infinite frame geometry adjustment and numbered/repeatable resistance control), or I’d still use the Sunny.
- Johnny555 6y agoI had to get the converter to sync with my (Garmin) watch, so I imagine that you'll need it to pair with apps. It wasn't really clear whether I'd need the converter or not, but turns out that I did -- I figured I'd return it if I didn't need it. I haven't actually tried pairing it to my iPad or other devices.
- TaylorAlexander 6y agoJust wanted to plug repair.org who is working to protect actions like this (I have no connection to the org). You can join as an individual member to support their mission financially: https://repair.org/individual-supporter-membership https://repair.org/individual-supporter-membership
- noodlesUK 6y agoIt’s a shame that more exercise bikes don’t have open APIs. Zwift is an absolutely awesome way of keeping in shape if you like cycling, but the barrier to entry is that you need to own a bike and a bike trainer that are both pretty expensive. Maker projects like this one always make me happy, because it’s repurposing an old piece of equipment to function just as well as a new one. Next step would be adding smart controls to the resistance ;)
- fortran77 6y agoIt may have been possible or the company to post the API publicly after Peloton shut them down without incurring any further legal liability. That would have been a responsible thing to do...and a way of getting back at Peloton.
- soared 6y agoOpen apis pretty much ruin honest competition, leaderboards, live races, etc. People already game metrics on their pelotons to get top 10 in races, and I don’t think companies want to deal with that on a larger scale. It’s a great idea, but I don’t think it’s always the right idea.
- newsclues 6y agoClosed systems are unhackable or cheat proof? I don’t think so
- _jal 6y agoIs your dwelling impossible to break in to? I don't think so. I also think it doesn't have to be.
- TeMPOraL 6y agoYour dwelling's locks also have an open API (well, HPI) - most commonly, you stick a funnily twisted bit of metal into it, and then turn it until it unlocks. There are many things that make regular locks effective at preventing unauthorised entry to your house. Ability to access the lock is not one of them, and neither is knowledge about its principle of operations.
- gkoberger 6y agoThat's horrible that Peloton was able to do this. Maybe there's more to the story, but it seems like the court allowed them to shut down a competitor for simply building a similar (relatively obvious) product? In fact, the CEO of Peloton had the idea for Peloton... IN A FLYWHEEL CLASS. That's insane.
- xsmasher 6y agoClicking through the Verge links it sounds like Peloton had a patent that Flywheel infringed on. We'd need to do a lot more reading to have on opinion on that case.
- gkoberger 6y agoHere's the best article I could find on it: https://www.vice.com/en_us/article/qjdz7v/project-magnum-flywheel-peloton-patent-lawsuit https://www.vice.com/en_us/article/qjdz7v/project-magnum-fly... I agree that Peloton had a patent. My argument isn't a legal one (clearly, legally speaking, Peloton was in the right). I just think it sucks.
- stefan_ 6y agoThese are the patents I assume: https://patents.google.com/?inventor=john+foley&assignee=peloton&oq=john+foley+peloton https://patents.google.com/?inventor=john+foley&assignee=pel... They are as absurdly simple as you would expect, so I assume Flywheel simply didn't want to/had the money to fight this. Like, here is the ultra-obscure "KETTLER World Tours" in 2018 having you race online against others on archived footage retrieved over the internet: https://www.youtube.com/watch?v=7YfhyDrp5Yg https://www.youtube.com/watch?v=7YfhyDrp5Yg
- toomuchtodo 6y agoIs there enough prior art to bust the patent? I’d be interested in donating to the EFF specially to invalidate this patent. https://en.wikipedia.org/wiki/Patent_Busting_Project https://en.wikipedia.org/wiki/Patent_Busting_Project
- 6y ago
- jdechko 6y agoSome interesting info here. I have a Garmin speed sensor and a “dumb” mag trainer (CycleOps Mag). Given the trainers known resistance curve, I was thinking about trying to come up with a script to approximate power based on speed. Basically I want a home brew alternative for Zwift and TrainerRoad virtual power.
- rconti 6y agoThat would be a cool project. Do you already know the resistance curve, or you're just saying SOMEONE knows it? I'd worry that it would be impacted by heat, but perhaps not significantly. I've got a Peloton, have a Stages power crank on my road bike, and previously had Favero Assioma power meter pedals (highly recommended product BTW). I ran the pedals on the Peloton for a few rides to get a feeling for how close the calibration was. (surprisingly close, in my case).
- jdechko 6y agoSaris (now owner of cycle ops) has an approximate graph on their blog. It’s probably not very accurate, but I could probably get close enough by taking some “known” points, some approximations and applying some math to the problem. The other option is to see if I can dig into the zwift or trainer road code. Both of those applications support “virtual power” for this specific trainer. Which is another way of saying that SOMEONE knows it. I’m sure that Saris actually shared the exact curve with Zwift and Trainer Road, but I’m not sure they’d share it with me.
- ChuckMcM 6y agoThis is a great reverse engineering project. What it points out to me, painfully, yet again, is that cool stuff can actually do everything its bought to do without a "monthly service fee." And yet here we are.
- arkanciscan 6y agoAn escalator can never break: it can only become stairs. You should never see an Escalator Temporarily Out Of Order sign, just Escalator Temporarily Stairs. Sorry for the convenience. Mitch Hedberg
- mschuetz 6y agoThey can fail quite spectacularly: https://www.youtube.com/watch?v=o1SjQfwLieU https://www.youtube.com/watch?v=o1SjQfwLieU
- deleted 6y ago[deleted]
- anticensor 6y agoWe have a much shorter expression in my mother tongue, Turkish: we call stairs "merdiven" and escalators "yürüyen merdiven", so "Escalator Temporarily Stairs" becomes "yürümeyen merdiven".
- anonymousiam 6y agoYou left out step 3 on your ToDo list: 3) Spoof the data to the social media apps and make yourself into a super-human athlete! (Probably best done with a different account.)
- deleted 6y ago[deleted]
- flak48 6y ago> A simple fix is to just use the previous power value if ever: the cadence is non-zero and the previous power is non-zero and the current power is zero. A slight improvement is to keep track of the slope and factor it in when calculating the predicted value. Looks like somebody rediscovered the Kalman filter without realising it :) I recall implementing one for an IoT device, to de-noise gas sensor readings a few years ago. Pretty fun read. Makes me wish I could gather the courage and patience to get back into hacking on embedded stuff
- ohazi 6y agoProducts like this make me furious. Selling a product whose interface/API/whatever is deliberately obfuscated so that the manufacturer also has a monopoly on a subscription service or an app for said product is blatantly anti-consumer, anti-competitive, anti-environment, and should be illegal. Fuck Peloton. Fuck Flywheel. Fuck all the proprietary IoT companies. And apparently fuck me for having the gall to want to control my air conditioner from my computer rather than GE Android app #12 that has God-knows-what baked in and that's going to be abandoned in two years anyway. Nobody should ever feel like they have to throw out an otherwise functional refrigerator-sized appliance because of software obsolescence. I am absolutely willing to die on this hill. We need a GDPR-sized hammer to fix this.
- DebtDeflation 6y ago>GE app #12 that's going to be abandoned in two years anyway Not merely abandoned, but abandoned with gaping security flaws, no other way to update the device, and an always-on internet connection. We really have not thought this IOT stuff through.
- lstamour 6y agoInevitably the long-term solution is going to be more layers of abstraction. Web application firewalls for every wifi device in your router, for example, or operating systems maintained by cloud vendors (for “edge devices”). If always transmitting connectivity isn’t required, maybe HomeKit-style app-based (offline or app-based updating) devices that use other devices as repeaters which can then be reverse engineered from their apps (largely illegally in many countries). I don’t think we’ll see open specs unless Apple or Google or government make a significant push, or a future large-scale chipset manufacturer uses open source as a way to both get customers and maintain long-term support for their chips. But we know how well GPL works with most hardware (poorly, unusably, etc.)
- TeMPOraL 6y agoWhat worries me is not layers of abstraction, but layers of control. Who owns that WAF? Who owns the apps? And if it's not user that owns it in practical (control) sense, then I hate it already and personally won't buy it.
- gojomo 6y agoDrat, I was hoping this would also have a recipe for unlocking/reinitializing the attached Android-based tablet, on some of these bikes. Then it could run other biking apps - or just provide reading/music while riding. (Maybe even: it could do the BLE translation?) The community hasn't figured out how to root the tablet, yet, but there are some hints as to the manufacturer/boot-launch-software – https://www.reddit.com/r/FlywheelAnywhere/comments/gexqte/has_anyone_wiped_the_software_on_their_flywheel/fq1wz19/ https://www.reddit.com/r/FlywheelAnywhere/comments/gexqte/ha... – if anyone has any ideas or is interested in a challenge.
- sagz 6y agoI'm trying to create an Android recovery for a peloton, which is similar https://github.com/Goayandi/mediatek_mt8176_development/issues/1 https://github.com/Goayandi/mediatek_mt8176_development/issu...
- amluto 6y ago> First, the node binary needs permission to advertise Bluetooth services: > sudo setcap cap_net_raw+eip /usr/local/bin/node Use AmbientCapabilities= in the unit file instead.
- ptx2 6y agoThat's much better, thanks for the tip!
- olliej 6y agoWow, I love expensive equipment that can’t work once the company goes out of business. If you want to have a subscription based hardware device the hardware should be free.
- einpoklum 6y ago> a $2k bike Maybe that's your problem right there. Get a simple bike, leave the house (ok, I know there's Corona, I didn't say congregate), find someplace planar, and cycle in the real world. In Amsterdam, a decent used bike will cost you the equivalent of 80 USD, maybe less.
- syshum 6y agoAmsterdam also has a large public cycling culture, with a public infrastructure to support public cycling It also has a climate geared more towards outdoor cycling. Not everyone has one or both of those factors, making indoor cycling more reliable, safer, and more enjoyable
- jasonvorhe 6y agoIf he's using such a training bike with the intent of using a service such as Zwift, I'd expect the author to already have a decent road bike and that the training bike is more of bad weather, winter and easy access to fitness workouts without having to deal with traffic. But even if he doesn't have a bike yet, he most likely would ride a road bike and you don't that for bucks. I agree though, riding bikes is extremely underrated, no matter where you live.
- ggm 6y agoWas it really "bricked"
- askvictor 6y agoNo; this is hyperbole, and cheapens the meaning of the word bricked. It's core function still worked perfectly. The app no longer works. The app was always a subscription service. There was an offer to swap (for free) with another bike, which continues to let you pay to another subscription service for similar or better functionality. I'm all for hacking your gadgets, and open APIs, but let's get a sense of perspective.
- ggm 6y ago"I reverse engineered the data feed protocol on my spinner" would have made me click.
- userbinator 6y agoIt's interesting to see the discussion here focusing mainly on "open from the producer/manufacturer" side, when what I think is the really important point here is that "opening from the consumer/user" side can be easy and empowering: companies and services will come and go, but your ability to take control effectively depends only on your willingness to discover and explore. I avoid a lot of "smart" products in general, but feel comfortable with working on the equipment I do have --- whether it's maintenance, repair, or modification --- and I think that's the most important thing to keep in mind; to not be scared of treating things as anything other than mysterious black boxes. It seems that a lot of people treat "reverse engineering" as some equally mysterious and imposing idea, when it's really just about problem solving or figuring out how something works. Also, I don't think the RPi is necessary here; the bike is a Bluetooth device, so any computer with a Bluetooth interface can receive its data and process it. I'm not an RF expert, but rebroadcasting BT seems like it would create more interference.
- ohazi 6y ago> your ability to take control effectively depends only on your willingness to discover and explore. This should be the limiting factor, and this is often the case when a product was designed sensibly and the interface just wasn't documented. Reverse engineering a device like this is relatively straightforward. But more often, companies deliberately obfuscate, encrypt, or booby-trap their interfaces in order to actively prevent reverse engineering, and this is the reason for the frustration you're seeing in the other comments.
- usrusr 6y ago> Also, I don't think the RPi is necessary here; the bike is a Bluetooth device, so any computer with a Bluetooth interface can receive its data and process it. I'm not an RF expert, but rebroadcasting BT seems like it would create more interference. The rebroadcasting is done because the goal was to get the data into a proprietary piece of software that expects data to come in over Bluetooth. And rebroadcasting will actually be just fine on the air medium because right after receiving is exactly the time when the bike won't send another message. The RPi is complete overkill of course, a tiny $3 nRF52 module could do that job just fine.
- 6y ago
- Zigurd 6y agoThere are other machines, like rowing machines, for which an open solution is hard to incentivise, since the machine, the app, and the sensors will all come from a single vendor. I'm a little surprised, however, that Peloton, and Peloton-alikes ever happened because cyclists have training devices with open interfaces: Bikes, mounted on smart trainers that have standardized wireless links and protocols, connected to a choice of apps. All it takes is taking the rear wheel off a bike. Or not even that for the most basic trainers, which clamp the rear axle and provide resistance to the rear tire. A fascinating case of a market segmentation that is less susceptible to being breached than one might think.
- jasonvorhe 6y agoI have one of those Tacx trainers where you just put your bike in. It's a hassle. You need to use their own quick release to hold the bike in place. The cord with the gear shifter (which sets the resistance) is always somewhere where it's annoying the rider and the shifting control itself doesn't fit on all handle bars. It's also really noisy. I have been tempted very often to just buy one of these ready to use training bikes because of the frustration of: put some yoga mat cut-outs underneath the Tacx to suppress the vibration of the spinning weight, get the bike from the cellar, exchange the quick release, store the old one somewhere where it's not getting lost, put the bike in place by its rear wheel, place the front wheel in a fixed position, get a fan to put in front of the bike trainer, mount the gear shifter, which clumsily hangs on the handle bar because my handle bar is too big. (It's a standard road bike handlebar) Did I mention this thing was really loud? I'm also sometimes worried about the fixed pressure on my carbon frame but I think that's actually unreasonable.
- kingosticks 6y agoBut they are quite cheap and they fold away. The next tier up 'wheel-off' trainers are much quieter. But you've still got all that faff (add chain oil to the mix when taking the rear wheel off) of getting the bike upstairs, the wheel off, mat down (for the sweat), positition the fan etc. But I don't have a load of space so a dedicated exercise bike is a complete no. By the way, clip the resistance switcher on the top of your front wheel rather than your handle bars. Fits well there and is out of the way but still reachable.
- p1esk 6y agoWhy would a bicycle need a subscription service?
- vikramkr 6y agoReading into this - flywheel apparently stole patented ideas from peloton including streaming on demand exercise classes? And that's why their service is shutting down? How is that supposed to be a protectable/patentable concept? That sounds like some first class patent trolling at face value.
- ponker 6y agoIt wasn’t just patent infringement — they stole corporate documents and assets from Peloton Levandowski-style. There are other companies doing exercise streaming like Mirror which haven’t had to shut down so I don’t think this is some kind of massive patent roadblock for the industry.
- forgingahead 6y agoImagine inventing the wheel and expecting that in the distant future, the wheel itself would stop working because of a stupid reason like this.
- Wolfenstein98k 6y agoI'm fairly open-minded, but sometimes a product comes along and blows me away with how preposterous its central pitch is. And then I discover there is actually a market for it, and I am further dismayed... And amazed at the robustness of Say's Law. Anyway, this bike and the whole associated product is preposterous.
- layoutIfNeeded 6y agoThere are standard BLE GATT attributes for reporting power output, cadence, etc. from indoor bikes (and tons of other standards for other fitness appliances, smart scales, blood sugar measurement devices, etc.). If the vendor had used these standard attributes there won’t be any need for reverse engineering their protocol. Moral of the story: choose appliances that support standard protocols.
- Bloggerzune 6y agoHow To make Money Without Investment How to make money online without investment in home,earn Money on blogging, earn Money on Fiverr,make money writing online,How can I make money online fast and easy without investment,how to earn money online without paying anything https://www.bloggerzune.com/2020/06/make-money-online-without-investment.html https://www.bloggerzune.com/2020/06/make-money-online-withou...
- Maha-pudma 6y agoThe 2k exercise bike aside, this is a brilliant article. I love reading stuff like this and wish I had the smarts/knowledge to do this sort of thing.
- vilesolid 6y agohttps://vilesolid.com/how-to-make-10-dollars-a-day/ https://vilesolid.com/how-to-make-10-dollars-a-day/
- Fricken 6y agoIf the bike doesn't take you anywhere when you pedal it, it's still a brick.
- m00x 6y agoThis is the kind of article I love to see on HN. Someone had an issue with a product and solved it using clever technical skills and deep dives.