For the first error, as far as I can recall, by default SerialForwarder tries to talk to a local TCP server at port 9002, which was not there; so it throws error. Maybe there is a way to go without it. I cannot remember how; you can check the source code for clues.
The second error sometimes happens in Cygwin; I suggest you can test it in a Linux environment. ________________________________ From: [email protected] <[email protected]> on behalf of [email protected] <[email protected]> Sent: Wednesday, 13 July 2016 3:00 AM To: [email protected] Subject: Tinyos-help Digest, Vol 159, Issue 1 Send Tinyos-help mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help Tinyos-help Info Page - University of California, Berkeley<https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help> www.millennium.berkeley.edu To see the collection of prior postings to the list, visit the Tinyos-help Archives. Using Tinyos-help: To post a message to all the list members ... or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Tinyos-help digest..." Today's Topics: 1. [HELP] Reading Serial Data from Serial Port error3 TOSComm Jni (vbiajo) ---------------------------------------------------------------------- Message: 1 Date: Tue, 12 Jul 2016 08:47:58 -0700 (MST) From: vbiajo <[email protected]> Subject: [Tinyos-help] [HELP] Reading Serial Data from Serial Port error3 TOSComm Jni To: [email protected] Message-ID: <[email protected]> Content-Type: text/plain; charset=UTF-8 Hi guys! I am using Windows + Cygwin + mib510 and micaz motes and I?m having some problems to read data from serial port. I?ve tested the serial communication with Realterm (a serial terminal for windows) and checked the output with the standard outputs given by the 4th lesson of the tutorial and it was okay. So I think that the problem isn?t the cable or any other hardware part. But, when I try to run the Java tools for reading data from serial, I dont have success. When I execute the commands $ java RssiDemo $ java net.tinyos.tools.Listen I get the error: sf@localhost:9002 died - exiting (java.net.ConnectException: Connection refused: connect) And with these commands: $ java RssiDemo -comm serial@/dev/ttyS0:micaz $ java net.tinyos.tools.Listen -comm serial@/dev/ttyS0:micaz I get the error: serial@/dev/ttyS0:57600 died - exiting (java.io.IOException: Could not open /dev/ttyS0: TOSComm JNI library runtime error: Error 3. The system couldnt find the specified path.in NativeSerialPort.CreateFile) My java and javac versions are: java version "1.8.0_25" Java(TM) SE Runtime Environment (build 1.8.0_25-b18) Java HotSpot(TM) Client VM (build 25.25-b02, mixed mode, sharing) javac 1.7.0_72 Can anybody help me? I need to run the serial through java for a better comprehension of RSSI application, because I can?t evaluate the data that the Realterm shows me. Thx! V?tor H. M. Biajo -- View this message in context: http://tinyos-help.10906.n7.nabble.com/HELP-Reading-Serial-Data-from-Serial-Port-error3-TOSComm-Jni-tp24980.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ------------------------------ _______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help End of Tinyos-help Digest, Vol 159, Issue 1 *******************************************
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
