Dummies Guide To Reverse Engineering

[Juan Carlos Jiménez] has reverse engineered a router — specifically, a Huawei HG533. While that in itself may not sound substantial, what he has done is write a series of blog posts which can act as a great tutorial for anyone wanting to get started with sniffing hardware. Over the five part series, he walks through the details of identifying the hardware serial ports which open up the doors to the firmware and looking at what’s going on under the hood.

The first part deals with finding the one or several debug ports on the hardware and identifying the three important pins – Rx, Tx and GND. That’s when he shows novices his first trick – shining a flashlight from under the PCB to find the pins that have trace connections (most likely Rx and Tx), those that don’t have any connections (most likely CTS and DTR) and those that have connections to the copper pour planes (most likely VCC and GND). The Tx signal will be pulled up and transmitting data when the device is powered up, while the Rx signal will be floating, making it easy to identify them. Finding the Baud rate, though, will require either a logic analyser, or you’ll have to play a bit of a guessing game.

Once you have access to the serial port and know its baud rate, it’s time to hook it up to your computer and use any one of the several ways of looking at what’s coming out of there — minicom, PuTTY or TeraTerm, for example. With access to the devices CLI, and some luck with finding credentials to log in if required, things start getting interesting.

Over the next part, he discusses how to follow the data paths, in this case, looking at the SPI signals between the main processor and the flash memory, and explaining how to use the logic analyser effectively and decode the information it captures. Moving further, he shows how you can hook up a USB to SPI bridge, connect it to the flash memory, take a memory dump of the firmware and read the extracted data. He wraps it up by digging in to the firmware and trying to glean some useful information.

It’s a great series and the detailed analysis he does of this particular piece of hardware, along with providing a lot of general tips, makes it a perfect starting point for those who need some help when getting started on debugging hardware.

Thanks, [gnif] for posting this tip.

Continue reading “Dummies Guide To Reverse Engineering”

How To Receive Pictures From Spaaace!

The International Space Station, or ISS, has been in orbit in its various forms now for almost twenty years. During that time many of us will have stood outside on a clear night and seen it pass overhead, as the largest man-made object in space it is clearly visible without a telescope.

Most ISS-watchers will know that the station carries a number of amateur radio payloads. There are voice contacts when for example astronauts talk to schools, there are digital modes, and sometimes as is happening at the moment for passes within range of Moscow (on Feb. 14, 11:25-16:30 UTC) the station transmits slow scan television, or SSTV.

You might think that receiving SSTV would be hard work and require expensive equipment, but given the advent of ubiquitous mobile and tablet computing alongside dirt-cheap RTL-SDRs it is now surprisingly accessible. An Android phone can run the SDRTouch software defined radio app as well as the Robot36 SSTV decoder, and given a suitable antenna the pictures can be received and decoded relatively easily. The radio must receive 145.8MHz wideband FM and the decoder must be set to the PD120 PD180 mode (Thanks [M5AKA] for the update), and here at least the apps are run on separate Android devices. It is possible to receive the signal using extremely basic antennas, but for best results something with a little gain should be used. The antenna of choice here is a handheld [HB9CV] 2-element beam.

A failed grab from a 2014 transmission, proving that Hackaday scribes don't always get perfect results.
A failed grab from a 2015 transmission, proving that Hackaday scribes don’t always get perfect results.

You can find when the station is due to pass over you from any of a number of ISS tracker sites, and you can keep up to date with ISS SSTV activity on the ARISS news page. Then all you have to do is stand out in the open with your receiver and computing devices running and ready, and point your antenna at the position of the station as it passes over. If you are lucky you’ll hear the tones of the SSTV transmission and a picture will be decoded, if not you may receive a garbled mess. Fortunately grabs of other people’s received pictures are posted online, so you can take a look at what you missed if you don’t quite succeed.

Even if you don’t live within range of a pass, it’s always worth seeing if a Web SDR somewhere is in range. For example this Russian one for the current transmissions.

In that you are using off-the-shelf hardware and software you might complain there is little in the way of an elite hack about pulling in a picture from the ISS. But wait a minute — you just received a picture from an orbiting space station. Do that in front of a kid, and see their interest in technology come alive!

Hacking On The Weirdest ESP Module

Sometimes I see a component that’s bizarre enough that I buy it just to see if I can actually do something with it. That’s the case with today’s example, the ESP-14. At first glance, you’d ask yourself what AI Thinker, the maker of many of the more popular ESP8266 modules, was thinking.

The ESP-14 takes the phenomenally powerful ESP8266 chip and buries it underneath one of the cheapest microcontrollers around: the 8-bit STM8S003 “value line” chip. Almost all of the pins of the ESP chip are locked inside the RF cage’s metal tomb — only the power, bootloader, and serial TX/RX pins see the light of day, and the TX/RX pins are shared with the STM8S. The rest of the module’s pins are dedicated to the STM8S. Slaving the ESP8266 to an STM8S is like taking a Ferrari and wrapping it inside a VW Beetle.

