Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/raintonr/hormann-hcp
- Owner: raintonr
- Created: 2021-02-08T13:28:17.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2021-03-10T07:46:59.000Z (almost 4 years ago)
- Last Synced: 2023-08-11T19:43:30.149Z (over 1 year ago)
- Topics: controller, door, hcp, hormann, motor, rs485
- Language: JavaScript
- Homepage:
- Size: 52.7 KB
- Stars: 14
- Watchers: 7
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.gitcd 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`