[Tinyos-help] Porting code from tinyos 1.x to tinyos 2.x

2008-07-21 Thread Pratibha S
Hi all,

I want to upgrade a code written in tinyos 1.x to 2.x. I would like to know
what are the changes made in the following"
1. RadioCRCPacket
2. TOS_UART_ADDR (I know it is no more in the AM file. The help says to use
SerialAMSenderC component to send to a serial port. But I want the address
value for a operation like port_address!=TOS_UART_ADDR )

pl let me know if you need further info.

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

Re: [Tinyos-help] Porting code from tinyos 1.x to tinyos 2.x

2008-07-22 Thread Pratibha S
 Thanks a lot. That helps.

Are familiar with the struct Tos_Msg in tinyos 1.x?
I learnt that Tinyos 2.x doesnt has replaced tos_msg with message_t and
prevented direct access of certain member functions.
For certain variables like tos_msg->group, tos_msg->type, it provides
functions like AMPacket.group(tos_msg) and AMPacket.type(tos_msg). It doesnt
provide interface functions for all.

1. Do you know how to retrieve the equivalent of tos_msg->crc? I know the
equivalent is stored in cc2420_metadata_t->crc for micaz
(message_t->message_metadata_t->cc2420_metadata_t->crc). But I dont know how
to retrieve it in my code which has only message_t defined?
2. What does tos_msg->addr represents? the source/destination address?

Thank you,
Psundar

  On Mon, Jul 21, 2008 at 8:01 PM, Federico Porceddu <
[EMAIL PROTECTED]> wrote:

> >Hi all,
> >
> >
> >I want to upgrade a code written in tinyos 1.x to 2.x. I would like to know
> >what are the changes made in the following"
> >1. RadioCRCPacket
>
> >2. TOS_UART_ADDR (I know it is no more in the AM file. The help says to use
>
> >SerialAMSenderC component to send to a serial port. But I want the address
> >value for a operation like port_address!=TOS_UART_ADDR )
>
> I don't know about RadioCRCPacket but about uart address in T2 you can use 
> TOS_SERIAL_ACTIVE_MESSAGE_ID
>
>
> and about it you can read 
> http://www.tinyos.net/tinyos-2.x/doc/html/tep113.html
>
> >pl let me know if you need further info.
>
> >Thanks a lot,
>
> >Psundar
>
> --
> ~
> Federico Porceddu
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Porting code from tinyos 1.x to 2.x

2008-07-23 Thread Pratibha S
 Hi All,

Im trying to port a code from tinyos 1.x to tinyos 2.x. Can anyone help me
with the following questions?

1. Whats the equivalent of *BareSendMsg*, *RadioCRCPacket* in tinyos 2?
2. *Random.init()*, *Leds.init()* and *Timer.StdControl()* is not there in
tinyos 2. How to port those functions from 1?
3. How to get *Tos_Msg tos_msg->ack/crc/length* in tinyos 2? The equivalent
to Tos_Msg is message_t and they stopped allowing direct access to some of
the member functions in Tos_Msg. In tinyos 2.x, they have moved those
variables into a more platform specific structures. you have to navigate
like ("message.h")*message_t->*("platform_message.h")*message_metadata_t->*
("cc2420.h"/"cc1000.h"/..)*cc2420/cc1000/..->ack*. But I dont know how to
import it. when i do the folowing,
(make micaz sim)
*message_t * tos_msg;*
*message_metadata_t *msg_meta = tos_msg->metadata;*
*cc2420_metadata_t *cc2420_meta = msg_meta->cc2420;*

It gives error saying that cc2420 is not a member of the union.
For certain members like tos_msg->type/group, it provides a interface
AMPacket to access them by commands like AMPacket.group(message_t *) etc.
But when I do the following it gives error saying that comand has to be
called with 'call'

type=AMPacket.type(tos_msg) or if(AMPacket.group(tos_msg)==TOS_GROUP)

Awaiting your earliest reply.

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

Re: [Tinyos-help] Porting code from tinyos 1.x to 2.x

2008-08-04 Thread Pratibha S
Thanks Philip. I did check on that and corrected some of them already.
I found this to be useful too:
http://enl.usc.edu/~jpaek/porting_tinyos_1_to_2.html

Other than those, I figured out ActiveMessageC is the equivalent of
RadioCRCPacket and we have to use interfaces like Packet,
PacketAcknowledgements too to retrieve some members of message_t.

BUT, I havent figured out how to access CRC of the message. If anyone knows,
pl reply.

