BUG Community

Welcome! Log In

Forums Recent Posts

Subscribe to Recent Posts 11,767 posts found

May 15, 2008 5:52pm
Medium mcholerton 54 posts

Topic: Meet & Greet / Open House II

We’re doing another Open House on Tuesday, the 20th, from 6:00-8:00 pm. Come by and chat, check out some fun new applications in action (BUGLevel, the snap and shake slideshow, and using BUG/accelerometer to ‘play’ our keyboard). We’ll certainly do some sort of demo/app building Q&A/collaboration session.

If any beta users can swing by, you know we’ll roll out the red carpet (read – ‘you get the most comfortable chair and two BUG T-shirts’)

Hope you can make it! We’re still at 915 Broadway (between 20th and 21st) on the 11th floor, at the end of the hall in Suite 1109.

May 15, 2008 5:37pm
Medium mcholerton 54 posts

Topic: Applications / Applications suggestions

KSchultz – TwitterBug’s author will be interning with us this summer – I’m sure you two will come up with some cool new stuff.

May 15, 2008 2:45pm
awebb 3 posts

Topic: Official Updates / Postponement?

Thanks for the update. I’ll try to exercise what may be my only virtue and be patient.

May 15, 2008 12:33pm
Medium agordon 74 posts

Topic: BUG SDK / New connection required each time?

Grrr.... Okay, please accept my apologies. I was operating from some old notes rather than my actual config, since I could not find the MMC card that I had previously used for this configuration.

If you look back up at my initial posting in this thread, I have edited it to hopefully be correct. Specifically, after the new modprobe line in /etc/rc.d/rc.local, you need to configure the interface with an IP and netmask:

/sbin/ifconfig usb0 10.10.10.10 netmask 255.255.255.0

I have not tested this, but uou may also want to want to add this immediately below those lines:

/sbin/route add default gw 10.10.10.1
May 15, 2008 12:32pm
Medium jconnolly 285 posts

Topic: Java / App layer (Java) access to Handylink serial terminal on base

Actually, now that I've tested it, it doesn't work.

here's my code:
public void doStart() {
System.out.println("CommCheckerServiceTracker: start");


System.setProperty("microedition.commports", "/dev/ttymxc/4");

String port1;
String ports = System.getProperty("microedition.commports");
System.out.println("ports: "+ports);
int comma = ports.indexOf(',');
if (comma > 0) {
// Parse the first port from the available ports list.
port1 = ports.substring(0, comma);
} else {
// Only one serial port available.
port1 =ports;
}

try {
CommConnection cc = (CommConnection) Connector
.open("comm:"+port1+";baudrate=115200");

InputStream is = cc.openInputStream();
OutputStream os = cc.openOutputStream();
int ch = 0;
while(ch != 'Z') {
os.write(ch);
ch = is.read();
ch++;
}
is.close();
os.close();
cc.close();

} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}

}


It results in the following output + exception (in /var/log/concierge.log):

CommCheckerServiceTracker: start
ports: /dev/ttymxc/4
javax.microedition.io.ConnectionNotFoundException: The requested protocol does not exist /dev/ttymxc/4;baudrate=115200
at com.sun.cdc.io.InternalConnectorImpl.open(Unknown Source)
at javax.microedition.io.Connector.open(Unknown Source)
at javax.microedition.io.Connector.open(Unknown Source)
at javax.microedition.io.Connector.open(Unknown Source)
at commchecker.servicetracker.CommCheckerServiceTracker.doStart(Unknown Source)
at com.buglabs.application.AbstractServiceTracker.addingService(Unknown Source)
at org.osgi.util.tracker.ServiceTracker$Tracked.track(Unknown Source)
at org.osgi.util.tracker.ServiceTracker.open(Unknown Source)
at commchecker.Activator.start(Unknown Source)
at ch.ethz.iks.concierge.framework.BundleImpl.startBundle(Unknown Source)
at ch.ethz.iks.concierge.framework.BundleImpl.start(Unknown Source)
at com.buglabs.bug.program.UserAppManager.startApp(Unknown Source)
at com.buglabs.bug.program.UserAppManager.processQueue(Unknown Source)
at com.buglabs.bug.program.UserAppManager.run(Unknown Source)
at com.buglabs.bug.program.ProgramServlet.doPost(Unknown Source)
at javax.servlet.http.HttpServlet.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(Unknown Source)
at com.buglabs.osgi.http.HttpServer.processRequest(Unknown Source)
at com.buglabs.osgi.http.HttpServer.run(Unknown Source)
at java.lang.Thread.startup(Unknown Source)



I'll look into it further, but I've already tried to use the default VM microedition.commports (/dev/ttyS0) and created a symlink to /dev/ttymxc/4 but I get the analogous exception.
May 15, 2008 12:27pm
Medium jconnolly 285 posts

Topic: Java / App layer (Java) access to Handylink serial terminal on base

Chuck asked a good question yesterday in our IRC channel about getting programmatic access to the comm port on your bug.

if using the handylink connection to DB9 serial cable, if you plug that into the BugBASE do you get a serial comm device which you can call with Connection cc = Connector.open("comm:0;baudrate=9000"); from the Microedition Connection??

Are there any drivers that would need to be installed first?
Looking to use : javax.microedition.io.CommConnection;


The baud rate is 115200 default, and you can set the dev node as part of the system properties, which can be set on the fly:

System.setProperty("microedition.commports", "/dev/ttymxc/4")

then using the code:

Connector.open("comm:/dev/ttymxc/4;baudrate=115200")

More information from the phoneME documentation page here:

http://java.sun.com/javame/reference/apis/jsr216/javax/microedition/io/CommConnection.html
May 15, 2008 12:08pm
Medium agordon 74 posts

Topic: BUGbase / dropbear keys

If you pass -v to your ssh client, you may be able to see what’s going on. It’s also possible that our dropbear build may not be configured to support logins without passwords. I’ll see if I can take a look into that for you.

May 15, 2008 12:07pm
Medium agordon 74 posts

Topic: BUGbase / Outbound connections via g_ether

Hrm... on my BUG, I have the following settings under net interface 1:

# net interface 1
export SYSCFG_IFACE1=y
export INTERFACE1="usb0"
export IPADDR1="10.10.10.10"
export NETMASK1="255.255.255.0"
export BROADCAST1="10.10.10.255"
export GATEWAY1="10.10.10.1"
export NAMESERVER1="10.10.10.1"


My /etc/resolv.conf reads as follows:

nameserver 4.2.2.2

HOWEVER: I had to do this on my BUG to get it talking to the internet:

/sbin/route add default gw 10.10.10.1
May 15, 2008 11:39am
Medium finsprings 268 posts

Topic: BUGbase / Outbound connections via g_ether

Thanks Al. I’ll try that. Should the GATEWAY1 setting being at 10.10.10.1 be enough for the bug to go out through the Mac?

Should I edit resolv. conf to set the nameserver or does it only use NAMESERVER1 for that?

May 15, 2008 11:36am
Medium finsprings 268 posts

Topic: BUGbase / dropbear keys

I think I did try that, but I will try again. I know that doesn’t work for dropbear in OpenWRT (it was what I was familiar with so it was what I tried first there).

Powered by Community Engine

Top
Login
Close
Bottom