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

Reply via email to