|
@@ -152,6 +152,8 @@ $ bluetoothctl
|
|
Connected: no
|
|
Connected: no
|
|
LegacyPairing: yes
|
|
LegacyPairing: yes
|
|
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
|
|
UUID: Serial Port (00001101-0000-1000-8000-00805f9b34fb)
|
|
|
|
+
|
|
|
|
+> quit
|
|
```
|
|
```
|
|
Try to send a packet
|
|
Try to send a packet
|
|
```bash
|
|
```bash
|
|
@@ -172,14 +174,15 @@ sudo apt update
|
|
sudo apt upgrade -y
|
|
sudo apt upgrade -y
|
|
sudo apt autoremove
|
|
sudo apt autoremove
|
|
|
|
|
|
-sudo apt install python3-dev python3-pip
|
|
|
|
|
|
+sudo apt install python3-dev python3-pip python3-matplotlib
|
|
|
|
|
|
-python3 -m pip -U pip setuptools matplotlib
|
|
|
|
|
|
+python3 -m pip install -U pip setuptools
|
|
|
|
+python3 -m pip install -U matplotlib
|
|
```
|
|
```
|
|
|
|
|
|
-## 6.1 Install pybluez
|
|
|
|
|
|
+## 6.1 Install pybluez for python
|
|
```bash
|
|
```bash
|
|
-sudo apt-get install bluez bluez-tools python3-bluez
|
|
|
|
|
|
+sudo apt-get install bluez bluez-tools
|
|
sudo apt install libbluetooth-dev
|
|
sudo apt install libbluetooth-dev
|
|
|
|
|
|
python3 -m pip install wheel pybluez
|
|
python3 -m pip install wheel pybluez
|
|
@@ -205,6 +208,7 @@ Workaround: use gpio bitbang instead of spi device
|
|
## 6.4 Install I2C support
|
|
## 6.4 Install I2C support
|
|
```bash
|
|
```bash
|
|
sudo apt install python3-smbus
|
|
sudo apt install python3-smbus
|
|
|
|
+python3 -m pip install smbus
|
|
```
|
|
```
|
|
|
|
|
|
# 7. Fix `bluetoothd` service
|
|
# 7. Fix `bluetoothd` service
|