Method and device for compensating for a frequency offset occurring during serial data transmission
Patent Information
- Application Number
- DE102016119689
- Authority / Receiving Office
- DE · DE
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2016-10-17
- Publication Date
- 2024-08-29
- Estimated Expiration
- 2036-10-17
Smart Images

Figure DE102016119689B4_0000_ABST
Abstract
Description
The invention relates to a method for compensating a frequency offset occurring during a serial data transmission between a first communication partner and a second communication partner, a control according to the method and a steering system according to the method and / or device.Methods and devices for serial transmission of data are known. In this case, a multiplicity of data words are usually transmitted one after the other via a data line. In order to ensure communication between a transmitter and a receiver of the serial data transmission, these are operated at a common nominal baud rate and synchronized with one another. In this case, it is possible to transmit a common clock signal as well as the actual data to be transmitted, or to make it available to the transmitter and receiver. It is also known to transmit identical or similar data for redundant and / or diversity systems by means of serial data transmissions connected in parallel. In order to avoid common error sources, a separate synchronization and / or a respective transmission of a clock signal can take place for each of the data transmissions.Furthermore, DE 10 2012 214 400 A1 discloses a method for compensating a frequency offset occurring between a first communication partner and a second communication partner during a wireless data transmission, wherein at least one communication partner is clocked, the frequency offset is determined and subsequently compensatedIt is an object of the invention to make it possible to compensate for a frequency offset occurring during serial data transmission, in particular to save transmission of a clock-generating signal and / or clock synchronization.This object is achieved according to the invention with the features of claim 1. The dependent claims indicate advantageous further developments.In the method according to the invention, a nominal baud rate is initially specified for the serial data transmission. On the basis of this baud rate, the transmitter and / or the receiver are adjusted or clocked with it. This can also be understood in particular to mean that the transmitter and / or the receiver are not set quite exactly to the nominal baud rate due to the application and / or due to tolerances and / or as a result oscillate therein, since although the nominal baud rate represents the basis, tolerable deviations can occur in the case of an actual baud rate. The clocking or setting is carried out in particular by means of separate clock generators. Preferably, at least one of the communication partners is clocked on the basis of the nominal baud rate, in particular both, preferably independently of one another by means of separate clock generators. Since the separate clock generators can deviate at least slightly from the nominal baud rate on the basis of which they are set, depending on the tolerance and / or application, it is possible for the frequency offset to occur. Within certain tolerances, for example + / -3%, reliable communication is possible despite the possibly occurring frequency offset. In order to avoid a possible exceeding of the tolerance, i.e. an excessive increase in the frequency offset, according to the invention, a determination of the frequency offset by means of one of the communication partners of the serial data transmission is provided. With knowledge of the frequency offset, this can be compensated, in particular advantageously by adapting timings of corresponding transmission signals. This makes it possible to dispense with the transmission of a synchronous clock signal. In addition, it is not necessary to implement the respective clocks with maximum accuracy, for example with their own quartzes. In this way, resources can be saved in the case of redundant and / or diversity data transmission, in particular common error sources such as, for example, the transmission of only one synchronous clock signal for parallel-operated data transmissions, can be excluded. Advantageously, a fail-safe communication can also be effected with standard components thanks to the independent compensation of the frequency offset. Corresponding standards are known, for example, under the names of universal asynchronous receivers and transmitters, UART.In a preferred embodiment of the method, one of the communication partners is operated with a multiple of the baud rate as an internal frequency, wherein a specific number of internal frequency cycles are processed per frequency cycle of the baud rate, and the number of internal frequency cycles per frequency cycle of the baud rate is changed depending on the predefined baud rate and the determined frequency offset in order to compensate for the frequency offset. Components are known in which the number of internal frequency cycles can be adjusted in a simple manner. It is possible in particular to set the internal frequency to a multiple of the baud rate, for example to 64 times. Thus, 64 internal frequency cycles are processed for sampling a bit. This number can now be changed to compensate for the frequency offset, for example to 63 or 65 internal frequency cycles which are processed per bit. A higher-order clock generator, from which the internal frequency is optionally derived, and / or a bus frequency do not have to be changed, wherein the frequency offset 13 can nevertheless be minimized.In a further preferred embodiment of the method, the second communication partner is operated as a receiver, a targeted change of a frequency of at least one of the communication partners, preferably a receiver frequency of the second communication partner, a determination of at least one upper and / or lower limit frequency at which reception is just still possible, takes place as a function of the targeted change, and a compensation of the frequency offset as a function of the at least upper and / or lower limit frequency. Thus, at least either the upper limit frequency or the lower limit frequency can be determined. This is advantageously done by means of the receiver, that is to say without further separate measurement complexity, which takes place independently of the data transmission. The receivers can be controlled by means of corresponding control commands from the outside or by means of a program sequence implemented in the receiver. At the same time, it is determined whether secure reception of the data is still possible. This can be determined on the basis of possibly occurring errors. If these occur, it can be concluded that secure data reception is no longer possible starting from the frequency used in this case. Accordingly, the receiver frequency can be increased, in particular stepwise, by the upper limit frequency and correspondingly decreased in order to determine the lower limit frequency. The compensating of the frequency offset can then be effected in such a way that the receiver frequency is set between the upper and lower limit frequencies, in particular centrally, in particular in such a way that a maximum distance to the upper and lower limit frequencies is given.In a further embodiment of the method, the upper limit frequency is determined and the lower limit frequency is estimated as a function of the baud rate or at least one parameter dependent thereon, and the frequency offset is compensated as a function of the at least upper and lower limit frequencies. Therefore, only one cut-off frequency, in particular the upper cut-off frequency, has to be determined. The other, in particular the lower limit frequency, can be estimated on the basis of the known baud rate and the at least one dependent parameter. The at least one parameter can be a word length, in particular a temporal word length, a bit time and / or the like. In particular, the estimation can be carried out on the basis of a predefined and / or known tolerance band, within which reliable transmission and reception of the data is still possible. Knowing one of the cut-off frequencies, a distance to this cut-off frequency can be chosen which corresponds to approximately half the tolerance band.Particularly preferably, a deliberate generation of a frame error takes place by the targeted change of the receiver frequency and a compensation of the frequency offset as a function of the at least upper and lower limit frequency. When the frame error occurs, it can be concluded that a secure communication is no longer possible. Frame errors can be determined in a simple manner; in particular, these are generated by corresponding receivers as standard and can be read accordingly.In the method, the second communication partner is preferably operated as a transmitter, a word is transmitted in which a bit transmitted before a stop bit and a last bit transmitted before the stop bit have different levels, and a conclusion is drawn about a receiver frequency that is too high if the frame error occurs in this case. The different levels may be 0 and 1, for example. It is conceivable to transmit a plurality of such words, in particular within the scope of a test communication. However, it is also conceivable to simply wait until a plurality of corresponding words, in which the levels differ, have been transmitted within the scope of a current communication and a corresponding statistical evaluation has been carried out. If the different levels are present, the frame error occurs at the too high receiver frequency, wherein only a misinterpretation of the word would take place at a receiver frequency that may be too low. This makes it possible to distinguish and infer the too high receiver frequency.In a further exemplary embodiment of the method, the second communication partner is operated as a transmitter, a time interval which passes between a stop bit and a start bit following the latter is minimized, and a conclusion is drawn about a receiver frequency which is too low if the frame error occurs in this case. The minimization can take place within the scope of a test communication or, if appropriate, during a running communication with a corresponding statistical evaluation. In this case, the frame error only occurs at a receiver frequency that is too low, wherein, in the case of a receiver frequency that may be too high, only a misinterpretation of the word would take place. This makes it possible to reliably draw conclusions as to the too low receiver frequency. Knowing the too low receiver frequency and the too high receiver frequency, the lower and the upper frequency limits can be correspondingly deduced. For this purpose, different frequencies can be used during the test communication and / or the statistical evaluation, and as soon as the frame error occurs, the frequency used in this case can be assumed as a cut-off frequency. In particular, the frequency can be changed in an increasing or decreasing manner in comparatively small steps.The second communication partner is preferably operated as a transmitter and a comparatively long word is transmitted in order to increase a measurement accuracy when ascertaining the at least lower and upper limit frequency. This has the advantage that a comparatively long time interval is available for the assessment, that is to say a sampled time interval is maximized, wherein even comparatively small frequency offsets trigger the frame error. A higher measurement accuracy is thus possible, in particular measurement inaccuracies which can occur during the synchronization are minimized.In a further preferred exemplary embodiment, the first communication partner is designed as a standard component and the second communication partner is designed as an application-specific integrated circuit. The frequency offset is determined by means of the second communication partner and the frequency offset is transmitted to the first communication partner. The application specific integrated circuit may be configured, configured and / or programmed to perform the method. This can be done in a simple manner in addition within the scope of a design for the corresponding application. The standard component itself does not have to be changed, but can likewise be adjusted with respect to its frequency by means of the known frequency offset, which can be determined by means of the application-specific component. For this purpose, this is transmitted to the standard component. In the present case, transmission can be understood to mean that the frequency offset itself is transmitted and a corresponding setting of the standard component is carried out on the basis thereof or only the standard component is adjusted accordingly on the basis of the known frequency offset.In addition, a transmission of a control signal used for the data transmission and having a time duration defined on the transmitter side, a measurement over time on the receiver side of the control signal and a determination of the frequency offset as a function of the time duration defined on the transmitter side and of the measurement on the receiver side are preferably carried out. Provided that both the transmitter and the receiver have their own clock generator, time measurements can be carried out both by means of the transmitter and the receiver. However, these are dependent on the accuracy of the clock. This means that both the time duration defined at the transmitter end and the measurement at the receiver end are subject to the respective tolerance of the respective clock generator. Advantageously, the deviation occurring during such a measurement corresponds to the frequency offset. Provided that a setpoint time duration or nominal time duration of the control signal is known, it is possible to infer the frequency offset therefrom. In the case where the clocks have a rectified tolerance position or both go exactly, no deviation occurs even during the measurement, since accordingly there is also no frequency offset. In this case, the communication may be somewhat slower or somewhat faster than the nominal baud rate, but is certainly possible. Only in the case that the tolerance positions do not cancel one another out can the frequency offset be determined and compensated accordingly.The object is also achieved by a controller for controlling an actuator described above. The controller is configured, programmed and / or configured to perform a method described above. The advantages described above are obtained.Finally, the object is achieved by a steering system having a previously described control and / or configured, programmed, designed and / or constructed for carrying out a previously described method. The advantages described above are obtained.Further advantages and practical embodiments can be taken from the further claims, the description of the figures and the drawings. The following are shown: FIG. 1 is a schematic illustration of a steering system in a vehicle, including a controller; FIG. 2 shows a schematic view of a serial data transmission between a first communication partner and a second communication partner, wherein no frequency offset occurs; FIG. 3 shows the communication shown in FIG. 2, wherein a stop bit and a last bit transmitted before this stop bit have different levels and a frequency offset leads to a frame error; FIG. 4 shows the communication shown in FIG. 2, wherein a time period between a stop bit and a start bit of a subsequent word is shortened and a frequency offset leads to a frame error; FIG. 5 is a schematic illustration of a transmitted bit of the transmissions of FIGS. 2-4.In the figures, identical components are provided with identical reference numerals.The steering system 1 for a vehicle shown in FIG. 1 comprises a steering wheel 2, a steering spindle or shaft 3, a steering or gear housing 4 and a steering linkage with a steering rack 5, via which a steering movement is transmitted to the steerable wheels 6 of the vehicle. The gear housing 4 accommodates a steering gear 8 with a steering pinion and the steering rack 5, wherein the steering pinion is connected to the steering shaft 3 in a rotationally fixed manner and meshes with the steering rack 5.The driver, via the steering wheel 2 to which the steering shaft 3 is fixedly connected, specifies a steering angle δ L which is transmitted in the steering gear 8 in the transmission housing 4 to the steering rack 5 of the steering linkage, whereupon a wheel steering angle δ V is set at the steerable wheels 6.An electric servomotor 7 serves to assist the manual torque applied by the driver, via which servomotor a servo torque can be fed into the steering gear 8. Instead of an electric servomotor, a hydraulic assistance device can also be provided, for example a hydraulic pump, which is driven by an internal combustion engine and feeds a hydraulic steering system.The electric servomotor 7 is controlled via control signals of a steering control unit 9 of a controller 10 for controlling and / or regulating the steering system 1, in which sensor signals of a steering angle sensor are processed. Furthermore, the signals of a steering torque sensor can also be forwarded to the steering control unit and processed in the steering control unit 9. The data communication within the steering control unit 9 and / or between the steering control unit 9 and sensors can be carried out in series, in particular according to different serial transmission standards, for example known under the names "UART Universal Asynchronous Receiver Transmitter" and / or "SPI Serial Peripheral Interface". In particular, the serial data transmission between a first communication partner 11 and a second communication partner 12 takes place by means of the controller 10. The second communication partner 12 can be designed in the form of a user-specific integrated circuit, in particular in the steering control unit 9 of the controller 10.FIG. 2 shows a schematic illustration of a transmission of a word 18 between the communication partners 11 and 12 illustrated in FIG. 1.The word 18 in the present case consists of 8 data bits 19. For synchronization, word 18 begins with a start bit 20 and is terminated with a stop bit 21. By means of hatching, it is shown in FIG. 2 that the data bits 19 for the transmission of the data can have different levels. In the example shown in FIG. 2, the start bit 20 has the level 0 and the stop bit 21 has the level 1. The start bit 20 and the stop bit 21 may also have levels 1 and 0, the level of the start bit being different from the idle state of the bus.A first arrow 22 represents a synchronization time at a falling edge of the start bit 20. Sampling times for the data bits 19 and the stop bit 21 are symbolized by means of a plurality of second arrows 23.According to the illustration in FIG. 2, no or at least only a minimum frequency offset 13 prevails between the communication partners 11 and 12, with the result that the sampling times of the second arrows 23 can be placed as centrally as possible with respect to the data bits 19. This can be ensured over the entire word length of the word 18.FIG. 5 shows a schematic view of one of the data bits 19 shown in FIG. 2, and a first region 24, in which the data bit 19 can be read without errors, is drawn in FIG. 5 by means of dashed lines. The first region 24 is followed by two regions 25 having a rising edge and a falling edge. Since this does not run exactly perpendicularly, the data bit 19 cannot be read correctly reliably in the second regions 25. FIG. 5 illustrates that a secure communication can only take place when the sampling times are within the first region 24, preferably as centrally as possible within the first region 24.FIG. 3 shows the communication shown in FIG. 2, wherein a frequency offset 13 occurs in contrast. This is symbolized in FIG. 3 by means of a curved bracket and a dot-dash line which specifies an optimum sampling time of the stop bit 21. A dot-dash third arrow 27 in FIG. 3 indicates that a frame error 14 occurs at the sampling time of the stop bit 21 due to the frequency offset 13. Instead of the expected level 1, the level of a predecessor bit 26 intentionally set to 0 is read. This makes it possible to draw conclusions about the frequency offset 13, in the present case that a transmission frequency is too low or correspondingly a receiver frequency is too high. Thus, if, for example, the receiver frequency is increased stepwise until the frame error 14 illustrated in FIG. 3 occurs, an upper limit frequency can be deduced when it occurs.FIG. 4 likewise illustrates the communication shown in FIG. 2, a time period between the last transmitted data bit 19 and a subsequent start bit 20 being minimized, in contrast. The time period is symbolized in FIG. 4 by means of a curved bracket and a dotted line 16. The time period corresponds to the stop bit 21 shortened as a result.In FIG. 4, it can likewise be seen by means of the dashed third arrow 27 that a frame error 14 occurs. Since start bit 20 and stop bit 21 have different levels, the next start bit 20 is read out instead of the expected stop bit 21, which triggers the frame error 14. In this case, either the transmission frequency is too high or the receiver frequency is too low. In the case of a receiver-side stepwise lowering of the receiver frequency and a simultaneous shortening of the time period, in particular with knowledge of the length of the time period, a lower limit frequency of the receiver frequency can be deduced. Knowing the upper limit frequency determined on the basis of the example of FIG. 3 and the lower limit frequency determined on the basis of the example of FIG. 4, the frequency offset 13 can be adjusted and / or compensated, in particular by being set between the limits. Alternatively, it is conceivable to determine a frequency limit only on the basis of FIG. 3 or only on the basis of FIG. 4 and to estimate the respective other frequency limit, for example with knowledge of a tolerance band and a bit time of, for example, one of the data bits 19.According to a further alternative, not shown in the form of a picture, a control signal, the length of which is known and which is exchanged between the communication partners 11 and 12, can be measured over time. Such a control signal can be, for example, a BitSelect in a communication known as the SPI interface. By means of the control signal, individual slaves can be selected and exchanged with these data, in particular bidirectionally. It is possible to measure the time length of the control signal by means of the slave controlled accordingly in this way. As a result, the frequency offset 13 can likewise be determined and correspondingly adjusted and / or compensated. This can be effected, for example, by varying a number of internal cycles of one of the communication partners 11 or 12 processed per data bit 19. In particular, one of the communication partners 11 or 12 can be operated at a multiple of a baud rate set between the communication partners 11 and 12, for example at 64 times. For adjusting and / or compensating the frequency offset 13, this number can be increased or decreased slightly, for example to values between 62 and 67 internally to be processed frequency cycles per data bit 19.For the redundant and / or diversity transmission of data, in particular for increasing a safety of the steering system 1, it is conceivable to set up the above-described data communication in parallel, in particular according to different standards. In this case, additional measures for synchronizing, in particular for transmitting a synchronous clock signal, can advantageously be dispensed with, wherein a common error, which could originate from the synchronous clock signal if this is transmitted only simply, can be avoided. It is also conceivable to use different communication standards for the transmission of sensor data and control data, these being supplied with an identical clock within the steering control unit 9. It is advantageously conceivable to carry out the method described above by means of one of the communication paths and to communicate the frequency offset 13 in accordance with the other communication path or also to use it for adjusting and / or compensating it, in particular for the first communication partner 11.List of reference characters1 Steering system 2 Steering wheel 3 Steering shaft 4 Transmission housing 5 Steering rack 6 Front wheel 7 Electric servomotor 8 Steering gear 9 Steering control device 10 Controller 11 First communication partner 12 Second communication partner 13 Frequency offset 14 Frame error 15 Period of time 16 Line 17 Double arrow 18 Word 19 Data bit 20 Start bit 21 Stop bit 22 First arrow 23 Second arrow 24 First region 25 Second region 26 Preamble 27 Third arrow
Claims
Method for compensating a frequency offset (13) occurring during a serial data transmission between a first communication partner (11) and a second communication partner (12), having the steps: - presetting a nominal baud rate for the serial data transmission, - clocking the first communication partner (11) on the basis of the nominal baud rate, - determining the frequency offset (13) by means of one of the communication partners (11, 12), - compensating the frequency offset (13) as a function of the determined frequency offset (13).Method according to Claim 1, having the steps of: - operating one of the communication partners (11, 12) with a multiple of the baud rate as an internal frequency, wherein a specific number of internal frequency cycles are processed per frequency cycle of the baud rate, - changing the number of internal frequency cycles per frequency cycle of the baud rate as a function of the predefined baud rate and the determined frequency offset (13) in order to compensate for the frequency offset (13).Method according to one of Claims 1 or 2, having the steps: - operating the second communication partner (12) as a receiver, - specifically changing a frequency of at least one of the communication partners (11, 12), - determining at least one cut-off frequency at which reception is just still possible, as a function of the specifically changing, - compensating the frequency offset (13) as a function of the at least one cut-off frequency.Method according to claim 3, comprising the steps of: - determining an upper limit frequency as the limit frequency and - estimating a lower limit frequency as a function of the baud rate or at least one parameter dependent thereon, - compensating the frequency offset (13) as a function of the upper and lower limit frequencies.Method according to one of Claims 3 or 4, having the steps: - deliberately generating a frame error (14) by the targeted change of the receiver frequency, - compensating the frequency offset (13) as a function of the at least one cut-off frequency.Method according to Claim 5, having the steps of: - operating the second communication partner (12) as transmitter, - transmitting a word in which a stop bit and a last bit transmitted before the stop bit have different levels, - concluding that the receiver frequency is too high if the frame error (14) occurs in this case.Method according to one of Claims 5 or 6, having the steps of: - operating the second communication partner (12) as transmitter, - minimizing a time interval which passes between a stop bit and a start bit which follows the latter, - concluding that the receiver frequency is too low if the frame error (14) occurs in this case.Method according to one of Claims 3 to 7, having the steps: - operating the second communication partner (12) as transmitter, - transmitting a comparatively long word (18) for increasing a measurement accuracy when ascertaining the at least one cut-off frequency.Method according to one of the preceding claims, wherein the first communication partner (11) is designed as a standard component and the second communication partner (12) is designed as an application-specific integrated circuit, with the steps: - determining the frequency offset (13) by means of the second communication partner (12), - transmitting the frequency offset (13) to the first communication partner (11).Method according to one of the preceding claims, having the steps: - transmitting a control signal used for the data transmission and having a time duration defined on the transmitter side, - measuring the control signal over time on the receiver side, - determining the frequency offset (13) as a function of the time duration defined on the transmitter side and the measuring on the receiver side.Steering control device (9) designed, configured, programmed and / or designed to carry out a method according to one of Claims 1 to 10.Steering system (1) having a steering control device (9) according to Claim 11 and / or designed, configured, programmed and / or designed to carry out a method according to one of Claims 1 to 10.
Citation Information
Patent Citations
Receiver for synchronizing clock frequency in radio communication system, has device that provides receiver timing signal to adjust receiver clock frequency as function of offset between transmitter and receiver carrier frequencies
DE102012214400A1
Method and device for baud rate clock recovery
DE102015005527A1
Method and apparatus for combined timing recovery, frame synchronization and frequency offset correction in a receiver
US6058150A
