Hi Denis,

> Steve, if this time you are receiving this as a subscriber to the mailing 
> list, could you describe the encoding in a way similar to one used for 
> http://www.tcpdump.org/linktypes/ ?

See below.

Best Regards,

Steve

WattStopper DLM room bus protocol from LMCI USB dongle.

+-------------------------+
|        Dongle Code      |
|        (1 Octet)        |
+-------------------------+
|       Packet Delay      |
|        (2 Octets)       |
+-------------------------+
|        Preamble 1       |
|        (1 Octet         |
+-------------------------+
|        Preamble 2       |
|        (1 Octet)        |
+-------------------------+
|    Family/Address/IR    |
|        (1 Octet)        |
+-------------------------+
|       Sequence ID       |
|        (1 Octet)        |
+-------------------------+
|       Source MAC        |
|       (4 Octets)        |
+-------------------------+
|    Destination MAC      |
|       (4 Octets)        |
+-------------------------+
|        Opcode           |
|       (1 Octets)        |
+-------------------------+
|      Payload Length     |
|       (1 Octets)        |
+-------------------------+
|         Payload         |
.                         .
.                         .
.                         .
|       (0-18 Octets)     |
+-------------------------+
|      LRC Checksum       |
|       (1 Octet)         |
+-------------------------+

Description

The Dongle Code field contains a value that is one of:

    [0] = "No Error",
    [1] = "Preamble 1 Error",
    [2] = "Preamble 2 Error",
    [3] = "Checksum Error",
    [4] = "Timeout Error",
    [8] = "Other Family Error"

The Packet Delay field contains an integer value that is the
number of milliseconds since the previous packet.

The Preamble 1 and Preamble 2 fields should each contain 0xAA.

The Family/Address/IR field contains 3-bits of family code, 2-bits of
address mode, 2-bits of IR (infrared) routing, and 1-bit unused.
The 8 Legrand NITOO families are 000=CAD Filaire, 001=TopDog, 010=CAD RF,
011=CAD PLC, 100=CAD IR, 101=DLM, 111=escape, and 111=DLM Bootloader).
This document only describes the DLM family.
The Address mode bits are defined as:
(00=Broadcast, 01=multicast, 10=unicast, 11=anonymous unicast).

The Sequence ID field contains an incrementing sequence number.

The Source MAC is the 32-bit serial number of the originating device.

The Destination MAC is the 32-bit serial number of the any unicast receiver,
or various values for broadcast or multicast.

The Opcode field contains the message command, which determines the Payload
and Payload Length fields.

The LRC Checksum excludes the Preamble octets.
_______________________________________________
tcpdump-workers mailing list
tcpdump-workers@lists.tcpdump.org
https://lists.sandelman.ca/mailman/listinfo/tcpdump-workers

Reply via email to