1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

round 1 debug

This commit is contained in:
Tim Moody 2019-06-02 15:50:50 -04:00
parent 49871b37ab
commit 79145916ae
4 changed files with 13 additions and 5 deletions

View file

@ -4,6 +4,8 @@ Bluetooth README
This role provides two services, pan or Personal Area Network, and term, terminal emulation.
The terminal operates at 115200 bps.
They may be turned on or off with iiab-bt-pan-on(off) and iiab-bt-term-on(off), respectively.
The role is only available for the Raspberry Pi.

View file

@ -1,4 +1,4 @@
# This is rpi only
- include_tasks: rpi_bluetooth_install.yml
when: is_rpi | bool
- include_tasks: rpi_install.yml
when: is_rpi and bluetooth_install

View file

@ -25,6 +25,13 @@
- { src: 'iiab-bt-term-on.j2', dest: '/usr/bin/iiab-bt-term-on' }
- { src: 'iiab-bt-term-off.j2', dest: '/usr/bin/iiab-bt-term-off' }
# Bluetooth service needs /usr/lib/bluetooth/bluetoothd -C --noplugin=sap
- name: Add -C --noplugin=sap to execStart of bluetooth service
lineinfile:
path: /lib/systemd/system/bluetooth.service
regexp: '^ExecStart=/usr/lib/bluetooth/bluetoothd'
line: 'ExecStart=/usr/lib/bluetooth/bluetoothd -C --noplugin=sap'
# enable or disable bt-agent
- name: Enable & Restart 'bt-agent' service
systemd:

View file

@ -4,9 +4,8 @@ After=bluetooth.service
Requires=bluetooth.service
[Service]
Type=oneshot
ExecStart=/usr/bin/sdptool add SP
ExecStartPost=/bin/hciconfig hci0 piscan
ExecStartPre=/usr/bin/sdptool add SP
ExecStartPre=/bin/hciconfig hci0 piscan
ExecStart=/usr/bin/rfcomm watch hci0 1 getty rfcomm0 115200 vt100
[Install]