Reverse Engineering Liberates Dash Cam Video

If you’ve purchased a piece of consumer electronics in the last few years, there’s an excellent chance that you were forced to use some proprietary application (likely on a mobile device) to unlock its full functionality. It’s a depressing reality of modern technology, and unless you’re willing to roll your own hardware, it can be difficult to avoid. But [krishnan793] decided to take another route, and reverse engineered his DDPAI dash camera so he could get a live video stream from it without using the companion smartphone application.

Like many modern gadgets, the DDPAI camera creates its own WiFi access point that you need to connect to for configuration. By putting his computer’s wireless card into Monitor mode and running Wireshark, [krishnan793] was able to see that the smartphone was communicating with the camera using some type of REST API. After watching the clear-text exchanges for awhile, he not only discovered a few default usernames and passwords, but the commands necessary to configure the camera and start the video stream.

After hitting it with the proper REST messages, an nmap scan confirmed that several new services had started up on the device. Unfortunately, he didn’t get any video when he pointed VLC to the likely port numbers. At this point [krishnan793] checked the datasheet for the camera’s Hi3516E SoC and saw that it supported H.264 encoding. By manually specifying that as the video codec when invoking VLC, it was able to play a video stream from port 6200. A little later, he discovered that port 6100 was serving up the live audio.

Technically that’s all he wanted to do in the first place, as he was looking to feed the video into OpenCV for other projects. But while he was in the area, [krishnan793] also decided to find the download URL for the camera’s firmware, and ran it through binwalk to see what he could find out. Not surprisingly the security turned out to be fairly lax through the entire device, so he was able to glean some information that could be useful for future projects.

Of course, if you’d rather go with the first option and build your own custom dash camera so you don’t have to jump through so many hoops just to get a usable video stream, we’ve got some good news for you.

A Modular Ecosystem That Evolved Around A Simple Diesel Engine

High volume commodity products are a foundation of hacking, we’ve built many projects around popular form factors like NEMA 17 stepper motors, 608 bearings, and 280 DC motors. Their high volume led to lower cost, which further increased popularity, and the cycle repeats. A similar thing happened to a style of single-cylinder diesel engine in China, and [Jalopnik] takes us through an exploration of these “Tuo La Ji” (tractor) machines.

Like many popular standards, circumstances elevated this style of engine to become more popular than its peers. Judging from the pictures, the idea is similar to NEMA 17 in that the core essence is a bolt pattern and an output shaft. Different manufacturers offer various capabilities within this space, and a wild assortment of machinery evolved to take advantage of this class of power source.

It starts with a set of wheels and handlebars to create a walk-behind farm tractor, something pretty common around the world. But this particular ecosystem grew far beyond that to many other applications, including full sized trucks with off-road capability that would embarrass most of the genteel SUVs cruising our roads today. They may not be fast, but they only needed to be faster and have longer endurance than beasts of burden to be effective as “a horseless horse”.

Due to factors such as poor crash safety, absence of diesel emission controls, and affordability of more powerful (and faster!) vehicles, these machines are a dying breed. But that won’t change the fact there was a fantastic amount of mechanical hacking ingenuity that had sprung up around this versatile engine building simple and effective machines. Their creativity drew from the same well that fed into these Indonesian Vespas.

Photo by [Brian Holsclaw] CC BY-ND 2.0

Ask Hackaday: Does Your Car Need An Internet Killswitch?

Back in the good old days of carburetors and distributors, the game was all about busting door locks and hotwiring the ignition to boost a car. Technology rose up to combat this, you may remember the immobilizer systems that added a chip to the ignition key without which the vehicle could not be started. But alongside antitheft security advances, modern vehicles gained an array of electronic controls covering everything from the entertainment system to steering and brakes. Combine this with Bluetooth, WiFi, and cellular connectivity — it’s unlikely you can purchase a vehicle today without at least one of these built in — and the attack surface has grown far beyond the physical bounds of bumpers and crumple zones surrounding the driver.

Cyberattackers can now compromise vehicles from the comfort of their own homes. This can range from the mundane, like reading location data from the navigation system to more nefarious exploits capable of putting motorists at risk. It raises the question — what can be done to protect these vehicles from unscrupulous types? How can we give the user ultimate control over who has access to the data network that snakes throughout their vehicle? One possible solution I’m looking at today is the addition of internet killswitches.

Continue reading “Ask Hackaday: Does Your Car Need An Internet Killswitch?”

When Your Car Breaks Down, Simply Hack It Into A Simulator

When [Nishanth]’s Subaru BRZ came to a sudden halt, he was saddened by the wait to get a new engine installed. Fortunately, he was able to cheer himself up by hacking it into a car simulator in the mean time. This would have the added benefit of not being limited to just driving on the Road Atlanta where the unfortunate mishap occurred, but any course available on Forza and similar racing games.

