From d1f7f58ca243b29bc9d855771a29a26008d2fe4b Mon Sep 17 00:00:00 2001 From: Shin'ichiro Kawasaki Date: Tue, 21 Mar 2023 16:52:16 +0900 Subject: [PATCH] README.md: Add description about -r option for scan failure Add an item to "In Case You Fail to Connect" section to describe that the "-r" option may help to address device scan failure. Signed-off-by: Shin'ichiro Kawasaki --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ff5c5a6..3780a5e 100644 --- a/README.md +++ b/README.md @@ -141,10 +141,22 @@ In Case You Fail to Connect * If the service is not working, refer guide of your distro to set it up. * If the service is working, also check that /etc/bluetooth/main.conf sets AutoEnable=true. -3. If scratch_link.py says "failed to connect to BT device: [Errno 13] Permission denied", +3. If device scan still fails, use -r option to retry device scan. + The command line below does device scan twice. Each scan takes 10 seconds. + ``` + $ scratch_link -r 2 + ``` + It would be good to use -s option together to reduce each scan duration. + The command line below does 3 seconds device scan twice. + + ``` + $ scratch_link -r 2 -s 3 + ``` + +4. If scratch_link.py says "failed to connect to BT device: [Errno 13] Permission denied", make sure to pair the bluetooth device to your PC before connecting to Scratch. -4. To connect to multiple devices at the same time, make all the target devices +5. To connect to multiple devices at the same time, make all the target devices ready for scan at the first device scan. This is important for toio. The toio allows a single project to connect to two toio devices. * When the second device was prepared after the first device was connected, device scan can not find the second device.