Re: Bluetooth Android
Inviato: sabato 11 febbraio 2012, 15:07
Niente da fare, mi da errore
Il forum della comunità italiana di Ubuntu.
https://forum.ubuntu-it.org/
Codice: Seleziona tutto
sdptool browse 38:EC:E4:89:71:A6
Codice: Seleziona tutto
theomini@theomini:~$ sdptool browse 38:EC:E4:89:71:A6
Browsing 38:EC:E4:89:71:A6 ...
Service RecHandle: 0x10000
Service Class ID List:
"PnP Information" (0x1200)
Service Name: Headset Gateway
Service RecHandle: 0x10001
Service Class ID List:
"Headset Audio Gateway" (0x1112)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 2
Profile Descriptor List:
"Headset" (0x1108)
Version: 0x0102
Service Name: Handsfree Gateway
Service RecHandle: 0x10002
Service Class ID List:
"Handsfree Audio Gateway" (0x111f)
"Generic Audio" (0x1203)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 1
Profile Descriptor List:
"Handsfree" (0x111e)
Version: 0x0105
Service Name: Object Push
Service RecHandle: 0x10003
Service Class ID List:
"OBEX Object Push" (0x1105)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 3
"OBEX" (0x0008)
Profile Descriptor List:
"OBEX Object Push" (0x1105)
Version: 0x0102
Service Name: AV Remote Control Target
Service RecHandle: 0x10004
Service Class ID List:
"AV Remote Target" (0x110c)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 23
"AVCTP" (0x0017)
uint16: 0x102
Profile Descriptor List:
"AV Remote" (0x110e)
Version: 0x0103
Service Name: BRCM Advanced Audio
Service RecHandle: 0x10005
Service Class ID List:
"Audio Source" (0x110a)
Protocol Descriptor List:
"L2CAP" (0x0100)
PSM: 25
"AVDTP" (0x0019)
uint16: 0x102
Profile Descriptor List:
"Advanced Audio" (0x110d)
Version: 0x0102
Service Name: SIM Access
Service RecHandle: 0x10006
Service Class ID List:
"SIM Access" (0x112d)
"Generic Telephony" (0x1204)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 4
Profile Descriptor List:
"SIM Access" (0x112d)
Version: 0x0102
Service Name: SMS
Service RecHandle: 0x10007
Service Class ID List:
"" (0x1132)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 5
"OBEX" (0x0008)
Profile Descriptor List:
"" (0x1134)
Version: 0x0100
Service Name: eMail
Service RecHandle: 0x10008
Service Class ID List:
"" (0x1132)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 6
"OBEX" (0x0008)
Profile Descriptor List:
"" (0x1134)
Version: 0x0100
Service Name: PBAP Server
Service RecHandle: 0x10009
Service Class ID List:
"Phonebook Access - PSE" (0x112f)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 19
"OBEX" (0x0008)
Profile Descriptor List:
"Phonebook Access" (0x1130)
Version: 0x0100Codice: Seleziona tutto
dmesg | grep hci0
Codice: Seleziona tutto
sudo rfcomm show 38:EC:E4:89:71:A6
Codice: Seleziona tutto
theomini@theomini:~$ sudo rfcomm show 38:EC:E4:89:71:A6
[sudo] password for theomini:
Get info failed: No such devicese non accetti sullo smarth non lo prende di sicuroTheophrastus ha scritto: Niente da fare, mi da errore
Codice: Seleziona tutto
sudo rfcomm show 38:EC:E4:89:71:A6
Codice: Seleziona tutto
theomini@theomini:~$ sudo rfcomm show 38:EC:E4:89:71:A6
[sudo] password for theomini:
Get info failed: No such deviceCodice: Seleziona tutto
sudo gedit /etc/bluetooth/hcid.conf
in quello evidenziato in rosso metti il PIN del telefonino bluetooth come passkey#----------------------------------------------------------------------------------------------
#
# HCI daemon configuration file.
#
# HCId options
options {
# Automatically initialize new devices
autoinit yes;
# Security Manager mode
# none - Security manager disabled
# auto - Use local PIN for incoming connections
# user - Always ask user for a PIN
#
security auto;
# Pairing mode
# none - Pairing disabled
# multi - Allow pairing with already paired devices
# once - Pair once and deny successive attempts
pairing multi;
# PIN helper
pin_helper /usr/bin/bluepin;
passkey "1234"
# D-Bus PIN helper
#dbus_pin_helper;
}
# Default settings for HCI devices
device {
# Local device name
# %d - device id
# %h - host name
name "%h-%d";
# Local device class
class 0x3e0100;
# Default packet type
#pkt_type DH1,DM1,HV1;
# Inquiry and Page scan
iscan enable; pscan enable;
# Default link mode
# none - no specific policy
# accept - always accept incoming connections
# master - become master on incoming connections,
# deny role switch on outgoing connections
lm accept;
# Default link policy
# none - no specific policy
# rswitch - allow role switch
# hold - allow hold mode
# sniff - allow sniff mode
# park - allow park mode
lp rswitch,hold,sniff,park;
# Authentication and Encryption (Security Mode 3)
auth enable;
encrypt enable;
}
Codice: Seleziona tutto
sudo gedit /etc/default/bluetooth
Codice: Seleziona tutto
# Defaults for bluez
# start bluetooth on boot?
# compatibility note: If this variable is not found bluetooth will
# start
BLUETOOTH_ENABLED=1
# This setting will switch HID devices (e.g mouse/keyboad) to HCI mode, that is
# you will have bluetooth functionality from your dongle instead of only HID.
# Note that not every bluetooth dongle is capable of switching back to HID
# mode, see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=355497
HID2HCI_ENABLED=1
HID2HCI_UNDO=1
Codice: Seleziona tutto
sudo gedit /var/lib/bluetooth/C4:46:19:B5:DA:92/config
Codice: Seleziona tutto
sudo chattr +i /var/lib/bluetooth/C4:46:19:B5:DA:92/config
Codice: Seleziona tutto
sudo service bluetooth restart