Simulation of master controller and lock controller