Expected completion time of this lab: 30 min.
On-Chip Application Protocol (OAP)
The default application which runs on your SmartMesh IP Motes allows simple interactions with different peripherals on the mote, including the LED. The protocol you use to interact with this application is called the “On-Chip Application Protocol” (OAP). It is described in the SmartMesh IP Tools Guide (http://www.linear.com/docs/42453), Section 9 “On-Chip Application Protocol”.
Parsing OAP packets
Using a text editor, open the TempMonitor.log file right after having switched the LED on. This file logs all the frames between exchanged between the TempMonitor application and the manager over its serial port.
Make sure you find the following data in the logs: 5, 0, 2, 255, 2, 3, 2, 0, 1, 1. This corresponds to the OAP command to set the INDICATOR LED on. Use the OAP documentation to complete the following table:
|decimal value||hexadecimal value||meaning|
|2||02||Length: 2 bytes|
|1||01||set pin to 1|