It is not possible to run two different apps, but it is possible to initialize each mote differently.
Since TinyOS is component based, you ought to be able to write a wrapper component that, depending on the TOS_LOCAL_ADDRESS or other parameters, calls StdControl on App1C or App2C appropriately. The reason for this is because TOSSIM is compiled INTO the application (ie main.exe). Thus if you run two different main.exe files, you're running two different simulators. The wrapper method above is an easy and quick fix to your situation (and is what we have done to simulate motes with different code). -Joe On Fri, 14 Jan 2005 16:00:56 -0800, Athanasios Stathopoulos <[EMAIL PROTECTED]> wrote: > On Fri, Jan 14, 2005 at 02:58:19PM -0800, [EMAIL PROTECTED] wrote: > > Hi, > > I compiled application_1 and app_2, by "make pc". > > I want use Tossim to simulate mote1 running app1 can communicate with > > mote2 running app2. > > But if I start "build/pc/main.exe 2", the 2 motes always run the same > > application in the simulation. And if I start "build/pc/main.exe 1" twice > > in different folder, motes in different simulcation won't communicate. > > How can I make two motes run different applications in the same simulation? > > Or it is not posibble? > > > > Leo > > > > > I don't believe it's possible under Tossim but it's possible if you use > EmTOS. See http://cvs.cens.ucla.edu/emstar/ref/emtos.html for more details. > > -thanos > _______________________________________________ > Tinyos-users mailing list > [email protected] > http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users > _______________________________________________ Tinyos-users mailing list [email protected] http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users
