#cat /etc/bluetooth/hcid.conf
options {
autoinit yes;
security user;
pairing multi;
passkey "3587";
}
device {
name "demoname";
class 0x3e0100;
pkt_type DH1,DM1,HV1;
iscan enable; pscan enable;
lm accept;
lp rswitch,hold,sniff,park;
}
#cat /etc/bluetooth/rfcomm.conf
rfcomm0 {
bind yes;
device 00:0E:6D:D8:7F:67; #hcitool scan
channel 1; #sdptool search DUN 00:0E:6D:D8:7F:67 | grep Channel
comment "AwealPhone"; #
}
сам скрипт:
фрейм