An adapter for a power tool includes a housing, a tool-side connector, and a battery-side connector in electrical communication with each other. The tool-side connector is configured to couple to a power tool, and the battery-side connector is configured to couple to a battery pack. The adapter also includes a communication interface configured to couple with an external device, and a controller. The controller is configured to determine a state of the power tool, operate in a data transmission mode when the power tool is in the idle state, operate in a pass-through mode when the power tool is in the active state, and switch between the data transmission mode and the pass-through mode based on the state of the power tool.