This is an old revision of the document!


ACAB Setup Instructions

The goal of this page is to gather all information needed to set up an ACAB installation from the ground up.

The currently used hardware can be found at https://github.com/schneider42/moodlamp-rf

The board and shcematic used for the ACAB installations are board/buslamp.{brd,sch} and are designed with EAGLE.

The hrdware uses RS484 to signal data to the lamps and a 24 V to 28 V supply voltage. Both the RS484 signal and the supply voltage
are crried on a single cable. To keep the cost down standard Cat 5 network cables are used.

To communicate with the host computer, the RS484 interface has to be adapted to another interface. The device described by board/ub.{brd,sch}.
It is intended to be used with our IPv6 home automation project, but can also be used to act as an USB to RS485 bridge.

The software for the RS485 bridge can be found inside the rs485bridge/ directory. It translates frames from a normal serial connection to
the RS485 bus used by the system. When used with the device mentioned above, it can be used to connect an ACAB installation to a PC.

The bootloader for the boards can be found at https://github.com/schneider42/moodlamp-rf inside the ubloader/ directory.

The bootloader is used to update the firmware of the lamps while they are inside an installation and therefore inaccessible.
It consists of a small bootloader program, running on the lamps, and a set of Python and bash scripts to upload new firmeare to the lamps.

The bootloader can upload new firmware to a lamp and program arbitrary parts of the EEPROM. To single out a lamp on the bus and only programm a single one,
the bootloader can be used to compare an arbitrary section of the EEPROM to data transmitted via the bus.

The scripts use this feature to select a single lamp after all lamps performed a power on reset.

To flash lamps which have not yet a uniqe EEPROM content, the bootloader can be forced to consider the lamp selected.

Usage

  1. Program the RS485 bridge
    1. cd rs485bridge
    2. make
    3. make fuse
    4. make install
  2. If a new lamp needs to be flashed
    1. Flash the bootloader to the lamp:
      1. cd ubloader
      2. make
      3. make fuse
      4. make install
  3. Compile the moodlamp firmware:
    1. cd moodlamp-rf
    2. make
  1. If you want to set up a single lamp that has not yet been configured:
    1. Connect the RS485 bridge with the lamp and apply 24V power to the lamp. The lamp starts to light up red.
    2. cd ubloader
    3. ./select-m644p
      1. This command selects any lamp connected to the system
    4. ./set-m644p $hexadecimal_number
      1. Replace $hexadecimal_number with a uniqe hexadecimal number greater than 0x10. Numbers smaller than 0x10 are reserved for multicast addresses on the bus
      2. This command sets the address of the lamp on the bus to this number
    5. ./flash-m644p
      1. This command loads the firmware from the moodlamp-rf directory and sends it to the lamp.
  • acab/setup.1363733494.txt.gz
  • Last modified: 2021/04/18 12:32
  • (external edit)