I had never touched an STM8 chip before, and just wanted to see what I could do with this strange beast. In the end, ironically, I ended up doing something that wouldn’t be too far out of place on Alibaba, but with a few very Hackaday twists: a monitor for our washer and dryer that reports power usage over MQTT, programmed in Forth with a transparent WiFi serial bridge into the chip for interactive debugging without schlepping down into the basement. Everything’s open, tweakable, and the Forth implementation for the STM8S was even developed here on Hackaday.io.

It’s a weird project for the weirdest of ESP modules. I thought I’d walk you through it and see if it sparks you to come up with any alternative uses for the ESP8266-and-STM8S odd couple that is the ESP-14.

Continue reading “Hacking On The Weirdest ESP Module”

Unconventional Homopolar Motor

As a hacker, chances are that you have built a homopolar motor, as you only need three things: a battery, a magnet and some copper wire. There are zillions of videos on YouTube. This time we want to show you [Electric Experiments Roobert33]´s version. Definitely a fresh twist on the ubiquitous design that you see everywhere. His design is a bit more complicated, but the result makes the effort worthwhile.

regla_mano_derecha_laplace
Right hand rule for the Lorenz force. By Jfmelero, via Wikimedia Commons

The homopolar motor was the first electric motor ever built. Created  Michael Faraday in 1821, it works because of the Lorentz force. This force acts on any current-carrying conductor that is immersed in a magnetic field which is perpendicular to the current. These motors really have no practical applications, but are an excellent way to learn basic aspects of electromagnetism.

In this setup, there are two conductive rings placed above a wooden base, connected to the battery terminals. Neodymium magnets are connected by a conductive rod that pivots in the center of the rings, closing the circuit and allowing the flow of current. Then the Lorentz force makes its magic and pushes the rod and magnets in a circular motion.

Very clean and well-edited work, as are other videos by [Electric Experiments Roobert33]. You may want to replicate this nice motor, or you can also make the simpler version to start experimenting.

Continue reading “Unconventional Homopolar Motor”

The Future Of Artificial Intelligence

Last week we covered the past and current state of artificial intelligence — what modern AI looks like, the differences between weak and strong AI, AGI, and some of the philosophical ideas about what constitutes consciousness. Weak AI is already all around us, in the form of software dedicated to performing specific tasks intelligently. Strong AI is the ultimate goal, and a true strong AI would resemble what most of us have grown familiar with through popular fiction.

Artificial General Intelligence (AGI) is a modern goal many AI researchers are currently devoting their careers to in an effort to bridge that gap. While AGI wouldn’t necessarily possess any kind of consciousness, it would be able to handle any data-related task put before it. Of course, as humans, it’s in our nature to try to forecast the future, and that’s what we’ll be talking about in this article. What are some of our best guesses about what we can expect from AI in the future (near and far)? What possible ethical and practical concerns are there if a conscious AI were to be created? In this speculative future, should an AI have rights, or should it be feared?

Continue reading “The Future Of Artificial Intelligence”

CheetahBeam: More Proof That Cats Are Your Overlord

We don’t know what cats see when they see a red laser beam, but we know it isn’t what we see. The reaction, at least for many cats — is instant and extreme. Of course, your cat expects you to quit your job and play with it on demand. While [fluxaxiom] wanted to comply, he also knew that no job would lead to no cat food. To resolve the dilemma, he built an automated cat laser. In addition to the laser module, the device uses a few servos and a microcontroller in a 3D printed case. You can see a video, below. Dogs apparently like it too, but of course they aren’t the reason it was built.

If you don’t have a 3D printer, you can still cobble something together. The microcontroller is an Adafruit Pro Trinket, which is essentially an Arduino Pro Mini with some extra pins and a USB port.

Continue reading “CheetahBeam: More Proof That Cats Are Your Overlord”

Ingenious Use Of 3D Printer Gives Simba The Mane He Deserves

Here at Hackaday, we love clever 3D prints. This amazing lion statue remixed by [ _primoz_], makes us feel no different. It is no secret that FDM 3D printers have come a long way, propelled by the enthusiastic support from the open source community.

However, FDM 3D printers have some inherent limitations; some of which arise from a finite print nozzle diameter, tracing out the 3D object layer by layer. Simply put, some print geometries and dimensions are just unattainable. We discussed the solution to traditional FDM techniques being confined to Planer layers only in a previous article.

The case in point here is a 3D printed lion whose original version did not fully capture its majestic mane. [_primoz_] solution was to construct a support cylinder around the head and form the actual hair as a series of planar bristles, which were one extrusion wide.

6d2b2c7253516ff7b54ee1d3be0aa6a7_display_large

This was followed by some simple post processing, where a heat gun was used to form the bristles into a dapper mane.

The result is rather glorious and we can’t wait for someone to fire up a dual extruder and bring out the flexible filament for this print!

[via Thingiverse]