Configuration

The SPI configuration is stored on the sdcard in the file "devices.txt".

It is a comma-separated file which describes the configuration for each SPI device connected :
'SPI{0/1}', 'device name', 'device address', 'DMX start address', 'clock speed in Hz[:pixel count]'

The supported devices can be found here. When '0' is used for the 'clock speed' then the default clock speed is selected.
The 'pixel count' is optional for the WS28xx devices. Default value is 170 (DMX_UNIVERSE_SIZE / WS28xx_SLOTS_PER_PIXEL).

Example:
#SPI0,mcp23s17,0,1,0
#SPI0,bw_spi_dio,84,1,0
#SPI1,bw_spi_relay,8E,8,0
#SPI1,mcp23s08,0,9,0
#SPI0,ws2801,0,1,0:32
#SPI0,ws2812,0,1,0:15
SPI0,ws2812b,0,1,0:60

The RDM device configuration is stored on the sdcard in the file "rdm_device.txt"

 NameDescription
 manufacturer_name Manufacturer Name (maximum length is 32 characters) : E120_MANUFACTURER_LABEL
 manufacturer_id Manufacturer ID : http://tsp.plasa.org/tsp/working_groups/CP/mfctrIDs.php
 device_label Descriptive label for the device (maximum length is 32 characters) : E120_DEVICE_LABEL    
 product_category Product Category (default=7FFF {E120_PRODUCT_CATEGORY_OTHER})
 product_detail Product Detail, a single ID : E120_PRODUCT_DETAIL_ID_LIST (default=7FFF {E120_PRODUCT_DETAIL_OTHER})
 device_external_monitor Level of displaying statistics and real-time information (default = 0).

 "device_external_monitor"Description
 0 Displaying static information only; model type, compile date-time, number of devices connected, device UUID, root device label.
 1 0 + function count per second, DMX available count per second, DMX missed count
 2 All above with DMX data analyzer and detailed statistics

Example:
manufacturer_name=Open Lighting
#manufacturer_id=7A70
     #device_label=
     device_external_monitor=1

The Sensors configuration is stored on the sdcard in the file "sensors.txt"
ċ
devices.txt
(0k)
Arjan van Vught,
Feb 15, 2016, 10:23 AM
Comments