SlideShare a Scribd company logo
1 of 10
Mote Mote Radio
Communication
Intelligent Sensor Network
Ankit Singh
University of Applied Sciences,
Frankfurt am Main
Ankit Singh
Goal:

Radio Communication

Familiarity with TINYOS interfaces and
components

Learn How to
- message buffer : message_t for tinyOS 2.x
- Send a message buffer to the radio
- Receive a message buffer from the radio
Ankit Singh
Mote Mote Radio Communication
Introduction
* All interfaces and components use a common
message buffer abstraction, called
message_t implemented in nesC struct.
* message_t replaces tinyOS 1.x TOS_Msg
abstraction
Mote Mote Radio Communication
Ankit Singh
Basic Communication Interfaces
Packet - Basic Accessor for Message_t abstract type
In detail:
Clear out the packet:
command void clear(message_t* msg);
Return the length of the payload:
command uint8_t payloadLength(message_t* msg);
Set the length field of the packet:
command void setPayloadLength(message_t* msg, uint8_t len);
Return the maximum payload length:
command uint8_t maxPayloadLength();
Return a pointer to a protocol's payload region in a packet:
command void* getPayload(message_t* msg, uint8_t len);
Mote Mote Radio Communication
Ankit Singh
Basic Communication Interfaces
Send - Send a packet with a data payload of len.
- provides commands for sending and canceling a pending message send.
In Detail:
Send packet return SUCCESS, the component will signal sendDone event
in the future else will not signal sendDone.
command error_t send(message_t* msg, uint8_t len);
Cancel a requested transmission
command error_t cancel(message_t* msg);
Signaled in response to an accepted send request.
event void sendDone(message_t* msg, error_t error);
Return the maximum payload length that this communication layer can provide.
command uint8_t maxPayloadLength();
Mote Mote Radio Communication
Ankit Singh
Basic Communication Interfaces
Receiver- Receive a packet buffer, returning a buffer for the signaling
component to use for the next reception.
Misuse: Most common bugs in TinyOS code. (will show in implementation)
The problem: The new message is not being sent out.
event message_t* receive(message_t* msg, void* payload, uint8_t len);
PacketAcknowledgements - Provides a mechanism for requesting
acknowledgements on a per-packet basis.
RadioTimeStamping - Provides time stamping information for radio
transmission and reception. Provides the time at which start of frame
delimiter has been transmitted: units are in terms of a 32kHz clock.
Mote Mote Radio Communication
Ankit Singh
Basic Communication Interfaces
Receiver- Receive a packet buffer, returning a buffer for the signaling
component to use for the next reception.
Misuse: Most common bugs in TinyOS code. (will show in implementation)
The problem: The new message is not being sent out.
event message_t* receive(message_t* msg, void* payload, uint8_t len);
PacketAcknowledgements - Provides a mechanism for requesting
acknowledgements on a per-packet basis.
RadioTimeStamping - Provides time stamping information for radio
transmission and reception. Provides the time at which start of frame
delimiter has been transmitted: units are in terms of a 32kHz clock.
Mote Mote Radio Communication
Ankit Singh
Basic Communication Interfaces
Active Message Interfaces:
AMPacket - Similar to Packet, provides the basic AM accessors for the
message_t abstract data type. This interface provides commands for getting
a node's AM address, an AM packet's destination, and an AM packet's type.
Commands are also provides for setting an AM packet's destination and
type, and checking whether the destination is the local node.
AMSend - Similar to Send, provides the basic Active Message sending
interface. The key difference between AMSend and Send is that AMSend
takes a destination AM address in its send command.
Mote Mote Radio Communication
Ankit Singh
DEMO: BlinkToRadio Application
Objective:
i) Incrementing a counter
ii) Displaying the three lowest bits of the counter on the
LED's
iii) Transmitting the node's id and counter value over the radio
Now, let's move to the console and run the
Demo!!!
Mote Mote Radio Communication
Ankit Singh
DEMO: BlinkToRadio Application
Objective:
i) Incrementing a counter
ii) Displaying the three lowest bits of the counter on the
LED's
iii) Transmitting the node's id and counter value over the radio
Now, let's move to the console and run the
Demo!!!
Mote Mote Radio Communication
Ankit Singh

More Related Content

What's hot

Cellular network
Cellular networkCellular network
Cellular network
shreb
 

What's hot (20)

