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 ...view middle of the document...
The interface Radio Time Stamping provides the information on time stamping in the radio transmitting and receiving. These are the basic interfaces we come over in the concept of the Tiny os and also we have learnt the basic functioning and the commands that are provided by the interfaces.
In any communication we have different types of services using the same radio to communicate. In order to solve this in Tiny os a layer called Active Message layer is used to access the multiple services in the single radio to communicate. An AM packet consists of a destination field that stores an AM address to address packets to particular motes. And also to support the AM services some types of interfaces were introduced in to the tiny os directory, they are AM send and AM packet.
The interface AM packet is similar to the interface Packet in the message buffer message _ t. But in additional to this the interface also gives the commands for getting the destination of the packet, for getting the address of the AM and also for getting the information on the type of AM packet. AM send interface is also similar to the Send interface but the main difference is that the AM send interface consists of the destination address. The address of the AM node is set at the beginning of the installation time using the commands like Install. n or reinstall. n. These are the number of interfaces located in the directory of the Tiny os.
Now let us have a look at the components in the Tiny os directory. These components are mainly used in the basic communication functions and also the active message interfaces. For getting the command on the code one must be familiar with the components and also the interfaces. AMReceiver component is used to give the interfaces like packet, receive and AM packet. AMsenderC component provides the commands for the interfaces like AM send, packet and packet acknowledgement which is given as Acks. AMsnooperC component is used to provide the commands for the interfaces like packet, receive and AM packet.
In additional to this we also have a component called AM sending receiver which also does the same functions as AM snooperC. The Active message address C provides the commands for setting the nodes address. This interface cannot be used in general because the change in the nodes active message address may cause the break in the network. Hence this interface cannot be used unless or until one has command over it. We know that Tiny os performs multiple functions each and every one of them has their own radio driver and its implementation. But in additional to this a platform specific naming wrapper called Active MessageC is used. This interface is mainly used to bridge the interfaces. This Active MessageC is basically used in most of the interfaces explained above. Active messageC differs for different types of the components.
Already we have discussed above about the message buffer message_ t. The message_ t structure is written as...