A method for determining a distance between a first networked electronic device having a first loudspeaker and a first microphone and a second networked electronic device having a second loudspeaker and a second microphone, the method comprising: emitting, using the first loudspeaker, a first sound signal comprising a first measuring wave having a first frequency carried on a first carrier wave having a first carrier frequency being higher than the first frequency, wherein the first sound signal is sinusoidal amplitude modulated; receiving, using the second microphone, the first sound signal; the method further comprising: defining, at the second electronic device, a second sound signal comprising a second measuring wave having the first frequency carried on a second carrier wave having a second carrier frequency different from the first carrier frequency, wherein the second sound signal is sinusoidal amplitude modulated and wherein defining the second sound signal comprises setting the phase of the second measuring wave to be same as a phase of the first measuring wave of the by the second microphone received first sound signal thereby a phase of the second measuring wave is set such that it simulates a reflection of the first measuring wave on the second networked electronic device; emitting, using the second loudspeaker, the second sound signal; receiving, using the first microphone, the second sound signal; and calculating the distance between the first networked electronic device and the second networked electronic device based on a phase shift between the emitted first measuring wave and the received second measuring wave. emitting, using the first loudspeaker, a first sound signal comprising a first measuring wave having a first frequency carried on a first carrier wave having a first carrier frequency being higher than the first frequency, wherein the first sound signal is sinusoidal amplitude modulated; receiving, using the second microphone, the first sound signal; the method further comprising: defining, at the second electronic device, a second sound signal comprising a second measuring wave having the first frequency carried on a second carrier wave having a second carrier frequency different from the first carrier frequency, wherein the second sound signal is sinusoidal amplitude modulated and wherein defining the second sound signal comprises setting the phase of the second measuring wave to be same as a phase of the first measuring wave of the by the second microphone received first sound signal thereby a phase of the second measuring wave is set such that it simulates a reflection of the first measuring wave on the second networked electronic device; emitting, using the second loudspeaker, the second sound signal; receiving, using the first microphone, the second sound signal; and calculating the distance between the first networked electronic device and the second networked electronic device based on a phase shift between the emitted first measuring wave and the received second measuring wave. defining, at the second electronic device, a second sound signal comprising a second measuring wave having the first frequency carried on a second carrier wave having a second carrier frequency different from the first carrier frequency, wherein the second sound signal is sinusoidal amplitude modulated and wherein defining the second sound signal comprises setting the phase of the second measuring wave to be same as a phase of the first measuring wave of the by the second microphone received first sound signal thereby a phase of the second measuring wave is set such that it simulates a reflection of the first measuring wave on the second networked electronic device; emitting, using the second loudspeaker, the second sound signal; receiving, using the first microphone, the second sound signal; and calculating the distance between the first networked electronic device and the second networked electronic device based on a phase shift between the emitted first measuring wave and the received second measuring wave.