Motorcycle instrument upgrading circuit
Through the photodiode and light-emitting diodes in the motorcycle instrument upgrade circuit and the MCU processor, the problem of external communication leads required for the upgrade of motorcycle instrument software is solved, and an upgrade solution without modifying the vehicle design is achieved.
Patent Information
- Application Number
- CN202422465928.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-12
- Publication Date
- 2025-08-08
- Estimated Expiration
- 2034-10-12
AI Technical Summary
When the existing motorcycle instrument does not have CAN diagnostic function, external communication leads are required for software upgrade, which causes the manufacturer to modify the main body of the vehicle, causing inconvenience.
Design a motorcycle instrument upgrade circuit, use photodiodes and light-emitting diodes to cooperate with the MCU processor, and realize software upgrades through photoelectric signals to avoid modifying the main cable and reserving external communication leads.
The software upgrade function of motorcycle instruments is realized, without modifying the main body of the vehicle, making it easier for the manufacturer to design.
Smart Images

Figure CN223205851U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the field of motorcycles, in particular to a motorcycle instrument upgrading circuit. Background Art
[0002] Negative LCD screens have become popular in motorcycle instrument design in recent years due to their excellent display effects such as color display and high contrast. These motorcycle instruments all have high-brightness backlights and light sensors (such as photodiodes), which enable the negative display screen instruments to automatically adjust the backlight brightness under different light brightness levels. However, for motorcycle instruments without CAN diagnostic functions, upgrading the motorcycle instrument software requires external communication leads, and the communication leads must be placed in an easily accessible place. However, most car manufacturers are currently unwilling to modify the main cable separately for this purpose and reserve external communication leads (this modification requires modifying the entire vehicle design, which is very troublesome).
[0003] In view of the existence of the above problems, it is necessary to study a motorcycle instrument upgrade circuit to overcome the shortcomings of the existing technology. Utility Model Content
[0004] The purpose of the utility model is to provide a motorcycle instrument upgrading circuit to overcome the deficiencies in the prior art.
[0005] In order to achieve the above objectives, the solution of the present invention is:
[0006] A motorcycle instrument upgrade circuit comprises an instrument-end circuit and an upgrade-end circuit; the instrument-end circuit comprises an MCU processor, a resistor R1, a photodiode D1, an upgrade switch S1, and a negative-display liquid crystal display circuit; the cathode of the photodiode D1 is connected to the first end of the resistor R1 and the RXD pin and ADC pin of the MCU processor, the anode of the photodiode D1 is grounded, the second end of the resistor R1 is connected to a control power supply VCC, and the upgrade switch S1 and the negative-display liquid crystal display circuit are connected to the MCU processor; the upgrade-end circuit comprises a software upgrade device, a light-emitting diode D1, a start switch S2, and a NOT gate U1; the TXD pin of the software upgrade device is connected to the anode of the light-emitting diode D2 in turn through the NOT gate U1, the cathode of the light-emitting diode D2 is grounded, the light-emitting diode D2 is used to emit light toward the photodiode D1, and the start switch S2 is connected to the software upgrade device.
[0007] The instrument end circuit further includes a resistor R3, and the cathode of the photodiode D1 is connected to the RXD pin of the MCU processor through the resistor R3.
[0008] The instrument-end circuit further includes a filtering unit, and the cathode of the photodiode D1 is connected to the ADC pin of the MCU processor through the filtering unit.
[0009] The filtering unit includes a resistor R4 and a capacitor C1, a first end of the resistor R4 is connected to the cathode of the photodiode D1, a second end of the resistor R4 and a first end of the capacitor C1 are connected to the ADC pin of the MCU processor, and a second end of the capacitor C1 is grounded.
[0010] The upgrade end circuit further includes a resistor R2, and the NOT gate U1 is connected to the positive electrode of the light emitting diode D2 via the resistor R2.
[0011] After adopting the above scheme, the working principle of the utility model is:
[0012] Under normal conditions, the photodiode D1 of the meter circuit generates a corresponding photocurrent according to the ambient light intensity and converts it into a corresponding brightness voltage signal which is input to the ADC pin of the MCU processor, allowing the MCU processor to obtain the ambient brightness data. The MCU processor controls the backlight of the negative display LCD circuit according to the ambient brightness data.
[0013] When the instrument needs to be software upgraded, the light-emitting diode D1 of the upgrade end circuit needs to be opposite to the photodiode D1 of the instrument end circuit and shielded from ambient light. It is known that if the TXD pin of the software upgrade device is at a high level, the NOT gate U1 outputs a low level to the positive electrode of the light-emitting diode D1 without lighting up the light-emitting diode D1. At this time, the negative electrode level of the photodiode D1 is at a high level, so the RXD pin of the MCU processor receives a high level, that is, the RXD pin of the MCU processor and the TXD pin of the software upgrade device are at the same level at this time. If the TXD pin of the software upgrade device is at a low level, , then the NOT gate U1 outputs a high level to the anode of the light-emitting diode D1, lighting up the light-emitting diode D1; at this time, the photodiode D1 is affected by the light of the light-emitting diode D1 and turns on, making the cathode level of the photodiode D1 low, so that the RXD pin of the MCU processor receives the low level, that is, at this time, the RXD pin of the MCU processor and the TXD pin of the software upgrade device are at the same level; from the above, it can be seen that when the TXD pin of the software upgrade device sends high or low level signals, the RXD pin of the MCU processor will receive the corresponding high or low level signals, so that the software upgrade device can transmit data to the MCU processor.
[0014] When performing a software upgrade on the instrument, first press the upgrade switch S1 on the instrument-side circuit to send an upgrade instruction to the MCU processor, causing the MCU processor to enter an upgrade preparation state; then press the start switch S2, causing the software upgrade device to send the upgrade program data to the MCU processor; the MCU processor performs the upgrade after receiving the upgrade program data; wherein, the software upgrade device adds a CRC32 checksum to the end of the upgrade program data sent to the MCU processor; the MCU processor only performs the upgrade after receiving the upgrade program data and verifying that it is correct, thereby ensuring the reliability of the upgrade. In addition, when the MCU processor verifies that the upgrade program data is correct, the MCU processor can control the negative display LCD circuit to display "SUCC" representing success, indicating that the upgrade program data has been successfully transmitted; and when the MCU processor fails to verify the upgrade program data, the MCU processor can control the negative display LCD circuit to display "Err" representing failure, indicating that the upgrade program data has failed to be transmitted, and informing the user that the software upgrade needs to be repeated.
[0015] In summary, the present invention can utilize the photodiode D1 required to be configured in the instrument with a negative display LCD circuit to realize the software upgrade function. In this way, there is no need to modify the main cable and reserve external communication leads, that is, the main body of the vehicle design does not need to be modified, which is convenient for the car manufacturer to design. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a schematic diagram of the utility model. DETAILED DESCRIPTION
[0017] In order to further explain the technical solution of the present invention, the present invention will be described in detail below through specific embodiments.
[0018] like Figure 1 As shown, the utility model discloses a motorcycle instrument upgrade circuit, which includes an instrument-end circuit and an upgrade-end circuit; wherein the instrument-end circuit includes an MCU processor, a resistor R1, a photodiode D1, an upgrade switch S1, and a negative display LCD circuit; the cathode of the photodiode D1 is connected to the first end of the resistor R1 and the RXD pin and ADC pin of the MCU processor, the anode of the photodiode D1 is grounded, the second end of the resistor R1 is connected to the control power supply VCC, and the upgrade switch S1 and the negative display LCD circuit are connected to the MCU processor; the upgrade-end circuit includes a software upgrade device, a light-emitting diode D1, a start switch S2, and a NOT gate U1; the TXD pin of the software upgrade device is connected to the anode of the light-emitting diode D2 in turn through the NOT gate U1, the cathode of the light-emitting diode D2 is grounded, the light-emitting diode D2 is used to emit light toward the photodiode D1, and the start switch S2 is connected to the software upgrade device. The software upgrade device and the negative display LCD circuit are existing circuits and will not be described in detail here.
[0019] The working principle of this utility model is:
[0020] Under normal conditions, the photodiode D1 of the meter circuit generates a corresponding photocurrent according to the ambient light intensity and converts it into a corresponding brightness voltage signal which is input to the ADC pin of the MCU processor, allowing the MCU processor to obtain the ambient brightness data. The MCU processor controls the backlight of the negative display LCD circuit according to the ambient brightness data.
[0021] When the instrument needs to be software upgraded, the light-emitting diode D1 of the upgrade end circuit needs to be opposite to the photodiode D1 of the instrument end circuit and shielded from ambient light. It is known that if the TXD pin of the software upgrade device is at a high level, the NOT gate U1 outputs a low level to the positive electrode of the light-emitting diode D1 without lighting up the light-emitting diode D1. At this time, the negative electrode level of the photodiode D1 is at a high level, so the RXD pin of the MCU processor receives a high level, that is, the RXD pin of the MCU processor and the TXD pin of the software upgrade device are at the same level at this time. If the TXD pin of the software upgrade device is at a low level, , then the NOT gate U1 outputs a high level to the anode of the light-emitting diode D1, lighting up the light-emitting diode D1; at this time, the photodiode D1 is affected by the light of the light-emitting diode D1 and turns on, making the cathode level of the photodiode D1 low, so that the RXD pin of the MCU processor receives the low level, that is, at this time, the RXD pin of the MCU processor and the TXD pin of the software upgrade device are at the same level; from the above, it can be seen that when the TXD pin of the software upgrade device sends high or low level signals, the RXD pin of the MCU processor will receive the corresponding high or low level signals, so that the software upgrade device can transmit data to the MCU processor.
[0022] When performing a software upgrade on the instrument, first press the upgrade switch S1 on the instrument-side circuit to send an upgrade instruction to the MCU processor, causing the MCU processor to enter an upgrade preparation state; then press the start switch S2, causing the software upgrade device to send the upgrade program data to the MCU processor; the MCU processor performs the upgrade after receiving the upgrade program data; wherein, the software upgrade device adds a CRC32 checksum to the end of the upgrade program data sent to the MCU processor; the MCU processor only performs the upgrade after receiving the upgrade program data and verifying that it is correct, thereby ensuring the reliability of the upgrade. In addition, when the MCU processor verifies that the upgrade program data is correct, the MCU processor can control the negative display LCD circuit to display "SUCC" representing success, indicating that the upgrade program data has been successfully transmitted; and when the MCU processor fails to verify the upgrade program data, the MCU processor can control the negative display LCD circuit to display "Err" representing failure, indicating that the upgrade program data has failed to be transmitted, and informing the user that the software upgrade needs to be repeated.
[0023] In summary, the present invention can utilize the photodiode D1 required to be configured in the instrument with a negative display LCD circuit to realize the software upgrade function. In this way, there is no need to modify the main cable and reserve external communication leads, that is, the main body of the vehicle design does not need to be modified, which is convenient for the car manufacturer to design.
[0024] In an embodiment of the present invention, the instrument-end circuit further includes a resistor R3 , and the cathode of the photodiode D1 is connected to the RXD pin of the MCU processor via the resistor R3 , and the resistor R3 can play a role in current limiting protection.
[0025] In an embodiment of the present invention, the meter-side circuit further includes a filtering unit, through which the cathode of photodiode D1 is connected to an ADC pin of the MCU processor. The filtering unit can perform filtering, allowing the MCU processor to more accurately obtain ambient brightness data. The filtering unit includes a resistor R4 and a capacitor C1. The first end of resistor R4 is connected to the cathode of photodiode D1, the second end of resistor R4 and the first end of capacitor C1 are connected to the ADC pin of the MCU processor, and the second end of capacitor C1 is grounded.
[0026] In an embodiment of the present invention, the upgrade end circuit further includes a resistor R2, and the NOT gate U1 is connected to the positive electrode of the light emitting diode D2 via the resistor R2.
[0027] The above embodiments and drawings do not limit the product form and style of the present invention. Any appropriate changes or modifications made by ordinary technicians in the relevant technical field should be deemed to be within the patent scope of the present invention.
Claims
1. A motorcycle instrument upgrade circuit, characterized by: Including instrument end circuit and upgrade end circuit; The instrument-side circuit includes an MCU processor, a resistor R1, a photodiode D1, an upgrade switch S1, and a negative-display LCD circuit; the cathode of the photodiode D1 is connected to the first end of the resistor R1 and the RXD pin and ADC pin of the MCU processor, the anode of the photodiode D1 is grounded, the second end of the resistor R1 is connected to the control power supply VCC, and the upgrade switch S1 and the negative-display LCD circuit are connected to the MCU processor; The upgrade end circuit includes a software upgrade device, a light-emitting diode D1, a start switch S2 and a NOT gate U1; the TXD pin of the software upgrade device is connected to the positive electrode of the light-emitting diode D2 through the NOT gate U1 in turn, the negative electrode of the light-emitting diode D2 is grounded, the light-emitting diode D2 is used to emit light toward the photodiode D1, and the start switch S2 is connected to the software upgrade device.
2. The motorcycle instrument upgrade circuit according to claim 1, characterized in that: The instrument end circuit further includes a resistor R3, and the cathode of the photodiode D1 is connected to the RXD pin of the MCU processor through the resistor R3.
3. The motorcycle instrument upgrade circuit according to claim 1, characterized in that: The instrument-end circuit further includes a filtering unit, and the cathode of the photodiode D1 is connected to the ADC pin of the MCU processor through the filtering unit.
4. The motorcycle instrument upgrade circuit according to claim 3, characterized in that: The filtering unit includes a resistor R4 and a capacitor C1, a first end of the resistor R4 is connected to the cathode of the photodiode D1, a second end of the resistor R4 and a first end of the capacitor C1 are connected to the ADC pin of the MCU processor, and a second end of the capacitor C1 is grounded.
5. The motorcycle instrument upgrade circuit according to claim 1, characterized in that: The upgrade end circuit further includes a resistor R2, and the NOT gate U1 is connected to the positive electrode of the light emitting diode D2 via the resistor R2.