汪亮 | 14 Mar 05:27 2013

Telosb Simulation

Hi,

Does anybody here know whether there is a simulator for telosb nodes? I found that Urs has implemented a telosb patch for Avrora but it seems the patch is never released. I need to accurately simulate the node executing the program and get the CPU cycles, communication, energy usage... Any advise? Thanks a lot!

Regards,

Liang


<div><div dir="ltr">Hi,<div><br></div>
<div>Does anybody here know whether there is a simulator for telosb nodes? I found that Urs has implemented a telosb patch for Avrora but it seems the patch is never released. I need to accurately simulate the node executing the program and get the CPU cycles, communication, energy usage... Any advise? Thanks a lot!</div>
<div><br></div>
<div>Regards,</div>
<div><br></div>
<div>Liang</div>
<div><br></div>
<div><br></div> 		 	   		  </div></div>
tiposchi@tiscali.it | 13 Mar 18:09 2013
Picon

Signal not connected error

Hello,

I am trying to obtain something similar to how the timers are 
implemented, a number of generic modules and a central module that can 
communicate with them with commands/events.

My central module should 
be a generic module with a parameter, always instantiated using 
uniqueCount, so that only one instance is actually created.
This module 
should provide a parametrized interface to wire the many generic 
modules to it.

My problem is that with my wiring, I can seem to call 
commands, but when I try to signal events, the compiler claims that the 
event is not connected (but with the same wiring calling the command 
works).

I did a minimal application as a proof of concept, so I have 
an interface that defines one command and one signal:

interface 
TestInterface {
    command uint8_t call_test(uint8_t p);
    event 
uint8_t event_test(uint8_t p);
}

Then i have one module that uses the 
interface, which is meant to be instantiated many times:
generic module 
UserC() {
    uses interface TestInterface;
    uses interface Boot;

    uses interface Leds;
}

implementation {
    uint8_t last;

    
event uint8_t TestInterface.event_test(uint8_t p) {
        last = p;

        return 0;
    }

    event void Boot.booted() {
        uint8_t 
r = call TestInterface.call_test(0);
        if (r == last) {

            call Leds.set(0);
        }
    }               
}

And the 
central module, provides the interface
generic module ProviderC(uint8_t 
max) {
    provides interface TestInterface as TestInterface[uint8_t 
num];
    uses interface Leds;
}

implementation {
    command uint8_t 
TestInterface.call_test[uint8_t num](uint8_t p) {
        static 
uint8_t l = 0;
        call Leds.set(l++);
        signal TestInterface.
event_test[num](l);
        return l;
    }
}

In the end I have some 
wiring to make it stick together

configuration TestAppC {}

implementation {
    components LedsC;
    components MainC;

    
components new UserC() as U0;
    components new UserC() as U1;

    
components new ProviderC(0) as P0;

    P0.Leds -> LedsC;
    P0.
TestInterface[0] <- U0.TestInterface;
    P0.TestInterface[1] <- U1.
TestInterface;

    U0.Boot -> MainC;
    U0.Leds -> LedsC;

    U1.Boot -> MainC;
    U1.Leds -> LedsC;
}

Could someone tell me 
what is wrong with my code?
Thanks

Invita i tuoi amici e Tiscali ti premia! Il consiglio di un amico vale più di uno spot in TV. Per ogni nuovo
abbonato 30 € di premio per te e per lui! Un amico al mese e parli e navighi sempre gratis: http://freelosophy.tiscali.it/

_______________________________________________
Tinyos-help mailing list
Tinyos-help <at> millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
wasif masood | 13 Mar 17:22 2013
Picon

Clock skew detected, your build may be incomeplete


Hi all,

While compiling on Z1, I am getting this warning:

"Clock skew detected, your build may be incomeplete"

and I guess, may be as a result of that, sometime the code I program on z1 does not work without resetting it countless time.

Any suggestions?

BR,
Wasif Masood
<div><div dir="ltr">
<div><br></div>
<div>Hi all,</div>
<div><br></div>
<div>While compiling on Z1, I am getting this warning:</div>
<div><br></div>
<div>"Clock skew detected, your build may be incomeplete"</div>
<div><br></div>

<div>and I guess, may be as a result of that, sometime the code I program on z1 does not work without resetting it countless time.</div>
<div><br></div>Any suggestions?<br clear="all"><div><br></div>BR,<br>Wasif Masood<br>
</div></div>
kh sabrine | 13 Mar 16:13 2013
Picon

Telosb and GPS

Hi,

