Nykyinen versio |
Oma tekstisi |
Rivi 1: |
Rivi 1: |
| {{Perustietoa}}
| | Bluetooth on lyhyelle etäisyydelle tarkoitettu langaton tiedonsiirtomenetelmä. Linuxissa Bluetooth-yhteydet yleensä toteutetaan [[BlueZ]]-protokollapinolla. Nokia kehitti Bluetoothin historian alkuvaiheissa Affix-nimisen protokollapinon Linuxille, mutta sitä ei enää käytetä. |
| '''Bluetooth''' on lyhyelle etäisyydelle tarkoitettu langaton tiedonsiirtomenetelmä. Linuxissa Bluetooth-yhteydet yleensä toteutetaan [[BlueZ]]-protokollapinolla. Nokia kehitti Bluetoothin historian alkuvaiheissa Affix-nimisen protokollapinon Linuxille, mutta sitä ei enää käytetä.
| |
| | |
| == bluetoothctl ==
| |
| Bluetoothctl on komentorivillä toimiva bluetooth manageri. Se löytyy [[bluez-utils]]-paketista.
| |
| % bluetoothctl
| |
| [NEW] Controller 00:11:87:AA:B2:C5 example.com [default]
| |
| [NEW] Device C4:7D:CC:04:66:66 DS3578 M1R82F02A
| |
| [bluetooth]#
| |
| | |
| Komento help listaa ohjeen. Tyypillisiä komentoja: devices, paired-devices, scan, connect, pair, info, disconnect.
| |
| | |
| [bluetooth]# connect C4:7D:CC:44:77:AB
| |
| Attempting to connect to C4:7D:CC:44:77:AB
| |
| [CHG] Device C4:7D:CC:44:77:AB Connected: yes
| |
| Connection successful
| |
| [CHG] Device C4:7D:CC:44:77:AB ServicesResolved: yes
| |
| [CHG] Device C4:7D:CC:44:77:AB ServicesResolved: no
| |
| [CHG] Device C4:7D:CC:44:77:AB Connected: no
| |
| [CHG] Device C4:7D:CC:44:77:AB Connected: yes
| |
| [Symbol XYZ123 ]#
| |
| | |
| == hciconfig ==
| |
| % hciconfig -a
| |
| hci0: Type: Primary Bus: USB
| |
| BD Address: 00:11:67:0A:B2:C5 ACL MTU: 678:8 SCO MTU: 48:10
| |
| UP RUNNING PSCAN ISCAN
| |
| RX bytes:14239 acl:403 sco:0 events:296 errors:0
| |
| TX bytes:2588 acl:73 sco:0 commands:79 errors:0
| |
| Features: 0xff 0xff 0x8d 0x78 0x08 0x18 0x00 0x00
| |
| Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
| |
| Link policy:
| |
| Link mode: SLAVE ACCEPT
| |
| Name: 'computer.example.com'
| |
| Class: 0x0c0108
| |
| Service Classes: Rendering, Capturing
| |
| Device Class: Computer, Server
| |
| HCI Version: 1.2 (0x2) Revision: 0x1ae
| |
| LMP Version: 1.2 (0x2) Subversion: 0x1ae
| |
| Manufacturer: Integrated System Solution Corp. (57)
| |
| | |
| == hcitool ==
| |
| | |
| % hcitool dev
| |
| Devices:
| |
| hci0 00:11:67:0A:B2:C5
| |
| Näyttää paikalliset bluetooth liitännät.
| |
| | |
| % hcitool scan
| |
| Scanning ...
| |
| C4:7D:CC:44:77:AB Symbol XYZ123
| |
| Listaa kantavuuden päässä olevat laitteet.
| |
| | |
| == l2ping ==
| |
| # l2ping C4:7D:CC:44:77:AB
| |
| Ping: C4:7D:CC:44:77:AB from 00:11:67:0A:B2:C5 (data size 44) ...
| |
| 44 bytes from C4:7D:CC:44:77:AB id 0 time 11.01ms
| |
| 44 bytes from C4:7D:CC:44:77:AB id 1 time 31.00ms
| |
| 44 bytes from C4:7D:CC:44:77:AB id 2 time 24.97ms
| |
| ^C3 sent, 3 received, 0% loss
| |
| #
| |
| | |
|
| |
|
| == Bluetooth-ohjelmia Linuxille == | | == Bluetooth-ohjelmia Linuxille == |
| * [[Gnome Bluetooth]] | | *[http://live.gnome.org/GnomeBluetooth Gnome Bluetooth] |
| * [[Kde-Bluetooth]] [http://extragear.kde.org/apps/kdebluetooth/] | | *[http://extragear.kde.org/apps/kdebluetooth/ Kdebluetooth] |
| * [[Gnokii]] | | * [[P3nfs]] |
| * [[gnome-phone-manager]]
| |
| * [[Bluetooth-properties]]
| |
| * [[syncEvolution]] | | * [[syncEvolution]] |
| * [[P3nfs]]
| |
| * [[Blueman]] on [[GTK]]-pohjanen bluetooth- laitehallinta työkalu.
| |
|
| |
| == Jakelukohtaista ==
| |
| Jossain jakelussa bluetooth löytyy useimpien [[jakelu|jakeluiden]] [[paketinhallintajärjestelmä|paketinhallinnasta]] nimellä <tt>gnome-bluetooth</tt> tai <tt>kde-bluetooth</tt>. Lisätietoja ohjelmien asentamisesta löytyy artikkelista Ohjelmien asentaminen.
| |
|
| |
| === Fedora ===
| |
| Fedora 24 tai uudemmassa:
| |
| * '''bluez''' paketti sisältää mm ''bluetoothctl'', ''ciptool'', ''hciconfig'', ''hcitool'', ''rfcomm'', ''sdptool'', ''l2ping'' työkalut.
| |
| * '''btkbdd''' paketti sisältää HID-näppäimistöpalvelun jolla voi tehdä tietokoneesta bt-näppäimistö-asiakkaan.
| |
| * '''bluedevil''' paketti sisältää KDE-ohjelmat bluetooth laitteiden hallintaan.
| |
| * '''blueman''' paketti sisältää GNOME-ohjelmat bluetooth laitteiden hallintaan.
| |
|
| |
| Asennusohjeet löytyvät [[Fedora/Paketinhallinta|paketinhallinta]] sivulta.
| |
|
| |
| === Ubuntu ===
| |
| Ubuntussa on hidd jota ei löydy välttämättä toisista jakeluista.
| |
| * '''bluez-utils''' paketti sisältää
| |
|
| |
|
| == Katso myös == | | == Katso myös == |
| *[[Matkapuhelin modeemina]] | | *[[Matkapuhelin modeemina]] |
| *[[Matkapuhelintyökalut]]
| |
| * [[Näppäimistö]]
| |
|
| |
|
| ==Aiheesta muualla== | | ==Aiheesta muualla== |
| | * [[wikipedia:fi:Bluetooth|Bluetooth Wikipediassa]] |
| * [http://live.gnome.org/GnomeBluetooth GNOME Bluetooth] | | * [http://live.gnome.org/GnomeBluetooth GNOME Bluetooth] |
| * [http://bluetooth.kmobiletools.org/ The KDE Bluetooth Framework] | | * [http://bluetooth.kmobiletools.org/ The KDE Bluetooth Framework] |
| * [https://wiki.archlinux.org/index.php/Bluetooth Ohjeita ongelmatilanteisiin]
| |
|
| |
|
| [[Luokka:Laitteisto]]
| |
| [[Luokka:Verkko]] | | [[Luokka:Verkko]] |