For whatever reason, running under Eclipse is not getting the -comm port argument, so it defaults to sf@localhost. You should be able to set those command line arguments in the Eclipse Run Properties panels. I set a MOTECOM environment variable there, rather than using the command line but either should work.
MS Ashish Sharma wrote: > Hi, > > I am new to tinyos and want to build a java desktop application to > read the data from the base station and manipulate the data. > I have found that Listen.java has the required code to read data from > the serial port but I am unable to run it in eclipse. I am able to > read data via the console by using the command java > net.tinyos.tools.Listen -comm serial@/dev/ttyUSB0:telosb but I want to > modify the code. > > When I build the project in Eclipse with all necessary packages and > run Listen.java, I get error message 'Error on sf@localhost:9002: > java.net.ConnectException: Connection refused'. I have spent quite a > time to figure it out but it seems I need some help here. > > Can you explain why I am getting such error and what can be done to > get rid of the error. > _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
