[Tinyos-help] MAC layer on TOSSIM

2008-02-06 Thread Vijayant Bhatnagar
Hello Everyone, We are trying to simulate some routing layer protocols. But we found that MAC layer is not working as expected. There are a lot of packet drops. The noise power is kept low ~ -100dbm. Still, there are 4-5 packet drops out of 10 when we have two transmitter transmiting at different

[Tinyos-help] turning ON debug statements

2007-12-13 Thread Vijayant Bhatnagar
Hi, can anyone please tell me how to turn ON debug statements of system files ? I am able to track debug statements from my application but not from source files. Basically i wish to track statements like : dbg(CpmModelC,SNRLoss, - lost packet from %i as SNR was too low.\n, (int)mine-source);

[Tinyos-help] Re: link reliability on TOSSIM

2007-12-13 Thread Vijayant Bhatnagar
CAn anyone reply please ? :) -Vijayant On Dec 13, 2007 9:27 PM, Vijayant Bhatnagar [EMAIL PROTECTED] wrote: hi, Can anyone give me hint on implementing link reliability. I found out that there is a mechanism by which we can know whether a packet was sent or not. I was able to implement

Re: [Tinyos-help] Random number

2007-12-11 Thread Vijayant Bhatnagar
i think you can use %x to scale the values from 0 to x. Regards, Vijayant. On Dec 10, 2007 11:59 PM, Paul [EMAIL PROTECTED] wrote: Hi all I need to, during startup decides out of NUM_NODES nodes, which of the NUM_TASKERS nodes will perform certain tasks. Previously, I have identified

Re: [Tinyos-help] Random number

2007-12-11 Thread Vijayant Bhatnagar
e.g.rand()%1000 to scale from 0 to 1000. Vijayant Bhatnagar. On Dec 11, 2007 3:12 AM, Vijayant Bhatnagar [EMAIL PROTECTED] wrote: i think you can use %x to scale the values from 0 to x. Regards, Vijayant. On Dec 10, 2007 11:59 PM, Paul [EMAIL PROTECTED] wrote: Hi all I need

Re: [Tinyos-help] Re: unable to inject packet from tossim

2007-12-08 Thread Vijayant Bhatnagar
); pkt.setSource(6); print Delivering , msg, to 0 at ; #, str(t.time() + 3); pkt.deliver(1, t.time() + 3) for i in range(0, 200): t.runNextEvent(); Any help is appreciated. Thanks, Vijayant On Dec 7, 2007 8:43 PM, Vijayant Bhatnagar [EMAIL PROTECTED] wrote: Hi Ricardo, I saw my code and I

Re: [Tinyos-help] Re: unable to inject packet from tossim

2007-12-08 Thread Vijayant Bhatnagar
it seems that there is some problem with our makefile. can anyone help us please ? Regards, Vijayant On Dec 8, 2007 4:56 AM, Vijayant Bhatnagar [EMAIL PROTECTED] wrote: I am somehow debugging this problem : Basically i have two structs like : typedef nx_struct radio_count_msg

[Tinyos-help] Noise Bandwidth

2007-12-08 Thread Vijayant Bhatnagar
Hi, Can anyone give me some details on as to what is the noise bandwidth of micaz mote ? I tried googling it and found that 802.15.4 has 3MHz bandwidth while 802.11 channel has 22 MHz. We actually need these values to calculate Eb/No and hence calculate PER. Also, in Tossim, I am not clear how

[Tinyos-help] Re: unable to inject packet from tossim

2007-12-07 Thread Vijayant Bhatnagar
I am still stuck! It seems that I am missing something. Can anyone help me please ? Help appreciated. Thanks, Vijayant. On Dec 7, 2007 2:45 AM, Vijayant Bhatnagar [EMAIL PROTECTED] wrote: Hi, The following code doesnt work for injecting packets. from RadioCountData import * msg

Re: [Tinyos-help] Re: unable to inject packet from tossim

2007-12-07 Thread Vijayant Bhatnagar
, 2007 7:17 PM, Ricardo Tiago [EMAIL PROTECTED] wrote: Add this to the python file: print Delivering application packet + str(msg) + to 3 at + str(t.time() + 100*3); pkt.deliver(3, t.time() + 100*3) This is will deliver your packet to node 3. On 12/7/07, Vijayant Bhatnagar

