I'm sorry but I realized I sent the previous message in HTML-format:
here it is as text.
I apologize for this. Thanks to all for your patience.
Hi everybody!
I'm getting quite crazy trying to solve the following problem: I want to
transmit some values from MATLAB to a mote (Tmote Sky by MoteIV
Corporation) connected through serial port (USB). I'd like to use the
M-files I've found in
"/opt/tinyos-1.x/tools/matlab/comm";
so I've done MATLAB setup as well explained here
(https://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-October/012774.html:
changed startup.m, set the path, copied comm.jar and the win32com.dll
and getenv.dell libraries in the right directories, compiled MATLAB java
files MatlabControl.java, MatlabMessenger.java,
MatlabMessageListener.java, MatlabClock.java, changed classpath.txt) but
it still doesn't work! Even if I set up correctly classpath.txt, the command
'messenger = net.tinyos.matlab.MatlabMessenger;'
gives the MATLAB error "Undefined variable "net" or class
"net.tinyos.matlab.MatlabMessenger". And it is quite strange, as the
command e.g.
messenger = net.tinyos.packet.BuildSource;
doesn't generate any errors! It seems like MATLAB does not recognize the
package net.tinyos.matlab.... and I can't understand why, as the static
path is the same for both the packages!
Another bad thing: I've noticed that trying to use the package
net.tinyos.message like messenger "messenger = net.tinyos.message.MoteIF;"
makes MATLAB crash!!!
I made some attempts with different version of MATLAB: MATLAB 7, MATLAB
R2006b and MATLAB R2007a, but I got the same results everywhere. I use
CYGWIN and I got the comm.jar file from
http://www.stanford.edu/~bsuter/javax.comm-v2-win32.zip
but I tried to use also 'comm.jar, 2.0.3, generic, English (3rd party
backward compatibility, only), English' downloaded from
"http://java.sun.com".
Can someone help me? Even if you don't know the right procedure for
MATLAB setup to run with Java, I'm interested also about other ways to
let MATLAB write on the Tmote: is it possible using the 'serial' command?
Thanks in advance for your kind attention
Giulia
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help