19 lines
330 B
Bash
Executable File
19 lines
330 B
Bash
Executable File
#!/bin/sh
|
|
|
|
modprobe hci_uart
|
|
|
|
#/root/gpio.sh
|
|
/root/bttest.sh
|
|
|
|
bccmd -t bcsp -d /dev/ttyS1 psload -r bluez.psr
|
|
|
|
#hciattach /dev/ttyS1 bcsp
|
|
#hciattach /dev/ttyS1 any
|
|
#hciattach /dev/ttyS1 csr
|
|
hciattach -s 115200 /dev/ttyS1 bcsp 115200 noflow
|
|
hciconfig hci0 name linportege
|
|
hciconfig hci0 up
|
|
hciconfig hci0 piscan
|
|
hciconfig -a hci0
|
|
|