Techniques for correcting time parameters

By using a clock pulse generator and a correction unit to measure and correct the number of clock pulses in asynchronous data transmission, the problem of difficulty in maintaining node clock consistency in asynchronous data transmission is solved, efficient asynchronous transmission data node synchronization and decoding is achieved, and the cost is reduced Cost and complexity.

CN113826087BActive Publication Date: 2024-09-20PHOENIX CONTACT GMBH & CO KG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202080035936.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-05-15
Filing Date
2020-05-13
Publication Date
2024-09-20
Estimated Expiration
2040-05-13

AI Technical Summary

Technical Problem

In asynchronous data transmission, the clock pulse generator between nodes leads to an increase in manufacturing costs and power consumption, and during the clock synchronization process in a low-power oscillation loop, the protocol efficiency is reduced and the signal processing complexity is increased, making it difficult to maintain the node's consistency.

Method used

Provide a device and method that provide periodic clock pulses through a clock pulse generator unit, and measure the number of clock pulses during the asynchronous transmission of message symbol sequences at the second node, and the correction unit is based on the ratio of the measured number of clock pulses to the symbol sequence Correct timing parameters to ensure clock or symbol rate deviations are compensated, enabling node clock synchronization and decoding.

Benefits of technology

It improves the consistency of asynchronous transmission data nodes, reduces manufacturing costs and power consumption, improves protocol efficiency, avoids decoding errors and termination, and implicitly corrects time parameters without control lines.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113826087B_ABST
    Figure CN113826087B_ABST
Patent Text Reader

Abstract

The present invention describes a technique for correcting a time parameter (115; 125) in a first node according to a second node. An apparatus aspect of the technique includes a clock pulse generator unit (110) that provides periodic clock pulses in the first node. A peripheral unit (120) decodes symbols of a message asynchronously transmitted from the second node and measures the number of clock pulses (124) during the transmission of a symbol sequence of consecutive symbols of the message. A correction unit (130) corrects the time parameter (115; 125) according to a ratio of the measured number of clock pulses (124) to the number of consecutive symbols in the symbol sequence.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the correction of time parameters in connected nodes. In particular, the present invention relates to an apparatus and a method for correcting time parameters in a first node based on a second node. Background Art

[0002] In many fields, the number of connected devices is increasing dramatically. For example, more and more devices are connected that do not have their own user interface. Connected devices that communicate at a higher level using the Internet Protocol (IP) are also called the Internet of Things (IoT). Regardless of the presence or absence of applications, user interfaces, or connections to cloud services, connected devices are referred to as nodes.

[0003] The physical layer of the communication between the nodes can include asynchronous data transmission without a clock line, for example to facilitate installation or to use existing 2-wire lines. Asynchronous data transmission implements fieldbuses. This makes it possible to interconnect sensors and actuators in switch boxes, production equipment and vehicles. Fieldbuses used for this purpose are Interbus and the bus of the so-called "Controller Area Network" (CAN-Bus). Application examples are industrial production or autonomous driving under the name "Industry 4.0". Asynchronous data transmission also implements fieldbuses for interconnecting meters or heating devices in homes, for example for remote reading and home automation. For the latter, the measurement bus (also: "metering bus" or M-Bus) of the EN 13757 series of standards has been established.

[0004] The term "asynchronous" here refers to the data transmission format implemented, for example, with the help of the start bit. With respect to the externally uniform system symbol rate, directly connected nodes need to be "synchronized" with each other. The latter is referred to here as consistency (Gleichgang) to avoid confusion with asynchronous data transmission.

[0005] In order to maintain consistency during the transmission of at least one character from the start bit in asynchronous data transmission, according to the traditional solution, each node needs to have a sufficiently accurate and stable clock pulse generator. Document US 3452330A, for example, describes this. However, such a clock pulse generator, such as a quartz crystal oscillator, increases the manufacturing cost and the power consumption of each node.

[0006] In order to maintain the consistency of the nodes during clock synchronization using a low-power oscillating loop, stop bits are sent in the CAN bus. However, this reduces the efficiency of the protocol and increases the complexity of signal processing in each node. Summary of the invention

[0007] Therefore, an object of the present invention is to provide a more efficient technology for achieving consistency of nodes transmitting data asynchronously.

[0008] The solution of the invention for achieving the above-mentioned object is a device and a method having the features of the independent claims. Advantageous embodiments and applications of the invention are the subject of the dependent claims and will be described in detail below with reference to the accompanying drawings.

[0009] According to one aspect of the invention, there is provided an apparatus for correcting a time parameter in a first node according to a second node. The apparatus comprises a clock pulse generator unit adapted to provide periodic clock pulses in the first node. The apparatus further comprises a peripheral unit adapted to decode symbols of a message transmitted asynchronously from the second node and to measure the number of clock pulses during the transmission of a symbol sequence of consecutive symbols of the message. The apparatus further comprises a correction unit adapted to correct the time parameter according to a ratio of the measured number of clock pulses to the number of consecutive symbols in the symbol sequence.

