LocoNet - PowerPoint PPT Presentation

About This Presentation
Title:

LocoNet

Description:

Application layer an overview. Loco operation. Example: FRED ... 2b) Physikal layer - timing. 16600 Baud, 60 s bit time. 8N1. D0. 1. 0. Start. 0. D1. D2. D3 ... – PowerPoint PPT presentation

Number of Views:344
Avg rating:3.0/5.0
Slides: 20
Provided by: stefanb8
Category:
Tags: loconet | baud

less

Transcript and Presenter's Notes

Title: LocoNet


1
LocoNet
  • A network for controling
  • model railroads

by Stefan Bormann (stefan.bormann_at_gmx.de)
2
Contents
  • LocoNet? System overview.
  • Physical layer
  • Packet layer
  • Application layer an overview
  • Loco operation
  • Example FRED
  • References.

3
1a) System overview
Command Station
4
1b) What is LocoNet?
  • invented by Digitrax
  • proprietory
  • Peer to peer
  • CSMA/CD
  • 3 Layers.

5
2a) Physical layer - electrical
6
2b) Physikal layer - timing
  • 16600 Baud, 60µs bit time
  • 8N1

7
3a) Packet layer
  • bytes are transmitted back-to-back
  • packets consist of 2, 4, 6 or N bytes
  • first byte is opcode
  • last byte is checksum (xor of all other bytes).

8
3b) Opcode
9
3c) Packet timing, net access
  • CD carrier detect (defines end of packet)
  • MD master delay (only master may transmit)
  • PD priority delay (high prio. small PD)

10
3d) Packet timing, collisions
  • Collisions are avoided, by shortening the time
    between still observing the net is idle until the
    first bit is transmitted onto the net.
  • Collision is detected, when a 0 is seen on the
    net, while a 1 is being transmitted
  • On detection of a collision, a break (15 bit
    times 0) is transmitted.

11
4. Application layer
-- an overview
  • turnouts
  • signals
  • message exchange
  • decoder programming
  • fast clock
  • loco operation

12
5a) Loco operation
  • Table with loco data in command station
  • Slot Index in table Handle
  • Slot is a 7 bit number
  • 128 Slots
  • 1..120 are loco slots
  • 0 dispatch slot
  • gt120 are special slots (fast clock, programming)
  • loco slots have fields

13
5b) Fields of a slot
  • loco address (14 bits)
  • state of slot (free/common/idle/IN_USE)
  • protocol selection ( of speed steps, ...)
  • state of loco
  • speed (7 bit)
  • functions (9 bits, F0, F1, ..., F8)
  • consist tree
  • ID (14 bits, can be a device ID of controller)

14
5c) Operations on slots (requests)
  • requests to master
  • OPC_LOCO_ADR get slot by address
  • OPC_RQ_SL_DATA get slot by slot
  • OPC_WR_SL_DATA write slot by slot
  • OPC_MOVE_SLOTS move slot from to
  • dispatch put (destination0)
  • dispatch get (source0)
  • NULL move (sourcedestination!0)
  • OPC_SLOT_STAT1 modify slot status

15
5d) Operations on slots (responses, operation)
  • responses from master
  • OPC_LONG_ACK simple acknowledge
  • OPC_SL_RD_DATA slot data
  • realtime operation
  • OPC_LOCO_SPD 7 bits of speed
  • OPC_LOCO_DIRF direction and F0, ..., F4
  • OPC_LOCO_SND F5, ..., F8

16
6a) FRED
  • FRemos Einfacher Drehregler
  • Simple to use
  • Can only control one engine
  • speed,
  • direction,
  • F0, F1, F2.

17
6b) FRED Example for protocol (acquire loco)
18
6c) FRED Example of protocol (reconnect)
19
7. References
  • This clinic
  • http//www.nord-com.net/ stefan.bormann/dcc/
    dcc_e.html
  • Digitrax homepage
  • http//www.digitrax.com
  • LocoNet-Hackers mailing list
  • http//groups.yahoo.com/group/loconet_hackers.
Write a Comment
User Comments (0)
About PowerShow.com