1

I have been experimenting with pinging a list of known Bluetooth MAC addresses for a tracking project with a Pi 3, however, the ping does not seem to time out until after 5-7 seconds if there is no device detected. In contrast if there is a device it will only take around 1 second before it moves on. Even with -t there seems to be no overriding it.

sudo l2ping -c 1 -t 1 xx:xx:xx:xx:xx:xx

Is there any way to force a faster timeout?

EDIT: Corrected flag order

2
  • usually arguments go before the final address. from l2ping usage: l2ping [-i device] [-s size] [-c count] [-t timeout] [-d delay] [-f] [-r] [-v] <bdaddr> so maybe try 'sudo l2ping -t 1 -c 1 xx:xx:xx:xx:xx:xx
    – Chad G
    Feb 15, 2019 at 0:24
  • I've tried 'sudo l2ping -c 1 -t 1 xx:xx:xx:xx:xx:xx' and 'sudo l2ping -t 1 -c 1 xx:xx:xx:xx:xx:xx' as well now, both take ~7 seconds still to execute, but thanks for catching that.
    – Cecil BN
    Feb 15, 2019 at 16:04

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.