Willkommen auf unserer neuen Forenplattform für das Bus-Profi Forum

Neue Felder für die persönlichen Daten
Man kann jetzt seine öffentlich einsehbare Daten genau bestimmen. Details findet ihr in in diesem Beitrag.

Durch die neue Forensoftware und die Portierung der Daten konnten die Passwörter aus dem alten Forum nicht übernommen werden, bitte lassen Sie sich ein neues Passwort über die Passwort vergessen Funktion zusenden. Sollte es zu Problemen kommen kontaktieren Sie das Bus-Profi Team per E-Mail.

DOMIQ RS-232 integration with D-S2G-1 module

Hard- und Softwarefragen rund Domiq-Module fürs LCN-System

Themenersteller
lcn_iberica
Neues Mitglied
Neues Mitglied
Beiträge: 5
Registriert: Di 10. Mai 2011, 13:15
Kontaktdaten:

#1 DOMIQ RS-232 integration with D-S2G-1 module

Beitragvon lcn_iberica » Mo 3. Okt 2011, 09:54

Hi everybody,

Is there any manual/tutorial of how to integrate LCN with other subsystems via RS-232 using DOMIQ's D-S2G-1 module? Which tab in admin/config tool shall be used? Does it have to be done via LUA scripting? :confused:

Danke schön. :)


DOMIQ
Fleißiges Mitglied
Fleißiges Mitglied
Beiträge: 252
Registriert: Sa 25. Apr 2009, 11:16
Kontaktdaten:

#2 RE: DOMIQ RS-232 integration with D-S2G-1 module

Beitragvon DOMIQ » Mo 3. Okt 2011, 20:24

Hello! In a week or two we will publish detailed tutorial about using SG modules to integrate with Nuvo Multiroom system.
As a quick start, you can also use it directly through Events.

All received lines appear as LE.SER.line.1
If you want to send something, send it to channel LC.SER.line.1

We introduced LE and LC prefixes in order to filter all traffic from reaching all Remotes. More advanced use is done with Logic:

Code: Alles auswählen

ser = use 'SER.line.1'

function ser:onchange(data)
  print("Received: "..data)
  ser:send("Pong")
end

ser:send("Ping")

Tutorial will also include use of parser.lua, which makes it very easy to create protocol handlers based on regular expressions:

Code: Alles auswählen

pamp = parser()
pamp:add([[#Z(%d),ON,SRC(%d),VOL(%d+),DND(%d),LOCK(%d)]],function(z,src,vol,dnd,lock)
    local prefix="NUVO."..z.."."
    set(prefix.."vol",vol)
    set(prefix.."src",src)
    set(prefix.."act",1)
    zones[tonumber(z)] = tonumber(src)
end)

We also added functions get and set - they allow direct manipulation of state and let you implement "virtual" devices like NUVO above.


Themenersteller
lcn_iberica
Neues Mitglied
Neues Mitglied
Beiträge: 5
Registriert: Di 10. Mai 2011, 13:15
Kontaktdaten:

#3 RE: DOMIQ RS-232 integration with D-S2G-1 module

Beitragvon lcn_iberica » Di 4. Okt 2011, 09:42

So then, integration is done via the "LOGIC" tab and LUA scripting, isn't it?

Can you tell us about some small guide/tutorial of LUA? Or will there be a small tutorial on DOMIQ website with the main concepts to do scripts for DOMIQ with LUA? That would be great. :thumbup:

Thanks. :rolleyes:


DOMIQ
Fleißiges Mitglied
Fleißiges Mitglied
Beiträge: 252
Registriert: Sa 25. Apr 2009, 11:16
Kontaktdaten:

#4 RE: DOMIQ RS-232 integration with D-S2G-1 module

Beitragvon DOMIQ » Di 4. Okt 2011, 18:44

Polish version of the tutorial is now online, it will take few days to finish translation...


Zurück zu „Domiq-Module - DOMIQ Sp. z o.o.“

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 49 Gäste