[Tinyos-help] interfacing devices with uart....
Hi, I saw a post/query posted earlier at: https://www.millennium.berkeley.edu/pipermail/tinyos-2-commits/2007-June /005830.html I could not find the answer to this, does someone knows how to do achieve this in TINYOS-2.x as I need to something similar, i.e. attach devices on the UART so I just need to send raw bytes on the UART??? I am using Chipcon motes (similar to micaz) and Cygwin. Cheers, Varun Jain ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] making a loop sleep.
Hi all, I am using TinyOS 2.x and using Tossim to test my results I was wondering if there is a command that may allow me to make a loop sleep so I can send something over the radio to another mote? What I have is a loop that keeps running, then within the loop, I may choose to send a message over the radio to another mote, the problem is I don't want to break out of the loop, what I would like to do is to send the message then continue the loop from where I stopped last! What is actually happening is, the loop keeps running till the end, and then sends the message. I would be thankful for any hints Thank you. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] help please : turn off mote packet loss rate ?
hi all, just to thank everybody who helped me to solve the problem about packet loss rate. my solution is working. i used some dbg messages to notify each packet loss; then programmed a small script which calculate the number of occurence of this notification. Hopefully, it works well. Best regards 2008/7/26 Omprakash Gnawali [EMAIL PROTECTED] On Fri, Jul 25, 2008 at 3:22 PM, fatima zohra [EMAIL PROTECTED] wrote: 2008/7/25 Omprakash Gnawali [EMAIL PROTECTED]: On Fri, Jul 25, 2008 at 7:37 AM, fatima zohra [EMAIL PROTECTED] wrote: 2008/7/25 Omprakash Gnawali [EMAIL PROTECTED]: On Wed, Jul 23, 2008 at 11:45 AM, fatima zohra [EMAIL PROTECTED] wrote: 2008/7/23 Omprakash Gnawali [EMAIL PROTECTED]: If you put sequence numbers in the packet, you can find out which packets were not received. For example, you sent sequence numbers 1 through 10 but and received 1,2,3,4,6,7,8,9,10 then you know exactly how many packets were not received. - om_p actually this isn't my scenario; here is an example of my protocol mechanism: we assume Node1 neighbor of nodes 2 3, and these two nodes are neighbors of source S (S will send 10 msgs for example) if 3 crashes so node 1 won't receive any more packets from 3. which means if You said there is one source but why is node 3 sending packets? because node 3 will forward what the source is sending in order to reach the sink (let's say for example sink = node1 to make it easier) S sends messages (from numSeq = 5 to 9) node A will never notice that he Node A is mentioned here for the first time. Is it node A or 1 or 2 or 3? sorry, it's node 1 (which isn't a direct neighbor to the source S) missed the 5 last nodes (because he doesn't communicate with S directly , Nodes or packets? sorry again, it's packets and node 3 is turned off for ever and node 2 won't help him to know what node 3 lost as messages (from S or other sources) because seq number is unique and different for each node (the 5th seqNum for node 2 may be the 1st message of the source S) now i wonna to calculate packet loss rate in my network since i have a set of nodes who crash and will lose some sent messages. am i clear now ? if yes, how to handle this situation. thanks in advance. best regards. Your description has some typos and could use some clarification. - om_p i mention in addition of what was said that: this simulation is done to study the behavior of the network after some nodes crash. so, first i choose some faulty nodes, then , turn them off for the rest of simulation (they won't receive any packet in the future). in the end of my simulation, i calculate my packet loss rate (i.e number of sent messages but not received by faulty nodes once they are stopped). is it clear now ? Almost. So you have a topology that looks like this: S -- 3 -- 1 but 3 is turned off so 1 is not receiving any packets but you want to find the loss rate on the link 3--1? - om_p that's it, but S--3--1 is just a piece of my topology (i just noticed it to clarify , my topology is larger than that). let's work with this small scenario. what's the way to find the packet loss rate ? Considering your scenario and objective, you should have each node send packets periodically just for link estimation. Then you will be able to estimate link quality even in the absence of data packets. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] obtain RSSI value
Hello everyone!! I have some questions. In general, there is two method to obtain RSS value. One of them is using strength parameter of the message, but it just is a value of a intended message. I want to know all of things, which are intended signal as well as interference signals. So, I'd like to read RSSI register. But, I think its value is not correct. First question is when RSSI register value changes. Second, how to read all information(ACK signals + interference signals) on the sender. Thank you Kwanhee Jeong ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Snooping and Receiving from different groups
HI * It is possible to snoop a broadcast message from other groups but using hardware adress recognition? I know I can snoop it if I turn off the hardware recognition (CFLAGS += -DCC2420_NO_ADDRESS_RECOGNITION). thanks for help Jordan Dwa tysiące lat temu Chiński Cesarz Smok podbił połowę świata. Teraz Wraca by dokończyć dzieło... Film pełen EFEKTÓW SPECJALNYCH. MUMIA: GROBOWIEC CESARZA SMOKA - w kinach. http://klik.wp.pl/?adr=http%3A%2F%2Fcorto.www.wp.pl%2Fas%2FMumiaGrobowiec.htmlsid=436 ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] help please : turn off mote packet loss rate ?
You can put the tmote in deep deep sleep, its almost switched off. You can find the code in tos/lib/Deluge/TOSBoot/tmoteinvent/PowerOffM.nc in moteiv boomerang distribution. Xavi On Wed, Jul 30, 2008 at 10:13 AM, fatima zohra [EMAIL PROTECTED]wrote: hi all, just to thank everybody who helped me to solve the problem about packet loss rate. my solution is working. i used some dbg messages to notify each packet loss; then programmed a small script which calculate the number of occurence of this notification. Hopefully, it works well. Best regards 2008/7/26 Omprakash Gnawali [EMAIL PROTECTED] On Fri, Jul 25, 2008 at 3:22 PM, fatima zohra [EMAIL PROTECTED] wrote: 2008/7/25 Omprakash Gnawali [EMAIL PROTECTED]: On Fri, Jul 25, 2008 at 7:37 AM, fatima zohra [EMAIL PROTECTED] wrote: 2008/7/25 Omprakash Gnawali [EMAIL PROTECTED]: On Wed, Jul 23, 2008 at 11:45 AM, fatima zohra [EMAIL PROTECTED] wrote: 2008/7/23 Omprakash Gnawali [EMAIL PROTECTED]: If you put sequence numbers in the packet, you can find out which packets were not received. For example, you sent sequence numbers 1 through 10 but and received 1,2,3,4,6,7,8,9,10 then you know exactly how many packets were not received. - om_p actually this isn't my scenario; here is an example of my protocol mechanism: we assume Node1 neighbor of nodes 2 3, and these two nodes are neighbors of source S (S will send 10 msgs for example) if 3 crashes so node 1 won't receive any more packets from 3. which means if You said there is one source but why is node 3 sending packets? because node 3 will forward what the source is sending in order to reach the sink (let's say for example sink = node1 to make it easier) S sends messages (from numSeq = 5 to 9) node A will never notice that he Node A is mentioned here for the first time. Is it node A or 1 or 2 or 3? sorry, it's node 1 (which isn't a direct neighbor to the source S) missed the 5 last nodes (because he doesn't communicate with S directly , Nodes or packets? sorry again, it's packets and node 3 is turned off for ever and node 2 won't help him to know what node 3 lost as messages (from S or other sources) because seq number is unique and different for each node (the 5th seqNum for node 2 may be the 1st message of the source S) now i wonna to calculate packet loss rate in my network since i have a set of nodes who crash and will lose some sent messages. am i clear now ? if yes, how to handle this situation. thanks in advance. best regards. Your description has some typos and could use some clarification. - om_p i mention in addition of what was said that: this simulation is done to study the behavior of the network after some nodes crash. so, first i choose some faulty nodes, then , turn them off for the rest of simulation (they won't receive any packet in the future). in the end of my simulation, i calculate my packet loss rate (i.e number of sent messages but not received by faulty nodes once they are stopped). is it clear now ? Almost. So you have a topology that looks like this: S -- 3 -- 1 but 3 is turned off so 1 is not receiving any packets but you want to find the loss rate on the link 3--1? - om_p that's it, but S--3--1 is just a piece of my topology (i just noticed it to clarify , my topology is larger than that). let's work with this small scenario. what's the way to find the packet loss rate ? Considering your scenario and objective, you should have each node send packets periodically just for link estimation. Then you will be able to estimate link quality even in the absence of data packets. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Xavier Orduña CTO m: [+34] 615 475 065 @: [EMAIL PROTECTED] Dexma Riu de l'or 35 ES-08034 Barcelona t/f: [+34] 93 280 19 18 w: www.dexmatech.com ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] help please : turn off mote packet loss rate ?
You can llok also in the msp430-F1xxx user manual from texas instruments for more details about low power modes. Xavi On Wed, Jul 30, 2008 at 12:06 PM, Xavier Orduña [EMAIL PROTECTED]wrote: You can put the tmote in deep deep sleep, its almost switched off. You can find the code in tos/lib/Deluge/TOSBoot/tmoteinvent/PowerOffM.nc in moteiv boomerang distribution. Xavi On Wed, Jul 30, 2008 at 10:13 AM, fatima zohra [EMAIL PROTECTED]wrote: hi all, just to thank everybody who helped me to solve the problem about packet loss rate. my solution is working. i used some dbg messages to notify each packet loss; then programmed a small script which calculate the number of occurence of this notification. Hopefully, it works well. Best regards 2008/7/26 Omprakash Gnawali [EMAIL PROTECTED] On Fri, Jul 25, 2008 at 3:22 PM, fatima zohra [EMAIL PROTECTED] wrote: 2008/7/25 Omprakash Gnawali [EMAIL PROTECTED]: On Fri, Jul 25, 2008 at 7:37 AM, fatima zohra [EMAIL PROTECTED] wrote: 2008/7/25 Omprakash Gnawali [EMAIL PROTECTED]: On Wed, Jul 23, 2008 at 11:45 AM, fatima zohra [EMAIL PROTECTED] wrote: 2008/7/23 Omprakash Gnawali [EMAIL PROTECTED]: If you put sequence numbers in the packet, you can find out which packets were not received. For example, you sent sequence numbers 1 through 10 but and received 1,2,3,4,6,7,8,9,10 then you know exactly how many packets were not received. - om_p actually this isn't my scenario; here is an example of my protocol mechanism: we assume Node1 neighbor of nodes 2 3, and these two nodes are neighbors of source S (S will send 10 msgs for example) if 3 crashes so node 1 won't receive any more packets from 3. which means if You said there is one source but why is node 3 sending packets? because node 3 will forward what the source is sending in order to reach the sink (let's say for example sink = node1 to make it easier) S sends messages (from numSeq = 5 to 9) node A will never notice that he Node A is mentioned here for the first time. Is it node A or 1 or 2 or 3? sorry, it's node 1 (which isn't a direct neighbor to the source S) missed the 5 last nodes (because he doesn't communicate with S directly , Nodes or packets? sorry again, it's packets and node 3 is turned off for ever and node 2 won't help him to know what node 3 lost as messages (from S or other sources) because seq number is unique and different for each node (the 5th seqNum for node 2 may be the 1st message of the source S) now i wonna to calculate packet loss rate in my network since i have a set of nodes who crash and will lose some sent messages. am i clear now ? if yes, how to handle this situation. thanks in advance. best regards. Your description has some typos and could use some clarification. - om_p i mention in addition of what was said that: this simulation is done to study the behavior of the network after some nodes crash. so, first i choose some faulty nodes, then , turn them off for the rest of simulation (they won't receive any packet in the future). in the end of my simulation, i calculate my packet loss rate (i.e number of sent messages but not received by faulty nodes once they are stopped). is it clear now ? Almost. So you have a topology that looks like this: S -- 3 -- 1 but 3 is turned off so 1 is not receiving any packets but you want to find the loss rate on the link 3--1? - om_p that's it, but S--3--1 is just a piece of my topology (i just noticed it to clarify , my topology is larger than that). let's work with this small scenario. what's the way to find the packet loss rate ? Considering your scenario and objective, you should have each node send packets periodically just for link estimation. Then you will be able to estimate link quality even in the absence of data packets. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Xavier Orduña CTO m: [+34] 615 475 065 @: [EMAIL PROTECTED] Dexma Riu de l'or 35 ES-08034 Barcelona t/f: [+34] 93 280 19 18 w: www.dexmatech.com -- Xavier Orduña CTO m: [+34] 615 475 065 @: [EMAIL PROTECTED] Dexma Riu de l'or 35 ES-08034 Barcelona t/f: [+34] 93 280 19 18 w: www.dexmatech.com ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] making a loop sleep.
Hi! I think, I had one similar issue: https://www.millennium.berkeley.edu/pipermail/tinyos-help/2008-June/034400.html I've used printf in a loop and there was no action at all! Although my question was not answered, I'm thinking meanwhile that some functions in TinyOS being scheduled, so if your calling function doesn't finish, the scheduler can't switch to run your send() or my printf(). So one have to release the control flow to allow other called functions to get running. So you could remove the loop and in sendDone start the function that calls send() again. I can assume it is better than to call send() without to be sure sendDone was signaled. It's a pity that the compiler can't check whether the called function can get finish without the calling part have to release the control flow or not. Or there are any parameters I can pass to? Can anyone point to the description, how one can distinguish between these 2 types of functions? Andrey P.S. I had a couple of days ago bad experience with compiler checks. My program in C for atmega64 didn't work. After some time I've figured out what was wrong. I've forgotten to declare a function to handle a timer interrupt. There were no compiler warnings/errors, I'm missing a such critical function!.. Hazem Al- Ojeh wrote: Hi all, I am using TinyOS 2.x and using Tossim to test my results I was wondering if there is a command that may allow me to make a loop sleep so I can send something over the radio to another mote? What I have is a loop that keeps running, then within the loop, I may choose to send a message over the radio to another mote, the problem is I don't want to break out of the loop, what I would like to do is to send the message then continue the loop from where I stopped last! What is actually happening is, the loop keeps running till the end, and then sends the message. I would be thankful for any hints Thank you. ___ 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
[Tinyos-help] error using UartStream......
Hi all, For all the ones that wants to use uart communication in tmote, some things have to be taken in consideration: -What uart do you want to use, UART1 is the uart associated with USB communication so this isn't the one you want to use probably. UART0 is the one exported in the expansion pin connector, but is also shared as a SPI bus with stm25p flash and cc2420 radio chips. -What type of communication you intend to establish, i.e just send bytes to uart, just receive, receive in response to a sent command, or send and receive in a full duplex manner were the receive is not correlated to the send event. Taken this things into account one cant do the following: -In the case that you use UART1 there is no problem at all, I mean you remove the usb or what ever but you have access to the uart, there is no conflict chip intervening in this uart. For the case you use UART0, the most common case: -For just sending: - you have to request the resource - when granted the resource send your bytes. - when send done release the resource. -For just receive or send and receive asynchronously do the same: - request the resource at boot - own the resource for ever. YOU WON'T BE ABLE TO USE FLASH NOR RADIO -For receive that is correlated in time with the send: - request the resource. - when granted the resource send your bytes. - when send done done nothing. - wait until the receive is done. - then release resource. In this last configuration you would be able to use flash and radio. For Varun: In your case you have some compile errors in using the interface because you don't wire all the events the interface provides. I almost sure PlatformSerialC and TelosSerial in particular modules are related to UART1 means USB at 115200 and other parameter set, where are you connecting your leds?.I had posted other mail response in July 2008 were I copy/paste example code on how to do this, in particular the case were ones request the resource for ever, you only have to add the release of the resource when you no longer need it. mail me if isn't clear enough, or you have another question. to do this add my mail in the cc, so it would be in the mailing list for others to get an answer, just like i did in this mail. -Bill ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TinyOS Question
Hello. How do I write a program to run TinyOS on the TelosB mote? I've installed Eclipse, but I can't figure out how to install the proper plugin to get it to work with the mote. Any guidance here would be appreciated. Jim Fell Software Engineer LS Research, LLC Email: [EMAIL PROTECTED] http://www.lsr.com/ Notice: This message and any included attachments are intended only for the use of the addressee, and may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any review, copying or distribution of this communication is strictly prohibited. If you have received this e-mail in error, please destroy the original message and any copies or printouts hereof. Any views or opinions presented are solely those of the author of this e-mail, and do not necessarily represent those of LS Research, LLC, unless otherwise specifically stated. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TelosB TinyOS RF Channel Question
Hello. I just installed the CntToLedsAndRfm and RfmToLeds on two different modes, as per the TPR2420 Quick Start Guide. They seem to be working properly. How do I determine the RF channel on which they are operating? I opened up CntToLedsAndRfm.nc, but it looks like an auto-generated source file without much useful information. Where can I find the actual source code for these programs? Thanks, Jim Fell Software Engineer LS Research, LLC Email: [EMAIL PROTECTED] http://www.lsr.com/ Notice: This message and any included attachments are intended only for the use of the addressee, and may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any review, copying or distribution of this communication is strictly prohibited. If you have received this e-mail in error, please destroy the original message and any copies or printouts hereof. Any views or opinions presented are solely those of the author of this e-mail, and do not necessarily represent those of LS Research, LLC, unless otherwise specifically stated. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TinyOS and Eclipse
Hello. I'm hoping to develop with TinyOS using Eclipse on a Windows XP platform. In installed the recommended MSP430 RPMs from this page: http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html Now, in Eclipse I'm unsure as to which directory I should link my Eclipse TinyOS project to for a proper build. I currently have it linked to here: C:\Program Files\UCB\cygwin\opt\msp430 Is this correct, or is there a better folder? Thanks, Jim Fell Software Engineer LS Research, LLC Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.lsr.com/ http://www.lsr.com/ Notice: This message and any included attachments are intended only for the use of the addressee, and may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any review, copying or distribution of this communication is strictly prohibited. If you have received this e-mail in error, please destroy the original message and any copies or printouts hereof. Any views or opinions presented are solely those of the author of this e-mail, and do not necessarily represent those of LS Research, LLC, unless otherwise specifically stated. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TelosB TinyOS RF Channel Question
In the file \tinyos-2.x\tos\chips\cc2420\CC2420.h you can find the line like this: #define CC2420_DEF_CHANNEL 26 This means that TinyOS 2.x default channel is 26. Anton. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Limited number of timers?
Thank you Eric for the detailed explanation! I did not use VirtualizeTimerC directly at first. But I tried it because I had some strange problems with a timer and thought the reason could be that I use to much timers at a time. Now I know that it has to be another reason. By now I have found a workaround that works in my case ( http://www.mail-archive.com/tinyos-help@millennium.berkeley.edu/msg22593.html ). Thanks again Nicola 2008/7/29 Eric Decker [EMAIL PROTECTED]: On Tue, Jul 29, 2008 at 5:52 AM, Nicola Wegner [EMAIL PROTECTED] wrote: Hi, I am not sure if I got it right. Close. Does it mean that I do not have to care about virtual timers because they will be used automatically by TinyOS? Yes it means tinyos will handle the virtualization for you. If this is the case then the following code would create virtual timers based on another virtual timer. Right? Not quite. You don't want to reference VirtualizeTimerC directly. You want to use TimerTMilli and let the platform wiring handle the virtualization for you. Take a look at tinyos-2.x/apps/tutorials/BlinkTask/* You'll see something like: BlinkTaskAppC.nc: configuration BlinkTaskAppC { } implementation { components MainC, BlinkTaskC, LedsC; components new TimerMilliC() as Timer0; BlinkTaskC - MainC.Boot; BlinkTaskC.Timer0 - Timer0; BlinkTaskC.Leds - LedsC; } And in BlinkTaskC.nc: module BlinkTaskC { uses interface TimerTMilli as Timer0; uses interface Leds; uses interface Boot; } implementation { task void toggle() { call Leds.led0Toggle(); } event void Boot.booted() { call Timer0.startPeriodic( 1000 ); } event void Timer0.fired() { post toggle(); } } So if you wanted to use three timers you would do something like: BlinkTaskC.nc (app) uses interface TimerTMilli as Timer0; uses interface TimerTMilli as Timer1; uses interface TimerTMilli as Timer2; And in the wiring: components new TimerMilliC() as Timer0; components new TimerMilliC() as Timer1; components new TimerMilliC() as Timer2; BlinkTaskC.Timer0 - Timer0; BlinkTaskC.Timer1 - Timer1; BlinkTaskC.Timer2 - Timer2; Where this wires into the underlying layers is via the system component TimerMilliC which eventually causes VirtualizeTimerC to hook up to the underlying platform timer hardware. Take a look at: tinyos-2.x/tos/system/TimerMilliC.nc tinyos-2.x/tos/system/TimerMilliP.nc tinyos-2.x/tos/chips/msp430/timer/HilTimerMilliC.nc (I build for telosb) tinyos-2.x/tos/chips/msp430/timer/AlarmMilli32C.nc etc. To follow what is happening, build BlinkTask as follows: cd tinyos-2.x/apps/tutorials/BlinkTask make verbose telosb It will show which files are being pulled in. eric make components new TimerMilliC() as BaseTimer; components new VirtualizeTimerC(TMilli, 5); VirtualizeTimerC.TimerFrom - BaseTimer.Timer; DbgMessengerP.Timer0 - VirtualizeTimerC.Timer[0]; DbgMessengerP.Timer1 - VirtualizeTimerC.Timer[1]; [...] Thank you, Nicola ___ 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 Autonomous Systems Lab Jack Baskin School of Engineering UCSC ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Cygwin Script Autolaunch
Hello. Is there a way to get Cygwin to auto-launch a shell script when the Cygwin Bash Shell launches? Thanks, Jim ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Graphviz on Cygwin
Hello. Can anyone offer any insight as to which version of Graphviz should be installed in Cygwin? The Online details for this are rather sketchy. Also, what exactly is Graphviz used for? Is it solely for the Eclipse plugin? In that case, should I be installing the Windows version? Thanks, -Jim ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Graphviz on Cygwin
2008/7/30 Jim Fell [EMAIL PROTECTED]: Hello. Can anyone offer any insight as to which version of Graphviz should be installed in Cygwin? The Online details for this are rather sketchy. Also, what exactly is Graphviz used for? Is it solely for the Eclipse As far as I know Graphviz is only used by the documentation feature of TinyOS to create graphics. As mentioned in the installation instruction (http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html (bottom of the page)) you can download it here: http://www.graphviz.org/Download..php plugin? In that case, should I be installing the Windows version? Yes. Nicola ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Cygwin Script Autolaunch
2008/7/30 Jim Fell [EMAIL PROTECTED]: Hello. Is there a way to get Cygwin to auto-launch a shell script when the Cygwin Bash Shell launches? You can put shell commands in the file .bashrc in your home directory. Nicola ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] error using UartStream......
I can't comment on the wiring as I try to remain as aloof as possible from nesc syntax, I would try to find some other usage examples and emulate them. However you do need to implement all the events in an interface. Just make stubs for the ones you don't plan to use. MS Varun Jain wrote: Hi, I am trying to send raw bytes of data on the UART to operate a serial 7-segment LED screen connected to the remote nodes(as the screen accepts commands in terms of hex bytes to display the data). For this I am using the UartStream interface as follows: ---In the application module’s implementation--- call UartStream.send(buf, sizeof(buf)); event void UartStream.sendDone(uint8_t* buffer, uint16_t len, error_t ok) { if (ok == SUCCESS) { call Leds.led1Toggle(); } } ---and the wiring looks like as follows- components PlatformSerialC; AntiTheftC.UartStream - PlatformSerialC; But I am getting errors as follows: In component `AntiTheftC': AntiTheftC.nc:236: `UartStream.sendDone': async mismatch with declaration /opt/tinyos-2.x/tos/interfaces/UartStream.nc:57: previous declaration of `Ua rtStream.sendDone' AntiTheftC.nc:54: `UartStream.receivedByte' not implemented AntiTheftC.nc:54: `UartStream.receiveDone' not implemented make: *** [exe0] Error 1 Can anyone suggest what is the problem or how can it be fixed? What I understand from UartStream interface is either we can send or receive multiple bytes on UART, for sending don’t we just need to send and senddone OR do we also need to use other commands in this interface JUST FOR SENDING, I do not want to receive back anything. Is there any other interface to do this task ??? Cheers, Varun Jain ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Doing Re-transmissions
Lets keep this on the help list As for loop 1, if you enable ACKs in the protocol they are handled in the lower levels and sendDone() is not called until the message is ACKed or times out. Search this list for many ACK explanations, and references to my robocode that makes extensive use of ACKs. As for message copy. You need a message buffer that lasts at least until all the sends are Done. If you can keep track of the buffer from the original message then you can just re-use it, otherwise you should copy it before trying to send again because the send operation will last longer than the scope of the function call, task or not... MS ram kishore wrote: Hi, I put loop 1 because I want a message (ACK) to be received after a message is sent.Thats why I switched to Receiving mode. Secondly,putting the re-transmit into separate task and post it form done() would require the message to be copied again, which is memory inefficient. Regards, Kishore On Tue, Jul 29, 2008 at 11:28 PM, Michael Schippling [EMAIL PROTECTED] wrote: beats me...why are you doing loop 1? by the time you get to done() transmission should be complete. Also I would put the re-transmit into a separate task and post it from done()... MS ram kishore wrote: Hi, I did the following: event result_t RsendMsg.sendDone(TOS_MsgPtr msg, result_t success) { result_t txmode,sndmsg; TOSH_uwait(1000); do{ /*LOOP 1*/ txmode = call CC1000Control.RxMode(); }while(!txmode); if ( txmode == SUCCESS ) call CLeds.yellowOff(); do{ /* LOOP2*/ sndmsg = call RsendMsg.send(TOS_BCAST_ADDR,12,msg); }while(!sndmsg); if ( sndmsg == SUCCESS ) call CLeds.yellowOn(); return SUCCESS; } If I remove LOOP 1, then retransmissions occur.But, when LOOP 1 is included no retransmissions occur. What could be the reason.? Regards, Kishore On Mon, Jul 28, 2008 at 11:44 PM, Michael Schippling [EMAIL PROTECTED] wrote: Just some things to try... I'd bet that the message buffer gets reused or erased before your second send can complete. You may also have trouble calling the send directly from the done, since done is in an event context which is sometimes tantamount to an interrupt, perhaps try copying the message and posting a task to resend? Another possibility is that you are walking over the normal send process. You should check the result of the second send to see if it's giving you an error. And you may need to put in some condition variable to block simultaneous sends. All that said, TOSBase seems to be a bit of a hack-to-get-things-to-work so it might not be easy to modify MS ram kishore wrote: Hi all, I am using TOS1.1.10 .In the standard receiver application TOSBase. I am trying to retransmit the message.I sent a message by calling call RadioSend.send(gpTxMsg);. For this RadioSend.sendDone(TOS_MsgPtr Msg, result_t success) event is generated. Hoping that Msg is a pointer to the already transmitted message,I call call RadioSend.send(Msg); to retransmit the same message again. But the message is not being re-transmitted . Can somebody tell me what is wrong or how to accomplish retransmission? Regards, Kishore ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TinyOS and Eclipse
I have been unsuccessful in repeated attempts to make either of the Eclipse TOS plugins work, perhaps due to my inability to follow instructions...if anyone has been successful I'd love to hear about it. However I do use Eclipse with TOS as a big search engine. I create an Eclipse Project at the top of the tinyos tree and make some sub-search components (I forget what they are called, but under Search-File you can select areas to search). Unfortunately Eclipse will only allow you to have one Project in any directory tree. I haven't found a way to make sub- projects for individual apps because TOS seems to insist on having it's devel tree tightly integrated. MS Jim Fell wrote: Hello. I’m hoping to develop with TinyOS using Eclipse on a Windows XP platform. In installed the recommended MSP430 RPMs from this page: http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html Now, in Eclipse I’m unsure as to which directory I should link my Eclipse TinyOS project to for a proper build. I currently have it linked to here: C:\Program Files\UCB\cygwin\opt\msp430 Is this correct, or is there a better folder? Thanks, *Jim Fell* Software Engineer LS Research, LLC Email: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] http://www.lsr.com/ Notice: This message and any included attachments are intended only for the use of the addressee, and may contain information that is privileged or confidential. If you are not the intended recipient, you are hereby notified that any review, copying or distribution of this communication is strictly prohibited. If you have received this e-mail in error, please destroy the original message and any copies or printouts hereof. Any views or opinions presented are solely those of the author of this e-mail, and do not necessarily represent those of LS Research, LLC, unless otherwise specifically stated. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] interfacing devices with uart....
I'm not sure what it looks like on the micaz motes. On the msp430 flavors (telosb) Iuse UartStream.send and for receiving UartStream.receivedByte The interfaces are in tinyos-2.x/tos/interfaces/UartStream.nc. also check out UartByte.nc On the msp430 platforms these are instantiated by tinyos-2.x/tos/chips/msp430/usart/Msp430UartP.nc after you following the wiring layers. There should be something similar for the micaz. eric On Tue, Jul 29, 2008 at 11:40 PM, Varun Jain [EMAIL PROTECTED] wrote: Hi, I saw a post/query posted earlier at: https://www.millennium.berkeley.edu/pipermail/tinyos-2-commits/2007-June/005830.html I could not find the answer to this, does someone knows how to do achieve this in TINYOS-2.x as I need to something similar, i.e. attach devices on the UART so I just need to send raw bytes on the UART??? I am using Chipcon motes (similar to micaz) and Cygwin. Cheers, Varun Jain ___ 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 Autonomous Systems Lab Jack Baskin School of Engineering UCSC ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Regarding CVS checkout
Hi! On Mon, 28 Jul 2008, nisha jain wrote: How are you using it? Have u generated ssh key for it? Also what parameters did u give in following fields? CVSROOT protocol protocol parameters server port repository folder username Module It gives me following ErrorI want to check out the tinyos-2.x-contrib berkely folder... In C:\: C:\Program Files\CVSNT\cvs.exe -q checkout -P tinyos-2.x-contrib/berkely CVSROOT=:ext:[EMAIL PROTECTED]:/cvsroot/tinyos cvs checkout: warning: unrecognized response `Access denied' from cvs server cvs [checkout aborted]: end of file from server (consult above messages if any) Error, CVS operation failed Please let me know if you have done some special configurations? Here is the command that I used (and worked :P) in cvsnt: cvs.exe -d :pserver:[EMAIL PROTECTED]:/cvsroot/tinyos checkout tinyos-2.x-contrib/berkeley -- Razvan ME On 7/28/08, Jeonghoon Kang [EMAIL PROTECTED] wrote: I am using Tortoise CVS client on WinXP. http://www.tortoisecvs.org/ Try it, simple to access tinyos.cvs.sf.net. Good luck. 2008/7/28 nisha jain [EMAIL PROTECTED]: Hi All, I want to get the tinyos-2.x-contrib directory and I am using Windows XP. I am not able to checkout the code from cygwin. I am not sure what CVS is being used can i get this repository directly ? Regards, Nisha ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- Jeonghoon Kang Senior Researcher at Korea Electronics Technology Institute(www.keti.re.kr) TinyOS Korea Forum Administrator www.tinyos.or.kr work = [EMAIL PROTECTED] private = [EMAIL PROTECTED] www.pinkfloyd.re.kr/rnd/ *Kmote Connector http://www.tinyos.re.kr/bbs/upload/kmote_connector.pdf ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] Detecting one event in another event
Hi all, When ever a packet is received, an event ReceiveMsg.receive(TOS_MsgPtr Msg) is generated.Can I detect this in some other event for example in send.senddone() event,so that I can perform alternative task.How to detect it? An alternative to this may be using conditional variables.I declare a global variable flag as false.Keep performing some task in senddone() event.when a packet is received,receive event generated will set the flag as true, then I will stop doing task in senddone() event.Will this work? Best Regards, Kishore ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Doing Re-transmissions
Hi, The robocode you sent gave a deep insight.Thanks Micheal. One question;How long(in micro seconds) will the mote wait before doing retransmission? This should be protocol specific. Regards, Kishore On Wed, Jul 30, 2008 at 10:29 PM, Michael Schippling [EMAIL PROTECTED] wrote: Lets keep this on the help list As for loop 1, if you enable ACKs in the protocol they are handled in the lower levels and sendDone() is not called until the message is ACKed or times out. Search this list for many ACK explanations, and references to my robocode that makes extensive use of ACKs. As for message copy. You need a message buffer that lasts at least until all the sends are Done. If you can keep track of the buffer from the original message then you can just re-use it, otherwise you should copy it before trying to send again because the send operation will last longer than the scope of the function call, task or not... MS ram kishore wrote: Hi, I put loop 1 because I want a message (ACK) to be received after a message is sent.Thats why I switched to Receiving mode. Secondly,putting the re-transmit into separate task and post it form done() would require the message to be copied again, which is memory inefficient. Regards, Kishore On Tue, Jul 29, 2008 at 11:28 PM, Michael Schippling [EMAIL PROTECTED] wrote: beats me...why are you doing loop 1? by the time you get to done() transmission should be complete. Also I would put the re-transmit into a separate task and post it from done()... MS ram kishore wrote: Hi, I did the following: event result_t RsendMsg.sendDone(TOS_MsgPtr msg, result_t success) { result_t txmode,sndmsg; TOSH_uwait(1000); do{ /*LOOP 1*/ txmode = call CC1000Control.RxMode(); }while(!txmode); if ( txmode == SUCCESS ) call CLeds.yellowOff(); do{ /* LOOP2*/ sndmsg = call RsendMsg.send(TOS_BCAST_ADDR,12,msg); }while(!sndmsg); if ( sndmsg == SUCCESS ) call CLeds.yellowOn(); return SUCCESS; } If I remove LOOP 1, then retransmissions occur.But, when LOOP 1 is included no retransmissions occur. What could be the reason.? Regards, Kishore On Mon, Jul 28, 2008 at 11:44 PM, Michael Schippling [EMAIL PROTECTED] wrote: Just some things to try... I'd bet that the message buffer gets reused or erased before your second send can complete. You may also have trouble calling the send directly from the done, since done is in an event context which is sometimes tantamount to an interrupt, perhaps try copying the message and posting a task to resend? Another possibility is that you are walking over the normal send process. You should check the result of the second send to see if it's giving you an error. And you may need to put in some condition variable to block simultaneous sends. All that said, TOSBase seems to be a bit of a hack-to-get-things-to-work so it might not be easy to modify MS ram kishore wrote: Hi all, I am using TOS1.1.10 .In the standard receiver application TOSBase. I am trying to retransmit the message.I sent a message by calling call RadioSend.send(gpTxMsg);. For this RadioSend.sendDone(TOS_MsgPtr Msg, result_t success) event is generated. Hoping that Msg is a pointer to the already transmitted message,I call call RadioSend.send(Msg); to retransmit the same message again. But the message is not being re-transmitted . Can somebody tell me what is wrong or how to accomplish retransmission? Regards, Kishore ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Detecting one event in another event
On Wed, Jul 30, 2008 at 10:55 AM, ram kishore [EMAIL PROTECTED] wrote: Hi all, When ever a packet is received, an event ReceiveMsg.receive(TOS_MsgPtr Msg) is generated.Can I detect this in some other event for example in send.senddone() event,so that I can perform alternative task.How to detect it? First I'm not sure what problem you are trying to solve. The description you give above sounds complicated. If I understand correctly from the event handler for send.senddone you want to check to see if a message was received and do something else. Is that correct? If so it seems simpler to let the different handlers handler their one thing. Just an aside. events are signaled from another module and as such are pieces of static code. As such there isn't a way to detect an event in another event. That said your alternative sounds like it might work but it depends on what kind of events, async or not, are being used. And as soon as you start mixing async stuff and wanting it to interact with a task level event things get complicated quickly. eric An alternative to this may be using conditional variables.I declare a global variable flag as false.Keep performing some task in senddone() event.when a packet is received,receive event generated will set the flag as true, then I will stop doing task in senddone() event.Will this work? Best Regards, Kishore ___ 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 Autonomous Systems Lab Jack Baskin School of Engineering UCSC ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] TinyOS and Eclipse
Hi Jim and MS, There is perhaps a way to do it: An editor (Eclipse plugin) project for nesC was started some weeks ago. It was committed to contrib a few days ago, and it is not tested so much yet... But if you go to the contrib index; http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x-contrib/contrib.html and look for nescdt in the Tools column; and then follow the links you will find the page in the TinyOS wiki that describes how to use (and extend (or fix bugs)) the editor (or go directly to the home page http://docs.tinyos.net/index.php/NESCDT-_An_editor_for_nesC_in_Eclipse). Good luck, Rasmus PS: Perhaps drop me a note if you have time to give nescdt a try? I have been unsuccessful in repeated attempts to make either of the Eclipse TOS plugins work, perhaps due to my inability to follow instructions...if anyone has been successful I'd love to hear about it. However I do use Eclipse with TOS as a big search engine. I create an Eclipse Project at the top of the tinyos tree and make some sub-search components (I forget what they are called, but under Search-File you can select areas to search). Unfortunately Eclipse will only allow you to have one Project in any directory tree. I haven't found a way to make sub- projects for individual apps because TOS seems to insist on having it's devel tree tightly integrated. MS Jim Fell wrote: / Hello. I’m hoping to develop with TinyOS using Eclipse on a Windows XP // platform. In installed the recommended MSP430 RPMs from this page: // // // // http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html // // // // Now, in Eclipse I’m unsure as to which directory I should link my // Eclipse TinyOS project to for a proper build. I currently have it // linked to here: // // // // C:\Program Files\UCB\cygwin\opt\msp430 // // // // Is this correct, or is there a better folder? // // // // Thanks, // // // // *Jim Fell* // Software Engineer // LS Research, LLC // Email: jfell at lsr.com https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help mailto:jfell at lsr.com https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help // http://www.lsr.com/ // // // // Notice: This message and any included attachments are intended only for // the use of the addressee, and may contain information that is privileged // or confidential. If you are not the intended recipient, you are hereby // notified that any review, copying or distribution of this communication // is strictly prohibited. If you have received this e-mail in error, // please destroy the original message and any copies or printouts hereof. // Any views or opinions presented are solely those of the author of this // e-mail, and do not necessarily represent those of LS Research, LLC, // unless otherwise specifically stated. // // // // // // // ___ // Tinyos-help mailing list // Tinyos-help at millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help // https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help / ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Doing Re-transmissions
I don't know an exact message delay figure. There's some software overhead, and then the MAC protocol which may backoff a random time to avoid collisions. There's also some indication that there should be a few milli-sec delay before retrying a message -- see recent posts and my message reliability reports -- but that might be receiver related. MS ram kishore wrote: Hi, The robocode you sent gave a deep insight.Thanks Micheal. One question;How long(in micro seconds) will the mote wait before doing retransmission? This should be protocol specific. Regards, Kishore On Wed, Jul 30, 2008 at 10:29 PM, Michael Schippling [EMAIL PROTECTED] wrote: Lets keep this on the help list As for loop 1, if you enable ACKs in the protocol they are handled in the lower levels and sendDone() is not called until the message is ACKed or times out. Search this list for many ACK explanations, and references to my robocode that makes extensive use of ACKs. As for message copy. You need a message buffer that lasts at least until all the sends are Done. If you can keep track of the buffer from the original message then you can just re-use it, otherwise you should copy it before trying to send again because the send operation will last longer than the scope of the function call, task or not... MS ram kishore wrote: Hi, I put loop 1 because I want a message (ACK) to be received after a message is sent.Thats why I switched to Receiving mode. Secondly,putting the re-transmit into separate task and post it form done() would require the message to be copied again, which is memory inefficient. Regards, Kishore On Tue, Jul 29, 2008 at 11:28 PM, Michael Schippling [EMAIL PROTECTED] wrote: beats me...why are you doing loop 1? by the time you get to done() transmission should be complete. Also I would put the re-transmit into a separate task and post it from done()... MS ram kishore wrote: Hi, I did the following: event result_t RsendMsg.sendDone(TOS_MsgPtr msg, result_t success) { result_t txmode,sndmsg; TOSH_uwait(1000); do{ /*LOOP 1*/ txmode = call CC1000Control.RxMode(); }while(!txmode); if ( txmode == SUCCESS ) call CLeds.yellowOff(); do{ /* LOOP2*/ sndmsg = call RsendMsg.send(TOS_BCAST_ADDR,12,msg); }while(!sndmsg); if ( sndmsg == SUCCESS ) call CLeds.yellowOn(); return SUCCESS; } If I remove LOOP 1, then retransmissions occur.But, when LOOP 1 is included no retransmissions occur. What could be the reason.? Regards, Kishore On Mon, Jul 28, 2008 at 11:44 PM, Michael Schippling [EMAIL PROTECTED] wrote: Just some things to try... I'd bet that the message buffer gets reused or erased before your second send can complete. You may also have trouble calling the send directly from the done, since done is in an event context which is sometimes tantamount to an interrupt, perhaps try copying the message and posting a task to resend? Another possibility is that you are walking over the normal send process. You should check the result of the second send to see if it's giving you an error. And you may need to put in some condition variable to block simultaneous sends. All that said, TOSBase seems to be a bit of a hack-to-get-things-to-work so it might not be easy to modify MS ram kishore wrote: Hi all, I am using TOS1.1.10 .In the standard receiver application TOSBase. I am trying to retransmit the message.I sent a message by calling call RadioSend.send(gpTxMsg);. For this RadioSend.sendDone(TOS_MsgPtr Msg, result_t success) event is generated. Hoping that Msg is a pointer to the already transmitted message,I call call RadioSend.send(Msg); to retransmit the same message again. But the message is not being re-transmitted . Can somebody tell me what is wrong or how to accomplish retransmission? Regards, Kishore ___ 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 ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TinyOS and Eclipse
Does this do config parsing so one can tag to relevant source files somehow? And does it require T2? I'm pretty much stuck on T1. thanks MS Rasmus Ulslev Pedersen wrote: Hi Jim and MS, There is perhaps a way to do it: An editor (Eclipse plugin) project for nesC was started some weeks ago. It was committed to contrib a few days ago, and it is not tested so much yet... But if you go to the contrib index; http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x-contrib/contrib.html and look for nescdt in the Tools column; and then follow the links you will find the page in the TinyOS wiki that describes how to use (and extend (or fix bugs)) the editor (or go directly to the home page http://docs.tinyos.net/index.php/NESCDT-_An_editor_for_nesC_in_Eclipse). Good luck, Rasmus PS: Perhaps drop me a note if you have time to give nescdt a try? I have been unsuccessful in repeated attempts to make either of the Eclipse TOS plugins work, perhaps due to my inability to follow instructions...if anyone has been successful I'd love to hear about it. However I do use Eclipse with TOS as a big search engine. I create an Eclipse Project at the top of the tinyos tree and make some sub-search components (I forget what they are called, but under Search-File you can select areas to search). Unfortunately Eclipse will only allow you to have one Project in any directory tree. I haven't found a way to make sub- projects for individual apps because TOS seems to insist on having it's devel tree tightly integrated. MS Jim Fell wrote: / Hello. I’m hoping to develop with TinyOS using Eclipse on a Windows XP // platform. In installed the recommended MSP430 RPMs from this page: // // // // http://www.tinyos.net/tinyos-2.x/doc/html/install-tinyos.html // // // // Now, in Eclipse I’m unsure as to which directory I should link my // Eclipse TinyOS project to for a proper build. I currently have it // linked to here: // // // // C:\Program Files\UCB\cygwin\opt\msp430 // // // // Is this correct, or is there a better folder? // // // // Thanks, // // // // *Jim Fell* // Software Engineer // LS Research, LLC // Email: jfell at lsr.com https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help mailto:jfell at lsr.com https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help // http://www.lsr.com/ // // // // Notice: This message and any included attachments are intended only for // the use of the addressee, and may contain information that is privileged // or confidential. If you are not the intended recipient, you are hereby // notified that any review, copying or distribution of this communication // is strictly prohibited. If you have received this e-mail in error, // please destroy the original message and any copies or printouts hereof. // Any views or opinions presented are solely those of the author of this // e-mail, and do not necessarily represent those of LS Research, LLC, // unless otherwise specifically stated. // // // // // // // ___ // Tinyos-help mailing list // Tinyos-help at millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help // 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 ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
[Tinyos-help] FW: Tinyos-help Digest, Vol 63, Issue 129
Hello Nicola, Thanks for the tip! I've made the file called .bashrc at /cygdrive/c/Documents and Settings/jfell and placed in it the following shell script: export CLASSPATH=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar` export CLASSPATH=$CLASSPATH;. TOSROOT=/opt/tinyos-2.x TOSDIR=$TOSROOT/tos CLASSPATH=C:\tinyos\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar MAKERULES=$TOSROOT/support/make/Makerules PATH=/opt/msp430/bin:$PATH However, now I am getting this error when I launch the Cygwin Bash Shell: bash: /usr/local/bin/locate-jre: No such file or directory This error does not occur, if I run the same script manually from a file I made called go.sh. Any thoughts? Thanks, -Jim -Original Message- Date: Wed, 30 Jul 2008 18:53:13 +0200 From: Nicola Wegner [EMAIL PROTECTED] Subject: Re: [Tinyos-help] Cygwin Script Autolaunch To: tinyos-help@millennium.berkeley.edu Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=UTF-8 2008/7/30 Jim Fell [EMAIL PROTECTED]: Hello. Is there a way to get Cygwin to auto-launch a shell script when the Cygwin Bash Shell launches? You can put shell commands in the file .bashrc in your home directory. Nicola ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] FW: Tinyos-help Digest, Vol 63, Issue 129
In my T1 system that's in tools/scripts/locate-jre are you sure it's in the /usr/local/bin directory? Jim Fell wrote: Hello Nicola, Thanks for the tip! I've made the file called .bashrc at /cygdrive/c/Documents and Settings/jfell and placed in it the following shell script: export CLASSPATH=`cygpath -w $TOSROOT/support/sdk/java/tinyos.jar` export CLASSPATH=$CLASSPATH;. TOSROOT=/opt/tinyos-2.x TOSDIR=$TOSROOT/tos CLASSPATH=C:\tinyos\cygwin\opt\tinyos-2.x\support\sdk\java\tinyos.jar MAKERULES=$TOSROOT/support/make/Makerules PATH=/opt/msp430/bin:$PATH However, now I am getting this error when I launch the Cygwin Bash Shell: bash: /usr/local/bin/locate-jre: No such file or directory This error does not occur, if I run the same script manually from a file I made called go.sh. Any thoughts? Thanks, -Jim -Original Message- Date: Wed, 30 Jul 2008 18:53:13 +0200 From: Nicola Wegner [EMAIL PROTECTED] Subject: Re: [Tinyos-help] Cygwin Script Autolaunch To: tinyos-help@millennium.berkeley.edu Message-ID: [EMAIL PROTECTED] Content-Type: text/plain; charset=UTF-8 2008/7/30 Jim Fell [EMAIL PROTECTED]: Hello. Is there a way to get Cygwin to auto-launch a shell script when the Cygwin Bash Shell launches? You can put shell commands in the file .bashrc in your home directory. Nicola ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] FW: Tinyos-help Digest, Vol 63, Issue 129
2008/7/30 Jim Fell [EMAIL PROTECTED]: Hello Nicola, Thanks for the tip! I've made the file called .bashrc at /cygdrive/c/Documents and Settings/jfell and placed in it the following shell script: You should have a file named .bashrc in your cygwin home directory not in the windows home directory ;) This should be something like /home/jfell from your cygwin shell. Try a ls -a and you should see it. However, now I am getting this error when I launch the Cygwin Bash Shell: bash: /usr/local/bin/locate-jre: No such file or directory I do not think that this error has anything to do with the file in your windows home directory. Nicola ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help