[Tinyos-help] PER

2007-12-07 Thread Vijayant Bhatnagar
Hi, I read a paper on tossim, wherein it has been mentioned that TOSSIM doesnt consider modulation scheme but uses SNR/PRR curves. Now, in that case how can I measure PER for a mote ? Secondly, is this dynamic or static ? Any help is appreciated. Thanks, Vijayant

Re: [Tinyos-help] Timer running with TOSSIM 2.x

2007-12-06 Thread Vijayant Bhatnagar
Even I am facing similar kind of problem. Can anyone help me please. help appreciated. thanks, Vijayant On Dec 6, 2007 1:28 AM, EunKyung Lee [EMAIL PROTECTED] wrote: Dear. I made two timer and generate 10 nodes and run my application on Tossim. But both of timers are fired at the same time

Re: [Tinyos-help] Timer running with TOSSIM 2.x

2007-12-06 Thread Vijayant Bhatnagar
i figured out the problem. I have fixed it and it is working perfectly!!! There was a minor fault in wiring. thanks, Vijayant Bhatnagar Rutgers. On Dec 6, 2007 5:42 PM, Vijayant Bhatnagar [EMAIL PROTECTED] wrote: Secondly, for the two periodic timers (with different periods), when i do

[Tinyos-help] setting value of nesC variable using python

2007-12-06 Thread Vijayant Bhatnagar
Hi, I need to set the value of variable in nesc using python. Can anyone guide me ? I read the tutorial and it has given description on how to GET the variable. I couldnt find information to set the variable. Any help is greatly appreciated. Any hint would also suffice. Thanks, Vijayant

[Tinyos-help] unable to inject packet from tossim

2007-12-06 Thread Vijayant Bhatnagar
Hi, The following code doesnt work for injecting packets. from RadioCountData import * msg = RadioCountData() msg.set_type(1); msg.set_data(55); pkt = t.newPacket(); pkt.setData(msg.data); pkt.setType(msg.get_amType()) pkt.setDestination(3); pkt.setSource(6); my struct in .h file is: typedef

Re: [Tinyos-help] RSSI on micaz tossim 2.0

2007-12-05 Thread Vijayant Bhatnagar
the CC2420Packet.setPower(packet, txPower) function. The CC2420Packet interface is provided by the CC2420PacketC module. Cheers, Urs john varkey schrieb: Hi, I would also like to know how to know the RSSI value from the CC2420 packet metadata. regards, John Paul Vijayant Bhatnagar [EMAIL

Re: [Tinyos-help] error while incorporating interface CC2420Packet;

2007-12-05 Thread Vijayant Bhatnagar
, Urs Vijayant Bhatnagar schrieb: Hi, I referred to the data sheet. The data sheet says that programmable output power range is -24 to 0 dBm (in steps of 3). There is no mention about reverse link gain. Do we have straightaway assume that it is less than that of tx ? How do I model

Re: [Tinyos-help] RSSI on micaz tossim 2.0

2007-12-05 Thread Vijayant Bhatnagar
a packet should be received). It should be relatively easy to also set the packet fields correctly. Cheers, Urs Vijayant Bhatnagar schrieb: Hi, I really appreciate your help. But I am using TOSSIM. I guess, CC2420Packet is not supported by TOSSIM. Please correct me if I am wrong

Re: [Tinyos-help] RSSI on micaz tossim 2.0

2007-12-05 Thread Vijayant Bhatnagar
Oh! I was using stale code :) It is working perfectly. Thanks, Vijayant On Dec 5, 2007 8:58 PM, Vijayant Bhatnagar [EMAIL PROTECTED] wrote: Hi ! I really thank you for helping me out. But, I am facing some errors : I am trying to wire TossimActiveMesageC. These are the errors

Re: [Tinyos-help] error while incorporating interface CC2420Packet;

2007-12-04 Thread Vijayant Bhatnagar
, at 3:47 PM, Vijayant Bhatnagar wrote: Hi Kevin, I would like to thank you for your reply. We are indeed using TOSSIM. Right now I am trying to get the latest source code from CVS and then try to run my code. Do you think that we will not be able to change TX_POWER even after getting

Re: [Tinyos-help] error while incorporating interface CC2420Packet;

