The present invention relates to sensors, control units and methods to communicate between sensors and control units.
Digital transmission of data requires a common time base for decoding the data. This determines when the data are valid in a receiver and can be sampled. If, in the case of message-oriented transmission, data packets are intended to be transmitted only upon request, the starting time for the transmission is required. This requires a further signal line if this information is not simultaneously encoded by means of the clock information. In embedded systems, this is achieved by means of a common system clock and selection lines which address data sources specifically.
In decentralized systems, multiwire buses are used, e.g. SPI (Serial Peripheral Interface), which is supported by many microcontrollers. In this case, the clock for the data
transmission is sent on a separate line for the purpose of bit-synchronous data transmission. A selection line indicates the start and the end of the data transmission.
If the number of lines needs to be reduced for reasons of 35 cost, the transmitter's clock and the starter of a transmission need to be encoded in the data to be transmitted themselves in order to allow reliable decoding in a receiver.
Economizing on external decoding hardware which needs to be used in addition to a microcontroller is an important cost factor which needs to be taken into account.
A sensor comprises a clock generator configured to generate a clock, a receiver configured to receive signals from a control unit; and a transmitter configured to send signals to the control unit. The transmitter is configured to send a synchronization signal based on the clock, and wherein a period between a first edge and a second edge of the synchronization signal is dependent on the clock and both edges are either rising or falling.
The present invention is based on the object of providing a simple and inexpensive method and inexpensive components for clock generation which allow a control unit to interchange data with one or more sensors.
By way of example, a system may have a control unit and at least one sensor. Control units may be microprocessors whose technology is set up to combine as many logic possible on one integrated circuit. By way of example, a sensor, for example a pressure sensor, a Hall sensor or an acceleration sensor, may be constructed using a semiconductor technology which may be oriented more closely to the needs of the sensor per se. The technology which is used to produce the sensors normally has a much lower packing density than the technology which is used to produce a microprocessor. It is therefore advantageous if the complexity for a communication link between one or more sensors and a controller is such that the complexity for this communication is as low as possible in the sensor. The communication link used may be bus lines. A bus line comprises at least one wire which connects at least two subscribers, a control unit and a sensor. In this connection, it is advantageous if the number of bus lines is reduced. The control unit and at least one sensor can be powered by the same supply voltage, which can be provided by a car battery, for example. The logic states on a bus line can then be stipulated by connecting the bus line either to a high potential of the supply voltage or to a low potential of the supply voltage. A sensor may have a local clock generator whose clock can be generated using an RC oscillator, for example. If the local clock generator has an internal RC oscillator, the local clock generator has a higher or lower tolerance, depending on the design. Trimming to reduce the tolerance of the local oscillator increases the costs for the sensor significantly. Other designs for the local clock generator, such as inverter delay lines, can also be produced only with high tolerances.
The transmitted clock of the sensor may be a multiple of the internal clock of the sensor.
The control unit can store the clock as a clock value. If the internal clock of the control unit is higher than the clock of a sensor, the clock value can be stored as the quotient of the sensor clock and the internal clock of the control unit, for example.
The control unit can request data by sending a wake-up signal. If only one sensor is connected to the control unit 20 by means of a bus line, a short wake-up signal from the control unit is sufficient to request data.
If only one sensor is connected to the control unit by means of a bus line, the control unit can send a modulated wake-up 25 signal for configuring the sensor to the transmitter. Such a wake-up signal can be used to change over the measurement range of the sensor, for example, or to request another data record, for example. The wake-up signal may be PWM modulated.
If a plurality of sensors are connected to the control unit by means of a bus line, communication first requires a sensor to be selected which can send signals to a bus line. The control unit can request data and select a sensor by sending an address signal. The address signal may be PWM modulated.
The address signal may be in a form such that the sensors are woken up thereby and there is no need for any further dedicated wake-up signal.
The control unit can use the address signal for configuration if the address signal is outside the address space of the sensors, that is to say that no sensor is selected by means of this address. Such an address signal can be used to change over the measurement range of the sensor, for example, or to request another data record, for example. The sensor may be in a form such that this address signal is identified as a configuration command. Depending on whether a sensor is designed to identify the address signal as a configuration command, one or more or all sensors can be addressed by the address signal.
The sensor can send the synchronization signal following reception of an address signal or of a wake-up signal.
The communication between the control unit and a sensor can be set up by virtue of the control unit first of all sending a signal which is used to address a sensor. By way of example, the signal may be a pulse which has a particular length. In this case, the address of the sensor is encoded as a pulse length. The sensor uses its local clock generator to measure the pulse length, and the sensor whose programme pattern corresponds to the pulse length is addressed. After a particular waiting time, the selected sensor sends a synchronization signal. The length of the synchronization signal is dependent on the frequency of the selected sensor's local clock generator. The length of the synchronization pulse may be a single or a multiple of the period of the local clock generator. The multiplicity can be stipulated by hard-wiring or by a value in an EEPROM store in a sensor, for example. By way of example, the synchronization signal may be in a form such that the sensor first of all changes the bus line from a high to a low state in order to enable the bus line again after a certain waiting time, so that the bus line changes from the low state to the high state. The synchronization signal is completed by virtue of the sensor forcing the bus line from a high state to a low state again.
The falling edges of this synchronization signal are thus dependent on the frequency of the sensor's local clock generator. The control unit measures the period between the two falling edges of the synchronization signal and stores this period. By way of example, this may be a numerical value which is related to the control unit's local clock generator. In this context, it is advantageous that the selected sensor's local clock generator does not need to have the same high frequency of the control unit's local clock generator. The control unit takes the measured period and determines a clock for sampling the data from a selected sensor. After a waiting time, the selected sensor can start transmitting the data signal to the controller.
The sensor can send data signals following transmission of the synchronization signal.
The synchronization signal from the sensor may contain known data for identification as a synchronization signal for the control unit. In this case, the sensor can encode the synchronization signal using a particular bit pattern, so that the control unit identifies the received signal as a synchronization signal.
The method for determining a clock for a sensor may be in a form such that the sensor does not send a synchronization signal following every data request by an address signal or by a wake-up signal. By way of example, the sensor can send the synchronization signal only every second, third or fourth time. The control unit uses. The clock for sampling the data in the sensor signal is determined using the stored clock value.
The sensor can send the synchronization signal following reception of the address signal.
The control unit can interrupt the transmission of the data from the sensor following determination of the clock and can send data signals to the sensor following interruption of the transmission, wherein the data signals are dependent on the clock which is determined by reception of the synchronization signal from the selected sensor.
If the control unit has measured the clock of a sensor, during a preceding data transmission, the control unit can interrupt the transmission of the data signals from the selected sensor and can transmit to the sensor a data signal whose data are dependent on the measured clock, that is to say using the clock from a sensor's local clock generator. It is therefore not necessary for a selected sensor's local clock generator to have a low tolerance. This method allows bidirectional data transmission.
The control unit can interrupt the transmission of the synchronization signal from a sensor and can send data signals to the sensor following interruption of the transmission, wherein the data signals are dependent on the clock which is determined by storage of the clock value from a preceding data transmission from the sensor.
When the control unit has received a synchronization signal at least once from a transmitter, the control unit essentially knows the local clock of a sensor. This essentially means that the tolerances of a sensor's local clock generator, which come from the production or technology of the sensor, are known. The variations in the clock, which stem from the environment of the sensor, such as temperature or pressure, remain. Assuming that temperature and pressure or other interfering influences do not change substantially in a particular period, the control unit can therefore also interrupt the synchronization signal from the sensor in order to transmit a data signal to the selected sensor, since the sensor's local clock is known with sufficient accuracy.
The control unit can send more than one or all sensors data, or a general message (broadcast message) or a configuration command, if a specific address signal is used which selects a plurality of or all sensors. A sensor may be in a form such that the sensor is immediately ready to receive data signals following identification of the specific address signal.
A sensor can interrupt the transmission of its synchronization signal if the sensor detects activities by other subscribers on the bus. The control unit can interrupt the transmission of the synchronization signal with its own activities, or other sensors interrupt the transmission of the synchronization signal by sending their own synchronization signal. Following interruption of the transmission of the synchronization signals, the control unit sends data signals, e.g. for transmitting configuration commands or general messages.
The control unit can transmit the data signals with a default clock, which is in a form such that all tolerances of the selected sensors are taken into account. When the control unit has received a synchronization signal at least once from every connected sensor and the clock values of every sensor are known, the control unit can send the general message with a clock which is dependent on the clock values, so that a clock which is optimum for all sensors is obtained.
The data signals may be pulse-width modulated By way of 30 example, the data can be encoded by virtue of the period duration of a clock being known and the pulse length of a high or low signal being varied. The address signal may be pulse-width modulated.
A sensor can be selected on the basis of the duration of the address signal.
The signals from the control unit and from the sensors may be ORed on a bus line. The signals on the bus line can be ORed by virtue of the signal line being connected to a positive supply voltage using a resistor, for example. The control unit and the sensors merely have one transistor, whose drain or collector is connected to the bus line, for actuating the bus line. If none of the transistors, sensors or the control unit is actuated, the bus line is in a high state. As soon as at least one transistor in a sensor or in the control unit actuates the transistor, the bus line is in a low state. This state does not change if a further transistor in a sensor or in the control unit is actuated. This means that, by way of example, the control unit is easily able to actuate the transistor in the control unit in order to interrupt the data transmission of a sensor by virtue of the control unit actuating the transistor in the control unit. All signals can be sent to a bus line.
A control unit comprises a transmitter for sending signals to a sensor, a receiver for receiving signals from the sensor, a timing circuit for measuring a period for a synchronization signal from the sensor, wherein the timing circuit measures the period between a first edge and a second edge of the synchronization signal, wherein both edges are either rising or falling, and a sampling circuit for sampling a signal to be received on the basis of the clock.
The transmitter in the control unit may be designed to send signals to a sensor, wherein the signals are dependent on the clock which is determined by reception of the synchronization 35 signal from the selected sensor.
The transmitter may have a transistor whose collector or whose drain is connected to a bus line for sending a signal.
A sensor comprises a transmitter for sending signals to a control unit, a receiver for receiving signals from the control unit, a clock generator for generating a clock, wherein the transmitter sends a synchronization signal on the basis of the clock, wherein a period between a first edge and a second edge is dependent on the clock and wherein both edges are either rising or falling.
The transmitter may have a transistor whose collector or whose drain is connected to a bus line for sending a signal.
The receiver in the sensor can decode the intervals of time between two received edges on the basis of its own clock.
The control unit 110 communicates with the sensors 120 via the bus line 180. The bus line 180 is connected to a supply potential 182 using a resistor 190. The sensors 120 and the control unit 110 contain transistors 111 which pull the bus line 180 to the supply line 181 when one of the transistors 111 is actuated. The bus line 180 may also be in the form of a two-wire line in order to improve transmission reliability. By way of example, the two data lines can then be connected to a resistor and pulled to the respective supply voltages by two transistors. To improve the line characteristics and to suppress interference, the bus line 180 can be connected by means of capacitors 192 to the respective supply lines 182 and 181 at the inputs of the sensors 120 or at the inputs of the control unit 110.
The curve in
Number | Date | Country | Kind |
---|---|---|---|
10 2008 031 498 | Jul 2008 | DE | national |
This application is a continuation of U.S. patent application Ser. No. 12/242,951, which was filed on Oct. 1, 2008. U.S. patent application Ser. No. 12/242,951 is a continuation in part of U.S. patent application Ser. No. 11/838,475, now U.S. Pat. No. 8,183,982 and which was filed on Aug. 14, 2007. The entire contents of the indicated prior filed U.S. patent applications are hereby incorporated herein by reference.
Number | Name | Date | Kind |
---|---|---|---|
5973613 | Reis et al. | Oct 1999 | A |
6055145 | Lagree et al. | Apr 2000 | A |
6088830 | Blomgren et al. | Jul 2000 | A |
6344906 | Gatto et al. | Feb 2002 | B1 |
6925111 | Koga | Aug 2005 | B2 |
7113213 | Matsunaga et al. | Sep 2006 | B2 |
7275174 | Cheung et al. | Sep 2007 | B2 |
7659716 | Nishikawa | Feb 2010 | B2 |
7930126 | Frese et al. | Apr 2011 | B2 |
8009027 | Thomas et al. | Aug 2011 | B2 |
8018954 | Jamieson et al. | Sep 2011 | B2 |
8050881 | Yeung et al. | Nov 2011 | B1 |
8400292 | Kummetz | Mar 2013 | B2 |
20030227987 | Poletto et al. | Dec 2003 | A1 |
20040255680 | Ortega et al. | Dec 2004 | A1 |
20050091428 | Matsumoto et al. | Apr 2005 | A1 |
20050184229 | Maeda | Aug 2005 | A1 |
20050196059 | Inoue et al. | Sep 2005 | A1 |
20050212932 | Steimle et al. | Sep 2005 | A1 |
20060082451 | Shaw | Apr 2006 | A1 |
20060153041 | Miyashita et al. | Jul 2006 | A1 |
20060161763 | Ito et al. | Jul 2006 | A1 |
20060201931 | Lee et al. | Sep 2006 | A1 |
20060220815 | Thomas | Oct 2006 | A1 |
20060254369 | Yoon et al. | Nov 2006 | A1 |
20070270114 | Kesler et al. | Nov 2007 | A1 |
20070279203 | Thomas et al. | Dec 2007 | A1 |
20080048772 | Nishikawa | Feb 2008 | A1 |
20080199047 | Kuo et al. | Aug 2008 | A1 |
20080204826 | Kimura | Aug 2008 | A1 |
20080284585 | Schweitzer et al. | Nov 2008 | A1 |
20080284883 | Asahi | Nov 2008 | A1 |
20090058338 | Takeuchi | Mar 2009 | A1 |
20090138748 | Kim et al. | May 2009 | A1 |
20090167521 | Edwards et al. | Jul 2009 | A1 |
20090310727 | Rouis | Dec 2009 | A1 |
20090312959 | Borman | Dec 2009 | A1 |
20100045471 | Meyers | Feb 2010 | A1 |
20110074843 | Kusaka | Mar 2011 | A1 |
20120170413 | Fisher et al. | Jul 2012 | A1 |
Number | Date | Country | |
---|---|---|---|
20150146831 A1 | May 2015 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12242951 | Oct 2008 | US |
Child | 14612227 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 11838475 | Aug 2007 | US |
Child | 12242951 | US |