[0010] The time parameter may be a clock rate of a clock pulse generator, a decoded symbol rate, a control parameter for controlling the clock rate and / or a control parameter for controlling the symbol rate.

[0011] Embodiments of the device can prevent decoding errors and / or terminations in the event of a drift of the clock pulses of the clock pulse generator unit (e.g. due to temperature). For example, by measuring the ratio, a first deviation of the clock rate of the clock pulse generator unit and / or the decoded symbol rate that does not yet hinder decoding can be determined and a correction or compensation can be performed by the correction unit based on the measured ratio. The correction of the time parameter can in particular directly correct or (e.g. completely or at least partially) compensate for the deviation of the clock rate and / or the symbol rate.

[0012] In the presence of a second deviation that is larger than the first deviation, the same or further embodiments of the device can enable further decoding and / or further correction according to the invention based on the time parameter modified in response to the first deviation. Errors or terminations in decoding can be prevented. For example, the second deviation can be so large that decoding would fail due to the second deviation without the correction of the time parameter in response to the first deviation, while decoding can be achieved according to the invention, for example because the deviation that interferes with the decoding is limited to the difference between the second deviation and the first deviation.

[0013] The detection (e.g. sampling) of the message transmitted from the second node and / or the decoding of the symbols of the message (e.g. based on the sampled values ​​of the sampling) can be clock-synchronized by the clock pulse generator unit and / or configured by the time parameter. Once the time parameter has been corrected by the correction unit, the detection and / or decoding can be performed immediately according to the corrected time parameter. For example, the first message or the first character in this message can be the basis for correcting the time parameter by the correction unit. That is, the consecutive symbols in the symbol sequence can be the symbols of the first message or the symbols of the first character. The corrected time parameter can be applied to the detection and / or decoding of the second message (which is transmitted by the second node immediately after the first message) or the second character of the first message.

[0014] The same or further embodiments of the apparatus are capable of modifying the time parameter implicitly based solely on asynchronous transmissions from the second node to the first node and / or in the absence of a control line between the first node and the second node.

[0015] The time parameter can (eg directly or indirectly) control or influence the decoding.The time parameter may be a time parameter of the decoding (decoding parameter).

[0016] The time parameter may comprise a clock rate of the first node, a symbol rate of the first node, and / or a ratio (also: divisor) of the clock rate of the first node to the symbol rate. The time parameter may comprise a (e.g. integer) divisor. The symbol rate may be determined according to the divisor based on the clock rate (i.e. based on the clock pulses of the clock pulse generator unit). For example, there is only one clock pulse generator unit in the first node, which is used both for measuring the number of clock pulses and for decoding. According to the divisor, the symbol rate may be a fraction of the clock rate in integer form. The device may, for example, comprise a frequency divider, which generates the symbol rate from the clock rate according to the divisor.

[0017] For example, the message signal received from the second node may be sampled or undersampled by the first node according to the clock pulse of the clock pulse generator unit. As an alternative or supplementary solution, the received signal may be divided into symbols of the message according to the symbol rate. As an alternative or supplementary solution, the sampled values ​​of the received signal may be divided into symbols of the message according to the divisor.

[0018] The symbol sequence can be shorter than a character in the message. This eliminates the need to use stop bits during character transmission to maintain consistency, as is conventionally done. In particular, the efficiency of the protocol can be improved, since stop bits are not equivalent to symbols for transmitting data (control data or useful data).

[0019] The sampling of the message transmitted from the second node, or the decoding of the symbols of the message, is clock-synchronized by the clock pulse generator unit and / or controlled by a time parameter.

[0020] The first node may be a node (particularly a slave node) in a communication chain. The first node may be arranged in the communication chain or at the end of the communication chain. The communication chain may include several nodes, which are connected in series for asynchronous data transmission. The communication chain may be a so-called daisy chain. The second node may be a master node and / or a node located upstream of the first node in the communication chain. The third node may be another node (particularly another slave node) and / or a node located downstream of the first node in the communication chain.

[0021] The peripheral unit may comprise a first interface (e.g. serial) for asynchronously transmitting messages from a second node and / or a second interface (e.g. serial) for asynchronously transmitting messages to a third node. Both the first interface and the second interface may be clock-synchronized by a clock generator unit and / or controlled by modified time parameters.

[0022] The peripheral unit may comprise a respective encoder and / or decoder for each interface. The respective encoder and / or decoder may be adapted to encode or decode symbols of characters of a message to be sent or received according to a time parameter.

[0023] The time parameter may comprise a clock rate of the clock generator unit. The correction unit may be adapted to correct the clock rate of the clock generator unit according to a measured ratio of the number of clock pulses to the number of consecutive symbols in the symbol sequence. The correction made to the corrected clock rate may be a quotient of a predetermined number of clock pulses per symbol and the measured ratio compared to an actual clock rate of the clock generator unit. The predetermined number of clock pulses per symbol may correspond to a quotient of a corrected clock rate (or a nominal clock rate) of the clock generator unit and a system symbol rate.

