<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://elinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://elinux.org/index.php?title=RPi_Bluetooth_keyboard_setup&amp;feed=atom&amp;action=history</id>
		<title>RPi Bluetooth keyboard setup - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://elinux.org/index.php?title=RPi_Bluetooth_keyboard_setup&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=RPi_Bluetooth_keyboard_setup&amp;action=history"/>
		<updated>2013-05-23T09:10:32Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21alpha</generator>

	<entry>
		<id>http://elinux.org/index.php?title=RPi_Bluetooth_keyboard_setup&amp;diff=179216&amp;oldid=prev</id>
		<title>Gnulnulf at 20:01, 9 October 2012</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=RPi_Bluetooth_keyboard_setup&amp;diff=179216&amp;oldid=prev"/>
				<updated>2012-10-09T20:01:04Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:01, 9 October 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 12:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== check hardware ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== check hardware ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Check for bluetooth dongles&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Check for bluetooth dongles&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; root@raspberrypi:/home/pi# hcitool dev&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; root@raspberrypi:/home/pi# hcitool dev&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; Devices:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; Devices:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; '''hci0'''&amp;#160; &amp;#160; 00:10:60:A3:5A:AA&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&amp;#160; &amp;#160; &amp;#160; &amp;#160; '''hci0'''&amp;#160; &amp;#160; 00:10:60:A3:5A:AA&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Your bluetooth dongle should be visible. Otherwise you should check the driver or the [[RPi_VerifiedPeripherals|USB Bluetooth adapters]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;page&lt;/del&gt;.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Your bluetooth dongle should be visible. Otherwise you should check the driver or the [[RPi_VerifiedPeripherals&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;#USB Bluetooth adapters&lt;/ins&gt;|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;Verified &lt;/ins&gt;USB Bluetooth adapters &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;page&lt;/ins&gt;]] .&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== scan and pair ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== scan and pair ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Turn on the device in pairing mode&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Turn on the device in pairing mode&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Scan for devices, you should remember the bluetooth address&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Scan for devices, you should remember the bluetooth address&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; root@raspberrypi:/home/pi# hcitool scan&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; root@raspberrypi:/home/pi# hcitool scan&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; Scanning ...&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; Scanning ...&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 54:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 54:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To add an unknown device to udev edit the (non-existing) file /lib/udev/rules.d/62-bluez-hid2hci.rules and append the following line. The method logitech-hid can also be dell or csr.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;To add an unknown device to udev edit the (non-existing) file /lib/udev/rules.d/62-bluez-hid2hci.rules and append the following line. The method logitech-hid can also be dell or csr.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; ACTION==&amp;quot;add&amp;quot;, ENV{ID_VENDOR}==&amp;quot;'''22b8'''&amp;quot;, ENV{ID_MODEL}==&amp;quot;'''093d'''&amp;quot; RUN+=&amp;quot;/lib/udev/hid2hci --method '''logitech-hid''' -v $env{ID_VENDOR} -p $env{ID_MODEL} --mode hid&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; ACTION==&amp;quot;add&amp;quot;, ENV{ID_VENDOR}==&amp;quot;'''22b8'''&amp;quot;, ENV{ID_MODEL}==&amp;quot;'''093d'''&amp;quot; RUN+=&amp;quot;/lib/udev/hid2hci --method '''logitech-hid''' -v $env{ID_VENDOR} -p $env{ID_MODEL} --mode hid&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Mouse ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Mouse ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gnulnulf</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=RPi_Bluetooth_keyboard_setup&amp;diff=179210&amp;oldid=prev</id>
		<title>Gnulnulf: Created page with &quot;Category:RaspberryPi == Hardware setup == ----  This howto was tested on 2012-09-18-wheezy-raspbian.img with a Sitecom CN500 dongle and a Motorola keyboard kit. ---- Attach t...&quot;</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=RPi_Bluetooth_keyboard_setup&amp;diff=179210&amp;oldid=prev"/>
				<updated>2012-10-09T19:50:56Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/Category:RaspberryPi&quot; title=&quot;Category:RaspberryPi&quot;&gt;Category:RaspberryPi&lt;/a&gt; == Hardware setup == ----  This howto was tested on 2012-09-18-wheezy-raspbian.img with a Sitecom CN500 dongle and a Motorola keyboard kit. ---- Attach t...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:RaspberryPi]]&lt;br /&gt;
