Concept for communication between a microcontroller and at least one sensor chip

By introducing analog signal interfaces and bidirectional digital signal interfaces into the sensor system, parallel data transmission between the microcontroller and the sensor chip is realized, which solves the problems of inconvenience in communication and complex programming in the sensor system, and improves the functional safety of the system and Data availability, reducing cost and programming complexity.

CN112698076BActive Publication Date: 2024-11-15INFINEON TECHNOLOGIES AG
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202011138334.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2019-10-23
Filing Date
2020-10-22
Publication Date
2024-11-15
Estimated Expiration
2040-10-22

AI Technical Summary

Technical Problem

In existing sensor systems, there is a lack of an effective communication interface between the microcontroller and the sensor chip, which makes it impossible to achieve extended diagnosis and control, the programming process is complex and costly, dynamic adjustment of sensor parameters is inconvenient, and the extended sensor information such as temperature and Power supply voltage monitoring, fault detection is difficult.

Method used

Design a sensor system, which uses analog signal interface and bidirectional digital signal interface to realize parallel transmission of analog measurement data and digital auxiliary information. The microcontroller can dynamically adjust sensor parameters, provide diagnostic data and configuration data, and simplify the calibration process. Reduce costs.

Benefits of technology

It realizes the two-way digital control and diagnostic interface between the microcontroller and the sensor chip, improves the functional safety and preventive maintenance capabilities of the system, reduces programming costs, simplifies the configuration and calibration process of the sensor system, and improves the sensor data. usability and flexibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112698076B_ABST
    Figure CN112698076B_ABST
Patent Text Reader

Abstract

A concept for communication between a microcontroller and at least one sensor chip is disclosed. The disclosure relates to a sensor system (200), comprising: a microcontroller (230), at least one sensor chip (210) designed to measure a physical variable, wherein the microcontroller (230) and the sensor chip (210) are coupled to each other via at least one analog signal interface (212) for transmitting analog measurement data between the sensor chip and the microcontroller, and via a bidirectional digital signal interface (250) for transmitting digital auxiliary information between the sensor chip (210) and the microcontroller (230).
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to apparatus and methods for communication between a microcontroller and one or more sensor chips. Background Art

[0002] In many industrial applications, physical parameters are acquired by sensors in order to control technical systems (e.g. vehicles, washing machines, entertainment electronics, etc.) based on the acquired parameters. For this purpose, the sensors usually provide their measurement signals to a microcontroller or microprocessor acting as a control device. Current sensors are used in numerous applications.

[0003] Due to bandwidth and synchronization requirements, most current sensors on the market today have an analog interface for current information (measured values). Extended functionality, such as fast overcurrent detection, can be implemented via an additional interface that enables fast feedback under certain conditions (e.g. if the measured current exceeds a certain threshold).

[0004] Advanced implementations of inverters for the automotive industry or robotics, for example, require extended diagnostic possibilities for current sensors. Improved diagnostics are required, for example, due to functional safety requirements in the automotive sector (torque accuracy of drive power) or in industry (e.g. maximum torque limitation for collaborative robots). The (current) sensor information is gaining in importance and is not determined solely by the torque requirement. Advanced safety concepts used in drive implementations also depend on current sensor signals to determine the rotor position or slip of brushless DC motors and therefore require functional safety information from the sensors.

[0005] In addition to (functional) safety requirements, predictive maintenance also requires extended sensor information. Well-known concepts use sensor diagnostic data such as temperature, mechanical load, vibration, etc.

[0006] Today's (current) sensors have an analog interface to a microcontroller and do not offer any extensive diagnostic and control options. Although many parameters (e.g. temperature, voltage, supply voltage) are acquired within the sensor device or sensor chip, this information cannot be called up by the microcontroller and is therefore only used within the sensor chip, e.g. for compensation purposes.

[0007] Conventional sensor chips do not offer any downstream communication possibilities, so the configuration or calibration information required by the sensor chip must be stored in the OTP (one-time programming) or non-volatile memory of the sensor chip. This requires a special customer programming process. Especially in the case of acquiring sensor data after the current measurement structure (e.g. inverter component) has been finally assembled, the programming step can be very cost-intensive. Since the programming pins of the sensor must be accessible on the inverter level (external connection), offline programming not only requires additional work, but also incurs a huge cost factor.

[0008] It is not feasible to dynamically (on-the-fly) adjust sensor parameters. For example, the gain of the sensor must be set so that the analog output signal at the full-value input signal of the sensor remains within the ADC input range. Therefore, in the case of predictable small input signals (for example, low current at low load), the system suffers from low ADC input signal offset, which may result in a poor signal-to-noise ratio.

[0009] Therefore, extended sensor information, such as temperature monitoring, mechanical voltage monitoring, or supply voltage monitoring, is not available at the sensor output. If a sensor error occurs (internal or external), the status is indicated by setting an available output signal to a safe state (e.g. an on-chip debug, which indicates an error state by an active continuous state). If additional parameters are required (e.g. busbar temperature), additional sensor elements (and their corresponding inputs on the evaluation microcontroller) must be implemented.

[0010] Typically, the test methods needed to check the integrity of the analog signal chain are introduced after the start of operation or by generating a start condition on one of the direct sensor-microcontroller connections of the sensor system. This approach either requires a large number of pins on both the sensor and the microcontroller, and / or it is difficult to flexibly control the required test sequence.

[0011] Therefore, there is a need for improved communication between a microcontroller and one or more sensor chips for control and diagnostics. Summary of the invention

