Reverse-engineering The Milwaukee M18 Redlink Protocol

In an ideal world, every single battery pack for power tools would use the same physical interface and speak a clearly documented protocol with chargers. Since we live in a decidedly less-than-ideal world, we get to enjoy the fun pastime of reverse-engineering the interfaces and protocols of said battery packs.

Hooking up a logic analyzer to a M18 battery and charger.

A recent video from the [Tool Scientist] goes over what is already known about the Milwaukee M18 Redlink protocol, used with the manufacturer’s M18-series of batteries, before diving into some prodding and poking of these packs’ sensitive parts to see what comes out of their interface.

Previously, [Buy It Fix It] shared their findings on Reddit, covering the basic protocol, including the checksum method, but without an in-depth analysis of the entire charging protocol. Meanwhile [Quagmire Repair] performed an in-depth teardown and reverse-engineering of the M18 hardware, including the circuitry of the BMS.

Putting these two things together, [Tool Scientist] was able to quickly get some of his M18 packs strapped down into the analysis chair for both passive analysis, as well as the effect of overvoltage, undervoltage, overheating and freezing the battery pack on the output reported by the battery’s BMS.

One of the lists of commands and response messages obtained by [Tool Scientist] on YouTube.
One of the lists of commands and response messages obtained by [Tool Scientist] on YouTube.
The result is a rather comprehensive list of instructions obtained under these various conditions, including a fault condition (05) returned by the BMS of one pack indicating its likely demise. Overall, it does not appear to be a particularly special (or well-designed) protocol, but it does make for a good reverse-engineering target, while adding to the body of collective knowledge on these widely available battery packs.

Hopefully the same inertia that prevents people from moving outside the designated power tool ecosystem due to the incompatible battery packs will also ensure that this level of  knowledge will remain relevant for the foreseeable future, especially since the manufacturers of knock-off battery packs seem rather unwilling to share the results of their own reverse-engineering efforts.

19 thoughts on “Reverse-engineering The Milwaukee M18 Redlink Protocol

    1. “Standard” serial baud rates require specific crystal values. The value 1.8432 MHz has been stuck in my head for decades. Using a round number like 2000 baud means the crystal can also be a round value like 2.000 or 8.000 MHz.

      1. That’s what I suspect. Low clock frequency and/or limited number of divider options and the closest ratio + jitter may be off enough to cause bit errors in the last bit. More advanced peripherals have fractional baud rate dividers that can slightly vary bit width so that average bit time is much closer to the ideal.

        1. Also easier to see on the scope when a bit time fits perfectly on a division. If you’re not going to hook up the serial lines to a PC anyway, there’s no reason to use standard baud rates.

      1. There’s a physical tab to prevent you connecting a lower capacity pack to a more power-hungry tool like a grinder, which is a safety issue.

        There may be smarts in the charger, but nothing required to draw power.

  1. “Hopefully the same inertia that prevents people from moving outside the designated power tool ecosystem due to the incompatible battery packs ”

    Protocol isn’t the only one. Shape and keying is the other.

    “… especially since the manufacturers of knock-off battery packs seem rather unwilling to share the results of their own reverse-engineering efforts.”

    Competitive world. Even my cats recognize that.

    1. If Apple must put a USB C connector on their phones, maybe we should be looking at everyone who purposesly puts “ransomware” features on their products purely for locking you in to higher prices and early obsolescence.
      The more tech goes into things, the more this practice evolves.
      The logical end game (which is already happening) is that you never own the things you buy.
      Ridiculous.

  2. my solution to the One Battery to Rule them All.
    most of my tools are Dewalt, so I have a large variety Dewalt batterys and chargers
    But I also have a few Ryobi garden tools, you can buy an adapter that lets you use dewalt batterys on Ryobi tools.

Leave a Reply

Please be kind and respectful to help make the comments section excellent. (Comment Policy)

This site uses Akismet to reduce spam. Learn how your comment data is processed.