Thanks,
Pratibha

On Tue, Aug 5, 2008 at 12:09 AM, Philip Levis <[EMAIL PROTECTED]> wrote:

>
> On Jul 23, 2008, at 9:13 PM, Pratibha S wrote:
>
> Hi All,
>>
>> Im trying to port a code from tinyos 1.x to tinyos 2.x. Can anyone help me
>> with the following questions?
>>
>> 1. Whats the equivalent of BareSendMsg, RadioCRCPacket in tinyos 2?
>> 2. Random.init(), Leds.init() and Timer.StdControl() is not there in
>> tinyos 2. How to port those functions from 1?
>> 3. How to get Tos_Msg tos_msg->ack/crc/length in tinyos 2? The equivalent
>> to Tos_Msg is message_t and they stopped allowing direct access to some of
>> the member functions in Tos_Msg. In tinyos 2.x, they have moved those
>> variables into a more platform specific structures. you have to navigate
>> like
>> ("message.h")message_t->("platform_message.h")message_metadata_t->("cc2420.h"/"cc1000.h"/..)cc2420/cc1000/..->ack.
>> But I dont know how to import it. when i do the folowing,
>> (make micaz sim)
>> message_t * tos_msg;
>> message_metadata_t *msg_meta = tos_msg->metadata;
>> cc2420_metadata_t *cc2420_meta = msg_meta->cc2420;
>>
>> It gives error saying that cc2420 is not a member of the union.
>> For certain members like tos_msg->type/group, it provides a interface
>> AMPacket to access them by commands like AMPacket.group(message_t *) etc.
>> But when I do the following it gives error saying that comand has to be
>> called with 'call'
>>
>> type=AMPacket.type(tos_msg) or if(AMPacket.group(tos_msg)==TOS_GROUP)
>>
>>
> Tahir Azim wrote a document on porting 1.x code to 2.x, based on his
> experiences porting Beacon Vector Routing (BVR). It's in
> doc/html/porting.html.
>
> Phil
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] cldp-gfr in tinyos 2.x

2008-08-06 Thread Pratibha S
Hi,

Has anyone worked on cldp code in tinyos 2.x?

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

[Tinyos-help] Neighbours get deleted in cldp

2008-08-12 Thread Pratibha S
Hi,

Im running cldp_gfr code. Im using a 8-node mesh topology(all nodes are
connected to all). When I run the code, even though the neighbours are
getting allocated correctly, they all are getting deleted in the middle. So,
when I send a packet from any node, they are getting dropped. Can anyone
tell me the possible cause? . (I know its more of cldp-oriented question
rather than tinyos. If anyone point to a relevant forum will also be
helpful)

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

[Tinyos-help] [Tossim] Duplicate messages

2008-08-27 Thread Pratibha S
Hi,

I use a 200 node topology(topology is connected with zero link loss rates)
on Tossim. I want to calculate the quality of the network in terms of path
stretch and success rate. For that each node will send messages to all other
nodes periodically for one cycle. I capture the sent and received packet
details onto a file. So, I send 39,800 messages totally.

I find that the packet loss in between the nodes are high (approx. 50%) even
though the link loss rates are zero. Does this mean that, tossim simulates
packet loss due to collisions and interference? Even if it does, would the
loss rate be this high?
I see a a lot of duplicate receive messages though the sends are unique. Can
anyone tell me why?

*Sent messages
1.Message_Type 2.Source_Node 3.Destination_Node 4.Data