[0012] This is achieved by the device and the method according to the invention. Advantageous further developments are the following.

[0013] According to a first aspect of the present disclosure, a sensor system is provided, comprising a microcontroller and at least one sensor chip. The sensor chip is designed to measure at least one physical parameter. The microcontroller and the sensor chip are coupled to each other via at least one analog signal interface (analog signal interface) for transmitting analog measurement data between the sensor chip and the microcontroller and via at least one digital signal interface (digital signal interface) for transmitting digital auxiliary information between the sensor chip and the microcontroller.

[0014] According to some embodiments, the digital signal interface between the sensor chip and the microcontroller is a bidirectional interface, so that digital data can be transmitted from the microcontroller to the sensor chip and from the sensor chip to the microcontroller in both directions. The digital signal interface between the sensor chip and the microcontroller can be designed as a bidirectional single-wire interface. Hardware and wiring costs can therefore be kept low.

[0015] According to some embodiments, the digital signal interface between the sensor chip and the microcontroller is designed as a single master (microcontroller) multi-slave (sensor chip) bus system. The sensor chip will only respond if the microcontroller issues a command and makes an inquiry. Therefore, it is easy to connect several sensors to the microcontroller.

[0016] According to some embodiments, the microcontroller and the sensor chip are coupled to each other in parallel via the analog signal interface and the digital signal interface. Thus, analog measurement signals and digital control and / or diagnostic signals can be transmitted in parallel (possibly even simultaneously) between the sensor chip and the microcontroller.

[0017] According to some embodiments, the sensor chip comprises a magnetic field sensor. This can be a magnetic field sensor for current measurement, for example a Hall sensor or a magnetoresistive sensor (AMR, GMR, TMR sensor). As already mentioned at the beginning, current measurement is noteworthy for applications, for example, in connection with electric vehicles. The proposed concept may of course also be noteworthy for other types of sensors, such as angle sensors, position sensors, etc. The sensor chip can of course also include other secondary sensors in addition to the primary sensor, for example temperature or pressure sensors.

[0018] According to some embodiments, the digital signal interface is designed to transmit digital configuration and / or calibration data and / or digital measurement data between the microcontroller and the sensor chip. For example, the microcontroller may include a non-volatile memory for configuration and / or calibration data, and is designed to send the configuration and / or calibration data to the sensor chip via the digital signal interface when the sensor chip starts working. Since no programmer or programming steps are required, end-of-line (EoL) calibration can be simplified. In addition, the need for non-volatile (NVM) memory in the sensor chip for storing calibration parameters can be eliminated. This can reduce the cost of the sensor system.

[0019] According to some embodiments, the microcontroller is designed to dynamically change the operating parameters of the sensor chip via a digital signal interface. Some examples of operating parameters are supply voltage, signal gain, bias current, etc. Thus, the operating parameters can be adapted to various environments or measurement requirements.

[0020] According to some embodiments, the sensor chip is designed to provide diagnostic data to the microcontroller via a digital signal interface. Some examples of diagnostic data include operating temperature, fault diagnostic data, etc. This allows for selective and extended diagnostics required for high availability systems and preventive maintenance. As a result, impending sensor failures can be detected early in some cases.

[0021] According to some embodiments, the microcontroller is designed to communicate a predetermined test sequence to the sensor chip via the digital signal interface. The concept of functional safety (controlled test sequence) can thereby be simplified at the application level.

[0022] According to some embodiments, the microcontroller is designed to set a variable data rate from a predetermined range for the digital signal interface. This means, for example, that the data rate can be adapted to specific measurement requirements. For some applications, certain physical quantities must be measured frequently, while in other applications, they or other physical quantities should be measured less frequently.

[0023] According to some embodiments, the sensor system includes a plurality of sensor chips, which are connected to a microcontroller via a digital signal interface as a data bus. The microcontroller is designed to provide addressing commands to the sensor chips via the digital signal interface. Each of these sensor chips is designed to transmit a random output signal to the microcontroller via its corresponding analog signal interface or its corresponding digital signal interface in response to the addressing command. Each of these sensor chips is designed to receive a unique address in response to its random output signal. According to some embodiments, the microcontroller is designed to assign a unique address to each of these sensor chips based on the random output signal. The microcontroller can assign its unique address to each of these sensor chips via the digital signal interface. Therefore, these sensor chips can be assigned addresses with a cheap addressing protocol in the initial addressing stage for further communication between the microcontroller and the sensor chip, and these addresses are known.

[0024] According to another aspect of the present disclosure, a method for communicating between a microcontroller and at least one sensor chip is proposed. The method includes: transmitting analog measurement data between the sensor chip and the microcontroller via at least one analog signal interface; and transmitting digital auxiliary information between the sensor chip and the microcontroller via a digital signal interface parallel to the analog signal interface. According to some embodiments, the digital signal interface between the sensor chip and the microcontroller is designed as a bidirectional single-master-multiple-slave bus interface, in which the microcontroller acts as a host and the sensor chip acts as a slave.

[0025] According to another aspect of the present disclosure, a sensor chip is proposed, which has: at least one sensor circuit, which is designed to provide an analog measurement signal in response to a physical parameter to be measured; at least one analog signal interface, which is designed to transmit the analog measurement signal from the sensor chip to a transmitting microcontroller; and a (bidirectional) digital signal interface, which is designed to transmit digital auxiliary information (for example, digital configuration and / or calibration data or digital measurement data) between the sensor chip and the microcontroller.

[0026] According to some embodiments, the sensor circuit includes a current sensor circuit having one or more magnetic field sensors.

