A method for controlling a probe for the treatment of a brain tissue from an assembly comprising the probe and an acoustic window intended to be implanted at an opening arranged in the cranium of a patient, the probe including a plurality of ultrasonic wave generation transducers and being intended to be positioned in line with the acoustic window, characterized in that the method comprises: - a detection phase of: o transducers of the probe situated above the cranium of the patient, and o transducers of the probe situated above the acoustic window, to enable: o the deactivation of the transducers of the probe situated above the cranium of the patient, o the activation of the transducers of the probe situated above the acoustic window, said transducers being able to generate ultrasonic treatment waves in order to treat the brain tissue, the detection phase comprising the steps of: - emitting, for each transducer, an ultrasonic measurement wave toward the patient's skull from the probe, - measuring, for each transducer, an ultrasonic echo wave reflected from the probe, - processing each ultrasonic echo wave to detect whether the associated transducer is situated above the acoustic window or above the cranium, - processing each ultrasonic wave to estimate an acoustic coupling quality between the probe and the target tissue. characterized in that the method comprises: - a detection phase of: o transducers of the probe situated above the cranium of the patient, and o transducers of the probe situated above the acoustic window, - a detection phase of: o transducers of the probe situated above the cranium of the patient, and o transducers of the probe situated above the acoustic window, o transducers of the probe situated above the cranium of the patient, and o transducers of the probe situated above the acoustic window, to enable: o the deactivation of the transducers of the probe situated above the cranium of the patient, o the activation of the transducers of the probe situated above the acoustic window, said transducers being able to generate ultrasonic treatment waves in order to treat the brain tissue, o the deactivation of the transducers of the probe situated above the cranium of the patient, o the activation of the transducers of the probe situated above the acoustic window, said transducers being able to generate ultrasonic treatment waves in order to treat the brain tissue, the detection phase comprising the steps of: - emitting, for each transducer, an ultrasonic measurement wave toward the patient's skull from the probe, - measuring, for each transducer, an ultrasonic echo wave reflected from the probe, - processing each ultrasonic echo wave to detect whether the associated transducer is situated above the acoustic window or above the cranium, - processing each ultrasonic wave to estimate an acoustic coupling quality between the probe and the target tissue. - emitting, for each transducer, an ultrasonic measurement wave toward the patient's skull from the probe, - measuring, for each transducer, an ultrasonic echo wave reflected from the probe, - processing each ultrasonic echo wave to detect whether the associated transducer is situated above the acoustic window or above the cranium, - processing each ultrasonic wave to estimate an acoustic coupling quality between the probe and the target tissue.