BUG Community

Welcome! Log In

Forums Recent Posts

Subscribe to Recent Posts 11,764 posts found

Jul 7, 2008 3:05pm
Medium mcaric 64 posts

Topic: Official Updates / Open House III - Postponed

I’m very sorry to say that we have to postpone the Open House we scheduled for this Wednesday. A number of conflicts have arisen since the original post was made – we’ve been trying to juggle the schedules of Bug folks while timing the move to our new office, and suddenly realized that we were a bit too optimistic. We regret having to push this one off, but we’d like to have a full staff and some furniture present before inviting everyone in.

I’d like to apologize for any inconvenience caused. Stay tuned and we’ll schedule another one just as soon as we’re back up and running at full capacity in the new building.

Jul 5, 2008 11:31pm
maxwelllove 1 post

Topic: Way Off Topic / New to this...

I’m in high school and I’m very involved with computers and technology. This device quite suits my fancy but I’m not that experienced with Java. I’m not sure how much experience I’d need or how much this gadget could provide for me but I’m curious if there are any other students out there or novices of Java coding that could let me know what I’m in for if I pick one up!
Thanks!

Jul 3, 2008 4:34pm
Medium mcaric 64 posts

Topic: Official Updates / Open House III

For those of you that were unable to make it to our first two Open Houses, or for those that have been anxiously awaiting the next one, we’re opening the doors again on Wednesday the 9th from 6 to 8PM. This will be your last chance to check out our current digs, as we’re moving to a new location further south on Broadway in just a few short days.

Why spend your Wednesday night at our humble office? Because we’ll have cool BUG applications and other demos to show off. You’ll get a chance to play around with the hardware and we’ll be on hand to talk about the SDK, BUGnet, applications, stuff you’re interested in building, whatever you like. Perhaps most importantly, there will be beer. There might even be a free T-shirt or two as giveaways (distribution methods of aforementioned T-shirts still pending). No matter what your reasons for stopping by, we’d love to see you.

You can find us at 915 Broadway (between 20th and 21st) on the 11th floor, at the end of the hall in Suite 1109. Look for the fancy red Bug Labs sign on the door.

Hope to see you soon!
Melinda

Jul 3, 2008 10:51am
aroman 21 posts

Topic: BUGbase / Access to onboard NIC

Hi John,

Thanks for answering this one. However, I believe power is not an issue; you can connect an RJ45 jack directly. The only constraint that I know of is that you get a connector with built-in magnetics like this one:

http://search.digikey.com/scripts/DkSearch/dksu…?name=J0026D21NL-ND

Regards,
Angel

Jul 3, 2008 9:51am
edgar1992 7 posts

Topic: Applications / Adding loops to BaseDiagnostic app, Help a new guy out

Thanks I guess I just needed to put the loop in the right place. I haven't gotten to the chapter in my book on events yet. In case anyone is interested here is the code in question...


public void doStart() {
System.out.println("Button_GPSServiceTracker: start 1");
buttonEventProvider = (IButtonEventProvider) getService(IButtonEventProvider.class);
baseControl = (IBUGBaseControl) getService(IBUGBaseControl.class);
buttonEventProvider.addListener(this);



while (CurrentButton != 4){// pressing button 4 should end the routine.
while (CurrentButton == 0){// enter all the stuff you want to happen before any button is pressed.
// Write a loop to get a fix
System.out.println("GPS has a fix...");
try
{
Thread.sleep(1000); // ask currently executing Thread to sleep for 1000ms
}// end try
catch(InterruptedException e) {
System.out.println("Sleep interrupted:"+e);
}// end catch
} // end what to do when no button has been pressed

while (CurrentButton == 1){
try
{
System.out.print("Current Location = ");
LCDDisplay ("TEST");
// System.out.println(position.getLatitudeLongitude());
Thread.sleep(100); // ask currently executing Thread to sleep for 1000ms
}// end try
catch(InterruptedException e) {
System.out.println("Sleep interrupted:"+e);
}// end catch

}// end while 1

while (CurrentButton == 2){
System.out.print("2 ");
try
{
Thread.sleep(100); // ask currently executing Thread to sleep for 1000ms
}// end try
catch(InterruptedException e) {
System.out.println("Sleep interrupted:"+e);
}// end catch

}// end while 2

while (CurrentButton == 3){
System.out.print("3 ");
try
{
Thread.sleep(100); // ask currently executing Thread to sleep for 1000ms
}// end try
catch(InterruptedException e) {
System.out.println("Sleep interrupted:"+e);
}//end catch

}// end while 3

}// end while != Button 4
CurrentButton = 0;// resets the current button var. If GPS is removed and re-installed it will reset the program
}// end doStart