In order to localize my node i will use a GPS,but in telosb i can't do this.Pleaze,how can a make an ordinary node(telosb mote) to become a beacon node without using GPS?? Thanks in advance!!!
<div><div dir="ltr">Hi,<div><br></div>
<div>In order to localize my node i will use a GPS,but in telosb i can't do this.Pleaze,how can a make an ordinary node(telosb mote) to become a&nbsp;beacon node without using GPS??
Thanks in advance!!! </div>
</div></div>
swaroop jois | 13 Mar 13:43 2013
Picon

message

<div><div><div>
<span class="tab"><span>&nbsp;&nbsp;&nbsp; </span></span><br><a href="http://www.nedaptrail.com/nvdvdytj/dli/qjyqsnxurd=puvxlpgkabviwdf">http://www.nedaptrail.com/nvdvdytj/dli/qjyqsnxurd=puvxlpgkabviwdf</a>
</div></div></div>
Muhammad Tayyeb | 13 Mar 10:05 2013
Picon

WSN Testbed Facility

Hello,
 
I am interested in a web based WSN testbed like motelab, NetEye etc. The motelab webiste is not reachable and I registered for another one but didnt get any response afterwards. Please share which one have you used and which one is currently available and recommended to use. I want to experiment with WSN reprogramming using Telosb motes.
 
Thank you.

--

----------------------------------

Regards,

Muhammad Tayyeb

MS CSE 3 - NUST SEECS

10mscsemtayyeb <at> seecs.edu.pk

 
<div>
<div>Hello,</div>
<div>&nbsp;</div>
<div>I am interested in a web based WSN testbed like motelab, NetEye etc. The motelab webiste is not reachable and I registered for another one but didnt get any response afterwards. Please share which one have you used and which one is currently available and recommended to use. I want to experiment with WSN reprogramming using Telosb motes.</div>
<div>&nbsp;</div>
<div>Thank you.<br clear="all"><br>-- <br>
</div>
<div>
<p><span>----------------------------------</span></p>
<p><span>Regards,</span></p>
<p><span>Muhammad Tayyeb</span></p>
<p><span>MS CSE 3 - NUST SEECS</span></p>
<p><span><a href="mailto:10mscsemtayyeb <at> seecs.edu.pk" target="_blank">10mscsemtayyeb <at> seecs.edu.pk</a></span><br></p>
</div>
<div>&nbsp;</div>
</div>
kh sabrine | 12 Mar 18:12 2013
Picon

Telosb and weather sensor

Hello,

I ask if someone use Telosb in the application" weather station "?
So which Wind sensor you used??


Thanks in advance!!

Sabrine
<div><div dir="ltr">Hello,<div><br></div>
<div>I ask if someone use Telosb in the application" weather station "?</div>
<div>So which Wind sensor you used??</div>
<div><br></div>
<div><br></div>
<div>
Thanks in advance!!</div>
<div><br></div>
<div>Sabrine</div>
</div></div>
mjmohiuddin | 12 Mar 16:13 2013
Picon

make micaz sim problem

i have phython 2.7.2+ version

but when i do

make micaz sim on Blink application

iam getting error

mkdir -p simbuild/micaz
  placing object files in simbuild/micaz
  writing XML schema to app.xml
  compiling BlinkAppC to object file sim.o
ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=1000 -fnesc-simulate
-fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=gcc -Wall -Wshadow
-Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb
-DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
-DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"jumbo\"
-DIDENT_HOSTNAME=\"Jamal\" -DIDENT_USERHASH=0x8f700b47L
-DIDENT_TIMESTAMP=0x513fee28L -DIDENT_UIDHASH=0x3468b940L
-Wno-nesc-data-race BlinkAppC.nc   -fnesc-dump=components
-fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
-fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
/opt/tinyos-main/tos/lib/tossim/sim_noise.c: In function
‘sim_noise_gen’:
/opt/tinyos-main/tos/lib/tossim/sim_noise.c:291:7: warning: variable
‘noiseIndex’ set but not used [-Wunused-but-set-variable]
  compiling Python support and C libraries into pytossim.o, tossim.o, and
c-support.o
g++ -c  -shared -fPIC -o simbuild/micaz/pytossim.o -g -O0
-DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"jumbo\"
-DIDENT_HOSTNAME=\"Jamal\" -DIDENT_USERHASH=0x8f700b47L
-DIDENT_TIMESTAMP=0x513fee28L -DIDENT_UIDHASH=0x3468b940L
/opt/tinyos-main/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.7
-I/opt/tinyos-main/tos/lib/tossim -DHAVE_CONFIG_H 
/opt/tinyos-main/tos/lib/tossim/tossim_wrap.cxx:139:20: fatal error:
Python.h: No such file or directory
compilation terminated.
make: *** [sim-exe] Error 1

please provide me solution....

-------------------------------------------------------------------------------------------------------------------------------

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
-------------------------------------------------------------------------------------------------------------------------------

i have phython 2.7.2+ version

but when i do

make micaz sim on Blink application