[0024] Alternatively or additionally, the time parameter may comprise a symbol rate (also: baud rate) of the peripheral unit. The correction unit may be adapted to correct the symbol rate of the peripheral unit based on a measured ratio of the number of clock pulses to the number of consecutive symbols in the symbol sequence. The correction made to the corrected symbol rate compared to a predetermined system symbol rate may be a quotient of the measured ratio and a predetermined number of clock pulses per symbol.

[0025] The signal of the character of the message from the second node can be divided into the symbols of the message according to the symbol rate. Small errors in the symbol rate, such as symbol rate deviations smaller than half a symbol per character, can be corrected based on a start symbol and a stop symbol (or several stop symbols) of the character. For example, the signal between the start symbol and the stop symbol of the corresponding character can be divided into symbols of equal length.

[0026] Alternatively or additionally, the time parameter may comprise a divisor of the symbol rate of the peripheral unit relative to the clock rate of the clock pulse generator unit. The correction unit may be adapted to correct the divisor according to a measured ratio of the number of clock pulses to the number of consecutive symbols in the symbol sequence. The corrected divisor may be equal to the measured ratio or be proportional to the measured ratio.

[0027] The symbol sequence of consecutive symbols of a message may extend from a first falling (or first rising) pulse edge of a message transmission to a later first rising (or first falling) pulse edge.

[0028] The device can be implemented by means of a microcontroller. For example, a processor unit of a microcontroller can implement the correction unit.

[0029] The microcontroller may include the clock pulse generator unit, the peripheral unit and / or the correction unit. The microcontroller may also include a capture-compare unit (CC unit) to which a signal of a message received from the second node is applied. The CC unit may be adapted to measure the number of clock pulses during the transmission of the symbol sequence.

[0030] The symbol sequence of the message may, for example, only include symbols for transmitting useful data. The symbol sequence of the message as the basis for measuring the number of clock pulses may be followed by a start bit and only include symbols for useful data.

[0031] The symbol sequence of the message may be shorter than one character of the message. As an alternative or supplementary solution, the symbol sequence of the message may be a part of the first character of the message.

[0032] The peripheral unit may be further adapted to measure the number of clock pulses during transmission of a predetermined synchronization character of the message. The correction unit may be further adapted to correct the time parameter according to a ratio of the measured number of clock pulses to a predetermined number of symbols in the synchronization character and / or according to a quotient of the number of clock pulses measured during transmission of the synchronization character and a predetermined nominal value of the number of clock pulses. The synchronization character may be transmitted at the beginning of the message.

[0033] At the beginning of a message transmission and / or in the event that a symbol in a message cannot be decoded due to an error or deviation in the time parameter, a correction can always be made based on the synchronization character. For example, the time parameter can be corrected at the beginning of a message transmission with the aid of a synchronization character. During the message transmission, the time parameter can be corrected based on the ratio of the number of clock pulses measured to the number of consecutive decoded symbols in the symbol sequence.

[0034] According to another aspect, a layout of nodes connected in series (e.g., in a linear topology) for asynchronous data transmission is provided. The layout includes a first node, which is connected to a second node for asynchronous data transmission, and the first node includes an embodiment of a device for correcting a time parameter in the first node according to the second node according to the device aspect. Optionally, the layout includes a second node that serves as a master node of the layout. The layout also includes a third node, which is connected to the first node for asynchronous data transmission, and the third node includes another embodiment of a device for correcting a time parameter in the third node according to the first node according to the device aspect.

[0035] According to another aspect of the present invention, there is provided a method for correcting a time parameter in a first node based on a second node. The method comprises or causes the step of providing a periodic clock pulse in the first node (e.g., a clock synchronization step). The method also comprises or causes the step of decoding symbols of a message transmitted asynchronously from the second node, and the step of measuring the number of clock pulses during the transmission of a symbol sequence of consecutive symbols of the message. The method also comprises or causes the step of correcting the time parameter based on the ratio of the measured number of clock pulses to the number of consecutive symbols in the symbol sequence.

[0036] The method may also include any steps and any features disclosed in the context of the apparatus aspects, and vice versa. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The above preferred embodiments, features and method steps of the present invention can be combined with each other in any way. More details and advantages of the present invention are described below with reference to the accompanying drawings. Among them:

[0038] Figure 1 A schematic diagram of an embodiment of an apparatus for modifying a time parameter in a first node according to a second node;

[0039] Figure 2 A flowchart of an embodiment of a method for modifying a time parameter in a first node according to a second node, wherein the method can be performed by Figure 1 The device shown is implemented;

[0040] Figure 3is a schematic diagram of an exemplary layout of several nodes connected in series, which nodes can at least partially embody the following Figure 1 The device shown; and

