[Tinyos-help] Debug problem

2010-03-01 Thread jcjc311
1. The questions about tossim. I want to debug tos/system/sched.c and find one line: dbg(DBG_SCHED, ("TOSH_post: %d 0x%x\n", TOSH_sched_free, (int)tp)); I cancel the commend of this line. and go to /opt/tinyos-1.xtype “make”

Re: [Tinyos-help] confusion about the 3 engines of CTP

2010-03-01 Thread Mehmet Akif Antepli
Hi Islam, In the file CtpP.nc, there is the following code: Router.BeaconReceive -> Estimator.Receive; Estimator.SubReceive -> ReceiveControl; This means that received beacon is processed by LinkEstimator and then RoutingEngine. Each component adds the corresponding header on which they op

[Tinyos-help] urgent: compiling tinyos tools on mac os x

2010-03-01 Thread Anna Förster
Hello all, I am trying to install tinyos on mac os x 10.5.8, macbook pro, using the tutorial of Kevin Klues on tinyos.net. However, step "installing tinyos tools fails, with the error: mig -o SerialPacket.java -java- classname=net.tinyos.message.SerialPacket java /Users/annaforster/ sensorn

[Tinyos-help] confusion about the 3 engines of CTP

2010-03-01 Thread Islam Hegazy
Hi, I am studying CTP to simulate it in ns-2 for my PhD. I read the TEP123, "Collection Tree Protocol" and "Four-bit Wireless Link Estimation" papers. I understand that CTP has 3 engines forwarding, routing, and estimation. I am confused about the structure of the beacons. CTP and TEP123 say th

Re: [Tinyos-help] Error while compiling TestSerial

2010-03-01 Thread Ankur Kamthe
Hi, your java seems to be messed up. check if tinyos.jar is in your classpath variable. ankur On Sun, Feb 28, 2010 at 5:23 PM, Alhad Rajurwar wrote: > Hi there, I am getting this error when I mkdir -p build/telosb > javac -target 1.4 -source 1.4 *.java > /opt/tinyos-2.1.0/support/sdk/java/net/t

[Tinyos-help] How Can I use a LCD display with the expansion port U2?

2010-03-01 Thread Aldo Insfran
Hi all, I would like to use a LCD display to show the temperature measure of the sensor mote, I found out that there is LCD's working with UART, so I wanted to use pins 2 and 4 of the U2 expansion port in the telosb mote... I had read that there are problems sharing the bus, with the CC2420 modul

Re: [Tinyos-help] How to read Battery level from TelosB and Iris mote?

2010-03-01 Thread Faisal Aslam
It is voltage = (adcCount / 4096) * 3; regards, Faisal > Faisal, > > Can you please put parenthesis in the formula you have suggested? > > Thanks, > Arik > > > On Tue, Mar 2, 2010 at 00:02, Faisal Aslam > > wrote: > >> Hi, >> >> As Janos pointed out that you can read the battery voltage using >>

Re: [Tinyos-help] How to read Battery level from TelosB and Iris mote?

2010-03-01 Thread Arik Sapojnik
Faisal, Can you please put parenthesis in the formula you have suggested? Thanks, Arik On Tue, Mar 2, 2010 at 00:02, Faisal Aslam wrote: > Hi, > > As Janos pointed out that you can read the battery voltage using VoltageC > components. > However, you will get the ADC count that you will need t

[Tinyos-help] question

2010-03-01 Thread Riki Tiki
Hi, can anyone tell if MultiHopLQI uses Bellman-Ford algorithm or not? Thanks, Riki ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] How to read Battery level from TelosB and Iris mote?

2010-03-01 Thread Faisal Aslam
Hi, As Janos pointed out that you can read the battery voltage using VoltageC components. However, you will get the ADC count that you will need to convert to volts. For that use following formula. voltage = adcCount / 4096 * 3; Read the tutorial about sensing if you have questions that how you c

Re: [Tinyos-help] How to read Battery level from TelosB and Iris mote?

2010-03-01 Thread Janos Sallai
You can read the battery voltage using the VoltageC component. I'm not sure though that it is the voltage that you mean by battery level. Janos On Mon, Mar 1, 2010 at 3:44 AM, Shen LI wrote: > How to read Battery level from TelosB and Iris mote? > Thanks a lot! >

[Tinyos-help] volatile variables

2010-03-01 Thread John Regehr
I wrote a longish explanation about volatile variables in C code, and how to avoid problems with them, that may be interesting to people: http://blog.regehr.org/archives/28 John Regehr ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu

Re: [Tinyos-help] TOSSIM error

2010-03-01 Thread Mido
Try the steps in the Troubleshooting section: http://docs.tinyos.net/index.php/TOSSIM#Appendix_A:_Troubleshooting_TOSSIM_compilation You will be able to solve this problem. From: Kartik Siddhabathula [mailto:siddhabathulakar...@yahoo.com] Sent: Monday, March 01, 2010 11:38 AM To: 'TinyoS

[Tinyos-help] TOSSIM error

2010-03-01 Thread Kartik Siddhabathula
Hi All, I am getting the following error while trying to execute TOSSIM. /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx:26:20: error: Python.h: No such file or directory /opt/tinyos-2.1.0/tos/lib/tossim/tossim_wrap.cxx:296: error: ISO C++ forbids declaration of ‘PyObject’ with no type /opt/ti

Re: [Tinyos-help] Unable to execute TOSSIM? error : Invalid target :pc

2010-03-01 Thread Mido
With TinyOS 2, you need to call "make micaz sim" instead of "make pc" The TOSSIM tutorial for TOS2 is here: http://docs.tinyos.net/index.php/TOSSIM From: tinyos-help-boun...@millennium.berkeley.edu [mailto:tinyos-help-boun...@millennium.berkeley.edu] On Behalf Of Kartik Siddhabathula Sent:

[Tinyos-help] Unable to execute TOSSIM? error : Invalid target :pc

2010-03-01 Thread Kartik Siddhabathula
Hi All, I want to simulate my code on TOSSIM. When I am trying to type make -f makefile_name pc. It is saying invalid target. Even my Blink application is not simulating when I am typing make pc, it is also giving the same invalid error message. I am getting a message that the valid targets ar

Re: [Tinyos-help] Processing of Tymo Packet

2010-03-01 Thread Deeksha G. Rao Salib
hi, I am able to verify the data being sent and received on the motes( through print statements).But the problem at the pc for which i use a c program still exists. Does tymo use message_t structure or mhpacket_t?cos extracting data from tymo packet and putting it into normal message_t might be p

[Tinyos-help] How to read Battery level from TelosB and Iris mote?

2010-03-01 Thread Shen LI
How to read Battery level from TelosB and Iris mote? Thanks a lot! ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Re: [Tinyos-help] Processing of Tymo Packet

2010-03-01 Thread Romain Thouvenin
You can see the header structure in tos/lib/net/tymo/mh/mhpacket.h On Thu, Feb 25, 2010 at 6:18 AM, Deeksha G. Rao Salib wrote: > Also any idea about the size of the tymo header?? >> hey.. >> >> I tried doing both.And you are right. I found out that the message >> contains the am type and payload

Re: [Tinyos-help] TinyOS: Extraction of RSSI Info

2010-03-01 Thread Miklos Maroti
Hi! Look at the RF230ActiveMessageC component, that provides a PacketRSSI interface which gives you what you want. Read the README in the cihps/rf2xx and chips/rf2xx/rf230 directories, that will tell you that you can get the ENERGY (averaged RSSI) if you define some value. Miklos On Mon, Mar 1,