tag:blogger.com,1999:blog-61438297223188864492024-03-23T10:13:48.056+00:00www.cjb.imAnonymoushttp://www.blogger.com/profile/00182512978683112766noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-6143829722318886449.post-72159659667819201262012-06-24T23:07:00.000+01:002016-08-21T23:33:31.601+01:00Raspberry Pi Wireless Display Using a Cheap Parrot LCD Photo Frame<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">One of the first things I've tried with my Raspberry Pi is to get it to use the low cost Parrot DF3120 320x240 picture frame as a wireless display over Bluetooth. These little frames are available on Amazon for under £15!</span><br />
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.blogger.com/video.g?token=AD6v5dwTiA5BM91JGxB57ehX_FBXJst5WeQ25h-w9LXYd9UjyOf8u-J0aBXe_c0fCiB7Xt3PTX4D8pbukuORhUb9bw' class='b-hbp-video b-uploaded' frameborder='0'></iframe></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">This builds on the sterling work done here <a href="https://sites.google.com/site/repurposelinux/df3120">https://sites.google.com/site/repurposelinux/df3120</a> to hack Linux onto the DF3120. When I first saw this post, I bought a few of the frames as they looked like they might come in handy for something.</span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">The basic idea is to set up Bluetooth networking with the Pi, and use SDL VNC viewer to display the X screen on the Parrot. </span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><b><u>Bluetooth Network Setup </u></b></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><b><u><br /></u></b></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">The first thing we need to do is get Bluetooth networking set up between the two devices.</span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">To start off with, on the Pi side, I'm using the standard Debian squeeze image and an Atheros Communications, Inc. AR3011 Bluetooth USB dongle. Install the bluetooth package, and for my atheros dongle, I installed the firmware-atheros package:</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">apt-get install bluetooth firmware-atheros</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">On the Pi, you will also need to run bluetooth-agent to allow pairing of the parrot. For testing I just ran this at the command line with no PIN specified. This will allow the Pi to pair with anything that attempts to connect.</span></div>
<div>
<br /></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">bluetooth-agent hci0 </span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">On the Parrot, flash the firmware update using the PFS file and minifs image using the instructions at </span><a href="https://sites.google.com/site/repurposelinux/df3120" style=" font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">https://sites.google.com/site/repurposelinux/df3120</a><span style=" font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">. Hold down the left and center buttons while powering on to boot into Linux. Once booted, connect the Parrot to a Linux machine and set up the USB networking using </span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">ifconfig usb0 172.16.61.3 netmask 255.255.255.0 up</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">telnet 172.16.61.1 </span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">More details on connecting to the Parrot over the USB network are here <a href="https://sites.google.com/site/repurposelinux/df3120/connecting-to-the-usb-device">https://sites.google.com/site/repurposelinux/df3120/connecting-to-the-usb-device</a></span></div>
<div>
<br /></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">To bring the network up and connect to the Pi over bluetooth, issue these commands on the Parrot:</span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">pand --connect AA:AA:AA:AA:AA:AA</span></div>
<div>
<span style="
"><span style="font-family: "courier new" , "courier" , monospace;">ifconfig bnep0 192.168.4.10</span></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">where AA:AA:AA:AA:AA:AA is the BD Address of the Pi. You can find this out by running hciconfig on the pi. </span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">On the Pi in the terminal where you have bluetooth-agent running, you should see something like:</span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">Authorizing request for /org/bluez/1274/hci0/dev_BB_BB_BB_BB_BB_BB</span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">There should now be a virtual network interface created by bluez on the pi, bnep0. You can give this an IP address on the Pi by issuing: (</span><span style=" font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">We will automate this process later)</span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">ifconfig bnep0 192.168.4.1</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">You should then be able to ping or telnet to the Parrot on 192.168.4.10 from the Pi. To bring Bluetooth networking up automatically on the parrot, I added this to /etc/init.d/rcS, so mine looks like:</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style=""><span style="font-family: "courier new" , "courier" , monospace;">#echo "* Starting Bluetooth"</span></span></div>
<div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">hciattach -s 115200 /dev/ttySAC0 bcm2035 921600 flow 00:00:00:00:00:00 >/dev/null 2>&1</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">hciconfig hci0 up</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">bdaddr 84:59:04:04:02:05 </span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">hciconfig hci0 reset </span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"> </span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">#echo "* Starting DUN connection"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">#rfcomm bind /dev/rfcomm0 08:00:06:5E:8D:F5 2</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">#pppd /dev/rfcomm0 noauth defaultroute lcp-echo-interval 10 lcp-echo-failure 12</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">#echo "* Starting PAN connection"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">pand --listen --role NAP</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">pand --connect 00:02:72:B2:E8:12</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">sleep 5</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">ifconfig bnep0 192.168.4.10</span></div>
<div style="font-family: Arial, Helvetica, sans-serif;">
<br /></div>
</div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">A couple of things to note - I'm using static IPs, but you could run dhcp on the Pi and assign IP addresses like that. The other thing is that for some reason on the Parrot, I was getting a different bd address every time I rebooted. To solve this I use the bdaddr command that is in the bluez test suite to set the bd address every time. </span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">The bdaddr utility is not included in the pre-built image for the parrot, but you can download a copy I built here - </span><span style=""><span style="font-family: "arial" , "helvetica" , sans-serif;"><a href="https://docs.google.com/open?id=0B8kQG6MJHSAFQkxCeTZhLVJ2V2c" target="_blank">bdaddr.tar.gz</a></span></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">To build a copy of bdaddr, I had to rebuild the bluez package in minifs for the Parrot to include the test apps. To get this to work, you need to follow the instructions on building the </span><span style=" font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">DF3120 toolchain/rootfs here </span><a href="https://sites.google.com/site/repurposelinux/df3120" style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">https://sites.google.com/site/repurposelinux/df3120</a> <span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">using this <a href="https://docs.google.com/open?id=0B8kQG6MJHSAFVmpLRzc5UkNSYmc" target="_blank">patch</a> to bring a few package versions up to date where the linked versions are no longer available, and add the dependancies and config option to build the test apps (including bdaddr) in bluez:</span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">diff -rupN minifs.orig/conf/packages/10common_base.sh minifs/conf/packages/10common_base.sh</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">--- minifs.orig/conf/packages/10common_base.sh<span class="Apple-tab-span" style="white-space: pre;"> </span>2012-06-24 20:26:02.714490989 +0100</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+++ minifs/conf/packages/10common_base.sh<span class="Apple-tab-span" style="white-space: pre;"> </span>2012-06-24 02:10:36.030728699 +0100</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">@@ -3,7 +3,7 @@</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> ## zlib - http://www.zlib.net/</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> #######################################################################</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> PACKAGES+=" zlib"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">-hset zlib url "http://www.zlib.net/zlib-1.2.6.tar.gz"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+hset zlib url "http://www.zlib.net/zlib-1.2.7.tar.gz"</span></div>
<div>
</div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> configure-zlib() {</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>configure ./configure \</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">diff -rupN minifs.orig/conf/packages/11graphical.sh minifs/conf/packages/11graphical.sh</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">--- minifs.orig/conf/packages/11graphical.sh<span class="Apple-tab-span" style="white-space: pre;"> </span>2012-06-24 20:26:02.714490989 +0100</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+++ minifs/conf/packages/11graphical.sh<span class="Apple-tab-span" style="white-space: pre;"> </span>2012-06-24 02:14:55.366933145 +0100</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">@@ -5,7 +5,7 @@ hset libjpeg url "http://www.ijg.org/fil</span></div>
<div>
</div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> # http://www.libpng.org/pub/png/libpng.html</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> PACKAGES+=" libpng"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">-hset libpng url "ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.4.8.tar.bz2"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+hset libpng url "ftp://ftp.simplesystems.org/pub/libpng/png/src/libpng-1.4.11.tar.bz2"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> hset libpng depends "zlib"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> hset libpng configscript "libpng-config"</span></div>
<div>
</div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">diff -rupN minifs.orig/conf/packages/14bluez.sh minifs/conf/packages/14bluez.sh</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">--- minifs.orig/conf/packages/14bluez.sh<span class="Apple-tab-span" style="white-space: pre;"> </span>2012-06-24 20:26:02.714490989 +0100</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+++ minifs/conf/packages/14bluez.sh<span class="Apple-tab-span" style="white-space: pre;"> </span>2012-06-24 12:47:30.981169269 +0100</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">@@ -15,9 +15,22 @@ deploy-dbus() {</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>deploy deploy_binaries</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> }</span></div>
<div>
</div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+PACKAGES+=" check"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+hset check url "http://downloads.sourceforge.net/project/check/check/0.9.8/check-0.9.8.tar.gz"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+hset check depends ""</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+configure-check() {</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+ configure-generic</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+}</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+deploy-check() {</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+ deploy deploy_binaries</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+}</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> PACKAGES+=" bluez"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">-hset bluez url "http://www.kernel.org/pub/linux/bluetooth/bluez-4.81.tar.gz"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">-hset bluez depends "dbus libiconv libgettext libglib"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+hset bluez url "http://www.kernel.org/pub/linux/bluetooth/bluez-4.101.tar.gz"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+hset bluez depends "check dbus libiconv libgettext libglib"</span></div>
<div>
</div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> configure-bluez() {</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>configure-generic \</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">@@ -43,7 +56,8 @@ configure-bluez() {</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>--enable-service \</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>--enable-tools \</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>--disable-udevrules \</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">-<span class="Apple-tab-span" style="white-space: pre;"> </span>--disable-usb</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+<span class="Apple-tab-span" style="white-space: pre;"> </span>--disable-usb \</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+<span class="Apple-tab-span" style="white-space: pre;"> </span>--enable-test</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> }</span></div>
<div>
</div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> deploy-bluez() {</span></div>
<div style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">
<br /></div>
</div>
<div>
<span style=" font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">To automate things on the Pi side, I added the following to /etc/network/interfaces</span></div>
<div>
<div style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">
<br /></div>
<div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">iface bnep0 inet static</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">address 192.168.4.1</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">netmask 255.255.255.0</span></div>
</div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">And to automatically start bluetooth-agent for pairing I added this to the bluetooth startup script. Note that this will allow any device to connect with no PIN, so beware!</span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">--- bluetooth.orig<span class="Apple-tab-span" style="white-space: pre;"> </span>2012-06-24 21:43:17.024405263 +0100</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+++ bluetooth<span class="Apple-tab-span" style="white-space: pre;"> </span>2012-06-24 20:03:45.376014045 +0100</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">@@ -25,6 +25,7 @@</span></div>
<div>
</div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> DAEMON=/usr/sbin/bluetoothd</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> HCIATTACH=/usr/sbin/hciattach</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+BLUETOOTH_AGENT=/usr/bin/bluetooth-agent </span></div>
<div>
</div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> HID2HCI=/usr/sbin/hid2hci</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> HID2HCI_ENABLED=1</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">@@ -164,6 +165,11 @@</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>log_progress_msg "compatibily daemons not started, see bluez-compat package"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>fi</span></div>
<div>
</div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+ sleep 3</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+ for i in `hciconfig | grep hci | cut -f1 -d:` ; do</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+<span class="Apple-tab-span" style="white-space: pre;"> </span>$BLUETOOTH_AGENT $i & </span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+<span class="Apple-tab-span" style="white-space: pre;"> </span>done<span class="Apple-tab-span" style="white-space: pre;"> </span></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>log_end_msg 0</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> ;;</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> stop)</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">@@ -180,6 +186,9 @@</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>start-stop-daemon --stop $SSD_OPTIONS</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>log_progress_msg "bluetoothd"</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>stop_uarts || true</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+<span class="Apple-tab-span" style="white-space: pre;"> </span>killall $BLUETOOTH_AGENT > /dev/null 2>&1</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;">+</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> <span class="Apple-tab-span" style="white-space: pre;"> </span>log_end_msg 0</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> ;;</span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace; font-size: xx-small;"> restart|force-reload)</span></div>
<div style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">
<br /></div>
</div>
<div style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">
<b><u>VNC Setup</u></b></div>
<div style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">
<br /></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">The next step is to get VNC up and running. On the Pi, install a the tightVNC server and viewer:</span></div>
</div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">apt-get install </span><span style=""><span style="font-family: "courier new" , "courier" , monospace;">tightvncserver</span></span><span style=" font-family: "courier new" , "courier" , monospace;"> </span><span style=""><span style="font-family: "courier new" , "courier" , monospace;">xtightvncviewer </span></span></div>
<div>
<span style=""><span style="font-family: "courier new" , "courier" , monospace;"><br /></span></span></div>
<div>
<span style=""><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">Then run the server on the Pi - it will ask for a password to connect the first time.</span></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style=""><span style="font-family: "courier new" , "courier" , monospace;">vncserver -geometry 320x240 -depth 8 :1</span></span></div>
<div>
<span style=""><span style="font-family: "courier new" , "courier" , monospace;"><br /></span></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">On the Parrot, run the SDL vnc viewer:</span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">SDLvncviewer 192.168.4.1:1 </span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">Enter the password you specified earlier, and you should now see your desktop displayed on the Parrot. Yay!</span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;">From an X session on the pi, you can run </span></div>
<div>
<span style="font-family: "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;">vncviewer :1 </span></div>
<div>
<span style="font-family: "courier new" , "courier" , monospace;"><br /></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;">To open a vnc session where you can control the desktop on the Pi. Enjoy.</span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUMFesbeX_KAyV2iqYZaXdCZf95mBwt4x3KEgqVl8vNk7e4hrBmhiXQpL6edWs5IPB1SzcZktIOmGXdryTtfcyXRhs5URBmJ7cBmRfLuqAVnLiN0EmQspOkeiHo3Rw0IYVkIc5qBBXv2nv/s1600/DSC00280.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="225" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUMFesbeX_KAyV2iqYZaXdCZf95mBwt4x3KEgqVl8vNk7e4hrBmhiXQpL6edWs5IPB1SzcZktIOmGXdryTtfcyXRhs5URBmJ7cBmRfLuqAVnLiN0EmQspOkeiHo3Rw0IYVkIc5qBBXv2nv/s400/DSC00280.JPG" width="400" /></a></div>
<div>
<span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></div>
<div>
<span style=""><span style="font-family: "courier new" , "courier" , monospace;"><br /></span></span></div>
<div>
<span style=""><span style="font-family: "courier new" , "courier" , monospace; font-size: x-small;"><br /></span></span></div>
<div>
<span style=""><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif; font-size: x-small;"><br /></span></span></div>
<div>
<span style=""><span style="font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif; font-size: x-small;"><br /></span></span></div>
<div>
<span style="font-size: x-small;"><span style=" font-family: "helvetica neue" , "arial" , "helvetica" , sans-serif;"><br /></span></span></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
<div>
<br /></div>
Anonymoushttp://www.blogger.com/profile/00182512978683112766noreply@blogger.com183