[0041] Figure 4 is a schematic diagram of an exemplary message that may be transmitted from or to one of the nodes. DETAILED DESCRIPTION

[0042] Figure 1 1 is a schematic block diagram of one embodiment of an apparatus for modifying a time parameter in a first node according to a second node, generally indicated by reference numeral 100 .

[0043] The device 100 comprises a clock pulse generator unit 110, which provides periodic clock pulses in the first node. The device 100 also comprises a peripheral unit 120, which decodes the symbols of the message transmitted asynchronously from the second node and measures the number of clock pulses during the transmission of the symbol sequence of consecutive symbols of the message by means of a counter 124. The device 100 also comprises a correction unit 130, which corrects the time parameter according to the ratio of the number of measured clock pulses to the number of consecutive symbols in the symbol sequence 406.

[0044] The time parameter may comprise a clock rate 115 of the provided clock pulses, or a control parameter of the clock pulse generator unit for controlling the clock rate. As an alternative or in addition, the time parameter may comprise a symbol rate 125 of the peripheral unit 120, or a control parameter of the peripheral unit for controlling the symbol rate 125. At least the latter example of the time parameter may be as follows: Figure 1 The registers of the peripheral unit 120 are written as shown.

[0045] The control parameter for controlling the symbol rate may be a divisor of the clock rate. For example, the symbol rate may be the clock rate 115 divided by the divisor.

[0046] The symbol rate 125 may be a function of a time parameter. The symbol rate may be, for example, a quotient of the clock rate 115 and the divisor, where the clock rate 115 and the divisor are both examples of a time parameter.

[0047] The symbol sequence may be determined by successive symbols. For example, the symbol sequence may extend from a first falling (or rising) pulse edge to a first rising (or falling) pulse edge in the message signal received via the peripheral unit 120 .

[0048] The number of clock pulses during the symbol sequence can be written to the counter 124. For example, the counter 124 can be reset to zero at the beginning of a message and / or at the beginning of a symbol sequence. Each clock pulse of the clock pulse generator 110 increases the counter 124 by one. The correction unit 130 can read the number of clock pulses measured at the end of the symbol sequence from the counter 124, for example as the denominator of the ratio of the number of clock pulses to the number of symbols in the symbol sequence.

[0049] The peripheral unit 120 further comprises a decoder 122 which implements decoding of the message received from the second node. The decoder 122 is capable of outputting the number of consecutive symbols belonging to the symbol sequence to the correction unit 130. As an alternative or in addition, the correction unit is capable of determining the beginning and / or end of the symbol sequence and / or the number of symbols in the symbol sequence based on the symbols output by the decoder 122.

[0050] Optionally, the device 100 or the first node is adapted to bidirectionally communicate with the second node. To this end, the device 100 or the first node comprises a first interface 121, the first interface comprising a decoder 122, and further comprising an encoder 123. The encoder 123 is adapted to generate symbols for a message sent to the second node via the first interface 121.

[0051] In addition, the device 100 or the first node may also perform asynchronous data exchange with the third node through the second interface 126. To this end, the device 100 or the first node may include the second interface 126. The second interface 126 may include a decoder 127 and an encoder 128, which are used to receive a message from the third node or send a message to the third node.

[0052] The second node may be a master node or a slave node (e.g., of a higher rank than the first node) that gives the first node a system symbol rate based solely on asynchronous data transmission. The first node may be a slave node relative to the second node. The third node may be a slave node (e.g., of a lower rank than the first node).

[0053] The same symbol rate 125 can be applied to both interfaces 121 and 126. For example, the correction unit 130 can correct the time parameter according to the ratio measured at the first interface 121. In this way, for example, the symbol rate 125 can also be maintained at the second interface 126. The symbol rate specified at the first interface (for example on the input side, i.e. in the receiving path of asynchronously transmitted messages) can in particular be forwarded on the second interface (for example on the output side, i.e. in the sending path of asynchronously transmitted messages). In this way, the master node can specify a uniform system symbol rate within the scope of several slave nodes connected in series for asynchronous data transmission.

[0054] Each of the two interfaces 121 and 126 of the first node may be a so-called “Universal Asynchronous Receiver Transmitter” interface (UART interface).

[0055] Figure 2 2 is a flow chart of one embodiment of a method of modifying a time parameter in a first node based on a second node, generally indicated by the reference numeral 200 .

[0056] In step 210, periodic clock pulses are provided in the first node. In step 220, symbols of a message transmitted asynchronously from a second node are decoded. In addition, the number of clock pulses during the transmission of a symbol sequence of consecutive symbols of the message is measured in step 220. In step 230, the time parameter is corrected according to the ratio of the measured number of clock pulses to the number of consecutive symbols in the symbol sequence (in short: measured ratio).

[0057] In each aspect of the present invention, the number of consecutive symbols in a symbol sequence may be determined based on decoding. For example, the number of consecutive symbols in a symbol sequence may be determined as the number of decoded symbols corresponding to the symbol sequence in time.

