schollz / find3-cli-scanner

The command-line scanner that supports Bluetooth and WiFi
https://www.internalpositioning.com/doc/tracking_your_computer.md
149 stars 55 forks source link

Cannot scan wifi and bluetooth at the same time #52

Open t-walker-wei opened 2 years ago

t-walker-wei commented 2 years ago

Device: Raspberry pi 4B with USB bluetooth adapter When enable scan bluetooth with "-bluetooth" the debug info only show bluetooth info.

2021-11-02 10:53:42 [INFO] main.go func1:214 scanning bluetooth 2021-11-02 10:53:42 [INFO] main.go func1:218 scanning for 5 seconds 2021-11-02 10:53:42 [DEBUG] bluetooth.go scanBluetooth:38 scanning bluetooth 2021-11-02 10:53:47 [DEBUG] bluetooth.go scanBluetooth:61 bluetooth scan finished 2021-11-02 10:53:47 [DEBUG] main.go basicCapture:369 { "t": 1635821622435, "f": "walker", "d": "rpi", "l": "livingroom", "s": { "bluetooth": { "0f:92:46:83:c6:5d": -67, "7b:a8:06:a5:63:06": -87, "fa:7a:a7:ea:31:05": -82 } }, "gps": {} }

If without "-bluetooth" I get:

2021-11-02 10:37:59 [INFO] main.go func1:211 scanning with wlan0 2021-11-02 10:38:00 [DEBUG] main.go basicCapture:369 { "t": 1635820679441, "f": "walker", "d": "rpi", "l": "livingroom", "s": { "wifi": { "04:d9:f5:53:0f:c8": -32, "04:d9:f5:53:0f:cc": -35, "30:fc:68:bd:b5:55": -74, "60:aa:ef:c0:e0:ec": -75, "60:aa:ef:c0:e0:f1": -76, "70:3a:73:06:0a:80": -66 } }, "gps": {} } How can I scan both wifi and bluetooth?