Changes between Version 6 and Version 7 of Tutorial


Ignore:
Timestamp:
Aug 15, 2013, 12:09:14 PM (11 years ago)
Author:
Frédéric
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Tutorial

    v6 v7  
    6262    DP_03 = dict(name="delay", access="input", dptId="7.005", default=10)
    6363
     64    # Group Objects definition
    6465    GO_01 = dict(dp="cmd", flags="CWT", priority="low")
    6566    GO_02 = dict(dp="state", flags="CWUI", priority="low")
     
    220221The {{{Stack}}} object is used to communicate over the bus (real bus, of course, but also virtual bus). We can give it an Individual Address, to mimic real devices behaviour. This address will be used as Source Address when communicating over the bus. The address {{{0/0/0}}} is used by default.
    221222
    222 '''Important: to avoid internal loops, a device drops all telegrams sent by itself. So, if you want 2 virtal devices to communicate, you must ensure that they don't use the same source address, like in a real installation. Keep this in mind ; if you don't see telegrams you are expecting, the problem may be there.'''
     223'''Important: to avoid internal loops, a device drops all telegrams sent by itself. So, if you want 2 virtual devices to communicate, you must ensure that they don't use the same source address, like in a real installation. Keep this in mind ; if you don't see telegrams you are expecting, the problem may be there.'''
    223224
    224225The {{{ETS}}} object is a tool which works more or less like the real ETS application (see below). It needs one mandatory parameter: the {{{Stack}}} object. The {{{gadMap}}} param is optionnal, and is a simple dictionnary which maps group addresses to names/description. '''pKNyX''' does not need this to work, but it can be easier to debug things. Note that it is not really used now, but it will be in the future.
     
    240241    DP_03 = dict(name="delay", access="input", dptId="7.005", default=10)
    241242
     243    # Group Objects definition
    242244    GO_01 = dict(dp="cmd", flags="CWT", priority="low")
    243245    GO_02 = dict(dp="state", flags="CWUI", priority="low")