[0058] The message may include a large number of characters. These characters may also be referred to as bytes. The symbol rate may also be referred to as a baud rate. The data to be transmitted may correspond to a character sequence of successive characters. The data to be transmitted may include valid data and / or control data. Each character may include a specific number of bits, such as 4, 7, 8, 10 or 12 bits. Each character may be encoded (i.e., output as a transmitted signal on a transmitting line) or decoded (i.e., detected from a received signal on a receiving line) according to a coding method. Each symbol may correspond to one or more bits, for example, depending on the coding method.

[0059] For simplicity and without loss of generality, it is assumed in the following that each bit corresponds to one symbol.

[0060] In conventional asynchronous data transmission, a baud rate error may occur due to temperature drift of the clock pulse generator unit 110, i.e., the component generating the clock pulse, which causes communication termination from a certain degree of deviation. To prevent this, the conventional solution is to use expensive quartz to generate the clock pulse. Based on the embodiments of the present invention, quartz does not need to be used in the lower-level node (i.e., the slave node).

[0061] The apparatus 100 may be used to measure 220 the ratio of clock pulses to each decoded symbol for all X received messages in a first node (eg, in one of the slave nodes), and / or perform a correction 230 based on the measured ratio, where X is a predetermined integer.

[0062] The correction unit can measure the symbol sequence as part of the first byte of the received message. Based on the number of bits and the number of measured clock pulses, the measured ratio, i.e. the number of clock pulses per bit (in short: clock pulses / bit), can be determined. The measured ratio can also be referred to as the actual clock pulses per bit (in short: actual clock pulses / bit).

[0063] In one embodiment, the number of nominal clock pulses per bit (in short: nominal clock pulses / bit) is predetermined. The correction unit 130 calculates the difference between the nominal clock pulses per bit and the actual clock pulses, i.e.

[0064] Deviation = nominal clock pulses / bit - actual clock pulses / bit.

[0065] This is the deviation expressed in clock pulses per bit.

[0066] In order to correct the baud rate 125 in the first node (i.e. in the slave node), the correction unit 130 takes the current baud rate as a starting point. The value of these baud rates may be equal to the system baud rate, but due to deviations in the clock rate 115, they may also be correspondingly different from the system baud rate. Therefore, before the correction, the value in the register "Slave Baudrate" is the value of the system baud rate. After the correction of this register value as an example of a time parameter, the value in the register "Slave Baudrate" is equal to the system baud rate.

[0067] Corrected baud rate = system baud rate [1 ± correction factor (deviation)] = system baud rate ± correction rate (deviation)

[0068] The correction factor or correction rate is a function of the deviation. For example,

[0069] Correction factor (deviation) = Deviation / [Nominal clock pulses / bit],

[0070] By correcting the baud rates of the two interfaces 121 and 126 of the slave node (taking the first node as an example), in a linear topology, the next slave node (for example, the first node, which is the node of the next level after the second node) can adjust its baud rate according to the baud rate of the previous master node or slave node (for example, the second node).

[0071] By correcting the baud rate 125 as an example of a time parameter, an internal adjustment can be achieved, whereby the baud rate of the corresponding node that can be observed from the outside (for example at the second interface 126) remains at a defined system baud rate (preferably given only by asynchronous data transmission from the master node) as the temperature of the node increases.

[0072] Figure 3 A schematic diagram of a layout 300 (also: system) of several nodes, which are connected in series (i.e., in a linear topology) for asynchronous data transmission. The first node of the layout can serve as a master node 310 to set the system baud rate for the entire layout 300, specifically, each slave node 320 arranged downstream of the master node 310 has an embodiment of the device 100.

[0073] The master node 310 (preferably the only node of the arrangement 300) comprises, for example, a quartz crystal 312. With the aid of the quartz crystal 312, the master node generates a symbol sequence during the transmission of a message, the symbol rate of which defines the system symbol rate.

[0074] Specifically, the first interface 121 is connected to an adjacent node (the so-called second node) that is topologically closer to the master node 310 than to the corresponding node (the so-called first node). The first interface 126 is connected to an adjacent node (the so-called third node) that is topologically farther from the master node 310 than to the corresponding node (the so-called first node).

[0075] Such a configuration 300 may also be referred to as a daisy chain. Messages that pass through the configuration 300 (eg, starting from a master node 310) in a manner from a slave node 320 to a slave node 320 may also be referred to as daisy chain messages.

[0076] While lower cost internal oscillators have a high temperature dependency, embodiments of the device prevent baud rate drift as the temperature in the slave node 320 increases, thereby eliminating the need for a more expensive oscillator crystal in the slave node.

