After a long legal wrangle, some defendant-side attorneys have audited the source-code of Alcotest, the breathalyzer used in New Jersey DUI stops. Turns out it was programmed by muppets who don't know how to calculate an average and who throw out error messages by the dozen.
Like voting-machine vendors, breathlyzer vendors go crazy when defendants ask to have their source-code audited, claiming that there's a bunch of top-s33kr1t stuff in there that their competitors would steal. And, just like voting-machine software, breathalyzer software appears to have been written by squirrels dancing on the keyboard until they got something that would compile.
2. Readings are Not Averaged Correctly: When the software takes a series of readings, it first averages the first two readings. Then, it averages the third reading with the average just computed. Then the fourth reading is averaged with the new average, and so on. There is no comment or note detailing a reason for this calculation, which would cause the first reading to have more weight than successive readings. Nonetheless, the comments say that the values should be averaged, and they are not...
4. Catastrophic Error Detection Is Disabled: An interrupt that detects that the microprocessor is trying to execute an illegal instruction is disabled, meaning that the Alcotest software could appear to run correctly while executing wild branches or invalid code for a period of time. Other interrupts ignored are the Computer Operating Property (a watchdog timer), and the Software Interrupt.
SUMMARY OF THE SOFTWARE HOUSE FINDINGS
SOURCE CODE OF THE
DRAEGER ALCOTEST 7110 MKIII-C
CutiePi is a tablet based on the Raspberry Pi: compact enough, but more open, versatile and hacker-friendly than mainstream models from Apple, Microsoft or the Google coprosperity sphere. CutiePi is a complete Raspberry Pi in a tablet form factor, minus the trouble of connecting monitor or power supply. It’s slimmer because of using Compute Module, […]
I am addicted to Thinkpads in large part because of the trackpoint (AKA "The Nipple") -- the little wiggly joystickbetween the G, H and B keys that allows me to control fine mouse-movements without bending my hand into the RSI-inducing trackpad position; between that and the amazing, best-in-class warranties, I am a committed Thinkpad user, […]
You can buy microcontrollers for as little as 3 cents, if you order a lot of them, a staggeringly cheap number even if you’re so young you don’t know a Zilog Z80 was $10 in 1978 money. But are these cheapo parts any good? Hackaday says they’re terrible, but Tim finds a role. [it] surely […]
Want to keep the dentist away? A little tooth care at morning and night isn’t bad, but it won’t keep the stains from smoking or fried foods at bay for long. If you enjoy your food and want to avoid the consequences, an upgrade from that old analog toothbrush can make a huge difference. Among […]
If your office works at all, it uses Microsoft Office. Those icons for Word, PowerPoint, and Outlook are as familiar around some workplaces as the coffee machine. So familiar, in fact, that they get taken for granted – and rarely used to their full potential. Whether you need a crash course in the essential tools […]
It’s a great time to be a maker. 3D printers are on store shelves for anyone to buy, and coder kits like Arduino and Raspberry Pi are letting kids as young as 9 or 10 dive into the Internet of Things. Here are a few examples of our favorite tech toys, all priced low enough […]