SEND [35] [150] (186,60)
SEND [35] [66] (102,953)
SEND [35] [181] (17,114)
SEND [35] [185] (21,766)
SEND [35] [33] (69,253)
SEND [35] [152] (188,310)
SEND [35] [29] (65,685)
SEND [35] [56] (92,940)
SEND [35] [96] (132,31)
SEND [35] [151] (187,1070)
SEND [35] [90] (126,961)
SEND [35] [133] (169,224)
SEND [35] [70] (106,9)
SEND [35] [72] (108,656)
SEND [35] [168] (4,666)
SEND [35] [54] (90,296)
SEND [35] [154] (190,588)
SEND [35] [97] (133,1227)
SEND [35] [157] (193,892)
SEND [35] [41] (77,243)
..
*
*Receive messages*
*1.Message_Type 2.Source_Node 3.Data 4.hop_count*
.
*RECEIVE 123 (1201,126)  86
RECEIVE 123 (1201,126)  86
RECEIVE 35 (993,216)  108
RECEIVE 93 (1278,50)  88
RECEIVE 93 (1278,50)  88
RECEIVE 35 (993,216)  108
RECEIVE 93 (1278,50)  88
RECEIVE 35 (993,216)  108
RECEIVE 35 (993,216)  108
RECEIVE 35 (993,216)  108
RECEIVE 74 (889,128)  106
RECEIVE 35 (993,216)  108
RECEIVE 74 (889,128)  106
RECEIVE 74 (889,128)  106
RECEIVE 35 (993,216)  108
RECEIVE 74 (889,128)  106
RECEIVE 74 (889,128)  106
RECEIVE 35 (993,216)  108
RECEIVE 35 (993,216)  108
RECEIVE 74 (889,128)  106
RECEIVE 35 (993,216)  108
RECEIVE 74 (889,128)  106
RECEIVE 20 (76,647)  31
RECEIVE 74 (889,128)  106
.
(150+ messages)
RECEIVE 10 (1204,950)  103
RECEIVE 10 (1204,950)  103
RECEIVE 35 (993,216)  112
.

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

Re: [Tinyos-help] [Tossim] Duplicate messages

2008-08-28 Thread Pratibha S
Correction: In the receive message, it is not "Source Node" but Destination
Node.

On Thu, Aug 28, 2008 at 1:08 PM, Pratibha S <[EMAIL PROTECTED]> wrote:

> Hi,
>
> I use a 200 node topology(topology is connected with zero link loss rates)
> on Tossim. I want to calculate the quality of the network in terms of path
> stretch and success rate. For that each node will send messages to all other
> nodes periodically for one cycle. I capture the sent and received packet
> details onto a file. So, I send 39,800 messages totally.
>
> I find that the packet loss in between the nodes are high (approx. 50%)
> even though the link loss rates are zero. Does this mean that, tossim
> simulates packet loss due to collisions and interference? Even if it does,
> would the loss rate be this high?
> I see a a lot of duplicate receive messages though the sends are unique.
> Can anyone tell me why?
>
> *Sent messages
> 1.Message_Type 2.Source_Node 3.Destination_Node 4.Data
> 
> SEND [35] [150] (186,60)
> SEND [35] [66] (102,953)
> SEND [35] [181] (17,114)
> SEND [35] [185] (21,766)
> SEND [35] [33] (69,253)
> SEND [35] [152] (188,310)
> SEND [35] [29] (65,685)
> SEND [35] [56] (92,940)
> SEND [35] [96] (132,31)
> SEND [35] [151] (187,1070)
> SEND [35] [90] (126,961)
> SEND [35] [133] (169,224)
> SEND [35] [70] (106,9)
> SEND [35] [72] (108,656)
> SEND [35] [168] (4,666)
> SEND [35] [54] (90,296)
> SEND [35] [154] (190,588)
> SEND [35] [97] (133,1227)
> SEND [35] [157] (193,892)
> SEND [35] [41] (77,243)
> ..
> *
> *Receive messages*
> *1.Message_Type 2.Source_Node 3.Data 4.hop_count*
> .
> *RECEIVE 123 (1201,126)  86
> RECEIVE 123 (1201,126)  86
> RECEIVE 35 (993,216)  108
> RECEIVE 93 (1278,50)  88
> RECEIVE 93 (1278,50)  88
> RECEIVE 35 (993,216)  108
> RECEIVE 93 (1278,50)  88
> RECEIVE 35 (993,216)  108
> RECEIVE 35 (993,216)  108
> RECEIVE 35 (993,216)  108
> RECEIVE 74 (889,128)  106
> RECEIVE 35 (993,216)  108
> RECEIVE 74 (889,128)  106
> RECEIVE 74 (889,128)  106
> RECEIVE 35 (993,216)  108
> RECEIVE 74 (889,128)  106
> RECEIVE 74 (889,128)  106
> RECEIVE 35 (993,216)  108
> RECEIVE 35 (993,216)  108
> RECEIVE 74 (889,128)  106
> RECEIVE 35 (993,216)  108
> RECEIVE 74 (889,128)  106
> RECEIVE 20 (76,647)  31
> RECEIVE 74 (889,128)  106
> .
> (150+ messages)
> RECEIVE 10 (1204,950)  103
> RECEIVE 10 (1204,950)  103
> RECEIVE 35 (993,216)  112
> .
>
> *Thanks,
> Pratibha
> *
> *
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] Cannot compile the code in tinyos-2.x

2008-09-04 Thread Pratibha S
Greetings,