[0027] According to some embodiments, the analog and digital signal interface is designed for transmitting analog and digital signals in parallel or even simultaneously between the sensor chip and the microcontroller.

[0028] According to some embodiments, the sensor chip is designed to provide diagnostic data (eg temperature, voltage, supply voltage, etc.) to the microcontroller via a digital signal interface.

[0029] According to some embodiments, the sensor chip is designed to receive configuration and / or calibration data from the microcontroller via the digital signal interface and to set operating parameters of the sensor chip based on the received configuration and / or calibration data.

[0030] Therefore, embodiments of the present disclosure provide a bidirectional digital control and diagnostic interface between a microcontroller and a sensor chip that enables sensor data to be uploaded to the microcontroller and data to be downloaded to the sensor chip. The data to be transmitted to the sensor chip may include configuration information, such as gain and offset settings, test patterns (e.g., for testing signal processing paths), and calibration information. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] Some embodiments of the apparatus and / or method will be described below by way of example only with reference to the accompanying drawings, in which:

[0032] Figure 1A A block diagram of a conventional sensor system having a microcontroller and a current sensor chip is shown;

[0033] Figure 1B A block diagram of a current sensor chip is shown.

[0034] Figure 1C A diagram of a conventional functionally safe sensor system is shown.

[0035] Figure 1D A block diagram of a conventional sensor system having a microcontroller and n sensor chips is shown;

[0036] Figure 2A A block diagram of a sensor system having a microcontroller and n sensor chips according to one embodiment is shown;

[0037] Figure 2B A block diagram of a sensor system having a microcontroller and n sensor chips according to another embodiment is shown;

[0038] Figure 3A shows a possible data frame for transmitting digital auxiliary information between the sensor chip and the microcontroller;

[0039] Figure 3B shows the concept for transmitting digital auxiliary information between the sensor chip and the microcontroller;

[0040] Figure 4A shows a possible sequence for assigning addresses to the sensor chip from the microcontroller's perspective;

[0041] Figure 4B shows a possible order of assigning addresses to sensor chips from the perspective of the sensor chips; and

[0042] Figure 5 A method of communication between a microcontroller and at least one sensor chip according to an embodiment is shown. DETAILED DESCRIPTION

[0043] Various examples will now be described more fully with reference to the accompanying drawings, in which some examples are shown. In the drawings, the thickness of lines, layers and / or regions may be exaggerated for clarity.

[0044] Therefore, although other examples can have various modifications and alternative forms, some specific examples thereof are shown in the drawings and described in detail subsequently. However, this detailed description does not limit other examples to the specific forms described. Other examples may cover all modifications, equivalences and alternatives that fall within the scope of the present disclosure. Similar reference numerals represent similar or similar elements in the description of the drawings, and when compared to each other, they may be implemented in the same or modified form while providing the same or similar functions.

[0045] It should be understood that when an element is referred to as being "connected" or "coupled" to another element, these elements may be directly connected or coupled or connected or coupled via one or more intermediate elements. If "or" is used to combine two elements A and B, it is understood that all possible combinations are disclosed, i.e., only A, only B, and A and B. An alternative wording for the same combination is "at least one of A and B." This also applies to combinations of more than two elements, if appropriately modified.

[0046] The terms used to describe specific examples herein are not intended to limit other examples. Whenever using singular forms such as "one", "one" and "this", "this", and only using a single element is neither expressly or implicitly defined as mandatory, other examples can also use multiple elements to implement the same function. Similarly, when the function is subsequently described as being implemented using multiple elements, other examples can use a single element or processing entity to implement the same function. It will be further understood that the terms "include" and / or "comprising" specify the existence of stated features, integers, steps, operations, processing, elements, parts and / or their groups when used, but do not exclude the existence or addition of one or more other features, integers, steps, operations, processing, elements, parts and / or any groups thereof.

[0047] Unless otherwise defined, all terms (including technical and scientific terms) are used herein in accordance with their common meaning in the art to which this example belongs.

[0048] Figure 1A A conventional system including a current sensor chip 10 and a microcontroller 30 is shown.

[0049] The current sensor chip 10 measures the current in the line 11 and provides an analog measurement signal on a unidirectional analog signal interface 12 (AOUT). An overcurrent signal can be displayed to the microcontroller 30 via a unidirectional overcurrent interface 13 (OCD: Overcurrent Detection) of the current sensor chip 10, which indicates whether the measured current is above a threshold value. The overcurrent signal can be a digital or binary signal (e.g. "high" = current too high, "low" = current not too high). The analog signal path between the analog signal interface 12 of the current sensor chip 10 and the ADC 31 of the microcontroller 30 has an analog circuit 40 for signal processing. In order to realize a functionally safe sensor system, it is necessary to Figure 1A In an embodiment of the present invention, the entire signal chain from the sensor chip 10 to the output of the ADC 31 is monitored.

[0050] A possible implementation of the current sensor chip 10 is Figure 1B Shown in.

[0051] The current flowing through the line 11 is measured by means of a differential Hall sensor 14 as a primary sensor. The resulting analog raw measurement signal 15 is supplied to an analog signal processing circuit 16, an analog amplifier circuit 17 and an analog filter circuit 18 before the resulting filtered analog measurement signal 19 is supplied to an analog signal interface 12 (AOUT). The amplified measurement signal at the filter input is also supplied to one or more overcurrent detection circuits 20 in order to compare the amplified measurement signal with one or more threshold values ​​21. The overcurrent detection circuit 20 provides a (digital) overcurrent signal at one or more unidirectional overcurrent interfaces 13. The (programmable) threshold value 21 can be stored in a non-volatile memory 22 of the current sensor chip 10. In addition, a secondary temperature sensor 23 and a secondary mechanical voltage sensor 24 are additionally present in the current sensor chip 10 shown here, whose measurement signals influence the amplification of the analog amplifier circuit 17 and can thus be used for temperature and voltage compensation.

