Changes between Version 6 and Version 7 of Tutorial
- Timestamp:
- Aug 15, 2013, 12:09:14 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Tutorial
v6 v7 62 62 DP_03 = dict(name="delay", access="input", dptId="7.005", default=10) 63 63 64 # Group Objects definition 64 65 GO_01 = dict(dp="cmd", flags="CWT", priority="low") 65 66 GO_02 = dict(dp="state", flags="CWUI", priority="low") … … 220 221 The {{{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. 221 222 222 '''Important: to avoid internal loops, a device drops all telegrams sent by itself. So, if you want 2 virt al 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.''' 223 224 224 225 The {{{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. … … 240 241 DP_03 = dict(name="delay", access="input", dptId="7.005", default=10) 241 242 243 # Group Objects definition 242 244 GO_01 = dict(dp="cmd", flags="CWT", priority="low") 243 245 GO_02 = dict(dp="state", flags="CWUI", priority="low")