[Tinyos-help] Serial Forwarder
Patrick Brady
pbrady78 at gmail.com
Fri Jan 16 14:14:52 PST 2009
Hi folks,
I'm a final year engineering student and for my project I'm trying to
develop a system using sensor networks.
I have 2 tmoteinvent sensors programmed with the oscilloscope application
and I'm trying to get the raw data from the sensors
into a Java program I'm writing in Eclipse.
I'm using the serial forwarder but when I try to connect I get the following
error message:
sf at localhost:9001 died - exiting (java.io.IOException: protocol error)
The code I'm using to connect is as follows:
PhoenixSource reader = BuildSource.makePhoenix( BuildSource.makeSF(
"localhost" , 9001 ), null );
reader.start( );
MoteIF moteif = new MoteIF( reader );
moteif.registerListener( new OscopeMsg( ) , new MessageListener( ) {
public void messageReceived ( int dest , Message rawMsg ) {
System.out.println( "Received." );
}
} );
I'm pretty sure this code is right, but I don't understand the "protocol
error".
Any help is appreciated.
Thanks,
Pat.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090116/b47bd756/attachment.htm
More information about the Tinyos-help
mailing list