Moving Target
I've just found out that a runtime version of OpenHAB has just been released.
It is now 1.5.1 (from 1.3.1).
I have loaded it with the demonstration configuration and it works but I have found it to be a little slow on the Raspberry Pi. Slow enough at times to lock up a connected client's web browser (IE11).
I received word from Bryan from EnOcean that an EOP 350 with TCM320 module can emulate an EnOcean Pi gateway (with TCM310) with the right firmware loaded.
This firmware upgrades the TCM320 to support ESP3. The currently released User Manual for the TCM300/TCM320 (version 1.43 July 2014) does not mention this capability.
ESP2 operates at 9600 bps where as ESP3 operates at 58823 bps (i.e. 57600 + 2.1% error)
ESP3 is an upgrade of ESP2 and its data structures and commands are different. Data verification is now done using CRC instead of checksums and the maximum data size has been increased from 28 bytes to 64K - 1 bytes.
Transmission through the serial interface still remains at asynchronous, 8 data bits, 1 stop bit and no parity.
UART synchronisation is done with a 6 byte header consisting of a synchronisation byte of 0x55 (alternating 1's and 0's), 4 byte header and 1 byte CRC8 byte followed by data.
The format of the 4 byte header
2 bytes Data Length
1 byte Optional Length
1 byte Packet Type
The CRC8 byte is calculated from the 4 byte header (i.e. does not include the 0x55 synchronisation byte in the calculation)
Currently there are only 9 standard packet types available. They are:
Value | Name | Description |
---|---|---|
0x00 | ---- | Reserved |
0x01 | RADIO_ERP1 | Radio Telegram |
0x02 | RESPONSE | Response to any packet |
0x03 | RADIO_SUB_TEL | Radio subtelegram |
0x04 | EVENT | Event message |
0x05 | COMMON_COMMAND | Common command |
0x06 | SMART_ACK_COMMAND | Smart Ack command |
0x07 | REMOTE_MAN_COMMAND | Remote management command |
0x08 | --- | Reserved for EnOcean |
0x09 | RADIO_MESSAGE | Radio message |
0x0A | RADIO_ERP2 | ERP2 protocol radio telegram |
0x0B .. 0x7F | --- | Reserved for EnOcean |
0x80 .. 0xFF | available | Manufacture specific commands and messages |
Details of the ESP3 protocol are available from the EnOcean Serial Protocol 3 (ESP3) Specification V1.27.
DolphinStudio 2.4 is used in conjunction with the EOP 350 to program TCM300/TCM320 firmware.
Dolphin Advanced is used in place of WinEtel for ESP3 support and additional debugging capabilities.
A special Sniffer firmware needs to be downloaded TCM300/TCM320 for it to be used for enhanced debugging.