[0077] The device 100 is operated by means of a microcontroller (in Figure 3 A preferred embodiment is implemented in a microcontroller (hereinafter referred to as "μC"). The so-called "capture-compare unit" (CC unit) in the microcontroller can implement a counter 124 for measuring the ratio of clock pulses / bit, determining the nominal baud rate of the system based on the daisy-chain message, and thus balancing the temperature drift of the internal oscillator. To this end, the signal input 322 of the CC unit is applied with the signal of the message from the second node, for example, in that the receiving line of the first interface 121 (at Figure 3 ” represented by “Rx” in the figure) is connected to the signal input 322.

[0078] Figure 4400 is a schematic diagram of the beginning of the signal of the message 400. Figure 4 In the schematic diagram of FIG. 1 , time increases from left to right. The voltage level of the signal is schematically shown vertically.

[0079] This message includes several characters (ie bytes) 402 and 404. The symbol sequence 406 measured by the peripheral unit 120 (eg CC unit) is part of the first character 402. That is, the measured symbol sequence 406 ends with or before the last symbol (preferably the last data symbol) of the first character 402.

[0080] For example, the beginning of the measured symbol sequence 406 is defined by the first falling edge 408 in the first character 402 of the message 400, and the end of the measured symbol sequence 406 is defined by the first rising edge 410 after the first falling edge 408. The first falling edge 408 may correspond to a start bit. Alternatively or additionally, the first rising edge 410 after the falling edge 408 may be before a stop bit 412 (or before several stop bits) of the first character 402. Each character 402 and 404 may be surrounded by a start bit and a stop bit.

[0081] According to one embodiment of the method 200, the number of clock pulses in the symbol sequence 406 may be measured according to step 220 for all X messages 400 received (i.e., according to the X messages 400 received), for example, by activating the CC unit in the slave node 320. The CC unit in the slave node 320 measures the clock pulses from the falling edge 408 to the rising edge 410 of the first byte 402 received.

[0082] The peripheral unit 120 of the slave node 320 decodes the symbols (i.e., bits) of the first byte 402 according to step 220. In other words, the slave node 320 evaluates the first byte 402 arriving at its receiving line and determines the number of symbols (i.e., bits) included in the symbol sequence 406 (i.e., CC measurement in step 220). From the number of bits and the number of measured clock pulses (also: CC clock pulses), the CC clock pulse ratio per bit (also: CC clock pulses / bit) can be calculated. This ratio is the measured ratio or the actual ratio (in short: actual clock pulses / bit).

[0083] In a first variant of the embodiment, the symbol rate 125 of the slave node 320 is controlled by the divisor relative to the clock rate 115. The divisor is an example of a time parameter. In a first variant, the measured ratio can be set as a modified divisor, for example, by writing the measured ratio to a corresponding register for controlling the symbol rate 125.

[0084] In a second variant of the embodiment, the nominal clock pulse per bit (in short: nominal clock pulse / bit), i.e. the nominal value of the ratio, is given as a constant in the correction unit 130 of the slave node 320. The nominal value of the ratio can be calculated from the quotient of the nominal clock rate (e.g. CC_Clock) and the system baud rate. A numerical example is, for example:

[0085] CC_Clock / baud rate = 48000000 clock pulses / 312.5kBd = 153.6 clock pulses / bit.

[0086] The deviation of the ratio measured in step 220 from the given nominal value of the ratio is called Takt_pro_Bit_Differenz (difference in clock pulses per bit):

[0087] Takt_pro_Bit_Differenz = nominal clock pulse / bit - actual clock pulse / bit,

[0088] That is, the deviation is expressed in terms of clock pulses per bit.

[0089] The correction unit 130 corrects the digital baud rate 125 in the slave node 320 as an example of a time parameter in step 230. Before the correction, the digital baud rate 125, such as the value "Slave_Baud (slave device baud rate)" in the corresponding registers of the interfaces 121 and 126, is equal to the system baud rate. The corrected digital baud rate is

[0090] Slave_Baud = System baud rate ± correction factor (Takt_pro_Bit_Differenz)

[0091] By performing baud rate correction for the two slave devices UART 121 and 126, the next slave node (ie, the third node) can adjust the baud rate according to the baud rate of the previous slave node (ie, the first node).

[0092] With this internal adjustment, as the temperature of the slave node increases, the baud rate of the slave node remains at the defined system baud rate, which can be observed externally.

[0093] As disclosed in conjunction with the above embodiments and their variants, the device 100 can be implemented in any system (particularly in any layout 300) with a defined system symbol rate (i.e., nominal baud rate). A numerical example of the system symbol rate is 312.5 kBd=312500 Bd, where Bd represents the unit of "baud", i.e., symbols per second (e.g., bits per second).

[0094] Preferably, in step 220 , the number of clock pulses within the system sequence 406 can be measured in each slave node by means of a capture-compare unit, which measures, for example, the number of clock pulses between pulse edge changes of a signal of a received message.

[0095] As an alternative or supplement to each embodiment and each variant solution, at least one of the following solutions can be implemented. The first embodiment does not use the oscillating quartz 312 in the master node 310. For example, this technology can be used for a master node that can be connected to a superior system as a slave device. To this end, the master node 310 is optionally equipped with an embodiment of the device 100, which adjusts the symbol rate of the master node according to the superior system, wherein the superior system, for example, does not need to support the master-slave mechanism.

[0096] The embodiment of the method 200 evaluates the content of the received byte 402 (i.e. decodes the byte 402) with respect to the measurement of the number of clock pulses in the symbol sequence 406 by means of the counter 124 (e.g. by means of the capture-compare unit). This presupposes that this byte 402 is still decodable (i.e. receivable), i.e. the deviation (or existing error) of the symbol rate generated up to that moment is still below the threshold value for the decoding error (i.e. the threshold value for unreceivability). As an alternative or in addition, a second embodiment avoids this limitation (e.g. the limitation of the fluctuation of the clock rate 115) by transmitting a synchronization character 402 (e.g. a synchronization byte specified in the communication protocol) at the beginning of the message 400, so that the measured ratio does not need to be determined based on the decoded symbols of the received useful data and is therefore independent of whether the symbol sequence 406 was successfully received (i.e. decoded). Therefore, while still ensuring consistency for asynchronous data transmission, the fluctuation of clock rate 115 (e.g., sudden deviation of clock rate 115) or the drift range of clock rate 115 can be further increased. For this purpose, a solution of adding synchronization characters to the message length can be accepted.

[0097] The number of clock pulses during the transmission of a predetermined synchronization character of the message 400 can be measured by means of the CC unit 124. The measured ratio is obtained by the ratio of the measured number of clock pulses 124 to the predetermined number of symbols in the synchronization character, wherein the symbols of the synchronization character do not need to be decoded or can be decoded, which is the basis for correcting the time parameter. In a variant of the second embodiment, during the transmission of the synchronization character, the quotient of the measured number of clock pulses 124 and the predetermined nominal value of the number of clock pulses is determined. The digital symbol rate 125 or the corresponding divisor can be corrected by this quotient. As an alternative, the clock rate 115 can be corrected by the reciprocal of this quotient.

[0098] As an alternative or in addition to modifying the digital baud rate 125 or a corresponding divisor (as an example of a time parameter), the third embodiment can modify (i.e. calibrate) the internal clock pulse generation by means of the clock pulse generator unit 110. In other words, the clock rate 115 (as another example of a time parameter) can be modified.

[0099] The measurement 220 of the number of clock pulses in the symbol sequence 406 can be triggered and ended by falling and rising edges. For example, a pulse edge change can trigger a hardware interrupt, which starts or ends the corresponding measurement procedure. For example, a clock (for example a CC timer) of a peripheral unit 120 (for example a CC unit) is started or stopped by applying a signal 322, wherein the clock is a counter 124, which is increased by one for each clock pulse of the clock pulse generator unit 110. A fourth embodiment measures 220 the number of clock pulses in the symbol sequence 406 by querying or sampling the signal received at the first interface 121, for example by cyclic querying, for example by so-called polling. When a corresponding pulse edge change is detected in the cyclic query, the counter 124 can be started or stopped.

[0100] Although the present invention has been described in conjunction with illustrative embodiments, it will be apparent to those skilled in the art that various modifications may be made and equivalents may be used as substitutes. In addition, many changes may be made so that specific situations, specific topologies of asynchronous data transmission and / or specific communication protocols may be adjusted according to the principles of the present invention. Therefore, the present invention is not limited to the disclosed embodiments, but encompasses all embodiments within the scope of the appended claims.

[0101] Description of Reference Numerals

[0102] 100 Device for correcting time parameters

[0103] 110 Clock pulse generator unit

[0104] 115 Timing parameters of a clock pulse generator unit, in particular the clock rate or the control parameters of the clock rate

[0105] 120 peripheral units

[0106] 121 First serial interface

[0107] 122 Decoder of the first interface

[0108] 123 Encoder of the first interface

[0109] 124 Counters, especially capture-compare units

[0110] 125 Timing parameters of peripheral units, especially registers for symbol rate or control parameters of symbol rate

[0111] 126 Second serial interface

[0112] 127 Decoder for the second interface

[0113] 128 Encoder for the second interface

[0114] 130 Correction Unit

[0115] 200 Method for correcting time parameters

[0116] 210 Clock Synchronization Steps

[0117] 220 Decoding and Measurement Steps

[0118] 230 Correction Steps

[0119] 300 Layout of serial nodes

[0120] 310 Master Node

[0121] 312 Oscillators, especially quartz crystal oscillators containing oscillating quartz

[0122] 320 slave nodes

[0123] 322 Apply the signal to the capture-compare unit

[0124] 400 message

[0125] 402 The first character of the message

[0126] 404 The second character of the message

[0127] 406 Symbol Sequence

[0128] 408 The first falling edge of the message, such as the start bit of the first character of the message

[0129] 410 First rising edge of message

[0130] 412 The stop bit of the first character of the message

Claims

1. A method for modifying a time parameter (115; 320) in a first node (320) according to a second node (310; 320). 125) of the invention, comprising: a clock pulse generator unit (110) adapted to provide a periodic clock pulse in said first node (320); a peripheral unit (120) adapted to decode symbols of a message (400) transmitted asynchronously from said second node (310; 320) and to measure the number (124) of clock pulses during the transmission of a sequence of symbols (406) of consecutive symbols of said message (400); and A correction unit (130) is adapted to correct the time parameter (115; 125) based on the ratio of the number of clock pulses (124) measured to the number of consecutive symbols in the symbol sequence (406), wherein the symbol sequence (406) of the message (400) only includes symbols for transmitting valid data.

