Prepojenie pc a w810i cez bluetooth

Všetko ohľadom Linuxu...
pato83
Addict
Addict
Používateľov profilový obrázok
Príspevky: 3916
Registrovaný: 21 nov 2005, 22:12

Prepojenie pc a w810i cez bluetooth

Príspevok od používateľa pato83 »

Zdravim, uz par dni sa trapim s prepojenim pc a mojho telefonu w810i cez bluetooth. Navodov som precital spustu, ale vsade je napisane nieco v zmysle " hcitool scan najde zariadenia" ale nikde nepisu, co robit ak nie. Moj pripad. Distribucia je Debian Lenny, bluetooth adapter je zabudovany, je to Dell true mobile 355. Kernel je 2.6.28.7, vlastna uprava, no nemyslim, ze by nieco chybala a hlavne na tom vypise z dmesg vyzera vsetko v najlepsom poriadku.

Kód: Vybrať všetko

root@debian:/dev# dmesg | grep -i blue
[   41.308198] Bluetooth: Core ver 2.13
[   41.310674] Bluetooth: HCI device and connection manager initialized
[   41.310799] Bluetooth: HCI socket layer initialized
[   41.398961] Bluetooth: L2CAP ver 2.11
[   41.399081] Bluetooth: L2CAP socket layer initialized
[   41.421548] Bluetooth: RFCOMM socket layer initialized
[   41.421688] Bluetooth: RFCOMM TTY layer initialized
[   41.421801] Bluetooth: RFCOMM ver 1.10
[ 8289.535587] Bluetooth: HCI USB driver ver 2.10

Kód: Vybrať všetko

pato@debian:/dev$ hcitool scan
Device is not available: No such device
Vie niekto poradit?
tukilluki
Medium Expert
Medium Expert
Používateľov profilový obrázok
Príspevky: 139
Registrovaný: 10 mar 2007, 16:35
Bydlisko: Bratislava - okolie
Kontaktovať používateľa:

Príspevok od používateľa tukilluki »

aky je rozhranie ktore ma skenovat? to je jak iwlist WLAN0 scan tak podobne hcitool scan hci0 napriklad (hciconfig vypise rozhrania)
pato83
Addict
Addict
Používateľov profilový obrázok
Príspevky: 3916
Registrovaný: 21 nov 2005, 22:12

Príspevok od používateľa pato83 »

tukilluki napísal:aky je rozhranie ktore ma skenovat? to je jak iwlist WLAN0 scan tak podobne hcitool scan hci0 napriklad (hciconfig vypise rozhrania)
Hciconfig mozno vypise rozhrania, ano to mas pravdu, ale nie u mna. To hci0 som tam dal len na ukazku, ziadne take zariadenie sa v /dev nenachadza a ani nikdy nevytvori. Ale dakujem, problem je vyrieseny. Vysvetlenie je zaujimave a hodne iritujuce. Aj ked ano, laptop je predavany s vistou, tak jediny, kto ma problem som opat len ja. Bluetooth adaptery dell truemobile 350, 355, 360 obsahuju firmware upraveny pre Vistu. / mozno aj ine, tieto urcite / Riesenie je len jedno a to skutocne. Treba spustit vistu / alternativne staci aj XP plus aplikacia zo stranok Dell / na zapnutie bluetooth. Potom restart, nabootovanie debianu a vsetko funguje out-of-box. Prosim, tu su aj dake vypisy, co som porobil pred restartom:

Kód: Vybrať všetko

lsusb -v -d 0a5c:4500

Bus 005 Device 005: ID 0a5c:4500 Broadcom Corp. 
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            9 Hub
  bDeviceSubClass         0 Unused
  bDeviceProtocol         0 Full speed (or root) hub
  bMaxPacketSize0         8
  idVendor           0x0a5c Broadcom Corp.
  idProduct          0x4500 
  bcdDevice            1.00
  iManufacturer           1 Broadcom
  iProduct                2 BCM2045B2
  iSerial                 0 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           25
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                0mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         9 Hub
      bInterfaceSubClass      0 Unused
      bInterfaceProtocol      0 Full speed (or root) hub
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0001  1x 1 bytes
        bInterval             255
Hub Descriptor:
  bLength               9
  bDescriptorType      41
  nNbrPorts             3
  wHubCharacteristic 0x0004
    Ganged power switching
    Compound device
    Ganged overcurrent protection
  bPwrOn2PwrGood       50 * 2 milli seconds
  bHubContrCurrent    100 milli Ampere
  DeviceRemovable    0x0e
  PortPwrCtrlMask    0xff
 Hub Port Status:
   Port 1: 0000.0100 power
   Port 2: 0000.0103 power enable connect
   Port 3: 0000.0103 power enable connect