[0052] In conventional implementations, the integrity of sensor readings can be checked by adding redundancy to the system. To this end, in some implementations, such as Figure 1C (left) shows that the number of sensors is doubled for this purpose (e.g. for battery management systems). In electric drive applications (see Figure 1C , right), current sensors are available for all phases. Since the sum of all currents must be zero (assuming no leakage currents exist), the integrity of the sensor system (composed of sensors from all phases) can be checked. However, it is not possible to identify a single sensor that causes an erroneous output value, which is particularly problematic in high-availability systems that must continue to operate in the presence of a single fault (e.g. a defective sensor).

[0053] In conventional sensor systems, there is only a unidirectional information flow from the sensor chip 10 to the microcontroller 30 via the signal interfaces 12 and 13. Figure 1D Schematically shown for n sensors 10 - 1 , ..., 10 - n at a microcontroller (μC) 30 . The diagnostic mode for the sensors 10 - 1 , ..., 10 - n is difficult to trigger and the sensor settings are not (dynamically) changed. In addition, a non-volatile memory 22 is required in the current sensor chip 10 - 1 , ..., 10 - n, which must be programmed in the EoL programming. In addition, there is no transmission channel for additional sensor information (e.g. functional safety, diagnostics).

[0054] In order to at least partially compensate for these disadvantages, a sensor system 200 which is improved compared to the above is proposed, which Figure 2A It is schematically shown in FIG.

[0055] The sensor system 200 comprises a microcontroller 230 and at least one sensor chip 210. In the embodiment shown, there are n sensor chips 210-1, ..., 210-n (n=1, 2, 3, ...). Each sensor chip 210-1, ..., 210-n is designed to measure at least one physical variable, such as a magnetic field or a current. The microcontroller 230 and the sensor chips 210-1, ..., 210-n are coupled via n unidirectional analog signal interfaces for transmitting analog measurement data from the corresponding sensor chip 210-1, ..., 210-n to the microcontroller 230. At least one analog line 212-1, ..., 212-n is therefore led from each sensor chip 210-1, ..., 210-n to the microcontroller 230. Optionally, a unidirectional digital overcurrent interface 213-1, ..., 213-n can also be led from each sensor chip 210-1, ..., 210-n to the microcontroller 230. The microcontroller 230 and the sensor chips 210 - 1 , . . . , 210 - n are also coupled to each other via a bidirectional digital signal interface 250 for transmitting digital auxiliary information between the sensor chips 210 - 1 , . . . , 210 - n and the microcontroller 230 .

[0056] The digital auxiliary information does not involve a unidirectional 1-bit overcurrent display. According to some embodiments, the digital auxiliary information does not involve the measured values ​​of the primary physical variables to be measured (e.g. magnetic field, current, angle, etc.), because they are transmitted in an analog manner via lines 212-1, ..., 212-n. Instead, different digital sensor control data (commands), sensor diagnostic data, configuration and / or calibration data, sensor parameters, etc. may be involved. The digital auxiliary information (e.g. control commands, addresses, data) via the bidirectional digital signal interface 250 may have more than one bit.

[0057] However, in order to improve the functional safety of the sensor system 200, it can also be proposed in some embodiments that, in addition to transmitting analog measurement values ​​via the analog interfaces 212-1, ..., 212-n, digital measurement values ​​of the physical parameters to be measured are also transmitted from at least some sensor chips 210-1, ..., 210-n to the microcontroller 230 via the bidirectional digital signal interface 250.

[0058] Therefore, a bidirectional digital control and diagnostic interface 250 (DCDI) is proposed to solve the diagnostic problem and enable the transmission of extended diagnostic information between the sensor chips 210-1, ..., 210-n and the microcontroller 230. The bidirectional digital interface 250 can now implement the following functions:

[0059] a) Download configuration and calibration data at the start of work.

[0060] The corresponding information may be stored in a non-volatile memory of the microcontroller 230 and loaded into the sensor chip when the sensor chip 210 is switched on.

[0061] b) Dynamically adjust sensor parameters.

[0062] Key parameters such as bandwidth, gain and offset of each sensor chip 210 - 1 , . . . , 210 - n may be set during normal operation of the sensor chip.

[0063] c) Upload extended diagnostic information

[0064] Diagnostic data available in the sensor chip 210 may be monitored via the diagnostic interface 250. The sensor chip 210 may, for example, provide real-time information regarding power supply voltage monitoring, bus temperature, and the like.

[0065] d) Controlled activation of test sequences

[0066] To activate the test sequence, microcontroller 230 may execute a timely activation test sequence. As an example, sensor chip 210 may be forced to emulate a defined current pattern in order to monitor not only the integrity of the sensor but also the integrity of the entire signal processing path from sensor chip 210 to the μC processing core.

[0067] Figure 2B Schematically shown is a microcontroller 230 which is coupled to a plurality of n sensor chips 210 - 1 , . . . , 210 - n via analog and digital interfaces.

