Posts Tagged beagleboard

Building a Guile extension on an embedded device

Thanks to OpenEmbedded building extensions for Guile that run on embedded devices such as the BeagleBoard is fairly painless. As I have previously mentioned, Guile is already supported by OpenEmbedded. If you have an extension which is made up of some C code and some Scheme code you first should automate building it with autoconf. This might install a shared library and install some Scheme files into Guile specific locations. The next step is to write a bitbake recipe which will work with this autoconf based project. Typically this recipe will download a tarball or checkout some code from version control and then begin its magic. The end product hopefully is a binary package which can be easily installed onto the device. As an example I built packedobjects as a Guile extension for my BeagleBoard. The bitbake recipe is availabe here:

http://packedobjects.cvs.sourceforge.net/viewvc/packedobjects/packedobjects_project/openembedded/

This works by getting the latest code from CVS. It builds the code and is told which files need to be part of the package. So if you have OpenEmbedded setup you just need to issue the command:

bitbake packedobjects

This will build and package the lastest code as an ipk.

We should test the built ipk on the device to see if it works:

root@beagleboard:~# opkg install http://zedstar.org/ipk/libpackedobjects0_0.1-r0.1_armv7a.ipk
Downloading http://zedstar.org/ipk/libpackedobjects0_0.1-r0.1_armv7a.ipk
Installing libpackedobjects0 (0.1-r0.1) to root...
Configuring libpackedobjects0
root@beagleboard:~# guile
guile> (use-modules (packedobjects))
guile> (exit)

Tags: , , ,

Bluetooth logging hardware

Here is a picture of the hardware I will use for logging Bluetooth data.

Tags: ,

Bluedog

Bluedog is the name I am going to give to my Bluetooth traffic/stats project I aim to start soon. I have the hardware and software setup with my beagleboard. Ideally I want to setup a few of these at the University where I work and start logging some data in similar nature to http://www.bluetoothtracking.org/

I will post some pics of my hardware setup soon.

Tags: ,

btlogger for the beagleboard

I have built btlogger for the beagleboard. The ipk is available:

http://zedstar.org/beagle/btlogger_0.2.2-r0_armv7a.ipk

It requires the sqlite db some where on the device. Download:

http://projects.openmoko.org/frs/download.php/313/btlog.db

run btlogger -v to see what it does and reference the db file with -d /location/of/file

TODO:

  • I am going to modify the program to log more stats.
  • I should also add the database to the ipk so it installs automatically

Tags: , ,