[Tinyos-help] help

2011-06-25 Thread Jason Fan

hi, 
i'm a beginner in tinyOS, i would like to ask how to store and retrieve data to 
/ from flash memory, i will appreciate all your kindly help.

regards,
jason
  ___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] help

2011-06-25 Thread Eric Decker
try starting with the Storage tutorial.   (7th down on the tutorial page)

it doesn't hurt to start with the tutorials and other documents at

docs.tinyos.net

then ask for help.

On Sat, Jun 25, 2011 at 12:09 AM, Jason Fan wrote:

>  hi,
> i'm a beginner in tinyOS, i would like to ask how to store and retrieve
> data to / from flash memory, i will appreciate all your kindly help.
>
> regards,
> jason
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>



-- 
Eric B. Decker
Senior (over 50 :-) Researcher
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Issues with ActiveMessageAddress.changed()

2011-06-25 Thread Torsten Zimmermann
Hi, i knew there is a similar thread to this one, but the suggested solution 
did not help to solve my problem.

The Problem is, that when it try to compile the code for TOSSIM (make micaz 
sim) i get:


In component `neighC':
neighC.nc:62: `ActiveMessageAddress.changed': async mismatch with declaration
/opt/tinyos-2.1.1/tos/interfaces/ActiveMessageAddress.nc:60: previous 
declaration of `ActiveMessageAddress.changed'

What do i need to change ?

Here are the corresponding details of my wiring.
-
configuration neighAppC {
}

implementation {
...
    components ActiveMessageAddressC;
...
    App.ActiveMessageAddress -> ActiveMessageAddressC;
...
-

module neighC {
    
    uses interface ActiveMessageAddress;   


implementation {
...
    event void Boot.booted() {
        //set our address BUJA!
        call ActiveMessageAddress.setAddress(...);
        ...
    }//Boot.booted
...
    event void ActiveMessageAddress.changed(){
        //   
    }


Tanks in advance,

Torsten

___
Schon gehört? WEB.DE hat einen genialen Phishing-Filter in die
Toolbar eingebaut! http://produkte.web.de/go/toolbar

___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] mviz(Indian Institute of Technology))

2011-06-25 Thread vinod kumar
-- Forwarded message --
From: vinod kumar 
Date: Fri, Jun 24, 2011 at 8:29 PM
Subject: mviz(Indian Institute of Technology))
To: Prathyusha Aala 





Sir,
I am trying to run mviz app over TOSSIM without actual hardware
connected. But I facing some problem. I think I am missing something to
activate the simulator TOSSIM.
When I type:
tos-mviz -comm serial@COM1:iris MVizMsg

*




[misc]$ tos-mviz -comm serial@COM1:iris MVizMsg
> /opt/tinyos-2.x/support/sdk/java/tinyos.jar:.:/opt/tinyos-2.x/apps/
> MViz:
> Making MVizMsg
> Loading link
> Loading etx
> Loading reading
> Loading count
> Loading origin
> Loading interval
> Loading version
 



> ./mote.gif 
> 
**serial@com1 
:57600
died - exciting*

* java.io.IO Exception :Could not open com1: TOSComm JNI library
runtime** error: Error 2*

*The system cannot find the file specified in NativeSerialPort.CreateFile*

*  For running the same over the real iris motes(not
simulators), first the app has to be installed in all the motes using
make mica2 install.4 mib510,dev/ttyS0. But in case of TOSSIM
simulators I am not sure what to do. I guess there is some error over
here. Please help me out.*

*Thanks,*

*Vinodh.*
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Question about Receive interface

2011-06-25 Thread Geo Gkolfin
Hello!
I am trying to write an application in which two nodes will be exchanging
their temperature measurements every 2 secs, something like a ping pong
protocol. So I need to use both AMSend and Receive interfaces. When I want
to send a message I simply call the AMsend.send command and when the
sendDone event is signaled I check whether the message was sent correctly or
not and do some other things that are required for the application. When I
want to read a received message shouldn't I respectively use something such
as a Receive.receive command? I looked at tos/interfaces/Receive.nc, but I
didn't find such a command. I guess this is logical since the application
does not decide whether and when a node will receive a message or not. But I
really don't understand how I will use the Receive.receive event without
having called a Receive command before.
Can someone give an example?
Thanks in advance,
Georgia.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Question about Receive interface

2011-06-25 Thread Sergio Valcarcel
Hi,

The receive even is not a command, but an asynchronous event that is
signaled every time the radio chip gets a message of the predefined type
(defined as an AM channel number in the configuration).

You may really want to read the Tutorial Mote-2-Mote radio communication. It
will help you a lot:
http://docs.tinyos.net/tinywiki/index.php/Mote-mote_radio_communication

The rest of the tutorials will be also very useful, mainly the next one on
SerialForwarder
http://docs.tinyos.net/tinywiki/index.php/TinyOS_Tutorials

Cheers!
Sergio

On Sat, Jun 25, 2011 at 5:41 PM, Geo Gkolfin  wrote:

> Hello!
> I am trying to write an application in which two nodes will be exchanging
> their temperature measurements every 2 secs, something like a ping pong
> protocol. So I need to use both AMSend and Receive interfaces. When I want
> to send a message I simply call the AMsend.send command and when the
> sendDone event is signaled I check whether the message was sent correctly or
> not and do some other things that are required for the application. When I
> want to read a received message shouldn't I respectively use something such
> as a Receive.receive command? I looked at tos/interfaces/Receive.nc, but I
> didn't find such a command. I guess this is logical since the application
> does not decide whether and when a node will receive a message or not. But I
> really don't understand how I will use the Receive.receive event without
> having called a Receive command before.
> Can someone give an example?
> Thanks in advance,
> Georgia.
>
> ___
> Tinyos-help mailing list
> Tinyos-help@millennium.berkeley.edu
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Simulating mviz app on TOSSIM without any actual hardware

2011-06-25 Thread vinod kumar
-- Forwarded message --
From: vinod kumar 
Date: Fri, Jun 24, 2011 at 8:29 PM
Subject: mviz(Indian Institute of Technology))
To: Prathyusha Aala 





Sir,
I am trying to run mviz app over TOSSIM without actual hardware
connected. But I facing some problem. I think I am missing something to
activate the simulator TOSSIM.
When I type:
tos-mviz -comm serial@COM1:iris MVizMsg

*




[misc]$ tos-mviz -comm serial@COM1:iris MVizMsg
> /opt/tinyos-2.x/support/sdk/java/tinyos.jar:.:/opt/tinyos-2.x/apps/
> MViz:
> Making MVizMsg
> Loading link
> Loading etx
> Loading reading
> Loading count
> Loading origin
> Loading interval
> Loading version
 



> ./mote.gif 
> 
**serial@com1 
:57600
died - exciting*

* java.io.IO Exception :Could not open com1: TOSComm JNI library
runtime** error: Error 2*

*The system cannot find the file specified in NativeSerialPort.CreateFile*

*  For running the same over the real iris motes(not
simulators), first the app has to be installed in all the motes using
make mica2 install.4 mib510,dev/ttyS0. But in case of TOSSIM
simulators I am not sure what to do. I guess there is some error over
here. Please help me out.*

*Thanks,*

*Vinodh.*
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Simulation of mviz app on TOSSIM without any actual hardware

2011-06-25 Thread vinod kumar
Sir,
I am trying to run mviz app over TOSSIM without actual hardware
connected. But I facing some problem. I think I am missing something to
activate the simulator TOSSIM.
When I type:
tos-mviz -comm serial@COM1:iris MVizMsg

*





[misc]$ tos-mviz -comm serial@COM1:iris MVizMsg
> /opt/tinyos-2.x/support/sdk/java/tinyos.jar:.:/opt/tinyos-2.x/apps/
> MViz:
> Making MVizMsg
> Loading link
> Loading etx
> Loading reading
> Loading count
> Loading origin
> Loading interval
> Loading version
 




> ./mote.gif 
> 
**serial@com1 
:57600
died - exciting*

* java.io.IO Exception :Could not open com1: TOSComm JNI library
runtime** error: Error 2*

*The system cannot find the file specified in NativeSerialPort.CreateFile*

*  For running the same over the real iris motes(not
simulators), first the app has to be installed in all the motes using
make mica2 install.4 mib510,dev/ttyS0. But in case of TOSSIM
simulators I am not sure what to do. I guess there is some error over
here. Please help me out.*

*Thanks,*

*Vinodh.*
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Simulation on TOSSIM without any motes connected

2011-06-25 Thread navya kumari
Sir,
I am trying to run mviz app over TOSSIM without actual hardware
connected. But I facing some problem. I think I am missing something to
activate the simulator TOSSIM.
When I type:
tos-mviz -comm serial@COM1:iris MVizMsg

*





[misc]$ tos-mviz -comm serial@COM1:iris MVizMsg
> /opt/tinyos-2.x/support/sdk/java/tinyos.jar:.:/opt/tinyos-2.x/apps/
> MViz:
> Making MVizMsg
> Loading link
> Loading etx
> Loading reading
> Loading count
> Loading origin
> Loading interval
> Loading version
 




> ./mote.gif 
> 
**serial@com1 
:57600
died - exciting*

* java.io.IO Exception :Could not open com1: TOSComm JNI library
runtime** error: Error 2*

*The system cannot find the file specified in NativeSerialPort.CreateFile*

*  For running the same over the real iris motes(not
simulators), first the app has to be installed in all the motes using
make mica2 install.4 mib510,dev/ttyS0. But in case of TOSSIM
simulators I am not sure what to do. I guess there is some error over
here. Please help me out.*

*Thanks,*

*Vinodh.*
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] TOSSIM simulation for the RSS broadcast and motes connectivity without hardware

2011-06-25 Thread naveen kumar
Sir,
I am trying to run mviz app over TOSSIM without actual hardware
connected. But I facing some problem. I think I am missing something to
activate the simulator TOSSIM.
When I type:
tos-mviz -comm serial@COM1:iris MVizMsg

*





[misc]$ tos-mviz -comm serial@COM1:iris MVizMsg
> /opt/tinyos-2.x/support/sdk/java/tinyos.jar:.:/opt/tinyos-2.x/apps/
> MViz:
> Making MVizMsg
> Loading link
> Loading etx
> Loading reading
> Loading count
> Loading origin
> Loading interval
> Loading version
 




> ./mote.gif 
> 
**serial@com1 
:57600
died - exciting*

* java.io.IO Exception :Could not open com1: TOSComm JNI library
runtime** error: Error 2*

*The system cannot find the file specified in NativeSerialPort.CreateFile*

*  For running the same over the real iris motes(not
simulators), first the app has to be installed in all the motes using
make mica2 install.4 mib510,dev/ttyS0. But in case of TOSSIM
simulators I am not sure what to do. I guess there is some error over
here. Please help me out.*

*Thanks,*

*Vinodh.*
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Any update for Surge application given for tinyos-1.x

2011-06-25 Thread vinod kumar
I am student doing *my* project on Ad hoc Sensor networks.
I am trying to run some sample examples to check multi hop routing in
Tossim.I tried to compile the *Surge* application given in *tinyos*-1.*x*
version and ended up with error in make command.It says "No rule to
target 'micaz'. Stop " Presently i am using *tinyos*-*2*.*x* version. *My*
question is do i have to change anything in *tinyos*-*2*.*x* or the
compilation is same for both the versions. I wanted to know whether
the codes present in *tinyos*-1.*x* can be executed successfully in
*tinyos*-*2*.*x* ?
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Simulating TOSSIM by making test.py file inside app directory

2011-06-25 Thread vinod kumar
Hello!
I wanted to simulate TOSSIM for mviz app. I made test.py with the following
code and placed it in mviz. Compiled it and ran it after compiling mviz app
using "make iris sim".
-
test.py
-
#! /usr/bin/python
from TOSSIM import *
t = Tossim([])
m=t.getNode(0);
m.bootAtTime(1024);
m=t.getNode(1);
m.bootAtTime(1024);
m=t.getNode(2);
m.bootAtTime(1024);
import sys
t.addChannel("Boot",sys.stdout);
t.addChannel("BlinkC",sys.stdout);
for i in range (0,100):
 t.runNextEvent()

Now,
I typed "tos-mviz -comm tossim-serial MVizMsg",
as a result mviz window opened but no details about RSS broadcast or the
mote diagrams on the empty space to the right are present.
  please guide me what I am missing.
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Surge and mviz applications simulations

2011-06-25 Thread navya kumari
To compile and run Surge application in tinyos-1.x , these are commands:
In TOSSIM
1. export MOTECOM=tossim-serial
2. bulid/pc/main.exe 
3. java SurgeListen
To test it over hardware:
 On serial port 1
1. export MOTECOM=serial@COM1:mica2
2. MIB510=/dev/COM1 make mica2 install
3. java SurgeListen
-
I am working on tinyos-2.x and have chosen mviz app for my experimentation.
To test it over hardware the commands are:
make mica2 install.4 mib510,/dev/ttyS0
tos-mviz -comm serial@COM1:iris MVizMsg
-
*Please suggest me what how to proceed for testing it over TOSSIM*
*Thanks,*
*Navya Kumari*
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help