A method of determining a time of arrival of a signal at an UWB ranging device (110, 610) comprising a first antenna (112, 612), the signal being transmitted by another UWB ranging device (120, 620), the method comprising: determining a first channel impulse response based on at least a part of the signal received at the first antenna (112, 612); determining a first time value as an earliest point in time at which the amplitude of the first channel impulse response exhibits a peak value; setting a candidate time value to the first time value; characterized in that the method further comprises: determining a first upper value as the amplitude of the first channel impulse response at a time value corresponding to the candidate time value plus a predetermined upper time value; determining a second upper value as the peak value plus a predetermined upper amplitude value; determining a first lower value as the amplitude of the first channel impulse response at a time value corresponding to the candidate time value minus a predetermined lower time value; determining a second lower value as the peak value minus a predetermined lower amplitude value; determining, as a first condition, whether the first upper value is larger than the second upper value; determining, as a second condition, whether the first lower value is smaller than the second lower value; and if at least one of the first condition and the second condition is not fulfilled, setting the time of arrival to the candidate time value. determining a first channel impulse response based on at least a part of the signal received at the first antenna (112, 612); determining a first time value as an earliest point in time at which the amplitude of the first channel impulse response exhibits a peak value; setting a candidate time value to the first time value; characterized in that the method further comprises: determining a first upper value as the amplitude of the first channel impulse response at a time value corresponding to the candidate time value plus a predetermined upper time value; determining a second upper value as the peak value plus a predetermined upper amplitude value; determining a first lower value as the amplitude of the first channel impulse response at a time value corresponding to the candidate time value minus a predetermined lower time value; determining a second lower value as the peak value minus a predetermined lower amplitude value; determining, as a first condition, whether the first upper value is larger than the second upper value; determining, as a second condition, whether the first lower value is smaller than the second lower value; and if at least one of the first condition and the second condition is not fulfilled, setting the time of arrival to the candidate time value. determining a first upper value as the amplitude of the first channel impulse response at a time value corresponding to the candidate time value plus a predetermined upper time value; determining a second upper value as the peak value plus a predetermined upper amplitude value; determining a first lower value as the amplitude of the first channel impulse response at a time value corresponding to the candidate time value minus a predetermined lower time value; determining a second lower value as the peak value minus a predetermined lower amplitude value; determining, as a first condition, whether the first upper value is larger than the second upper value; determining, as a second condition, whether the first lower value is smaller than the second lower value; and if at least one of the first condition and the second condition is not fulfilled, setting the time of arrival to the candidate time value.