Automatic baudrate converter

Technology
Automatic baudrate converter

Img 3512
Automatic baudrate converter… Sprites mods writes –

If you want to go hack a microprocessor-based device, the first thing you usually do after cracking the case and identifying all the chips, is look for a serial port. Regardless of the type of device (Linux-based, running WinCE, working on some kind of RTOS, maybe even with no OS at all), the majority of them have a serial port for debugging purposes. Most of these ports have useful info on them even with non-debug firmware, so it’s a nice and easy way to learn more on the device.

Finding the serial port can be a bit of a hassle though. After finding the correct pins, you still need to know the baudrate the port works on. This usually means trying out every single rate on the receiving PC until you’re lucky. Having a digital oscilloscope can simplify things a little, but even if you have one, it’s still no fun to fire it up and try and deduce the baudrate from a trace you manage to capture.

As you may have deduced from the rest of my site, I’ve hacked my fair share of devices in the past. The procedure for most them included the routine described above to get the correct serial port parameters. After doing this for the umphteenth time, I decided I wanted to automate the process: if I myself could figure out the baudrate using only my PC or a ‘scope, there’s no reason a microcontroller couldn’t be taught the same trick.

Discuss this article with the rest of the community on our Discord server!
Tagged

current: @adafruit - previous: MAKE, popular science, hackaday, engadget, fallon, braincraft ... howtoons, 2600...

View more articles by Phillip Torrone

ADVERTISEMENT

Ready to dive into the realm of hands-on innovation? This collection serves as your passport to an exhilarating journey of cutting-edge tinkering and technological marvels, encompassing 15 indispensable books tailored for budding creators.

FEEDBACK