<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>blog.crox.net (Entries tagged as bluetooth)</title>
    <link>https://blog.crox.net/</link>
    <description></description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.5.0 - http://www.s9y.org/</generator>
    <pubDate>Sun, 06 Apr 2014 19:53:18 GMT</pubDate>

    <image>
    <url>https://blog.crox.net/templates/2k11/img/s9y_banner_small.png</url>
    <title>RSS: blog.crox.net - </title>
    <link>https://blog.crox.net/</link>
    <width>100</width>
    <height>21</height>
</image>

<item>
    <title>Using a Raspberry Pi running raspbmc to sync Fitbit One with galileo (fitbit linux sync)</title>
    <link>https://blog.crox.net/archives/85-Using-a-Raspberry-Pi-running-raspbmc-to-sync-Fitbit-One-with-galileo-fitbit-linux-sync.html</link>
    
    <comments>https://blog.crox.net/archives/85-Using-a-Raspberry-Pi-running-raspbmc-to-sync-Fitbit-One-with-galileo-fitbit-linux-sync.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=85</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=85</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    (it should work with any other Debian-based Raspberry Pi distribution and all newer Fitbit devices that use &lt;a href=&quot;https://en.wikipedia.org/wiki/Bluetooth_low_energy&quot;&gt;BLE&lt;/a&gt;)&lt;br /&gt;
&lt;pre&gt;sudo -i&lt;br /&gt;apt-get update&lt;br /&gt;apt-get install python-pip&lt;br /&gt;pip install galileo&lt;br /&gt;galileo&lt;/pre&gt;&lt;br /&gt;
You can then use cron or a simple shell script to periodically run &lt;a href=&quot;https://bitbucket.org/benallard/galileo&quot;&gt;galileo&lt;/a&gt;.&lt;br /&gt;
&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Sat, 05 Apr 2014 11:47:47 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/85-guid.html</guid>
    <category>ble</category>
<category>bluetooth</category>
<category>debian</category>
<category>fitbit</category>
<category>linux</category>
<category>raspberry pi</category>
<category>raspbmc</category>

</item>
<item>
    <title>Getting the Trust 18187 Bluetooth 4.0 USB adapter (0a5c:21e8) to work with Linux</title>
    <link>https://blog.crox.net/archives/81-Getting-the-Trust-18187-Bluetooth-4.0-USB-adapter-0a5c21e8-to-work-with-Linux.html</link>
    
    <comments>https://blog.crox.net/archives/81-Getting-the-Trust-18187-Bluetooth-4.0-USB-adapter-0a5c21e8-to-work-with-Linux.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=81</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=81</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    This is how I got a &lt;a href=&quot;http://en.wikipedia.org/wiki/Bluetooth_low_energy&quot; title=&quot;Bluetooth low energy&quot;&gt;Bluetooth low energy (BLE)&lt;/a&gt; adapter to work on a Linux laptop running Ubuntu 12.04.&lt;br /&gt;
