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:
s...@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.
_______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help