2. An apparatus according to claim 1, wherein the time parameters (115; 125) include a clock rate (115) of the clock pulse generator unit (110), the decoded symbol rate (125), a parameter for controlling the clock rate (115) or a parameter for controlling the symbol rate (125).

3. The device according to claim 1 or 2, wherein the decoding of the symbols of the message (400) is clock-synchronized by the clock pulse generator unit (110) and / or controlled by the time parameter.

4. The device according to any one of claims 1 to 3, wherein the peripheral unit (120) comprises a first serial interface (121) for asynchronously transmitting a message (400) from the second node (310; 320) and a second serial interface (126) for asynchronously transmitting the message (400) to a third node, and wherein, The first serial interface (121) and the second serial interface (126) are both clock-synchronized by the clock pulse generator unit (110) and / or controlled by modified time parameters (115; 125).

5. An apparatus according to any one of claims 1 to 4, wherein the time parameter (115; 125) includes a clock rate (115) of the clock pulse generator unit (110), and the correction unit (130) is suitable for correcting the clock rate (115) of the clock pulse generator unit (110) based on the ratio of the number of measured clock pulses (124) to the number of consecutive symbols in the symbol sequence (406).

6. An apparatus according to claim 5, wherein the correction made to the corrected clock rate (115) compared to the actual clock rate of the clock pulse generator unit (110) is the quotient of a predetermined number of clock pulses per symbol and the measured ratio.

