Fault indication system and electronic equipment
By introducing an indication module into the I2C communication bus, the optical, acoustic or vibration indication modules are used to quickly detect the communication link status, and the problems of low efficiency and high cost of troubleshooting of I2C communication links in the prior art are solved, and rapid and economical fault detection.
Patent Information
- Application Number
- CN202420188383.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-25
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2034-01-25
AI Technical Summary
In the prior art, when communicating through the I2C communication bus, the method of determining whether the communication link is circulating is inefficient and costly, especially in large systems or frequent detection scenarios, the troubleshooting time is long and costly.
A fault indication system is designed, including an I2C communication bus, an indication module and a master chip. The slave chip is used to operate when the transmission state is normal and to enter the second working state when abnormal. It is quickly determined by the optical, acoustic or vibration indication module. Communication link status reduces the time and cost of troubleshooting data transmission failures.
The data transmission status of the I2C communication bus is quickly determined by indicating the working status of the module. Compared with the oscilloscope troubleshooting method, the time and cost of troubleshooting is reduced, and the efficiency and economicality of communication link fault detection is improved.
Smart Images

Figure CN222053087U_ABST
Abstract
Description
Technical Field
[0001] The utility model embodiment relates to the technical field of display screen control, and in particular to a fault indication system and electronic equipment. Background Art
[0002] The I2C communication protocol is now widely used for communication between multiple integrated circuits in a system because of its small number of pins, simple hardware implementation, strong scalability, and no need for external transceiver devices such as USART and CAN communication protocols.
[0003] At present, when the existing master chip and slave chip communicate through the I2C communication bus, it is necessary to determine whether the communication link is flowing, such as using an oscilloscope to detect whether there is data transmission on the I2C communication bus to determine whether the data of the master chip is sent to the slave chip. However, this method of determining the fault is slow and costly. Utility Model Content
[0004] The purpose of the embodiments of the utility model is to provide a fault indication system and electronic equipment, which can reduce the time required for troubleshooting data transmission faults and reduce the troubleshooting costs.
[0005] A technical solution adopted by the embodiment of the utility model is: to provide a fault indication system, including: an I2C communication bus, an indication module, a master chip, and at least one slave chip. The master chip is connected to each of the slave chips through the I2C communication bus, and the indication module is also connected to the I2C communication bus. The indication module is used to work in a first working state when the transmission state of the I2C communication bus is normal, and to work in a second working state when the transmission state is abnormal.
[0006] In some embodiments, the indication module includes one of a light indication module, a sound indication module and a vibration indication module.
[0007] In some embodiments, the I2C communication bus includes a data line and a clock line, the indication module is the light indication module, and the light indication module includes a first light indication unit and a second light indication unit. The first end of the master chip is connected to the first end of each of the slave chips through the data line, the second end of the master chip is connected to the second end of each of the slave chips through the clock line, the data line is also connected to the first light indication unit, and the clock line is also connected to the second light indication unit.
[0008] In some embodiments, the first light indication unit includes a first LED lamp. The first LED lamp is connected to the data line.
[0009] In some embodiments, the second light indication unit comprises a second LED lamp. The second LED lamp is connected to the clock line.
[0010] In some embodiments, the master chip is a control chip. The control chip is connected to each of the slave chips via the I2C communication bus.
[0011] In some embodiments, the control chip includes stm32 or GD32.
[0012] In some embodiments, each of the slave chips is a functional chip. The master chip is communicatively connected with each of the functional chips via the I2C communication bus.
[0013] In some embodiments, the functional chip includes one of an RTC chip, a clock chip, an audio and video processing chip, a logic processing chip, and a power supply chip.
[0014] In a second aspect, an embodiment of the utility model provides an electronic device, which includes a display screen and a fault indication system as described in any one of the first aspects; the display screen is connected to the fault indication system.
[0015] Compared with the prior art, the utility model has the following beneficial effects: Different from the prior art, the utility model provides a fault indication system and an electronic device, the fault indication system comprising: an I2C communication bus, an indication module, a master chip, and at least one slave chip. The master chip and each slave chip are connected to each other through the I2C communication bus, and the indication module is also connected to the I2C communication bus. The indication module is used to work in a first working state when the transmission state of the I2C communication bus is normal, and to work in a second working state when the data is abnormal. In the fault indication system, when data is transmitted between the master chip and the slave chip via the I2C communication bus, if the communication link between the master chip and the slave chip is flowing, that is, the transmission state of the I2C communication bus is normal, the indication module operates in the first working state; if the communication link between the master chip and the slave chip is abnormal, that is, the transmission state of the I2C communication bus is abnormal, that is, there is a fault in the system, the indication module operates in the second working state. Then, whether there is a fault in the transmission state of the data on the I2C communication bus can be determined by the working state of the indication module. Compared with the method of troubleshooting with the help of other external devices such as an oscilloscope, the utility model can reduce the time required for troubleshooting data transmission faults and reduce the troubleshooting cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements / modules and steps with the same reference numerals in the drawings are represented as similar elements / modules and steps. Unless otherwise specified, the figures in the drawings do not constitute proportional limitations.
[0017] Figure 1 It is a structural block diagram of a fault indication system provided by an embodiment of the utility model;
[0018] Figure 2 It is a structural block diagram of another fault indication system provided by an embodiment of the utility model. DETAILED DESCRIPTION
[0019] The utility model is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the utility model, but do not limit the utility model in any form. It should be pointed out that for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the utility model. These all fall within the scope of protection of the utility model.
[0020] For ease of understanding of the present application, the present application is described in more detail below in conjunction with the accompanying drawings and specific embodiments. Unless otherwise defined, all technical and scientific terms used in this specification have the same meaning as those generally understood by those skilled in the art of the present application. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not used to limit the present application. The term "and / or" used in this specification includes any and all combinations of one or more related listed items.
[0021] It should be noted that, if there is no conflict, the various features in the embodiments of the present utility model can be combined with each other, and all are within the scope of protection of this application. In addition, although the functional module division is performed in the device schematic, in some cases, the module division can be different from that in the device. In addition, the words "first", "second", etc. used in this article do not limit the data and execution order, but only distinguish the same items or similar items with basically the same functions and effects.
[0022] In the prior art, when the existing master chip and the slave chip communicate through the I2C communication bus, it is necessary to determine whether the communication link is flowing. Using an oscilloscope to detect data transmission on the I2C communication bus is a common method to determine whether the data of the master chip is successfully sent to the slave chip. Since the oscilloscope needs to detect data transmission one by one, for large systems or scenarios that require frequent detection, this method may be inefficient and take a long time to troubleshoot. In addition, the cost of the oscilloscope itself is also high, so it may not be practical in large-scale applications. Therefore, finding a more efficient and lower-cost way to determine whether the I2C communication link is normal has become a problem to be solved.
[0023] In order to solve the above technical problems, the embodiment of the utility model connects the I2C communication bus through an indication module. In this way, when the master chip and the slave chip transmit data through the I2C communication bus, if the transmission status of the I2C communication bus is normal, that is, the system has no fault, then the indication module works in the first working state; if the transmission status of the I2C communication bus is abnormal, that is, there is a fault in the system, then the indication module works in the second working state. Whether there is a fault in the transmission status of the data on the I2C communication bus can be directly determined through the working status of the indication module. Compared with the method of troubleshooting with the help of other external devices such as oscilloscopes, the utility model can reduce the time required for troubleshooting data transmission faults and reduce the troubleshooting cost. In the first aspect, the embodiment of the utility model provides a fault indication system, please refer to Figure 1 The fault indication system includes: an I2C communication bus 10, an indication module 20, a master chip 30, and at least one slave chip 40.
[0024] The master chip 30 and each slave chip 40 are connected to each other through the I2C communication bus 10, and the indication module 20 is also connected to the I2C communication bus 10. The indication module 20 is used to work in a first working state when the transmission state of the I2C communication bus 10 is normal, and to work in a second working state when the transmission state is abnormal.
[0025] Specifically, the indication module 20 includes one of a light indication module, a sound indication module and a vibration indication module. The transmission state refers to the state of data transmission of the I2C communication bus 10. If the transmission state is normal, the master chip 30 and the slave chip 40 can transmit data through the I2C communication bus 10. If the transmission state is abnormal, the master chip 30 and the slave chip 40 cannot transmit data through the I2C communication bus 10, and the system is faulty.
[0026] The light indication module can be an indicator light, such as an LED lamp. The first working state can be that the LED lamp is emitting light or flashing, and the second working state can be that the LED lamp is not emitting light. When the master chip 30 communicates normally with each slave chip 40, such as the master chip 30 transmits data to the slave chip 40 through the I2C communication bus 10, or the slave chip 40 transmits data to the master chip 30 through the I2C communication bus 10, that is, the I2C communication bus 10 can transmit data and the transmission state is normal, the LED lamp will emit light or flash. When the master chip 30 communicates abnormally with each slave chip 40, such as the master chip 30 cannot transmit data to the slave chip 40 through the I2C communication bus 10, or the slave chip 40 cannot transmit data to the master chip 30 through the I2C communication bus 10, that is, the I2C communication bus 10 cannot transmit data and the transmission state is abnormal, the LED lamp will not emit light. It can be seen that different transmission data states on the I2C communication bus 10 correspond to different working states of the LED lamp. Among them, the LED lamp is lit at a high level, and its flashing color can be set according to actual needs.
[0027] The sound indication module can be a buzzer. The first working state can be that the buzzer sounds, and the second working state can be that the buzzer does not sound. When the master chip 30 communicates normally with each slave chip 40, such as the master chip 30 transmits data to the slave chip 40 through the I2C communication bus 10, or the slave chip 40 transmits data to the master chip 30 through the I2C communication bus 10, that is, the I2C communication bus 10 can transmit data and the transmission state is normal, the buzzer will sound. When the master chip 30 communicates abnormally with each slave chip 40, such as the master chip 30 cannot transmit data to the slave chip 40 through the I2C communication bus 10, or the slave chip 40 cannot transmit data to the master chip 30 through the I2C communication bus 10, that is, data cannot be transmitted on the I2C communication bus 10 and the transmission state is abnormal, the buzzer will not work. It can be seen that different data transmission states on the I2C communication bus 10 correspond to different working states of the buzzer.
[0028] The vibration indication module can be a vibrator, and the first working state can be that the vibrator is vibrating and working, and the second working state can be that the vibrator is not working. When the master chip 30 communicates normally with each slave chip 40, such as the master chip 30 transmits data to the slave chip 40 through the I2C communication bus 10, or the slave chip 40 transmits data to the master chip 30 through the I2C communication bus 10, that is, the I2C communication bus 10 can transmit data and the transmission state is normal, the vibrator will work. When the master chip 30 communicates abnormally with each slave chip 40, such as the master chip 30 cannot transmit data to the slave chip 40 through the I2C communication bus 10, or the slave chip 40 cannot transmit data to the master chip 30 through the I2C communication bus 10, that is, the I2C communication bus 10 cannot transmit data and the transmission state is abnormal, the vibrator will not work. It can be seen that different transmission data states on the I2C communication bus 10 correspond to different working states of the vibrator.
[0029] In summary, in this fault indication system, the indication module 20 can be used to quickly determine whether data is transmitted on the I2C communication bus 10, thereby quickly determining whether the data transmission status on the I2C communication bus 10 is normal or abnormal, so as to determine whether there is a fault in the data transmission between the master chip 30 and the slave chip 40. Compared with the method of troubleshooting with the help of other external devices such as an oscilloscope, the time required for troubleshooting data transmission faults can be reduced, and the indication module 20 used has a lower cost, which can reduce the troubleshooting cost.
[0030] In some of these examples, see Figure 2 The I2C communication bus 10 includes a data line 11 and a clock line 12. The indication module 20 is a light indication module, which includes a first light indication unit 21 and a second light indication unit 22. The first end of the master chip 30 is connected to the first end of each slave chip 40 through the data line 11, and the second end of the master chip 30 is connected to the second end of each slave chip 40 through the clock line 12. The data line 11 is also connected to the first light indication unit 21, and the clock line 12 is also connected to the second light indication unit 22.
[0031] Specifically, the first light indication unit 21 includes a first LED lamp; the first LED lamp is connected to the data line 11; the second light indication unit 22 includes a second LED lamp; the second LED lamp is connected to the clock line 12. Among them, the first LED lamp and the second LED lamp are both lit at a high level and extinguished at a low level. Then, a normal transmission state means that both the data line 11 and the clock line 11 can transmit data normally, and an abnormal transmission state means that the data line 11 and / or the clock line 11 cannot transmit data. The first working state can be that the first LED lamp flashes and the second LED lamp flashes, and the second working state can be that the first LED lamp is extinguished and / or the second LED lamp is extinguished. In actual applications, the first LED lamp can also be lit at a low level and extinguished at a high level, and the second LED lamp can also be lit at a low level and extinguished at a high level.
[0032] In the fault indication system, if the master chip 30 transmits data to the slave chip 40 via the data line 11 or the slave chip 40 transmits data to the master chip 30 via the data line 11, the first LED light will flash; in addition, the data transmission direction of the clock line 12 is from the master chip 30 to the slave chip 40. If the master chip 30 transmits data to the slave chip 40 via the clock line 12, the second LED light will flash evenly. Therefore, the data transmission status of the data line 11 can be determined according to the working status of the first LED light, and the data transmission status of the clock line 12 can be determined according to the working status of the second LED light.
[0033] Specifically, if the control main chip 30 sends data, and the first LED light flashes, and the second LED light is off, the data line 11 transmission status is normal, and the clock line 12 transmission status is abnormal. It can be considered that the clock line 12 configuration of the main chip 30 is abnormal; if the control main chip 30 or the slave chip 40 sends data, and the first LED light is off, and the second LED light flashes, the data line 11 transmission is abnormal, and the clock line 12 transmission is normal. It can be considered that the master chip 30 or the slave chip 40 configures the data line 11 abnormally; if the control main chip 30 sends data, and the first LED light and the second LED light both flash, then the data line 11 and the clock line 12 both transmit normally, and the transmission rate can be determined according to the flashing rate of the LED lights. In addition, it can also be determined whether the address code, register address and value configuration of the slave chip 40 are correct according to the flashing of the first LED light.
[0034] It can be seen that in this embodiment, the first LED light and the second LED light can be used to quickly determine whether the link of the data line 11 and the clock line 12 is flowing, thereby reducing the troubleshooting time and cost compared to the method of troubleshooting with the help of other external devices such as an oscilloscope.
[0035] In some embodiments, the master chip 30 is a control chip, which is responsible for business logic processing. The control chip is connected to each slave chip 40 via an I2C communication bus 10. Specifically, the first end of the control chip is connected to the first end of each slave chip 40 via a data line 11, and the second end of the control chip is connected to the second end of each slave chip 40 via a clock line 12. Among them, the control chip includes any other suitable microprocessor controller such as STM32 or GD32, which can summarize the outgoing information (fault information, audio and video processing information, etc.) of each slave chip 40 and send it to an external device, and receive information from an external device and send it to each slave chip 40.
[0036] In some embodiments, each slave chip 40 is a functional chip, which can realize various corresponding functions. The master chip 30 is connected to each functional chip through an I2C communication bus 10. Specifically, the first end of each slave chip 40 is connected to the first end of the master chip 30 through a data line 11, and the second end of each slave chip 40 is connected to the second end of the master chip 30 through a clock line 12. Among them, the functional chip includes one of a real-time clock (RTC) chip, a clock chip, an audio and video processing chip, a logic processing chip, and a power supply chip, etc., which can be used for functions such as timing, audio and video processing, logic processing, and power supply.
[0037] In a second aspect, an embodiment of the utility model further provides an electronic device, which includes a display screen and a fault indication system as described in any one of the embodiments of the first aspect; the display screen is connected to the fault indication system. Specifically, the display screen can be connected to a main chip, and the main chip can control the display of the display screen. The electronic device can be an all-in-one device. The display screen can be a suitable display screen such as an LED display screen, an OLED display screen, an LCD display screen, etc. In this embodiment, the fault indication system has the same structure and function as the fault indication system as described in any one of the first aspects, which will not be repeated here.
[0038] It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0039] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Under the idea of the present invention, the technical features in the above embodiments or different embodiments can also be combined, the steps can be implemented in any order, and there are many other changes in different aspects of the present invention as described above, which are not provided in detail for the sake of simplicity. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features can be replaced by equivalents. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A fault indication system, characterized in that: include: I2C communication bus, indication module, master chip, at least one slave chip; The master chip is communicatively connected with each of the slave chips via the I 2C communication bus, and the indication module is also connected to the I 2C communication bus; The indication module is used to operate in a first operating state when the transmission state of the I 2C communication bus is normal, and to operate in a second operating state when the transmission state is abnormal.
2. The fault indication system according to claim 1, characterized in that: The indication module includes one of a light indication module, a sound indication module and a vibration indication module.
3. The fault indication system according to claim 2, characterized in that: The I2C communication bus includes a data line and a clock line, the indication module is the light indication module, and the light indication module includes a first light indication unit and a second light indication unit; The first end of the master chip is connected to the first end of each slave chip through the data line, the second end of the master chip is connected to the second end of each slave chip through the clock line, the data line is also connected to the first light indication unit, and the clock line is also connected to the second light indication unit.
4. The fault indication system according to claim 3, characterized in that: The first light indication unit comprises a first LED lamp; The first LED lamp is connected to the data line.
5. The fault indication system according to claim 3, characterized in that: The second light indication unit comprises a second LED lamp; The second LED lamp is connected to the clock line.
6. The fault indication system according to any one of claims 1 to 5, characterized in that: The main chip is a control chip; The control chip is connected to each of the slave chips via the I2C communication bus.
7. The fault indication system according to claim 6, characterized in that: The control chip includes stm32 or GD32.
8. The fault indication system according to any one of claims 1 to 5, characterized in that: Each of the slave chips is a functional chip; The main chip is communicatively connected with each of the functional chips via the I 2C communication bus.
9. The fault indication system according to claim 8, characterized in that: The functional chip includes one of an RTC chip, a clock chip, an audio and video processing chip, a logic processing chip and a power supply chip.
10. An electronic device, characterized in that: comprising a display screen and a fault indication system as claimed in any one of claims 1 to 9; The display screen is connected to the fault indication system.
