A computer-implemented method of operating a diabetes treatment system that includes an insulin pump and a pump controlling device is disclosed. The method includes receiving, by the device, a request for the pump to perform an operation that is dependent on a specified state of the pump. The method also includes requesting, by the device, a current state of the pump from the pump. Moreover, the method includes receiving, by the device, the current state of the pump. Also, the method includes determining, by the device, whether the current state of the pump matches to the specified state of the pump. Additionally, the method includes sending, by the device to the pump, a command to perform the operation in response to a determination that the current state of the pump matches the specified state of the pump.L'invention concerne un système de traitement du diabète, qui comprend une pompe à insuline et un dispositif de commande de pompe à distance. L'unité de commande à distance, lors de la réception d'une requête (68) pour que la pompe réalise une opération telle que le démarrage d'une technique d'administration d'insuline particulière, interroge (70) la pompe pour son état courant (par exemple, administration en cours, suspendue, arrêtée) et détermine (73) si l'état courant de la pompe correspond ou non à l'état requis pour réaliser (76) l'opération demandée.