7. An apparatus according to any one of claims 1 to 6, wherein the time parameter (115; 125) comprises the symbol rate (125) of the peripheral unit (120), and the correction unit (130) is suitable for correcting the symbol rate (125) of the peripheral unit (120) based on the ratio of the number of clock pulses (124) measured to the number of consecutive symbols in the symbol sequence.

8. The apparatus of claim 7, wherein the correction made to the modified symbol rate (125) compared to a predetermined system symbol rate is the quotient of the measured ratio and a predetermined number of clock pulses per symbol.

9. An apparatus according to any one of claims 1 to 8, wherein the time parameters (115; 125) include a divisor for the symbol rate (125) of the peripheral unit (120) relative to the clock rate (115) of the clock pulse generator unit (110), and the correction unit (130) is suitable for correcting the divisor (125) based on the ratio of the number of measured clock pulses (124) to the number of consecutive symbols in the symbol sequence.

10. The apparatus of claim 9, wherein the modified divisor is equal to the measured ratio or is proportional to it.

11. The device according to any one of claims 1 to 10, wherein the symbol sequence (406) of consecutive symbols of the message (400) extends from a first falling edge to a first rising edge of the transmission of the message (400).

12. The device according to any one of claims 1 to 11, wherein a microcontroller comprises the clock pulse generator unit (110), the peripheral unit (120) and the correction unit (130), and wherein the microcontroller further comprises a capture-compare unit to which the signal of the message (400) received from the second node (310; 320) is applied and which is suitable for measuring the number of clock pulses (124) during the transmission of the symbol sequence (406).

13. The device according to any one of claims 1 to 12, wherein the symbol sequence (406) of the message (400) is shorter than a character (402; 404) of the message (400) and / or is part of the first character (402) of the message (400).

14. The device according to any one of claims 1 to 13, wherein the peripheral unit (120) is further adapted to measure the number (124) of clock pulses during the transmission of a predetermined synchronization character of the message (400), and wherein, The correction unit (130) is further adapted to correct the time parameter (115; 125) according to a ratio of the number of clock pulses (124) measured to a predetermined number of symbols in the synchronization character and / or according to a quotient of the number of clock pulses (124) measured during the transmission of the synchronization character to a predetermined nominal number of clock pulses.

15. A method (200) for modifying a time parameter (115; 125) in a first node (320) based on a second node (310; 320), wherein the method (200) comprises or causes the following steps: providing (210) a periodic clock pulse in the first node (320); decoding (220) symbols of a message (400) transmitted asynchronously from said second node (310; 320) and measuring the number of clock pulses (124) during transmission of a sequence of symbols (406) of consecutive symbols of said message (400); and The time parameter (115; 125) is corrected (230) as a function of a measured ratio of the number of clock pulses (124) to the number of consecutive symbols in the symbol sequence (406), wherein the symbol sequence (406) of the message (400) comprises only symbols for transmitting valid data.