Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

ISense over the air programming Protocol

pfisterer edited this page Oct 7, 2011 · 9 revisions

Overview

The module implements over-the-air-programming (OTAP) functionality to program a set of iSense nodes from coalesenses wirelessly. The nodes must be in single-hop range of the node that is connected to this pipeline. The connected sensor must have iSerAerial functionality enabled while the to-be-programmed devices must be OTAP-capable.

Usage

Configure your pipeline so that is contains all required OTAP, iSerAerial, iSense Packet, and DLE/STX/ETX functionality:

<itm-netty-handlerstack>
    <handler factory="isense-packet-upstream-encoder" />
    <handler factory="isense-otap" />
    <handler factory="iseraerial-packet" />
    <handler factory="isense-packet" />
    <handler factory="dlestxetx-framing" />
</itm-netty-handlerstack>

Within a pipeline, send a programming request (of type ISenseOtapAutomatedProgrammingRequest) downstream to the ''isense-otap-automated-handler''. This will trigger programming.

To trigger programming remotely, instance of ISenseOtapAutomatedProgrammingRequest must be serialized. The serialization format is defined in ISenseOtapAutomatedProgrammingRequestDownstreamEncoder.

After programming, the result is sent upstream as an instance of ISenseOtapProgramResult. This contains the original set of devices to be programmed, successfully programmed devices, and failed devices that did not respond properly. The result is encoded by an instance of ISenseOtapProgramResultUpstreamEncoder.