Hello Bahri,
I downloaded and installed Cygwin and TinyOS to replicate your setup.
Is MATLAB running under Windows?
Have you successfully tested the data path from TinyOS to MATLAB? There are a number of options available to capture incoming serial data on the PC. If your application does not require real-time analysis, the TinyOS Listen/SerialForwarder program is also good option for capturing the serial data to a file that MATLAB may open for post-processing. If your use case requires real-time data analysis, the java.net.tinyos.tools.Listen program uses the TinyOS serial SDK, which includes serial port code for both Windows and POSIX OS. Capturing data directly into MATLAB can become complicated due to the structure of MATLAB's built-in serial port handling; if possible, the easiest short-term solution might be to use the TinyOS Listen/serial forwarder program to add a time-stamp and save data to a file that may be later opened in MATLAB. If you are able to see the data using the Listen program, try redirecting the output to a file by adding " > file.txt" to the end of the command ( "java net.tinyos.tools.Listen -comm serial@COM6:telos > data001.txt" ) and then import data001.txt into MATLAB.
Sincerely,
Michael