I'm a beginner in tinyos.
Im trying to run a code created in the 1.x days onto tinyos-2.x. When I
tried compiling the unmodified code in 2.x, I'm getting the error as "7:
component Main not found" followed by series of errors  attached with this
mail. From the TOSSIM tutorial I learnt that I need python to run the
tossim. So, when I was following the steps as in the tutorial, I couldnt
create a tossim object using "t= Tossim([])" it gave NameError:name Tossim
is not defined.
Can you please tell me what is the actual problem?
Is it purely an upgrade issue? or its two different set of problems?

Awaiting an earlier suitable reply.

Thanks,
Pratibha
mkdir -p build/micaz
  placing object files in build/micaz
  writing XML schema to app.xml
  compiling GPSRSim to object file sim.o
ncc -c -shared -fPIC -o build/micaz/sim.o -g -O0 
-I/opt/tinyos-2.x/tos/platform/pc/packet -tossim -fnesc-nido-tosnodes=1000 
-fnesc-simulate -fnesc-nido-motenumber=sim_node\(\)   -finline-limit=10 
-Wall -Wshadow -Wnesc-all -target=micaz -fnesc-cfile=build/micaz/app.c 
-board=micasb -DTOSH_DATA_LENGTH=100 -DGPSR_PAYLOAD_SIZE=58 
-DGPSR_MAX_NEIGHBORS=40 -DGPSR_BEACON_INTERVAL=5 
-DGPSR_FORWARDER_QUEUE_SIZE=100 -DGPSR_FORWARDER_MEM_SIZE=1 
-DGPSR_ROUTER_QUEUE_SIZE=100 -DGPSR_ROUTER_MEM_SIZE=1 -DLLC_QUEUE_SIZE=100 
-DLLC_MEM_SIZE=1 -DFULL_CLDP -DCLDP_STATISTICS -DGPSR_CLDP_INTERVAL=15 
-DGPSR_SIMULATION -DGPSR_SIM_NODES=200 -DGPSR_TRACE_PATH -DGPSR_SHORT_TRACE 
-DPACKET_SEND_DELAY=50 -I. -I../../tos/interfaces -I../../tos/system 
-I../../tos/lib -I../../tos/types  -DIDENT_PROGRAM_NAME=\"GPSRSim\" 
-DIDENT_USER_ID=\"xubuntos\" -DIDENT_HOSTNAME=\"xubuntos-tinyos\" 
-DIDENT_USER_HASH=0x00f95284L -DIDENT_UNIX_TIME=0x4837b485L 
-DIDENT_UID_HASH=0x1ffd4c7aL -Wno-nesc-data-race GPSRSim.nc   
-fnesc-dump=components -fnesc-dump=variables -fnesc-dump=constants 
-fnesc-dump=typedefs -fnesc-dump=interfacedefs -fnesc-dump=tags 
-fnesc-dumpfile=app.xml
In component `GPSRSim':
GPSRSim.nc:7: component Main not found
In file included from GPSRSimM.nc:7,
 from GPSRSim.nc:7:
In interface `GPSRForwarder':
../../tos/interfaces/GPSRForwarder.nc:31: only commands and events can be 
defined in interfaces
../../tos/interfaces/GPSRForwarder.nc:31: warning: return-type defaults to `int'
../../tos/interfaces/GPSRForwarder.nc:31: syntax error before `init'
../../tos/interfaces/GPSRForwarder.nc:34: only commands and events can be 
defined in interfaces
../../tos/interfaces/GPSRForwarder.nc:34: warning: return-type defaults to `int'
../../tos/interfaces/GPSRForwarder.nc:34: redefinition of `result_t'
../../tos/interfaces/GPSRForwarder.nc:34: syntax error before `send_msg'
../../tos/interfaces/GPSRForwarder.nc:35: only commands and events can be 
defined in interfaces
../../tos/interfaces/GPSRForwarder.nc:35: warning: return-type defaults to `int'
../../tos/interfaces/GPSRForwarder.nc:35: redefinition of `result_t'
../../tos/interfaces/GPSRForwarder.nc:35: syntax error before `send_msg_done'
../../tos/interfaces/GPSRForwarder.nc:41: only commands and events can be 
defined in interfaces
../../tos/interfaces/GPSRForwarder.nc:41: warning: return-type defaults to `int'
../../tos/interfaces/GPSRForwarder.nc:41: redefinition of `result_t'
../../tos/interfaces/GPSRForwarder.nc:41: syntax error before `get_position'
../../tos/interfaces/GPSRForwarder.nc:42: only commands and events can be 
defined in interfaces
../../tos/interfaces/GPSRForwarder.nc:42: warning: return-type defaults to `int'
../../tos/interfaces/GPSRForwarder.nc:42: redefinition of `result_t'
../../tos/interfaces/GPSRForwarder.nc:42: syntax error before `set_position'
In file included from GPSRSim.nc:7:
In component `GPSRSimM':
GPSRSimM.nc:9: too few arguments to interface `PacketTriggerTimer'
In file included from GPSRSim.nc:7:
GPSRSimM.nc:27: syntax error before `StdControl'
GPSRSimM.nc:31: warning: declaration of `unique' shadows global declaration
: warning: location of shadowed declaration
GPSRSimM.nc:31: syntax error before `('
GPSRSimM.nc:31: warning: return-type defaults to `int'
GPSRSimM.nc:31: conflicting types for `sim_log_debug'
/opt/tinyos-2.x/tos/lib/tossim/sim_log.c:238: previous declaration of 
`sim_log_debug'
GPSRSimM.nc:31: warning: type defaults to `int' in declaration of `DBG_USR1'
GPSRSimM.nc:31: syntax error before string constant
GPSRSimM.nc:34: warning: type defaults to `int' in declaration of `dst_node'
GPSRSimM.nc:34: conflicting types for `dst_node'
GPSRSimM.nc:20: previous declaration of `dst_node'
GPSRSimM.nc:34: `TOS_LOCAL_ADDRESS' undeclared here (not in a function)
GPSRSimM.nc:34: warning: data definition has no type or storage class
GPSRSimM.nc:35: warning: type defaults to `int' in declaration of `send_seqno'
GPSRSimM.nc:35: conflicting types for `send_seqno'
GPSRSimM.nc:21: previous declaration of `send_seqno'
GPSRSimM.nc:35: warning: data definition has no type or storage class
GPSRSimM.nc:36: syntax error before `return'
GPSRSimM

[Tinyos-help] upgrading code from tinyos1.x - 2.x

2008-09-04 Thread Pratibha S
Dear Sir,

I want to upgrade an application created on version 1.x to 2.x and Im new to
tinyos. When I tried looking at documentation for the upgrade, it wasnt
comprehensive for me. It talked about few command changes only. I have to
run the code on TOSSIM. Can you please provide me with the correct pointer
on this? It will help me a lot on my current project.

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

Re: [Tinyos-help] Cannot compile the code in tinyos-2.x

2008-09-04 Thread Pratibha S
Thank you. I looked at that link already and it was helpful to some extent.
The problem is now resolved. The nesc code didnt compile properly and so the
tossim object wasnt created in the first place. Thats why the error. Now, it
is running fine.

On Thu, Sep 4, 2008 at 7:02 PM, Sarfraz Nawaz <[EMAIL PROTECTED]> wrote:

> You might find this helpful
>
> http://www.tinyos.net/tinyos-2.x/doc/html/porting.html
>
> On Thu, Jul 10, 2008 at 11:46 PM, Pratibha S <[EMAIL PROTECTED]> wrote:
> > Greetings,
> >
> > I'm a beginner in tinyos.
> > Im trying to run a code created in the 1.x days onto tinyos-2.x. When I
> > tried compiling the unmodified code in 2.x, I'm getting the error as "7:
> > component Main not found" followed by series of errors  attached with
> this
> > mail. From the TOSSIM tutorial I learnt that I need python to run the
> > tossim. So, when I was following the steps as in the tutorial, I couldnt
> > create a tossim object using "t= Tossim([])" it gave NameError:name
> Tossim
> > is not defined.
> > Can you please tell me what is the actual problem?
> > Is it purely an upgrade issue? or its two different set of problems?
> >
> > Awaiting an earlier suitable reply.
> >
> > Thanks,
> > Pratibha
> >
> > ___
> > 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

Re: [Tinyos-help] upgrading code from tinyos1.x - 2.x

2008-09-05 Thread Pratibha S
Hi,

The code has been upgraded. The tinyos 2.x nesc doc and the following links
helped in the upgrade.

http://www.tinyos.net/tinyos-2.x/doc/html/porting.html
http://enl.usc.edu/~jpaek/porting_tinyos_1_to_2.html

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

[Tinyos-help] [TOSSIM] How to set zero percent link loss rate?

2008-09-24 Thread Pratibha S
Hi,

I want to set 0% link loss rate in tossim on tinyos 2.x. If I set the noise
model to free space model with the gain ratio = 0, it will do? If yes, can
anyone tell me how to set the free space model?

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

[Tinyos-help] [TinyOs 2.x] ACK Bug?

2008-12-23 Thread Pratibha S
Hi All,
We are running an algorithm in TOSSIM over 200-nodes and we are experiencing
packet losses due to improper ACKs. i.e. The sender would receive the
packet.wasAcked() signal, but the receiver wouldnt have got the message. Is
this a bug? Any help on this issue would be appreciated.

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

Re: [Tinyos-help] [TinyOs 2.x] ACK Bug?

2009-01-04 Thread Pratibha S
I get it, thanks :)

On Sat, Jan 3, 2009 at 3:31 AM, Philip Levis  wrote:

>
> On Jan 2, 2009, at 11:19 AM, Michael Schippling wrote:
>
> Hmm...interesting. Why would #2 happen? Message overrun?
>>
>
> The current (2.1.0) code flushes only when a node receives a packet whose
> length is longer than the FIFO (128 bytes). Older stacks would flush on
> additional error conditions.
>
>
>>
>> If it was only #1 it would seem that you would have at worst
>> a 1::2^16 chance of a falsely correct CRC and then an even
>> smaller chance of it being the type field that was corrupted.
>>
>
> You'd think so, but... I'm not 100% sure. There could be other things going
> on in the radio stack. *shrug* If I had a free day or two I might try to get
> the bottom of it. But since assuming an L2 ack implies an L3 delivery is a
> bad idea to start with, I made TOSSIM keep this in account.
>
>
>>
>> That said, the chance of missing a valid ACK is much greater
>> than getting a false one.
>>
>
> Yes. False positives are rare, but they happen.
>
> Phil
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] [TOSSIM] simulate node leave

2009-02-14 Thread Pratibha S
hi All,

can anyone tell me how to simulate a node leaving the network after a
specified time in tossim?
There is mote(i).turnOff(), but it doesnt consider time. I want the
counterpart of bootattime(time) function.

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

Re: [Tinyos-help] [TOSSIM] simulate node leave

2009-02-16 Thread Pratibha S
Hi,

Yeah, I did try something like that:
while(time){
if (isOn and time > OffTime * t.ticksPerSecond()):
mote(i).turnOff()
isOn = FALSE
t.runNextEvent()
}

But, it is turning off at the end of the simulation only and not when time >
Offtime.

Regards,
Pratibha

On Sun, Feb 15, 2009 at 9:36 PM, Andrey Gursky wrote:

> Hi Pratibha!
>
>
> Pratibha S wrote:
>
>> hi All,
>>
>> can anyone tell me how to simulate a node leaving the network after a
>> specified time in tossim?
>> There is mote(i).turnOff(), but it doesnt consider time. I want the
>> counterpart of bootattime(time) function.
>>
>
> Consider the basic simulation loop:
>  while(t->time() < 600 * t->ticksPerSecond()) {
>   t->runNextEvent();
>  }
>
> You could put before runNextEvent() something like the following check:
>   if (t->time() == TURN_OFF_TIME) {
>  mote(i).turnOff();
>   }
>
> Would it fit your needs?
>
>
> Best wishes,
> Andrey
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

[Tinyos-help] maximum packet size

2009-02-24 Thread Pratibha S
Hi,
Is there any limit to the packet size inclusive of all the headers and crc?
The CC2420 TEP, says that the max size is 128 bytes according to 802.15.4
spec, but it also says that you can increase the size by changing the
TOSH_DATA_LENGTH with a trade-off of potential interferences. Can I assume
that excepting the consequences, there is no limit on the packet size?

Regards,
Pratibha

On Wed, Feb 25, 2009 at 10:43 AM, <
tinyos-help-requ...@millennium.berkeley.edu> wrote:

> Send Tinyos-help mailing list submissions to
>tinyos-help@millennium.berkeley.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>
> https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
>
> or, via email, send a message with subject or body 'help' to
>tinyos-help-requ...@millennium.berkeley.edu
>
> You can reach the person managing the list at
>tinyos-help-ow...@millennium.berkeley.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Tinyos-help digest..."
>
>
> Today's Topics:
>
>   1. Re: Development Platform Question (w.david...@gmail.com)
>   2. Re: need help with understanding Tinyos (Urs Hunkeler)
>   3. Re: need help with understanding Tinyos (Urs Hunkeler)
>   4. Re: Change packet rate (Poonam Hiwal)
>   5. Re: LogWrite appendDone failure (error_t error=FAIL) (Parkurm)
>   6. Re: 4 bit Link Estimator. (Omprakash Gnawali)
>
>
> --
>
> Message: 1
> Date: Tue, 24 Feb 2009 20:00:28 +
> From: w.david...@gmail.com
> Subject: Re: [Tinyos-help] Development Platform Question
> To: Janos Sallai , David Li
>, tinyos-help@millennium.berkeley.edu
> Message-ID: <0016364c598314bce80463af9...@google.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Thank you all for the responses.
>
> It looks like going for Linux (either virtual or real) is the best option
> for development. Hardware doesn't matter as none of the platform provides
> SDR capability anyway.
>
> Another question about tools/source install for TinyOS 2.1: Is there any
> one stop shop that ALL necessary packages can be downloaded and installed
> at once? Or do I have to go through the 5 or 6 steps to do all these
> manually? From what I have read, the one stop option (Linux Live CD)
> doesn't currently work. So the next option is a two-step approach using
> apt-get. But the "sudo apt-get install tinyos" failed in my case because it
> complained about lots of missing dependencies. So my conclusion is you have
> to do this manually. Did I miss something?
>
> Thanks.
>
> David
>
>
> On Feb 24, 2009 8:30am, Janos Sallai  wrote:
> > > 1. Which software platform is better for development in terms of ease
>
> > > of use? I have seen Windows and Linux. For Linux is it Ubuntu or
>
> > > Fedora?
>
> > I suggest that you use a virtual machine image that runs under VMWare
>
> > Player. Then it does not matter what host operating system you use.
>
> > This is the easiest way to get started with TinyOS.
>
>
>
> > > 2. Which hardware platform is better to use, Mica based or Telos
>
> > > based? Consider the factor that I might have to customize the radio
>
> > > waveform (software defined radio), and other high level power control
>
> > > stuff in the future.
>
> > Both micaz and telos use the CC2420 802.15.4 compliant transceiver
>
> > (DSSS/O-QPSK), so you will not be able to experiment with the
>
> > waveform.
>
>
>
> > Janos
>
> -- next part --
> An HTML attachment was scrubbed...
> URL:
> https://www.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20090224/10eab454/attachment-0001.htm
>
> --
>
> Message: 2
> Date: Tue, 24 Feb 2009 22:06:04 +0100
> From: Urs Hunkeler 
> Subject: Re: [Tinyos-help] need help with understanding Tinyos
> To: mhse...@yahoo.com
> Cc: tinyos-help@millennium.berkeley.edu
> Message-ID: <49a4613c.70...@gmx.ch>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi Mohamed,
>
> TinyOS is an embedded operating system. To save memory space, the
> operating system is not installed as a separate software module, but
> rather the programs that you want to use are compiled into a single
> binary, which then is installed on the motes. In addition, the
> development environment (without which you cannot use TinyOS) provides
> libraries which run on the base station (computer) and facilitate
> communication between the wireless sensor network and applications
> running on the base station.
>
> To summarize:
> - TinyOS is primarily installed on the motes (sensor nodes, such as
> MicaZ or TelosB).
> - TinyOS is not very useful by itself, you need an application to go
> with it (e.g. Deluge).
> - The development environment for TinyOS provides libraries to be
> installed on the base station.
>
> To get started with TinyOS you might want to read the tutorials:
> http://docs.tinyos.net/index.php/TinyOS_Tutorials
>
> 

[Tinyos-help] dsr source code?

2009-03-07 Thread Pratibha S
Hi,
Can anyone tell me if there is any tinyos implementation of dsr (dynamic
source routing) available?

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

[Tinyos-help] [Tossim] packet loss model

2009-04-19 Thread Pratibha S
Hi,
Can anyone tell me what is the model used by tossim to simulate packet
losses at the physical layer and at the mac layer? For the physical layer we
would be giving them the noise model along with the topology, but how the
tossim uses these values to model losses?? (The mathematics behind it. I
want to calculate the probability of packet loss due to collision and due to
physical layer loss)

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

[Tinyos-help] [PoolC] Returning NULL

2009-07-09 Thread Pratibha S
Hi,
PoolC get() is returning NULL even though not Pool.empty() and
Pool.size()>0.

I allocate a pointer-to-struct say 'position_t' having three pointers v[3],

typedef position * position_t;
interface Pool;

void New_position()
 {   position_t pos;
if(! call Pool.empty()){
atomic{
pos = call edgePool.get();
}}
else
{
dbg_clear("usr","Out of memory - %d\n",call Pool.size());
exit(0);
}
if(pos == NULL) // Becomes TRUE and printing non_zero size
   dbg_clear("usr", "Failed allocation -%d\n", call Pool.size());

   pos->v[0] = NULL; // SEGMENTATION FAULT OCCURS HERE
   pos->v[1] = NULL;
   pos->v[2] = NULL;
   return pos;
}

 this code doesn't cause segmentation fault every time, it is
called. variables in Pool will be constantly allocated and freed. after some
put()s and get()s, this is causing error. Can anyone tell me why?


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

Re: [Tinyos-help] [PoolC] Returning NULL

2009-07-11 Thread Pratibha S
sorry, that was a typo.. im getting and putting in the same pool.

On Sat, Jul 11, 2009 at 12:57 AM, Omprakash Gnawali  wrote:

>  On Thu, Jul 9, 2009 at 5:23 PM, Pratibha S wrote:
> > Hi,
> > PoolC get() is returning NULL even though not Pool.empty() and
> > Pool.size()>0.
> > I allocate a pointer-to-struct say 'position_t' having three pointers
> v[3],
> > typedef position * position_t;
> > interface Pool;
> > void New_position()
> >  {   position_t pos;
> > if(! call Pool.empty()){
> > atomic{
> > pos = call edgePool.get();
> > }}
> > else
> > {
> > dbg_clear("usr","Out of memory - %d\n",call Pool.size());
> > exit(0);
> > }
> > if(pos == NULL) // Becomes TRUE and printing non_zero size
> >dbg_clear("usr", "Failed allocation -%d\n", call Pool.size());
> >pos->v[0] = NULL; // SEGMENTATION FAULT OCCURS HERE
> >pos->v[1] = NULL;
> >pos->v[2] = NULL;
> >return pos;
> > }
> >  this code doesn't cause segmentation fault every time, it is
> > called. variables in Pool will be constantly allocated and freed. after
> some
> > put()s and get()s, this is causing error. Can anyone tell me why?
>
> You are checking Pool and getting from edgePool?
>
> - om_p
>
___
Tinyos-help mailing list
Tinyos-help@millennium.berkeley.edu
https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] [PoolC] Returning NULL

2009-07-12 Thread Pratibha S
It is because of the emptyIndex. I was initializing objects with sizes 140,
150 and (index + free) was exceeding 255. for smaller sizes, it is not
causing this error. When i change the size of emptyIndex to uint16_t with
the same 140,150 sizes, it is working fine now. Thank you all :)

On Sun, Jul 12, 2009 at 11:52 AM, Philip Levis  wrote:

> The simplest answer would be that you're calling put(NULL) at some point.
>
> Phil
>
>
> On Jul 11, 2009, at 11:44 PM, Pratibha S wrote:
>
>   sorry, that was a typo.. im getting and putting in the same pool.
>>
>> On Sat, Jul 11, 2009 at 12:57 AM, Omprakash Gnawali 
>> wrote:
>> On Thu, Jul 9, 2009 at 5:23 PM, Pratibha S wrote:
>> > Hi,
>> > PoolC get() is returning NULL even though not Pool.empty() and
>> > Pool.size()>0.
>> > I allocate a pointer-to-struct say 'position_t' having three pointers
>> v[3],
>> > typedef position * position_t;
>> > interface Pool;
>> > void New_position()
>> >  {   position_t pos;
>> > if(! call Pool.empty()){
>> > atomic{
>> > pos = call edgePool.get();
>> > }}
>> > else
>> > {
>> > dbg_clear("usr","Out of memory - %d\n",call Pool.size());
>> > exit(0);
>> > }
>> > if(pos == NULL) // Becomes TRUE and printing non_zero size
>> >dbg_clear("usr", "Failed allocation -%d\n", call
>> Pool.size());
>> >pos->v[0] = NULL; // SEGMENTATION FAULT OCCURS HERE
>> >pos->v[1] = NULL;
>> >pos->v[2] = NULL;
>> >return pos;
>> > }
>> >  this code doesn't cause segmentation fault every time, it is
>> > called. variables in Pool will be constantly allocated and freed. after
>> some
>> > put()s and get()s, this is causing error. Can anyone tell me why?
>>
>> You are checking Pool and getting from edgePool?
>>
>> - om_p
>>
>> ___
>> 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