On paper it seemed fairly straight-forward: simply tap into the car’s CAN bus for the steering, throttle, braking and further signals, convert it into something a game console or PC can work with and you’re off to the races. Here the PC setup is definitely the cheapest and easiest, with a single part required: a Macchina M2 Under the Dash kit ($97.50). The XBox required over $200 worth of parts, including the aforementioned Macchina part, an XBox Adaptive Controller and a few other bits and pieces. And a car, naturally.

https://www.notion.so/image/https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fsecure.notion-static.com%2Fd49697c6-29ae-4b4d-a27b-e2da019d32de%2FUntitled.png?table=block&id=ed4e1bf2-91c6-4494-8e0f-f10964620869&width=5120&cache=v2

The Macchina M2 is the part that listens to the CAN traffic via the OBD2 port, converting it into something that resembles a USB HID gamepad. So that’s all a matter of plug’n’play, right? Not so fast. Every car uses their own CAN-based system, with different peripherals and addresses for them. This means that with the Macchina M2 acquired, [Nishanth]’s first task was to reverse-engineer the CAN signals for the car’s controls.

At this point the story is pretty much finished for the PC side of things, but the XBox One console is engineered to only accept official peripherals. The one loop-hole here is the Adaptive Controller, designed for people with disabilities, which allows the use of alternative inputs. This also enables using a car as an XBox One controller, which is an interesting side-effect.

Continue reading “When Your Car Breaks Down, Simply Hack It Into A Simulator”

The Future Of Diesel Is On Shaky Ground

Diesel is a fuel that has had a mixed history, with varying levels of take-up by consumers around the world. In the world of transport, diesel engines have offered better fuel economy and torque than comparable gasoline engines. Particularly popular in Europe, diesel established a strong consumer base in both small commuter cars as well as heavy vehicles such as trucks and buses.

Despite this, the tide is turning, and for the average motorist, diesel’s days may be numbered. Why is this the case, and what are the potential alternatives vying for diesel’s crown?

Plenty of Pros, but Plenty of Cons

Diesel remains a fuel with a varied uptake around the world. It has enjoyed great popularity in Europe in small commuter cars.

Diesel is a hydrocarbon fuel with several advantages over gasoline. Its lack of volatility makes it workable to use in a compression-ignition mode, and diesel engines can be run with lean fuel-air ratios. It also has a higher volumetric energy density than gasoline, and thanks to low volatility, diesel engines can run at significantly higher compression ratios without risking detonation. These benefits allow diesel engines to produce significantly more torque than similarly sized gasoline engines, and they can offer fuel economy gains in excess of 15%.

Unfortunately, diesel also comes with its fair share of drawbacks. Diesel engines are typically poor when it comes to power to weight ratio, as their high compression ratio and torque output demands heavier materials in their construction. The major bugbear of the diesel engine, however, is its emissions. Despite greater fuel efficiency, carbon dioxide output from a diesel engine is often far worse than that of a comparable gas motor. Additionally, their lean-burning nature leads to production of high levels of oxides of nitrogen (NOx), which have major negative environmental effects. There’s also the problem of particulate pollution, which is responsible for respiratory harm in humans. Diesel automobiles rank significantly worse than gasoline vehicles in all these areas. It’s begun to cause figurative headaches for the industry, and literal headaches for the public. Continue reading “The Future Of Diesel Is On Shaky Ground”

Are Hydrogen Cars Still Happening?

Potentially coming to a service station near you.

In every comment section, there’s always one. No matter the electric vehicle, no matter how far the technology has come, there’s always one.

“Only 500 miles of range? Electric cars are useless! Me, and everyone I know, drives 502 miles every day at a minimum! Having to spend more than 3 minutes to recharge is completely offensive to my entire way of life. Simply not practical, and never will be.”

Yes, it’s true, electric cars do have limited range and can take a little longer to recharge than a petrol or diesel powered vehicle. Improvements continue at a rapid pace, but it’s not enough for some.

To these diehards, hydrogen fuel cell vehicles may have some attractive benefits. By passing hydrogen gas through a proton-exchange membrane, electricity can be generated cleanly with only water as a byproduct. The technology holds a lot of promise for powering vehicles, but thus far hasn’t quite entered our daily lives yet. So what is the deal with hydrogen as a transport fuel, and when can we expect to see them in numbers on the ground?

Continue reading “Are Hydrogen Cars Still Happening?”

What Happens To Tesla When The Sleeping Auto Giants Awake?

The history of automotive production is littered with the fallen badges of car companies that shone brightly but fell by the wayside in the face of competition from the industry’s giants. Whether you pine for an AMC, a Studebaker, or a Saab, it’s a Ford or a Honda you’ll be driving in 2019.

In the world of electric cars it has been a slightly different story. Though the big names have dipped a toe in the water they have been usurped by a genuinely disruptive contender. If you drive an electric car in 2019 it won’t be that Ford or Honda, it could be a Nissan, but by far the dominant name in EV right now is Tesla.

Motor vehicles are standing at the brink of a generational shift from internal combustion to electric drive. Will Tesla become the giant it hopes, or will history repeat itself?

Continue reading “What Happens To Tesla When The Sleeping Auto Giants Awake?”