pvbrowser manual
Back Content Forward

eib bus

EIB Ascii Terminal
EIB Ascii Terminal

For the European Installation Bus (EIB) there is a daemon connecting to an EIB Ascii Terminal from Schlaps und Partner . The input signals are automatically written to a MySQL database. Other applications (like Visualization) may read this database. Also a commandline utility is provided for sending to the EIB Bus.

Test script sending to the EIB-Bus

#!/bin/bash
cnt=0
while [ $cnt -lt 20 ]; do
  buscommand -eib W10/0/002=1
  sleep 1
  buscommand -eib W10/0/003=1
  sleep 1
  buscommand -eib W10/0/002=0
  sleep 1
  buscommand -eib W10/0/003=0
  sleep 1
  let cnt=cnt+1
done

EIB signals are stored in MySQL

lehrig@nb3lehrig:~> mysql -u busclient -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 17 to server version: 4.0.15

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use automation;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> select * from bus;
+----------+----------+-----------+
| name     | datatype | datavalue |
+----------+----------+-----------+
| 10/0/002 | S1       | 1         |
| 10/0/003 | S1       | 1         |
| 10/0/001 | S1       | 0         |
| 10/0/000 | S1       | 1         |
+----------+----------+-----------+
4 rows in set (0.00 sec)

mysql> select * from bus;
+----------+----------+-----------+
| name     | datatype | datavalue |
+----------+----------+-----------+
| 10/0/002 | S1       | 1         |
| 10/0/003 | S1       | 1         |
| 10/0/001 | S1       | 0         |
| 10/0/000 | S1       | 0         |
+----------+----------+-----------+
4 rows in set (0.00 sec)

mysql>

Back Content Forward