Versions Compared

Key

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

...

The AP Bridge communicates with the AP Mote using the Serial API of AP Mote. The serial protocol is similar to the IP Mote Serial API, described in TODO, with commands sent to the AP Mote and notifications received from the AP Mote.   The AP Bridge initiates tells the AP Mote to join process of the AP Mote the SmartMesh IP network when the AP Bridge is connected with the VManager.   The AP Bridge manages a time handshake with the AP Mote, which establishes the ASN to UTC mapping for the network. 

...

The AP Bridge communicates with the VManager using a TCP-based messaging protocol. Once the AP Bridge establishes a Serial API connection with the AP Mote, the AP Bridge tries to connect to the VManager. The AP Bridge and VManager rely on stunnel to provide secure communication. It is the responsibility of the system integrator to configure the appropriate stunnel certificates and algorithms. 

The AP Bridge handles flow control with the VManager. If the AP Mote can not handle the rate of input from the VManager, the AP Bridge will request that the VManager suspend its input. Similarly, if the VManager can not handle the rate of input from the AP Mote, the AP Bridge will NACK input from the AP Mote. 

The AP Bridge can handle short disconnections from the VManager. While the AP Bridge and VManager are disconnected, the AP Bridge will NACK input from the AP Mote. When disconnected, the AP Bridge periodically tries to reconnect to the VManager and reestablish its existing session. 

AP Bridge state machine

At a high level, the operation of the AP Bridge can be described in the following state machine. 

Gliffy
nameBasic APC state machine