MASTER COMMUNICATION DEVICE FOR A TOKEN NETWORK
20180109398 ยท 2018-04-19
Inventors
- Teresa Zotti (Aachen, DE)
- JAN JOOST 'T HART (EINDHOVEN, NL)
- Theodorus Jacobus Johannes Denteneer (Eindhoven, NL)
- Gerhardus Engbertus MEKENKAMP (VALKENSWAARD, NL)
- Charles Leonardus Cornelius Maria Knibbeler (Eindhoven, NL)
- GERARDUS CAROLUS VAN LOO (GELDROP, NL)
Cpc classification
H04L12/413
ELECTRICITY
H04L67/12
ELECTRICITY
International classification
Abstract
Master communication device for a token network. The token network comprises a shared communication medium and at least one further master communication device coupled to the shared communication medium, the token network being arranged to pass frames and to execute a poll for master cycle. The master communication device is restricted in executing a poll for master cycle in specified cases especially if another device executed a poll for master for finding a new master communication device on the token network.
Claims
1. Master communication device for a token network, the token network comprising a shared communication medium and at least one further master communication device coupled to the shared communication medium, the token network having a master token chain providing a logic order of master communication devices in the token network, the token network being arranged to pass a master token along the master token chain and to pass frames and to execute a poll for master cycle, a next master communication device being downstream from the master communication device in the master token chain, a previous master communication device being upstream from the master communication device in the master token chain, the master communication device comprising: a pass unit arranged to pass the master token to the next master communication device and set the master communication device in a listening state when passing the master token; an accept unit arranged to accept the master token from the previous master communication device and set the master communication device in a transmission state when accepting the master token; and a poll for master unit arranged to execute the poll for master cycle if the master communication device is in the transmission state, the poll for master cycle comprising at least one transmission of a poll for master frame to the token network, the poll for master unit being arranged to restrict said execution of the poll for master cycle when at least one poll for master frame was present on the shared medium during that the master communication device was in the listening state preceding the transmission state.
2. Master communication device according to claim 1, comprising a master token counter to hold a master token counter value, the accept unit being arranged to increase the master token counter value when the accept unit accepts the master token; the poll for master unit being further arranged to restrict said execution of a poll for master when the master token counter value is lower than a master token count threshold; and the poll for master unit being arranged to reset the master token counter value after the poll for master cycle was executed.
3. Master communication device according to claim 1, comprising a detect unit arranged to detect a poll for master frame on the shared medium originating from a further master communication device if the master communication device is in the listening state.
4. Master communication device according to claim 3, the detect unit being arranged to decrease the master token counter value when the detect unit detects the poll for master frame.
5. Master communication device according to claim 3, comprising a poll for master skip flag; the pass unit being arranged to reset the poll for master skip flag when the pass unit passes the master token; the detect unit being arranged to set the poll for master skip flag when the detect unit detects the poll for master frame; and the poll for master unit being further arranged to restrict the poll for master cycle when the poll for master skip flag is set.
6. Master communication device according to claim 1, comprising a poll for master token flag; the accept unit being further arranged to set the poll for master token flag when the accept unit accepts a poll for master token from the shared medium; the poll for master unit being further arranged to restrict the poll for master cycle when the poll for master token flag is not set; and the pass unit being further arranged to reset the poll for master token flag when the pass unit passes the poll for master token to the shared medium destined for a further master communication device.
7. Master communication device according to claim 6; the pass unit being arranged to pass the poll for master token and the master token in a single frame; and the accept unit being arranged to accept the poll for master token and the master token in a single frame.
8. Master communication device according to claim 6; the pass unit being arranged to pass the poll for master token and the master token in separate frames; and the accept unit being arranged to accept the poll for master token and the master token in the separate frames.
9. Master communication device according to claim 1, the poll for master unit being arranged to split a poll for master cycle over a plurality of periods the master communication device is in the transmission state.
10. Master communication device according to claim 1, the master communication device being a BACnet MS/TP master network node.
11. Method for a poll for master cycle for a token network comprising a shared communication medium and at least one further master communication device coupled to the shared communication medium, the token network having a master token chain providing a logic order of master communication devices in the token network, the token network being arranged to pass a master token along the master token chain and to pass frames, a next master communication device being downstream from the master communication device in the master token chain, a previous master communication device being upstream from the master communication device in the master token chain, wherein the method comprises the steps of: passing a master token to the next master communication device on the token network by a master communication device on the token network and thereby setting the master communication device in a listening state; accepting the master token from the previous master communication device on the token network by the master communication device and thereby setting the master communication device in a transmission state; and executing the poll for master cycle if the master communication device is in the transmission state, the poll for master cycle comprising at least one transmission of a poll for master frame to the token network, the poll for master unit being arranged to restrict said execution of the poll for master cycle when at least one poll for master frame was present on the shared medium in the listening state preceding the transmission state.
12. Integrated circuit device comprising a master communication device according to claim 1.
13. Computer program product for a processor arranged to a master communication device according to claim 1 or arranged to an integrated circuit device, which program is operative to cause the processor to perform the functions of the mentioned claims, or a processor arranged for execution.
14. A non-transitory tangible computer readable storage medium comprising data loadable in a programmable apparatus arranged to a master communication device or an integrated circuit device, which data representing instructions executable by the programmable apparatus, the instructions comprising one or more and partly or whole the functions or a programmable apparatus arranged for execution of the method of claim 11, the data representing instructions executable by the programmable apparatus.
15. Token network having a shared medium and arranged to execute a poll for master cycle comprising a plurality of master communication devices according to claim 1; at least one master communication device operating and at least one further master communication device; or at least one integrated circuit device coupled to the token network and at least one further master communication device.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0063] These and other aspects of the invention will be apparent from and elucidated further with reference to the embodiments described by way of example in the following description and with reference to the accompanying drawings, in which
[0064]
[0065]
[0066]
[0067]
[0068]
[0069]
[0070]
[0071]
[0072]
[0073]
[0074]
[0075] The figures are purely diagrammatic and not drawn to scale. In the Figures, elements which correspond to elements already described may have the same reference numerals.
List of Abbreviations:
[0076] LSt Listening State
[0077] MAC Medium Access Control
[0078] MCD Master Communication Device
[0079] MT Master Token
[0080] MTC Master Token Counter
[0081] MTCV Master Token Counter Value
[0082] NS Next Station i.e. Next master communication device
[0083] PFM Poll For Master
[0084] PFMF Poll For Master Flag
[0085] PFMT Poll For Master Token
[0086] Rx Receive
[0087] SCD Slave Communication Device
[0088] PFM SF Poll For Master Skip Flag
[0089] TN Token Network
[0090] TS This Station i.e. Current master communication device
[0091] TSt Transmission State
[0092] Tx Transmit
List of Reference Numerals:
[0093] 1, 1 Token network
[0094] 2, 2 Shared medium
[0095] 3 Aggregating communication network
[0096] 4 Network node with luminaire
[0097] 5 Network node with sensor
[0098] 6 Network node with luminaire and sensor
[0099] 7 Network router node
[0100] 10 Trunk control network
[0101] 100 Master Communication Device
[0102] 101 Pass unit
[0103] 102 Detect unit
[0104] 103 Accept unit
[0105] 104 Poll for master unit
[0106] 105 Device State unit
[0107] 110 To Listening signal
[0108] 111 To Transmission signal
[0109] 112 PFM Prevent signal
[0110] 113 Current State signal
[0111] 120 Pass MT signal
[0112] 121 Rx Frame signal
[0113] 122 Accept MT signal
[0114] 123 PFM Action signal
[0115] 151 Shared medium
[0116] 152 Coupling between shared medium and master communication device
[0117] 200 Flowchart first embodiment
[0118] 201,301,401,501 Start
[0119] 402 Reset PFM SF
[0120] 203, 303, 403 Listen to the TN
[0121] 204, 304, 404 Increment MTCV
[0122] 205, 305, 405, 505 Transmission of data
[0123] 406 Check if PFM SF is set
[0124] 307 Check if PFMT was received
[0125] 208, 308, 408 Check if MTCVNpoll
[0126] 209, 309, 409 Check if NS-TS-1=0
[0127] 210, 310, 410 Perform PFM cycle
[0128] 211, 311, 411 Check if PFM cycle is completed
[0129] 212, 312, 412 Set MTCV to 0
[0130] 224, 324, 424 End
[0131] 313 Reset PFMF
[0132] 314 Check if PFMF is set
[0133] 316 Set PFMF
[0134] 220 Set MTCV to 0
[0135] 221, 321, 421 Pass MT to TN
[0136] 322 Pass MT and PFMT to TN
[0137] 300 Flowchart second embodiment
[0138] 400 Flowchart third embodiment
[0139] 420 Set PFM SF
[0140] 500 Flowchart fourth embodiment
[0141] 530 Pass MT
[0142] 531 Detect PFMF
[0143] 532 Accept MT
[0144] 533 Check PFM detected
[0145] 534 Possible PFM cycle
[0146] 600 Integrated Circuit Device
[0147] 610 Integrated Circuit Die
[0148] 620 Master Communication Device
[0149] 622, 624, 626 Further devices
[0150] 630 Coupling device
[0151] 700 Computer Program Product and/or Non-transitory Computer
[0152] Readable Storage Medium
[0153] 710 Writeable part
[0154] 720 Computer Program
[0155] 800 Token Network
[0156] 801, 801 Master Communication Device
[0157] 802 Master Communication Device/Slave Communication Device
[0158] combination
[0159] 803 Slave Communication Device
[0160] 810, 810, 810, 810 Communication coupling
[0161] 811 Shared Medium
[0162] 900 State diagram of a master communication device
[0163] 910, 910, 910 TSt, Transmission state
[0164] 911 Transmission state period
[0165] 920, 920, 920 LSt, Listening state
[0166] 930 Progress of time
DETAILED DESCRIPTION OF EMBODIMENTS
[0167] While this invention is susceptible of embodiment in many different forms, there are shown in the drawings and will herein be described in detail one or more specific embodiments, with the understanding that the present disclosure is to be considered as exemplary of the principles of the invention and not intended to limit the invention to the specific embodiments shown and described.
[0168] In the following, for the sake of understanding, elements of embodiments are described in operation. However, it will be apparent that the respective elements are arranged to perform the functions being described as performed by them.
[0169]
[0170] The aggregating network of
[0171] The token network comprises a master token, which is handed from master communication device to master communication device to allow masters on the token network to take the initiative to start a transmission and thereby the exchange of information.
[0172]
[0173] The master communication device comprises a pass unit 101, an accept unit 103, a poll for master unit 104 and a device state unit 105. The pass unit passes a master token 120 to the token network. The accept unit accepts master tokens 122 from the token network. The poll for master unit performs PFM actions 123 on the token network.
[0174] In the device state unit a current state is kept. The current state can be a listening state or a transmission state. The pass unit sets the device state unit in the listening state 110 when the master token is passed to the token network. The accept unit sets the device state unit in the transmission state 111 when the master token is accepted from the token network. The poll for master unit is provided with the current state. The poll for master unit is restricted from executing a PFM action or limited in the amount of PFM actions during the time the current state is the transmission state and at least one PFM action was present in the listening state preceding the current transmission state.
[0175]
[0176] The poll for master unit is provided with the current state and the PFM prevent signal. The poll for master unit 104 is allowed to start a poll for master during the time the current state is the transmission state and the PFM prevent signal is absent.
[0177]
[0178] In the event that a PFM frame was present on the shared medium the response time may be increased. To reduce any further increase of a response time or even exceeding a maximum response time a MTCV of a master communication device is set to zero by the master communication device executing the flowchart of
[0179]
[0180] If the PFMT was received then a check is performed if the MTCV is equal or higher than the Npoll value 308. If no then the master token and the PFMT are passed 322 to the token network. If yes then a following check is performed if a network address range is assigned to the master communication device 309 by checking the network address of the master communication device and the network address of the next master communication on the token network. If no network address range was assigned (indicated as Y) then the master token and the PFMT are passed 322 to the token network. If a network address range was assigned (indicated as N) the PFM action 310 is performed. After the PFM action a check is performed if a PFM cycle is completed 311. If the PFM cycle is not completed then the PFMF is set where after the master token is passed 321 to the token network. If the PFM cycle is completed then the MTCV is set to zero 312 and the PFMF is reset 313 where after the master token is passed 321 to the token network. If the master token is passed or the master token and poll for master token are passed to the shared medium destined to a next master communication device, the end 324 state is reached.
[0181] To reduce any further increase of a response time or even exceeding a maximum response time a PFMT is passed between master communication devices. The PFMT may prevent multiple masters to execute a PFM action in the same time frame as seen for a response time of a master communication device.
[0182]
[0183] After data transmission a check is performed if the PFM SF is set. If the PFM set is set then the master token is passed 421 to the token network. If the PFM SF is not set then a check is performed if the MTCV is equal or higher than the Npoll value 408. If no then the master token is passed 421 to the token network. If yes then a following check is performed if a network address range is assigned to the master communication device 409 by checking the network address of the master communication device and the network address of the next master communication on the token network. If no network address range was assigned (indicated as Y) then the master token is passed 421 to the token network. If a network address range was assigned (indicated as N) a PFM cycle 410 is performed. After the PFM cycle a check is performed if a PFM cycle is completed 411. If the PFM cycle was not completed then the master token is passed 421 to the token network. If the PFM cycle was completed then the MTCV is set to zero 412 where after the master token is passed 421 to the token network. If the master token is passed to the shared medium destined to a next master communication device, the end 424 state is reached.
[0184] In the event that a PFM frame was present on the shared medium the response time may be increased. To reduce any further increase of a response time or even exceeding a maximum response time a PFM SF of a master communication device is set by the master communication device executing the flowchart of
[0185]
[0186] In the event that a PFM frame was present on the shared medium the response time may be increased. To reduce any further increase of a response time or even exceeding a maximum response time a master communication device restricted in executing a PFM action as shown in
[0187]
[0188]
[0189]
[0190] Many different ways of executing the method are possible, as will be apparent to a person skilled in the art. For example, the order of the steps can be varied or some steps may be executed in parallel. Moreover, in between steps other method steps may be inserted. The inserted steps may represent refinements of the method such as described herein, or may be unrelated to the method. For example, a given step may not have finished completely before a next step is started.
[0191]
[0192] Master communication device for a token network. The token network comprises a shared communication medium and at least one further master communication device coupled to the shared communication medium, the token network being arranged to pass frames and to execute a poll for master cycle. The master communication device is restricted in executing a poll for master cycle in specified cases especially if another device executed a poll for master for finding a new master communication device on the token network.
[0193] It will be appreciated that the above description for clarity has described embodiments of the invention with reference to different functional units and processors. However, it will be apparent that any suitable distribution of functionality between different functional units or processors may be used without deviating from the invention. For example, functionality illustrated to be performed by separate units, processors or controllers may be performed by the same processor or controllers. Hence, references to specific functional units are only to be seen as references to suitable means for providing the described functionality rather than indicative of a strict logical or physical structure or organization. The invention can be implemented in any suitable form including hardware, software, firmware or any combination of these.
[0194] It is noted, that in this document the word comprising does not exclude the presence of other elements or steps than those listed and the word a or an preceding an element does not exclude the presence of a plurality of such elements, that any reference signs do not limit the scope of the claims, that the invention may be implemented by means of both hardware and software, and that several means or units may be represented by the same item of hardware or software, and a processor may fulfill the function of one or more units, possibly in cooperation with hardware elements. Further, the invention is not limited to the embodiments, and the invention lies in each and every novel feature or combination of features described above or recited in mutually different dependent claims.