<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Bluetooth keyboard stopped working in KitKat in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Bluetooth-keyboard-stopped-working-in-KitKat/m-p/362034#M51012</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When we ported KitKat 4.4.2_r1 to our custom board (based on SabreSD) from Jelly Bean and the keyboard stopped working. In other words, the bluetooth keyboard used to work in Jelly bean and now it does not work in KitKat. The new bluedroid stack can pair with the keyboard just fine but there is no data when using an app. The logcat shows that the stack sees the keyboard and is passing data up the stack. This seems to be a common problem with KitKat and the bluedroid stack in general. I tried to erase the cache, I tried the keylayout fix. I am looking through patch sets in bluedroid and see no direct mention of a fix for HID devices. Anyone else having issues or have solved this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Nov 2014 22:18:08 GMT</pubDate>
    <dc:creator>jblack547</dc:creator>
    <dc:date>2014-11-21T22:18:08Z</dc:date>
    <item>
      <title>Bluetooth keyboard stopped working in KitKat</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bluetooth-keyboard-stopped-working-in-KitKat/m-p/362034#M51012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When we ported KitKat 4.4.2_r1 to our custom board (based on SabreSD) from Jelly Bean and the keyboard stopped working. In other words, the bluetooth keyboard used to work in Jelly bean and now it does not work in KitKat. The new bluedroid stack can pair with the keyboard just fine but there is no data when using an app. The logcat shows that the stack sees the keyboard and is passing data up the stack. This seems to be a common problem with KitKat and the bluedroid stack in general. I tried to erase the cache, I tried the keylayout fix. I am looking through patch sets in bluedroid and see no direct mention of a fix for HID devices. Anyone else having issues or have solved this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Nov 2014 22:18:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bluetooth-keyboard-stopped-working-in-KitKat/m-p/362034#M51012</guid>
      <dc:creator>jblack547</dc:creator>
      <dc:date>2014-11-21T22:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Bluetooth keyboard stopped working in KitKat</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bluetooth-keyboard-stopped-working-in-KitKat/m-p/362035#M51013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We found a work around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bluedroid/btif/co/bta_hh_co.c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Create and send hid descriptor to kernel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; memset(&amp;amp;ev, 0, sizeof(ev));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ev.type = UHID_CREATE;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; strncpy((char*)&lt;A href="http://ev.u.create.name/" target="_blank"&gt;ev.u.create.name&lt;/A&gt;, dev_name, sizeof(&lt;A href="http://ev.u.create.name/" target="_blank"&gt;ev.u.create.name&lt;/A&gt;) - 1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ev.u.create.rd_size = dscp_len;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ev.u.create.rd_data = p_dscp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ev.u.create.bus = BUS_BLUETOOTH;&amp;nbsp; &lt;SPAN style="background-color: #ffff00;"&gt; &amp;lt;-- changed this to BUS_USB and the keyboard started working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ev.u.create.vendor = vendor_id;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ev.u.create.product = product_id;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ev.u.create.version = version;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ev.u.create.country = ctry_code;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; result = uhid_write(p_dev-&amp;gt;fd, &amp;amp;ev);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure if this is the correct solution, but it is a solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 17:43:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bluetooth-keyboard-stopped-working-in-KitKat/m-p/362035#M51013</guid>
      <dc:creator>jblack547</dc:creator>
      <dc:date>2014-12-17T17:43:35Z</dc:date>
    </item>
  </channel>
</rss>

