Radio Communication in TinyOS

1170 Words3 Pages

Mote to mote communication is the radio communication in Tiny os. This introduces us the interfaces and components in Tiny os which supports the radio communication. And also we learn the basics how to use the message_ t that is a message buffer which is used to send the message buffer to the radio and receives the message buffer from the radio. Tiny os provides us with the interfaces and the components.

Interfaces are used to consider the existing communication services and the components are used to implement the interfaces. These components and interfaces use a message buffer called message_ t that is implemented as nesC structure. This message buffer message_ t was used as TOS_ Msg in the first version of Tiny os and in the latest version of it has been replaced as message_ t. In the first version of the tiny os the message buffers were accessed directly but in the latest version they cannot be accessed directly instead this function can be read and written in the form of mutator and accessor functions.

There are many number of interfaces and components in the Tiny os. First lets have a look at the interfaces that are in the directory of the tiny os. The interface that gives the commands like clearing the content in the message and getting the load payoff and also getting a pointer to its payload area is called as a PACKET. The main function of this is it provides the basic addresses of the message_ t type. The interface SEND gives the commands for sending the messages and also it cancels the pending messages and also it creates an event that gives the information whether the message was sent successfully or not. It also provides the functions for getting the maximum messages.

The interface RECEIVE is used mainly to t...

... middle of paper ...

...receiving of the message we use some interfaces like receive for receiving the message and then after completing we can also test the code by inserting the mote in to the USB and connecting in to the system.

By using the command called motelist we can identify the whether the mote connected to the pc has been recognized are not. And then we type a command called make telosb install and then the code appears and then by implementing it the leds glow and now we will connect another mote and then write the command make telosb reinstall such that we can see the working of the other mote also. Then we can see the both led’s glowing and then if we press the reset button one of then it will stop working and once that button is released then both will work properly. Hence by all these examples we have learnt the mote to mote radio communication in a proper way.

More about Radio Communication in TinyOS

Open Document