element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • 'Choose another store...'
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Personal Blogs
  • Members
  • More
Personal Blogs
Legacy Personal Blogs Cheating on Tests
  • Blog
  • Documents
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: chriswhite
  • Date Created: 22 Sep 2015 3:25 PM Date Created
  • Views 1541 views
  • Likes 5 likes
  • Comments 12 comments
  • thelinker
  • embedded.fm
  • ethics
Related
Recommended

Cheating on Tests

chriswhite
chriswhite
22 Sep 2015

Written by Elecia White.

 

Have you heard about the VW diesel emissions scandal? The software detects that the car is being tested for emissions and changes the engine to function more cleanly. When not being tested, the vehicles do not meet the US Environmental Protection Agency’s emission requirements.[1]

 

I’m incensed at this. Oh, not because I own a VW (I don’t) or because I’m an environmentalist (I am). I’m angry because there is an embedded software engineer who wrote this code and allowed it to get released to production.

 

I can see many paths for this happening. He likely wrote it as a test, to see if it could be done or to verify some other piece of software. When it came time to manufacture the car, the defeat device (the hack that detects testing and cheats) was only supposed to be in for a little while. The plan was that they’d fix the software and update it before shipping. But one thing led to another and, six years later, the hack is still in the code.

 

I can recognize the path where a junior engineer was browbeaten into creating the defeat device and few others knew about it. Maybe the junior engineer was told everyone else did it or that his career was on the line. But who did the browbeating? And how far did it go?

 

I can envision many slippery slopes where one small thing led to another. None of them were all that bad individually. But, the culmination is 11 million cars that emit 10-40 times more than they claim to.[2]

 

What I don’t want to imagine is that some senior embedded software engineer said, “Hey, this is a good idea: let’s make cars that pollute and lie about it so we make more money.” I don’t want to believe in immoral engineers.

 

So, faced with the pressure to allow this to happen, what do you do? Standing up and walking away is an option. Software engineers in Silicon Valley use quitting as a panacea: the new startup is always better. Not everyone has the luxury to job-hop. You can be a whistleblower if you know about the issue. Of course, that is likely to trash your career. How can you be a force for good within an amoral organization?

 

  1. Be the best you can be. Apply your own moral compass to work. Be such a goody two-shoes that no one asks you to do shady things. (Perhaps they’ll ask someone less technically competent and be caught sooner.) And if they ask, make it clear you are not comfortable, possibly not able, to go against your personal code of honor. I use the goody two-shoes method to deflect other unsavory things: asking for an explanation as to why an inappropriate joke is funny goes a long way to avoiding such humor in the future. Likewise, asking how a requested change makes for a safer or more reliant product may help deflect shoddy or fraudulent features.
  2. Do code reviews. Too many people think of reviews as a way to catch bugs (or, worse, a way to enforce syntax guidelines). Consider the code you review as cross-training. The goal is not to determine if this is how you would have implemented it. Instead, ask “what can I learn from this code?” and “how can I make this system better?” If you had reviewed the defeat device software, would you have gotten the (possibly) elegant bit of code and considered the ramifications of it? Make thinking it through part of your personal goals of reviewing.
  3. Say no. There are many ways to say no politely, practice them. You don’t have to start out with “over my dead body” but you do have the responsibility to say “this is a bad idea” instead of staying silent. At ShotSpotter, making gunshot location systems, whenever we talked about privacy, security, or encryption in the sensor, one of the embedded software engineers would say, “We have to do the right thing. I don’t want my face on the cover of Wired magazine as the person who let this all go wrong.” It was a flip comment but it reminded all of use that there are consequences to our choices, making it easier to push back as a group.
  4. Quit. Oh, I know, I said this isn’t an option for everyone. But if the possible outcome is bad enough, I believe you’d rather be out of a job than in jail (charged with fraud and/or negligence).

 

Sometimes you have to make tough choices. The choices are even tougher when surrounded with “only for a little while” promises and “everyone cheats” exhortations. In the end, you are responsible for your code and its consequences. You are who you choose to be.[3]

 

image

 