2007-12-04 Thread Vijayant Bhatnagar
is appreciated. Thanks, vijayant On 12/4/07, Philip Levis [EMAIL PROTECTED] wrote: On Dec 3, 2007, at 10:01 PM, Vijayant Bhatnagar wrote: Hi, Since we have started working on TinyOS a week back, I may be wrong. The following is the change I made: Please correct me if I am wrong

[Tinyos-help] RSSI on micaz tossim 2.0

2007-12-04 Thread Vijayant Bhatnagar
hi, I just read phil's reply on one of the threads that we can receive RSSI in tossim 2.0. Can anyone please let me know the interface through which we can do this ? I checked the code for TossimMessage, there already exists a field in the metadata. However, when I tried accessing it, it returns

Re: [Tinyos-help] RSSI on micaz tossim 2.0

2007-12-04 Thread Vijayant Bhatnagar
them. It returns 0 value. Thanks, Vijayant On Dec 5, 2007 1:38 AM, john varkey [EMAIL PROTECTED] wrote: Hi, I would also like to know how to know the RSSI value from the CC2420 packet metadata. regards, John Paul *Vijayant Bhatnagar [EMAIL PROTECTED]* wrote: hi, I just read phil's

Re: [Tinyos-help] RSSI on micaz tossim 2.0

2007-12-04 Thread Vijayant Bhatnagar
AM, Vijayant Bhatnagar [EMAIL PROTECTED] wrote: Any help/hint please ? Basically we are looking for estimation of Packet error rate/bit error rate. We have some open loop models. It will be good if we are being guided on closed loop formulas. I just checked the code in TOSSIM, there are few

Re: [Tinyos-help] error while incorporating interface CC2420Packet;

2007-12-03 Thread Vijayant Bhatnagar
3, 2007 12:42 PM, Philip Levis [EMAIL PROTECTED] wrote: On Dec 2, 2007, at 3:47 PM, Vijayant Bhatnagar wrote: Hi Kevin, I would like to thank you for your reply. We are indeed using TOSSIM. Right now I am trying to get the latest source code from CVS and then try to run my code. Do

[Tinyos-help] link between tossimpacketc.send and amsend.send

2007-12-03 Thread Vijayant Bhatnagar
Hi, I need some help to figure out what is the relation between amsend.send and tossimpacketc.send. In tutorial 3 of tinyos 2-x, RadioCountToLed sends a packet using AMSend.send then how do i use tossimpacketc.send ?I am really confused. Any help appreciated. Thanks, Vijayant

Re: [Tinyos-help] error while incorporating interface CC2420Packet;

2007-12-03 Thread Vijayant Bhatnagar
Hi, I think I made a mistake by creating a new function. I should have modified existing send function of TossimpacketC. Then i would just call AMsend.sendetc.. Please correct me if I am wrong. Any help is greatly appreciated. Thanks, Vijayant On Dec 4, 2007 1:01 AM, Vijayant Bhatnagar [EMAIL

[Tinyos-help] Re: setting metadata field in the packet

2007-12-03 Thread Vijayant Bhatnagar
, 2007 1:53 AM, Vijayant Bhatnagar [EMAIL PROTECTED] wrote: Hi, I wish to set tx_power in the metadata. I just checked the specifications of AMPacket interface, it doesnt have one. Can anyone please guide me on how to set the metadata field. I am using tinyos 2-x and I have already

Re: Fwd: [Tinyos-help] error while incorporating interface CC2420Packet;

2007-12-02 Thread Vijayant Bhatnagar
Hi, I updated all the CC2420* files and dumped in /opt/tinyos-2.x/tos/chips/cc2420/ but its not working. What should I do in this case ? I am getting same kind of errors like interface has no command or event named... Please help. Thanks, Vijayant Bhatnagar On Dec 2, 2007 4:51 AM, Urs

Re: Fwd: [Tinyos-help] error while incorporating interface CC2420Packet;

2007-12-02 Thread Vijayant Bhatnagar
), the cc2420 directories that include the CC2420Packet interface and CC2420PacketC component are not listed. i.e. compare the files tos/platforms/micaz/.platform tos/platforms/micaz/sim/.platform Kevin On Dec 2, 2007 2:07 PM, John Griessen [EMAIL PROTECTED] wrote: Vijayant Bhatnagar wrote: Hi