[0068] Each of the sensor chips 210-1, ..., 210-n has a unidirectional analog signal output 212-1, ..., 212-n (AOUT) for the current measurement signal. For this purpose, corresponding analog signal inputs 232-1, ..., 232-n are provided on the microcontroller 230 side. Each of the sensor chips 210-1, ..., 210-n has a unidirectional digital overcurrent output 213-1, ..., 213-n (OCD), which is connected to its overcurrent interface 233 on the microcontroller 230 side. Each of the sensor chips 210-1, ..., 210-n has a bidirectional digital control and diagnostic interface 250-1, ..., 250-n (DCDI), which is coupled to its control and diagnostic interface 250 on the microcontroller 230 side. Optionally, the sensor chips 210-1, ..., 210-n also have analog inputs 260-1, ..., 260-n for setting a voltage (VREF) for setting the operating point of the corresponding analog amplifier circuit 17. For this purpose, corresponding analog signal outputs 234-1, ..., 234-n are provided on the microcontroller 230 side.

[0069] Analog and digital signals can be transmitted in parallel between the sensor chips 210-1, ..., 210-n and the microcontroller 230 via the unidirectional analog signal outputs 212-1, ..., 212-n and the bidirectional digital signal interface 250. When analog measurement signals (e.g., current measurement signals) arrive at the microcontroller 230 via the signal outputs 212-1, ..., 212-n of the sensor chips 210-1, ..., 210-n, digital data different therefrom can be exchanged between the microcontroller 230 and the sensor chips 210-1, ..., 210-n via the digital signal interface 250. Figure 2B As shown, the bidirectional digital signal interface 250 between the sensor chip 210-1, ..., 210-n and the microcontroller 230 can be designed as a bidirectional single-wire interface and can function as a single-master (microcontroller 230) multi-slave (sensor chip 210-1, ..., 210-n) bus system. Therefore, the microcontroller 230 issues commands and makes inquiries, and the sensor chips 210-1, ..., 210-n only react. The bus master controls the communication flow by sending a host request frame to the sensor bus. According to the host request frame, information is transmitted to the sensor (write frame) or received from the sensor (read frame). Therefore, a large number of sensors can be connected to the microcontroller 230 in a simple manner. The digital control and diagnostic interface 250 can be designed as a single-wire UART interface (UART=Universal Asynchronous Receiver / Transmitter), for example.

[0070] Between the microcontroller 230 and the sensor chips 210-1, ..., 210-n, the digital auxiliary information may be transmitted as a serial digital data stream having a fixed frame via the digital control and diagnostic interface 250. Figure 3A As shown in the example of, frame 310 can include start bit 311, some data bits 312, optional parity bits for detecting transmission errors, and stop bits 313. The transmitter does not need to notify the receiver of the transmission beat via its own control line. On the contrary, the receiver can calculate the beat of the transmitter according to the beat of the data line and synchronize with it with the help of start bit and stop bit. For example, frame 310 can be encoded as an 8-bit UART frame. Information can be transmitted on the physical layer from a single wire. For example, a programmable baud rate (e.g., 4 speeds) from 38.4kBit / s to 115.2kBit / s can be provided by microcontroller 230. For example, Manchester code or non-return to zero (NRZ) or non-return to zero inversion (NRZI) encoding can be used as a line code for information transmission.

[0071] Different types of communication may occur between the microcontroller 230 and the sensor chips 210-1, ..., 210-n. A first possible communication method is as follows: Figure 3B Shown (top).

[0072] Figure 3B (Top) shows a possible data communication regarding the query of sensor data by the microcontroller 230, such as sensor status or diagnostic data. With the command frame 320, the microcontroller 230 first requests certain sensor status or diagnostic data via the digital interface 250. Depending on the number of possible commands, they can be encoded using a corresponding number of bits. With the subsequent address frame 330 via the digital interface 250, the microcontroller 230 indicates which sensor of the sensor chips 210-1, ..., 210-n to obtain status or diagnostic data from. Depending on the number of possible addresses, they can be encoded using a corresponding number of bits. Based on the sensor ID contained in the address frame 330, the addressed or mentioned sensor chip transmits the requested sensor status or diagnostic data in one or more data frames 340 to the microcontroller 230, and then transmits the safety data frame 350. It is obvious to a person skilled in the art that the order of the command, address or data frames shown can also be selected differently.

[0073] Figure 3B(Lower) also shows a possible data communication regarding the sending of data - for example, configuration or control data - by the microcontroller 230 to the sensor chip 210. With the command sent in the command frame 320, the microcontroller 230 first announces the configuration or control data via the digital interface 250. With the address frame 330, the microcontroller 230 indicates via the digital interface 250 to which of the sensor chips 210-1, ..., 210-n the configuration or control data is to be sent. The microcontroller 230 then sends the announced configuration or control data in one or more data frames 345 to the previously addressed sensor chip 210 via the digital interface 250. The sensor chip 210 confirms the receipt of the data via the digital interface 250 with a secure data frame 350. It is obvious to a person skilled in the art that the order of command, address or data frames shown can also be chosen differently.

[0074] The master-slave control principle can prevent bus conflicts.

[0075] The communication is controlled via the (single) bus master (microcontroller 230) by issuing command or address frames. Each frame sent by the bus master 230 contains address information, with respect to which the sensors 210-1, ..., 210-n are respectively addressed. The addressed slave sensors 210-1, ..., 210-n transmit their information to the bus 250 only after the address frame has been successfully received and the address information has matched.

