by sircastor · 3y ago · 0 comments
I used to be an infotainment software engineer for an Auto maker. There’s this idea in the software industry that because the software behaves poorly on your car’s system, it must’ve been written poorly by someone who didn’t know what they were doing. In my experience it was almost always a matter of the hardware being stretched way past its limits. Your brand new 2024 car’s system has been in development for 4 years. Product people have been picking at the design and asking for changes way too late, and someone in accounting has asked the hardware contractor to cut more cost off the BOM.
My colleagues were tremendously talented. Some of the brightest engineers I’ve had the pleasure of knowing. The developers aren’t lazy or inexperienced, they’re just being asked to turn lead into gold and often get silver.
Decades ago, we had hardware that was so much less capable than anything anyone has put in a car in ten years that the comparison is absurd. Nonetheless, those old systems were often very capable of doing useful things, and the UIs were often very, very fast by modern standards. And a lot of this was that the software stack was tuned for performance and latency and did not do things that hurt latency too much, and this came at a substantial modularity cost.
Back when a TI calculator with a whole OS running on a Z80 was an order of magnitude or so faster than your average new car, it didn't have a compositor (which still eats a good frame or so of latency, maybe more, and, as an industry we still don't know how to solve this). It ran an OS that was surely far harder to tweak than a modern car stack, but it had fewer layers and could be kept performant. An Apple ][ and its clones were, of course, much faster than a TI calculator, and we still can't match that level of performance.
A group of engineers that were willing to keep the managers away and make a simple, limited-purpose system, could surely get excellent performance out of any currently available car computer hardware, but it would come at a cost. Buzzwords would not happen :) Also, the software developers had access to full data sheets for the hardware, and when you told the hardware to put something in its framebuffer, it was there, and no blobs or firmware were in the middle.
I still remember when Windows 2000 launched with "layered windows": an application could opt in to being composited, and it would gain the ability to be translucent, but it came at a very obvious performance cost. Sadly, 23 years later, that performance cost is still there, but it's not opt-in any more.
> management is much happier to get something less impressive but reliable.
^ this is accurate though. Management wants bells and whistles (animations) which are hard to build without abstraction layers
- Graphing a plot was slow due to slow CPU and high-precision math libraries (could take 3-10 seconds depending on function complexity and detail)
- MathPrint mode slows down printing expressions to an extent, IIRC even moving the cursor through history felt sluggish.
- The B&W LCD screen with slow color transitions adds more latency than a compositor does.
- Garbage collecting the flash memory could take dozens (IIRC) of seconds, and would happen unannounced when manipulating saved programs (IIRC not in regular calculations).
Of course computation was slow on the slow, under-featured CPU, but that was to be expected. My car’s touchscreen system doesn’t do anything that is computationally complex — a computer from the late 90s could run a media player and do work at the same time, and my car’s CPU is faster.
The LCD is what it is. I’m talking about latency too when the pixels start trying to change. Anything with a CRT avoided this problem.
And GC is a fair criticism. But my car’s touchscreen is always slow. Oh, and it also often. takes a minute or two to start working when I get on the car.
Not really though. You played a different game using a much simpler sort of engine (probably a raycaster, similar to wolf3d) with much simpler level geometry (probably square on a grid, and probably without stairs, windows through walls, elevating platforms, etc) There are several games like that on the z80 line of TI calculators, for instance Gemini: https://www.ticalc.org/archives/files/fileinfo/247/24742.htm...
But the real Doom isn't a simple raycaster, it uses an engine that exists in the space between a raycaster and a true 3d game like Quake. A so-called "2.5D engine". The level geometry had height data, but couldn't overlap itself (so no navigable bridges unless you fake it using raising and lowering platforms (or teleport the player to another part of the level, like the Build engine did.) Rooms could have arbitrary polygonal shapes, walls weren't all at right angles to each other, which complicated the process of rendering and necessitated the use of BSP trees to traverse the level geometry efficiently.
I know of one instance of such a game engine being created for the 83/84 z80 lines of calculator, detailed in a series of blog posts here:
http://www.benryves.com/journal/3720656
http://www.benryves.com/journal/3724115
http://www.benryves.com/journal/3725786
http://www.benryves.com/journal/3728004
http://www.benryves.com/journal/3729994
http://www.benryves.com/journal/3735869
http://www.benryves.com/journal/3739423
AFAIK these gifs represents the pinnacle of a Doom-like engine on the z80 line of calculators:
http://www.benryves.com/images/nostromo/bsp/2010.11.28/Movin...
http://www.benryves.com/images/nostromo/bsp/2010.11.07/Walkt...
I get that we have families to feed, but I've seen far too much of a mindset shift in fellow engineers into thinking that we're warcraft peons rather than professionals. "The business" has engineering feedback as a necessary input, and speaking individually with steakholders they expect this - they'll push until we push back.
Contrast this with other engineering fields, where the engineer is truly responsible for the decisions they make. My civil engineer friends face losing their licenses, fines or jail time if they are found professionally negligent. The same is true of other high stakes professions - think doctors, lawyers, even accountants. It's probably not appropriate for most software engineering roles, but for safety critical systems it doesn't seem far-fetched to me.
These standards ought to be applied more widely and done in conjunction with tightened consumer law. In many cases the quality of electronics equipment has gone to the dogs. I could give instances of appliances I use that can only be used in a hobbled mode—numbers of published functions simply don't work—because their firmware bugs are so bad.
These devices are so bad they wouldn't pass as early developmental mockups let alone early prototypes in a professional engineering establishment. I'm damned if I know why the hell consumers put up with the situation and haven't revolted, it remains a mystery.
Things won't improve until they do.
I need to make as much money as possible in the little time as possible, and the best way to do this is to stop worrying and learn to love the bomb.
Sometimes you have to decide, do I build a better system, or do I feed my family. The craft and world suffer, but...
I am currently trying (again) to get into embedded development. I would gladly take the job of the guy that refused to make shitty software, if that means I can keep feeding my baby. Unless it would be too unethical. (I refuse to do work that will kill people, for example I won't work for Palantir, companies that make sketchy software related to flight controls or medicine or other critical applications and so on... but the car media player? yeah, I am willing to make a crappy one if I get the job, I prefer to make a good one, but if my boss want a crappy one... then what I can do? overtime to get a promotion, clearly doesn't work ;) )
Isn’t a crappy UI on a car something that could kill people?
Which is why (in the UK) I view the rise of strikes and unions positively - workers need to hang together - set standards that they won't go below, and also ensure the spoils are fairly shared out.
Recently the deputy governor of the bank of england said "inflation has made everyone poorer - get used to it not ask for wage increases". Which tone deafness misses the point that this is not about wanting a 10% pay increase - it's about how is society structured and how do we share the vast wealth.
The question is not how do I get more, it's how do I build a fair system that inwill be part of.
we are playing the sociopaths game as if it's the only game in town. There should be no game we all play where the rules include not feeding babies. That's a bad game
Which is absolutely horseshit, because the European countries that had the least amount of inflation (besides the super wealthy Switzerland and Luxembourg), were the countries where salaries are automatically indexed with inflation, like Belgium.
So it turns out that forcing companies to increase wages by inflation is a very effective deterrent against price gouging and inflation, yet those in charge try to convince us otherwise, that we should accept lower wages for our own sake lol.
Can you believe the nerve of these people? It's disgusting, but we get what we vote for. You want better, then vote better.
If you have a company and refuse to take the crazy deadlines and low quality and low pay then don't worry, there is another Tier 1 supplier across the street who will do it for you. OEMs know that you need them more than they need you.
Well, that is evil by design irrespective of the particular implementation, no? ;-)
Another thing that happens is when there is a 50ms response time mandated and at the start of the project you have 30ms and it slowly creeps up until you get to 55ms. Then the blame game starts. Like I said previously, each component is usually won by a different tier 1 supplier. So everybody puts the blame on somebody else. One tier 1 is building the linux distro, the other is making basic system libraries and the applications are written by another 20 tier 1 suppliers.
Then the deadline hits and the car needs to be sent to the showrooms. So whatever 50ms was chosen initially is changed to whatever it currently is so to say they are within spec and can ship the damned car.
They will not tell the customer this because either the customer doesn't care, so why waste time and resources
...or when the customer realises they will open a Change Request to fix the issue. Change Requests are how you make an actual profit on unprofitable, low-balled contract and probably gain an extension on the unachievable timeline agreed to win the bid in the first place.
The "customer" is the person that signs the contract not the user of the product. They probably don't care that it's a pig to use. It just has to look OK in a presentation to their boss (...who isn't going to ever use it either).
If Tier 1 suppliers didn't behave this way they wouldn't be able to pitch bid responses cheap enough to win bids. The responsibility for crappy products lies entirely with the product owners. Only they know what's good enough.
Källenius explained the current system to Ars Technica like this:
"So some engineer in Sindelfingen comes up with a concept. You have to write that down. You have to send it to the supplier that needs to be quoted. Then procurement people need to negotiate with each other. Then that supplier goes to some sub-supplier in Eastern Europe and wherever they do. It goes back up the chain again. It gets tested and nine months later, you have actually changed something in your infotainment system. Now you go into the ESH [Mercedes' electric Software Hub]. To say, let's change this and you just do it."There is, of course, a time and a place for a hard "no". I've genuinely threatened to quit rather than implement a particularly user-hostile feature in the past.
I was trying to advocate for the middle path, where there's healthy communication from both sides, to the point that developers trust when "the business" makes a decision - not to the point of engineering completely blocking the, unquoted, business.
When the newborn is crying and wants food you do what you've got to do. And there are many people like that.
Let’s see that Tesla can change this or not.
Wouldn’t surprise me, automotive-grade components tend to trade power for durability & certs, and then you cut down on BOM.
And then the infotainment is hardly ever a visible make or break, people will shrug, then sigh heavily for years as they try to use the POS.
Especially if the competition is roughly equally slow, the costs to engineer a responsive solution might be to high for its impact on sales.
Consumers, being used to feature rich phones, may indeed value feature count over quality (for the entertainment System). Despite what OEMs claim a car is first and foremost a means of transportation and a "software Plattform" only after that.
It's not clear whether that feedback is from sales channels (i.e. potential customers are shunning particular products) or from service channels (customers are reporting issues that require additional development spend resulting in profits being eroded).
Personally, I've been looking for a new car for 3+ years and the quality of controls (which are nearly all touchscreen based these days) is a major factor.
This is also a reflection that trust in car manufacturers to address software related issues is low - they are used to designing and building cars that are churned out in 3+ year cycles. Moving to a scenario where the product is changing monthly is a huge change. My 13 year old current car is extremely solid and the controls don't change month to month - something that does happen without any customer choice in more recent times. :/
UI is not something you can evaluate on a 30 min test drive under sales pressure. Sometimes there’s no way to test it (no rain, no snow, no free straight road, no immediate glitches). And there’s no reviews that cover it. It’s not a weighted decision, it’s a decision out of only parameters that are most obvious.
The same way you play a lottery with e.g. a washing machine, whether it beeps after unlocking the door or you have to go and sit near it like an idiot for a whole minute.
It doesn't help that iphones from that time frame aren't really in use today. Car systems are.
Also, maybe the expected lifetime of something used to turn up and down the volume and show a map while being in a fixed case and not even having its own battery is different than a device running on battery, thrown around in everyday life and literally being pressed on 0-24. And even then an iphone from the last 5 years might well be expected to run for 5 more with a battery replacement at most. Mobile hardware went over a huge change in this timeframe.
I did not mean my post to dismiss the idea that we should expect better. I'm just worried that the practices we put up with elsewhere in software would not, necessarily, be the answer.
The first gen iPhone is highly responsive and has a highly capable UI, more so than even the current gen iPhone.
It's not the engineers, it's you who doesn't have a clue.
> Product people have been picking at the design and asking for changes way too late
Sounds like classic everything-bolted-on-never-refactored-always-add-features you see in the vast majority of companies. Which is fine if you're making a social app or CRM but not okay when talking about heavy machinery. No company ever prioritizes making things snappy and it's ultimately always on the engineers to push back. Sorry, this one is still on the software developers to me.
In no world would automakers say, "Hey you know, we just did all of this tire engineering with this rubber, but let's change the composition at the last minute and not retest all of its physical properties."
So, why should it be any different with software? Because some sucker PM didn't have the brains to say, "We can't actually do that."?
But then the seats kick on automatically when the car starts and the driver tucks in with her morning coffee for a commute down the highway. The coffee kicks in, the cabin heats up, and suddenly that warm seat is like sitting on a griddle. She taps on the menu to bring up the seat controls, then lag, then has to hit the seat heat button twice to go from “high” to “low” to “off”, lagging each time. Oh, she hit it three times, now it’s on high again. Tap, tap, tap, tap… Meanwhile she has crossed three lanes of traffic and is staring down a jersey barrier at 70+ mph.
I'd actually buy that it's more a matter of the corporate sausage making machine that turns ok hardware and talented developers with good intentions into an output of barely usable poorly performing crap. Ie: exactly how we end up with something like Spotify.
This. The devs don't have a say in the tech stack. The decsion is usually outsourced to the lowest bidder. Other than Tesla and Rivian, I can't think of any OEMs that I've dealt with who have full control over control over their display. Almost everyone outsources it to the Koreans who have a lock on that market – i.e. OEMs send in their designs but it's actually implemented by LG, Samsung etc. From what I've seen, any changes or new additions to any on-screen components has a 2 year lead-time unless (not a typo) it's safety critical or catastrophic in some other way.
A lot of these are good impulses but also feel like an unfunded mandate, like rear back up cameras being mandatory - obligating everyone pay a thousand dollars more every year.
The feel good comes from the DOT, the cost gets paid by the customer.
Another big problem is a very high employee turnover and there is no redundancy in roles and skillsets because of severe cost cutting through the ages. Tech is chosen by senior engineers but vision, knowledge and experience are lost and implementation suffers every time anyone moves companies. My company has been working on an automotive project for the last 3.5 years. I deal with around 10 people on at least a weekly basis. Out of those 10, only one was around at the start of the project. We're also working with another Tier 1, where only 2 out the 12 have been around for 3 years.
Are you saying modern car infotainment systems have fewer resources allocated to the UI?
This was in a time when far fewer instructions were accelerated on the cpu, and my cpu at the time was something like a 66MHz 486-dx2, and even the (Frauenhofer) mp3 codec wasn’t as optimized as it was later.
Relatively speaking: Yes.
Response lag is always because the hardware is chugging to process all the bits in time (they're not in time). Between underprovisioned hardware and shittily written software, hell yeah fewer resources are allocated to the UI.
We need a small supercomputer's worth of resources allocated to bring the software of today up to snap like it was the 90s.
We're using small MCU (not CPU) to drive 480x272 or 800x600 screen. 240Mhz, 8MB of RAM. For example on ESP32-S2 or ESP32-S3.
If you had GPS, bluetooth, wifi, etc. to the mix, yeah that's a challenge and you need to make your UI pretty simple.
Despite that, automotive graphics ramain laggy because they normally build something barely gpu accelerated using java or QT or something else laggy by nature...
Basically anything that involves copying pixels or solid fills without per-pixel calculations. 60fps at 800x600 is 28.8Mpixel/s. Copying and filling at that rate should be achievable by a 240MHz CPU with some tight coding. The rest is 2d geometry, mostly axis-aligned, with relatively few edges. That's not demanding at all.
(I used to write 2d and 3d rendering engines for slower CPUs than that.)
A GPU is necessary for fancier effects like fades and shading, but the basics can be smooth on a CPU and the fancy stuff too if confined to smaller areas.
Also, for the car, people would be happy enough if it could do a consistent 30fps I think.
Those annoyingly slow GUI updates you tend to see on TV set top boxes are not slow because of the hardware... it's usually the software not being written with sleedy rendering in mind.
All that said, you're right that if there's a GPU or even just a Blitter, it should be used and then the CPU speed almost doesn't matter as the geometry calculations are so simple.
Anyway, when you're designing your UI, you've to take into account the computation power available and design around that, otherwise you're doomed.
I don't buy it that a 4 year old SoC cannot run GPS navigation, play music, do whatever a car infotainment system does, without half a second delay
We've been controlling heating, cooling, audio source, and audio volume since the dawn of time.
How are technical requirements related to these basic functions changing such that their UIs haven't been absolutely perfected by now? Is the entire infotainment code being rewritten all the time so there's no chance to iterate and improve on the previous versions work?
The components that make up the infotainment a lot of times are actually developed by different companies. So navigation is one company, media player another etc.
Also, the deadlines usually make no sense and there is zero time for any optimization work. It's not the devs, it's the way the automotive industry works outsourcing every little button on the dash to another (cheapest) company. They just don't understand that that mentality doesn't work with software. Most of them are mechanical engineers not software people.
Yeah, that's how the automotive industry works. For each car BMW will change the third parties manufacturing each piece and every model is completely rebuilt from scratch. They literally reinvent the wheels all the time.
You shoudn't read too much into the fact that you have a dozen or two of models listed under each version in https://en.wikipedia.org/wiki/BMW_iDrive because it's just a concidence that starting each time from scratch they arrived at the same thing.
One thing Tesla did well was inhousing a lot of this.
Ah yes, the trillion dollar industry (that's been writing software in many forms for decades) just doesn't have people that understand software.
Meanwhile, you have the "software" people at, say, Tesla, who has the worst driving interface of all and the iPads were melting out of the dash in the summer time. But at least the latency was low!
Slightly yellowing screen I can deal with. Lag on every button press, and random crashes I cannot.
I absolutely hate my Acura’s infotainment system. My “favorite” feature isGPS autocomplete.
You type in part of an address (which of course has a very slow response time), then you pick the completion off the list.
Sounds fine right?
But when you click it, you’re met with a SLOW ANIMATION OF THE COMPLETION BEING TYPED INTO THE SEARCH BOX. Motherfuck dude! What the hell is that? Why does anyone want to watch the keyboard flash for five seconds?
REAMDE, Neal Stephenson
And from the other side, there is a big push to add more and more fluff to make the UI design sleek, you could make it performant if you used DOS-style interfaces but no product manager is going to allow that and making animations from scratch (vs using a platform like Android or browsers that has a ton of abstractions to create fancy UIs) is extremely costly
Our hiring rate disagrees.
That might be true for run-of-the-mill sweatshops, but not for any tier 2+ companies.
When the managers bosses see the manager failed a project after firing all the people who said it would fail, it won’t look good for them.
What aspects of the hardware would lead to 500ms response times?
Way more work, as in, turn up the volume or display another thing on the screen?
How do you explain that not that long ago, when CPUs were slower, interfaces were faster?
Only reason "they’re just being asked to turn lead into gold and often get silver." happens is because automakers know they can get past all regulatory approval with lead/silver or whatever metal you prefer.
Probably not because they lack 10x l33t coding skills, and have fat fingers.
* I'm not sure if people realize that many automotive dev teams are buying enormous stacks of software from outside parties that often have motivation to throw you under the bus... if it's not an external supplier, it's probably another team on a different continent... but maybe it's different in infotainment?
I’m not saying like the GP that this indicates inexperienced developers, but it does indicate poor technical leadership and priorities. Further, good/senior developers would have been more likely to call this out.
While we're there, lets put in the requirement that a random joe from the street, with no training, when given the UI and asked to complete a task (eg. Play me some coldplay, turn on the window defroster, pair a bluetooth phone, get directions to the nearest gas station), must be able to figure it out within 20 seconds and 6 taps on average.
I find this hard to believe. An Intel 486 from 30+ years ago could run Doom full screen with nearly instant key press response. A 6502/6510 C64 could repaint the entire text screen each frame. Why would today's auto hardware require 500ms to respond to touches on a static menu?
Then someone else didn't know what they were doing.
TBF thats literally leaded gasoline