$18 billion for three lines of code

Source: Internet
Author: User

These days, the idea of the goddess - The public to pull down the altar, which is from the United States came from the fact that the exhaust, the report clearly explain the entire investigation process, with facts and evidence to speak. The media then gives the following lines of simple code to illustrate the process of counterfeiting:

. Mudge @dotMudge

Basically, VW EPA cheat mode is:

if (drive_wheels_moving &&

Non_drive_wheels_stationary) {

Enable_dyno_mode ();

These three lines of code is very simple,if statement is the C language judgment statement, in the judging condition is mainly two conditions drive_wheels_moving and no_drive_wheels_stationary, when these two conditions are established, the Dyno mode is carried out . The names of these two variables tell us thatdrive_wheels_moving is the driving wheel in motion,no_drive_wheels_stationary indicates that the non-drive wheel is in a stationary state. In combination, when the drive wheel rotates, not the driving wheel at rest, it enters the laboratory mode or the detection mode.

We know that when the car into the detection line, is a pair of wheels in motion, the other pair of wheels is still, then into the exhaust detection, when in the road open, the general situation four wheels are moving, unless the situation of skidding. Well, maybe some people might have questions about it. How to detect the four-wheel drive is two cases, one is the four-wheel drive can be detected by a button, one is idle test. So from the above code, the last case is not satisfied. So how to solve it? According to the news, the pressure to judge, then the final situation can be solved, because the car is not moving, air flow can be judged out. But from this short three lines of code, it is clear that the full-time 4x4 cannot be changed to two-drive situations.

There is also a question here, that is, when the fraud mode is clearly detected by the EPA , then why the public still want to fake it? Cost and fuel economy. Because to choose the car with urea to use, need each car more than 1 dollars a year to use the cost of two times to choose the exhaust gas combustion, but also bring a lack of power and the situation of oil. So the public choose in the detection, even if the power is not enough, can also pass the test, in the road run time can no longer exhaust two times burn, so the power foot, reduce fuel consumption, is the two worlds! This is the kind of abacus that the public is playing.

Why is it that every time the injury is software? This is of course a lot of cars produced, but can not be recycled to carry out the transformation, otherwise the cost is too large, in the software to do a little modification, you can complete this situation. In this mode of fraud, will lose the trust of the entire enterprise, leading to greater economic losses, so adhere to the attitude of not evil is very important ah. Whether it is software engineers, or hardware engineers need to have this insistence, but also need more focus on professional, otherwise the product will cause a lot of problems.

Obviously the public this accident, and China's gutter oil as terrible, deeply affect people's health. Our software engineers should learn a lesson from this, and do not participate in the production of more waste oil, damage to the entire human life environment. When we hated the gutter oil, the result we also go to fake, so with the people who make gutter oil, what is the difference?

Cai Junsheng

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

$18 billion for three lines of code

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.