Echelon LonTal Stack User Manual

Page 3

Advertising
background image

LonTalk Stack Developer’s Guide

iii

Table of Contents

Welcome.........................................................................................................ix

Audience ........................................................................................................ix

Related Documentation ................................................................................ ix

1

Introduction to LonTalk Stack ............................................................... 1

Overview ......................................................................................................... 2

A L

ON

W

ORKS

Device with a Single Processor Chip .............................. 3

A L

ON

W

ORKS

Device with Two Processor Chips ................................... 4

ShortStack Developer’s Kit .............................................................. 4

LonTalk Stack Developer’s Kit......................................................... 6

Comparing Neuron-Hosted, ShortStack, and LonTalk Stack

Devices...................................................................................................... 7

Requirements and Restrictions for LonTalk Stack...................................... 9

Development Tools for LonTalk Stack........................................................ 10

LonTalk Stack Architecture ........................................................................ 10

Overview of the LonTalk Stack Development Process .............................. 12

2

Getting Started with the LonTalk Stack Developer’s Kit ..............19

LonTalk Stack Overview ............................................................................. 20

Installing the LonTalk Stack Developer’s Kit............................................ 20

Hardware Requirements....................................................................... 20

Software Requirements......................................................................... 20

Installing the LonTalk Stack Developer’s Kit ..................................... 21

LonTalk Stack Files ..................................................................................... 21

LonTalk Interface Developer....................................................................... 21

Example LonTalk Stack Applications ........................................................ 22

3

Loading the Echelon Smart Transceiver or Neuron Chip .............25

Loading Overview ........................................................................................ 26

Integrating a Custom Network Interface ................................................... 28

Defining Incoming Layer 2 Packet Buffers.......................................... 29

Functions................................................................................................ 29

4

Designing the Serial I/O Hardware Interface ...................................31

Overview of the Hardware Interface .......................................................... 32

Reliability............................................................................................... 32

Serial Communication Lines ................................................................ 32

The RESET~ Pin ................................................................................... 33

Selecting the Link-Layer Bit Rate........................................................ 34

Host Latency Considerations................................................................ 36

SCI Interface ................................................................................................ 36

Performing an Initial Echelon Smart Transceiver Health Check ............ 37

5

Creating a LonTalk Stack Serial MIP Driver....................................39

Overview of the Link Layer Protocol .......................................................... 40

Code Packet Layout............................................................................... 40

Type Code Values............................................................................ 42

Acknowledgment Rules .................................................................. 44

Sequence Number Cycling and Duplicate Detection .................... 45

Supported MIP Command Set.............................................................. 45

Layer 2 / Layer 5 Modes........................................................................ 46

Product Query Network Management ................................................. 47

Advertising