Looking at the structs that you are using, I am guessing you are using Moteworks version of tinyos-1.x. I'm slightly rusty now having not used Moteworks for a while, so this is to the best of my recollection: 1) If you choose to continue forwarding your message, it will be unicast 'towards' the base station. The underlying MAC is broadcast, though, so this is something you can exploit. I strongly encourage you to read sections 5.2.2 and 5.2.3 of the XMesh manual (its only 2 pages long!). 2) As you state, ReceiveMsg is an _interface_, so depending on what it is wired to.... 3) Not sure what you mean. Its better to state what you want to achieve. 4) There's no context, so I don't know which one is correct (that's essentially what you are interested in). I usually use the latter format to fill an outgoing message. 5? ) Use MODE_ONE_HOP_BROADCAST. You need section 5.2.1 of the XMesh manual.
-----Original Message----- From: [email protected] [mailto:[email protected]]on Behalf Of (¯`*._.*Lance*._.*´¯) Sent: 11 November 2010 12:11 To: [email protected] Subject: [Tinyos-help] Intercept Mesg Hi all, 1 ) Currently i am using the Intercept() interface in tinyos 1.x . The interface says that base on the return value we can choose either to forward the msg or not. My question is that ..the msg is forward to a particular node or to every nodes within the transmission range ( broadcasting ). 2) is it true that ReceiveMsg interface can only receive non-multi hop message ? 3) How many buffers can be use for a micaz mote ? 4) Wat is the differenct between pack = (XDataMsg *)&(msg_buffer.data); and pack= (XDataMsg*)call Send.getBuffer(&msg_buffer1, &len); Can i change the BASE_STATION_ADDRESS to TOS_BCAST_ADDR if (call Send.send(BASE_STATION_ADDRESS,MODE_UPSTREAM,&msg_buffer1,sizeof(XDataMsg)) != SUCCESS) Please Help me >> Project of my deadline is very close. Thanks lance Please consider the environment before printing a hard copy of this e-mail. The information contained in this e-mail is confidential. It is intended only for the stated addressee(s) and access to it by any other person is unauthorised. If you are not an addressee, you must not disclose, copy, circulate or in any other way use or rely on the information contained in this e-mail. Such unauthorised use may be unlawful. If you have received this e-mail in error, please inform us immediately on +44 (0)118 986 8601 and delete it and all copies from your system. Thales Research and Technology (UK) Limited. A company registered in England and Wales. Registered Office: 2 Dashwood Lang Road, The Bourne Business Park, Addlestone, Weybridge, Surrey KT15 2NX. Registered Number: 774298 Thales UK Limited. A company registered in England and Wales. Registered Office: 2 Dashwood Lang Road, The Bourne Business Park, Addlestone, Weybridge, Surrey KT15 2NX. Registered Number: 868273
_______________________________________________ Tinyos-help mailing list [email protected] https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
