Programming - First steps
P.
64 of 349
Extended LAN functions
(Option NP, only)
Multimedia control
Enertex
®
EibPC must be configured
for name resolution.
The job: A multimedia application
In addition to the functions for accessing the KNX
TM
bus, the Enertex
®
EibPC can receive, send and
evaluate LAN telegrams.
As usual, we set ourselves a small task to present the approach and the application of LAN
functions.
EibPC
EibPC
RS 232
Switch
'1/0/0'
Socket - binary
'1/1/1'
KNX Display
'1/2/2'
KNX Bus
LAN
LAN Musicplayer
192.168.22.25:3807
Email:
smtp.gmx.de
Figure 23: Multimedia control
–
When the switch 1/0/0 is pressed, the Enertex
®
EibPC shall switch on the power socket
controlled by the group address 1/0/0 (which supplies the music player).
–
After four seconds, the Enertex
®
EibPC shall send the string “Start Music“ to port 3807 of
the music player via a UDP telegram.
–
Then, the music player sends a string “Play Music: Title“ to port 4806, in which “Title” is the
currently playing track. The Enertex
®
EibPC shall write the title to the KNX display.
–
After playing 10 titles, the Enertex
®
EibPC shall send an e-mail containing the 10 played
titles (concatenated, separated by space characters) to
. Subject of the
mail: “A Hello from EIBPC“.
–
Then, it shall send the string “Stop Music“ via a UDP telegram to port 3807 of the music
player and switch off the power socket after five seconds again.
A first problem: The e-mail access needs to be established. For this task, the Enertex
®
EibPC
requires a DNS server, so that it handles the name resolution (see menu E
IB
PC → DNS S
ERVER
):
Figure 24: Setting up DNS Server
Second, the e-mail account has to be configured.
To do this, click O
PTIONS
→ E
S
ETTINGS
and insert your settings for the SMTP-server (see also the
dialog in Figure 26).
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]