Skip to content

mmarich/m18-protocol

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 

Repository files navigation

M18 Protocol

This repository contains research about the Milwaukee M18 protocol.

First step was to fake the charger commands in order to verify that the communication works as expected. ✅ Next step was figuring out what other commands are supported. ✅

While most of the registers and data are known, there are still some unknown. Contributions are welcome!

Hardware

In order to simulate the charger, the following circuit is proposed:

NOTE When using fake FT232 chips, break condition is not supported. The behaviour can be emulated by using the DTR line to pull the TX line low.

The voltage of the USB to Serial adapter should be 3.3V

hardware

Requirements

To use this software, Python is required. Please read the python and pip documentation.

Install the required packages by running

pip install -r requirements.txt

Usage

Once the required packages are installed, run the following command. If the serial port is known, specify it using --port to speed things up.

python3 m18.py

This opens an interractive shell that can be used to send different commands. Refer to the instructions provided in the shell.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%