Mote to mote communication is radio communication in Tiny OS. This introduces us to the interfaces and components of the Tiny OS that support radio communication. And we will also learn the basics of how to use message_t which 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 components. Interfaces are used to consider existing communication services and components are used to implement the interfaces. These components and interfaces use a message buffer called message_t implemented as a nesC structure. This message buffer message_t was used as TOS_ Msg in the first version of Tiny os and in the latest version it was replaced as message_t. In the first version of the small operating system, message buffers were accessed directly, but in the latest version it is not possible to access them directly, instead this function can be read and written in the form of mutator and access functions. There are many numbers of interfaces and components in the Tiny operating system. First let's take a look at the interfaces present in the small operating system directory. The interface that provides commands such as clearing the contents of the message, getting the payload payoff, and also getting a pointer to its payload area is called PACKAGE. The main function of this is to provide base addresses of type message_t. The SEND interface provides commands for sending messages and also clears pending messages and also creates an event that provides information whether the message was sent successfully or not. It also provides features to receive the most messages. RECEIVE interface is mainly used for t...... half of the paper ......receiving the message we use some interfaces like receive to receive the message and then after completing it we can also test the code by inserting the mote into the 'USB and connecting to the system. Using the command called motelist we can identify whether the mote connected to the PC has been recognized or not. And then we type a command called make telosb install and then the code appears and then by implementing it the LEDs light up and now we will connect another mote and then we will write the command make telosb reinstall so that we can also see the operation of the other mote. So we can see both LEDs lit and then if we press the reset button one of them will stop working and once we release the button both will work fine. So from all these examples we have learned how to move radio communication correctly.
tags