[0076] In order for this addressing principle to work, it is absolutely necessary to assign a unique address to each bus slave 210-1, ..., 210-n. This assignment can be done in a variety of ways. On the one hand, the bus address can be implemented by a hardware solution, such as address-specific wiring of the individual sensors 210-1, ..., 210-n. Alternatively, a programming step can also be used to write the unique address into the non-volatile memory of the sensor 210-1, ..., 210-n involved before the sensor network is put into operation. Both hardware wiring and programming of the individual sensors 210-1, ..., 210-n have the disadvantage that either additional programming steps are required in production or several different components (sensor modules) are retained depending on the number of bus users.

[0077] Therefore, it is advantageous to introduce an automatic addressing mechanism, via which a unique address can be dynamically assigned to each bus user 210-1, ..., 210-n during system initialization. Although various methods for automatic addressing are known (e.g., daisy chain methods), in the present case, it is advantageous to use one or more simulated, unique sensor-to-microcontroller connections.

[0078] For automatic addressing, the bus master 230 can reset the sensor addresses of all bus slaves 210-1, ..., 210-n involved using a first command transmitted via the sensor bus 250. The bus master 230 can then trigger the generation of random addresses in the individual slaves 210-1, ..., 210-n by a second command. These addresses are then transmitted to the bus master 230 using the analog connection and / or the digital interface 250. The bus master 230 assigns the addresses used in the application to those sensors 210-1, ..., 210-n that already have unique addresses available. For those sensors 210-1, ..., 210-n that have not yet generated unique addresses due to the random generation, a new random cycle with another evaluation cycle is started by the bus master 230. Since the probability of the same random address being combined with multiple iterations is very low, the address assignment can be achieved very efficiently.

[0079] According to a possible embodiment, after receiving a command to generate a random address, each sensor 210-1, ..., 210-n can generate its address and output the address as a digital bit stream on the bus 250. Asymmetric output levels can be used, so that the logic level output on the bus 250 is significantly weaker than the opposite level. If a bus conflict occurs, the stronger output level suppresses the weaker output level (dominant with respect to the recessive level). The sensors 210-1, ..., 210-n continuously monitor the output data stream. In the event of a bus conflict with a recessive output level, the affected sensor 210-1, ..., 210-n recognizes the conflict and resolves the conflict by switching the output stage of the digital interface 250 high-ohmically. After the sensor 210-1, ..., 210-n outputs its random address, success or failure (recognized bus conflict) is indicated via a defined level on the analog output line 212-1, ..., 212-n. Therefore, the bus master 230 can determine: which sensor has successfully completed the cycle with the address received by it. In this case, the successful sensor can be assigned an address and the next arbitration cycle can be initiated.

[0080] During the initial bus setup phase (address assignment), bus conflicts may occur (multiple slaves simultaneously transmit data to the bus). The bus setup phase may be initiated with a dedicated frame (arbitration frame) to assign unique addresses to the individual sensors. The frame contains an addressing command, with which address assignment may be initiated. Therefore, for the bus setup phase, the microcontroller 230 may be designed to provide addressing commands to the sensor chips 210-1, ..., 210-n via the digital signal interface 250. Each of the sensor chips 210-1, ..., 210-n may be designed to: in response to the addressing command, transmit a random output signal to the microcontroller 250 via its corresponding analog signal interface 212-1, ..., 212-n or its corresponding digital signal interface 250-1, ..., 250-n. Each of the sensor chips 210-1, ..., 210-n may be designed to receive a unique address from the microcontroller 230 in response to its random output signal. According to some embodiments, the microcontroller is designed to assign a unique address to each of the sensor chips based on the random output signal. The microcontroller 230 can assign its unique address to each of the sensor chips via the digital signal interface. Therefore, the sensor chips can be assigned addresses in an inexpensive addressing protocol at the initial addressing stage for further communication between the microcontroller and the sensor chips and make these addresses known.

[0081] Figure 4A An embodiment of a method 400 for assigning addresses is shown from the perspective of the microcontroller 230 .

[0082] With the command "Auto_Reset.all" via the digital interface 250, the microcontroller 230 first instructs all sensor chips 210-1, ..., 210-n to set their analog output interfaces 212-1, ..., 212-n to "high" (H) at 411. Then, another command "Auto_Reset.test" appears at 412 on the microcontroller 230 side via the digital interface 250. In response to the command "Auto_Reset.test", each sensor chip 210-1, ..., 210-n outputs a random digital output signal via its corresponding digital signal interface 212-1, ..., 212-n. After the sensor chip 210-1, ..., 210-n outputs its random address, success or failure (identified bus conflict) is indicated via a defined level on the analog output line 212-1, ..., 212-n. The analog output signal can then be read out at 413 via the analog signal input 232-1, ..., 232-n of the microcontroller 230 and its ADC. This allows the microcontroller 230 to determine which sensor 210-1, ..., 210-n has successfully completed the cycle with the address received by it. In this case, an address can be assigned to the successful sensor chip 210-1, ..., 210-n at 415. If the analog output signal of the sensor does not indicate a bus conflict (success), the sensor can be assigned an address at 415 via the digital interface 250. As a result, its analog output signal is used to be set to "L" for the duration of the addressing process 400, for example. If the analog output signal of the sensor indicates a bus conflict (failure), step 412 is repeated until no more conflicts can be confirmed. After an address has been assigned to a sensor at 415, it is queried at 416 whether all sensors 210-1, ..., 210-n have been assigned addresses. If this is not the case, the analog output interfaces 212 of all remaining unaddressed sensors are set to “H” at 417 using the command “Auto Reset (unassigned)” and then switched back to random mode at 412 .

[0083] Figure 4B The method 400 for assigning addresses is described from the perspective of the sensor chip 210 .