public void buttonEvent(ButtonEvent event) {

if (event.getAction() == ButtonEvent.KEY_DOWN) {
/**
* input anything that you want to do on key-down
*
*/
}
if (event.getAction() == ButtonEvent.KEY_UP) {
System.out.println("In if...");
switch (event.getButton()) {
case (ButtonEvent.BUTTON_HOTKEY_1):
CurrentButton=1;
System.out.println("trackpoint" + CurrentButton);
break;
case (ButtonEvent.BUTTON_HOTKEY_2):
CurrentButton=2;
System.out.println("trackpoint" + CurrentButton);
break;
case (ButtonEvent.BUTTON_HOTKEY_3):
CurrentButton=3;
System.out.println("trackpoint" + CurrentButton);
break;
case (ButtonEvent.BUTTON_HOTKEY_4):
CurrentButton=4;
System.out.println("trackpoint" + CurrentButton);
break;
case (ButtonEvent.BUTTON_UP):
CurrentButton=5;
System.out.println("trackpoint" + CurrentButton);
System.out.println("trackpoint up");
break;
case (ButtonEvent.BUTTON_DOWN):
CurrentButton=6;
System.out.println("trackpoint" + CurrentButton);
System.out.println("trackpoint dn");
break;
case (ButtonEvent.BUTTON_LEFT):
CurrentButton=7;
System.out.println("trackpoint" + CurrentButton);
System.out.println("trackpoint L");
break;
case (ButtonEvent.BUTTON_RIGHT):
CurrentButton=8;
System.out.println("trackpoint" + CurrentButton);
System.out.println("trackpoint R");
break;
case (ButtonEvent.BUTTON_SELECT):
CurrentButton=9;
System.out.println("trackpoint" + CurrentButton);
System.out.println("trackpoint Sel");

} //end 'if (event.getAction() == ButtonEvent.KEY_UP)'
} // end 'switch (event.getButton())'
} //end 'public void buttonEvent(ButtonEvent event);'
Jul 3, 2008 7:04am
Medium jconnolly 285 posts

Topic: BUGbase / Access to onboard NIC

I’ll check in with our hardware team and try to get some information online ASAP. I’ll let you know.

Jul 3, 2008 3:50am
hakan@cognimatics.com 2 posts

Topic: BUGbase / Access to onboard NIC

Thanx for the info! Are those power constraints documented somewhere?

Jul 2, 2008 4:44pm
Medium jconnolly 285 posts

Topic: BUGbase / Access to onboard NIC

hakan@cognimatics.com
Hi,
if I read your schematics correctly all that is needed to use the MAC is the magnetics and a RJ45-connector. So if I used a RJ45-connector with built in magnetics such as SI-60002-F it should be as simple as connecting pin 9-15 of the handylink to the SI-connector. Right? Now, what kind of connector is the handylink and where can I find a component fitting in it?


I'm not on the HW team, but from what I understand, there is a power constraint on the Handylink terminal such that an external adapter card is required. It will not be sufficient to just straight-through wire the Handylink pins to the corresponding ethernet pinouts. :(

You can however find the cables required for interfacing with the handylink connector by going here: http://www.molex.com/product/io/handylink.html. I would suggest getting the handylink->handylink connector as you'll maximize bang for buck.
Jul 2, 2008 10:41am
Medium jconnolly 285 posts

Topic: Applications / Adding loops to BaseDiagnostic app, Help a new guy out

edgar1992
My apologies if this is easy...

I would like to use the BaseDiagnostic as a starting off point for my application. I would like to use the hot keys to determine which of 3 loops to run. The loops would display and update the GPS position, speed and heading on the built in LCD. I haven't been able to figure out how to use the hot keys to break back out of the loop.

Thanks,
Che.


Hey there Che,

No prob, great that you're jumping in.... if you post some code I can help you specifically, but one way to do it is to set a global variable to true when buttonEvent(ButtonEvent event) is called:





private boolean hotkey1Pressed = false;
...

private void doStuff(){
while (!hotkey1Pressed){
System.out.println("I'm doing stuff....");
}
System.out.println("Outside of loop because hotkey1 was pressed...");
}

...
public void buttonEvent(ButtonEvent event){
if (event.getAction() == ButtonEvent.KEY_UP) {
System.out.println("In if...");
switch (event.getButton()) {
case (ButtonEvent.BUTTON_HOTKEY_1):
hotkey1Pressed = true;
break;
....
}
}
}





Give that a try and let me know if I can help further.
Jul 1, 2008 6:11pm
scott2345 11 posts

Topic: Java / JLayer + OSGi

MP3 Player has been uploaded. http://www.buglabs.net/applications/Atraeus/MP3…

Powered by Community Engine

Top
Login
Close
Bottom