Re: [Tinyos-help] is there a struct definition rule?
On Tue, May 17, 2011 at 6:50 PM, Xiaohui Liu whu...@gmail.com wrote: Hi, I'm meeting the same issue again and trying to use nm. How do I let nm display the symbols only in bss section and order by their address in non-decreasing fashion? This way, I can see what symbols are near the one I'm tracking. Thanks. When you don't know how to use a tool the first thing you should try is reading the manual. I don't see a reference to what processor you are using (or platform which then implies the processor), but if memory serves (yeah right), you are using a telosb which is msp430f1611 based. So you want to try man msp430-objdump man msp430-nm You can also do: msp430-objdump --help msp430-nm --help more below: On Fri, Aug 20, 2010 at 6:16 PM, Philip Levis p...@cs.stanford.edu wrote: On Aug 20, 2010, at 7:22 AM, Xiaohui Liu wrote: Actually, I'm trying to change 4 bit link estimation (4bitle) to estimate some link delay related information. At the beginning, 4bitle is working fine. However, after I add the blue fields (nothing else), 4bitle seems to malfunction. Hope this helps clarify my question. You need to be more precise. Malfunction is not helpful when it comes to debugging. Sorry to say this, but you're going about debugging this all wrong. You're confusing a symptom (when you change the structure) with a diagnosis (what's going wrong in the program). This kind of debugging is just throwing darts in the dark: it doesn't get you to the bottom of the problem. There are two possibilities: 1) More likely: there is a memory access bug in your code. When you change the structure definition, the compiler places the differently sized structure in a different place in memory. E.g., next to the memory with the bug. One way to help diagnose this is to examine what variables are near the structure in the two different executables (nm, objdump, etc.). To see the machine code interspersed with some semblance of the source code (take with a grain of salt, doesn't always get it right): msp430-objdump -d --source main.exe To see a numerically sorted symbol table of the image: msp430-nm -n main.exe 2) Much less likely: there is a compiler bug on access to the structure. The way to diagnose this is to look at the generated assembly. Effective diagnosis requires, in both cases, a clear understanding of what the memory access error is and how it manifests. Regardless, chances are this bug has nothing to do with nesC, and is really just a low-level C bug. That is, unless nesc1 is doing something weird (very unlikely). You can check this by looking at app.c. Phil -- -Xiaohui Liu ___ 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] Porting Tinyos To Jennic's Platform Hardware
Hi All, I will port Tinyos from telos hardware platform to Jennic's hardware platform. Do you know if a port of TinyOS exists for Jennic's boards? I need same information about the porting of operative system. help me please. Thank you All. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] On JTAG adapter for Telos
On Tue, May 17, 2011 at 3:03 PM, Antonio Linan ali...@zolertia.com wrote: If you need a JTAG connector: http://shop.zolertia.com/accessories/20-jtag-header-kit.html And also something like the Texas Instruments USB FET programmer. Antonio. I too wanted to find a connection solution for hooking a JTAG to a telosb so looked carefully at the schematics for both the telosb and Z1. Turns out that the pin out for the Z1 JTAG header and the Telosb JTAG header are significantly different and the pin spacing doesn't match either. So unfortunately the Z1 JTAG header solution won't work for the telosb. On Tue, May 17, 2011 at 11:22 PM, Jun yanjunrock...@gmail.com wrote: Hi All, I need to use JTAG to debug TOS on telosb mote. It seems that I'll need an adapter to set up the connection to the mote as the following article says. http://sentilla.com/files/pdf/eol/moteiv-an-002.pdf However, it seems that sentilla is not selling it anymore. Is there any other alternative for this? Thank you, Jun ___ 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 -- 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
Re: [Tinyos-help] On JTAG adapter for Telos
On Wed, 2011-05-18 at 01:23 -0700, Eric Decker wrote: On Tue, May 17, 2011 at 3:03 PM, Antonio Linan ali...@zolertia.com wrote: If you need a JTAG connector: http://shop.zolertia.com/accessories/20-jtag-header-kit.html And also something like the Texas Instruments USB FET programmer. Antonio. I too wanted to find a connection solution for hooking a JTAG to a telosb so looked carefully at the schematics for both the telosb and Z1. Turns out that the pin out for the Z1 JTAG header and the Telosb JTAG header are significantly different and the pin spacing doesn't match either. My bad, Eric is right. We use a custom adaptor to connect it. So unfortunately the Z1 JTAG header solution won't work for the telosb. On Tue, May 17, 2011 at 11:22 PM, Jun yanjunrock...@gmail.com wrote: Hi All, I need to use JTAG to debug TOS on telosb mote. It seems that I'll need an adapter to set up the connection to the mote as the following article says. http://sentilla.com/files/pdf/eol/moteiv-an-002.pdf However, it seems that sentilla is not selling it anymore. Is there any other alternative for this? Thank you, Jun ___ 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 -- 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] Uart v Usci
Hi, can anybody explain to me the difference between the msp430/usci and msp430/uart drivers, I noticed the /msp430/uart has i2c support. I'm using the em430 mote which is configured to use the usci but I need the i2c part has anybody developed the i2c part of the /msp/usci? Regards Derek - This email message has been delivered safely and archived online by Mimecast. A true SaaS solution, Mimecast provides the security, continuity and archiving for millions of emails, across thousands of customers every day. For more information please visit http://www.mimecast.co.uk -___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Uart v Usci
Hi Derek, I'm currently working on integrating the msp430 core code for the three major msp430 families (the x1, x2, and x5). You are using an x5 part. I'm guessing the cc430f5137 because I beleive you are basing off of the osian/surf board code. When you post question onto tinyos-help (or for that matter anywhere) it would be helpful if you included the specifics of exactly what you are working with so we don't have to guess. That also applies to what flavor of em430 board you are using. TI makes many different eval boards for their processors. For example, I have an eval board for the 5438 that is significantly different from the eval board that the surf folks called the em430. So calling it the em430 doesn't convey alot of information. On Wed, May 18, 2011 at 2:14 AM, Derek Baker derek.ba...@claritas-solutions.com wrote: Hi, can anybody explain to me the difference between the msp430/usci and msp430/uart drivers, The devil is in the details.I think you are talking about tos/chips/msp430/usart vs. tos/chips/msp430/usci. The usart driver (tos/chips/msp430/usart) is the driver for the x1 family peripheral (the USART). On the x2 and x5 family parts there is a different peripheral called the USCI. It is a different beast and has a different driver. There are basically differnt flavors of what these modules do. The USART on the x1 parts only has I2C on port 0 and this is reflected in the code. The USCI situation is also convoluted. The X2 implementation of USCI vs. the x5 implementation has some significant warts. In particular how interrupts are dealt with and where the register are mapped and how they are accessed. I noticed the /msp430/uart has i2c support. I’m using the em430 mote which is configured to use the usci but I need the i2c part has anybody developed the i2c part of the /msp/usci? Peter who did the initial support for the tinyos cc430f5137 port didn't add the i2c functionality because he didn't have any h/w that used it. The parts will support it.But the driver hasn't been integrated yet. i'm pretty sure that the Z1 folks have a working i2c driver.Keep in mind that all of this code is in flux. The code that is currently in the trunk for the msp430X (tos/chips/msp430X) is being heavily reworked. That said there is a version of the usci drivers in there that worked for the Z1 folks. But it is very ugly and unfinished. A more modern driver is being worked on in the msp430 integration branch. That is also where the merged x5 code is coming in. How soon do you need an i2c driver? Regards Derek -- This email message has been delivered safely and archived online by Mimecast. A true SaaS solution, Mimecast provides the security, continuity and archiving for millions of emails, across thousands of customers every day. For more information please visit http://www.mimecast.co.uk -- ___ 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
Re: [Tinyos-help] Uart v Usci
Hi Eric, Thanks for all that and sorry yes I'm using the em-cc430f5137-900 development board from TI, I need the driver quite urgent, to a point where I've started to develop a driver myself but I'm now going to stop if there is a working/semi working driver in the trunk you've listed below, I got my source code from the OSIAN git rep and it doesn't have the MSP430X in it, is it fare to say the google rep is more up to date in terms of development work?. Regards Derek From: Eric Decker [mailto:cire...@gmail.com] Sent: 18 May 2011 10:52 To: Derek Baker Cc: tinyos-help@millennium.berkeley.edu Subject: Re: [Tinyos-help] Uart v Usci Hi Derek, I'm currently working on integrating the msp430 core code for the three major msp430 families (the x1, x2, and x5). You are using an x5 part. I'm guessing the cc430f5137 because I beleive you are basing off of the osian/surf board code. When you post question onto tinyos-help (or for that matter anywhere) it would be helpful if you included the specifics of exactly what you are working with so we don't have to guess. That also applies to what flavor of em430 board you are using. TI makes many different eval boards for their processors. For example, I have an eval board for the 5438 that is significantly different from the eval board that the surf folks called the em430. So calling it the em430 doesn't convey alot of information. On Wed, May 18, 2011 at 2:14 AM, Derek Baker derek.ba...@claritas-solutions.commailto:derek.ba...@claritas-solutions.com wrote: Hi, can anybody explain to me the difference between the msp430/usci and msp430/uart drivers, The devil is in the details.I think you are talking about tos/chips/msp430/usart vs. tos/chips/msp430/usci. The usart driver (tos/chips/msp430/usart) is the driver for the x1 family peripheral (the USART). On the x2 and x5 family parts there is a different peripheral called the USCI. It is a different beast and has a different driver. There are basically differnt flavors of what these modules do. The USART on the x1 parts only has I2C on port 0 and this is reflected in the code. The USCI situation is also convoluted. The X2 implementation of USCI vs. the x5 implementation has some significant warts. In particular how interrupts are dealt with and where the register are mapped and how they are accessed. I noticed the /msp430/uart has i2c support. I'm using the em430 mote which is configured to use the usci but I need the i2c part has anybody developed the i2c part of the /msp/usci? Peter who did the initial support for the tinyos cc430f5137 port didn't add the i2c functionality because he didn't have any h/w that used it. The parts will support it.But the driver hasn't been integrated yet. i'm pretty sure that the Z1 folks have a working i2c driver.Keep in mind that all of this code is in flux. The code that is currently in the trunk for the msp430X (tos/chips/msp430X) is being heavily reworked. That said there is a version of the usci drivers in there that worked for the Z1 folks. But it is very ugly and unfinished. A more modern driver is being worked on in the msp430 integration branch. That is also where the merged x5 code is coming in. How soon do you need an i2c driver? Regards Derek This email message has been delivered safely and archived online by Mimecast. A true SaaS solution, Mimecast provides the security, continuity and archiving for millions of emails, across thousands of customers every day. For more information please visit http://www.mimecast.co.uk ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edumailto:Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Eric B. Decker Senior (over 50 :-) Researcher - This email message has been delivered safely and archived online by Mimecast. A true SaaS solution, Mimecast provides the security, continuity and archiving for millions of emails, across thousands of customers every day. For more information please visit http://www.mimecast.co.uk -___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Uart v Usci
On Wed, May 18, 2011 at 3:06 AM, Derek Baker derek.ba...@claritas-solutions.com wrote: Hi Eric, Thanks for all that and sorry yes I’m using the em-cc430f5137-900 development board from TI, I need the driver quite urgent, to a point where I’ve started to develop a driver myself but I’m now going to stop if there is a working/semi working driver in the trunk you’ve listed below, I got my source code from the OSIAN git rep and it doesn’t have the MSP430X in it, is it fare to say the google rep is more up to date in terms of development work?. It is fair to say it is confusing. One of the things I'm trying to fix. The SVN trunk (google rep) has a directory tos/chips/msp430X which reflects the state of the Zolertia Z1 port to the x2 (msp430f2617). It is essentially their code from about a year ago or so. I'm working with Antonio (from Zolertia) on getting this cleaned up.We are eliminating duplicates and consolidating the code. I am also bringing over Peter Bigots x5 work and it is forming the initial cut for the x5 part of the consolidated msp430 core support for the x5. When that is done I will add support for the msp430f5438 and its flavors. That is the processor that I am using on the next interation of my next mote (the mm5). Now that saidPeter's osian work didn't include an i2c driver. He didn't need it and had nothing to test it on. The i2c driver from the Z1 works from what I understand. SVN trunk, tos/chips/msp430X/usci But it would be more helpful if you looked at/used the current Z1 i2c driver from the msp430 integration branch. Its on a git repo. Do you git? mkdir msp430 cd msp430 git clone git://hinrg.cs.jhu.edu/git/cire/msp430.git tinyos-2.x cd tinyos-2.x git checkout -t origin/mm-z1 cd tos/chips/msp430/x2xxx/usci That will put you on the mm-z1 integration branch. That has the merge between the existing x1 code and my mm4 (2618 based) and the Z1 (2617) based code bases. tos/chips/msp430/x2xxx/usci has the current merged drivers for the usci on the x2 parts. There are enough differences between how the usci interfaces on the x2 vs. the x5 parts that for the time being the x2 and x5 usci drivers have their own homes. I also know that the shimmer/span i2c drivers work and are in production systems. So you might want to take a look in the shimmer/span code directories. Try down in tos/platforms/shimmer... or tos/platforms/span...and see what you can find that touches i2c. I do know from Antonio who is actively testing the integration branch on the Z1 motes he has that the i2c driver there works. But you'll run into another problem.We found that using the mspgcc4 tool chain (4.4.5, 20110312) that the i2c driver broke. When Antonio reverted back to the 3.2.3 based Z1 toolchain it works fine. Now you can't use the 3.2.3 toolchain because it doesn't support your processor. So there is another gotcha there. Antonio is going to see if the i2c driver works with the current work Peter is doing which is the uniarch toolchain. You should add yourself to the tinyos-msp430 mailing list. Regards Derek *From:* Eric Decker [mailto:cire...@gmail.com] *Sent:* 18 May 2011 10:52 *To:* Derek Baker *Cc:* tinyos-help@millennium.berkeley.edu *Subject:* Re: [Tinyos-help] Uart v Usci Hi Derek, I'm currently working on integrating the msp430 core code for the three major msp430 families (the x1, x2, and x5). You are using an x5 part. I'm guessing the cc430f5137 because I beleive you are basing off of the osian/surf board code. When you post question onto tinyos-help (or for that matter anywhere) it would be helpful if you included the specifics of exactly what you are working with so we don't have to guess. That also applies to what flavor of em430 board you are using. TI makes many different eval boards for their processors. For example, I have an eval board for the 5438 that is significantly different from the eval board that the surf folks called the em430. So calling it the em430 doesn't convey alot of information. On Wed, May 18, 2011 at 2:14 AM, Derek Baker derek.ba...@claritas-solutions.com wrote: Hi, can anybody explain to me the difference between the msp430/usci and msp430/uart drivers, The devil is in the details.I think you are talking about tos/chips/msp430/usart vs. tos/chips/msp430/usci. The usart driver (tos/chips/msp430/usart) is the driver for the x1 family peripheral (the USART). On the x2 and x5 family parts there is a different peripheral called the USCI. It is a different beast and has a different driver. There are basically differnt flavors of what these modules do. The USART on the x1 parts only has I2C on port 0 and this is reflected in the code. The USCI situation is also convoluted. The X2 implementation of USCI vs. the x5 implementation has some significant warts. In particular how interrupts are dealt with and where the register
[Tinyos-help] Low Power Applictions
Hi all, I intend to use Low Power Listening for sensor communication. I read the tutorial under http://docs.tinyos.net/index.php/Writing_Low-Power_Applications, but it is still unclear to me how it works. Is it possible to use it for shimmer too? I have tried to install the LowPowerSensing from the tutorials folder, but I have faced to the following error: nap@NAP:/opt/tinyos-2.1.1/apps/tutorials/LowPowerSensing$ cd Base nap@NAP:/opt/tinyos-2.1.1/apps/tutorials/LowPowerSensing/Base$ make shimmer install.0 mkdir -p build/shimmer compiling LowPowerSensingBaseAppC to a shimmer binary ncc -o build/shimmer/main.exe -Os -O -mdisable-hwmul -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=shimmer -fnesc-cfile=build/shimmer/app.c -board= -DDEFINED_TOS_AM_GROUP=0x22 -I.. -I../universal_sensors -DLOW_POWER_LISTENING -DIDENT_APPNAME=\LowPowerSensing\ -DIDENT_USERNAME=\nap\ -DIDENT_HOSTNAME=\NAP\ -DIDENT_USERHASH=0x23204da4L -DIDENT_TIMESTAMP=0x4dd3a38dL -DIDENT_UIDHASH=0x33066a8fL LowPowerSensingBaseAppC.nc -lm In file included from LowPowerSensingBaseAppC.nc:37: ../LowPowerSensingConstants.h:41:28: error: StorageVolumes.h: No such file or directory /opt/tinyos-2.1.1/tos/chips/cc2420/lpl/DefaultLplC.nc:39:2: warning: #warning *** USING DEFAULT LOW POWER COMMUNICATIONS *** make: *** [exe0] Error 1 Does anyone have any idea where can I find more information or some sample codes for this? Thank you in advance! Parisa ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Runing Surge_Reliable Apps
Hi All, I compiled and loaded Surge_Reliable application into two micaz motes by giving them ID 0 and 1 as per instructions using cygwin. During compilation and burning the app into the motes there were many warnings but no errors. Then I wanted to see how Surge_Reliable app works in multihop routing. So, Mote with ID 0 is connected to Mib520 programming board to work as a Base station and mote with ID 1 powered on using batteries. Now I wanted to see the routing information using Surge-View. Firstly, I ran SerialForwarder. I ran the serialforwarder for COM4 since I could burn the app into the mote using make micaz install.0 mib510,/dev/ttyS3 SerialForwarder gives me the following output Listening to serial@COM4 Listening for client connections on port 9001 serial@COM4:19200: resynchronising I came to know that it means COM4 is not listening or not connected? Then I ran Surge 125 and GUI appeared but there is no mote and other information in that GUI. Can anyone pls tell me what am I doing wrong. I would appreciate if you kindly help me running this application properly. If there is anyone who could run Surge_Reliable apps? Thanks. Nazmul___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] No such file or directory -2.x/tos
Hi, I have tried to port Tiny os on to the cc2430em but i'm getting the following error . I'm getting the following error when I complie the BlinkNoTimer application error:No such file or directory -2.x/tos the following is the env path seeting I have done export TOSDIR=/opt/tinyos-2.x/tos/export MAKERULES=$TOSDIR/../support/make/Makerulesexport CONTRIBROOT=/opt/tinyos-2.x-contribexport TOSMAKE_PATH="$TOSMAKEPATH $CONTRIBROOT/diku/sensinode/support/make $CONTRIBROOT/diku/mcs51/support/make"export MCS51_COMPILER=keil . What is problem pls help me regards Chethan K PTata Consultancy ServicesAbhilash Software Development Centre,Plot No. 96, EPIP Industrial Area, Whitefield,Bangalore - 560066,KarnatakaIndiaCell:- 09343401717Mailto: chetha...@tcs.comWebsite: http://www.tcs.comExperience certainty. IT ServicesBusiness SolutionsOutsourcing =-=-=Notice: The information contained in this e-mailmessage and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] !!!
Hi guys, I am facing a huge problem. I want to read the RSSI from telosb when it is not receiving packets. In such order I want to send to this value to my pc using the SerialForwarder, because I want to see what is the value when there isn't useful received signal. I know that that there is an interface called ReadRssi provided by CC2420ControlC component, but I don't how to get the value when there isn't stream of packets. I will be grateful if someone has an idea how to achieve this. Thank you preliminarily /n01d ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Read ADC Voltage on Mica2
Hello, How can i read the ADC6 channel (Voltage Readings) of a mica2 mote? I only found a DemoSensor!? http://www.tinyos.net/dist-2.0.0/tinyos-2.x/doc/html/tutorial/lesson5.html What can I use to read the ADC6, how to configure that, are there some sample programs? Thank you. Regards, Gerald -- NEU: FreePhone - kostenlos mobil telefonieren und surfen! Jetzt informieren: http://www.gmx.net/de/go/freephone ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] java net.tinyos.tools.MsgReader
Hello,In the tutorial Mote-PC serial communication and SerialForwarder (pre-T2.1.1) the command java net.tinyos.tools.MsgReader echo error like this sinwel@ubuntu:/opt/tinyos-2.x/apps/tutorials/BlinkToRadio$ java net.tinyos.tools.MsgReader -commserial@dev/ttyUSB1Exception in thread main java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:334) at net.tinyos.packet.Platform.get(Platform.java:23) at net.tinyos.packet.BuildSource.decodeBaudrate(BuildSource.java:201) at net.tinyos.packet.BuildSource.makeArgsSerial(BuildSource.java:227) at net.tinyos.packet.BuildSource.makePacketSource(BuildSource.java:138) at net.tinyos.packet.BuildSource.makePhoenix(BuildSource.java:87) at net.tinyos.tools.MsgReader.init(MsgReader.java:56) at net.tinyos.tools.MsgReader.main(MsgReader.java:109) Thank you.___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Converting the Raw values of the Read Rssi
Does someone know how to convert the raw values of the read rssi values into dBms. I know that if you want get the rssi with get.rssi it is supposed to extract 45 entities, but I don't know how entities must be substract when using ReadRssi! ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] blip - IRIS
Hi, There is any revision of blip-2.0 development tree working (or tinyos-main) in IRIS? I'm trying use dhcpv6 for doing address assignment but in blip version in tinyos-2.1.1 does not exist support for that and after some search I found that was included only in rev 5244 in tinyos-main svn. Using last revision of blip-rpl-devel the errors are similar of reported here: http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg37529.html /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:120: component CC2420PacketC not found /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:58: no match /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:61: cannot find `BarePacket' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:62: cannot find `BareSend' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:63: cannot find `BareReceive' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:85: no match make: *** [exe0] Error 1 Using last rev of tinyos-main: In component `Ieee154AddressC': /home/tinyos-main-read-only/tos/lib/net/blip/Ieee154AddressC.nc:15: component CC2420ControlC not found /home/tinyos-main-read-only/tos/lib/net/blip/Ieee154AddressC.nc:16: no match In component `UDPEchoC': UDPEchoC.nc:61: cannot find `IPStats' UDPEchoC.nc:62: cannot find `UDPStats' UDPEchoC.nc:63: cannot find `RouteStats' UDPEchoC.nc:64: cannot find `ICMPStats' make: ** [exe0] Error 1 -Mensagem original- De: tinyos-help-boun...@millennium.berkeley.edu [mailto:tinyos-help-boun...@millennium.berkeley.edu] Em nome de Miklos Maroti Enviada: sexta-feira, 14 de Janeiro de 2011 21:08 Para: Carlos Rodrigues; TinyOS Assunto: Re: [Tinyos-help] 6lowpan/blip installation errors Hi Carlos, The CVS is obsolete, try to use the SVN from google code: http://code.google.com/p/tinyos-main/ It might work. Best, Miklos On Fri, Jan 14, 2011 at 3:27 PM, Carlos Rodrigues rodrigues.carlo...@gmail.com wrote: Hi, My name is Carlos Rodrigues and i'm starting work in my master thesis, about sensor networks. I'm trying compiling IPBaseStation (last version in cvs) on iris but the compilation fails with the error below. It is possible give some lights about how solve this problem? root@ubuntu:/home/carlos/IPBaseStation# make iris blib install mib510,/dev/ttyUSB0 mkdir -p build/iris compiling BaseStationC to a iris binary ncc -o build/iris/main.exe -Os -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=iris -fnesc-cfile=build/iris/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=10 -DNO_IP_MALLOC -DIEEE154FRAMES_ENABLED -DIDENT_APPNAME=\BaseStationC\ -DIDENT_USERNAME=\root\ -DIDENT_HOSTNAME=\ubuntu\ -DIDENT_USERHASH=0xa3473ba6L -DIDENT_TIMESTAMP=0x4d3059cbL -DIDENT_UIDHASH=0x5e9a1276L -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/iris/wiring-check.xml BaseStationC.nc -lm BaseStationP.nc:93:21: error: devconf.h: No such file or directory BaseStationP.nc:94:24: error: lib6lowpan.h: No such file or directory In file included from BaseStationC.nc:81: In component `BaseStationP': BaseStationP.nc:112: interface IPAddress not found In file included from BaseStationC.nc:81: BaseStationP.nc:139: `BLIP_L2_RETRIES' undeclared here (not in a function) BaseStationP.nc:140: `BLIP_L2_DELAY' undeclared here (not in a function) BaseStationP.nc:149: syntax error before `*' BaseStationP.nc: In function `configureReply.runTask': BaseStationP.nc:180: `reply' undeclared (first use in this function) BaseStationP.nc:180: (Each undeclared identifier is reported only once BaseStationP.nc:180: for each function it appears in.) BaseStationP.nc:180: interface has no command or event named `getShortAddr' BaseStationP.nc: In function `Boot.booted': BaseStationP.nc:218: `reply' undeclared (first use in this function) BaseStationP.nc:218: `config_reply_t' undeclared (first use in this function) BaseStationP.nc:218: syntax error before `)' BaseStationP.nc: In function `SerialControl.startDone': BaseStationP.nc:237: `reply' undeclared (first use in this function) BaseStationP.nc:237: `CONFIG_ERROR_BOOTED' undeclared (first use in this function) BaseStationP.nc: In function `ConfigureReceive.receive': BaseStationP.nc:424: `config_cmd_t' undeclared (first use in this function) BaseStationP.nc:424: `cmd' undeclared (first use in this function) BaseStationP.nc:425: syntax error before `error' BaseStationP.nc:433: syntax error before `)' BaseStationP.nc:436: `CONFIG_ECHO' undeclared (first use in this function) BaseStationP.nc:436: case label does not reduce to an integer constant BaseStationP.nc:438: `CONFIG_SET_PARM' undeclared (first use in this function) BaseStationP.nc:438: case label does not reduce to an integer constant BaseStationP.nc:442: interface has no command or event named
Re: [Tinyos-help] blip - IRIS
Hi! We are currently in the process of trying to provide blip support for RF2x-based platforms. Thanks! -John On May 18, 2011, at 9:02 AM, Carlos Rodrigues wrote: Hi, There is any revision of blip-2.0 development tree working (or tinyos-main) in IRIS? I'm trying use dhcpv6 for doing address assignment but in blip version in tinyos-2.1.1 does not exist support for that and after some search I found that was included only in rev 5244 in tinyos-main svn. Using last revision of blip-rpl-devel the errors are similar of reported here: http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg37529.html /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:120: component CC2420PacketC not found /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:58: no match /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:61: cannot find `BarePacket' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:62: cannot find `BareSend' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:63: cannot find `BareReceive' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:85: no match make: *** [exe0] Error 1 Using last rev of tinyos-main: In component `Ieee154AddressC': /home/tinyos-main-read-only/tos/lib/net/blip/Ieee154AddressC.nc:15: component CC2420ControlC not found /home/tinyos-main-read-only/tos/lib/net/blip/Ieee154AddressC.nc:16: no match In component `UDPEchoC': UDPEchoC.nc:61: cannot find `IPStats' UDPEchoC.nc:62: cannot find `UDPStats' UDPEchoC.nc:63: cannot find `RouteStats' UDPEchoC.nc:64: cannot find `ICMPStats' make: ** [exe0] Error 1 -Mensagem original- De: tinyos-help-boun...@millennium.berkeley.edu [mailto:tinyos-help-boun...@millennium.berkeley.edu] Em nome de Miklos Maroti Enviada: sexta-feira, 14 de Janeiro de 2011 21:08 Para: Carlos Rodrigues; TinyOS Assunto: Re: [Tinyos-help] 6lowpan/blip installation errors Hi Carlos, The CVS is obsolete, try to use the SVN from google code: http://code.google.com/p/tinyos-main/ It might work. Best, Miklos On Fri, Jan 14, 2011 at 3:27 PM, Carlos Rodrigues rodrigues.carlo...@gmail.com wrote: Hi, My name is Carlos Rodrigues and i'm starting work in my master thesis, about sensor networks. I'm trying compiling IPBaseStation (last version in cvs) on iris but the compilation fails with the error below. It is possible give some lights about how solve this problem? root@ubuntu:/home/carlos/IPBaseStation# make iris blib install mib510,/dev/ttyUSB0 mkdir -p build/iris compiling BaseStationC to a iris binary ncc -o build/iris/main.exe -Os -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=iris -fnesc-cfile=build/iris/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=10 -DNO_IP_MALLOC -DIEEE154FRAMES_ENABLED -DIDENT_APPNAME=\BaseStationC\ -DIDENT_USERNAME=\root\ -DIDENT_HOSTNAME=\ubuntu\ -DIDENT_USERHASH=0xa3473ba6L -DIDENT_TIMESTAMP=0x4d3059cbL -DIDENT_UIDHASH=0x5e9a1276L -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/iris/wiring-check.xml BaseStationC.nc -lm BaseStationP.nc:93:21: error: devconf.h: No such file or directory BaseStationP.nc:94:24: error: lib6lowpan.h: No such file or directory In file included from BaseStationC.nc:81: In component `BaseStationP': BaseStationP.nc:112: interface IPAddress not found In file included from BaseStationC.nc:81: BaseStationP.nc:139: `BLIP_L2_RETRIES' undeclared here (not in a function) BaseStationP.nc:140: `BLIP_L2_DELAY' undeclared here (not in a function) BaseStationP.nc:149: syntax error before `*' BaseStationP.nc: In function `configureReply.runTask': BaseStationP.nc:180: `reply' undeclared (first use in this function) BaseStationP.nc:180: (Each undeclared identifier is reported only once BaseStationP.nc:180: for each function it appears in.) BaseStationP.nc:180: interface has no command or event named `getShortAddr' BaseStationP.nc: In function `Boot.booted': BaseStationP.nc:218: `reply' undeclared (first use in this function) BaseStationP.nc:218: `config_reply_t' undeclared (first use in this function) BaseStationP.nc:218: syntax error before `)' BaseStationP.nc: In function `SerialControl.startDone': BaseStationP.nc:237: `reply' undeclared (first use in this function) BaseStationP.nc:237: `CONFIG_ERROR_BOOTED' undeclared (first use in this function) BaseStationP.nc: In function `ConfigureReceive.receive': BaseStationP.nc:424: `config_cmd_t' undeclared (first use in this function) BaseStationP.nc:424: `cmd' undeclared (first use in this function) BaseStationP.nc:425: syntax error before `error' BaseStationP.nc:433: syntax error before `)' BaseStationP.nc:436: `CONFIG_ECHO' undeclared (first use in this function) BaseStationP.nc:436: case label does not reduce to an integer constant BaseStationP.nc:438: `CONFIG_SET_PARM'
Re: [Tinyos-help] On JTAG adapter for Telos
Eric: Thank you for the double check for me. Antonio: thank you for the confirmation. I guess we'll make a custom adapter then. Best regards, Jun On Wed, May 18, 2011 at 3:23 AM, Eric Decker cire...@gmail.com wrote: On Tue, May 17, 2011 at 3:03 PM, Antonio Linan ali...@zolertia.com wrote: If you need a JTAG connector: http://shop.zolertia.com/accessories/20-jtag-header-kit.html And also something like the Texas Instruments USB FET programmer. Antonio. I too wanted to find a connection solution for hooking a JTAG to a telosb so looked carefully at the schematics for both the telosb and Z1. Turns out that the pin out for the Z1 JTAG header and the Telosb JTAG header are significantly different and the pin spacing doesn't match either. So unfortunately the Z1 JTAG header solution won't work for the telosb. On Tue, May 17, 2011 at 11:22 PM, Jun yanjunrock...@gmail.com wrote: Hi All, I need to use JTAG to debug TOS on telosb mote. It seems that I'll need an adapter to set up the connection to the mote as the following article says. http://sentilla.com/files/pdf/eol/moteiv-an-002.pdf However, it seems that sentilla is not selling it anymore. Is there any other alternative for this? Thank you, Jun ___ 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 -- Eric B. Decker Senior (over 50 :-) Researcher -- -- Mailto: yanjunrock...@gmail.com ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] I cannot find /tools
Good evening! I have a noob question! I was supposed (due to tutorial's instructions: http://docs.tinyos.net/index.php/Deluge_T2) to visit *tinyos-2.x/tools/tinyos/misc* (where *x* is *1.0* in my case) but this directory does not exist. The whole idea was to execute: * % cd $TOSROOT/tools* * % ./Bootstrap* * ...* * % ./configure* * ...* * % cd tinyos/misc* * % make ; make install* * ...* in order to use the Deluge T2 protocol...but I cannot find *tools*! I looked around but the* tools* directory I found had nothing to do with my problem. Ideas? Thank you 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] I cannot find /tools
if you install tinyos via apt-get, you may not have tools directory in TOSROOT. If you want to use deluge, plz go googlecode searching tinyos-main, downloading the tinyos files via SVN. Or go sourceforge downloaded it via CVS. 2011/5/19 Geo Gkolfin geo198...@gmail.com Good evening! I have a noob question! I was supposed (due to tutorial's instructions: http://docs.tinyos.net/index.php/Deluge_T2) to visit *tinyos-2.x/tools/tinyos/misc* (where *x* is *1.0* in my case) but this directory does not exist. The whole idea was to execute: * % cd $TOSROOT/tools* * % ./Bootstrap* * ...* * % ./configure* * ...* * % cd tinyos/misc* * % make ; make install* * ...* in order to use the Deluge T2 protocol...but I cannot find *tools*! I looked around but the* tools* directory I found had nothing to do with my problem. Ideas? Thank you in advance, Georgia ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Xu Jingwei State Key Laboratory for Novel Software Technology Department of Computer Science and Technology Nanjing University, Nanjing, China ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Read ADC Voltage on Mica2
DemoSensor and the ADC (used to) have the same interface definition so you should be able to just swap one with the other. (un)Fortunately I don't use T2 so I can't help with details, but perusing the doc/tutorial might give you some guidance. MS surfma...@gmx.at wrote: Hello, How can i read the ADC6 channel (Voltage Readings) of a mica2 mote? I only found a DemoSensor!? http://www.tinyos.net/dist-2.0.0/tinyos-2.x/doc/html/tutorial/lesson5.html What can I use to read the ADC6, how to configure that, are there some sample programs? Thank you. Regards, Gerald ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] how to get RSSI
hello friends i am new in tinyos. i want to know how to get RSSI value? please explain in datail including which directory has what function/toolsplease.. thank you in advance -- ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Converting the Raw values of the Read Rssi
Hi, I don't understand what are the entities you mention. To get RSSI on CC2420- based nodes, you can call the CC2420Packet.getRssi function. The offset to transform the raw value to dBm should be esperimentally determined, but it is approximately -45. Thus, if getRssi returns -10, the RF input power is approximtely -10-45 = -55 dBm. Please refer to CC2420 datasheet for more details. Regards, Giuseppe On Wednesday 18 May 2011 10:26:22 Lyubomir Ivanov wrote: Does someone know how to convert the raw values of the read rssi values into dBms. I know that if you want get the rssi with get.rssi it is supposed to extract 45 entities, but I don't know how entities must be substract when using ReadRssi! -- Giuseppe Cardone, Ph.D. Student DEIS-LIA - University of Bologna E-mail: giuseppe.card...@unibo.it Web: http://lia.deis.unibo.it/Staff/GiuseppeCardone/ LA RICERCA C’È E SI VEDE: 5 per mille all'Università di Bologna - C.F.: 80007010376 http://www.unibo.it/Vademecum5permille.htm Questa informativa è inserita in automatico dal sistema al fine esclusivo della realizzazione dei fini istituzionali dell’ente. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] !!!
Hi, you can find a sample application that measures environmental RSSI using the CC2420ControlC component in apps/tests/cc2420/RssiToSerial . In general, you have to wire a Readuint16_t interface to CC2420ControlC.ReadRssi and call the read() function, the calling component will be notified by a sendDone event containing the measured RSSI value. As a side note, for the next emails that you'll send to this mailing list, please use subjects more meaningful than !!! (for example: Measuring environmental RSSI with CC2420), it makes reading the mailing list threads much easier to follow). Thank you. Regards, Giuseppe On Wednesday 18 May 2011 09:13:54 Lyubomir Ivanov wrote: Hi guys, I am facing a huge problem. I want to read the RSSI from telosb when it is not receiving packets. In such order I want to send to this value to my pc using the SerialForwarder, because I want to see what is the value when there isn't useful received signal. I know that that there is an interface called ReadRssi provided by CC2420ControlC component, but I don't how to get the value when there isn't stream of packets. I will be grateful if someone has an idea how to achieve this. Thank you preliminarily /n01d -- Giuseppe Cardone, Ph.D. Student DEIS-LIA - University of Bologna E-mail: giuseppe.card...@unibo.it Web: http://lia.deis.unibo.it/Staff/GiuseppeCardone/ LA RICERCA C’È E SI VEDE: 5 per mille all'Università di Bologna - C.F.: 80007010376 http://www.unibo.it/Vademecum5permille.htm Questa informativa è inserita in automatico dal sistema al fine esclusivo della realizzazione dei fini istituzionali dell’ente. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] motelist doesn't show anything
hello every body, I have installed tinyos with Cygwin on my PC (system windows 7) in order to work with telosb nodes, the installation goes well and the command tos-check-env went perfect with no errors but when I write the command 'motelist' it doesn't show anything despite I have already onenode connected to my PC.Please help me if you had face this problem because I have no much time.Thanks for help.___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Concerning RSSI values in TOSSIM
Hi all, I am using TinyOS 2.1.0 under Xubuntos in my project. I want to get the RSSI values in my simulation using TOSSIM as simulator. I used the command call CC2420Packet.getRssi(msg) The component is successfully buit. But when I built it for the simulation (make micaz sim), i get an error saying that the component CC2420PacketC not found. Any help please for this problem ? Thanks in advance, -- Mohamed Maâlej Tél: 96481112 ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] GraphViz
Hi there, My project correctly work today but i would like to know how to visualized the results . I have read the part of tutorial tinyos Visualizing a Component Graph also I have download Graphviz from internet. But i have problem. I work on the virtual machine, i have install VirtualBox-4.0.4-70112-Win my host is windows 7. I program with tinyos 2.x I would like to know if i must install this GraphViz directly on my host or on the VirtualBox or i should install another one. Really i'm totally confused I need to know how to visualize my results on the virtualbox where i work program. please help Regards Amel, ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] No such file or directory -2.x/tos
Giving us partial information doesn't make it very likely that we will be able to help you. Try including how your environment is set up and more importantly the full command line that you are trying to execute. How can we tell you what is wrong when the only thing you give us is the criptic error message without any context. Think to yourself, how can I make this easy for the folks trying to help me. On Wed, May 18, 2011 at 5:04 AM, Chethan P chetha...@tcs.com wrote: Hi, I have tried to port Tiny os on to the cc2430em but i'm getting the following error . I'm getting the following error when I complie the BlinkNoTimer application error: No such file or directory -2.x/tos the following is the env path seeting I have done export TOSDIR=/opt/tinyos-2.x/tos/ export MAKERULES=$TOSDIR/../support/make/Makerules export CONTRIBROOT=/opt/tinyos-2.x-contrib export TOSMAKE_PATH=$TOSMAKEPATH $CONTRIBROOT/diku/sensinode/support/make $CONTRIBROOT/diku/mcs51/support/make export MCS51_COMPILER=keil . What is problem pls help me regards Chethan K P Tata Consultancy Services Abhilash Software Development Centre, Plot No. 96, EPIP Industrial Area, Whitefield, Bangalore - 560066,Karnataka India Cell:- 09343401717 Mailto: chetha...@tcs.com Website: http://www.tcs.com Experience certainty. IT Services Business Solutions Outsourcing =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you ___ 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
Re: [Tinyos-help] java net.tinyos.tools.MsgReader
Hey there make sure you have either set the MOTECOM environment variable (as explained in the tutorial) or use java net.tinyos.tools.MsgReader -comm serial@DEVICE:platform DEVICE you can get via the command motelist , platform= micaz or telosb or telos or telosa etc hope that helps vamsidhar ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] !!!
Hi, please note that CC2420ControlP shifts the RSSI reading by 0x7f, as you can see from this function copied from CC2420ControlP.nc: event void RssiResource.granted() { uint16_t data = 0; call CSN.clr(); call RSSI.read(data); call CSN.set(); call RssiResource.release(); data += 0x7f; data = 0x00ff; signal ReadRssi.readDone(SUCCESS, data); } thus you'll have to subtract 0x7f and then subtract 45 (refer to the CC2420 datasheet to understand better how RSSI sampling works) to get the RSSI value in dBm. Please send further questions directly to the mailing list, thank you. Regards, Giuseppe On Wednesday 18 May 2011 15:41:58 Lyubomir Ivanov wrote: Hi Giuseppe, We have already implemented in the same way as you said. But anyway thanks. May be because I was in hurry I posted such a meaningless title of the topic. I do not know if you have noticed that getting the environmental RSSI by using cc2420controlC component gives different result. Yes, it is normal to have difference in the result, but in this case it supposed to substract more, because the raw values are more 70. Naturally, these values depend on the environment. So if you know with how much approximately to substract of this value, let me know ;] Thank you in advance. Оригинално писмо От: Giuseppe Cardone Относно: Re: [Tinyos-help] !!! До: Изпратено на: Сряда, 2011, Май 18 19:38:45 EEST Hi, you can find a sample application that measures environmental RSSI using the CC2420ControlC component in apps/tests/cc2420/RssiToSerial . In general, you have to wire a Read interface to CC2420ControlC.ReadRssi and call the read() function, the calling component will be notified by a sendDone event containing the measured RSSI value. As a side note, for the next emails that you'll send to this mailing list, please use subjects more meaningful than !!! (for example: Measuring environmental RSSI with CC2420), it makes reading the mailing list threads much easier to follow). Thank you. Regards, Giuseppe On Wednesday 18 May 2011 09:13:54 Lyubomir Ivanov wrote: Hi guys, I am facing a huge problem. I want to read the RSSI from telosb when it is not receiving packets. In such order I want to send to this value to my pc using the SerialForwarder, because I want to see what is the value when there isn't useful received signal. I know that that there is an interface called ReadRssi provided by CC2420ControlC component, but I don't how to get the value when there isn't stream of packets. I will be grateful if someone has an idea how to achieve this. Thank you preliminarily /n01d -- Giuseppe Cardone, Ph.D. Student DEIS-LIA - University of Bologna E-mail: giuseppe.card...@unibo.it Web: http://lia.deis.unibo.it/Staff/GiuseppeCardone/ LA RICERCA C’È E SI VEDE: 5 per mille all'Università di Bologna - C.F.: 80007010376 http://www.unibo.it/Vademecum5permille.htm Questa informativa è inserita in automatico dal sistema al fine esclusivo della realizzazione dei fini istituzionali dell’ente. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Giuseppe Cardone, Ph.D. Student DEIS-LIA - University of Bologna E-mail: giuseppe.card...@unibo.it Web: http://lia.deis.unibo.it/Staff/GiuseppeCardone/ LA RICERCA C’È E SI VEDE: 5 per mille all'Università di Bologna - C.F.: 80007010376 http://www.unibo.it/Vademecum5permille.htm Questa informativa è inserita in automatico dal sistema al fine esclusivo della realizzazione dei fini istituzionali dell’ente. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] blip - IRIS
Hi John, Let me know if I can help in this process. I can fix things up in the rfxlink library if you need something for BLIP. Best, Miklos On Wed, May 18, 2011 at 5:16 PM, JeongGil Ko (John) j...@cs.jhu.edu wrote: Hi! We are currently in the process of trying to provide blip support for RF2x-based platforms. Thanks! -John On May 18, 2011, at 9:02 AM, Carlos Rodrigues wrote: Hi, There is any revision of blip-2.0 development tree working (or tinyos-main) in IRIS? I'm trying use dhcpv6 for doing address assignment but in blip version in tinyos-2.1.1 does not exist support for that and after some search I found that was included only in rev 5244 in tinyos-main svn. Using last revision of blip-rpl-devel the errors are similar of reported here: http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg37529.html /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:120: component CC2420PacketC not found /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:58: no match /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:61: cannot find `BarePacket' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:62: cannot find `BareSend' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:63: cannot find `BareReceive' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:85: no match make: *** [exe0] Error 1 Using last rev of tinyos-main: In component `Ieee154AddressC': /home/tinyos-main-read-only/tos/lib/net/blip/Ieee154AddressC.nc:15: component CC2420ControlC not found /home/tinyos-main-read-only/tos/lib/net/blip/Ieee154AddressC.nc:16: no match In component `UDPEchoC': UDPEchoC.nc:61: cannot find `IPStats' UDPEchoC.nc:62: cannot find `UDPStats' UDPEchoC.nc:63: cannot find `RouteStats' UDPEchoC.nc:64: cannot find `ICMPStats' make: ** [exe0] Error 1 -Mensagem original- De: tinyos-help-boun...@millennium.berkeley.edu [mailto:tinyos-help-boun...@millennium.berkeley.edu] Em nome de Miklos Maroti Enviada: sexta-feira, 14 de Janeiro de 2011 21:08 Para: Carlos Rodrigues; TinyOS Assunto: Re: [Tinyos-help] 6lowpan/blip installation errors Hi Carlos, The CVS is obsolete, try to use the SVN from google code: http://code.google.com/p/tinyos-main/ It might work. Best, Miklos On Fri, Jan 14, 2011 at 3:27 PM, Carlos Rodrigues rodrigues.carlo...@gmail.com wrote: Hi, My name is Carlos Rodrigues and i'm starting work in my master thesis, about sensor networks. I'm trying compiling IPBaseStation (last version in cvs) on iris but the compilation fails with the error below. It is possible give some lights about how solve this problem? root@ubuntu:/home/carlos/IPBaseStation# make iris blib install mib510,/dev/ttyUSB0 mkdir -p build/iris compiling BaseStationC to a iris binary ncc -o build/iris/main.exe -Os -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=iris -fnesc-cfile=build/iris/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=10 -DNO_IP_MALLOC -DIEEE154FRAMES_ENABLED -DIDENT_APPNAME=\BaseStationC\ -DIDENT_USERNAME=\root\ -DIDENT_HOSTNAME=\ubuntu\ -DIDENT_USERHASH=0xa3473ba6L -DIDENT_TIMESTAMP=0x4d3059cbL -DIDENT_UIDHASH=0x5e9a1276L -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/iris/wiring-check.xml BaseStationC.nc -lm BaseStationP.nc:93:21: error: devconf.h: No such file or directory BaseStationP.nc:94:24: error: lib6lowpan.h: No such file or directory In file included from BaseStationC.nc:81: In component `BaseStationP': BaseStationP.nc:112: interface IPAddress not found In file included from BaseStationC.nc:81: BaseStationP.nc:139: `BLIP_L2_RETRIES' undeclared here (not in a function) BaseStationP.nc:140: `BLIP_L2_DELAY' undeclared here (not in a function) BaseStationP.nc:149: syntax error before `*' BaseStationP.nc: In function `configureReply.runTask': BaseStationP.nc:180: `reply' undeclared (first use in this function) BaseStationP.nc:180: (Each undeclared identifier is reported only once BaseStationP.nc:180: for each function it appears in.) BaseStationP.nc:180: interface has no command or event named `getShortAddr' BaseStationP.nc: In function `Boot.booted': BaseStationP.nc:218: `reply' undeclared (first use in this function) BaseStationP.nc:218: `config_reply_t' undeclared (first use in this function) BaseStationP.nc:218: syntax error before `)' BaseStationP.nc: In function `SerialControl.startDone': BaseStationP.nc:237: `reply' undeclared (first use in this function) BaseStationP.nc:237: `CONFIG_ERROR_BOOTED' undeclared (first use in this function) BaseStationP.nc: In function `ConfigureReceive.receive': BaseStationP.nc:424: `config_cmd_t' undeclared (first use in this function) BaseStationP.nc:424: `cmd' undeclared (first use in this function) BaseStationP.nc:425: syntax error before `error' BaseStationP.nc:433: syntax error
Re: [Tinyos-help] blip - IRIS
Oh, this is great! I think all of your changes should be radio chip independent, so it should work with IRIS as well. Miklos On Thu, May 19, 2011 at 12:58 AM, JeongGil Ko (John) jeonggil...@gmail.com wrote: Miklos, I am currently getting help from Markus (net2) and we are starting with cc2420x and cc2520 radios first. We'll keep you in the loop of the progress. :) Thanks! -John On May 18, 2011, at 6:16 PM, Miklos Maroti mmar...@math.u-szeged.hu wrote: Hi John, Let me know if I can help in this process. I can fix things up in the rfxlink library if you need something for BLIP. Best, Miklos On Wed, May 18, 2011 at 5:16 PM, JeongGil Ko (John) j...@cs.jhu.edu wrote: Hi! We are currently in the process of trying to provide blip support for RF2x-based platforms. Thanks! -John On May 18, 2011, at 9:02 AM, Carlos Rodrigues wrote: Hi, There is any revision of blip-2.0 development tree working (or tinyos-main) in IRIS? I'm trying use dhcpv6 for doing address assignment but in blip version in tinyos-2.1.1 does not exist support for that and after some search I found that was included only in rev 5244 in tinyos-main svn. Using last revision of blip-rpl-devel the errors are similar of reported here: http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg37529.html /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:120: component CC2420PacketC not found /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:58: no match /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:61: cannot find `BarePacket' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:62: cannot find `BareSend' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:63: cannot find `BareReceive' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:85: no match make: *** [exe0] Error 1 Using last rev of tinyos-main: In component `Ieee154AddressC': /home/tinyos-main-read-only/tos/lib/net/blip/Ieee154AddressC.nc:15: component CC2420ControlC not found /home/tinyos-main-read-only/tos/lib/net/blip/Ieee154AddressC.nc:16: no match In component `UDPEchoC': UDPEchoC.nc:61: cannot find `IPStats' UDPEchoC.nc:62: cannot find `UDPStats' UDPEchoC.nc:63: cannot find `RouteStats' UDPEchoC.nc:64: cannot find `ICMPStats' make: ** [exe0] Error 1 -Mensagem original- De: tinyos-help-boun...@millennium.berkeley.edu [mailto:tinyos-help-boun...@millennium.berkeley.edu] Em nome de Miklos Maroti Enviada: sexta-feira, 14 de Janeiro de 2011 21:08 Para: Carlos Rodrigues; TinyOS Assunto: Re: [Tinyos-help] 6lowpan/blip installation errors Hi Carlos, The CVS is obsolete, try to use the SVN from google code: http://code.google.com/p/tinyos-main/ It might work. Best, Miklos On Fri, Jan 14, 2011 at 3:27 PM, Carlos Rodrigues rodrigues.carlo...@gmail.com wrote: Hi, My name is Carlos Rodrigues and i'm starting work in my master thesis, about sensor networks. I'm trying compiling IPBaseStation (last version in cvs) on iris but the compilation fails with the error below. It is possible give some lights about how solve this problem? root@ubuntu:/home/carlos/IPBaseStation# make iris blib install mib510,/dev/ttyUSB0 mkdir -p build/iris compiling BaseStationC to a iris binary ncc -o build/iris/main.exe -Os -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=iris -fnesc-cfile=build/iris/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=10 -DNO_IP_MALLOC -DIEEE154FRAMES_ENABLED -DIDENT_APPNAME=\BaseStationC\ -DIDENT_USERNAME=\root\ -DIDENT_HOSTNAME=\ubuntu\ -DIDENT_USERHASH=0xa3473ba6L -DIDENT_TIMESTAMP=0x4d3059cbL -DIDENT_UIDHASH=0x5e9a1276L -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/iris/wiring-check.xml BaseStationC.nc -lm BaseStationP.nc:93:21: error: devconf.h: No such file or directory BaseStationP.nc:94:24: error: lib6lowpan.h: No such file or directory In file included from BaseStationC.nc:81: In component `BaseStationP': BaseStationP.nc:112: interface IPAddress not found In file included from BaseStationC.nc:81: BaseStationP.nc:139: `BLIP_L2_RETRIES' undeclared here (not in a function) BaseStationP.nc:140: `BLIP_L2_DELAY' undeclared here (not in a function) BaseStationP.nc:149: syntax error before `*' BaseStationP.nc: In function `configureReply.runTask': BaseStationP.nc:180: `reply' undeclared (first use in this function) BaseStationP.nc:180: (Each undeclared identifier is reported only once BaseStationP.nc:180: for each function it appears in.) BaseStationP.nc:180: interface has no command or event named `getShortAddr' BaseStationP.nc: In function `Boot.booted': BaseStationP.nc:218: `reply' undeclared (first use in this function) BaseStationP.nc:218: `config_reply_t' undeclared (first use in this function) BaseStationP.nc:218: syntax error before `)' BaseStationP.nc: In function `SerialControl.startDone':
Re: [Tinyos-help] is there a struct definition rule?
Thank you very much. I find the following function is causing the mote to crash. Everything works find if ne-flags is set to 0, and the mote crashes if it is set to 5 (the only change). This is the weirdest bug I have even seen and I'm not familiar with assembly code. Please help. I use msp430-objdump -d --source main.exe and below is the code snippet and their respective assembly. void initNeighborIdx(uint8_t i, am_addr_t ll_addr) { neighbor_table_entry_t *ne; ne = NeighborTable[i]; ne-ll_addr = ll_addr; ne-lastseq = 0; ne-rcvcnt = 0; ne-failcnt = 0; ne-flags = 0; ne-inage = MAX_AGE; ne-inquality = 0; ne-eetx = 0; } 729c LinkEstimatorP__initNeighborIdx: 729c: 4d 4f mov.b r15, r13 ; 729e: 0c 4e mov r14, r12 ; 72a0: 7f f3 and.b #-1, r15 ;r3 As==11 72a2: 0f 5f rla r15 ; 72a4: 0f 5f rla r15 ; 72a6: 0f 5f rla r15 ; 72a8: 0f 5f rla r15 ; 72aa: 0f 5f rla r15 ; 72ac: 4e 4d mov.b r13, r14 ; 72ae: 0e 5e rla r14 ; 72b0: 0e 8f sub r15, r14 ; 72b2: 0f 4e mov r14, r15 ; 72b4: 3e 50 6e 19 add #6510, r14 ;#0x196e 72b8: 8f 4c 6e 19 mov r12, 6510(r15); 72bc: ce 43 02 00 mov.b #0, 2(r14) ;r3 As==00 72c0: ce 43 03 00 mov.b #0, 3(r14) ;r3 As==00 72c4: ce 43 04 00 mov.b #0, 4(r14) ;r3 As==00 72c8: ce 43 05 00 mov.b #0, 5(r14) ;r3 As==00 72cc: fe 40 06 00 mov.b #6, 6(r14) ;#0x0006 72d0: 06 00 72d2: ce 43 07 00 mov.b #0, 7(r14) ;r3 As==00 72d6: 8e 43 08 00 mov #0, 8(r14) ;r3 As==00 72da: 30 41 ret void initNeighborIdx(uint8_t i, am_addr_t ll_addr) { neighbor_table_entry_t *ne; ne = NeighborTable[i]; ne-ll_addr = ll_addr; ne-lastseq = 0; ne-rcvcnt = 0; ne-failcnt = 0; ne-flags = 5; ne-inage = MAX_AGE; ne-inquality = 0; ne-eetx = 0; } 729c LinkEstimatorP__initNeighborIdx: 729c: 4d 4f mov.b r15, r13 ; 729e: 0c 4e mov r14, r12 ; 72a0: 7f f3 and.b #-1, r15 ;r3 As==11 72a2: 0f 5f rla r15 ; 72a4: 0f 5f rla r15 ; 72a6: 0f 5f rla r15 ; 72a8: 0f 5f rla r15 ; 72aa: 0f 5f rla r15 ; 72ac: 4e 4d mov.b r13, r14 ; 72ae: 0e 5e rla r14 ; 72b0: 0e 8f sub r15, r14 ; 72b2: 0f 4e mov r14, r15 ; 72b4: 3e 50 6e 19 add #6510, r14 ;#0x196e 72b8: 8f 4c 6e 19 mov r12, 6510(r15); 72bc: ce 43 02 00 mov.b #0, 2(r14) ;r3 As==00 72c0: ce 43 03 00 mov.b #0, 3(r14) ;r3 As==00 72c4: ce 43 04 00 mov.b #0, 4(r14) ;r3 As==00 72c8: fe 40 05 00 mov.b #5, 5(r14) ;#0x0005 72cc: 05 00 72ce: fe 40 06 00 mov.b #6, 6(r14) ;#0x0006 72d2: 06 00 72d4: ce 43 07 00 mov.b #0, 7(r14) ;r3 As==00 72d8: 8e 43 08 00 mov #0, 8(r14) ;r3 As==00 72dc: 30 41 ret On Wed, May 18, 2011 at 2:11 AM, Eric Decker cire...@gmail.com wrote: On Tue, May 17, 2011 at 6:50 PM, Xiaohui Liu whu...@gmail.com wrote: Hi, I'm meeting the same issue again and trying to use nm. How do I let nm display the symbols only in bss section and order by their address in non-decreasing fashion? This way, I can see what symbols are near the one I'm tracking. Thanks. When you don't know how to use a tool the first thing you should try is reading the manual. I don't see a reference to what processor you are using (or platform which then implies the processor), but if memory serves (yeah right), you are using a telosb which is msp430f1611 based. So you want to try man msp430-objdump man msp430-nm You can also do: msp430-objdump --help msp430-nm --help more below: On Fri, Aug 20, 2010 at 6:16 PM, Philip Levis p...@cs.stanford.eduwrote: On Aug 20, 2010, at 7:22 AM, Xiaohui Liu wrote: Actually, I'm trying to change 4 bit link estimation (4bitle) to estimate some link delay related information. At the beginning, 4bitle is working fine. However, after I add the blue fields (nothing else), 4bitle seems to malfunction. Hope this helps clarify my question. You need to be more precise. Malfunction is not helpful when it comes to debugging. Sorry to say this, but you're going about debugging this all wrong. You're confusing a symptom (when you change the structure) with a diagnosis (what's going wrong in the program). This kind of debugging is just throwing darts in the dark: it doesn't get you to the bottom of the problem. There are two possibilities: 1) More likely: there is a memory access bug in your code. When you change the structure definition, the compiler places the differently sized structure in a different place in memory. E.g., next to the memory with the bug. One way to help diagnose this is to examine what variables are near the structure in the two different executables (nm, objdump, etc.). To see the machine code interspersed with some semblance of the source code (take with a grain of salt, doesn't always get it
[Tinyos-help] Help IRIS uart0 bard rate
Hello everyone, I'm using IRIS, mib510 with Tinyos2.x. I want to using UART0 to read a sensor. I try to use component HplAtm128UartC. How can I change the baud rate on UART0? If I cannot use the component, do I need to use interface UartStream? In this interface, can I change the m_byte_time=3200 to set the baud rate to 1200? Any help will be appreciated. Haixia Li ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] blip - IRIS
Miklos, I am currently getting help from Markus (net2) and we are starting with cc2420x and cc2520 radios first. We'll keep you in the loop of the progress. :) Thanks! -John On May 18, 2011, at 6:16 PM, Miklos Maroti mmar...@math.u-szeged.hu wrote: Hi John, Let me know if I can help in this process. I can fix things up in the rfxlink library if you need something for BLIP. Best, Miklos On Wed, May 18, 2011 at 5:16 PM, JeongGil Ko (John) j...@cs.jhu.edu wrote: Hi! We are currently in the process of trying to provide blip support for RF2x-based platforms. Thanks! -John On May 18, 2011, at 9:02 AM, Carlos Rodrigues wrote: Hi, There is any revision of blip-2.0 development tree working (or tinyos-main) in IRIS? I'm trying use dhcpv6 for doing address assignment but in blip version in tinyos-2.1.1 does not exist support for that and after some search I found that was included only in rev 5244 in tinyos-main svn. Using last revision of blip-rpl-devel the errors are similar of reported here: http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg37529.html /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:120: component CC2420PacketC not found /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:58: no match /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:61: cannot find `BarePacket' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:62: cannot find `BareSend' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:63: cannot find `BareReceive' /opt/tinyos-2.x/tos/lib/net/blip/IPDispatchC.nc:85: no match make: *** [exe0] Error 1 Using last rev of tinyos-main: In component `Ieee154AddressC': /home/tinyos-main-read-only/tos/lib/net/blip/Ieee154AddressC.nc:15: component CC2420ControlC not found /home/tinyos-main-read-only/tos/lib/net/blip/Ieee154AddressC.nc:16: no match In component `UDPEchoC': UDPEchoC.nc:61: cannot find `IPStats' UDPEchoC.nc:62: cannot find `UDPStats' UDPEchoC.nc:63: cannot find `RouteStats' UDPEchoC.nc:64: cannot find `ICMPStats' make: ** [exe0] Error 1 -Mensagem original- De: tinyos-help-boun...@millennium.berkeley.edu [mailto:tinyos-help-boun...@millennium.berkeley.edu] Em nome de Miklos Maroti Enviada: sexta-feira, 14 de Janeiro de 2011 21:08 Para: Carlos Rodrigues; TinyOS Assunto: Re: [Tinyos-help] 6lowpan/blip installation errors Hi Carlos, The CVS is obsolete, try to use the SVN from google code: http://code.google.com/p/tinyos-main/ It might work. Best, Miklos On Fri, Jan 14, 2011 at 3:27 PM, Carlos Rodrigues rodrigues.carlo...@gmail.com wrote: Hi, My name is Carlos Rodrigues and i'm starting work in my master thesis, about sensor networks. I'm trying compiling IPBaseStation (last version in cvs) on iris but the compilation fails with the error below. It is possible give some lights about how solve this problem? root@ubuntu:/home/carlos/IPBaseStation# make iris blib install mib510,/dev/ttyUSB0 mkdir -p build/iris compiling BaseStationC to a iris binary ncc -o build/iris/main.exe -Os -fnesc-separator=__ -Wall -Wshadow -Wnesc-all -target=iris -fnesc-cfile=build/iris/app.c -board=micasb -DDEFINED_TOS_AM_GROUP=0x22 --param max-inline-insns-single=10 -DNO_IP_MALLOC -DIEEE154FRAMES_ENABLED -DIDENT_APPNAME=\BaseStationC\ -DIDENT_USERNAME=\root\ -DIDENT_HOSTNAME=\ubuntu\ -DIDENT_USERHASH=0xa3473ba6L -DIDENT_TIMESTAMP=0x4d3059cbL -DIDENT_UIDHASH=0x5e9a1276L -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/iris/wiring-check.xml BaseStationC.nc -lm BaseStationP.nc:93:21: error: devconf.h: No such file or directory BaseStationP.nc:94:24: error: lib6lowpan.h: No such file or directory In file included from BaseStationC.nc:81: In component `BaseStationP': BaseStationP.nc:112: interface IPAddress not found In file included from BaseStationC.nc:81: BaseStationP.nc:139: `BLIP_L2_RETRIES' undeclared here (not in a function) BaseStationP.nc:140: `BLIP_L2_DELAY' undeclared here (not in a function) BaseStationP.nc:149: syntax error before `*' BaseStationP.nc: In function `configureReply.runTask': BaseStationP.nc:180: `reply' undeclared (first use in this function) BaseStationP.nc:180: (Each undeclared identifier is reported only once BaseStationP.nc:180: for each function it appears in.) BaseStationP.nc:180: interface has no command or event named `getShortAddr' BaseStationP.nc: In function `Boot.booted': BaseStationP.nc:218: `reply' undeclared (first use in this function) BaseStationP.nc:218: `config_reply_t' undeclared (first use in this function) BaseStationP.nc:218: syntax error before `)' BaseStationP.nc: In function `SerialControl.startDone': BaseStationP.nc:237: `reply' undeclared (first use in this function) BaseStationP.nc:237: `CONFIG_ERROR_BOOTED' undeclared (first use in this function) BaseStationP.nc: In function `ConfigureReceive.receive':
Re: [Tinyos-help] is there a struct definition rule?
Hi, It seems the only difference is the following: ne-flags = 0; 72c8: ce 43 05 00 mov.b #0, 5(r14) ;r3 As==00 ne-flags = 5; 72c8: fe 40 05 00 mov.b #5, 5(r14) ;#0x0005 72cc: 05 00 But I'm really lost on why this can cause the mote to crash. Please help. On Wed, May 18, 2011 at 9:08 PM, Xiaohui Liu whu...@gmail.com wrote: Thank you very much. I find the following function is causing the mote to crash. Everything works find if ne-flags is set to 0, and the mote crashes if it is set to 5 (the only change). This is the weirdest bug I have even seen and I'm not familiar with assembly code. Please help. I use msp430-objdump -d --source main.exe and below is the code snippet and their respective assembly. void initNeighborIdx(uint8_t i, am_addr_t ll_addr) { neighbor_table_entry_t *ne; ne = NeighborTable[i]; ne-ll_addr = ll_addr; ne-lastseq = 0; ne-rcvcnt = 0; ne-failcnt = 0; ne-flags = 0; ne-inage = MAX_AGE; ne-inquality = 0; ne-eetx = 0; } 729c LinkEstimatorP__initNeighborIdx: 729c: 4d 4f mov.b r15, r13 ; 729e: 0c 4e mov r14, r12 ; 72a0: 7f f3 and.b #-1, r15 ;r3 As==11 72a2: 0f 5f rla r15 ; 72a4: 0f 5f rla r15 ; 72a6: 0f 5f rla r15 ; 72a8: 0f 5f rla r15 ; 72aa: 0f 5f rla r15 ; 72ac: 4e 4d mov.b r13, r14 ; 72ae: 0e 5e rla r14 ; 72b0: 0e 8f sub r15, r14 ; 72b2: 0f 4e mov r14, r15 ; 72b4: 3e 50 6e 19 add #6510, r14 ;#0x196e 72b8: 8f 4c 6e 19 mov r12, 6510(r15); 72bc: ce 43 02 00 mov.b #0, 2(r14) ;r3 As==00 72c0: ce 43 03 00 mov.b #0, 3(r14) ;r3 As==00 72c4: ce 43 04 00 mov.b #0, 4(r14) ;r3 As==00 72c8: ce 43 05 00 mov.b #0, 5(r14) ;r3 As==00 72cc: fe 40 06 00 mov.b #6, 6(r14) ;#0x0006 72d0: 06 00 72d2: ce 43 07 00 mov.b #0, 7(r14) ;r3 As==00 72d6: 8e 43 08 00 mov #0, 8(r14) ;r3 As==00 72da: 30 41 ret void initNeighborIdx(uint8_t i, am_addr_t ll_addr) { neighbor_table_entry_t *ne; ne = NeighborTable[i]; ne-ll_addr = ll_addr; ne-lastseq = 0; ne-rcvcnt = 0; ne-failcnt = 0; ne-flags = 5; ne-inage = MAX_AGE; ne-inquality = 0; ne-eetx = 0; } 729c LinkEstimatorP__initNeighborIdx: 729c: 4d 4f mov.b r15, r13 ; 729e: 0c 4e mov r14, r12 ; 72a0: 7f f3 and.b #-1, r15 ;r3 As==11 72a2: 0f 5f rla r15 ; 72a4: 0f 5f rla r15 ; 72a6: 0f 5f rla r15 ; 72a8: 0f 5f rla r15 ; 72aa: 0f 5f rla r15 ; 72ac: 4e 4d mov.b r13, r14 ; 72ae: 0e 5e rla r14 ; 72b0: 0e 8f sub r15, r14 ; 72b2: 0f 4e mov r14, r15 ; 72b4: 3e 50 6e 19 add #6510, r14 ;#0x196e 72b8: 8f 4c 6e 19 mov r12, 6510(r15); 72bc: ce 43 02 00 mov.b #0, 2(r14) ;r3 As==00 72c0: ce 43 03 00 mov.b #0, 3(r14) ;r3 As==00 72c4: ce 43 04 00 mov.b #0, 4(r14) ;r3 As==00 72c8: fe 40 05 00 mov.b #5, 5(r14) ;#0x0005 72cc: 05 00 72ce: fe 40 06 00 mov.b #6, 6(r14) ;#0x0006 72d2: 06 00 72d4: ce 43 07 00 mov.b #0, 7(r14) ;r3 As==00 72d8: 8e 43 08 00 mov #0, 8(r14) ;r3 As==00 72dc: 30 41 ret On Wed, May 18, 2011 at 2:11 AM, Eric Decker cire...@gmail.com wrote: On Tue, May 17, 2011 at 6:50 PM, Xiaohui Liu whu...@gmail.com wrote: Hi, I'm meeting the same issue again and trying to use nm. How do I let nm display the symbols only in bss section and order by their address in non-decreasing fashion? This way, I can see what symbols are near the one I'm tracking. Thanks. When you don't know how to use a tool the first thing you should try is reading the manual. I don't see a reference to what processor you are using (or platform which then implies the processor), but if memory serves (yeah right), you are using a telosb which is msp430f1611 based. So you want to try man msp430-objdump man msp430-nm You can also do: msp430-objdump --help msp430-nm --help more below: On Fri, Aug 20, 2010 at 6:16 PM, Philip Levis p...@cs.stanford.eduwrote: On Aug 20, 2010, at 7:22 AM, Xiaohui Liu wrote: Actually, I'm trying to change 4 bit link estimation (4bitle) to estimate some link delay related information. At the beginning, 4bitle is working fine. However, after I add the blue fields (nothing else), 4bitle seems to malfunction. Hope this helps clarify my question. You need to be more precise. Malfunction is not helpful when it comes to debugging. Sorry to say this, but you're going about debugging this all wrong. You're confusing a symptom (when you change the structure) with a diagnosis (what's going wrong in the program). This kind of debugging is just throwing darts in the dark: it doesn't get you to the bottom of the problem. There are two possibilities: 1) More likely: there is a memory access bug in your code. When you change
Re: [Tinyos-help] is there a struct definition rule?
Byte alignment can be a possible cause, but 72cc is an even address. Still have no clue. Thanks for any help. On Thu, May 19, 2011 at 12:01 AM, Xiaohui Liu whu...@gmail.com wrote: Hi, It seems the only difference is the following: ne-flags = 0; 72c8: ce 43 05 00 mov.b #0, 5(r14) ;r3 As==00 ne-flags = 5; 72c8: fe 40 05 00 mov.b #5, 5(r14) ;#0x0005 72cc: 05 00 But I'm really lost on why this can cause the mote to crash. Please help. On Wed, May 18, 2011 at 9:08 PM, Xiaohui Liu whu...@gmail.com wrote: Thank you very much. I find the following function is causing the mote to crash. Everything works find if ne-flags is set to 0, and the mote crashes if it is set to 5 (the only change). This is the weirdest bug I have even seen and I'm not familiar with assembly code. Please help. I use msp430-objdump -d --source main.exe and below is the code snippet and their respective assembly. void initNeighborIdx(uint8_t i, am_addr_t ll_addr) { neighbor_table_entry_t *ne; ne = NeighborTable[i]; ne-ll_addr = ll_addr; ne-lastseq = 0; ne-rcvcnt = 0; ne-failcnt = 0; ne-flags = 0; ne-inage = MAX_AGE; ne-inquality = 0; ne-eetx = 0; } 729c LinkEstimatorP__initNeighborIdx: 729c: 4d 4f mov.b r15, r13 ; 729e: 0c 4e mov r14, r12 ; 72a0: 7f f3 and.b #-1, r15 ;r3 As==11 72a2: 0f 5f rla r15 ; 72a4: 0f 5f rla r15 ; 72a6: 0f 5f rla r15 ; 72a8: 0f 5f rla r15 ; 72aa: 0f 5f rla r15 ; 72ac: 4e 4d mov.b r13, r14 ; 72ae: 0e 5e rla r14 ; 72b0: 0e 8f sub r15, r14 ; 72b2: 0f 4e mov r14, r15 ; 72b4: 3e 50 6e 19 add #6510, r14 ;#0x196e 72b8: 8f 4c 6e 19 mov r12, 6510(r15); 72bc: ce 43 02 00 mov.b #0, 2(r14) ;r3 As==00 72c0: ce 43 03 00 mov.b #0, 3(r14) ;r3 As==00 72c4: ce 43 04 00 mov.b #0, 4(r14) ;r3 As==00 72c8: ce 43 05 00 mov.b #0, 5(r14) ;r3 As==00 72cc: fe 40 06 00 mov.b #6, 6(r14) ;#0x0006 72d0: 06 00 72d2: ce 43 07 00 mov.b #0, 7(r14) ;r3 As==00 72d6: 8e 43 08 00 mov #0, 8(r14) ;r3 As==00 72da: 30 41 ret void initNeighborIdx(uint8_t i, am_addr_t ll_addr) { neighbor_table_entry_t *ne; ne = NeighborTable[i]; ne-ll_addr = ll_addr; ne-lastseq = 0; ne-rcvcnt = 0; ne-failcnt = 0; ne-flags = 5; ne-inage = MAX_AGE; ne-inquality = 0; ne-eetx = 0; } 729c LinkEstimatorP__initNeighborIdx: 729c: 4d 4f mov.b r15, r13 ; 729e: 0c 4e mov r14, r12 ; 72a0: 7f f3 and.b #-1, r15 ;r3 As==11 72a2: 0f 5f rla r15 ; 72a4: 0f 5f rla r15 ; 72a6: 0f 5f rla r15 ; 72a8: 0f 5f rla r15 ; 72aa: 0f 5f rla r15 ; 72ac: 4e 4d mov.b r13, r14 ; 72ae: 0e 5e rla r14 ; 72b0: 0e 8f sub r15, r14 ; 72b2: 0f 4e mov r14, r15 ; 72b4: 3e 50 6e 19 add #6510, r14 ;#0x196e 72b8: 8f 4c 6e 19 mov r12, 6510(r15); 72bc: ce 43 02 00 mov.b #0, 2(r14) ;r3 As==00 72c0: ce 43 03 00 mov.b #0, 3(r14) ;r3 As==00 72c4: ce 43 04 00 mov.b #0, 4(r14) ;r3 As==00 72c8: fe 40 05 00 mov.b #5, 5(r14) ;#0x0005 72cc: 05 00 72ce: fe 40 06 00 mov.b #6, 6(r14) ;#0x0006 72d2: 06 00 72d4: ce 43 07 00 mov.b #0, 7(r14) ;r3 As==00 72d8: 8e 43 08 00 mov #0, 8(r14) ;r3 As==00 72dc: 30 41 ret On Wed, May 18, 2011 at 2:11 AM, Eric Decker cire...@gmail.com wrote: On Tue, May 17, 2011 at 6:50 PM, Xiaohui Liu whu...@gmail.com wrote: Hi, I'm meeting the same issue again and trying to use nm. How do I let nm display the symbols only in bss section and order by their address in non-decreasing fashion? This way, I can see what symbols are near the one I'm tracking. Thanks. When you don't know how to use a tool the first thing you should try is reading the manual. I don't see a reference to what processor you are using (or platform which then implies the processor), but if memory serves (yeah right), you are using a telosb which is msp430f1611 based. So you want to try man msp430-objdump man msp430-nm You can also do: msp430-objdump --help msp430-nm --help more below: On Fri, Aug 20, 2010 at 6:16 PM, Philip Levis p...@cs.stanford.eduwrote: On Aug 20, 2010, at 7:22 AM, Xiaohui Liu wrote: Actually, I'm trying to change 4 bit link estimation (4bitle) to estimate some link delay related information. At the beginning, 4bitle is working fine. However, after I add the blue fields (nothing else), 4bitle seems to malfunction. Hope this helps clarify my question. You need to be more precise. Malfunction is not helpful when it comes to debugging. Sorry to say this, but you're going about debugging this all wrong. You're confusing a symptom (when you change the structure) with a diagnosis (what's going wrong in the program). This kind of debugging is