[Tinyos-help] Re: Tinyos-help Digest, Vol 37, Issue 105
yes, nesc does support floating point calculations, although it is slow. raghu -- Message: 1 Date: Thu, 25 May 2006 13:19:00 -0600 From: "Adesola Omotayo" <[EMAIL PROTECTED]> Subject: [Tinyos-help] Floating Point Calculation To: Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="us-ascii" Hello, Does nesC support floating point arithmetic? Can I successfully execute the following statements in nesC: float j; j = 1.2 * 0.37; Thanks, Adesola ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help with Timer
Yes thats ther very reason why Timer is a parametrized interface. You can specify upto 256 unique timers with Timer. Every time a module uses a timer, make sure to write.Timer -> TimerC.Timer[unique("Timer")]; in the configuration The string "Timer" should be the same for all your timers only then can you be sure that you have generated unque timers. Refer Tutorial 2 for more on this.If you check back a few days on this list, somebody had talked about a special module to be used for sleeping and waking the node up. On 5/26/06, bhushan bhatt <[EMAIL PROTECTED]> wrote: Hi all, I am writing an application wherein i would need more than one timer. I need one shot timers as well as Timer Repeat. Besides this i would also need a timer to wake up the node and put it to sleep. Is it possible to use TimerC for all of these ?? If not which other timers can i use ? Thanks,Bhushan Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min with Yahoo! Messenger with Voice. ___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards,Aditya Bhave ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Write Failed Surge Telos
Hi all, I am trying to make SurgeTelos working and when i start beacon messages in the window, i get a message in SerialForwarder that write failed. the sequence number of the messages keeps on increasing. the Red light on the motes bink too so i think they are doing something. Is there any frequency mismatch problem ???Thanks,Bhushan Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min with Yahoo! Messenger with Voice.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Run Multiple Serial Forwarders??
Reizel, Not the answer I was looking for. You should try reading some documentation about how to use your system. Open serialFowarder as such: "java net.tinyos.sf.SerialForwarder -comm network@:10002 Quoting reizel casaquite <[EMAIL PROTECTED]>: > Hi, > > This is my follow up question to your post. > > Have you run a single serial forwarder using MIB600? > That is my problem yesterday because, I am not sure what command to be used. > I am using mica2 and MIB600 too. So, what is the command for > export [EMAIL PROTECTED]:baudrate if I am using MIB600? > > Thanks! > > > Regards, > reizel > > > > > > [EMAIL PROTECTED] wrote: Hey all, > I would like to run multiple Serial Forwarders, using the MIB600, So that i > can have multiple sensing networks in different buildings, and capture data > on a > single PC. >A) Do i open multiple serial Forwarders on the same 10002 port?? >B) HOw do I start multiple instances of Listen to dump data from its > respective serial forwarder? IE: how can I specify Listen to listen to one > forwarder, and the other instance of Listen to listen to another forwarder? > > Thanks in advance for your help!! > > Josh > > - > This mail sent through IMP: http://horde.org/imp/ > ___ > Tinyos-help mailing list > Tinyos-help@Millennium.Berkeley.EDU > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > > - > Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates > starting at 1¢/min. - This mail sent through IMP: http://horde.org/imp/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] 1.1.0 to 1.1.15 problems
Hi, Are there recommended packages to install moving from the initial release to the snapshot? I’ve tried just extracting it using the rpm, but it throws a bunch of errors on the Deluge package, and I’ll be working with Telos motes, so I need to have the mspgcc stuff, and what else? I’ve tried using the build-mspgcc script that I found buried down in tools/src/ but it seems that a lot of sites it references are dead now, or not working. I can’t find any kind of documentation on the site as far as what packages are required short of trying to use the packages listed for 2.0 and I’m not sure if that’s exactly intended. I’m running on FC4, so I guess I missed the “wizard” in 1.11? I didn’t see anything indicating a wizard, which is mentioned off of the download page. If you really need the error log, let me know. It’s ridiculously long, and most of it is from the Deluge package trying to be built. I’m just trying to figure out everything that needs to be added since a simple upgrade did not work, and I have to do this on two more computers within the week. Thanks, Ben ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Run Multiple Serial Forwarders??
Hi,This is my follow up question to your post.Have you run a single serial forwarder using MIB600?That is my problem yesterday because, I am not sure what command to be used. I am using mica2 and MIB600 too. So, what is the command forexport [EMAIL PROTECTED]:baudrate if I am using MIB600?Thanks!Regards,reizel[EMAIL PROTECTED] wrote: Hey all, I would like to run multiple Serial Forwarders, using the MIB600, So that ican have multiple sensing networks in different buildings, and capture data on asingle PC.A) Do i open multiple serial Forwarders on the same 10002 port?? B) HOw do I start multiple instances of Listen to dump data from itsrespective serial forwarder? IE: how can I specify Listen to listen to oneforwarder, and the other instance of Listen to listen to another forwarder?Thanks in advance for your help!!Josh-This mail sent through IMP: http://horde.org/imp/___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDUhttps://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great rates starting at 1¢/min.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] tmote batteries lifetime
Your iPod nano has a $20 Li-Poly battery and your mote has a $0.20 AA battery. You're expecting identical performance -Joe On 5/25/06, Chang Li <[EMAIL PROTECTED]> wrote: I bought 8 AA batteries in the 1 dollar store. It only run 20 hours then the leds were dim. The voltage of the battery was under 2.0v. 18.2+mA is the current consumption of CC 2420. There are MSP430 and Flash Memory as well as othere ICs. I am wondering why have tested the current of 50 to 60 mA with Rx and Tx enabled. My iPod nano with LCD,1GB Flash, and Li-Poly battery can even run 14 hours. I have expected that a mote should consume much less power than an iPod. Some special programming skills may be required to save power of motes. Chang >6 days sounds about right. When the radio is turned on and simply > listening, it is consuming an average of 18.2+ mA - your 18.8 mA sounds > accurate. I measured it to be about 437.4 mAh/day. With 1500 mAh > batteries > and those measurements, you're looking at about 3-4 days lifetime. > > Duty cycle the radio and you'll get many more days. At 0.23% duty cycle > with a cc2420 radio duty cycle period of 10 seconds, the lifetime of a > tmote > should be about 300+ days at 1500 mAh. > > Keep in mind that batteries are rarely what they say they are - 1500 mAh > is > the minimum guaranteed by the manufacturer. Many batteries can > potentially > last much longer than what they're rated, especially depending on the > environment and type of battery. > > > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > [EMAIL PROTECTED] > Sent: Wednesday, May 24, 2006 9:27 PM > To: tinyos-help@Millennium.Berkeley.EDU > Subject: [Tinyos-help] tmote batteries lifetime > > > > I have one doubt about tmote batteries duration. I'm using tmote sky > with 2 AA 1500 mhA batteries. If i not use any LPL on cc2420 the rx > consumption would be about 18.8m A. So the energy in one second would be > E = 3V . 18.8 mA . 1 s = 56.4 mJ > > I have read the joe paper about b-mac where says that > t(s )= Cbatt . V.60 . 60 / E > > It gives me about 6 days of bateries duration. Would it be right? I > suposse that radio is always in rx mode waiting... Am I wrong? > thanks a lot > > > ___ > Tinyos-help mailing list > Tinyos-help@Millennium.Berkeley.EDU > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help > > > ___ > Tinyos-help mailing list > Tinyos-help@Millennium.Berkeley.EDU > https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Run Multiple Serial Forwarders??
Hey all, I would like to run multiple Serial Forwarders, using the MIB600, So that i can have multiple sensing networks in different buildings, and capture data on a single PC. A) Do i open multiple serial Forwarders on the same 10002 port?? B) HOw do I start multiple instances of Listen to dump data from its respective serial forwarder? IE: how can I specify Listen to listen to one forwarder, and the other instance of Listen to listen to another forwarder? Thanks in advance for your help!! Josh - This mail sent through IMP: http://horde.org/imp/ ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Help with Timer
Hi all, I am writing an application wherein i would need more than one timer. I need one shot timers as well as Timer Repeat. Besides this i would also need a timer to wake up the node and put it to sleep. Is it possible to use TimerC for all of these ?? If not which other timers can i use ?Thanks,Bhushan Ring'em or ping'em. Make PC-to-phone calls as low as 1¢/min with Yahoo! Messenger with Voice.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] tmote batteries lifetime
I bought 8 AA batteries in the 1 dollar store. It only run 20 hours then the leds were dim. The voltage of the battery was under 2.0v. 18.2+mA is the current consumption of CC 2420. There are MSP430 and Flash Memory as well as othere ICs. I am wondering why have tested the current of 50 to 60 mA with Rx and Tx enabled. My iPod nano with LCD,1GB Flash, and Li-Poly battery can even run 14 hours. I have expected that a mote should consume much less power than an iPod. Some special programming skills may be required to save power of motes. Chang 6 days sounds about right. When the radio is turned on and simply listening, it is consuming an average of 18.2+ mA - your 18.8 mA sounds accurate. I measured it to be about 437.4 mAh/day. With 1500 mAh batteries and those measurements, you're looking at about 3-4 days lifetime. Duty cycle the radio and you'll get many more days. At 0.23% duty cycle with a cc2420 radio duty cycle period of 10 seconds, the lifetime of a tmote should be about 300+ days at 1500 mAh. Keep in mind that batteries are rarely what they say they are - 1500 mAh is the minimum guaranteed by the manufacturer. Many batteries can potentially last much longer than what they're rated, especially depending on the environment and type of battery. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 9:27 PM To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] tmote batteries lifetime I have one doubt about tmote batteries duration. I'm using tmote sky with 2 AA 1500 mhA batteries. If i not use any LPL on cc2420 the rx consumption would be about 18.8m A. So the energy in one second would be E = 3V . 18.8 mA . 1 s = 56.4 mJ I have read the joe paper about b-mac where says that t(s )= Cbatt . V.60 . 60 / E It gives me about 6 days of bateries duration. Would it be right? I suposse that radio is always in rx mode waiting... Am I wrong? thanks a lot ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Floating Point Calculation
Hello, Does nesC support floating point arithmetic? Can I successfully execute the following statements in nesC: float j; j = 1.2 * 0.37; Thanks, Adesola ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Re: Installing applications on the imote2
I have solved the problem (finally).The solution was to rebuild xscale-elf-gcc and newlib, passing --disable-new-lib_hw_fp to the newlib configure. Without this flag, gcc was trying to initalize a hardware floating point coprocessor, which caused the nodes to crash. This also solved the problem someone mentioned awhile ago about the "literal needs to be closer to pool" error . Hopefully this will help someone.John. On 5/18/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I am trying to do some simple work with the imote2s, but I can't seem to get them to program correctly. The applications will build and program without any errors, but when I restart the node, nothing happens. Here's a quick sample: ~/tinyos-1.x/apps/Blink$ make install imote2 debugmkdir -p build/imote2xscale-elf-gcc -c -mcpu=iwmmxt -mfpu=softfpa /home/ledbettj/build/tinyos- 1.x/tos/platform/pxa27x/../imote2/flash.s compiled Blink to build/imote2/main.exe 152256 bytes in ROM 4608 bytes in RAM xscale-elf-objcopy --output-target=binary build/imote2/main.exe build/imote2/main.bin.outdwarf2bd build/imote2/main.exeIntel(R) DWARF2BD Object Converter, Version 2.9.24Copyright (C) 2001-2005 Intel Corporation. All rights reserved. installing imote2 binary using the parallel port jtag adapter/cygdrive/c/Program\ Files/Intel/SDT2.0.1/xflash/xflash.exe -p imote2 -tt "INTEL(R) JTAG CABLE" build/imote2/main.bin.outXFLASH - Intel(R) JTAG flash memory programmer - Version: 1.5.3Copyright(C) 2001-2005 Intel Corporation. All rights reserved.Selected platform: IMOTE2Task : burn flashFile to burn : build/imote2/main.bin.outConnecting to target via "lpt1:" ... JTAG debug handler uses virtual address range 0x0120..0x010007FFINFO: To enable Mini-I-cache breakpoints use the "MINIIBP" target option.take initial batchfile: "c:/Program Files/Intel/SDT2.0.1/xflash/action- flash.xdb" Memory Successfully Burned. Prepare the burn algorithm...Downloading the burn algorithm...finishedDetect and Verify File Format...Erasing Blocks... Current Block: 0 at address 0x0 Erasing Blocks... Current Block: 1 at address 0x8000Erasing Blocks... Current Block: 2 at address 0x1Erasing Blocks... Current Block: 3 at address 0x18000Erasing Blocks... Current Block: 4 at address 0x2 Progress: 100%Burning Binary File...Burning Binary File... 148 KBytes of 148 KBytes remaining.Burning Binary File... 84 KBytes of 148 KBytes remaining.Burning Binary File... 20 KBytes of 148 KBytes remaining. Progress: 100%File successfully burned.The node is obviously being erased, since it came preloaded with Count to LEDS/RF, and no longer does so, but something is going wrong in the programming. Any ideas? John Ledbetter[EMAIL PROTECTED] -- John Ledbetter[EMAIL PROTECTED] ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] A question TMote Sky's UART0 and radio control
I have successfully programed Tmote Sky to transmit/receive data from UART0. However, my key concern is: UART0 shares bus with Radio; so, when I read large number of data (say 130 bytes), will the radio receive and buffer data from other motes and trigger ReceiveMsg after UART0 release resource? Or the radio will not buffer by itself hence message is lost, then the sender need re-send the message late on? Which hyperthesis is correct? If the first hyperthesis is not correct, are there any other digital interface to use in Tmote-Sky (which does not share bus with radio)? Thanks. ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] MAC Protocol used
I am curious with this question too. I don't think they are using S-MAC as default (which is developed by UCLA). Mica family might use B-Mac as I know. To Moteiv: what MAC protocol is used in TMote Sky by default? does it reliable re-transmit if failed by default? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aditya BhaveSent: Thursday, May 25, 2006 8:30 AMTo: bhushan bhattCc: TinyOS HelpSubject: Re: [Tinyos-help] MAC Protocol used I think the tinyos-1.1.10 uses simply CSMA not even with collision detection. In fact with wireless, collision detection is difficult due to hidden and exposed station problems. The newer versions of tinyos-1.x (.15 onwards) uses something called B-Mac and S-Mac or at least thats what is proposed to be used. You may want to google these terms to see how they operate or read the following article http://www.isi.edu/ilense/macss/ On 5/25/06, bhushan bhatt < [EMAIL PROTECTED]> wrote: Hi all, I was just wondering which MAC protocol is used by motes when they transmit ? Is it some kind of an RTS/CTS with backoff ??? -Bhushan Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. ___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards,Aditya Bhave ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
RE: [Tinyos-help] tmote batteries lifetime
6 days sounds about right. When the radio is turned on and simply listening, it is consuming an average of 18.2+ mA - your 18.8 mA sounds accurate. I measured it to be about 437.4 mAh/day. With 1500 mAh batteries and those measurements, you're looking at about 3-4 days lifetime. Duty cycle the radio and you'll get many more days. At 0.23% duty cycle with a cc2420 radio duty cycle period of 10 seconds, the lifetime of a tmote should be about 300+ days at 1500 mAh. Keep in mind that batteries are rarely what they say they are - 1500 mAh is the minimum guaranteed by the manufacturer. Many batteries can potentially last much longer than what they're rated, especially depending on the environment and type of battery. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 9:27 PM To: tinyos-help@Millennium.Berkeley.EDU Subject: [Tinyos-help] tmote batteries lifetime I have one doubt about tmote batteries duration. I'm using tmote sky with 2 AA 1500 mhA batteries. If i not use any LPL on cc2420 the rx consumption would be about 18.8m A. So the energy in one second would be E = 3V . 18.8 mA . 1 s = 56.4 mJ I have read the joe paper about b-mac where says that t(s )= Cbatt . V.60 . 60 / E It gives me about 6 days of bateries duration. Would it be right? I suposse that radio is always in rx mode waiting... Am I wrong? thanks a lot ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] MAC Protocol used
I think the tinyos-1.1.10 uses simply CSMA not even with collision detection. In fact with wireless, collision detection is difficult due to hidden and exposed station problems. The newer versions of tinyos-1.x (.15 onwards) uses something called B-Mac and S-Mac or at least thats what is proposed to be used. You may want to google these terms to see how they operate or read the following article http://www.isi.edu/ilense/macss/ On 5/25/06, bhushan bhatt < [EMAIL PROTECTED]> wrote:Hi all, I was just wondering which MAC protocol is used by motes when they transmit ? Is it some kind of an RTS/CTS with backoff ??? -Bhushan Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. ___Tinyos-help mailing listTinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- regards,Aditya Bhave ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] nesC to C converter
On 5/25/06, Alejandro Romero Morales <[EMAIL PROTECTED]> wrote: Dear David, thanks for your answer. I have seem the app.c file created for telosb and it is a little confused!! :-) My problem now is to know if it is possible to add code to this C file or an independent module to use this functions and recompile all again including the funcionalities written in C and how. The target is to reuse code written in C from old projects. Do you have any experience similar to this? Do you know somebody that can help me in this matter? Either: - include the code in a module (module bodies are essentially C code) - or, just compile your C code as usual, and link it in at compile-time, i.e.: foo.h: void myfunction(int myarg); foo.c: void myfunction(int myarg) { do something fun } gloop.nc: (wants to use the stuff in foo) includes foo; module gloop { whatever } implementation { ... myfunction(23); ... } compiling it all: cc -c foo.c ncc .nc foo.o Integrating this with the TinyOS makefile system is left as an exercise to the reader (this is one of the drawbacks of the super-duper makefile system...) David Gay ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] MAC Protocol used
Hi all, I was just wondering which MAC protocol is used by motes when they transmit ? Is it some kind of an RTS/CTS with backoff ???-Bhushan Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] atomic use in tutorial lesson 4
Hi,I found that in tutorial lesson 4, atomic is used as followsmessage->val = value;atomic { message->src = "">}Since we don't have any async interface used here, why do we need atomic to protect this assignment here? And why this assignment alone, how about the assignment one line above? Regards,Haibin ___ Tinyos-help mailing list Tinyos-help@Millennium.Berkeley.EDU https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help