[0084] First, at 421 the logic variable "Address_assigned" is set to "error". This means that an address has not yet been assigned to the sensor chip. At 422 and 423, the sensor chip 210 checks whether a command has been received from the microcontroller via the digital interface 250 and checks the state of the logic variable "Address_assigned". If the logic parameter "Address_assigned" = "error", the sensor checks at 424 whether the received command corresponds to "Auto_Reset.test". If this is the case, the sensor chip 210 outputs a random digital output signal via its digital signal interface 250. The digital output signal can then be tested for conflicts at 426. In the event of a conflict with other sensor chips, the analog output signal is set to "L" at 427, the output stage of the digital interface 250 is switched to high resistance, and the method is continued at 422 while waiting for a new command. If it is determined that there is no conflict with other sensor chips, the method is also continued at 422 while waiting for a new "Auto_Reset.Assign" command. If the command is received at 428, it is checked at 429 whether the analog output interface 212 of the sensor chip 210 is at "high" (H). If this is the case, an address is assigned to the sensor via the digital interface 250 at 430. Then at 431, the logical variable "Address_assigned" is set to "true" and the analog output signal is set to "L" for the duration of the addressing process 400. The method then continues at 422 while waiting for a new command.

[0085] In an alternative embodiment, after an initialization command (e.g. "Auto_Reset.all"), a random address can be generated again by a second command (e.g. "Auto_Reset.test"). In this embodiment, the address is output as a characteristic voltage on one of the analog lines 212 or 260 by a digital-to-analog converter. By reading in the analog voltage, the bus master 230 recognizes the uniqueness or possible overlap of the address. The sensors 210-1, ..., 210-n that have generated a unique address are assigned a production address via the digital interface 250. Sensors with the same address will perform a new cycle to generate a random address.

[0086] After all sensor chips have been assigned addresses using this method, digital data can be exchanged between microcontroller 230 and sensor chip 210 via digital single-master-multiple-slave bus line 250 in parallel with analog measurement signals. Figure 5 An exemplary communication method 500 between the microcontroller 230 and at least one sensor chip 210 is shown.

[0087] The method 500 includes transmitting 502 analog measurement data between the sensor chip 210 and the microcontroller 230 via at least one analog signal interface 212 and in parallel transmitting 504 digital auxiliary information between the sensor chip 210 and the microcontroller 230 via the bidirectional digital signal interface 250 .

[0088] The core of the disclosed embodiments is to continue the analog signal path for broadband real-time current information, but introduce a digital interface that enables control and diagnostics of the current sensor and the system to which it is connected. Since the proposed digital interface is bus-capable, the additional complexity and number of wires (single wire!) can be reduced to an absolute minimum. The proposed digital interface enables a simple and inexpensive sensor system with a high degree of safety and availability. The complexity of off-line calibration is required and reduced.

[0089] Aspects and features mentioned and described in conjunction with one or more of the previously detailed examples and figures may be combined with one or more other examples in order to replace similar features of the other examples or to additionally introduce features into the other examples.

[0090] The example may further be or relate to a computer program with a program code, which is used to perform one or more of the above methods when the computer program is run on a computer or processor. The steps, operations or processes of the various methods described above can be performed by a programmed computer or processor. The example may also cover program storage devices, such as digital data storage media, which are readable by machines, processors or computers and encode machine-executable, processor-executable or computer-executable programs by instructions. The instructions guide some or all of the steps of the above methods or cause the implementation of these steps. The program storage device may include or be, for example, digital storage, magnetic storage media such as disks and tapes, hard drives or optically readable digital data storage media. Other examples may cover computers, processors or control units programmed to implement the steps of the above methods, or cover (field) programmable logic arrays ((F)PLA=(field) programmable logic arrays) or (field) programmable gate arrays ((F)PGA=(field) programmable gate arrays) programmed to implement the steps of the above methods.

[0091] The description and drawings only illustrate the principles of the present disclosure. In addition, all examples listed herein are intended to be used for illustrative purposes only to help readers understand the principles of the present disclosure and the inventor's ideas for contributing to further development of the technology. All statements about the principles, aspects and examples of the present disclosure and their specific examples include their equivalents.

[0092] A functional block represented as a "means for..." performing a specific function may represent a circuit configured to perform the specific function. Thus, a "means for something" may be implemented as a "means configured or adapted for something," such as a device or circuit configured or adapted for a corresponding task.

[0093] The functions of the various elements shown in the drawings, including any functional blocks labeled as "means", "means for providing sensor signals", "means for generating emission signals", etc., can be implemented in the form of dedicated hardware (such as "signal providers", "signal processing units", "processors", "controllers", etc.) as well as hardware capable of executing software in association with appropriate software. When provided by a processor, the functions can be provided via a single dedicated processor, a single shared processor, or multiple independent processors (some or all of which are shared). However, the term "processor" or "controller" is far from being limited to hardware that can only execute software, but can include digital signal processor (DSP) hardware, network processors, application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), read-only memories (ROMs), random access memories (RAMs), and non-volatile memories for storing software. Other hardware, conventional and / or customized, may also be included.

[0094] For example, a block diagram may illustrate a rough circuit diagram implementing the principles of the present disclosure. Similarly, a flow chart, a process diagram, a state transition diagram, a pseudo code, etc. may represent various processes, operations, or steps, which may be substantially represented in a computer-readable medium executed by a computer or processor, for example, whether or not such a computer or processor is explicitly shown. The methods disclosed in the specification or claims may be implemented via a device having means for performing each of the corresponding actions of the methods.

