A joining unit (400) for controlling a connection between an infusion pump (200) and a cannula (310) is described. The joining unit has a connection detector for detecting whether an infusion pump is connected to a cannula. The joining unit further has a wireless transmitter for transmitting to the infusion pump a connection indication in response to detecting by the connection detector that the infusion pump is connected to the cannula.