&lt;br /&gt;
First, as suggested by several websites, I created the file /etc/modprobe.d/trust-btusb.conf with the following contents:&lt;pre&gt;install usb:v0A5Cp21E8d*dc*dsc*dp*ic*isc*ip* /sbin/modprobe btusb; echo 0a5c 21e8 &gt; /sys/bus/usb/drivers/btusb/new_id&lt;/pre&gt;&lt;br /&gt;
After having restarted the computer and inserted the adapter, dmesg told me the following:&lt;pre&gt;Bluetooth: can&#039;t load firmware, may not work correctly&lt;/pre&gt;&lt;br /&gt;
To get the proper firmware, I downloaded the Windows 8 driver (18187_02.exe) from &lt;a href=&quot;http://www.trust.com/18187&quot;&gt;http://www.trust.com/18187&lt;/a&gt;. The driver files can be extracted from the .exe with &quot;unrar x 18187_02.exe&quot;.&lt;br /&gt;
&lt;br /&gt;
Then I looked for the vendor id (0x0a5c) and product id (0x21e8) in the various .inf files, and found this in 18187_02/Win32/bcbtums-win7x86-brcm.inf:&lt;pre&gt;%BRCM20702.DeviceDesc%=RAMUSB21E8,      USB\VID_0A5C&amp;PID_21E8                                   ; 20702A1 dongles&lt;/pre&gt;&lt;br /&gt;
Further down in the inf file there is a RAMUSB21E8 section which contains the following line:&lt;pre&gt;HKR,,%RAMPatchFileName%,0x00000, &quot;BCM20702A1_001.002.014.0187.0188.hex&quot;&lt;/pre&gt;&lt;br /&gt;
The .hex &quot;RAM Patch&quot; file can be found in 18187_02/Win32/. Before it can be used with btusb, it needs to be converted to hcd format. This can be done with &lt;a href=&quot;http://github.com/jessesung/hex2hcd&quot; title=&quot;hex2hcd&quot;&gt;hex2hcd&lt;/a&gt;. Finally, the hcd file needs to be moved/copied to /lib/firmware/fw-0a5c_21e8.hcd. Here are the steps to get and compile hex2hcd:&lt;pre&gt;$ git clone https://github.com/jessesung/hex2hcd.git&lt;br /&gt;$ cd hex2hcd/&lt;br /&gt;$ make&lt;/pre&gt;&lt;br /&gt;
The resulting executable can be used to convert the .hex firmware file to .hcd, which is then copied to the right destination:&lt;pre&gt;$ ./hex2hcd BCM20702A1_001.002.014.0187.0188.hex BCM20702A1_001.002.014.0187.0188.hcd&lt;br /&gt;$ sudo cp -p BCM20702A1_001.002.014.0187.0188.hcd /lib/firmware/fw-0a5c_21e8.hcd&lt;br /&gt;$ sudo chown root:root /lib/firmware/fw-0a5c_21e8.hcd&lt;/pre&gt;&lt;br /&gt;
The adapter can now be used:&lt;pre&gt;$ sudo hcitool -i hci1 lescan&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Update, 2014-09-08:&lt;/u&gt;&lt;ul&gt;&lt;li&gt;The first step is no longer necessary with Ubuntu 14.04, I directly receive the &quot;may not work&quot; message.&lt;/li&gt;&lt;li&gt;I was able to extract the firmware from 18187_05.exe (latest W8 driver) using this command: &quot;7z x 18187_05.exe&quot;&lt;/li&gt;&lt;li&gt;The correct .hex file is BCM20702A1_001.002.014.0449.0515.hex&lt;/li&gt;&lt;/ul&gt; 
    </content:encoded>

    <pubDate>Tue, 16 Apr 2013 22:57:51 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/81-guid.html</guid>
    <category>ble</category>
<category>bluetooth</category>
<category>kernel</category>
<category>linux</category>
<category>ubuntu</category>

</item>
<item>
    <title>Downloading pictures from my mobile phone</title>
    <link>https://blog.crox.net/archives/6-Downloading-pictures-from-my-mobile-phone.html</link>
    
    <comments>https://blog.crox.net/archives/6-Downloading-pictures-from-my-mobile-phone.html#comments</comments>
    <wfw:comment>https://blog.crox.net/wfwcomment.php?cid=6</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.crox.net/rss.php?version=2.0&amp;type=comments&amp;cid=6</wfw:commentRss>
    

    <author>nospam@example.com (crox)</author>
    <content:encoded>
    My phone stores the camera pictures in a dedicated folder with filenames like &quot;Picture(1).jpg&quot;.&lt;br /&gt;
&lt;pre&gt;for I in `seq 20 30` ; do obexftp -b 00:11:22:33:44:55 -c &#039;Pictures/camera_semc/&#039; -g &quot;Picture($I).jpg&quot; ; done&lt;/pre&gt;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Mon, 25 Sep 2006 23:48:55 +0000</pubDate>
    <guid isPermaLink="false">https://blog.crox.net/archives/6-guid.html</guid>
    <category>bluetooth</category>
<category>linux</category>
<category>phone</category>
<category>photo</category>

</item>

</channel>
</rss>
