If you are running your application program, say Oscilloscope, on
the machine to which the mote is attached you don't need SerialForwarder.
What is happening is that SF opens the serial port when started, and
then O'scope attempts to open the same port and gets the busy error.

If you really want to use SF as a middle-person then you need to
change the O'scope MOTECOM setting to point to the SF network port
(actually I think that may be the default so perhaps just un-setting
MOTECOM will work, and no, I don't remember what the actual syntax
should be but it is online....someplace).

You should be able to wire DemoSensor to any ADC input and see wiggly
lines if you touch the input pins.

MS

Strandberg, Elizabeth wrote:
> 
> David, Thank you for your suggestion, it seems to have helped the situation.
> However, now I have some new strange behavior...
> 
> If I follow the tutorial, and start the SerialForwarder before starting the
> Oscilloscope, the Oscilloscope will not start, and I get the following
> message:
> 
> ser...@com6:57600 died - exiting (java.io.IOException: Could not open COM6:
> TOSComm JNI library runtime error: Error 5. Access is denied. In
> NativeSerialPort.CreateFile)
> 
> HOWEVER, if I run the Oscilloscope WITHOUT starting the SerialForwarder, it
> opens and it looks like it's working (the reading stays constant at zero, but
> I am using an MTS400 so I'll have to create my own DemoSensorC to make it
> work I think).
> 
> Should I ignore the instructions to start the SerialForwarder, or is this a
> sign that the Oscilloscope is not yet working correctly?
> 
> Thank you for any comments or suggestions, and thank you David for your help!
> 
> 
> Elizabeth Strandberg
> 
> Message: 2 Date: Fri, 23 Oct 2009 13:38:20 +0200 From: "David Conde"
> <[email protected]> Subject: Re: [Tinyos-help] Oscilloscope/JNI Problem To:
> "'Strandberg, Elizabeth'" <[email protected]>, 
> <[email protected]> Message-ID:
> <000501ca53d5$52724380$f756ca...@es> Content-Type: text/plain;
> charset="us-ascii"
> 
> Hi Elizabeth,
> 
> I had a similar problema which I solved reading this link:
> 
> http://www.mail-archive.com/[email protected]/msg09307.html
> 
> 
> I put getenv.dll in Windows/system32 and this problem was solved.
> 
> I hope this help you
> 
> 
> De: [email protected] 
> [mailto:[email protected]] En nombre de Strandberg,
> Elizabeth Enviado el: viernes, 23 de octubre de 2009 3:44 Para:
> '[email protected]' Asunto: [Tinyos-help] Oscilloscope/JNI
> Problem
> 
> Hello All,
> 
> I am attempting to run the Oscilloscope application with an Iris mote.  When
> I type ./run, the oscilloscope window comes up, but there is no data
> displayed, also it does not show anything in the Mote / Color list.  In the
> Cygwin window, I get the following message:
> 
> Getenv JNI library not found.  Env.getenv will not work (run the
> tos-install-jni tool, see man tos-install-jni for more details)
> 
> However, I have run tos-install-jni, and it appeared to install with no
> complaints.
> 
> Does the blank oscilloscope problem have to do with the JNI library problem,
> or is it separate?  It seems to me that the oscilloscope window would not
> open at all if Java was not working.
> 
> Thanks in advance for any suggestions.
> 
> Elizabeth Strandberg
> 
> 
> 
> _______________________________________________ Tinyos-help mailing list 
> [email protected] 
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

-- 
Platform: WinXP/Cygwin
TinyOS version: 1.x, Boomerang
Programmer: MIB510
Device(s): Mica2, MicaZ, Tmote
Sensor board: homebrew

_______________________________________________
Tinyos-help mailing list
[email protected]
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to