== Hardware setup ==&lt;br /&gt;
---- &lt;br /&gt;
This howto was tested on 2012-09-18-wheezy-raspbian.img with a Sitecom CN500 dongle and a Motorola keyboard kit.&lt;br /&gt;
----&lt;br /&gt;
Attach the bluetooth dongle to the Raspberry. Leave the keyboard powered off for now.&lt;br /&gt;
&lt;br /&gt;
== Install the needed software ==&lt;br /&gt;
Please note that the bluez-compat was not used in this howto.&lt;br /&gt;
 pi@raspberrypi ~ $ sudo -s&lt;br /&gt;
 root@raspberrypi:/home/pi# apt-get install bluez python-gobject&lt;br /&gt;
&lt;br /&gt;
== check hardware ==&lt;br /&gt;
Check for bluetooth dongles&lt;br /&gt;
 root@raspberrypi:/home/pi# hcitool dev&lt;br /&gt;
 Devices:&lt;br /&gt;
        '''hci0'''    00:10:60:A3:5A:AA&lt;br /&gt;
Your bluetooth dongle should be visible. Otherwise you should check the driver or the [[RPi_VerifiedPeripherals|USB Bluetooth adapters]] page.&lt;br /&gt;
&lt;br /&gt;
== scan and pair ==&lt;br /&gt;
Turn on the device in pairing mode&amp;lt;br&amp;gt;&lt;br /&gt;
Scan for devices, you should remember the bluetooth address&lt;br /&gt;
 root@raspberrypi:/home/pi# hcitool scan&lt;br /&gt;
 Scanning ...&lt;br /&gt;
        '''00:0F:F6:82:D1:BB'''       Motorola Bluetooth Wireless Keyboard&lt;br /&gt;
Now pair the keyboard with the pin. This example uses pin 0000.&lt;br /&gt;
 root@raspberrypi:/home/pi# echo '''0000'''|bluez-simple-agent '''hci0 00:0F:F6:82:D1:BB'''&lt;br /&gt;
 RequestPinCode (/org/bluez/3964/hci0/dev_00_0F_F6_82_D1_BB)&lt;br /&gt;
 Enter PIN Code: Release&lt;br /&gt;
 New device (/org/bluez/3964/hci0/dev_00_0F_F6_82_D1_BB)&lt;br /&gt;
== Trust the device ==&lt;br /&gt;
The Raspberry should trust the keyboard so it connects after every reboot.&lt;br /&gt;
 root@raspberrypi:/home/pi# bluez-test-device trusted 00:0F:F6:82:D1:BB yes&lt;br /&gt;
== Test the device as an input ==&lt;br /&gt;
 root@raspberrypi:/home/pi# bluez-test-input connect 00:0F:F6:82:D1:BB&lt;br /&gt;
After a reboot the keyboard should still connect. It's possibe a keystroke is needed to connect. Connection can take a few seconds.&lt;br /&gt;
&lt;br /&gt;
 root@raspberrypi:/home/pi# hcitool con&lt;br /&gt;
 Connections:&lt;br /&gt;
        &amp;lt; ACL 00:0F:F6:82:D1:BB handle 41 state 1 lm MASTER AUTH ENCRYPT&lt;br /&gt;
== Debugging ==&lt;br /&gt;
If the device isn't working the debugging tool hcidump can help.&lt;br /&gt;
 # apt-get install bluez-hcidump&lt;br /&gt;
&lt;br /&gt;
If the connection is ok but the device does not respond as an input you can check the real vendor and model:&lt;br /&gt;
&lt;br /&gt;
 root@raspberrypi:/home/pi# ls /sys/class/bluetooth/hci0\:*/&lt;br /&gt;
 0005:'''22B8:093D'''.0004  address  device  features  input3  power  subsystem  type  uevent&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
ID_VENDOR 22B8&lt;br /&gt;
ID_MODEL  093D&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To add an unknown device to udev edit the (non-existing) file /lib/udev/rules.d/62-bluez-hid2hci.rules and append the following line. The method logitech-hid can also be dell or csr.&lt;br /&gt;
 ACTION==&amp;quot;add&amp;quot;, ENV{ID_VENDOR}==&amp;quot;'''22b8'''&amp;quot;, ENV{ID_MODEL}==&amp;quot;'''093d'''&amp;quot; RUN+=&amp;quot;/lib/udev/hid2hci --method '''logitech-hid''' -v $env{ID_VENDOR} -p $env{ID_MODEL} --mode hid&amp;quot;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Mouse ==&lt;br /&gt;
The mouse uses the same procedure as the keyboard. Only the bluetooth address changes.&lt;br /&gt;
To test the mouse on the console you can use the dreaded gpm&lt;br /&gt;
  # apt-get install gpm&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Template:Raspberry Pi}}&lt;br /&gt;
[[Category:RaspberryPi]]&lt;/div&gt;</summary>
		<author><name>Gnulnulf</name></author>	</entry>

	</feed>