Device Status:     0x0000
  (Bus Powered)

Kód: Vybrať všetko

dellWirelessCtl --info

Libsmbios version      : 2.0.3
dellWirelessCtl version: 0.3.0
Wireless Info:
	Hardware switch supported
	Hardware switch is On
	WiFi Locator supported
	Wireless Keyboard not supported
	NVRAM Size: 256 bytes
	NVRAM format version: 1

Radio Status for WLAN:
	WLAN supported
	WLAN installed
	WLAN enabled
	Status Code: 0

Radio Status for Bluetooth:
	Bluetooth supported
	Bluetooth installed
	Bluetooth enabled
	Status Code: 0

Radio Status for WWAN:
	WWAN supported
	WWAN not installed
	WWAN enabled
	Status Code: 2

Wireless Switch Configuration
	WLAN switch control on
	Bluetooth switch control on
	WWAN switch control on
	switch config not locked
	WiFi locator enabled
	WiFi Locator config not locked

BIOS Boot-time settings (new interface):
	Wireless_Switch_Cellular_Control_Enable: 1
	Wireless_Switch_Cellular_Control_Disable: 0
	Wireless_Switch_Bluetooth_Control_Enable: 1
	Wireless_Switch_Bluetooth_Control_Disable: 0
	Wireless_Switch_Wireless_LAN_Control_Enable: 1
	Wireless_Switch_Wireless_LAN_Control_Disable: 0
	WiFi_Locator_Enable: 1
	WiFi_Locator_Disable: 0
	Cellular_Radio_Enable: 1
	Cellular_Radio_Disable: 0
	Bluetooth_Devices_Enable: 1
	Bluetooth_Devices_Disable: 0
	Wireless_LAN_Enable: 1
	Wireless_LAN_Disable: 0

BIOS Boot-time settings (old interface):
	Radio_Transmission_Enable: (NOT SUPPORTED)
	Radio_Transmission_Disable: (NOT SUPPORTED)
	Wireless_Device_Disable: (NOT SUPPORTED)
	Wireless_Device_App_Control: (NOT SUPPORTED)
	Wireless_Device_App_Or_Hotkey_Control: (NOT SUPPORTED)
A momentalna situacia, som spustil hcitool -scan a aj to tvoje hciconfig -a a ako mozes vidiet, je to tam

Kód: Vybrať všetko

pato@debian:~$ hcitool scan
Scanning ...
        00:18:13:14:F1:BE       W810i
pato@debian:~$ hciconfig -a
hci0:   Type: USB
        BD Address: 00:22:69:BF:DA:06 ACL MTU: 1017:8 SCO MTU: 64:8
        UP RUNNING PSCAN ISCAN 
        RX bytes:2913 acl:18 sco:0 events:109 errors:0
        TX bytes:912 acl:21 sco:0 commands:46 errors:0
        Features: 0xff 0xff 0x8f 0xfe 0x9b 0xf9 0x00 0x80
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
        Link policy: RSWITCH HOLD SNIFF PARK 
        Link mode: SLAVE ACCEPT 
        Name: 'debian-0'
        Class: 0x000100
        Service Classes: Unspecified
        Device Class: Computer, Uncategorized
        HCI Ver: 2.0 (0x3) HCI Rev: 0x216f LMP Ver: 2.0 (0x3) LMP Subver: 0x41d8
        Manufacturer: Broadcom Corporation (15)
Doteraz by som dal ruku do ohna, ze jeden os nemoze ovplyvnit druhy /aj ked toto je troska ina situacia, lebo zrejme posle do toho zariadenia daku hodnotu, co ho vypne a ta hodnota tam ostava az do dalsej zmeny / Je to ale ubohost proste, tak zo strany dellu, broadcom a aj z MS.

p.s.: Update
To co som opisoval vyssie samozrejme plati, no treba to nastastie urobit len prvy krat. Neskor sa bluetooth da vypinat aj zapinat pomocou tohto prikazu:

Kód: Vybrať všetko

dellWirelessCtl --sw_bt 1 --bt 1    # pre zapnutie
dellWirelessCtl --sw_bt 1 --bt 0    # pre vypnutie 
tukilluki
Medium Expert
Medium Expert
Používateľov profilový obrázok
Príspevky: 139
Registrovaný: 10 mar 2007, 16:35
Bydlisko: Bratislava - okolie
Kontaktovať používateľa:

Príspevok od používateľa tukilluki »

no ohladom tohto tak aj intel wireless 5300 a bluetooth na HP elitebook tak funguju tiez ze ich treba mat proste zapnute vo viste aby bezali v Ubuntu. Je to divne ale je to tak. :)
Napísať odpoveď