iam getting error

mkdir -p simbuild/micaz
  placing object files in simbuild/micaz
  writing XML schema to app.xml
  compiling BlinkAppC to object file sim.o
ncc -c -shared -fPIC -o simbuild/micaz/sim.o -g -O0 -tossim
-fnesc-nido-tosnodes=1000 -fnesc-simulate
-fnesc-nido-motenumber=sim_node\(\) -fnesc-gcc=gcc -Wall -Wshadow
-Wnesc-all -target=micaz -fnesc-cfile=simbuild/micaz/app.c -board=micasb
-DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=100000
-DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"jumbo\"
-DIDENT_HOSTNAME=\"Jamal\" -DIDENT_USERHASH=0x8f700b47L
-DIDENT_TIMESTAMP=0x513fee28L -DIDENT_UIDHASH=0x3468b940L
-Wno-nesc-data-race BlinkAppC.nc   -fnesc-dump=components
-fnesc-dump=variables -fnesc-dump=constants -fnesc-dump=typedefs
-fnesc-dump=interfacedefs -fnesc-dump=tags -fnesc-dumpfile=app.xml
/opt/tinyos-main/tos/lib/tossim/sim_noise.c: In function
‘sim_noise_gen’:
/opt/tinyos-main/tos/lib/tossim/sim_noise.c:291:7: warning: variable
‘noiseIndex’ set but not used [-Wunused-but-set-variable]
  compiling Python support and C libraries into pytossim.o, tossim.o, and
c-support.o
g++ -c  -shared -fPIC -o simbuild/micaz/pytossim.o -g -O0
-DIDENT_APPNAME=\"BlinkAppC\" -DIDENT_USERNAME=\"jumbo\"
-DIDENT_HOSTNAME=\"Jamal\" -DIDENT_USERHASH=0x8f700b47L
-DIDENT_TIMESTAMP=0x513fee28L -DIDENT_UIDHASH=0x3468b940L
/opt/tinyos-main/tos/lib/tossim/tossim_wrap.cxx -I/usr/include/python2.7
-I/opt/tinyos-main/tos/lib/tossim -DHAVE_CONFIG_H 
/opt/tinyos-main/tos/lib/tossim/tossim_wrap.cxx:139:20: fatal error:
Python.h: No such file or directory
compilation terminated.
make: *** [sim-exe] Error 1

please provide me solution....

-------------------------------------------------------------------------------------------------------------------------------

This e-mail is for the sole use of the intended recipient(s) and may
contain confidential and privileged information. If you are not the
intended recipient, please contact the sender by reply e-mail and destroy
all copies and the original message. Any unauthorized review, use,
disclosure, dissemination, forwarding, printing or copying of this email
is strictly prohibited and appropriate legal action will be taken.
-------------------------------------------------------------------------------------------------------------------------------

Alpha Gama | 12 Mar 11:41 2013
Picon

help JTossim

Hi all,
please can you help me in using JTossim. It works fine exept it don't display the tree built by the protocol, it displays only the topology.
can anyone help me pleaase 
I will be grateful 
thank you in advance
<div><div><div>
<span>Hi all,</span><br><span>please can you help me in using JTossim. It works fine exept it don't display the tree built by the protocol, it displays only the topology.</span><br><span>can anyone help me pleaase&nbsp;</span><br><span>I will be grateful&nbsp;</span><br><span>thank you in advance</span>
</div></div></div>
David Rodenas | 12 Mar 11:21 2013

Including QueueC and PoolC components

Hi all

Maybe my following question either is a bit tricky or has no solution. Suppose the following multi-hop scenario where we have an end-device (no routing capabilities, it only transmits data to a unique destination), one or several routing devices (their aim is to forward the data transmitted by the end-device to one or several destinations), and one destination (sink):

End-Device --> Routing Device 1 --> ... --> Routing Device n --> Destination

I am implementing some libraries which ought to be the same regardless of the type of device, namely end-device, routing device and/or destination. As I briefly pointed out, the end-device has no routing capabilities, which implies that its routing table only constains the node it used for joining the network -parent node- and, additionally, it should not implement any message queue to store data. On the contrary, this same features do have to be implemented by the intermediate devices (routing ones), that is, routing tables of higher size for storing more neighboring devices, and message_t queues. 

I've "solved" the former using dynamic memory (I know this is supposed to not be used, by I've tried to control the usage of memory). However, the issue comes with the latter requirement of implementing the message_t queues. This is explained below.

