Pagina 2 di 3

Re: Bluetooth Android

Inviato: sabato 11 febbraio 2012, 15:07
da Theophrastus
Niente da fare, mi da errore

Re: Bluetooth Android

Inviato: sabato 11 febbraio 2012, 19:21
da magozurlinux
Da terminale col telefonino in modalità di rilevamento postami questo comando:

Codice: Seleziona tutto

sdptool browse 38:EC:E4:89:71:A6

Re: Bluetooth Android

Inviato: sabato 11 febbraio 2012, 21:32
da Theophrastus

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: 0x0100
Poi, alla fine, mi spiegheresti cosa non andava?
Giusto per imparare qualcosa

Re: Bluetooth Android

Inviato: domenica 12 febbraio 2012, 20:04
da magozurlinux
Riprova ad inviare un file, appena emette l'errore, da terminale postami questo comando:

Codice: Seleziona tutto

dmesg | grep hci0

Re: Bluetooth Android

Inviato: domenica 12 febbraio 2012, 22:21
da Theophrastus
Niente

Re: Bluetooth Android

Inviato: lunedì 13 febbraio 2012, 17:52
da magozurlinux
Da terminale postami questo comando:

Codice: Seleziona tutto

sudo rfcomm show 38:EC:E4:89:71:A6

Re: Bluetooth Android

Inviato: lunedì 13 febbraio 2012, 18:25
da Theophrastus

Codice: Seleziona tutto

theomini@theomini:~$ sudo rfcomm show 38:EC:E4:89:71:A6
[sudo] password for theomini: 
Get info failed: No such device

Re: Bluetooth Android

Inviato: lunedì 13 febbraio 2012, 18:32
da Diabolik62
siete sicuri che serva blueman su oneric??io non  c'è l'ho e nemmeno il terminale lo trova
questo non  esiste
http://www.lffl.org/2010/06/il-trucco-d ... evere.html

Re: Bluetooth Android

Inviato: lunedì 13 febbraio 2012, 18:35
da Diabolik62
Theophrastus ha scritto: Niente da fare, mi da errore
se non accetti sullo smarth non lo prende di sicuro

Re: Bluetooth Android

Inviato: lunedì 13 febbraio 2012, 18:37
da magozurlinux
Va bene quello di default cioè gnome bluetooth.

Da terminale postami questo comando col telefonino in modalità di rilevamento:

Codice: Seleziona tutto

sudo rfcomm show 38:EC:E4:89:71:A6

Re: Bluetooth Android

Inviato: lunedì 13 febbraio 2012, 18:56
da magozurlinux
@Diabolik62

Non occorre Blueman basta gnome bluetooth; se questo non funziona sarà meglio scaricare Blueman ed installarlo.

Il link che hai postato va bene fino ad Ubuntu 10.04 LTS come quella che uso ancora; vedi scritta rotante in basso  ;D; sto aspettando la 12.04 LTS versione stabile per provarla e se tutto è OK l'installerò.

Re: Bluetooth Android

Inviato: martedì 14 febbraio 2012, 8:02
da Theophrastus
@Diabolik62

Il cell si associa automaticamente al pc ogni volta che entrambi i bluetooth sono accesi. Lo fa in automatico.
Rimosso Blueman.


@magozurlinux

Codice: Seleziona tutto

theomini@theomini:~$ sudo rfcomm show 38:EC:E4:89:71:A6
[sudo] password for theomini: 
Get info failed: No such device
Il cell risulta associato al pc.
Ho inviato un file dal cell al pc: perfettamente riuscito.
Ho inviato un file dal pc al cell:

Re: Bluetooth Android

Inviato: martedì 14 febbraio 2012, 10:00
da magozurlinux
Dai questo comando da terminale:

Codice: Seleziona tutto

sudo gedit /etc/bluetooth/hcid.conf
il file sarà vuoto, perchè da Ubuntu 9.10 non c'è più questo file; copia e incolla nel file vuoto queste righe;
#----------------------------------------------------------------------------------------------
#
# 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;
}
in quello evidenziato in rosso metti il PIN del telefonino bluetooth come passkey

Salva ed esci dall'editor di testo.

Da terminale dai questo comando:

Codice: Seleziona tutto

sudo gedit /etc/default/bluetooth
copia ed incolla questo in /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
salva ed esci dall'editor di testo.

Da terminale dai questo comando:

Codice: Seleziona tutto

sudo gedit /var/lib/bluetooth/C4:46:19:B5:DA:92/config
cerca la riga mode off

cambiala in mode on e se non c'è aggiungila.

Salva ed esci dall'editor di testo.

Da terminale dai questi comandi:

Codice: Seleziona tutto

sudo chattr +i /var/lib/bluetooth/C4:46:19:B5:DA:92/config

Codice: Seleziona tutto

sudo service bluetooth restart
Riavvia il pc.

Prova ad inviare un file dal pc al telefonino bluetooth.

Re: Bluetooth Android

Inviato: martedì 14 febbraio 2012, 14:44
da Theophrastus
Niente da fare, stesso problema. Cambia il numero fra parentesi, adesso è 111.
La passkey che ho inserito non me la fa digitare e neppure me la chiede.
Ogni volta che faccio l'associazione fra pc e cell, il pc invia un codice a caso.

Re: Bluetooth Android

Inviato: martedì 14 febbraio 2012, 17:36
da Diabolik62
reinstalla blueman

Re: Bluetooth Android

Inviato: martedì 14 febbraio 2012, 18:18
da magozurlinux
Nella rete ho trovato questo, leggilo, ti può interessare, fa al caso tuo:

http://www.lffl.org/2012/01/impossibile ... do-il.html

Reinstalla Blueman!  (good)

Re: Bluetooth Android

Inviato: martedì 14 febbraio 2012, 18:50
da Diabolik62
ricorda di avviare dalla dash gestore bluetooth.

Re: Bluetooth Android

Inviato: martedì 14 febbraio 2012, 21:38
da Theophrastus
Rimesso Blueman.
Avevo già provato con entrambi.
Niente da fare.

@magozurlinux
Avevo già seguito quella guida prima di postare sul forum. Quello la fa facile ma a me non funziona.

Re: Bluetooth Android

Inviato: martedì 14 febbraio 2012, 21:57
da Diabolik62
hai letto la risposta dell'errore, connessione rifiutata,non hai dato il consenso dallo smart a trasferire il file dal telefono >:( >:(

Re: Bluetooth Android

Inviato: martedì 14 febbraio 2012, 22:53
da Theophrastus
@Diabolik62

Ti spiego meglio come vanno le cose.
Con il gestore bluetooth di default il cell si associa tramite passkey. Il pc invia la pass e sul telefono appare la richiesta. Le 2 pass coincidono. Faccio tutto, si associano, ma non riesco ad inviare file dal pc al cell.
Con Blueman, anche se lo configuro con la passkey, mi manda un numero che sul telefono appare diverso da quello che mi da sul pc. SI associano ugualmente ma mi dice permesso negato.
Se riesco, a sto punto, giro un video, così vi faccio vedere quel che succede, perchè temo che a forza di schermate non si arrivi da nessuna parte.
Ne ho avuti di cell, parecchi, non sono rinc*glionito del tutto. Non mi imputare degli errori da def*cente, tipo quello del messaggio prima.
Non è una questione di passkey accettata o meno. Il problema è un altro. Sicuramente.