- changes for PipeWire and Debian Bookworm

This commit is contained in:
Dmytro Bogovych 2023-12-18 11:08:08 +00:00
parent 6feb10f49a
commit 3b9e74d5ee
2 changed files with 5 additions and 3 deletions

View File

@ -11,7 +11,7 @@ GIT_SOURCE=https://git.sevana.biz/public/agent_gsm
# Install prerequisites
sudo apt install --assume-yes git mc python3 sox vim libffi-dev screen python3-pip python3-numpy dnsmasq hostapd screen
sudo pip3 install pyyaml sox pyrabbit soundfile dbus_python pexpect requests rabbitpy bottle
sudo pip3 install pyyaml sox pyrabbit soundfile dbus_python pexpect requests rabbitpy bottle --break-system-packages
if [ -f "$INSTALL_DIR" ]; then
rm -rf "$INSTALL_DIR"

6
src/bt_phone_test.py Normal file → Executable file
View File

@ -13,7 +13,7 @@ PHONE_BT_MAC = '40:B0:76:B4:36:98'
# Connection to phone
bluetooth_ctl = bt_controller.Bluetoothctl()
devices = bt_controller.get_paired_devices()
devices = bluetooth_ctl.get_paired_devices()
print(f'Paired devices: {devices}')
# disconnect before connect
@ -34,9 +34,11 @@ phone.call_number('111222')
# Wait 5 seconds
time.sleep(5)
# Just to be sure
# Just to be sure - finish the call
phone.hangup_call()
phone.quit_dbus_loop()
# Disconnect BT transport from the phone
bluetooth_ctl.disconnect(PHONE_BT_MAC)
exit(EXIT_OK)