Wiki source code of TPUART - Selbstbau Adapter-Platine für Raspberry Pi
Version 22.2 by Erkan Colak on 2018/04/14 12:53
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | Unser Forums-Kollege Heiko (monster50) hat für den Raspberry PI ein Interface realisiert, welches mit dem TPUART-Chip von Si...ns arbeitet. | ||
2 | |||
3 | |||
4 | **Platine:** | ||
5 | |||
6 | Funktionsmuster sowie erste Platine TPUART für Raspberry Pi | ||
7 | [[image:IMG_3410.JPG||height="173" width="230"]] [[image:TP-UART.jpg||height="169" width="229"]] | ||
8 | |||
9 | |||
10 | **Vorteile: **Stabile Kommunikation, keine Software nötig, wenige externe Bauteile, einfacher Aufbau | ||
11 | **Nachteil: **Teurer Si...ns-Chip (ca. 10€ + Versand). Nicht OpenSource. | ||
12 | |||
13 | ---- | ||
14 | |||
15 | **Installation:** | ||
16 | |||
17 | Es werden folgende Pin's mit dem Raspberry PI verbunden: 3.3V / GND / UART_TXD / UART_RXD | ||
18 | |||
19 | |||
20 | **Software: [[eibd>>https://www.auto.tuwien.ac.at/~~mkoegler/index.php/eibd]] / [[knxd>>https://github.com/knxd/knxd]]** | ||
21 | |||
22 | Hier ein Beispiel zum Testen, ob der Betrieb auch funktioniert: | ||
23 | |||
24 | **eibd -** "##eibd -e 1.1.68 -c -S -D -i -T -R ~-~-tpuarts-disch-reset ~-~-tpuarts-ack-all-group -u ~-~-trace=5 ~-~-pid-file=/var/run/eibd.pid tpuarts:/dev/ttyAMA0##" | ||
25 | **knxd - "**##knxd -e 1.1.68 -E 1.1.62:8 -D -T -R -S -f9 -B log -t 1023 -b tpuarts:/dev/ttyAMA0##**"** | ||
26 | |||
27 | Für knxd ist es notwendig einen Sym-Link zu erstellen. z.B.: Wie [[hier>>https://github.com/knxd/knxd/wiki/Adding-a-busware-pigator-KNX-TPUART-(Raspberry)]] beschrieben. | ||
28 | Beispiel: "##ACTION=="add", SUBSYSTEM=="tty", ATTRS{id}=="00341011", ATTRS{irq0}=="83", SYMLINK+="ttyKNX1", OWNER="knxd"##" | ||
29 | |||
30 | |||
31 | (% class="box warningmessage" %) | ||
32 | ((( | ||
33 | **Hinweis: **Die TP-UART-Platine kann, sobald eine Bus-Spannung anliegt (die LED leuchtet rot), auf dem Raspberry PI in Betrieb genommen werden. | ||
34 | ))) | ||
35 | |||
36 | ---- | ||
37 | |||
38 | **Downloads:** | ||
39 | |||
40 | Hier der [[Stromlaufplan>>https://github.com/Tontechniker/hardware-incubation/blob/patch-1/module/Raspi-TPUART.sch]] und das [[Board>>https://github.com/Tontechniker/hardware-incubation/blob/patch-1/module/Rasdpi-TPUART.brd]]. | ||
41 | |||
42 | [[Spezialteile>>https://github.com/Tontechniker/hardware-incubation/blob/patch-1/module/Farnell_Bestellung.pdf]] von Fa..ell. | ||
43 | Alle anderen Teile bekommt man bei den bekannten Distributoren. | ||
44 | |||
45 | Fragen zum Aufbau und zur Funktion bitte im Forum. | ||
46 |