Note: this is an editorial. As such, it is wholly my opinion, not necessarily the opinion of Element14. Also, I know I promised you a post about BB8 software, it is coming.

 

References

[1] Understanding The 'Test Mode' That Let VW Trick The Emissions Test

[2] Volkswagen admits 11 million diesel cars have sneaky software installed

[3] The Iron Giant (1999) - IMDb

  • Sign in to reply

Top Comments

  • mcb1
    mcb1 over 8 years ago in reply to shabaz +4
    I think you can rightly assume that it's not by accident. https://www.techdirt.com/articles/20150920/03163032307/vw-accused-using-software-to-fool-emissions-tests-welcome-to-internet-cheating-things.shtml…
  • mcb1
    mcb1 over 8 years ago in reply to shabaz +3
    Despite the media creating hype around the problem, it seems that it's the US cars that are the problem from http://news.yahoo.com/seoul-summons-volkswagen-over-cheating-emissions-tests-054317465.html…
  • gadget.iom
    gadget.iom over 8 years ago +2
    Interesting to read the "Switch" operation parameters in the first link. Thanks
  • Former Member
    Former Member over 7 years ago

    The FAULT lays at the feet of the US Federal government Anti-circumvention laws, the DMCA!

    IF peer review of the embedded were permitted, it would have been found up to a DECADE earlier!

    Fear of prosecution prevented scientific review of the embedded code by honorable coders!

     

    http://cloudigylaw.com/volkswagen-copyright-dmca-scientific-integrity/

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 8 years ago in reply to Dudley

    Very intriguing book, and great (and incredibly sad) photos - I picked up a used copy, looking forward to reading it!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • gadget.iom
    gadget.iom over 8 years ago

    According to the BBC Volkswagen CEO Martin Winterkorn has resigned over manipulation of US diesel car  emissions tests.

    “I am shocked by the events of the past few days. Above all, I am stunned that misconduct on such a scale was possible in the Volkswagen Group.

    As CEO I accept responsibility for the irregularities that have been found in diesel engines and have therefore requested the Supervisory Board to agree on terminating my function as CEO of the Volkswagen Group. I am doing this in the interests of the company even though I am not aware of any wrong doing on my part.

    Volkswagen needs a fresh start – also in terms of personnel. I am clearing the way for this fresh start with my resignation.

    I have always been driven by my desire to serve this company, especially our customers and employees. Volkswagen has been, is and will always be my life.

    The process of clarification and transparency must continue. This is the only way to win back trust. I am convinced that the Volkswagen Group and its team will overcome this grave crisis.”

    Volkswagen Group Ad-hoc-Release: Statement by Prof. Dr. Winterkorn

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • mcb1
    mcb1 over 8 years ago in reply to shabaz

    I think you can rightly assume that it's not by accident.

    https://www.techdirt.com/articles/20150920/03163032307/vw-accused-using-software-to-fool-emissions-tests-welcome-to-internet-cheating-things.shtml

    http://artofgears.com/2015/09/18/how-volkswagen-cheated-on-the-diesel-epa-test-and-got-caught/

     

    http://www3.epa.gov/otaq/cert/documents/vw-nov-caa-09-18-15.pdf

     

    Interesting that they made no physical attempt to simulate real world results as a 'comparison'

     

    Mark

    • Cancel
    • Vote Up +4 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 8 years ago in reply to mcb1

    Hi Mark,

     

    I still don't see any text that shows that VW have confirmed the intent, i.e. that it was deliberately done by certain staff to meet emissions rules and that is was not an accidental by-product : ( Have VW confirmed that it was intentionally for this purpose of being in shipped code to fool tests?

    Often I will put in hooks to 'fake' data to exercise different bits of code, but those hooks should be removed or # ifdef'd out of course, after running the tests. (Not trying to make excuses for VW, just want to know more).

     

    The extract from Yahoo news only mentions that VW have admitted what the software does (covertly turns off pollution controls) but doesn't state the intent, if it was deliberate for meeting emissions rules.

    I may have missed it : (

     

    Of course, that may not matter since there may be strict liability for VW (i.e. no need to show intent), but for general criminal proceedings the intent needs to be shown too. Not sure on USA rules on this.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube