The present disclosure refers to a method for operating a system, the system comprising a medical device (1), having at least one of a sensor device for sensing medical data and a medication delivery device for delivering medication, a portable electronic consumer device (2), an intermediate device (3) provided with a first communication protocol for data communication with the portable electronic consumer device (2) and a second communication protocol for data communication with the medical device (1), and a control module (6) provided in the intermediate device (3), the method comprising, in the control module (6), receiving control data from the portable electronic consumer device (2) by a receiving functionality provided in the control module (6), the control data being configured for controlling operation of the medical device (1), determining whether the control data can be confirmed by a confirmation functionality provided in the control module (6), and if the control data are confirmed, transmitting the control data to the medical device (1) by a transmission functionality provided in the control module (6). Further, a system is provided.