Gsm architecture
Gsm architectureGsm architecture
Gsm architecture
 
IoT Toulouse : introduction à mqtt
IoT Toulouse : introduction à mqttIoT Toulouse : introduction à mqtt
IoT Toulouse : introduction à mqtt
 
Chapitre 3 - Protocole Bus CAN (2020/2021
Chapitre 3 - Protocole Bus CAN (2020/2021Chapitre 3 - Protocole Bus CAN (2020/2021
Chapitre 3 - Protocole Bus CAN (2020/2021
 
Reseaux de capteurs sans fils - WSN
Reseaux de capteurs sans fils - WSNReseaux de capteurs sans fils - WSN
Reseaux de capteurs sans fils - WSN
 
windows CE
windows CEwindows CE
windows CE
 
RSTP (rapid spanning tree protocol)
RSTP (rapid spanning tree protocol)RSTP (rapid spanning tree protocol)
RSTP (rapid spanning tree protocol)
 
Static Routing
Static RoutingStatic Routing
Static Routing
 
Cellular Digital Packet Data.ppt
Cellular Digital Packet Data.pptCellular Digital Packet Data.ppt
Cellular Digital Packet Data.ppt
 
SENSOR NETWORK PLATFORMS AND TOOLS
SENSOR NETWORK PLATFORMS AND TOOLSSENSOR NETWORK PLATFORMS AND TOOLS
SENSOR NETWORK PLATFORMS AND TOOLS
 
Cellular network
Cellular networkCellular network
Cellular network
 
IT6601 MOBILE COMPUTING
IT6601 MOBILE COMPUTINGIT6601 MOBILE COMPUTING
IT6601 MOBILE COMPUTING
 
MANET VS VANET
MANET VS VANETMANET VS VANET
MANET VS VANET
 
Manet ppt
Manet pptManet ppt
Manet ppt
 
Formation Bus de Terrain _Partie 3_ Ethernet Industriel pour Valve Terminals
Formation Bus de Terrain  _Partie 3_  Ethernet Industriel pour Valve TerminalsFormation Bus de Terrain  _Partie 3_  Ethernet Industriel pour Valve Terminals
Formation Bus de Terrain _Partie 3_ Ethernet Industriel pour Valve Terminals
 
IT8602 Mobile Communication Unit II
IT8602 Mobile Communication   Unit II IT8602 Mobile Communication   Unit II
IT8602 Mobile Communication Unit II
 
Mobile Ad Hoc Network.pdf
Mobile Ad Hoc Network.pdfMobile Ad Hoc Network.pdf
Mobile Ad Hoc Network.pdf
 
Soutenance mémoire- IoT
Soutenance mémoire- IoTSoutenance mémoire- IoT
Soutenance mémoire- IoT
 
Formation Bus de Terrain _Partie 2a _ IO-Link
Formation Bus de Terrain _Partie 2a _ IO-LinkFormation Bus de Terrain _Partie 2a _ IO-Link
Formation Bus de Terrain _Partie 2a _ IO-Link
 
Cours3 ospf-eigrp
Cours3 ospf-eigrpCours3 ospf-eigrp
Cours3 ospf-eigrp
 
MPLS
MPLSMPLS
MPLS
 

Viewers also liked

TINYOS Oscilloscope Application
TINYOS Oscilloscope ApplicationTINYOS Oscilloscope Application
TINYOS Oscilloscope Application
Ankit Singh
 
Dane presentation
Dane presentationDane presentation
Dane presentation
Ankit Singh
 
Restricted Usage of Anonymous Credentials in VANET for Misbehaviour Detection
Restricted Usage of Anonymous Credentials in VANET for Misbehaviour DetectionRestricted Usage of Anonymous Credentials in VANET for Misbehaviour Detection
Restricted Usage of Anonymous Credentials in VANET for Misbehaviour Detection
Ankit Singh
 
MicazXpl Intelligent Sensors Network Project Presentation
MicazXpl Intelligent Sensors Network Project PresentationMicazXpl Intelligent Sensors Network Project Presentation
MicazXpl Intelligent Sensors Network Project Presentation
Ankit Singh
 
DO-178B/ED-12B Presentation
DO-178B/ED-12B PresentationDO-178B/ED-12B Presentation
DO-178B/ED-12B Presentation
Ankit Singh
 
The Security and Privacy Threats to Cloud Computing
The Security and Privacy Threats to Cloud ComputingThe Security and Privacy Threats to Cloud Computing
The Security and Privacy Threats to Cloud Computing
Ankit Singh
 
Indian German Unity
Indian German UnityIndian German Unity
Indian German Unity
Ankit Singh
 

Viewers also liked (20)

TINYOS Oscilloscope Application
TINYOS Oscilloscope ApplicationTINYOS Oscilloscope Application
TINYOS Oscilloscope Application
 
Dane presentation
Dane presentationDane presentation
Dane presentation
 
Simple Railroad Command Protocol
Simple Railroad Command ProtocolSimple Railroad Command Protocol
Simple Railroad Command Protocol
 
Design Alternative for Parallel Systems
Design Alternative for Parallel SystemsDesign Alternative for Parallel Systems
Design Alternative for Parallel Systems
 
201505 CSE340 Lecture 05
201505 CSE340 Lecture 05201505 CSE340 Lecture 05
201505 CSE340 Lecture 05
 
Restricted Usage of Anonymous Credentials in VANET for Misbehaviour Detection
Restricted Usage of Anonymous Credentials in VANET for Misbehaviour DetectionRestricted Usage of Anonymous Credentials in VANET for Misbehaviour Detection
Restricted Usage of Anonymous Credentials in VANET for Misbehaviour Detection
 
MicazXpl Intelligent Sensors Network Project Presentation
MicazXpl Intelligent Sensors Network Project PresentationMicazXpl Intelligent Sensors Network Project Presentation
MicazXpl Intelligent Sensors Network Project Presentation
 
DO-178B/ED-12B Presentation
DO-178B/ED-12B PresentationDO-178B/ED-12B Presentation
DO-178B/ED-12B Presentation
 
Security Vision for Software on Wheels (Autonomous Vehicles)
Security Vision for Software on Wheels (Autonomous Vehicles)Security Vision for Software on Wheels (Autonomous Vehicles)
Security Vision for Software on Wheels (Autonomous Vehicles)
 
Software Fault Tolerance
Software Fault ToleranceSoftware Fault Tolerance
Software Fault Tolerance
 
The Security and Privacy Requirements in VANET
The Security and Privacy Requirements in VANETThe Security and Privacy Requirements in VANET
The Security and Privacy Requirements in VANET
 
Anti Collision Railways System
Anti Collision Railways SystemAnti Collision Railways System
Anti Collision Railways System
 
The Security and Privacy Threats to Cloud Computing
The Security and Privacy Threats to Cloud ComputingThe Security and Privacy Threats to Cloud Computing
The Security and Privacy Threats to Cloud Computing
 
Indian German Unity
Indian German UnityIndian German Unity
Indian German Unity
 
Smart dust
Smart dustSmart dust
Smart dust
 
Seminar report nanorobotics
Seminar report nanoroboticsSeminar report nanorobotics
Seminar report nanorobotics
 
201506 CSE340 Lecture 15
201506 CSE340 Lecture 15201506 CSE340 Lecture 15
201506 CSE340 Lecture 15
 
Login Seminars Blackboard Directions 2009
Login Seminars Blackboard Directions 2009Login Seminars Blackboard Directions 2009
Login Seminars Blackboard Directions 2009
 
LiveOffice Email Archiving & Compliance 201
LiveOffice Email Archiving & Compliance 201LiveOffice Email Archiving & Compliance 201
LiveOffice Email Archiving & Compliance 201
 
201505 CSE340 Lecture 03
201505 CSE340 Lecture 03201505 CSE340 Lecture 03
201505 CSE340 Lecture 03
 

Similar to Mote Mote Radio Communication

Project report on gsm based digital notice board
Project report on gsm based digital notice boardProject report on gsm based digital notice board
Project report on gsm based digital notice board
manish katara
 
SMS-SMPP-Concepts
SMS-SMPP-ConceptsSMS-SMPP-Concepts
SMS-SMPP-Concepts
Duy Do Phan
 
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
ZahouAmel1
 

Similar to Mote Mote Radio Communication (20)

Tossim intro
Tossim introTossim intro
Tossim intro
 
6. TinyOS_2.pdf
6. TinyOS_2.pdf6. TinyOS_2.pdf
6. TinyOS_2.pdf
 
Project report on gsm based digital notice board
Project report on gsm based digital notice boardProject report on gsm based digital notice board
Project report on gsm based digital notice board
 
Implementation of MIL-STD1553 using Microcontroller Atmega 328P
Implementation of MIL-STD1553 using Microcontroller Atmega 328PImplementation of MIL-STD1553 using Microcontroller Atmega 328P
Implementation of MIL-STD1553 using Microcontroller Atmega 328P
 
Osi model
Osi modelOsi model
Osi model
 
Network
NetworkNetwork
Network
 
Implementation Of Byzantine Fault Tolerant Algorithm on WSN
Implementation Of Byzantine Fault Tolerant Algorithm on WSNImplementation Of Byzantine Fault Tolerant Algorithm on WSN
Implementation Of Byzantine Fault Tolerant Algorithm on WSN
 
SMS-SMPP-Concepts
SMS-SMPP-ConceptsSMS-SMPP-Concepts
SMS-SMPP-Concepts
 
15-105 v6
15-105 v615-105 v6
15-105 v6
 
An introduction to MQTT
An introduction to MQTTAn introduction to MQTT
An introduction to MQTT
 
Bt0076, tcpip
Bt0076, tcpipBt0076, tcpip
Bt0076, tcpip
 
Message queuing telemetry transport (mqtt) launch
Message queuing telemetry transport (mqtt) launchMessage queuing telemetry transport (mqtt) launch
Message queuing telemetry transport (mqtt) launch
 
Message queuing telemetry transport (mqtt) launch
Message queuing telemetry transport (mqtt) launchMessage queuing telemetry transport (mqtt) launch
Message queuing telemetry transport (mqtt) launch
 
Hack.lu 2012 - Fuzzing the GSM protocol stack (paper)
Hack.lu 2012 - Fuzzing the GSM protocol stack (paper)Hack.lu 2012 - Fuzzing the GSM protocol stack (paper)
Hack.lu 2012 - Fuzzing the GSM protocol stack (paper)
 
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols5-LEC- 5.pptxTransport Layer.  Transport Layer Protocols
5-LEC- 5.pptxTransport Layer. Transport Layer Protocols
 
Mqtt(Message queue telemetry protocol) presentation
Mqtt(Message queue telemetry protocol) presentation Mqtt(Message queue telemetry protocol) presentation
Mqtt(Message queue telemetry protocol) presentation
 
Multi user performance on mc cdma single relay cooperative system by distribu...
Multi user performance on mc cdma single relay cooperative system by distribu...Multi user performance on mc cdma single relay cooperative system by distribu...
Multi user performance on mc cdma single relay cooperative system by distribu...
 
Lecture 7n
Lecture 7nLecture 7n
Lecture 7n
 
InduSoft Web Studio and MQTT for Internet of Things Applications
InduSoft Web Studio and MQTT for Internet of Things ApplicationsInduSoft Web Studio and MQTT for Internet of Things Applications
InduSoft Web Studio and MQTT for Internet of Things Applications
 
Sample ch10 corr-maurer_netty_december03
Sample ch10 corr-maurer_netty_december03Sample ch10 corr-maurer_netty_december03
Sample ch10 corr-maurer_netty_december03
 

More from Ankit Singh (7)

IoT in Mining for Sensing, Monitoring and Prediction of Underground Mines Roo...
IoT in Mining for Sensing, Monitoring and Prediction of Underground Mines Roo...IoT in Mining for Sensing, Monitoring and Prediction of Underground Mines Roo...
IoT in Mining for Sensing, Monitoring and Prediction of Underground Mines Roo...
 
Parallex - The Supercomputer
Parallex - The SupercomputerParallex - The Supercomputer
Parallex - The Supercomputer
 
Cooperative Linux
Cooperative LinuxCooperative Linux
Cooperative Linux
 
Master Teset Specification SRCP
Master Teset Specification SRCPMaster Teset Specification SRCP
Master Teset Specification SRCP
 
Micazxpl - Intelligent Sensors Network project report
Micazxpl - Intelligent Sensors Network project reportMicazxpl - Intelligent Sensors Network project report
Micazxpl - Intelligent Sensors Network project report
 
Toilet etiquettes
Toilet etiquettesToilet etiquettes
Toilet etiquettes
 
TinyOS installation Guide And Manual
TinyOS installation Guide And ManualTinyOS installation Guide And Manual
TinyOS installation Guide And Manual
 

Recently uploaded

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 

Recently uploaded (20)

Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
Mattingly "AI & Prompt Design: Structured Data, Assistants, & RAG"
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..Sports & Fitness Value Added Course FY..
Sports & Fitness Value Added Course FY..
 

Mote Mote Radio Communication

  • 1. Mote Mote Radio Communication Intelligent Sensor Network Ankit Singh University of Applied Sciences, Frankfurt am Main Ankit Singh
  • 2. Goal:  Radio Communication  Familiarity with TINYOS interfaces and components  Learn How to - message buffer : message_t for tinyOS 2.x - Send a message buffer to the radio - Receive a message buffer from the radio Ankit Singh Mote Mote Radio Communication
  • 3. Introduction * All interfaces and components use a common message buffer abstraction, called message_t implemented in nesC struct. * message_t replaces tinyOS 1.x TOS_Msg abstraction Mote Mote Radio Communication Ankit Singh
  • 4. Basic Communication Interfaces Packet - Basic Accessor for Message_t abstract type In detail: Clear out the packet: command void clear(message_t* msg); Return the length of the payload: command uint8_t payloadLength(message_t* msg); Set the length field of the packet: command void setPayloadLength(message_t* msg, uint8_t len); Return the maximum payload length: command uint8_t maxPayloadLength(); Return a pointer to a protocol's payload region in a packet: command void* getPayload(message_t* msg, uint8_t len); Mote Mote Radio Communication Ankit Singh
  • 5. Basic Communication Interfaces Send - Send a packet with a data payload of len. - provides commands for sending and canceling a pending message send. In Detail: Send packet return SUCCESS, the component will signal sendDone event in the future else will not signal sendDone. command error_t send(message_t* msg, uint8_t len); Cancel a requested transmission command error_t cancel(message_t* msg); Signaled in response to an accepted send request. event void sendDone(message_t* msg, error_t error); Return the maximum payload length that this communication layer can provide. command uint8_t maxPayloadLength(); Mote Mote Radio Communication Ankit Singh
  • 6. Basic Communication Interfaces Receiver- Receive a packet buffer, returning a buffer for the signaling component to use for the next reception. Misuse: Most common bugs in TinyOS code. (will show in implementation) The problem: The new message is not being sent out. event message_t* receive(message_t* msg, void* payload, uint8_t len); PacketAcknowledgements - Provides a mechanism for requesting acknowledgements on a per-packet basis. RadioTimeStamping - Provides time stamping information for radio transmission and reception. Provides the time at which start of frame delimiter has been transmitted: units are in terms of a 32kHz clock. Mote Mote Radio Communication Ankit Singh
  • 7. Basic Communication Interfaces Receiver- Receive a packet buffer, returning a buffer for the signaling component to use for the next reception. Misuse: Most common bugs in TinyOS code. (will show in implementation) The problem: The new message is not being sent out. event message_t* receive(message_t* msg, void* payload, uint8_t len); PacketAcknowledgements - Provides a mechanism for requesting acknowledgements on a per-packet basis. RadioTimeStamping - Provides time stamping information for radio transmission and reception. Provides the time at which start of frame delimiter has been transmitted: units are in terms of a 32kHz clock. Mote Mote Radio Communication Ankit Singh
  • 8. Basic Communication Interfaces Active Message Interfaces: AMPacket - Similar to Packet, provides the basic AM accessors for the message_t abstract data type. This interface provides commands for getting a node's AM address, an AM packet's destination, and an AM packet's type. Commands are also provides for setting an AM packet's destination and type, and checking whether the destination is the local node. AMSend - Similar to Send, provides the basic Active Message sending interface. The key difference between AMSend and Send is that AMSend takes a destination AM address in its send command. Mote Mote Radio Communication Ankit Singh
  • 9. DEMO: BlinkToRadio Application Objective: i) Incrementing a counter ii) Displaying the three lowest bits of the counter on the LED's iii) Transmitting the node's id and counter value over the radio Now, let's move to the console and run the Demo!!! Mote Mote Radio Communication Ankit Singh
  • 10. DEMO: BlinkToRadio Application Objective: i) Incrementing a counter ii) Displaying the three lowest bits of the counter on the LED's iii) Transmitting the node's id and counter value over the radio Now, let's move to the console and run the Demo!!! Mote Mote Radio Communication Ankit Singh