Re: Fwd: [Tinyos-help] error while incorporating interface CC2420Packet;

2007-12-02 Thread Vijayant Bhatnagar
it goes. Kevin On Dec 2, 2007 3:47 PM, Vijayant Bhatnagar [EMAIL PROTECTED] wrote: Hi Kevin, I would like to thank you for your reply. We are indeed using TOSSIM. Right now I am trying to get the latest source code from CVS and then try to run my code. Do you think that we

Re: Fwd: [Tinyos-help] error while incorporating interface CC2420Packet;

2007-12-02 Thread Vijayant Bhatnagar
Hi, I would like to thank Greg for his quick reply. Right now, we don't have real motes. Our plan is to get things working on TOSSIM (i.e. some kind of simulation environment) for testing our protocol. We have already developed Neighbor Discovery protocol and Routing protocols. We just need to

Re: Fwd: [Tinyos-help] error while incorporating interface CC2420Packet;

2007-12-02 Thread Vijayant Bhatnagar
, John Griessen [EMAIL PROTECTED] wrote: Vijayant Bhatnagar wrote: Hi, First of all I would like to thank Kevin for his help. CC2420 directories were indeed missing in .platform file. I added all the CC2420/* directories to sim/.platform file. But still, I am facing the same kind

[Tinyos-help] error while incorporating interface CC2420Packet;

2007-12-01 Thread Vijayant Bhatnagar
Hi, This is the piece of code written by me. I am basically modifying RadiocountToleds tutorial file. If comment out code for CC2420; everything works absolutely fine. Any help appreciated, Thanks, Vijayant Bhatnagar. Rutgers. Source Code : (...AppC.nC) configuration RadioCountToLedsAppC

Re: [Tinyos-help] Fwd: Changing TX_POWER

2007-12-01 Thread Vijayant Bhatnagar
power. Any help is appreciated. Thanks, Vijayant Bhatnagar. Rutgers. On Nov 28, 2007 1:53 AM, Philip Levis [EMAIL PROTECTED] wrote: On Nov 27, 2007, at 10:34 PM, Vijayant Bhatnagar wrote: Hi, We found out that CC2420 does not support changing power at runtime : http://www.mail-archive.com

[Tinyos-help] CC2420Packet Interface

2007-12-01 Thread Vijayant Bhatnagar
..} Please let me know where am I going wrong. Any help is appreciated. Thanks, Vijayant Bhatnagar. Rutgers. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Fwd: [Tinyos-help] error while incorporating interface CC2420Packet;

2007-12-01 Thread Vijayant Bhatnagar
Any help is appreciated :) Regards, VB -- Forwarded message -- From: Vijayant Bhatnagar [EMAIL PROTECTED] Date: Dec 2, 2007 2:22 AM Subject: Re: [Tinyos-help] error while incorporating interface CC2420Packet; To: Urs Hunkeler [EMAIL PROTECTED] Hi Urs, I copied the file from

[Tinyos-help] two timers

2007-11-30 Thread Vijayant Bhatnagar
hi, We have implemented two timers (both are being started at different times). But after sometime when i do timer1.getNow() and timer2.getNow(), I get the same values. Isn't it that incorrect ? How can we have two timers running independently ? Any help is appreciated. Regards, Vijayant

Re: [Tinyos-help] Re: Packet loss problem

2007-11-27 Thread Vijayant Bhatnagar
. it is that due to collision or MAC design? On Nov 26, 2007 6:57 PM, Vijayant Bhatnagar [EMAIL PROTECTED] wrote: Hello, Can anyone help us out please ? My intuition says that we need to implement ARQ kind of implementation in order to broadcast packets reliably. Any comments ? Thanks

[Tinyos-help] Changing TX_POWER

2007-11-27 Thread Vijayant Bhatnagar
Hi, We wish to change TX_Power of the mote. Please let us know how to do this. We are stuck at this stage. Any help appreciated. Warm regards, Vijayant ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU

Re: [Tinyos-help] Re: Packet loss problem

2007-11-27 Thread Vijayant Bhatnagar
AM, Vijayant Bhatnagar [EMAIL PROTECTED] wrote: Hi Tao, The problem was because of the collision of the packets. The problem has been solved by using random timer as suggested by Philipp. Thanks, Vijayant On Nov 27, 2007 11:24 AM, Tao Wu [EMAIL PROTECTED] wrote: Personally, I

[Tinyos-help] Setting variable from python to tinyos

2007-11-27 Thread Vijayant Bhatnagar
Hi, We wish to pass parameters from PYTHON to nesC. We saw that getVariable gets the parameters. Is there any way by which we can set the parameter ? Help appreciated. Thanks, Vijayant Bhatnagar. ___ Tinyos-help mailing list Tinyos-help

Re: [Tinyos-help] Fwd: Changing TX_POWER

2007-11-27 Thread Vijayant Bhatnagar
Hi, We found out that CC2420 does not support changing power at runtime : http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg13680.html Is there any development / fix for this ? If not, can any one give us some cue on how to do this. Help appreciated. Regards, Vijayant Bhatnagar

[Tinyos-help] Packet loss problem

2007-11-26 Thread Vijayant Bhatnagar
Hi, We are trying to simulate broadcast environment. Initially we have set up 6 motes trying to send packet to Master Node. We have observed that not all 6 motes are able to send the packet. Is it because of backoff problem or some kind of fault with our implementation ? After going through the

[Tinyos-help] Re: Packet loss problem

2007-11-26 Thread Vijayant Bhatnagar
Hello, Can anyone help us out please ? My intuition says that we need to implement ARQ kind of implementation in order to broadcast packets reliably. Any comments ? Thanks, Vijayant On Nov 26, 2007 12:31 PM, Vijayant Bhatnagar [EMAIL PROTECTED] wrote: Hi, We are trying to simulate broadcast

[Tinyos-help] PowerTOSSIM on 2.0.2

2007-11-20 Thread Vijayant Bhatnagar
Hi, Can we use PowerTOSSIM on TinyOS 2.0.2 ? When we read the implementation guide, it has been assumed that powertossim is running on tinyos 1.1.10. Help appreciated. Thanks, Vijayant Bhatnagar. ___ Tinyos-help mailing list Tinyos-help

[Tinyos-help] string.h

2007-11-18 Thread Vijayant Bhatnagar
Hi, Please let me know if string.h is supported in nesC ? I am getting this error RadioCountToLedsC.nc:34:20: error: String.h: No such file or directory. thanks, Vijayant Bhatnagar ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https

[Tinyos-help] unicasting message

2007-11-18 Thread Vijayant Bhatnagar
Hi, I am right now doing broadcast using the reference from tinyos tutorials using AM_BROADCAST_ADDR. Can you please tell me how can i unicast message ? What address should be given for that ? Help appreciated. thanks, Vijayant Bhatnagar Rutgers Univ

Re: [Tinyos-help] string.h

2007-11-18 Thread Vijayant Bhatnagar
Hey Michael, I am using tinyos 2.0.2. Thanks, Vijayant. On Nov 18, 2007 10:08 PM, Michael Schippling [EMAIL PROTECTED] wrote: hmm, it's usually string.h, all lower-case. What versions of what platforms are you using? MS Vijayant Bhatnagar wrote: Hi, Please let me know if string.h

[Tinyos-help] tinyviz with tinyos 2.0.2

2007-11-14 Thread Vijayant Bhatnagar
Hi, I just wanted to know if we have tinyviz with tinyos 2.0.2 ? Basically I need a graphical interface for visualizing the packets from and to the motes. I also need to analyze the events happening on some motes. Thanks, Vijayant ___ Tinyos-help

[Tinyos-help] visualization tool

2007-11-14 Thread Vijayant Bhatnagar
Hi All, Can anyone help me to install TinyViz on Tinyos 2.0.2. I am a newbie. Any help if greatly appreciated. Thanks, Vijayant. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU

Re: [Tinyos-help] visualization tool

2007-11-14 Thread Vijayant Bhatnagar
Hi, Is there any other tool that we can use for visualization in tinyos 2.0.2 ? Every help is appreciated. Thanks, Vijayant On Nov 15, 2007 1:06 AM, Ricardo Tiago [EMAIL PROTECTED] wrote: Hi TinyViz isn't available for TinyOS 2.0.2, only for TinyOS 1.x. Ricardo On 11/15/07, Vijayant