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:
parent
49871b37ab
commit
79145916ae
4 changed files with 13 additions and 5 deletions
|
@ -4,6 +4,8 @@ Bluetooth README
|
||||||
|
|
||||||
This role provides two services, pan or Personal Area Network, and term, terminal emulation.
|
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.
|
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.
|
The role is only available for the Raspberry Pi.
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# This is rpi only
|
# This is rpi only
|
||||||
|
|
||||||
- include_tasks: rpi_bluetooth_install.yml
|
- include_tasks: rpi_install.yml
|
||||||
when: is_rpi | bool
|
when: is_rpi and bluetooth_install
|
||||||
|
|
|
@ -25,6 +25,13 @@
|
||||||
- { src: 'iiab-bt-term-on.j2', dest: '/usr/bin/iiab-bt-term-on' }
|
- { 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' }
|
- { 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
|
# enable or disable bt-agent
|
||||||
- name: Enable & Restart 'bt-agent' service
|
- name: Enable & Restart 'bt-agent' service
|
||||||
systemd:
|
systemd:
|
||||||
|
|
|
@ -4,9 +4,8 @@ After=bluetooth.service
|
||||||
Requires=bluetooth.service
|
Requires=bluetooth.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
ExecStartPre=/usr/bin/sdptool add SP
|
||||||
ExecStart=/usr/bin/sdptool add SP
|
ExecStartPre=/bin/hciconfig hci0 piscan
|
||||||
ExecStartPost=/bin/hciconfig hci0 piscan
|
|
||||||
ExecStart=/usr/bin/rfcomm watch hci0 1 getty rfcomm0 115200 vt100
|
ExecStart=/usr/bin/rfcomm watch hci0 1 getty rfcomm0 115200 vt100
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue