Lab 16. raw OAP temperature notifications

Expected completion time of this lab: 15 min.

  • Create the following flow
     

  • After a few seconds, you receive both an "oap" notifications and a "notifData" notification. These correspond to the same information: the manager publishes the (raw) "notifData" notification, the JsonServer then understands that this is an OAP notfication and parses that.

  • In the "notifData" notification, find fields.data field. First, copy-paste the bytes from that field "value received" column below. Second, use the SmartMesh IP Tools Guide (http://www.linear.com/docs/42453), Section 9 “On-Chip Application Protocol” to interpret those bytes and fill in the "explanation" column.

    Answer 1:

    field name

    length

    value received

    explanation

    control byte

    1 byte


    N.A.

    id byte

    1 byte


    N.A.

    command

    1 byte



    type

    1 byte



    channel

    type

    1 byte



    length

    1 byte



    value

    1 byte



    timestamp

    12 bytes



    rate

    4 bytes



    num samples

    1 byte



    sample size

    1 byte



    sample

    2 bytes



  • What is the reported temperature?

    Answer 2: