Hi Phil, Firstly I apologize for the premptive mail. It turns out that with the upgrade to Fiesty Fawn (Ubuntu 7.04) my python got upgraded to python 2.5 as well. This led to the incompatibility in the API. When I reverted back to 2.4 the warnings went away.
The second major problem was I hadn't paid attention to all the instructions put up on the TinyOS website while installing the 2.0.1 tree. It turns out there is a bug in the 2.0.1 tree which results in the timers not working with TOSSIM which is what was happening in my case. When I followed the instructions on http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html (the one given just before step 6) things worked out just fine. I am currently in the process of running some experiments with a 5 hop linear topology(the radio is working) will ping in case I have any more issues. Thanks a lot for your time, regards, Avinash On 7/17/07, Philip Levis <[EMAIL PROTECTED]> wrote:
Avinash Sridharan wrote: > Hi Phil, > I was trying to use the TOSSIM that comes with tinyos 2.0.1 by > following the TOSSIM tutorial. I was primarily interested in using the > new radio model that comes with TinyOS 2.0.1. > > However when I try to run the example code given in the TOSSIM > tutorial with the RadioCountToLeds application the script just prints > out the python statements and exits. Here is the output. > /home/hobes/developement/tinyos-2.0.1/apps/RadioCountToLeds/TOSSIM.py:4: > RuntimeWarning: Python C API version mismatch for module _TOSSIM: This > Python has API version 1013, module _TOSSIM has version 1012. > import _TOSSIM > 1 2 -54.0 > 2 1 -54.0 > 2 3 -64.0 > 3 2 -64.0 > 1 3 -64.0 > 3 1 -64.0 > Creating noise model for 1 > Creating noise model for 2 > Creating noise model for 3 > > > Could this be due to the warning ? I have just upgraded my system to > Ubuntu 7.0.4. Do I need to recompile TOSSIM in order to remove the > compatibility warnings ? > > I tried this simple example since with my other applications (that had > been working with 2.0.0 UscGainInterference model) the radio wouldn't > work with TOSSIM. > > > The only difference between the code in the tutorial and my example > run here is that instead of using the meyer-heavy.txt file I used a > shorter noise trace by using the first 100 lines of the meyer-heavy.txt. > > > Thanks in advance for the help. I have no idea. I've never seen that error before. Could you dig a bit deeper? That is, try typing in the script and see what happens? Are any TOSSIM events executing? Your output is not much to go on. Phil
-- Phd Dept. of Electrical Engineering University of Southern California http://www-scf.usc.edu/~asridhar
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
