Hello. I am looking for how to schedule the car controls, they worked until the battery of both was over but when replacing them no longer obeyed

the battery to the car but the controls still worked later. Now I can open the centralized closure from the trunk and I can start the car with any of the keys.
If you have any solution or manual I thank you very much.