Hi Asim, Understood! I guess its the same thing exporting the motecom and typing -comm serial@/dev/ttyS0:micaz. And when I do that, I get the following 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) As I posted previously. Thank you, Vitor Biajo 2016-07-13 2:55 GMT-03:00 Asim Maiti <[email protected]>: > Hi Vitor H. M. Biajo, > > You should export motecom environment variable like... > > export MOTECOM=serial@COM1:19200 # mica baud rate > export MOTECOM=serial@COM1:mica # mica baud rate, again > > Also, you should read > Mote-PC serial communication and SerialForwarder (TOS 2.1.1 and later) > > from tutorial. > Most probably it solved your problem. > Thanking you > Asim > > > > On Wed, Jul 13, 2016 at 12:30 AM, < > [email protected]> wrote: > >> 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 >> >> 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 >> ******************************************* >> > > > > -- > Regards : > Asim Kumar Maiti > > > _______________________________________________ > Tinyos-help mailing list > [email protected] > https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > -- Att. *Vítor H. M. Biajo*
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
