Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Expected completion time of this lab: 

Excerpt

30 min

.

Table of Contents

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 10 “On9 “On-Chip Application Protocol”.

...

  • 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 valuehexadecimal valuemeaning
    505Control
    000id
    202

    command

    Info
    iconfalse
    titleAnswer 11.1:

     


    255ffTag: address
    202Length: 2 bytes
    303

    address byte 1:

    Info
    iconfalse
    titleAnswer 11.2:
     


    202

    address byte 2:

    Info
    iconfalse
    titleAnswer 11.3:
     


    000value
    101length
    101set pin to 1