In my library, I employ a unique configuration file (I'll refer it hereafter as main_conf.nc ) that wires everything and it is the same for end-devices and routing-devices. It is worthy to remark that the final application running on each device has a different configuration file that wires to this library. Thus, in this file main_conf.nc, the QueueC and PoolC components ought to be included. A priori, it should be done as follows: 

In some .h file:

#define RX_QUEUE_SIZE 12

or

enum{
  RX_QUEUE_SIZE = 12
};

and in the confuguration file:

implements{
...
components new QueueC(message_t*, RX_QUEUE_SIZE),
                            new PoolC(message_t, RX_QUEUE_SIZE);
...
}

The easy way would be to change the RX_QUEUE_SIZE value to 1 (or eliminate the QueueC and PoolC components of the code) every time I compile the code for an end-device, being this slow and/or inefficient. So, is it possible to do this in any way? Had both components been defined in the configuration file without indicating the size of the queue, I may use again dynamic memory. But in this case...

I hope all written above were easily understood!

Regards, 

David



<div><div dir="ltr">Hi all<div><br></div>
<div>Maybe my following question either is a bit tricky or has no solution. Suppose the following multi-hop scenario where we have an end-device (no routing capabilities, it only transmits data to a unique destination), one or several routing devices (their aim is to forward the data transmitted by the end-device to one or several destinations), and one destination (sink):</div>
<div><br></div>
<div>End-Device --&gt; Routing Device 1 --&gt; ... --&gt; Routing Device n --&gt; Destination</div>
<div><br></div>
<div>I am implementing some libraries which ought to be the same regardless of the type of device, namely end-device, routing device and/or destination. As I briefly pointed out, the end-device has no routing capabilities, which implies that its routing table only constains the node it used for joining the network -parent node- and, additionally, it should not implement any message queue to store data. On the contrary, this same features do have to be implemented by the intermediate devices (routing ones), that is, routing tables of higher size for storing more neighboring devices, and message_t queues.&nbsp;</div>
<div><br></div>
<div>I've "solved" the former using dynamic memory (I know this is supposed to not be used, by I've tried to control the usage of memory). However, the issue comes with the latter requirement of implementing the message_t queues. This is explained below.</div>
<div><br></div>
<div>In my library, I employ a unique configuration file (I'll refer it hereafter as main_conf.nc ) that wires everything and it is the same for end-devices and routing-devices. It is worthy to remark that the final application running on each device has a different configuration file that wires to this library. Thus, in this&nbsp;<span>file main_conf.nc, the&nbsp;QueueC and PoolC components ought to be included. A priori, it should be done as follows:&nbsp;</span>
</div>
<div><br></div>
<div>In some .h file:</div>
<div><br></div>
<div>#define&nbsp;<span>RX_QUEUE_SIZE 12</span>
</div>
<div><span><br></span></div>
<div><span>or</span></div>
<div><span><br></span></div>
<div><span>enum{</span></div>
<div>
<span>&nbsp;&nbsp;</span><span>RX_QUEUE_SIZE = 12</span>
</div>
<div>
<span>}</span><span>;</span>
</div>
<div><span><br></span></div>
<div><span>and in the confuguration file:</span></div>
<div><span><br></span></div>
<div><span>implements{</span></div>
<div><span>...</span></div>
<div>
<div>components new QueueC(message_t*, RX_QUEUE_SIZE),</div>
<div><span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; new PoolC(message_t, RX_QUEUE_SIZE);</span></div>
</div>
<div><span>...</span></div>
<div><span>}</span></div>
<div><span><br></span></div>
<div>
<span>The easy way would be to change the&nbsp;</span><span>RX_QUEUE_SIZE value to 1 (or eliminate the QueueC and PoolC components of the code) every time I compile the code for an end-device, being this slow and/or inefficient.&nbsp;</span>So, is it possible to do this in any way? Had both components been defined in the configuration file without indicating the size of the queue, I may use again dynamic memory. But in this case...</div>
<div><br></div>
<div>I hope all written above were easily understood!</div>
<div><br></div>
<div>Regards,&nbsp;</div>
<div><br></div>
<div>David</div>
<div><br></div>
<div><br></div>
<div><span><br></span></div> 		 	   		  </div></div>
Antonio | 11 Mar 09:57 2013
Picon

TelosB and Zigbee network

Hi to all, i have this question, i have a Waspmote,( product link http://www.libelium.com/products/meshlium/wsn/ )
, it's work whit ZigBee protocol, now i have the Telosb but the Waspmote don't see this telosB,
my question is:
can i use Waspmote for see the telosB sensor?


best regads
Antonio
 
 

<div><div>Hi to all, i have this question, i have a Waspmote,( product link http://www.libelium.com/products/meshlium/wsn/ )<br>, it's work whit ZigBee protocol, now i have the Telosb but the Waspmote don't see this telosB, <br>my question is:<br>can i use Waspmote for see the telosB sensor? <br><br><br>best regads<br>Antonio<br>&nbsp;<br>&nbsp; <br><div><br></div>
</div></div>

Gmane