BUG Community

Welcome! Log In

Forums Recent Posts

Subscribe to Recent Posts 12,455 posts found

Sep 24, 2009 8:03pm
Medium kschultz 107 posts

Topic: BUGbase / Bugwifi and windows-xp


Have you checked out this post? http://community.buglabs.net/kschultz/posts/137…

BUG uses AWT by default because it is a better cross platform choice than SWT. AWT does basically everything in Java with a platform specific peer, SWT does almost everything natively with just a Java wrapper. That makes it faster and more full featured, but a pain to work on multiple systems.

What you need are a set of class binaries for SWT for your host machine, and a set of class binaries on the BUG. The ones in libSWT are for the BUG. Do not clean it after downloading, that will wipe the class files and rebuild them incorrectly (or not at all). So just download it straight and put it onto the BUG.

For developing on the host machine you will have to link up the SWT binaries that come with eclipse to your app. The simple way is to add them to your classpath and write as a standard SWT app, and then right before you put it on the BUG switch to using the SWTDisplayProvider osgi service. The more robust way is to unjar your host SWT binary, fix the manifest, and rejar it and use SWTDisplayProvider the whole time.  The first way may be more straightforward.

If you are having trouble with it I’ll be happy to walk you through it in more detail. I haven’t actually tried it on Windows but I can if need be.

Sep 24, 2009 5:55pm
Medium bballantine 56 posts

Topic: BUGmodules / Phidgets in the USB on the vonHippel

Well, the Von Hippel has a couple of general purpose digital IO lines that you can call from Java.  We’ve used these for a couple of things, for example, the relay in our CEO’s “Hacking Health” project – http://www.gadgetocracy.com/ .  You can see all the different things the VH provides in a link I shared earlier.

We’ve also had a lot of success using the Arduino with the Von Hippel.  A search for “Arduino” on community.buglabs.net will turn up some blog posts.  Right now, daveriess is working on a servo control which is currently driven off of a microcontroller via the Von Hippel’s serial connection.  Any device that does serial over USB (for example the heart rate monitor interface from sparkfun used in the “Hacking Health” project) should be easy to code to in Java or Python (or whatever else you choose).


Sep 24, 2009 4:41pm
Medium jconnolly 285 posts

Topic: Applications / Upgrading OLD BUG Kernel

Well, I’d suggest emailing support@buglabs.net and asking about the handylink cables anyway.  While they’re far from ideal, they are very useful for debugging.

Sep 24, 2009 4:34pm
User_img_not_found_06_med co149 2 posts

Topic: Applications / Upgrading OLD BUG Kernel

This helps enormously. I’ve been looking at u-boot longingly because I thought I needed a handylink cable to install it. Clearly I don’t. Thanks for the help!

Sep 24, 2009 3:57pm
User_img_not_found_03_med fiil123 14 posts

Topic: BUGmodules / Phidgets in the USB on the vonHippel

Hej Brian

Thanks for the thorough answer, to be honest it sound like a lot of work:) My intent with the   Phidgets was to get some easy access to some sensors, actuators etc.

Could you have any idea to such kind of think?

K. Fiil

Sep 24, 2009 3:43pm
Medium jconnolly 285 posts

Topic: Applications / Upgrading OLD BUG Kernel

I’ve written up a blogpost for you loyal old BUGgers.  I hope this helps.  One thing you may want to consider first though is whether you even have bug_kflash.  Try running

which bug_kflash

first to see if that program is in your rootfs.


Sep 24, 2009 2:32pm
Medium jconnolly 285 posts

Topic: Applications / Upgrading OLD BUG Kernel

Hi co149, you’re best off migrating to uboot and just flashing your SD card.  I’ll whip together some steps to get this done and repost shortly.

Sep 24, 2009 2:25pm
Medium bballantine 56 posts

Topic: BUGmodules / Phidgets in the USB on the vonHippel

I’ve never used Phidgets, but from what I see, they work over USB, so they should work with the Von Hippel.  If Phidgets have other connection methods (Serial, Digital IO) then the Von Hippel will also help there.  Here’s more info on that module: http://bugcommunity.com/wiki/index.php/Von_Hippel

I have no idea about using the Phidgets Java API on the BUG base.  A brief look at the phidgets software stack shows that it’s based on a C library.  That would need to be compiled for the BUG, most likely using the OpenEmbedded build tools, which may not be easy.  This blog post might be useful if you decide to head down the path of porting phidgets to BUG: http://community.buglabs.net/bballantine/posts/...

Lastly, the stock Java VM on the BUG is called PhoneME Advanced Personal Profile, which is more like Java SE 1.4.  To run Java 1.5 code, you need to install cacao and classpath, which are available in our extras repo.  Info on that is here: http://community.buglabs.net/jconnolly/posts/14…



Sep 24, 2009 2:06pm
Medium bballantine 56 posts

Topic: BUGbase / Bugwifi and windows-xp

Oh… heh… I see jconnolly already responded.  Collision!

Sep 24, 2009 2:04pm
Medium bballantine 56 posts

Topic: BUGbase / Bugwifi and windows-xp


There may be a couple of reasons an app won’t start.  Many of them are written to depend on certain modules being plugged in or OSGi services available.  When you see “ignoring dead app” in your log, it usually means that somehow the app failed and the OSGi environment put it in a state where you can’t use it.  I’m not sure why it happened, but re-uploading the same application should solve it.  Otherwise, you might have to clean out the Concierge (OSGi) storage directory.

There are instructions on how to do that here: http://bugcommunity.com/wiki/index.php/Reset_BUG, you can also ssh into the BUG and remove the /usr/share/java/storage directory.  Some (not many) BUG apps save data in that storage dir and in both cases, that data will be lost.


Powered by Community Engine