[0095] It is understood that the disclosure of multiple steps, processes, operations or functions disclosed in the specification and claims may not be constructed in a specific order, unless otherwise expressly or implicitly, for example, for technical reasons. Therefore, the disclosure of multiple actions or functions will not limit them to a specific order, unless these actions or functions are not interchangeable for technical reasons. In addition, in some examples, a single step, function, process or operation may include and / or may reveal multiple sub-steps, sub-functions, sub-processes or sub-operations, respectively. These sub-steps may be included in the disclosure of the single step or part thereof, unless explicitly excluded.

[0096] In addition, the claims are incorporated into the detailed description, where each claim can serve as an independent example by itself. Although each claim can serve as an independent example by itself, it should be noted that - although a dependent claim can refer to a specific combination with one or more other claims in a claim, - other examples can also include a combination of the dependent claim with the subject matter of each other dependent claim or independent claim. Such a combination is explicitly proposed herein unless the specific combination is not intended. In addition, the features of a claim are also included in any other independent claim, even if the claim is not directly dependent on the independent claim.

Claims

1. A sensor system (200), comprising: Microcontroller (230); A plurality of sensor chips, each sensor chip (210) in the plurality of sensor chips being designed to measure a physical quantity; The microcontroller (230) and each of the sensor chips (210) are coupled to each other via the following interface: a plurality of analog signal interfaces (212) for transmitting analog measurement data between the corresponding sensor chips and the microcontroller, wherein the number of the plurality of analog signal interfaces (212) is the same as the number of the plurality of sensor chips, and A bidirectional digital signal interface (250) is used as a data bus to transmit digital auxiliary information between each of the sensor chips (210) and the microcontroller (230).

2. The sensor system (200) according to claim 1, wherein: The microcontroller (230) and the sensor chip (210) are coupled to each other in parallel via the analog signal interface (212) and the digital signal interface (250) to transmit analog and digital signals in parallel between each of the sensor chips and the microcontroller.

3. The sensor system (200) according to any one of the preceding claims, wherein: The sensor chip (210) includes a magnetic sensor.

4. The sensor system (200) according to any one of the preceding claims, wherein: The digital signal interface (250) is designed to transmit digital configuration and / or calibration data and / or digital measurement data between the microcontroller (230) and the sensor chip (210).

5. The sensor system (200) according to claim 4, wherein: The microcontroller (230) comprises a non-volatile memory for the configuration and / or calibration data, and the microcontroller is designed to send the configuration and / or calibration data to the sensor chip (210) when the sensor chip (210) starts to operate.

6. The sensor system (200) according to any one of the preceding claims, wherein: The microcontroller (230) is designed to dynamically change the operating parameters of the sensor chip (210) via the digital signal interface (250).

7. The sensor system (200) according to any one of the preceding claims, wherein: The sensor chip (210) is designed to provide diagnostic data to the microcontroller (230) via the digital signal interface (250).

8. The sensor system (200) according to any one of the preceding claims, wherein: The microcontroller (230) is designed to communicate a predetermined test sequence to the sensor chip (210) via the digital signal interface (250).

9. The sensor system (200) according to any one of the preceding claims, wherein: The digital signal interface (250) between the sensor chip (210) and the microcontroller (230) is designed as a bidirectional single-wire interface.

10. The sensor system (200) according to any one of the preceding claims, wherein: The digital signal interface (250) between the sensor chip (210) and the microcontroller (230) is designed as a single-master-multiple-slave bus system.

11. The sensor system (200) according to any one of the preceding claims, wherein: The microcontroller (230) is designed to set a variable data rate from a predetermined range for the digital signal interface (250).

12. The sensor system (200) according to any one of the preceding claims, wherein: The plurality of sensor chips include n sensor chips (210-1, . . . , 210-n), the n sensor chips are connected to the microcontroller (230) via the digital signal interface (250) as a data bus, The microcontroller (230) is designed to provide addressing commands to at least n-1 sensor chips via the digital signal interface (250). Each of the at least n-1 sensor chips is designed to: in response to the addressing command, transmit a random output signal to the microcontroller (230) via a corresponding analog signal interface (212) of the sensor chip or a corresponding digital signal interface (250) of the sensor chip, and Each sensor chip of the at least n-1 sensor chips is designed to receive a unique address in response to a random output signal of the sensor chip.

13. The sensor system (200) according to claim 12, wherein: The microcontroller (230) is designed to assign a unique address of each sensor chip of the at least n-1 sensor chips via the digital signal interface.

14. A method (500) for communicating between a microcontroller and a plurality of sensor chips, each of the plurality of sensor chips being designed to measure a physical parameter, the method comprising: Transmitting (502) analog measurement data between the corresponding sensor chips and the microcontroller via a plurality of analog signal interfaces, wherein the number of the plurality of analog signal interfaces (212) is consistent with the number of the plurality of sensor chips; as well as Digital auxiliary information is transmitted (504) between each of the sensor chips and the microcontroller via a bidirectional digital signal interface parallel to the analog signal interface as a data bus.

15. A sensor chip (210) designed to operate as the sensor chip in the sensor system according to any one of claims 1 to 13.

Citation Information

Patent Citations

  • System of intelligent sensors in an electrical panelboard

    CN103620424A

  • Digital sensor system

    CN105588584A

  • Current sensor chip with magnetic field sensor

    CN106249021A

  • Tire pressure monitoring system (TPMS) module, system and method of acknowledging data transmissions for TPMS

    CN110065348A

  • Wireless communication link processor

    CN201657340U