Re: [Tinyos-help] IMPLEMENTATION OF COLLECTION TREE PROTOCOL
You could try emailing the authors requesting access to the code. Otherwise, your best bet might be to find an implementation that is closest to what you want and modify the code. - om_p On Wed, Oct 16, 2013 at 7:45 AM, sandyireland sandy.i...@gmail.com wrote: Hi Omprakash, It is difficult to find Algorithmic details of protocols like SPIN. in complete Here CTP many details are there.. But there are many details where it not open. IEEE site have few paper where they discuss theortical details of SPIN. and in one paper implentation of SPIN over tiny OS. but they details are not enough for implementation.. (facing problem since not from linux or emebeded software or wireless network software implementation background.. trying .. COUGAR if or PEGASIS which I wanted to implement how can get more details. Regards Sandeep Sharma -- View this message in context: http://tinyos-help.10906.n7.nabble.com/IMPLEMENTATION-OF-COLLECTION-TREE-PROTOCOL-tp23639p23677.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ 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] MULTIHOP ROUTING
Eric - were you able to contact Adam? - om_p On Mon, Oct 14, 2013 at 10:26 PM, Omprakash Gnawali gnaw...@cs.uh.edu wrote: I think you are looking for Ádám Erdélyi, MSc on this page: http://uni-klu.ac.at/tewi/ict/nes/pc/staff/ - om_p On Mon, Oct 14, 2013 at 7:31 PM, Eric Decker cire...@gmail.com wrote: sweet. Any one know what version of XbunTOS is inside the VM? Is it 13.04? Anyone know how to get a hold of the author of the TinyOS wiki page. His user name looks like an international one. I'd like to get his screen shots and see if I can get them added to the wiki. On Mon, Oct 14, 2013 at 5:13 PM, sandyireland sandy.i...@gmail.com wrote: send error messages and you can use virtual image of read tinyos.net install instrutions http://tinyos.stanford.edu/tinyos-wiki/index.php/Installing_XubunTOS_(with_TinyOS_from_tp-freeforall/prod_repository)_in_VirtualBox -- View this message in context: http://tinyos-help.10906.n7.nabble.com/MULTIHOP-ROUTING-tp23636p23653.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ 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 mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] MULTIHOP ROUTING
I think you are looking for Ádám Erdélyi, MSc on this page: http://uni-klu.ac.at/tewi/ict/nes/pc/staff/ - om_p On Mon, Oct 14, 2013 at 7:31 PM, Eric Decker cire...@gmail.com wrote: sweet. Any one know what version of XbunTOS is inside the VM? Is it 13.04? Anyone know how to get a hold of the author of the TinyOS wiki page. His user name looks like an international one. I'd like to get his screen shots and see if I can get them added to the wiki. On Mon, Oct 14, 2013 at 5:13 PM, sandyireland sandy.i...@gmail.com wrote: send error messages and you can use virtual image of read tinyos.net install instrutions http://tinyos.stanford.edu/tinyos-wiki/index.php/Installing_XubunTOS_(with_TinyOS_from_tp-freeforall/prod_repository)_in_VirtualBox -- View this message in context: http://tinyos-help.10906.n7.nabble.com/MULTIHOP-ROUTING-tp23636p23653.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ 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 mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] IMPLEMENTATION OF COLLECTION TREE PROTOCOL
Here is a page that describes CTP and lists different implementations of CTP: http://sing.stanford.edu/gnawali/ctp/ I am not aware of NS2 implementation. If you know of one, let me know, and I will update the page. - om_p On Thu, Sep 19, 2013 at 10:45 PM, mathumitha project mathumithaproj...@gmail.com wrote: RESPECTED SIR , THIS IS MATHUMITHA SUNDARARAJAN. I AM DOING MY POST GRADUATION IN COMPUTER AND COMMUNICATION ENGINEERING.FOR MY PROJECT I NEED THE DETAILS ABOUT THE NS2 CODE FOR IMPLEMENTATION OF COLLECTION TREE PROTOCOL . with regards, MATHUMITHA SUNDARARAJAN ___ 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] question about The Collection Tree Protocol(CTP)
First step would be to try to compile. Once it compiles, you can start tweaking things like forwarding time. - om_p On Thu, Jul 18, 2013 at 11:40 PM, 蒋燕飞 janeh...@126.com wrote: Dear author, I am a student in China.I have learnt TinyOS for almost 1 year.Now I am doing some research on CTP.but I have some questions to ask you ,can you give me some help? Here are my questions: 1.CTP can work on micaz, while it doesn't work on mica2. The component CtpForwardingEngineP.nc describes that the times above are all for CC2420-based platforms. The timings for other platforms depend on their bit rates, as they are based on packet transmission times.These timings are defined in terms of packet times. Currently, two values are defined: for CC2420-based platforms (4ms) and all other platfoms (32ms). So my question is that can CTP be modified to work on mica2? 2 How can I modify the programme to make it work on mica2. please give me some key points,thank you very much. Hoping to hearing from you ! yours, Jiang Yan ___ 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] Multi hop problem
You can look at the source code for protocols such as CTP (tos/lib/net/ctp) to understand how to do multi-hop forwarding. - om_p On Thu, Mar 28, 2013 at 12:00 PM, ravi naik...@gmail.com wrote: Hi all, I am currently working on Multi Hop networking protocol. Can anyone help me with the code to forward a message, i.e., retransmit the same message that has been recived by one mote. Its sort of urgent so please revert back to this mail. Thanks in advance. Cheers, S. Ravindra Naik ___ 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] How to send and receive different AM types in CTP?
If you do not want to change any CTP code, you can use different collection ID to distinguish between packets from different applications. - om_p On Tue, Mar 5, 2013 at 12:55 AM, Anbu Sorna sorna.a...@yahoo.com wrote: Hi all, We are doing project in tinyos on data aggregation and merging.. In my forwarder, i am receiving data of AM type 23, i have to send merged data of different AM type 10 to the receiver. Precisely how to receive one AM type and send different AM type in the forwarder of Collection Tree Protocol.. Expecting your reply Thank u.. ___ 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] Any Examples of CTP in Tossim?
apps/tests/TestNetwork - om_p On Mon, Dec 10, 2012 at 9:29 PM, John K. Russ ac7...@wayne.edu wrote: Hello All, Does anyone have examples of how CTP (Collection Tree Protocol) works on Tossim? Any code examples? -- John Kenneth Russ College of Liberal Arts Sciences COMPUTING Wayne State University j...@wayne.edu (313)-577-0274 If you can control a man's thinking you do not have to worry about his action. When you determine what a man shall think you do not have to concern yourself about what he will do. If you make a man feel that he is inferior, you do not have to compel him to accept an inferior status, for he will seek it himself. If you make a man think that he is justly an outcast, you do not have to order him to the back door. He will go without being told; and if there is no back door, his very nature will demand one. -- Carter G. Woodson ___ 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] How to run the example EasyCollection (of Collection) in part Network Protocol (http://docs.tinyos.net/tinywiki/index.php/Network_Protocols)?
We can identify the problem as one of networking or rest of the system. Could you first run apps/tests/TestNetwork? If the root receives the packets, then we know networking is working and the problem might be somewhere else. - om_p On Sun, Sep 30, 2012 at 8:04 AM, Nhuanthong nhuanth...@gmail.com wrote: Dear Omprakash Gnawali, For the example EasyCollection, inside the file EasyCollectionC.nc, the root will be set ID = 1. Then, I try to do as follow: 1. make telosb for the folder EasyCollection. 2. For compiling the node and root, I type: For root node: make telosb install,1 For non-root node: make telosb install, x (with x is sensor ID 1) However, when I use the command Listen for listening from non-root sensors to root node, nothing happen!!! (the command: java net.tinyos.tools.Listen -comm serial@/dev/ttyUSB17:telosb) Then, I try to compile the root by using the BaseStation (inside apps folder), and I can see the packet when I turn on the sensors (by using the above command Listen)!! I do not know which case is right, and where is the wrong thing?!!! Could you please tell me how to get and display the packet in right way? Best regards, Huy. On Sun, Sep 30, 2012 at 3:51 AM, Omprakash Gnawali gnaw...@cs.uh.edu wrote: We can identify the problem as one of networking or rest of the system. Could you first run apps/tests/TestNetwork? If the root receives the packets, then we know networking is working and the problem might be somewhere else. - om_p On Sat, Sep 29, 2012 at 1:49 PM, Nhuanthong nhuanth...@gmail.com wrote: Dear Helps, I try to form a CPT (Collection Protocol Tree) WSN by the example EasyCollection in the part Network Protocol (http://docs.tinyos.net/tinywiki/index.php/Network_Protocols). However, when I run the application, the base station sensor (root) can not receive any packet from other sensors even though the led lights of the these sensors work! Could you please teach me how to receive the packet from the children sensor and display on the PC? Thank you so much for your help. Best regards! ___ 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] How to run the example EasyCollection (of Collection) in part Network Protocol (http://docs.tinyos.net/tinywiki/index.php/Network_Protocols)?
We can identify the problem as one of networking or rest of the system. Could you first run apps/tests/TestNetwork? If the root receives the packets, then we know networking is working and the problem might be somewhere else. - om_p On Sat, Sep 29, 2012 at 1:49 PM, Nhuanthong nhuanth...@gmail.com wrote: Dear Helps, I try to form a CPT (Collection Protocol Tree) WSN by the example EasyCollection in the part Network Protocol (http://docs.tinyos.net/tinywiki/index.php/Network_Protocols). However, when I run the application, the base station sensor (root) can not receive any packet from other sensors even though the led lights of the these sensors work! Could you please teach me how to receive the packet from the children sensor and display on the PC? Thank you so much for your help. Best regards! ___ 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] Routing protocol
You should ask the researcher who wrote that protocol. - om_p On Tue, Sep 11, 2012 at 7:59 AM, Premkumar Arumugam psgp...@aol.com wrote: Hello, Can anyone please provide the source code / algorithm for MultiPath Dynamic Source Routing (MP-DSR). Thanks, Prem psgp...@aol.com ___ 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] How to Tunnel CTP Header Over Serial
Can you check if you are receiving the proper bytes corresponding to the message on the PC side using seriallisten or serialforwarder and sflisten? If you are receiving proper bytes, the problem is in your Java code. Otherwise, the problem might be on the mote side. - om_p On Sat, Sep 1, 2012 at 6:11 PM, kevin doran k.a.dor...@gmail.com wrote: Hi, I have been struggling for days trying to tunnel a CTP header over serial and receive the header in Java. I have just modified the MultihopOscilloscope program. Here is my code: The base node of a CTP network receives packets and forwards them on serial as follows: event message_t* Receive.receive(message_t* msg, void* payload, uint8_t len) { ctp_data_header_t* in = (ctp_data_header_t*) payload; ctp_data_header_t* out; out = (ctp_data_header_t*) call SerialSend.getPayload(uartbuf, sizeof(ctp_data_header_t)); memcpy(out, in, sizeof(ctp_data_header_t)); uartlen = sizeof(ctp_data_header_t); call SerialSend.send(0x, uartbuf, uartlen); return msg; } The Java program running on the PC tries to capture the headers as follows: public class HeaderReceiver implements MessageListener { MoteIF mote; void run() { mote = new MoteIF(PrintStreamMessenger.err); mote.registerListener(new CtpDataHeader(), this); } synchronized public void messageReceived(int dest_addr, Message msg) { //never called. } } The CtpDataHeader class was created with MIG. Any thoughts on what I am doing wrong? Thanks a million, Kevin Doran ___ 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] CTP with LPL Integration
Please look at apps/tests/TestNetworkLpl for an example. - om_p On Wed, Sep 5, 2012 at 12:07 PM, Gustavo Zanatta Bruno gkbsa2...@gmail.com wrote: Guys, I'm having problems implement a program that uses the CTP (Collection Tree Protocol) with LPL (Low Power Listening), gives an error when calling the setLocalSleelpInterval, says he does not think the method. If anyone has any examples I am very grateful. -- Graciously Gustavo Zanatta Bruno Masters Student Fluminense Federal University Rio, Brazil ___ 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] CTP with LPL Integration
Please try apps/tests/TestNetworkLpl - om_p On Wed, Sep 5, 2012 at 3:56 PM, Gustavo Zanatta Bruno zana...@ic.uff.br wrote: Guys, I'm having problems implement a program that uses the CTP (Collection Tree Protocol) with LPL (Low Power Listening) in Micaz, gives an error when calling the setLocalSleelpInterval, says he does not think the method. If anyone has any examples I am very grateful. -- Graciously Gustavo Zanatta Bruno Masters Student Fluminense Federal University Rio, Brazil ___ 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] implementation of a new routing algorithm
It seems like you have your routing algorithm designed. If you are curious about how to write code for a routing protocol, I suggest reading the code for CTP (which you can find in tos/lib/net/ctp). Although your protocol is different from CTP, reading that code will give you an idea on how other people wrote code for other routing protocols. Routing table management is done in CtpRoutingEngineP.nc. - om_p On Mon, Jul 30, 2012 at 4:13 AM, mamta_b mamtabu...@indiatimes.com wrote: thanks for replying Omprakash. i am starting with static deployment of nodes where i know the positions of my nodes where they are placed. i want to group all nodes in different layers and in each node's routing table i want to store priorities of the nodes in layers towards the basestation i mean in the forward direction towards the basestation. i need to store only 3 priorites . now what structure do i need to create and how to implement it. thanks. Omprakash Gnawali-4 wrote: Why do you want to implement your own routing protocol? I am assuming the existing protocols don't meet your requirements. If so, what are your requirements? - om_p On Tue, Jul 24, 2012 at 1:42 AM, mamta_b mamtabu...@indiatimes.com wrote: hi friends, i have studied and tested multihoposcilloscope and testnetwork applications. now i want to implement my own routing algorithm but i am confused that from where to start, how to create different layers of nodes, how to store routing information tables in each node and broadcasting them. i am not coming up to the start point of implementing a new routing algo. please help. -- View this message in context: http://old.nabble.com/implementation-of-a-new-routing-algorithm-tp34203690p34203690.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ 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 -- View this message in context: http://old.nabble.com/implementation-of-a-new-routing-algorithm-tp34203690p34229884.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ 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] implementation of a new routing algorithm
Why do you want to implement your own routing protocol? I am assuming the existing protocols don't meet your requirements. If so, what are your requirements? - om_p On Tue, Jul 24, 2012 at 1:42 AM, mamta_b mamtabu...@indiatimes.com wrote: hi friends, i have studied and tested multihoposcilloscope and testnetwork applications. now i want to implement my own routing algorithm but i am confused that from where to start, how to create different layers of nodes, how to store routing information tables in each node and broadcasting them. i am not coming up to the start point of implementing a new routing algo. please help. -- View this message in context: http://old.nabble.com/implementation-of-a-new-routing-algorithm-tp34203690p34203690.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ 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] is it possible to perform multihopping without using collection tree protocol?????????
Yes, that is possible as long as you use some multi-hop routing protocol. You don't have to use CTP. - om_p On Wed, Jul 11, 2012 at 3:59 AM, mamta_b mamtabu...@indiatimes.com wrote: hi, i am confused that how to write an application which performs multihopping but without using collection tree protocol. is it possible to do that? i have gone through multihoposcilloscope and testnetwork applications both are using CTP. please help. -- View this message in context: http://old.nabble.com/is-it-possible-to-perform-multihopping-without-using-collection-tree-protocol--tp34144482p34144482.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ 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] hopcount of TestNetwork
On Sat, Jun 2, 2012 at 4:20 AM, まいかわさと 07.satosato...@gmail.com wrote: Hi all, I moved TestNetwork to collect data using CTP. I want to get hopcount, but don't implement in TestNetwork. I read the following messages. http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2008-October/036536.html but I didn't understand. Please tell me how to get hopcount in TestNetwork. Please look at the THL field. That might be adequate for what you want. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] hopcount of CTP
On Sat, Jun 2, 2012 at 5:26 AM, Sato Maikawa 07.satosato...@gmail.com wrote: Hi all, I moved TestNetwork to collect data using CTP. I want to get hopcount, but don't implement in TestNetwork. I read the following messages. http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2008-October/036536.html but I didn't understand. Please tell me how to get hopcount in TestNetwork. Are you trying to find out how many hops a message traveled? If so, use the THL field. If your node is trying to do something based on how many hops it is away from the sink, you will have to guess based on path ETX. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] simulation of ctp in tinyos 2.1.1
You might want to look at TOSSIM tutorial on tinyos.net and apps/tests/TestNetwork/test.py to get ideas on how to proceed. - om_p On Thu, May 17, 2012 at 10:11 AM, jeni john jenij...@rediffmail.com wrote: How can I simulate ctp protocol of tinyos-2.1.1/tos/lib/ctp in tossim. I have successfully run TestDissemination of apps/tests and also on process of simulating TestNetwork of apps/tests. I am really confused on how to write python code for tossim to simulate ctp, as I have to show simulation of ctp protocol at the earliest. Please do help me as early as possible. thanking you, in advance -jeni http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle? Follow *Rediff Deal ho jaye!http://track.rediff.com/click?url=___http://dealhojaye.rediff.com?sc_cid=rediffmailsignature___cmp=signaturelnk=rediffmailsignaturenewservice=deals * to get exciting offers in your city everyday. ___ 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] Help: MultiHop Routing on TelosB motes
You might want to check out various network protocols in TinyOS 2.x. Here is a good place to start: http://docs.tinyos.net/tinywiki/index.php/TinyOS_Tutorials - om_p On Thu, May 17, 2012 at 5:26 AM, Ravikiran Dhulipala dhulipala.ravikira...@gmail.com wrote: While trying to implement a multihop routine on telosb motes with the code from this source http://www.tinyos.net/tinyos-1.x/tos/lib/MultiHopLQI/ i get this error when i try to compile the code: $ make telosb Makefile:4: /Makefile.in: No such file or directory make: *** No rule to make target '/Makefile.in'. Stop. I'm using tinyos-1.x on windows XP. Please point me in the right direction. Thanks a lot! Ravi PS: Anybody who has successfully implemented a multihop routine on TelosB motes, please help me out with this. ___ 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] how to measure PRR
You can look at CTP example. It computes PRR to assess the quality of links. You can find an example that uses CTP in apps/tests/TestNetwork. There is a test.py script in that directory. - om_p On Thu, May 10, 2012 at 3:25 AM, Hamza Tayeb hamza.ta...@yahoo.fr wrote: Hi i want to realize a simulation through TOSSIM that allow to calculate PRR and i don't know what example to take. could you give some advices please any help would be appreciated Regards ___ 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] Low duty-cycled Trickle protocol
On Fri, Apr 6, 2012 at 10:58 PM, Gary Lee gary.lee1...@gmail.com wrote: I am wondering what kind of time synchronization (working schedule) sensor nodes have in Collection Tree protocol? As stated in CTP paper, Trickle is used for adaptive beaconing. Suppose node A and node B are neighbors. Nodes A is about to send a beacon when Trickle timers expires. However, node B is sleeping then. What shall node A do? If you are using asynchronous duty-cycling MAC, node A will send the beacon repeatedly until node B wakes up and receives the packet. If you are using synchronous duty-cycling, node A will queue the packet and transmit the packet when the radio is on. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Ctp
On Wed, Feb 29, 2012 at 7:59 PM, yanzhi zeng zengyan...@gmail.com wrote: Hi, who has a demo that uses Ctp protocol, I want to learn how to use Ctp. This is a good place to start: http://docs.tinyos.net/tinywiki/index.php/Network_Protocols - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CTP_OPT_ECN in CTP
On Wed, Mar 21, 2012 at 10:40 AM, Yusnaidi Md Yusof yusnaid...@gmail.com wrote: Hi, I am a bit confuse. I am not really clear how a call to CtpInfo.setNeighborCongested(from, congested) can set the neighbor as congested (in the BeaconReceive.receive() event in CtpRoutingEngineP)?, because I found that a call to CtpRoutingPacket.getOption(msg, CTP_OPT_ECN) returns FALSE, therefore setting the 'congested' variable to FALSE as well. I guess, this will not set the neighbor 'from' as congested? This is a feature not used, one of the unfinished CTP projects. For congestion control, I would not look at CTP. There are many protocols that are published that work on congestion control. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Low duty-cycled Trickle protocol
On Tue, Apr 3, 2012 at 11:15 AM, Gary Lee gary.lee1...@gmail.com wrote: Hi, Trickle protocol is used for data dissemination. The original Trickle paper assumes sensor nodes are always on. I am wondering is there some paper/TinyOS implementation that is about Trickle on low-duty-cycled sensor networks? CTP uses Trickle and works with duty-cycled radios. That might be a good place to start. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] tymo/dymo status and GPL license
Martin, Tymo is no longer included in TinyOS distribution. - om_p On Mon, Feb 20, 2012 at 10:16 AM, Martin Cerveny mar...@c-home.cz wrote: Hello. What is tymo/dymo library status ? Issuses: 1) many TODO and hidden bugs (see wiki) 2) tymo/dymo flood my network 3) uses GPL license that is icompatible with rest of project (BSD license) (GPL is project license (no file license)) Is there any updated (working) tymo/dymo sources ? What is policy about license incompatibilities ? Code should be dropped or relicensed to BSD by author. Thanks for answers, Martin Cerveny ___ 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] Collection Tree Protocol (CTP) ROOT problem
On Thu, Nov 24, 2011 at 8:14 PM, Alshaboti alshaboti...@yahoo.com wrote: Hi, In Collection Tree Protocol (CTP) is there anyway to know if the only root failed ?? How do other noods know if there is no root any more? If the root is no longer there, the routes will be invalidated eventually. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Multi-hop application
On Wed, Nov 30, 2011 at 12:05 PM, Prasanth P prasanthh...@gmail.com wrote: Hi all, I am following tinyos wiki page and now i want to do one multi hop application using telosb mote ( Simple one: One router between sensing node and base station ). Can i do it with the Base station apllication itself or have to do router program separately. Any suggestion will be very helpful. Please take a look at TestNetwork or MultihopOscilloscope. You can also read the tutorials on network protocols off the wiki. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CTP updateRouteTask() behaivior if parent gets
On Fri, Sep 9, 2011 at 11:57 AM, Christian christ...@wwad.de wrote: Dear TinyOS community, I have a problem understanding, how CTP's updateRouteTask() works, if the 4-Bit Link Estimator is used. Consider the following example: Node 2 with costs 70 is currently using node 1 (costs 20) as parent. He could also choose node 3, that has costs 60 over a link of costs 10. (1:20) ^ | |50 | (2:70) --- (3:60) 10 If I understand it correctly, when node 1 gets down, the costs of the link to node 1 will reach the maximum value of DLQ_PKT_WINDOW * 10 = 50 (LinkEstimatorP.nc l. 296 in updateDETX()), because no acks can be received from node 1 as well as no beacons, that could update beacon based link etx. The problem, that I see here, is, that the link's costs cannot get worse than 50 (limited by DLQ_PKT_WINDOW) and that updateRouteTask() would not change to node 3, because the path over node 3 is not significantly (PARENT_SWITCH_THRESHOLD) better than the path over node 1. So it will stay with node 1 as parent even if node 1 isn't available anymore. Please explain: is this really the case or what do I miss out? If more than MAX_PKT_GAP beacons are lost, the code will reinitialize the link information. The code is in the same file. Just in case I'm right, one could solve this problem by requiring every parent's link costs to be below DLQ_PKT_WINDOW*10 and changing to another node in updateRouteTask(), if this is not the case. But first you should convince yourself that beacons will not kick in and drive the link cost up for the scenario you are thinking. If you notice improvement in experiments, I am happy to consider changes. Let me know. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CTP - updateRouteTask
On Tue, Sep 6, 2011 at 5:12 AM, Francisco J. kit...@gmail.com wrote: Hello, im working with CTP and have a question about it. In the task 'updateRouteTask' implemented in the file 'ctpRoutingEngineP.nc', the first part the node scan each row in the neighbor table: /* Find best path in table, other than our current */ for (i = 0; i routingTableActive; i++) { [...] } The issue is that im debugging and put a trace in this scan (just toggle a led) and i realize that the nodes never runs this piece of code :P The app that nodes are running is TestNetworkLpl wich is provided by TinyOS, just made a few changes on it but nothing that should interfere with CTP. Im using Avrora to simulate the network and tried with static topologies defined in a file and with random topologies that Avrora creates. Any idea of why the nodes doesnt goes inside this 'for'? Could be one of your timers is not firing? The updateRouteTask() gets posted from two timers. Also, make sure the radio is on. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CollectionDebugMsg problem in CTP
On Fri, Sep 2, 2011 at 3:05 PM, Rizwan Mumtaz rizwan.mum...@rwth-aachen.de wrote: Hello everyone, I am doing some experiments with CTP and analyse the output of TestNetwork application. However I found out in the output files at the serial port that the msg_uid (I assume that's the sequence number of every packet) rolls back after reaching a value of 255. msg_uid filed has been defined in CollectionDebugMsg.h (and CTPDebugMsg.h) as nx_uint16_t which means it should not roll back at 255 but at 65536. Can somebody explain to me whats going on here? The sequence number carried in CTP header is only 8 bit wide. The debug field might be wider but the information is only 1 byte. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Sending info in CTP
On Thu, Aug 18, 2011 at 9:44 PM, FraN J kit...@gmail.com wrote: Hello! Im doing some research about CTP, want to modify it ant test if i can improve the energy consumption but im new to nesC and im having some troubles with the code. By now, i added a new field to the route_info_t structure defined in TreeRouting.h. I also added the same field to the ctp_routing_header_t structure defined in Ctp.h so the field get sent each time the node send a beacon avertising his routeInfo. When a node changes his parent (in the task updateRouteTask), if the best neighbor found in the routing table is even better than our actual parent, the node is going to change his actual parent. In that moment i need to send 2 messages, 1 to my old parent and 1 to the new to let them know the changes, so my question is: ¿How can i do that? I've been reading some related TEP's and some nesC tutorials, but i got stuck at this point so i appreciate any help or advice :) You need to send a regular single hop message. You can use AMSenderC to do that. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Send Packets with Basestation to Lpl Motes
On Tue, Jul 12, 2011 at 5:33 AM, Gabriel Neumüller horsthuc...@googlemail.com wrote: Hi all, I have written a java application to send Packets through a Mote which is connected to a Pc and is programmed with the Basestation app. For this purpose I use the java MoteIF.send function. Everything works as expected, but when my node which should receive the packets is programmed with Low Power Listening enabled, I often have to repeat my packets until the node receives it. How can I tell the Basestation or the java interface that the receiver Node uses Lpl? You need to program your basestation with appropriate lpl parameters. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TYMO
You should check out the code from Google svn. Details on tinyos.net. - om_p On Wed, Jun 29, 2011 at 1:01 AM, Shamali Gunawardena shama...@yahoo.com wrote: Hi, thanks for the feed back. In my case it is /tiny0s-2.1.0/to/lib/net/ but that is it there is no tymo folder. Does that mean I have installed wrong. I am using the vmware. regards, Shamali From: vinh.p...@ffi.no vinh.p...@ffi.no To: shama...@yahoo.com; tinyos-help@millennium.berkeley.edu Sent: Tue, June 28, 2011 5:58:54 PM Subject: SV: [Tinyos-help] TYMO Hi. If you have installed correctly, the DymoNetworkC should be under the /tinyos-2.x/tos/lib/net/tymo/dymo folder. Fra: tinyos-help-boun...@millennium.berkeley.edu [mailto:tinyos-help-boun...@millennium.berkeley.edu] På vegne av Shamali Gunawardena Sendt: 28. juni 2011 13:08 Til: tinyos-help@millennium.berkeley.edu Emne: [Tinyos-help] TYMO Hi, I was trying to use the TYMO example as in teh tutorials and realized that I do not have DymoNetworkC interface. nor a dymo or tymo folder inside lib do I have to get them and install them separately. If so how can I get about with this. Thanks in advance. Shamali ___ 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] : I want to install tinyos 1.x and 2.x simultaneously
On Sun, Jun 26, 2011 at 8:51 PM, 张胜凯 shengkai.zh...@gmail.com wrote: Dear all, I have installed tinyos 2.x, but some source code such as S4 and BVR can only run in tinyos 1.x. I have no time to modify them for running in 2.x (I am a new user of linux and tinyos), but I want to learn and do some simulations in tinyos 2.x(because it's a newest version) and compare the results of S4 and BVR. As a result, I need to install tinyos1.x and 2.x simultaneously. I have downloaded tinyos-1.1.15Dec2005cvs-1.cygwin.noarch.rpm. When I install it, it failed because of the tip package tinyos-2.1.1-3.ubuntu.noarch (which is newer than tinyos-1.1.15Dec2005cvs-1.noarch) is already installed. Is there any body can help me to fix this problem? These protocols do run with TinyOS 2.x. Check out this page: http://docs.tinyos.net/tinywiki/index.php/TinyOS_2.x_index_of_contributed_code - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] NST-AODV on IRIS Motes
Tiong - if you manage to get the code to compile, test it, and get it to run on hardware platforms as well, it will be good to contribute your version of the code and your experiences to the TinyOS community. Good luck. - om_p On Tue, Jun 28, 2011 at 7:09 AM, Miklos Maroti mmar...@math.u-szeged.hu wrote: Yes, you are right. I cannot really help you with checking the NST-AODV code. Best, Miklos On Tue, Jun 28, 2011 at 2:43 PM, Tiong Hoo Lim thli...@gmail.com wrote: Hi Miklos, I can compile the RadioCountrToLeds and others but have problem with the nst-aodv. I know the problem lies within the nst-aodv code but I have no idea of where to start looking. I think the best bet is to start from the header file that is giving out the error. thank Tiong On Tue, Jun 28, 2011 at 1:02 PM, Miklos Maroti mmar...@math.u-szeged.hu wrote: Hi Tiong, It is hard to see the problem from your error log. Can you compile the apps/RadioCountToLeds application in your google code tree? Best, Miklos On Tue, Jun 28, 2011 at 12:57 PM, Tiong Hoo Lim thli...@gmail.com wrote: Yes, I think I am not using the latest Tinyos. After downloading the tinyos, I am attacked by a series of compilation error which was never seen before. I believe it has to do with the header file message_t (syntax error before `message_t'). Did I use the wrong library interface or did I forgot to call a different library? Thanks for any assistant... thanks Tiong. thlim@ubuntu:/opt/tinyos/apps/nstaodv$ make iris mkdir -p build/iris compiling AodvTestAppC to a iris binary ncc -o build/iris/main.exe -Os -DRF230_DEF_RFPOWER=2 -DRF230_DEF_CHANNEL=26 -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 -I/opt/tinyos/tos/lib -I/opt/tinyos/tos/lib/printf -I/opt/tinyos/tos/interfaces -I/opt/tinyos/tos/system -I/opt/tinyos/tos/platforms/iris/chips/rf230 -DHOPS_METRIC=1 -DAODV_CACHE_TIMER=1 -DTOSH_DATA_LENGTH=112 -DIDENT_APPNAME=\AodvTestAppC\ -DIDENT_USERNAME=\thlim\ -DIDENT_HOSTNAME=\ubuntu\ -DIDENT_USERHASH=0x43573447L -DIDENT_TIMESTAMP=0x4e09af55L -DIDENT_UIDHASH=0x217103a6L -fnesc-dump=wiring -fnesc-dump='interfaces(!abstract())' -fnesc-dump='referenced(interfacedefs, components)' -fnesc-dumpfile=build/iris/wiring-check.xml AodvTestAppC.nc -lm In file included from /opt/tinyos/tos/system/AODV.nc:3, from AodvTestAppC.nc:12: /opt/tinyos/tos/lib/AODV.h:128: syntax error before `message_t' /opt/tinyos/tos/lib/AODV.h:128: warning: no semicolon at end of struct or union /opt/tinyos/tos/lib/AODV.h:132: syntax error before `}' /opt/tinyos/tos/lib/AODV.h:132: warning: type defaults to `int' in declaration of `data_buffer_t' /opt/tinyos/tos/lib/AODV.h:132: warning: data definition has no type or storage class /opt/tinyos/tos/lib/AODV.h:135: syntax error before `message_t' /opt/tinyos/tos/lib/AODV.h:135: warning: no semicolon at end of struct or union /opt/tinyos/tos/lib/AODV.h:139: syntax error before `}' /opt/tinyos/tos/lib/AODV.h:139: warning: type defaults to `int' in declaration of `control_buffer_t' /opt/tinyos/tos/lib/AODV.h:139: warning: data definition has no type or storage class In file included from /opt/tinyos/tos/system/AODV.nc:15, from AodvTestAppC.nc:12: In interface `Receive': /opt/tinyos/tos/interfaces/Receive.nc:78: warning: declaration of `len' shadows global declaration /opt/tinyos/tos/lib/AODV.h:137: warning: location of shadowed declaration In file included from /opt/tinyos/tos/system/AODV.nc:16, from AodvTestAppC.nc:12: In interface `Intercept': /opt/tinyos/tos/interfaces/Intercept.nc:31: warning: declaration of `len' shadows global declaration /opt/tinyos/tos/lib/AODV.h:137: warning: location of shadowed declaration In file included from /opt/tinyos/tos/system/AODV.nc:17, from AodvTestAppC.nc:12: In interface `SendMHopMsg': /opt/tinyos/tos/interfaces/SendMHopMsg.nc:5: warning: declaration of `len' shadows global declaration /opt/tinyos/tos/lib/AODV.h:137: warning: location of shadowed declaration In file included from /opt/tinyos/tos/system/AODV.nc:22, from AodvTestAppC.nc:12: In interface `Packet': /opt/tinyos/tos/interfaces/Packet.nc:94: warning: declaration of `len' shadows global declaration /opt/tinyos/tos/lib/AODV.h:137: warning: location of shadowed declaration In file included from /opt/tinyos/tos/system/AODV.nc:22, from AodvTestAppC.nc:12: /opt/tinyos/tos/interfaces/Packet.nc:126: warning: declaration of `len' shadows global declaration /opt/tinyos/tos/lib/AODV.h:137: warning: location of shadowed declaration In file included from /opt/tinyos/tos/system/AODV_Core.nc:5: /opt/tinyos/tos/lib/printf/printf.h:44:2: warning:
Re: [Tinyos-help] Congestion Control Disabled in CTP via ECNOff?
On Wed, Jun 8, 2011 at 6:36 AM, Jon Szymaniak jts7...@rit.edu wrote: Hello All, I'd like to follow up on a post made in Feb 2010 (http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2010-February/044460.html). From what I see in CtpRoutingEngineP.nc, CTP congestion control appears to be disabled via the ECNOff variable being hardcoded to true, implying that nodes will never delay their transmissions or change their parent (with sufficient ETX delta) due to the parent's C-bit being set to 1. Am I correct? Also, could anyone provide any additional information regarding why congestion control is disabled (i.e., why ECNOff is hardcoded to true)? Is this a design decision intended to offload congestion control to another layer, a section of code that requires more testing, or a feature that should be enabled only when an application can sacrifice latency for greater packet delivery? We tried doing congestion signaling based on simple threshold on the number of packets in the queue and packet forwarding delays when the bit is signaled. This led to unstable behavior and we turned it off. It is appropriate to use this bit for signaling but to use it properly you want mechanisms at higher layer. In some Castalia-based simulations of CTP, I tried enabling congestion control and did see a slightly more packets being delivered, with a tradeoff of increased latencies and THL (hop count). This seems reasonable to me -- packets could be delayed due to the congestion timer, and non-optimal routes might be temporarily selected while a parent is congested. However, I would appreciate any insights anyone has to offer on this. This is very interesting and you should share the results. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] short-listen problem in CTP
On Thu, May 26, 2011 at 10:30 AM, Islam Hegazy isl...@gmail.com wrote: Hi, I have been working with CTP for a while and I had question that I cannot find an answer for. I hope someone will be able to give me a convincing answer. I know that CTP adapts its beacon transmission interval following the Trickle algorithm. My question is why CTP sends a beacon in the interval [t/2, t] and not [0, t]? I understand that Trickle uses the short behaviour to suppress redundant code transmission. However, CTP does not suppress beacons transmission. In other words, I don't understand how the short-listen problem affects CTP. I came to this conclusion after I read The Trickle and Collection Tree Protocol papers, tracing and running CTP code. I hope that someone has a definite and clear answer to my question. The code in SVN does not suppress the beacons but here are some experiments that show what would happen if you suppressed the beacons: http://stuff.stanford.edu/~om_p/ctp/beaconsuppression.html - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] mesh network
On Tue, May 17, 2011 at 8:34 AM, Correo de Wacka yo_wa...@hotmail.com wrote: Hi all, I've been reading all the networks protocols appear in the documentation, but I'm unable to guess which one is the simplest one to just creat a mesh network,instead of Tymo. And, is tymo available for iris motes?or just for telosb? Is there any other mesh network protocol for a non dynamic enviroment? If you are looking for a point-to-point routing protocol, Tymo is the only protocol available at the moment. If you are looking for collection and dissemination protocols over multihop networks, there are a few, which you can find on the tutorial page. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] WSN Questions
On Sun, May 15, 2011 at 2:17 PM, ibn86 dahmanii...@yahoo.fr wrote: Hi, I work on a new project on WSN and I have some questions as I'm a novice researcher. I have for a long time search in the net but I didn't have a response. 1) Is there a web site dealing with WSN applications, methods and simulations? 2) How to simulate a WSN routing algorithm or my own method? 3) If I want to implement my own routing algorithm, which programmation langage or plateform should I use? 4) What are the components of a routing table of each sensor node? This page is a good start: http://docs.tinyos.net/index.php/TinyOS_Tutorials - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CTP protocol implementation in TOSSIM
The best suggestion I can offer is going through the TOSSIM tutorial carefully and trying to understand each step and also tutorial on network protocols. Then, you should start reading the code in tos/lib/net/ctp. Once you have a good understanding of TOSSIM and CTP, you should be able to understand the simulation scripts in apps/tests/TestNetwork. - om_p On Fri, May 13, 2011 at 6:03 AM, Saif Ahmad saif...@gmail.com wrote: Dear Sir, Can you please kindly provide some more details regarding how to use these scripts. Like I said I am a total beginner. Thanks On Fri, May 13, 2011 at 9:29 AM, Saif Ahmad saif...@gmail.com wrote: -- Forwarded message -- From: Omprakash Gnawali gnaw...@cs.stanford.edu Date: Fri, May 13, 2011 at 9:12 AM Subject: Re: [Tinyos-help] CTP protocol implementation in TOSSIM To: Saif A saif...@gmail.com Cc: tinyos-help@millennium.berkeley.edu On Sat, May 7, 2011 at 11:04 PM, Saif A saif...@gmail.com wrote: I am a newbie at TOSSIM and would like to simulate the CTP protocol. Can somebody please kindly provide a step-by-step procedure on how to get started with simulating CTP. I have already gone through the TOSSIM tutorial but what next now? There are some Python scripts in apps/tests/TestNetwork. Use those scripts as starting point for CTP simulation. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CTP protocol implementation in TOSSIM
On Sat, May 7, 2011 at 11:04 PM, Saif A saif...@gmail.com wrote: I am a newbie at TOSSIM and would like to simulate the CTP protocol. Can somebody please kindly provide a step-by-step procedure on how to get started with simulating CTP. I have already gone through the TOSSIM tutorial but what next now? There are some Python scripts in apps/tests/TestNetwork. Use those scripts as starting point for CTP simulation. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] About nx_uint8_t (COUNT(0) data)[0]
Here is more info on Safe TinyOS: http://docs.tinyos.net/index.php/Safe_TinyOS - om_p On Wed, May 4, 2011 at 12:42 AM, Eric Decker cire...@gmail.com wrote: It has something to do with Safe TinyOS/Deputy. Safe TinyOS compiles in run time check code and COUNT(0) is an indicator to the Safe code about what is expected. I haven't found much documentation on Safe TinyOS/Deputy so that is all I can help with. eric On Wed, May 4, 2011 at 12:21 AM, 崔晓宗 cpp...@gmail.com wrote: In tos/lib/net/Ctp.h , there is a struct typedef nx_struct { nx_ctp_options_t options; nx_am_addr_t parent; nx_uint16_t etx; nx_uint8_t (COUNT(0) data)[0]; // Deputy place-holder, field will probably be removed when we Deputize Ctp } ctp_routing_header_t; I am puzzled by nx_uint8_t (COUNT(0) data)[0], what is COUNT(0) used for? -- Regards, Xiaozong Cui ___ 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 mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] routing table
On Thu, May 12, 2011 at 11:12 AM, Halmstad Halland hhalms...@yahoo.com wrote: i am vanam aditya doing my masters(Embedded systems) from halmstad university,sweden. I just wanted to know how could we form a Routing table in tinyos with 1) node Id(sender) 2) Intercepted Node id's. this is with respect to root node. i will be greatful i you could help me in this regard Looking at how other routing protocols are implemented will be a good start. You can find them under tos/lib/net - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Stanford Ubuntu TinyOS Tools repo down
The repository is up now. - om_p On Fri, May 6, 2011 at 8:30 PM, Eric Decker cire...@gmail.com wrote: The Stanford repository has been down for at least two days. Not sure what is going on. Have tried to communicate with the folks in charge. In the meantime, a few of us have collaborated to bring up a mirror at John Hopkins. Try deb http://hinrg.cs.jhu.edu/tinyos karmic main On Fri, May 6, 2011 at 4:03 AM, 5 TOUMI Meriem m_to...@esi.dz wrote: hi, i went to install tinyos-2.X but when i try to this deb http://tinyos.stanford.edu/tinyos/dists/ubuntu i've this error The requested URL /tinyos/dists/ubuntu was not found on this server. Apache/2.2.16 (Ubuntu) Server at tinyos.stanford.edu Port 80 is there an other deb ?? thanks ___ 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 mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Help Needed
On Wed, Apr 6, 2011 at 8:08 AM, ashish bhagat bhagat_kumar_ash...@yahoo.co.in wrote: Hi, I am working with TinyOS 2.x from a long time. 1. I have found the Timer interface as a non-premptive interface. In two way communication, a timer was set between the time the sender sends a packet and waits for the acknowledgement to be received. The sender is not able to receive the acknowledgement since the timer is non preemptive event and thus does not allow the mote to preempt in between to receive the packet. Is this conclusion correct. Or am I doing something wrong. If the conclusion is correct, what else can a use for check on timeout. 2. On Zigbee kit, I want the kit to have some ID, how can one associate the kit with these IDs. 3. The CTP protocol implemented does not work. Can you suggest the reason for the same. You should provide more details before someone can help you determine why CTP does not work. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Collection Tree Protocol change root in runtime
On Fri, Apr 1, 2011 at 7:28 AM, 439...@uni-wuppertal.de wrote: Hi I'm using the collection tree protocol to collect data at one root mote in a quite small network of about 5 motes. Currently I'm simulating it in TOSSIM. The collection works fine, all data is received by the mote that is set as root. But since my network is supposed to be able to change the station that collects data, I want to change the root. So, at some time, the destined new root calls the setRoot command and the former base unsets itself shortly after. (they are comminicating via the DYMO protocol) But the problem is that the new base doesn't get data from all the other motes. The Topology is in a line, so if the new root is on the other end of the line, it only receives data from its neighbour. But if this mote is initially set as root it receives all data, so the topology is not faulty. So is the change of the root not possible using the ctp or am I doing something wrong? Any ideas? If you are collecting data at the root, tree protocols such as CTP might work better for you. CTP is known to work to some extent with mobile roots. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Change MAC address
On Thu, Mar 31, 2011 at 3:34 AM, Ruben Rios ru...@lcc.uma.es wrote: Dear all, I am wondering whether it is possible to change the MAC address of the packets before sending them. In case it is possible, can you tell me where may I find the file/information to do it? This paper will point you in the right direction: http://www.eecs.umich.edu/eecs/about/articles/2010/dutta10amac.pdf - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] abt CTP
On Thu, Mar 31, 2011 at 12:55 AM, niraj nake nirajnak...@gmail.com wrote: Hello all, I hv a question regarding CTP. Is it possible to send the message from root to other nodes using multihop communication.? becoz in ctp every node send d msg to root... is the reverse true plz reply .. No. You cannot send message in the reverse direction using CTP. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] COLLECTION PROTOCOL
On Wed, Apr 20, 2011 at 5:22 AM, Hiral Jhaveri 07bit...@nirmauni.ac.in wrote: Hello all, I am working with Collection protocol in TinyOS-2.x I have successfully simulated it with TOSSIM 1] Is it possible to process the packet in the intermediate nodes before it reaches to the root node ?? Say, the root node has ID 1. And there are other two nodes 2 and 3. Packet format is { nx_uint16_t mobile_id; nx_uint16_t base_id; }; Now, node 3 sends packet with mobile_id = 3. When this is received by node 2, I want it to make base_id = 2 before forwarding it to the root node. How can this be done?? You can use the Intercept interface. or 2] At the root node, how to know the path followed by the packet before reaching it?? Two ways - Piece together information based on (node,parent) on each packet. If you look at TestNetwork application, you will see that each node sends the next hop node id in the payload. You can add a field in the header to record the path. Then you can either hack the forwarding engine or use the Intercept interface to update this field as the message is forwarded. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] How much time a node needs to reconfigure the route with CTP?
On Wed, Apr 20, 2011 at 5:02 AM, sofia aparicio aparicioso...@hotmail.com wrote: Hello, I would like to know how much time a node needs to reconfigure the route with CTP because a problem happens with its father. As soon as the problem is detected, you reset the timer and start repairing the path. Certain problems are detected fast. For example, loops or dead node. You expect to start repairing these problems within a second. In the ctp paper appears that: It maintains a beaconing interval which varies between 64ms and one hour. Whenever the timer expires, CTP doubles it, up to the maximum (1 hour). But in my Ctp library a I have in CTpP.nc file: components new CtpRoutingEngineP(TREE_ROUTING_TABLE_SIZE, 128, 512000) as Router; This means that the minimum is 128/1024=0,125 seconds and the maximum is 512000/1024=500 seconds? Yes, 500 seconds. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] multi hop communication in T2
On Tue, Apr 19, 2011 at 10:22 AM, Omar Cheikhrouhou (cesLab) omar.cheikhrou...@ceslab.org wrote: Hello, Does anybody know how to use multihop communication in T2. I would like to simulate a multihop network application You might want to look at the network protocols available in TinyOS: http://docs.tinyos.net/index.php/TinyOS_Tutorials - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] network protocol problem
On Wed, Apr 20, 2011 at 4:14 AM, Giovanni fium...@yahoo.it wrote: hi all Now, I'm trying to develope a simple line network with sensor telosb, using tinyos 2.0. network feauters: 1)MOTE_M = master node MOTE_S = slave node 2)communication full-duplex 3)adapt to connectivity changes, including node appearance and disappearance MOTE_M - MOTE_S1 - MOTE_S2 - MOTE_S3 -- ... Anyone know same suggest regarding what sample using to start developing? You might want to look at the network protocols available in TinyOS: http://docs.tinyos.net/index.php/TinyOS_Tutorials - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] is packet corruption normal?
On Tue, Apr 19, 2011 at 9:31 AM, Xiaohui Liu whu...@gmail.com wrote: Hi everyone, A packet is sent with AMSenderC[AM_TYPE].Send.send and it has a payload of, say, 0xFF. After the packet is received by AMReceiverC[AM_TYPE].Receive.receive, sometimes I find it has a different payload (i.e., not 0xFF). But the probability for this to happen is low, around 1 out of 1000 packets. Is this expected in TinyOS or does this mean there is something wrong with my code? In general, can I regard the payload of a packet received by AMReceiverC[AM_TYPE].Receive.receive is the same as its payload when sent by AMSenderC[AM_TYPE].Send.send? Or should I add some more error-detection or even correction to ensure this assumption? Thanks. As long as your error detection or correction can guarantee these properties. Most likely you will be able to increase the probability of detection or correction but it would be hard to guarantee that. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CC1000 pb
On Tue, Apr 19, 2011 at 5:16 AM, mustapha KM km.mustapha2...@gmail.com wrote: could you please give me an answer about low power lestening , because i'm getting problem what i'm trying to do is to send nodes into sleep state for a given periode of time then wake them for another periode of time (they will be on during the whole seconde periode) , i used setLocalSleepinterval of cc1000 but it seems like i missindrestood how the SleepInterval values has to be specified , for example for 3 ms what's gonna be the SleepInterval value? and when i check the duty cycle it tells me 1ms . to make a node sleep for 3ms what will be the value to be specefied in setLocalSleepInterval tinyos-2.x/doc/txt/tep105.txt has information on some of this terminology. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Routing protocols in tossim
On Mon, Apr 18, 2011 at 2:43 AM, Shamali Gunawardena shama...@yahoo.com wrote: Hello, I am looking at the routing protocols available in TOSSIM. I have come across TYMO in their tutorial. I am looking at it. but it is a reactive protocols. are their any other protocols that are available. A protocol that we can have more control of. You can look at the protocols available in TinyOS at: http://docs.tinyos.net/index.php/TinyOS_Tutorials - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Running MultihopOscilloscope
If the print message that you inserted did not print something, you might want to double check to make sure everything is recompiled. - om_p On Fri, Apr 15, 2011 at 3:20 PM, Sherlock pratikpatil0...@gmail.com wrote: Hello om_p, What about the first part? receive error for OscilloscopeMsg (AM type 147): invalid length message received too short) I am also stuck here. Please answer. BTW your posts have been very useful. Omprakash Gnawali-3 wrote: On Mon, Dec 7, 2009 at 11:41 PM, Group mailforgr...@gmail.com wrote: Thanks for your reply. 1) Now i'm able to see that something is getting received, since the following message getting printed. receive error for OscilloscopeMsg (AM type 147): invalid length message received (too short) I'm not able to understand why i'm getting this error. I tried to debug by keeping the prints for 'length' and 'temp.template.dataGet().length' in Receiver.java. Compiled it and reran the SerialForwarder (using java command) and the Oscilloscope(using ./run). The changes are not reflected and still getting the error message. 2) For the meantime, i used Listen to print the packets. I would like to generate multihop environment with 3 motes like a tree of root(moteId 0) - nonleaf (moteId 1) - leaf (moteId 2). How can i run and verfiy with MultiHopOscilloscope?. please let me know. Thanks. Move node 1 to the edge of transmission range of mote 0. Then move node 2 to the edge of transmission range of node 1. You can monitor the delivery ratio to know if you are near such an edge. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help -- View this message in context: http://old.nabble.com/Running-MultihopOscilloscope-tp26674052p31409796.html Sent from the TinyOS - Help mailing list archive at Nabble.com. ___ 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] Re garding Multihop Oscilloscope
On Fri, Apr 15, 2011 at 3:08 PM, Sherlock pratikpatil0...@gmail.com wrote: Hello everyone, In multihoposcilloscope application, suppose I have three nodes and I want to check the hop by hop working of this application. So how should I go about it? The readme.txt is not very much clear. Should I put ids to nodes as say 0(BaseStation), 1, and 2 for sensing some data OR the multihop base station should not be used for serial communication with pc and another separate node should be programmed BaseStation application. When i tried to keep program one node with id 1(with multihop app), second with 0(with multihop app) and last with BaseStation, then SerialForwareder is working but java gui of Oscilloscope app is showing nothing. You should install the MultihopOscilloscope app with id 0, 1, and 2. No need to install the BaseStation app. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] is packet corruption normal?
You might want to see the thread with this subject erroneous data in received packets for discussion on a related topic. - om_p On Wed, Apr 20, 2011 at 4:28 PM, Xiaohui Liu whu...@gmail.com wrote: Are the packet corruption caused by fase positive of CRC? Essentially I'm just trying to see if these corrupted packets are due to the inherent limit of the radio stack or some bug in my code. Best regards, On Wed, Apr 20, 2011 at 3:07 PM, Xiaohui Liu whu...@gmail.com wrote: Thanks for your reply. So you mean received packet payload can be different from its payload at the sender side? If so, what's the probability for this case to happen, approximately? Does this apply to UART stack as well besides radio stack? On Wed, Apr 20, 2011 at 2:40 PM, Omprakash Gnawali gnaw...@cs.stanford.edu wrote: On Tue, Apr 19, 2011 at 9:31 AM, Xiaohui Liu whu...@gmail.com wrote: Hi everyone, A packet is sent with AMSenderC[AM_TYPE].Send.send and it has a payload of, say, 0xFF. After the packet is received by AMReceiverC[AM_TYPE].Receive.receive, sometimes I find it has a different payload (i.e., not 0xFF). But the probability for this to happen is low, around 1 out of 1000 packets. Is this expected in TinyOS or does this mean there is something wrong with my code? In general, can I regard the payload of a packet received by AMReceiverC[AM_TYPE].Receive.receive is the same as its payload when sent by AMSenderC[AM_TYPE].Send.send? Or should I add some more error-detection or even correction to ensure this assumption? Thanks. As long as your error detection or correction can guarantee these properties. Most likely you will be able to increase the probability of detection or correction but it would be hard to guarantee that. - om_p -- -Xiaohui Liu -- -Xiaohui Liu ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] testnetwork problem
On Sun, Mar 27, 2011 at 7:48 PM, lue ikhong lueikh...@gmail.com wrote: i did program my mote wit id 1 and id 0, and that doest not work at all. debug message for mote 0, 00 FF FF 00 00 17 00 EE 00 00 00 00 00 00 15 EE 00 00 00 15 00 00 00 00 CA FE 00 00 00 00 00 00 FF FF 00 00 09 00 16 20 00 15 00 00 00 00 00 37 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 38 00 FF FF 00 00 17 00 EE 00 00 00 00 00 00 16 EE 00 00 00 16 00 00 00 00 CA FE 00 00 00 00 00 00 FF FF 00 00 09 00 16 20 00 16 00 00 00 00 00 39 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 3A 00 FF FF 00 00 17 00 EE 00 00 00 00 00 00 17 EE 00 00 00 17 00 00 00 00 CA FE 00 00 00 00 00 00 FF FF 00 00 09 00 16 20 00 17 00 00 00 00 00 3B 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 3C 00 FF FF 00 00 17 00 EE 00 00 00 00 00 00 18 EE 00 00 00 18 00 00 00 00 CA FE 00 00 00 00 00 00 FF FF 00 00 09 00 16 20 00 18 00 00 00 00 00 3D 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 3E 00 FF FF 00 00 17 00 EE 00 00 00 00 00 00 19 EE 00 00 00 19 00 00 00 00 CA FE 00 00 00 00 00 00 FF FF 00 00 09 00 16 20 00 19 00 00 00 00 00 3F 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 40 00 FF FF 00 00 17 00 EE 00 00 00 00 00 00 1A EE 00 00 00 1A 00 00 00 00 CA FE 00 00 00 00 00 00 FF FF 00 00 09 00 16 20 00 1A 00 00 00 00 00 41 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 42 00 FF FF 00 00 09 00 16 33 00 00 00 00 00 00 00 43 00 FF FF 00 00 17 00 EE 00 00 00 00 00 00 1B EE 00 00 00 1B 00 00 00 00 CA FE 00 00 00 00 00 00 FF FF 00 00 09 00 16 20 00 1B 00 00 00 00 00 44 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 45 00 FF FF 00 00 17 00 EE 00 00 00 00 00 00 1C EE 00 00 00 1C 00 00 00 00 CA FE 00 00 00 00 00 00 FF FF 00 00 09 00 16 20 00 1C 00 00 00 00 00 46 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 47 00 FF FF 00 00 17 00 EE 00 00 00 00 00 00 1D EE 00 00 00 1D 00 00 00 00 CA FE 00 00 00 00 00 00 FF FF 00 00 09 00 16 20 00 1D 00 00 00 00 00 48 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 49 00 FF FF 00 00 17 00 EE 00 00 00 00 00 00 1E EE 00 00 00 1E 00 00 00 00 CA FE 00 00 00 00 00 00 FF FF 00 00 09 00 16 20 00 1E 00 00 00 00 00 4A 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 4B 00 FF FF 00 00 17 00 EE 00 00 00 00 00 00 1F EE 00 00 00 1F 00 00 00 00 CA FE 00 00 00 00 00 00 FF FF 00 00 09 00 16 20 00 1F 00 00 00 00 00 4C 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 4D 00 FF FF 00 00 17 00 EE 00 00 00 00 00 00 20 EE 00 00 00 20 00 00 00 00 CA FE 00 00 00 00 00 As for mote 1, 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 87 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 88 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 89 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 8A 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 8B 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 8C 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 8D 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 8E 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 8F 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 90 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 91 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 92 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 93 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 94 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 95 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 96 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 97 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 98 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 99 00 FF FF 00 00 09 00 16 12 00 00 00 00 00 00 00 9A Your debug message from node 1 now says no route found (16 12). This is different from what you were showing in the debug message last time - which was it was sending a packet with node id 0. Can you follow the instruction step by step in the README file in TestNetwork directory? When you are following the instruction step by step, you should also capture the debug messages on UART and state the approximate duration over which the debug messages were captured. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CTP: meaning of ETX value and how to identify root nodes
On Wed, Mar 16, 2011 at 5:52 AM, Matthias Schwamborn schwamb...@cs.uni-bonn.de wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I've been looking into the TinyOS 2.1.1 CTP (lib/net/ctp) and Link Estimator (lib/net/le) implementation in order to understand how ETX values are calculated. If I understand it correctly, the ETX stored in both CTP routing and data packets are actually EETX values as fixed-point real numbers with a precision of tenths: a value of 15 represents an EETX of 1.5 or ETX of 2.5 (EETX = ETX - 1), respectively. If it is not EETX, I wouldn't be able to explain values 10 (which I've been seeing in packets a lot). EETX = 10 * (ETX - 1). So, if you see an EETX of 3, that means an ETX of 1.3. Because of the confusion EETX was causing, we have been using ETX for a while now so you might want to update to the latest version of the code. Now, assuming the above is true, is it still sufficient to assume a node is a root if it reports a value of 0? This would only mean that there a no retransmissions needed to successfully transmit a packet to the root (EETX = 0, ETX = 1) and would be feasible for any node, right? In RootControl.setRoot(), a node sets its ETX to 0. If you see a node advertise an ETX of 0, you know that was a packet from a root node. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Collection Tree Protocol - Sending to root node
What is a MAC topology? Can you also share the numbers regarding retransmissions and acks? - om_p On Fri, Mar 25, 2011 at 6:20 AM, Pawel Kuzak pawelku...@t-online.de wrote: Hallo Omprakash, Rest of the wireless sensor network --- node A --- root node Rest of the wireless sensor network --- node A --- node B --- root node Nodes from the rest of the wireless sensor network don't send packets directly to B, because they can't. I have defined a MAC-topology where the root node only hears node A respectively node B. And node B does only hear the root node and node A. The root node has acknowledgements enabled, cause node A respectively node B do receive acknowledgments and no packets get dropped. Greetings, Paul -Ursprüngliche Nachricht- Von: Omprakash Gnawali [mailto:gnaw...@cs.stanford.edu] Gesendet: Freitag, 25. März 2011 00:12 An: Pawel Kuzak; TinyOS Help Betreff: Re: [Tinyos-help] Collection Tree Protocol - Sending to root node On Thu, Mar 24, 2011 at 3:16 PM, Pawel Kuzak pawelku...@t-online.de wrote: Hallo Omprakash, Thank you for your reply. I understand that the closer a node to a root is the more packets it has to deal with, but let me explain my problem to you more clearly. I used the following setup: Rest of the wireless sensor network --- node A --- root node In the above setup, node1 retransmits a lot of packets. But when I change the setup to Rest of the wireless sensor network --- node A --- node B --- root node Node A has a normal retransmission rate but now node B does need a lot of retransmissions. I don't understand this, because node B needs to transmit the same amount of packets as node A. Not necessarily. Some nodes from the rest of the wireless sensor network could be sending packets directly to B. You should also check if the root has acks enabled. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] testnetwork problem
On Thu, Mar 24, 2011 at 8:42 PM, lue ikhong lueikh...@gmail.com wrote: When i hooked up the mote 1 to UART, there is no debug message but packets of data, 00 FF FF 00 00 09 00 16 20 00 07 00 00 00 00 00 1A 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 1B 00 FF FF 00 00 09 00 16 33 FF FF 00 00 00 00 00 09 any clue? These are debug messages. This debug message tells me that you have programmed your mote 1 with id 0. Try programming your mote 1 with id 1 and if that does not work, collect these messages (from UART for mote 0 as well as 1) for a while and send it again. Send at least 20 or 30 consecutive lines of these messages. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Collection Tree Protocol - Sending to root node
What happens if you just have node B that generates certain number of packets and the root? Does the retx count go down? You can keep the topology the same, just modify the program so node B sends data packets and other nodes don't. - om_p On Fri, Mar 25, 2011 at 4:27 PM, Pawel Kuzak pawelku...@t-online.de wrote: Hallo Omprakash, Sorry that I didn't explain earlier what I mean with MAC topology. Well, under a MAC topology I understand all 1-hop links that are possible between nodes in a network. For example, you can put nodes on a square with 10m distance in x- and y-direction and if you set the nodes radio power so that each node can communicate with other nodes in 10m or less distance you will have a MAC topology like: X -- X -- X -- X -- X | | | | | X -- X -- X -- X -- X | | | | | X -- X -- X -- X -- X | | | | | X -- X -- X -- X -- X | | | | | X -- X -- X -- X -- X CTP can only use links that are defined in a MAC topology. So if a MAC topology looks like: X -- X -- X -- X -- X | | | | | X -- X -- X -- X -- X | | | | | X -- X -- X -- X -- X | | | | | X -- X -- X -- X -- X | | | | | X -- X -- X -- X -- X -- node A -- node B -- root node All packets must pass node A and node B to reach the root. Following I am listing some numbers (This is just an example from one simulation run, but in all simulation runs node B shows this behavior. Of course I also tried other topologies, but always the children of the root node showed the same behavior.): Node A: ETX: 19 Packets received: 322 Packets send: 21 Packets acknowledged: 21 Packets lost: 0 Packets retransmitted: 0 Parent node: B Node B: ETX: 9 Packets received: 21 Packets send: 43 Packets acknowledged: 31 Packets lost: 0 Packets retransmitted: 12 Parent node: root Root node: ETX: 0 Packets received: 29 Packets send: 0 Packets acknowledged: 0 Packets lost: 0 Packets retransmitted: 0 Parent node: - And for comparison the child from node A: ETX: 26 Packets received: 298 Packets send: 330 Packets acknowledged: 323 Packets lost: 0 Packets retransmitted: 9 Parent node: A In my application all nodes send 21 packets and node A intercepts them and does not forward them, so don't wonder about why node B does only receive so few messages. But if it had to forward more the retransmission rate would be even greater. Another thing I don't understand is that I expected to following relations: Packets lost = Packets send - Packets acknowledged Packets send = 21 + Packets retransmitted. Packets received = Sum of the Packets acknowledged from all children First I suggested that I am incrementing variables in the wrong code region, but I really can't find a better code region. In CtpForwarindP.nc I am incrementing a variable packetsRecv in event message_t* SubReceive.receive(), a variable packetsSend in task void sendTask() (only if it is not a duplicate), a variable packetsAcked in event void SubSend.sendDone() after a packet was acknowledged, a variable packetsRtx also in event void SubSend.sendDone() after the comment that the radio wasn't able to send it or an acknowledgment is missing and the packet should be retransmitted, and a variable packetsDropped also in event void SubSend.sendDone() after the retransmission threshold has been reached and the packet will be dropped. Hope this helps. Greetings, Paul -Ursprüngliche Nachricht- Von: Omprakash Gnawali [mailto:gnaw...@cs.stanford.edu] Gesendet: Freitag, 25. März 2011 19:52 An: Pawel Kuzak; TinyOS Help Betreff: Re: [Tinyos-help] Collection Tree Protocol - Sending to root node What is a MAC topology? Can you also share the numbers regarding retransmissions and acks? - om_p On Fri, Mar 25, 2011 at 6:20 AM, Pawel Kuzak pawelku...@t-online.de wrote: Hallo Omprakash, Rest of the wireless sensor network --- node A --- root node Rest of the wireless sensor network --- node A --- node B --- root node Nodes from the rest of the wireless sensor network don't send packets directly to B, because they can't. I have defined a MAC-topology where the root node only hears node A respectively node B. And node B does only hear the root node and node A. The root node has acknowledgements enabled, cause node A respectively node B do receive acknowledgments and no packets get dropped. Greetings, Paul -Ursprüngliche Nachricht- Von: Omprakash Gnawali [mailto:gnaw...@cs.stanford.edu] Gesendet: Freitag, 25. März 2011 00:12 An: Pawel Kuzak; TinyOS Help Betreff: Re: [Tinyos-help] Collection Tree Protocol - Sending to root node On Thu, Mar 24, 2011 at 3:16 PM, Pawel Kuzak pawelku...@t-online.de wrote: Hallo Omprakash, Thank you for your reply. I understand that the closer a node to a root is the more packets it has to deal with, but let me explain my problem to you more clearly. I used
Re: [Tinyos-help] Serial Communication using C/C++ on Windows
Breno, It will be great if you can add your document as a tutorial under user contributed tutorials on this page: http://docs.tinyos.net/index.php/TinyOS_Tutorials - om_p 2011/3/24 Breno Guimarães bren...@gmail.com: Hi, I noticed that some people have trouble using the serial port to communicate with the base using the BaseStation application. So I wrote a guide to help on that with code suggestions and some explanation about serial port using and ActiveMessage protocol. http://pdfcast.org/pdf/tinyos-and-serial-port-communication-using-c-c I hope somebody finds it useful. =) (For those who might read it, sorry about my english. I did my best hehe) Breno Rodrigues Guimarães Universidade Federal de Minas Gerais, Brasil. Federal Universty of Minas Gerais, Brazil. ___ 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] testnetwork problem
On Wed, Mar 23, 2011 at 12:49 AM, lue ikhong lueikh...@gmail.com wrote: Hi All, i had tried Testnetwork apps on my tinynode mote. one mote wit node id 0 and another with node id 1. i read the data through serial port. here's the problem, the data packets received are always the data from the root node itself only, which is node id 0, example: 00 FF FF 00 00 17 00 EE 00 00 00 00 00 00 50 EE 00 00 00 50 00 00 00 00 CA FE 00 00 00 00 00 00 FF FF 00 00 09 00 16 20 00 50 00 00 00 00 00 AF 00 FF FF 00 00 09 00 16 50 00 00 00 00 00 00 00 00 00 FF FF 00 00 17 00 EE 00 00 00 00 00 00 51 EE 00 00 00 50 00 00 00 00 CA FE 00 00 00 00 00 why the root node did not received any data from node id 1? Can anyone please guide me through this, as i tried to solve it for one whole day already. Once you hook up your node 1 through UART, it will send debug messages. Those messages might help you understand what is going on. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Collection Tree Protocol - Sending to root node
On Tue, Mar 1, 2011 at 5:35 AM, Pawel Kuzak pawelku...@t-online.de wrote: Hello all, i am using the Collection Tree Protocol in Avrora simulating MICAz motes with X-MAC as MAC protocol. In “CtpForwardingEngineP.nc” I am counting the number of retransmissions a node needs during the simulation. I recognized that nodes which have the root as the parent node always need much more retransmissions than other nodes. Does someone experience the same thing? Can someone explain me what’s the reason for the higher number of retransmissions? Thanks for you help in advance! Although retx/pkt is the same, if the node is forwarding more packets (because it is close to the root), you will see larger number of retransmissions. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Collection Tree Protocol - Sending to root node
On Thu, Mar 24, 2011 at 3:16 PM, Pawel Kuzak pawelku...@t-online.de wrote: Hallo Omprakash, Thank you for your reply. I understand that the closer a node to a root is the more packets it has to deal with, but let me explain my problem to you more clearly. I used the following setup: Rest of the wireless sensor network --- node A --- root node In the above setup, node1 retransmits a lot of packets. But when I change the setup to Rest of the wireless sensor network --- node A --- node B --- root node Node A has a normal retransmission rate but now node B does need a lot of retransmissions. I don't understand this, because node B needs to transmit the same amount of packets as node A. Not necessarily. Some nodes from the rest of the wireless sensor network could be sending packets directly to B. You should also check if the root has acks enabled. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] testnetwork problem
On Thu, Mar 24, 2011 at 8:00 PM, lue ikhong lueikh...@gmail.com wrote: But if im not wrong, the tossim doesnt support tinynode platform,right? The mote (not TOSSIM) will send debug messages over the UART. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CTP timeout-related questions
On Sat, Mar 12, 2011 at 8:51 PM, Philip Levis p...@cs.stanford.edu wrote: On Mar 7, 2011, at 2:02 AM, David wrote: ... If the motes are unable to contact the basestation for a long time (eg: hours/days), but then later the basestation becomes available - then how long typically would it take for the network to re-establish, and for data to start coming through from the sensors? That is a great question: we've definitely tested starting a mote fresh, but if it was disconnected for a long time (the link was bad), it make take a while for the link estimate to come down to a point where the node might use it. It in part also depends on whether there are other nodes: the disconnected node might be creating routing loops, desperately searching for a route to the root. In that case it might take a while. This seems like a good test case to try sometime and make sure CTP handles well. If the gap in sequence number is too large, it should reset the estimator so we can use it as quickly as possible. But, yeah, it is good to test these cases. From LinkEstimatorP.nc: packetGap = seq - NeighborTable[idx].lastseq; ... if (packetGap MAX_PKT_GAP) { initNeighborIdx(idx, NeighborTable[idx].ll_addr); ... - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] problem with telos
On Fri, Feb 18, 2011 at 6:54 PM, marianna araujo marianna.angel...@gmail.com wrote: Hi, I have the following problem when try execute make telosb Couldn't execute msp430-gcc I'm using tinyos 2.1.0 in cygwin. Someone help me? Make sure you have msp430-gcc installed and it is in your PATH. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] routing tables in tossim.
On Fri, Feb 18, 2011 at 3:41 AM, Shamali Gunawardena shama...@yahoo.com wrote: Hello, Does anyone know how to set a routing table in tossim. and how do you decide what the sink is. TOSSIM is a simulator. It does not have a routing table. You should look into the data structures used by the routing protocols and set them to static values if you don't want a dynamic routing protocol. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] concerns regarding network transmission and duty cycle
On Mon, Feb 14, 2011 at 10:20 AM, et...@uni-potsdam.de wrote: Last week i had an interesting discussion about how to automate limiting sendig data due to law issues. In germany there is a department regulating the usage of frequency bands, e.g. your are just allowed to the 868MHz band for 10% of duty cycle. If i'am using mica2 and low power listing the preamble is extended to reach every mote within the given remote wakeup interval. that means, sending the preamble for remote interval causes me to stop sending any data within the next 20 seconds. Does somebody has similiar limitations to get along with? Is there a behaviour pattern to handle such situations? Or must i use some more intelligent MAC-layer protocol? Hope, i explained my issue good enough. You send preamble only when you have packets to send. So, if you don't have any packets to send, you will occupy 0% of the channel. If you have enough data to send then, sure, you can exceed 10% depending on how much data you have. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Advice for tinyos network logic (low power sensor mesh network)
On Mon, Feb 14, 2011 at 6:34 AM, David wizza...@gmail.com wrote: Hi there, I need to make an application, with these requirements: 1. Take a sensor reading every 30 minutes 2. Use mesh networking to transfer sensor readings to PC 3. Conserve battery power as much as possible There will be several sensor motes in the field. The motes are tmote sky, with 2 penlight batteries. I've already implemented the above (using CTP network protocol), but I'm concerned about battery life. What type of network logic do you recommend? You should be able to use CTP with LPL. There are deployments that use this approach. You probably won't get dutycycle in the range of 1% but you will be close. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] How to get data
On Mon, Feb 14, 2011 at 3:47 AM, vizualizerfortos...@gmail.com wrote: Hi, I wonder, how to get as much as possible of data from some TOSSIM script to the file, which I'd be able to display then. I mean a node possition, sending and recieving packets etc. You can put as many dbg (think of them as printf) statements as you want to print whatever you are interested in about what a node is doing - eg, packet reception, transmission, timer firing, etc. One thing that TOSSIM does not have is the concept of node location. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Clustered WSN
On Fri, Feb 11, 2011 at 11:29 PM, Yogesh BG yogeshbe...@yahoo.in wrote: Dear sir I am a student of BE in computer sc. I am doing my project in TinyOS using TOSSIM. I am in bit confusion. First i ll briefly explain the project please guide me how to do it. We follow Clustered WSN where in base station sends encrypted packets to cluster heads in turn cluster head sends packets to sensor nodes. For encryption we use RC5 and hashing we use SHA1. But the problem is that i am facing problem in creating the CLUSTER. i could able to send message to cluster head as and when timer fires but when cluster heads recieves the msg i need to broad cast the msg so that sensornodes belongs to that cluster only proceesos it. how can i achieve it. one more problem is that for sendMsg interface i need to send TOS_MSG messages but how can i append the hashed value? I have attached my module code here please check out. in this i considered all nodes multiples of 10 as cluster heads. and inform me whether there is anything that i can broadcast messages to only nodes belong to some range. You should look into clustering algorithms and protocols that have been proposed. You can Google for sensor network clustering protocols. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Read header field of CC2420 packet
On Fri, Feb 11, 2011 at 4:37 AM, Osterloh, Martin martin.oster...@deri.org wrote: Hi all, I have a little problem here. I want to read the header (specifically the AM_ID of the packet). In my BaseStation program (which pretty much the standard one), I am doing the following: message_t* receive( message_t *msg, void *payload, uint8_t len ) { message_t *ret = msg; atomic { if( !uartFull ) { // OK the queue is not full, so extract the data cc2420_header_t* header = call CC2420PacketBody.getHeader( msg ); switch( header-type ) { case 6: { report_msg *r_msg = (report_msg*) payload; r_msg-base_id = TOS_NODE_ID; call Leds.led0Toggle(); break; } case 7: { loc_msg *l_msg = (loc_msg*) payload; // overwrite the base_id field l_msg-base_id = TOS_NODE_ID; // get the RSSI value l_msg-rssi = call CC2420Packet.getRssi( msg ); l_msg-lqi = call CC2420Packet.getLqi( msg ); call Leds.led1Toggle(); break; } default: break; } ret = uartQueue[uartIn]; uartQueue[uartIn] = msg; uartIn = (uartIn + 1) % UART_QUEUE_LEN; // check, if the queue is full now if( uartIn == uartOut ) uartFull = TRUE; if( !uartBusy ) { // OK message can be send to the serial port post uartSendTask(); uartBusy = TRUE; } } else dropBlink(); // queue was full, so discard packet } return ret; } The packet comes from a TMote Sky with a CC2420 radio interface. Based on this, I am looking up the CC2420 packet header. In case it's am_id 6, I am just overwriting one packet field. In case it's 7 I am overwriting this field as well plus the RSS and LQI value. Unfortunately, when I receive packets the base_id field is never overwritten. Is there anything wrong in the logic/programming? Do you make sure you copy over the AM ID to the serial active message before sending it over the UART? - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] obtaining ctp experiment results
You need to keep track of the times when radio start/stop done events fire to calculate radio duty cycles. - om_p On Sat, Feb 12, 2011 at 2:43 PM, Nicole Chiesi nicole.chi...@gmail.com wrote: Thank you for the clarifications. I could not figure out how to calculate the duty cycle in the experiments that used LPL and LPP. Could you please tell me how I can do it? thanks, Nicole On Wed, Feb 9, 2011 at 12:16 AM, Omprakash Gnawali gnaw...@cs.stanford.edu wrote: On Mon, Feb 7, 2011 at 12:38 PM, Nicole Chiesi nicole.chi...@gmail.com wrote: I changed the sequence number to 16 bits .Thank you. I have another question. I see the CTP uses different macs. CSMA and Box-mac . How to specify each of those while performing the experiment. How to distinguish which Mac is being used? Those two MACs refer to the same software. If you want to use a different MAC (e.g., SpeckMac), you will have to follow instruction that came with the software. For example, -DLSPECKMACD flag in the Makefile. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] obtaining ctp experiment results
On Sun, Feb 13, 2011 at 9:15 AM, Nicole Chiesi nicole.chi...@gmail.com wrote: I am facing a situation where , I use the TestNetwork Application in testbed of about 45 telosb motes. I was trying to check the saturation point of ctp. I increased the packet rate to some 1 packet per second for about 15 nodes and one packet every 8s for the rest 20 motes. I still have a very good delivery ratio of about 98 percentage. How much of data rate is ctp supposed to handle? CTP is not designed to work with high data rates. It does not limit the number of packets injected into the network. So, you should try to operate it under channel saturation. What rate will cause channel saturation? That will depend on the radio, MAC, network topology, ... When I went down to 3packets /sec for the 15 nodes and one packet /8s for the rest of the nodes , then was only significant drop in the delivery ratio to about 74 percent. I think the results I got are not accurate? i do not know if I did something wrong here? You are sourcing 45+ packets/s. Many of these packets might be multi-hop which means the region around the sink is receiving and sensing many more packets. You might be way past channel saturation. If the channel is not saturated, it is reasonable to expect a decent performance. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Latest TinyOS distribution issue withTOS_AM_ADDRESS
It is the testbed installation software that sets these addresses. It is good to try to find both $ and _ versions and substitute them because testbed users might be using different versions of TinyOS. - om_p On Mon, Feb 7, 2011 at 5:05 AM, Michiel Konstapel m.konsta...@sownet.nl wrote: Some time ago (TinyOS 2.1.1?), the default separator in generated code changed from $ (ActiveMessageC$addr) to __ (ActiveMessageAddressC__addr). If your tools still try to replace the version with $ in it, they won't find it and the default value of 1 will remain in your program. The names of the variables to replace are set in $TOSROOT/support/make/msp/msp.rules. Hope this helps, Michiel -Original Message- From: tinyos-help-boun...@millennium.berkeley.edu [mailto:tinyos-help- boun...@millennium.berkeley.edu] On Behalf Of Thomas Schmid Sent: maandag 7 februari 2011 12:28 To: Xiaohui Liu Cc: Tinyos-Help Subject: Re: [Tinyos-help] Latest TinyOS distribution issue withTOS_AM_ADDRESS Where and how do you set your node ids? This is usually done in a separate step of the make system, after compilation. Look at the difference when you type: make telosb make telosb install,32 You will see a line similar to the following: tos-set-symbols --objcopy msp430-objcopy --objdump msp430-objdump --target ihex build/telosb/main.ihex build/telosb/main.ihex.out-32 TOS_NODE_ID=32 ActiveMessageAddressC__addr=32 - Thomas On Sun, Feb 6, 2011 at 11:36 AM, Xiaohui Liu whu...@gmail.com wrote: Hi, compile: make telosb Then I upload the executable on NetEye testbed, which programs nodes: usr/sbin/tos-bsl --telosb -c /dev/ttyUSB$1 -r -e -I -p $2 $1 is the USB port number, $2 executable uploaded. Before my upgrade, the executable works well on NetEye. On Sat, Feb 5, 2011 at 3:51 AM, Omprakash Gnawali gnaw...@cs.stanford.edu wrote: On Fri, Feb 4, 2011 at 1:42 PM, Xiaohui Liu whu...@gmail.com wrote: Hi everyone, I upgrade my TinyOS distribution to the lastest version from google code yesterday. Previously I was using TinyOS 2.1 with release- dates.txt saying These release notes are as of: $Date: 2008/06/18 23:07:04 $. Now I find the following TOS_NODE_ID TOS_AM_ADDRESS ActiveMessageC$AMPacket$address() TinyOS 2.1 30 1 30 Latest 30 1 1 Since many places of my code use link addresses, my protocol now does not work anymore under the latest version. For example, ActiveMessageC$AMPacket$source() always return 1 for all packets received, even though they are from many different nodes with various TOS_NODE_IDs. Has anyone encountered this problem with the latest version and how should I resolve this? I find it appeared before in this thread. Also, can somebody please tell me where TOS_AM_ADDRESS is set from initial value 1 to TOS_NODE_ID as in TinyOS 2.1. Thanks very much. How do you compile/program the nodes? It is likely you are not setting proper ActiveMessageAddressC.addr. - om_p -- -Xiaohui Liu ___ 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 ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] obtaining ctp experiment results
On Sun, Feb 6, 2011 at 2:12 PM, Nicole Chiesi nicole.chi...@gmail.com wrote: I have just a question . It is written in the tep 123 that Together, the origin, seqno and collect_id fields denote a unique *origin packet.* . However if we want to analyse the CollectionDebugMessage , it is seen that after every 255 messages sent or received , the sequence number restarts. So e.g If I want to analyse a node 1 , if it sends data more than 255 packets then , it is bound to have two or more messages with same origin and sequence number. So , analysis of the CollectionDebugMessage is bit out of hand here for me. It is such that , the msg_origin in the CtpDebugMsg.h is a 16 bit , while the originseqno of ctp data frame which writes to it is 8 bit . If I make the ctp data frame to 16 bit as well then I can analyse the CollectionDebugMessage . I was wondering if I change the bit of the data frame affects the performance of ctp. Another question is , if I am to avoid that , how can I go about analysing the CollectionDebugMessage? It is fine to increase the size of the sequence number to 16 bits to make your analysis easier. Otherwise, you will need to write code to detect sequence number wrap around. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Latest TinyOS distribution issue with TOS_AM_ADDRESS
On Fri, Feb 4, 2011 at 1:42 PM, Xiaohui Liu whu...@gmail.com wrote: Hi everyone, I upgrade my TinyOS distribution to the lastest version from google code yesterday. Previously I was using TinyOS 2.1 with release-dates.txt saying These release notes are as of: $Date: 2008/06/18 23:07:04 $. Now I find the following TOS_NODE_ID TOS_AM_ADDRESS ActiveMessageC$AMPacket$address() TinyOS 2.1 30 1 30 Latest 30 1 1 Since many places of my code use link addresses, my protocol now does not work anymore under the latest version. For example, ActiveMessageC$AMPacket$source() always return 1 for all packets received, even though they are from many different nodes with various TOS_NODE_IDs. Has anyone encountered this problem with the latest version and how should I resolve this? I find it appeared before in this thread. Also, can somebody please tell me where TOS_AM_ADDRESS is set from initial value 1 to TOS_NODE_ID as in TinyOS 2.1. Thanks very much. How do you compile/program the nodes? It is likely you are not setting proper ActiveMessageAddressC.addr. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] about TestNetwork program
2011/1/29 徐经纬 stormheral...@gmail.com: The AM_Type is right. When I generate the msgI have checked PC side. When I use Listen tool I could get two type packets from serial port. One of them is short and another is longer(longer is the msg which sent by each node). But I don't know where the shorter one comes...Is that works for generating trees for CTP? Whatever number of Motes(I have ten motes for this experiment, all of them are installed TestNetwork program. No. from 0# to 10#) I set to mib520 I could listen this type packets from serial port... That makes me confused The short messages are debug messages and the long messages are data messages. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Asking you about implement of RPL, i did not see it
On Thu, Jan 6, 2011 at 5:31 PM, ngocthanhd...@dcn.ssu.ac.kr wrote: Dear TinyOS-member, I heard Mr.Stephen told that RPL is implemented in tinyos in folder blip/rpl. But I find it in cvs source of tinyos in google group and sourceforge , but I did not see it. Could you let me know where can I find it? lib/net/rpl. on google code. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Comparison of applications written with different techniques
On Wed, Dec 1, 2010 at 9:30 AM, Francisco Sant'anna francisco.santa...@gmail.com wrote: Hello community, I'm looking for papers or scientific sources that compare different implementations for a given application specification. I see a lot of papers comparing OSs/languages/paradigms in a general form, but only a few that compare the same application written with different OSs/languages/paradigms. Also, I'm more interested in comparisons focusing on lines of code or generated code size (instead of speed, for example). There are some papers here you might want to take a look: http://absynth-project.org/ A related question is, what would be a known (possibly simple) application that is representative for the problems found in sensor networks. Is the Surge application a good candidate? You might want to look at AntiTheft and MultihopOscilloscope. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] message overwritten in TOSSIM
On Fri, Nov 26, 2010 at 1:21 PM, AnilKK anil_81_2...@hotmail.com wrote: Hi, I am facing a problem with TOSSIM 1.x. I am using 10 nodes, 1 node is coordinator, 2 nodes are sub coordinator and others are members. Each member node sends 5 messages to sub coordinator. The problem I am facing is when these messages are sent in a loop they are being overwritten. so the let us say there are node 4 and 6 are sub coordinator. I am sending message to node 6 it is received by node 4 and vice versa... Do I have put some kind of delay in message send?? You should wait until a message is sent (sendDone() event is signaled) before you send the next message. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] obtaining ctp experiment results
On Sun, Nov 21, 2010 at 8:03 AM, Nicole Chiesi nicole.chi...@gmail.com wrote: hi, I am trying to do the similar experiment as done as mentioned here http://sing.stanford.edu/gnawali/ctp/ctp-sensys-data.html . Basically I want to get and analyse the figures given in index.html file of the experiment. It feels that the experiment data given there is just some excerpts of the experiment . How are these calculations made? #node total_sent uniq_rcv success_rate total_rcv repeated_rcv (frac) repeated_rcvthl (frac) minseq maxseq from the experimental data given there. I was able to set up the experiment and run the experiment but I have no idea how I can come to these results. First you need to get the log files from your testbed experiments. Did you get the logs? The assumption is you have one log file per node. Then you need to run a series of Perl scripts on the logs. You need a few custom Perl libraries and neato to produce the result you see. Because of these dependencies, I haven't posted all those Perl scripts because it most likely won't work on other systems. But here is how you can proceed: 1. Run the parse-ctplogs.pl script on the log files. 2. Do statistics on the output from step 1. For example, if you want to compute delivery ratio for a specific node, you can keep track of sequence numbers received from that node and compute the delivery ratio. If you want to compute churn, you can count the number of times beacons was sent. All these log messages are parsed with parse-ctplogs.pl. Feel free to ask questions as you get going. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CTP not reporting NET_C_FE_DST_MSG and NET_C_TREE_RCV_BEACON
On Thu, Nov 18, 2010 at 2:39 PM, Morten Tranberg Hansen m...@cs.au.dk wrote: Oh I didn't realize you were talking about the RCV_MSG event. Yeah the only unlogged event between the RCV_MSG event and a possible DST_MSG event at the root would be if the max payload length test fails. I'm not sure when/if this test fails, but maybe it should be logged for correctness. The test can fail if the length field gets corrupted and still passes the CRC test. Or, if you have two versions of code (different max. available payload size) in the network and the received packet won't fit in the payload of the outgoing message. etc. Even if you have DST_MSG, keep in mind that there is no guarantee that this will be logged because the logging buffer could be full. You can detect that by looking for missing sequence number in the logged messages but that won't be enough either... So, if you want to be correct in the strictest sense, you probably need to do something much more sophisticated. If you are really worried about this test, a better approach might be to log when that test fails. That could be useful for understanding other problems that might occur in the network as well. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] TinyOS vs Contiki
On Tue, Nov 16, 2010 at 4:01 AM, Roger Larsson roger.lars...@ltu.se wrote: Asking on a TinyOS list, what response do you expect to get? :-) I am currently examining options to TinyOS. Yesterday was my first day really evaluating Contiki. This is my first impressions. Community - TinyOS community feels bigger, but there are mostly questions on the list with few answers (or reactions). everyone that I know is using TinyOS - valid, as help from colleagues and friends is priceless. - Contiki, my first message/patch was immediately reacted on, commented, and committed. Documentation - TinyOS documentation is better, but it also needs to be as TinyOS is really using a new programming language. (remember first C++ compilers were implemented as preprocessor to C) - Contiki dokumentation, online source code documentation - not good Publications and Talks, Articles including Tutorials - good what Contiki has that TinyOS does not have is explaining videos. (My feeling is that I actually will get a grip of the Contiki faster!) There are TinyOS videos. You can find the link from here: http://docs.tinyos.net/index.php/Ipsn2009-tutorial - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Collection Protocol
You can use Mintroute or MultihopLQI if they are available in your distribution. The other option is to port CTP to your platform. - om_p On Mon, Nov 8, 2010 at 2:01 AM, (¯`•._.•Lance•._.•´¯) steve1314...@gmail.com wrote: Hi, If i can't upgrade the tinyos version provided by the MoteWork , what other options i have if i wan to forward my msg from one node to another and finally back to the base station without any changed. Looking forward to the reply. regards, Lance On Sun, Nov 7, 2010 at 4:33 PM, (¯`•._.•Lance•._.•´¯) steve1314...@gmail.com wrote: Hi, I would like to ask whether i can use the Collection Tree Protocol (CTP) in moteworkTM as the version of the tinyos -tool is 1.X. Can i only update the version of the tinyos which provided from MoteWorkTM.? regards, lance On Sat, Nov 6, 2010 at 10:07 AM, (¯`•._.•Lance•._.•´¯) steve1314...@gmail.com wrote: The current tinyos1.x i am using was installed via Cross bow disc .So, may i ask if i wan to upgrade to tinyos 2.x .Is all the producers same as provided from this link http://www.tinyos.net/dist-2.0.0/tinyos-2.0.0beta2/doc/html/upgrade-tinyos.html ?. thanks regards, steve On Sat, Nov 6, 2010 at 9:43 AM, Omprakash Gnawali gnaw...@cs.stanford.edu wrote: On Tue, Nov 2, 2010 at 1:18 AM, (¯`•._.•Lance•._.•´¯) steve1314...@gmail.com wrote: HI all, I would like to implement the collection Protocol. What is the setting and arrangement of the network? Can i use tinyos 1.x ? Do i need to update to 2.x ? CTP is available only on 2.x. You can look at apps/tests/TestNetwork for an example on how to use it. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Routing protocol
On Wed, Nov 3, 2010 at 12:15 PM, Davide Pusceddu @ CIT davide.pusce...@mycit.ie wrote: Hi all, I've recently installed tinyos-2.1.1 and I'm testing the blip stack on telosb and iris using IPBaseStation and UDPEcho applications. I've few questions: What is the routing protocol implemented in Blip? Where I can find detailed documentation about the implementation of the routing protocol? Hydro. You can look on Stephen's webpage for details. Does TinyOS provide more than one routing protocol? You can look under Network protocols here: http://docs.tinyos.net/index.php/TinyOS_Tutorials - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] msg-data
On Wed, Nov 3, 2010 at 11:43 AM, wasif masood rwmas...@gmail.com wrote: Hi All, I have a simple question, Is Packet.getPayload(msg) == msg-data (always) No. In your stack, you might have multiple protocols that interpret different parts of msg-data as header and payload. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Collection Protocol
On Tue, Nov 2, 2010 at 1:18 AM, (¯`•._.•Lance•._.•´¯) steve1314...@gmail.com wrote: HI all, I would like to implement the collection Protocol. What is the setting and arrangement of the network? Can i use tinyos 1.x ? Do i need to update to 2.x ? CTP is available only on 2.x. You can look at apps/tests/TestNetwork for an example on how to use it. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CTP neighbor eviction procedure
On Mon, Nov 1, 2010 at 2:52 AM, wasif masood rwmas...@gmail.com wrote: Yes, I think it would be troublesome if one neighbor completely vanishes from the vicinity of a node because in that case node will always be transmitting 3 byte additional overhead in terms of the reverse link neighbour quality. Good point! If you want to fix that, you should expire the entry after a certain number of maximum Trickle intervals. I don't know how big of a problem this is so I am not convinced yet if we should make this change. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CTP neighbor eviction procedure
On Thu, Oct 28, 2010 at 6:16 AM, wasif masood rwmas...@gmail.com wrote: I am wondering how CTP evicts a complelety dead neighbor? because the normal procedure is this: 1- if (curr_seq - pre_seq 10) remove the neighbor if(nieghbortable full) remove the most loss neighbor now what will happen, if there is still some space in NeighborTable and its not possible to receive any packet from a neighbor because this case does not hold for any above conditions You will keep the node around. Do you see any problem with this? - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CTP: CtpForwardingEngineP component error
On Sat, Oct 23, 2010 at 12:25 AM, Dongyu Yang yangdy.n...@gmail.com wrote: I have tested this: when one Node (A) happened this phenomenon, I reduce the dissemination rate to once ever 10 seconds, and stop the other Nodes, this phenomenon exist still, the Node (A) can only receive the dissemination command, but can never send out data! I think it is not cased by the channel capacity, but because in Send.send() the clientPtrs[client] be set NULL; command error_t Send.send[uint8_t client](message_t* msg, uint8_t len) { .. if (call SendQueue.enqueue(qe) == SUCCESS) { if (radioOn !call RetxmitTimer.isRunning()) { post sendTask(); } clientPtrs[client] = NULL; return SUCCESS; } .. } if it do not deal with the EBUSY and FAIL state in the else condition, it will remain NULL. So the next when call Send.send() it return EBUSY, because the clientPtrs[client] only be reseted in the void packetComplete() function which be called in the event void SubSend.sendDone() as below: command error_t Send.send[uint8_t client](message_t* msg, uint8_t len) { .. if (clientPtrs[client] == NULL) { dbg(Forwarder, %s: send failed as client is busy.\n, __FUNCTION__); return EBUSY; } .. } void packetComplete(fe_queue_entry_t* qe, message_t* msg, bool success) { if (qe-client CLIENT_COUNT) { clientPtrs[qe-client] = qe; } } because the command SubSend.send() return not SUCCESS, so the event SubSend.sendDone() will not signal, so the clientPtrs[client] remain NULL. The return value is either FAIL or EBUSY in that else block. If it is FAIL, we should wait until the condition that resulted in FAIL is repaired. If it is EBUSY, that means we should wait until sendDone. I think we are handing the EBUSY case properly. There is a possibility that we are not handing all the possible cases that can result in FAIL. I understand posting sendTask solved your problem but I want to understand why it works and if there is any FAIL condition that we do not handle properly before committing the fix. Do you know what return value you were getting when this bug is triggered? If it is FAIL, what caused that FAIL return value? - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CTP: CtpForwardingEngineP component error
On Fri, Oct 22, 2010 at 9:37 PM, Dongyu Yang yangdy.n...@gmail.com wrote: Hello! I set up one network containing four Node and one Root, and use drip to disseminate command, and use ctp to collect data.The Root disseminates command every 200 ~ 700 ms (randomly), and the Node use ctp to send data to the Root when receive the command from the Root. I find the Node can receive the Root dissemination command, but can nerver send out data after about several minutes (about 5 minutes). And I find ever time when call Send.send(), the return value is EBUSY. And I find every time it return form the Send.send() command in the component CtpForwardingEngineP as bellow: command error_t Send.send[uint8_t client](message_t* msg, uint8_t len) { ctp_data_header_t* hdr; fe_queue_entry_t *qe; dbg(Forwarder, %s: sending packet from client %hhu: %x, len %hhu\n, __FUNCTION__, client, msg, len); if (!hasState(ROUTING_ON)) {return EOFF;} if (len call Send.maxPayloadLength[client]()) {return ESIZE;} .. if (clientPtrs[client] == NULL) { dbg(Forwarder, %s: send failed as client is busy.\n, __FUNCTION__); return EBUSY; } .. } I find in the task sendTask(), when the subsendResult value is not SUCCESS or ESIZE, the phenomenon mentioned above will happen, as below: task void sendTask() { .. subsendResult = call SubSend.send(dest, qe-msg, payloadLen); if (subsendResult == SUCCESS) { // Successfully submitted to the data-link layer. setState(SENDING); dbg(Forwarder, %s: subsend succeeded with %p.\n, __FUNCTION__, qe-msg); return; } // The packet is too big: truncate it and retry. else if (subsendResult == ESIZE) { dbg(Forwarder, %s: subsend failed from ESIZE: truncate packet.\n, __FUNCTION__); call Packet.setPayloadLength(qe-msg, call Packet.maxPayloadLength()); post sendTask(); call CollectionDebug.logEvent(NET_C_FE_SUBSEND_SIZE); } else { dbg(Forwarder, %s: subsend failed from %i\n, __FUNCTION__, (int)subsendResult); } .. } I find the code didn't deal with when the subsendResult value is not SUCCESS or ESIZE. And when I add post sendTask(); in the else path as below, it is OK and do not appear the above phenomenon (I test about one hour). task void sendTask() { .. subsendResult = call SubSend.send(dest, qe-msg, payloadLen); if (subsendResult == SUCCESS) { // Successfully submitted to the data-link layer. setState(SENDING); dbg(Forwarder, %s: subsend succeeded with %p.\n, __FUNCTION__, qe-msg); return; } // The packet is too big: truncate it and retry. else if (subsendResult == ESIZE) { dbg(Forwarder, %s: subsend failed from ESIZE: truncate packet.\n, __FUNCTION__); call Packet.setPayloadLength(qe-msg, call Packet.maxPayloadLength()); post sendTask(); call CollectionDebug.logEvent(NET_C_FE_SUBSEND_SIZE); } else { post sendTask(); dbg(Forwarder, %s: subsend failed from %i\n, __FUNCTION__, (int)subsendResult); } .. } I think it's may be forget to add the code post sendTask();, because some reason. That else condition gets executed if the return value is BUSY or FAIL. We should not post sendTask() if the return value is BUSY because that means we have already called Send and we are trying to call another Send before the sendDone is signaled. You might be trying to send the packets too fast for the channel capacity remaining after accounting for what is used by Drip. Can you try reducing your dissemination rate to once every 10 seconds and see if you still have the same problem? - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] CTP: ETX values vs. LPL wake-up interval
Are you using TestNetworkLpl and changing the flags in the Makefile to control various intervals? If not, you should tell me how to replicate your problem starting with TestNetworkLpl. - om_p On Thu, Oct 21, 2010 at 11:01 PM, Manjunath Doddavenkatappa dodda...@comp.nus.edu.sg wrote: Generally, yes. As ETX increases lossses also increase. I can observe the fact that RetxmitTimer in CtpForwardingEngine being fired quite a few times before sucessfully transmitting every packet. But, only a few times this does not hold with packets getting through although ETX remains at a higher value. Please let me know if you want me to redo the experiments if you need any other information. Regards, Manjunath D *** On Thu, 21 Oct 2010, Omprakash Gnawali wrote: On Tue, Oct 19, 2010 at 1:04 AM, Manjunath Doddavenkatappa dodda...@comp.nus.edu.sg wrote: Dear All, We are not able to figure out a reason why ETX values in CTP increases as wake-up interval of the LPL (BoXMaC-One) increases. We have a simple setup of a sender and a root node placed adjacent to each other. Nodes use maximum power of 0 dBm. 1) We are using IPI of 15s. We repeated the experiment at three different places with sevral runs runs at every location. Different wake-up intervals were tried back-to-back so that temporal variations are minimized. We used wake-up intervals of 10, 20, 40, 100, and 1000 (ms). 2) We also used LPL.setRemoteWakeupInterval(packet, WAKEUP_INTERVAL + 100) but without any luck. 3) Our debug messages show that CTP's RetxmitTimer being fired quite a few times before sucessfully transmitting every packet. 4) I first thought that the loss of data packets in the BoXMAC's preamble could be the reason, but looking into the LPL code, I understand that preamble packet losses are not fed into the Link Estimator. 5) In some experimental runs, particularly when the wake-up interval is 1000ms, no packet go-through. Requires a hard reboot. 6) Searching the archieves for CTP and LPL on tmote, I found that similar problem being discussed sometime in Dec 2008. The discussion suggests quite a few number of changes. http://mail.millennium.berkeley.edu/pipermail/tinyos-devel/2008-December/003510.html We should debug this. Do you also observe loss in delivery ratio along with high ETX values? - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
Re: [Tinyos-help] Forwarding Message
On Mon, Oct 18, 2010 at 10:15 AM, Urs Hunkeler urs.hunke...@epfl.ch wrote: On the relay nodes you just need to increment the hop count for each message. You can intercept messages before they are forwarded. To do this you'll have to implement the Intercept interface. The code could look something likes this: event bool forward(message_t* msg, void* payload, uint8_t len) { MyMsg* data = (MyMsg*)payload; // cast to your own data structure data-hopCount++; // increase the hop count of the message return true; // tell the underlying system to forward the message } If you use CTP, you can read the value of the THL field for hopcount. - om_p ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help