Closed Simon-Yacoub closed 3 years ago
1.Clone https://github.com/Carleton-Autonomous-Mail-Robot/distance-from-rssi
Issue @ 4. Syntax error with "raw_input(...)" changed to "input()" and it ran. After running I get the following run time error:
Input: Enter MAC Address: fc:e2:2e:62:9b How much space do you have in meters?: 1 Calculate measured value? y or n : y Place at 1m then press enter
Out: Traceback (most recent call last): File "RSSI_tools.py", line 107, in tools.calculate_measured(mac) File "RSSI_tools.py", line 71, in calculate_measured RSSI = self.read_RSSI(MAC) File "RSSI_tools.py", line 17, in read_RSSI ble_list = Scanner().scan(0.5) File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 852, in scan self.start(passive=passive) File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 790, in start self._mgmtCmd("le on") File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 312, in _mgmtCmd raise BTLEManagementError("Failed to execute management command '%s'" % (cmd), rsp) bluepy.btle.BTLEManagementError: Failed to execute management command 'le on' (code: 20, error: Permission Denied)
Solution:
1.Clone https://github.com/Carleton-Autonomous-Mail-Robot/distance-from-rssi
Issue @ 4. Syntax error with "raw_input(...)" changed to "input()" and it ran. After running I get the following run time error:
Input: Enter MAC Address: fc:e2:2e:62:9b How much space do you have in meters?: 1 Calculate measured value? y or n : y Place at 1m then press enter
Out: Traceback (most recent call last): File "RSSI_tools.py", line 107, in
tools.calculate_measured(mac)
File "RSSI_tools.py", line 71, in calculate_measured
RSSI = self.read_RSSI(MAC)
File "RSSI_tools.py", line 17, in read_RSSI
ble_list = Scanner().scan(0.5)
File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 852, in scan
self.start(passive=passive)
File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 790, in start
self._mgmtCmd("le on")
File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 312, in _mgmtCmd
raise BTLEManagementError("Failed to execute management command '%s'" % (cmd), rsp)
bluepy.btle.BTLEManagementError: Failed to execute management command 'le on' (code: 20, error: Permission Denied)