Looks like there are two different options to put Bluetooth in discovery mode:
First method:
$ sudo bluetoothctl
#discoverable on
#pairable on
#agent on
#default-agent
Second method:
$ sudo hciconfig hci0 piscan
Second method seems to be simpler. Is there any problem in using the second method? When does the first method make sense?