10 ms·
As winter approaches, here's a story about why hardware is hard
- nixpulvis 4y agoReminds me of the time I bought a new iPhone and the touchscreen didn't work properly when it was below about 20 degrees. Leave it to Californians to forget that winter exists.
- ghaff 4y agoIn fairness, it's generally known that a lot of consumer electronics have problems in freezing weather unless they're protected somehow (e.g. kept in an inner pocket) if only because of the battery. Some of it is possibly California designers not being especially focused on the sub-zero use case but it's also not clear how much focus there should be on that use case in general if there are costs (money, physical specs) associated with doing so.
- nixpulvis 4y agoLet's see... does the object go outside? If yes, it will probably experience below freezing temperature. This isn't rocket science. Now, if you happen to be OK with selling a product that isn't reliable, now's a good time! I still need some more toys for the holidays.
- ghaff 4y agoMaybe you should start up your 40 below Android phone company. Enjoy!
- Dylan16807 4y agoMost people don't strongly mind keeping the phone warm in a pocket. There's a difference between experiencing very cold temperatures and reaching them.
- khiqxj 4y agothe field of engineering exists so that these types of problems are known by nature of what subfield you are working in so that you can use your expertise at the time of design to avoid such problems. COTS (TM) isnt a scapegoat either. dont buy bad components. electronics and mechanics are hundreds of years old. you should have seniors in your company that know which vendors are reliable. if you are a startup, you still should have attended a university that explained the meta to you. im sure most software engineers who think they can just use some random lib written by some geek and inherit the bugs from it will disagree
- h2odragon 4y agoWonder what the chances are that the first iteration of "problem solved!" actually was a lurking problem that would've bitten as well, sooner or later.
- joezydeco 4y agoAny developer, hardware or software, will tell you that reproducibility is the key to solving a problem. But reproducibility can be vague and sometimes, when you're under pressure, you can be quick to point to something and declare "aha! that's the root cause!" and be totally wrong.
- JoeAltmaier 4y agoOr even be totally right, but there's more to the problem. Peeling the onion. We hope that fixing one piece of code will solve three or four exhibited problems. But it's often more like, change three or four pieces of code to make one problem go away. As Heinlein is purported to have written, "If it's not one thing, it's two things."
- eesmith 4y agoI've read about 98% of everything Heinlein published[1], and don't recognize that quote. An archive.org search find a few examples, like this 1979 Harlequin short story https://archive.org/details/romanticshortsto00harl/page/30/mode/2up?q=%22two+things%22 https://archive.org/details/romanticshortsto00harl/page/30/m... If Heinlein did use a phrase like it, I expect my searches would have found it. It doesn't appear to be a common saying, so I'm curious how you acquired the association between it and Heinlein. It doesn't seems like a common misquote people end up spreading. [1] I've only read "Tramp Royale" up to the point where they left the US, I haven't read the "stinkeroos", nor his posthumous novels, nor most of what Wikipedia lists under "Other short fiction", nor a couple more non-fiction publications.
- morphle 4y agoI agree, having read most Heinlein ever published (even including his unfortunate right wing and conservative and unscientific ramblings that wasted my time), I never came across "If it is not one thing, it is two things."
- joshmarinacci 4y ago
- analog31 4y agoI work in hardware. The picture of the freezer with wires coming out under the door gasket, is familiar.
- eschneider 4y agoThank dog there are flat ethernet cables for exactly that purpose. :)
- svnt 4y agoI’m gonna snark on this one. There is no mystery or surprise here. It’s basic functional qualification. You buy or make a thermal chamber and cycle release versions of your device before you ship one. This isn’t some uncatchable mystery, they just didn’t test adequately. Depending on the product size and cost you may also do this to every individual robot off the line. This is not uncommon. This isn’t “hardware is hard” this is “we thought it was software with screwdrivers.”
- iancmceachern 4y agoAgreed. In many more regulated industries (medical devices, automotive, aerospace) the kind of testing you mention is required by law. In all cases it's good form, good practice to test your product to make sure it works as promised by its labeling. Typically you put an operating temperature and humidity range in your manual or labeling. In many industries testing to those operating parameters is required by law.
- greenbit 4y ago"environmental qualification testing", good old EQT.
- KennyBlanken 4y agoOr even just drive down to Lake Tahoe and find a winter construction site and try it there. This is a general problem with all these California-based companies and inventors (especially SV inventors cranking out crowd-funded bike stuff.) They seem blissfully unaware of things like cold weather, water, dirt/mud, and road salt...or combinations of them. I laugh at all those stupid fucking delivery bots because they'll fall apart anywhere there's snow, and get completely stuck on the slightest bit of ice. For many years, driving a Model S in heavy rain would cause water to get into the drive unit via either seals or vents that weren't sufficiently designed to keep water out. It "totals" the drive unit, causing corrosion of the motor control boards. And Tesla denies warranty claims on such repairs, because of course they do - just like they did on the windows that randomly shattered in parked cars. Raise your hand if you've owned a car that had problems with water ingress issues affecting its transmission. Or windows randomly shattering. What's that? Nobody? Exactly.
- gumby 4y agoThis is why I was shocked by Unix producing core dumps (I’d previously gotten my experience on ITS and Lispms where everything ran in the debugger). In a core dump all the IO (network connections, files, etc) is closed while a debugger gives you access to the functioning environment.
- ThrowawayTestr 4y agoTemperature dependent problems are the hardest to reproduce. Often they only occur within a specific range of temps.
- dadadad100 4y agoThat is what freeze spray is for
- nikau 4y agoThere's a reason why car manufacturers validate new models in countries with temperature extremes like Australia and Finland.
- defrost 4y agoIt gets worse; some issues relate not just to a specific tempreture range but also to whether that range is approached from above or below .. and at what rate of temp change.
- TeeMassive 4y ago"Turns out that last year's coupler problems had the same root cause. While people were opening up the robot and tightening the coupler, the robot would warm up. By the time they put it back together, the problem would have gone away. It had nothing to do with couplers at all. By the time we had rolled out the coupler "fix" to all robots, the weather had warmed up enough across the country that the issue didn't reoccur. We thought we had fixed it, when actually spring fixed it." At first they correlated a possible root cause and then after learning from that mistake they finally understood the root cause. I've seen it happen many times where people with not enough time and knowledge to debug a huge system had to resort to shotgun debugging. IME taking the time to understand always ends up 1) solving the problem and 2) saving time and money. This is especially true when the problem is actually caused by two or more root causes.
- rileymat2 4y agoIs there a good name for “two root causes” where they work in tandem? I am blanking on it. Contributing factors? Necessary but not sufficient conditions?
- TeeMassive 4y agoComorbidity.
- itcrowd 4y agoDestructive interference?
- spaceywilly 4y ago2nd order effects
- jasonwatkinspdx 4y agohttps://en.wikipedia.org/wiki/Confounding https://en.wikipedia.org/wiki/Confounding
- askvictor 4y agoEdge case?
- lostlogin 4y agoThought this was going to be about Iran’s drones, with which Russia is smashing up Ukraine. They are reported to be sensitive to low temperatures. https://www.nytimes.com/2022/12/14/world/europe/ukraine-russia-iranian-drones.html https://www.nytimes.com/2022/12/14/world/europe/ukraine-russ...
- dagw 4y agoI met a guy who worked for IBM on the AS/400s. Apparently they had a 'server room' where they could control the temperature and humidity to basically any combination that was likely to occur in the real world and they would test all their hardware there under any extreme condition they could think of.
- dboreham 4y agoAll hardware produced in a professional manner is tested like this.
- todd8 4y agoMy story: my first real job after grad school was at Texas Instruments. It was a good job, and I enjoyed working there. A fellow new hire and I were tasked with fixing a machine that ran in a clean room where semiconductor wafers were made. On weekends while the line was down, we would go in, crank up one section of the line and let waste wafers travel through the line where very rarely they might get stuck in a multi-lane machine that would etch the wafers with some sort of acid. The machine had over two dozen asynchronous motors, actuators, pumps, sensors and so forth. All generating interrupts and I/O events that were sent to a computer that ran the whole line and controlled all the machines. We couldn’t slow down the machine, it had to run at full speed. The program controlling the machine was thousands of lines of assembly language—everything was assembly language, including the homemade OS that ran the computer running the line. It took like an hour for us to bring up the line and two more hours to see the machine do something strange. The computer running all this had no user interface other than a some front panel switches and some panel lights that would reveal 16 bits of it’s 128K of memory at a time. This was in the 1970s before Ethernet had been invented. It felt a bit like those escape room events where you know there is a solution, but you don’t know if you will ever get out. Without my coworker cracking jokes about our plight, I’m not sure we would have ever triumphed over that stupid machine.
- andromeduck 4y agoWhat ended up being the problem?
- genericone 4y agoThey ran the cycle again with one obscure parameter difference and it ran without issues until the Y2K bug took it down for good.
- porknubbins 4y agoTo jump on the bandwagon here- as a guy with zero hardware qualifications who likes to work on cars and motorcycles my first thought was a temperature issue. Not that I could’ve found the resistor issue, but this is not an obscure bug except maybe for pure software people.
- Eleison23 4y agoChris Siebenmann has been blogging about how cold affects his workstation. https://utcc.utoronto.ca/~cks/space/blog/tech/ColdLockupMachineMysteryII https://utcc.utoronto.ca/~cks/space/blog/tech/ColdLockupMach...
- mdorazio 4y agoI really wish hardware startups would at least hire people early on who have experience with actual manufacturing. Stuff like this really shouldn't happen and really shouldn't be a surprise, either. Temperature considerations are a standard part of the design criteria and testing in any mechanical device, and standard root cause analysis (did they even do FMEA?) would have forced them to find the problem the first time, not the second. When you're still in the early prototype phase, fine, but this is a 25? person team selling a product with a subscription and everything. Edit: just realized their stated fix is to remove two resistors. Did they actually test the full effects of that change? Seems like there's a decent chance of a third head-scratcher a few months from now...
- fuzzfactor 4y agoYou shouldn't need to be an engineer to be familiar with Murphy's Law, but when you are it can make you a more effective designer. One of the most memorable corollaries to Murphy is: "Mother Nature always sides with the hidden flaw. Mother Nature is a bitch."
- Tempest1981 4y agoYep, we used a temperature chamber that could ramp from -40°C to +80°C, along with humidity. We would push the limits until something broke, fix the design, and repeat. Surprised, but not surprised, that everyone doesn't do at least some stress testing. I was expecting something more complicated, like electromagnetic interference from a passing vehicle. Or ESD (static discharge).
- exmadscientist 4y ago> standard root cause analysis (did they even do FMEA?) would have forced them to find the problem the first time, not the second Not to mention that the standard checklist for solving "why is this joint having problems" is "is it cold or does it get worse when we make it cold".... > just realized their stated fix is to remove two resistors. Did they actually test the full effects of that change? Seems like there's a decent chance of a third head-scratcher a few months from now... As a half-decent analog guy I can actually believe this. I can imagine a lot of ways something like this could fix a problem, though of course I haven't seen any schematics here.
- Quarrelsome 4y agoI once lost about a month to a USB issue reported in the field on some custom hardware. Spent several weeks failing to reproduce it (setting up multiple machines to automatically hammer through typical usage). It eventually transpired that the issue correlated with cold temperatures and the recent outsourcing of assembly had resulted in some poor soldering.
- mrkeen 4y agoI have an HP Spectre x360 laptop. It wasn't registering some of its keystrokes. The same keys would fail, and for quite a while too - hitting them harder and repeatedly didn't happen. Turns out it was the cold. Now when I take a trip out for coffee & coding, I boot up and let it sit for a while before starting my work.
- Workaccount2 4y agoAs a hardware guy I look at software with envy. Having to deal with physics is such a huge fucking pain in the ass all the time. Reality real fucking hates low entropy systems and will try and sabotage you at every turn. There is also the inherent opaqueness to reality based systems that makes debugging them a huge pain that can be enormously time consuming and expensive. And scaling is ridiculously difficult and expensive. And worst of all, for me, there is no money in hardware. At best you make a trinket that requires a $9.99 subscription to really get use out of. At worst you make a cool trinket, get forced by pricing to make it in China, and then end up just having the idea stolen and reproduced to be sold for 1/2 the cost. Ok rant over.
- green_on_black 4y agoI agree with everything except the first sentence. Similar to a meeting, where time used meets time alloted, complexity meets complexity allowed. https://www.stilldrinking.org/programming-sucks https://www.stilldrinking.org/programming-sucks
- testmasterflex 4y agoHardware has less competition. China doesn’t know how to build the next Apple, only how to copy it. Yet, at least.
- Workaccount2 4y agoConsidering China makes Apple's hardware, I would say that Apple's software is what makes Apple stand apart. And their SoC's of course, but ain't no lone engineer spinning up their own phone, much less their own SoC. I'm really talking about hobby projects. Hobby swe you can actually make a product, sell it, and make some income. Hardware? Maybe you can make something, but make some money? lol.
- iancmceachern 4y agoNot really. There is deep knowledge and capacity in doing the hardware design. It's not as if Apple sends over a couple powerpoint slides with some renderings and then Foxconn delivers a product a year later. Apple delivers highly detailed designs, exact geometry and tolerance of each and every part, all the process documentation, specs, materials, designs for how the assembly line should be, etc. All that gets handed to Foxconn and they manage the staffing and feeding of the lines.
- dadadad100 4y agoBack in the dark ages when I fixed avionics (I grew up and went into software) I was faced with many intermittent hardware failures. The standard procedure was to use freeze spray. One component at a time. I had a lot of theoretical education, but I loved freeze spray
- not_the_fda 4y agoI've worked for many hardware companies. Thermal chamber testing is pretty standard. When doing a design it usually has a requirement for temperature range and the parts are specked accordingly, and thermal testing is done before release.
- teddyh 4y ago“The reason is that, in other fields [than software], people have to deal with the perversity of matter. You are designing circuits or cars or chemicals, you have to face the fact that these physical substances will do what they do, not what they are supposed to do. We in software don't have that problem, and that makes it tremendously easier. We are designing a collection of idealized mathematical parts which have definitions. They do exactly what they are defined to do. And so there are many problems we [programmers] don't have. For instance, if we put an if statement inside of a while statement, we don't have to worry about whether the if statement can get enough power to run at the speed it's going to run. We don't have to worry about whether it will run at a speed that generates radio frequency interference and induces wrong values in some other parts of the data. We don't have to worry about whether it will loop at a speed that causes a resonance and eventually the if statement will vibrate against the while statement and one of them will crack. We don't have to worry that chemicals in the environment will get into the boundary between the if statement and the while statement and corrode them, and cause a bad connection. We don't have to worry that other chemicals will get on them and cause a short-circuit. We don't have to worry about whether the heat can be dissipated from this if statement through the surrounding while statement. We don't have to worry about whether the while statement would cause so much voltage drop that the if statement won't function correctly. When you look at the value of a variable you don't have to worry about whether you've referenced that variable so many times that you exceed the fan-out limit. You don't have to worry about how much capacitance there is in a certain variable and how much time it will take to store the value in it. All these things are defined a way, the system is defined to function in a certain way, and it always does. The physical computer might malfunction, but that's not the program's fault. So, because of all these problems we don't have to deal with, our field is tremendously easier.” — Richard Stallman, 2001: https://www.gnu.org/philosophy/stallman-mec-india.html#conf9 https://www.gnu.org/philosophy/stallman-mec-india.html#conf9
- elorant 4y agohttp://www.ibiblio.org/harris/500milemail.html http://www.ibiblio.org/harris/500milemail.html
- CamperBob2 4y agoHonestly, if the company didn't do basic environmental testing during development, they got off VERY easy. I don't have an environmental chamber, but I wish I did. Everything I build goes into the fridge for at least a few hours (which means it gets tested at extreme humidity as well as extreme temperature, for better or worse.) I should put boards on a hot plate at ~60C for a similar length of time, but I didn't do that recently, and I paid heavily for that bit of negligence. Probably wasted 100-200 person-hours at the factory, having them rework a NOR flash part that was fine all along but didn't like being inadvertently overclocked by 2x once the board reached operating temperature in the test area.
- whalesalad 4y agoDebugging is a skill that is rapidly evaporating. The ability to debug like this is the secret to success in the hardware/physical realm. I’m just surprised it was resistors freaking out under cold temps and not the motor/gear configuration shrinking due to temps. You don’t often hear of electronics changing behavior in colder temps, but mechanical for sure.
- Renaud 4y agoClimate chambers are a staple of industrial hardware testing. There are ISO standards to tests for temperature and humidity resilience and just as you should test for EM immunity and emissions, environmental testing is just as important, especially for industrial hardware. It’s possible that in this case the customers were using the product outside its specification but when you are designing an electromechanical device there are tons of things that can go wrong once you’re put of the narrow band of environmental comfort. Grease and lubricants can seize or liquefy, metals expand, humidity affects corrosion and heat convection, rubbers and seals can harden and contract, electronic components can overheat or change characteristics or prematurely age,…