Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/raintonr/hormann-hcp

Experiments with the Hormann HCP bus
https://github.com/raintonr/hormann-hcp

controller door hcp hormann motor rs485

Last synced: about 1 month ago
JSON representation

Experiments with the Hormann HCP bus

Awesome Lists containing this project

README

        

# hormann-hcp

*Experiments* with the Hormann HCP bus.

**Yes... this is a code experiment only, do not consider it even close to usable for anything useful yet!**

Inspired by https://blog.bouni.de/posts/2018/hoerrmann-uap1/

Tested and working just fine with LineaMatic P motor and the following platform combinations:

- Lenovo X220 laptop + USB FTDI RS232 + TTL to 485 converter module.
- Lenovo X220 laptop + USB 485 adapter.
- Raspberry Pi 3B plus + USB FTDI RS232 + TTL to 485 converter module.
- Raspberry Pi 3B plus + built in UART + TTL to 485 converter module.

Test experiment responds instantly to keyboard input using this code.

# Setup

Should works with any Linux serial device. Make sure kernel modules are loaded and your serial device is showing up in `/dev` tree.

Install git, nodejs, npm & friends, then:

```
git clone https://github.com/raintonr/hormann-hcp.git

cd hormann-hcp

npm install
```

# Usage

Assumes you have a USB/RS485 dongle connected and available as `/dev/ttyUSB0`. If not, edit the test code to update the path for your device. Ie `/dev/ttyAMA0` for Raspberry Pi built in UART (noting this requires a TTL to 485 converter).

Start the program with `npm start`

You then get a couple of messages like this:

```
Setting up port...
Opening port...
```

To send commands you can press the number keys 1 up to 8 on your keyboard.

# Debug

Uses node `debug` module with prefix `hormann-hcp:` so enable all debugging with:

`DEBUG=hormann-hcp:* npm start`