Program flashing device
By designing a handheld program brusher that integrates multiple modules, the problem of computer and CAN card for automotive software program brushing in the prior art is solved, and convenient and portable software brushing is realized, reducing maintenance costs and time.
Patent Information
- Application Number
- CN202422208185.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-09
- Publication Date
- 2025-06-24
- Estimated Expiration
- 2034-09-09
AI Technical Summary
In the prior art, programming writing of a car software program requires computer operation and using a CAN card to realize communication between the vehicle controller and the computer, which is inconvenient to use.
A handheld program brushing device is designed, which integrates activation circuit, DSP minimum system module, CAN communication module, reset circuit, key function module, Type-C charging interface module, SD card storage module and screen display module, which can be directly connected to the vehicle controller of the car for software program flushing.
It realizes convenient writing of automotive software programs, reduces dependence on professional and technical personnel, reduces the time and cost of after-sales repair, and the equipment is small and portable and has rich functions.
Smart Images

Figure CN223022670U_ABST
Abstract
Description
Technical Field
[0001] The utility model belongs to the technical field of electronic circuits, and particularly relates to a program writing device, and more particularly to a handheld program writer for software programs applied to automobiles. Background Art
[0002] The energy crisis and environmental pollution have become major challenges faced globally. Developing pure electric vehicles is the preferred solution to meet the current "zero emissions". With the rapid development of new energy vehicle technology, more problems have emerged in its corresponding after-sales and maintenance work. When repairing the software system of an automobile, it is usually necessary to rewrite the program. In related solutions, rewriting the software program of an automobile requires computer operation and uses a Controller Area Network (CAN) card to achieve communication between the vehicle controller and the computer, which is very inconvenient to use.
[0003] The above content is only used to assist in understanding the technical solution of the utility model, and does not represent an admission that the above content is prior art. Summary of the Utility Model
[0004] The purpose of the utility model is to provide a program writing device to solve the problem that rewriting the software program of an automobile requires computer operation and uses a CAN card to achieve communication between the vehicle controller and the computer, which is very inconvenient to use, and achieve the effect of being able to connect to the vehicle controller of the automobile to rewrite the software program of the automobile through the provided program writing device for software programs applied to automobiles, with convenient use.
[0005] The utility model provides a program writing device that can be applied to the rewriting of software programs of automobiles; the program writing device includes: a housing, an activation circuit, a DSP minimum system module, a CAN communication module, and a reset circuit integrally arranged inside the housing, and an external connection module arranged on the housing or outside the housing; the external connection module includes: a Type-C charging interface module, a button function module, a storage module, and a display screen module; wherein,
[0006] The Type-C charging interface module is connected to the activation circuit; the activation circuit is respectively connected to the DSP minimum system module, the CAN communication module, and the reset circuit; the CAN communication module can communicate with the communication module on the vehicle controller of the automobile to rewrite the software program of the automobile; the button function module, the storage module, and the display screen module are respectively connected to the DSP minimum system module.
[0007] In some embodiments, the activation circuit includes: a storage battery module, a first conversion module, and a second conversion module; wherein,
[0008] The Type-C charging interface module is connected to the charging end of the storage battery module; the power supply end of the storage battery module is respectively connected to the input end of the first conversion module and the input end of the second conversion module; the output end of the first conversion module is connected to the CAN communication module for providing a 5V voltage; the output end of the second conversion module is respectively connected to the DSP minimum system module and the reset circuit for providing a 3.3V voltage.
[0009] In some embodiments, the Type-C charging interface module includes: a first module, a second module, and a third module; wherein,
[0010] The first module is used to input an external 5V voltage to the second module; the second module is used to perform bus transfer to a serial port chip and is connected to the third module; the third module is connected to the storage battery module.
[0011] In some embodiments, the first conversion module includes: a fourth module, a first filtering module, a second filtering module, and a voltage dividing module; wherein, the power supply end of the storage battery module is connected to the input end of the fourth module; the output end of the fourth module is connected to the CAN communication module through the voltage dividing module to provide a 5V voltage; the first filtering module is connected to the input end of the fourth module, and the second filtering module is connected to the output end of the fourth module.
[0012] In some embodiments, the second conversion module includes: a fifth module, a third filtering module, and a fourth filtering module; wherein,
[0013] The power supply end of the storage battery module is connected to the input end of the fifth module; the output end of the fifth module is respectively connected to the DSP minimum system module and the reset circuit to provide a 3.3V voltage; the third filtering module is connected to the input end of the fifth module, and the fourth filtering module is connected to the output end of the fifth module.
[0014] In some embodiments, the display screen module includes: a backlight circuit, a triode module, and a serial peripheral interface; the serial peripheral interface includes: a CSL interface, an SDA interface, a RES interface, a DC interface, a CS interface, and a BLK interface; wherein,
[0015] The control terminal of the backlight circuit is connected to the base of the triode module via a current-limiting resistor module; the emitter of the triode module is grounded; the collector of the triode module is connected to the first terminal of the backlight circuit via a first display resistor module; a 3.3V voltage is connected to the second terminal of the backlight circuit;
[0016] The CSL interface is connected to the anode of the first diode module via a second display resistor module, and the cathode of the first diode module is connected to the third terminal of the backlight circuit;
[0017] The SDA interface is connected to the anode of the second diode module via a third display resistor module, and the cathode of the second diode module is connected to the fourth terminal of the backlight circuit;
[0018] The RES interface is connected to the anode of the third diode module via a fourth display resistor module, and the cathode of the third diode module is connected to the fifth terminal of the backlight circuit;
[0019] The DC interface is connected to the anode of the fourth diode module via a fifth display resistor module, and the cathode of the fourth diode module is connected to the sixth terminal of the backlight circuit;
[0020] The CS interface is connected to the anode of the fifth diode module via a sixth display resistor module, and the cathode of the fifth diode module is connected to the seventh terminal of the backlight circuit;
[0021] The BLK interface is connected to the anode of the sixth diode module via a seventh display resistor module, and the cathode of the sixth diode module is connected to the eighth terminal of the backlight circuit.
[0022] In some embodiments, the key function module includes: a first key branch, a second key branch, a third key branch, a fourth key branch, a fifth key branch, and a sixth key branch; wherein,
[0023] Each of the first key branch, the second key branch, the third key branch, the fourth key branch, the fifth key branch, and the sixth key branch includes: an external key, a first key resistor module, a second key resistor module, and a key capacitor module; in each key branch, the connection terminal of the external key is grounded via the second key resistor module and the external key; a 3.3V voltage is connected to the common terminal of the second key resistor module and the external key after passing through the first key resistor module; the common terminal of the connection terminal of the external key and the second key resistor module is grounded via the key capacitor; the connection terminal of the external key is also connected to the DSP main chip in the DSP minimum system module.
[0024] In some embodiments, the storage module includes: an SD card storage module and / or a TF card storage module.
[0025] In some embodiments, the TF card storage module includes: a sixth module and a four-way storage resistor module; wherein,
[0026] The 3.3V voltage is connected to the corresponding pins of the sixth module after passing through each storage resistor module in the four-way storage resistor module; the corresponding pins of the sixth module are connected to the corresponding pins of the DSP main chip in the DSP minimum system module.
[0027] Thus, the solution of the present utility model integrates the activation circuit, the DSP minimum system module, the CAN communication module, the reset circuit, the button function module, the Type-C charging interface module, the SD card storage module, and the screen display module to form a program flashing device, which can be applied to the program flashing of the software program of an automobile; thereby, integrating the activation circuit, the DSP minimum system module, the CAN communication module, the reset circuit, the button function module, the Type-C charging interface module, the SD card storage module, and the screen display module to form a program flashing device, which can be applied to the program flashing of the software program of an automobile.
[0028] Other features and advantages of the present utility model will be described in the following specification, and, in part, will be obvious from the specification, or will be understood by implementing the present utility model.
[0029] Next, through the drawings and embodiments, the technical solution of the present utility model will be further described in detail. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 It is a schematic structural diagram of an embodiment of the program flashing device of the present utility model;
[0031] Figure 2 It is a structural block diagram of the main modules of a handheld program flasher;
[0032] Figure 3 It is a schematic structural diagram of the connection structure of the Type-C charging and the chip;
[0033] Figure 4 It is a schematic structural diagram of the display screen module;
[0034] Figure 5 It is a schematic structural diagram of the button selection module;
[0035] Figure 6 It is a schematic structural diagram of the 4.2V to 5V power supply module;
[0036] Figure 7Schematic structural diagram of a 4.2V to 3.3V power supply module;
[0037] Figure 8 Schematic structural diagram of a TF card storage module. Specific embodiments
[0038] To make the objectives, technical solutions, and advantages of the present utility model clearer, the technical solutions of the present utility model will be clearly and completely described below in conjunction with specific embodiments of the present utility model and the corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of the present utility model, rather than all of the embodiments. Based on the embodiments of the present utility model, all other embodiments obtained by those of ordinary skill in the art without making creative efforts fall within the scope of protection of the present utility model.
[0039] Considering that programming an automotive software program requires computer operation and uses a CAN card to enable communication between the vehicle controller and the computer, which is very inconvenient to use.
[0040] For example: Programming with a computer has certain technical requirements, so relevant professionals need to go to the after-sales site in person for operation. Moreover, the computer is not convenient to carry. Even though a laptop computer has a certain degree of portability to some extent, during long business trips, its large size and heavy weight still make it not easy to carry. At the same time, the CAN card required for programming is relatively expensive and easily damaged, and it is not convenient to carry during business trips.
[0041] Therefore, the solution of the present utility model proposes a programming device, specifically a handheld programming device, whose volume and weight are slightly smaller than those of an ordinary mobile phone, can replace a laptop computer in terms of function, and has a low manufacturing cost, greatly facilitating after-sales work and saving time and labor costs.
[0042] According to an embodiment of the present utility model, a programming device is provided. Refer to Figure 1 The schematic structural diagram of an embodiment of the device of the present utility model as shown. The programming device may include: being capable of programming software programs applicable to automobiles; the programming device includes: a housing, an activation circuit, a DSP minimum system module, a CAN communication module, and a reset circuit integrally provided inside the housing, and an external connection module provided on or outside the housing; the external connection module includes: a Type-C charging interface module, a button function module, a storage module, and a display screen module.
[0043] Among them, the Type-C charging interface module is connected to the activation circuit; the activation circuit is respectively connected to the DSP minimum system module, the CAN communication module, and the reset circuit; the CAN communication module can communicate with the communication module on the vehicle controller of the vehicle to perform program flashing on the software program of the vehicle.
[0044] The key function module, the storage module, and the display screen module are respectively connected to the DSP minimum system module.
[0045] The handheld program flasher proposed by the solution of the present utility model can update the internally stored program by reading and writing a data (TransFLash, TF) card, and the disassembly and assembly are very convenient; it can be directly connected to the CAN communication interface of the vehicle-mounted controller through two wires to achieve program flashing, without the need to use a computer and a CAN card anymore; the human-computer interaction can be realized through simple keys, without the need to learn software operations additionally, and the operation has no threshold.
[0046] In some embodiments, the activation circuit includes: a battery module, a first conversion module, and a second conversion module. The battery module is a lithium battery, the first conversion module is a 4.2V to 5V power supply module, and the second conversion module is a 4.2V to 3.3V power supply module.
[0047] Among them, the Type-C charging interface module is connected to the charging end of the battery module; the power supply end of the battery module is respectively connected to the input end of the first conversion module and the input end of the second conversion module; the output end of the first conversion module is connected to the CAN communication module to provide a 5V voltage; the output end of the second conversion module is respectively connected to the DSP minimum system module and the reset circuit to provide a 3.3V voltage.
[0048] Figure 2 It is a structural block diagram of the main modules of the handheld program flasher. As Figure 2As shown in the figure, the handheld program flasher mainly consists of an activation circuit (i.e., the power supply part), a digital signal processor (DSP) minimum system module, a CAN communication module, a reset circuit, a key function module, and an external connection module. The DSP minimum system mainly includes: a power supply circuit that provides a stable power supply voltage for the DSP; a clock circuit that provides a stable clock signal to ensure the synchronous operation of the DSP; a reset circuit that realizes the reset function of the DSP, similar to the restart of a computer; a download circuit that realizes the download and debugging of the program through the JTAG interface; a memory expansion circuit that expands the external memory as needed to improve the processing ability of the DSP; an auxiliary power supply circuit that provides a stable power supply voltage for the DSP and other peripheral devices. The external connection module refers to the Type-C charging interface module, the SD card storage module, and the screen display module (i.e., the display screen module).
[0049] Among them, the power supply part mainly supplies voltage values required for various needs by boosting and bucking the voltage of a 1000 mAh lithium battery (i.e., 4.2V) through a specific chip. A common 5V voltage is connected in the Type-C charging interface module to charge the 1000 mAh lithium battery. The handheld program flasher mainly uses 5V voltage and 3.3V voltage. Among them, the 5V voltage is mainly supplied to the CAN communication module, and the 3.3V voltage is supplied to the DSP minimum system module, the CAN communication module, the reset circuit, the key function module, the TF card storage module (such as the SD card storage module), and the display screen module. The DSP minimum system module is mainly used for burning programs and is also the main core part of the handheld program flasher. The main feedback method of the signals it emits is realized through the CAN communication module. A non-isolated CAN communication module is used on this handheld program flasher; the reset circuit mainly realizes the restart function of the handheld program flasher and is used when situations such as program freezing occur; the key function module and the display screen module together constitute the basic conditions for program selection to realize the simultaneous storage of multiple programs and the selection of programs, and the storage module facilitates the input and storage of external programs to a certain extent.
[0050] See Figure 2In the example shown, the solution of the present utility model integrates various communication modules and connection modules, with high integration. Only two ordinary wires (such as CAN wires) are required to complete the program flashing of the controller, which can completely replace the traditional method of using a computer for program flashing, greatly facilitating the program flashing work of the vehicle controller, significantly reducing the workload after product sales, and enabling the operator of the production unit to conveniently flash the program for the controller. For example: with the MCU chip as the core, each circuit of the DSP minimum system and other modules are radially integrated and distributed on a four-layer PCB board; the length and width of this circuit board (i.e., the four-layer PCB board) are only 10 cm and 8 cm respectively, occupying a small space and being small and convenient.
[0051] In some embodiments, the Type-C charging interface module includes: a first module, a second module, and a third module. The first module is, for example, interface J1, the second module is, for example, chip U2, and the third module is, for example, chip U3. Interface J1 is a 16-pin interface device, such as a Type-C interface, and its function is to input an external 5V voltage to chip U2.
[0052] Among them, the first module is used to input an external 5V voltage to the second module; the second module is used to perform bus transfer to a serial port chip and is connected to the third module; the third module is connected to the battery module.
[0053] Figure 3 Schematic diagram of the connection structure for Type-C charging and the chip. As Figure 3As shown, it is the Type-C interface circuit (i.e., the Type-C charging interface module) of the handheld program flasher. The Type-C interface circuit first inputs a 5V voltage through interface J1 (i.e., the TYPC interface circuit) and transfers it through chip U2 (i.e., the transfer serial port chip) to realize USB to serial port conversion. It realizes conventional information transmission in the serial port mode, and then is used to expand the asynchronous serial port for the computer or directly upgrade ordinary serial port devices to the USB bus. This Type-C interface circuit is compatible with USB 2.0 and various serial port applications under the Windows system, facilitating the input of various programs from the TYPC interface circuit. Moreover, this Type-C interface circuit also supports voltages of 5V, 3.3V, and even 3V (providing 5V voltage for chip U2 in this circuit), greatly facilitating the selection of voltages. Capacitors C1, C2, and C3 are mainly used for filtering, which can ensure the stability of the voltage to a certain extent. Connection terminals RXO and TXO are connected to the DSP main chip, aiming to facilitate the direct input of programs from the Type-C interface circuit into the DSP main chip. Chip U3 (i.e., the charging chip) mainly charges battery M1, and outputs a 4.2V voltage after filtering through capacitors C3 and C4. This Type-C interface circuit is externally connected with light-emitting diodes D1 (such as green light-emitting diodes) and D2 (such as red light-emitting diodes), which can visually show its charging status, that is, the charging state is red and turns green after being fully charged. There is a built-in charging protection circuit in the lithium battery, and the charging stops when full to prevent overcharging.
[0054] Among them, there are also resistors R1 and R2 connected to interface J1, and there are also resistors R3, R4, and R5 connected to chip U3. Resistor R3 is connected to the connection line where the cathode of light-emitting diode D1 is located, and resistor R4 is connected to the connection line where the cathode of light-emitting diode D4 is located. Interface J1 is a 16-pin interface device, and its model can be CON_TYPE-C; the model of chip U2 can be an IC chip of CH340N; the model of chip U3 can be an IC chip of TP4056. Resistors R1 and R2 are respectively connected to the empty pins of interface J1, and their function is to limit the current. Resistors R3 and R4 are respectively connected to the CHRG and STDBY pins of chip U3, and their function is to divide the voltage and protect the circuit. Resistor R5 is connected to the PROG pin of chip U3, and its function is to limit the current. The function of the Type-C charging and chip circuit is to charge the power supply battery of the flasher board at any time, with high integration and less occupied space.
[0055] In the solution of the present utility model, a Type-C interface is added, and the program is selected for flashing through button control. It has the advantages of small size, simple operation and low cost, which can greatly reduce the labor cost and save the debugging time with obvious effects, and is intended to be used for after-sales debugging of new energy vehicles. The program can be directly input into the DSP main chip through the Type-C interface, which is convenient for replacing the program file, and can flash the program for different types of controllers, with a wider range of applications. The operation is carried out through the buttons on the button function module, and the file list is displayed on the screen of the display module to form a visual operation solution, which reduces the use threshold. Users can use it proficiently without the guidance of professional personnel.
[0056] In some embodiments, the first conversion module includes: a fourth module, a first filtering module, a second filtering module and a voltage dividing module. The fourth module is such as chip U4, the first filtering module and the second filtering module are both filtering capacitors, and the voltage dividing module is such as a voltage dividing resistor.
[0057] Among them, the power supply end of the battery module is connected to the input end of the fourth module; the output end of the fourth module is connected to the CAN communication module after passing through the voltage dividing module to provide a 5V voltage; the first filtering module is connected to the input end of the fourth module, and the second filtering module is connected to the output end of the fourth module.
[0058] Figure 6 It is a schematic structural diagram of a 4.2V to 5V power module. As Figure 6 shown, it is a circuit for converting the battery voltage to 5V voltage. This circuit has the characteristics of low cost and fewer components, and the output is relatively stable. Among them, capacitor C14 and capacitor C12 filter the 4.2V voltage and 5V voltage respectively, and resistors R26, R29 and resistor R30 play the role of voltage division to ensure that the output end is 5V voltage.
[0059] Among them, the first pin of chip U4 is connected to the anode of diode D9; the cathode of diode D9 is connected to the connection terminal of the 5V voltage. The connection terminal of the 5V voltage is also grounded (protective ground) after being connected in parallel with resistor R31 and capacitor C12. The connection terminal of the 5V voltage is also grounded through resistors R26, R29, and R30. The first pin of chip U4 is also divided into two paths after passing through inductor L1: one path is connected to the eighth pin of chip U4 after passing through resistor R27, and the other path is connected to the seventh pin of chip U4. The seventh pin of chip U4 is connected to the connection terminal of the 4.2V voltage after passing through resistor R28. The connection terminal of the 4.2V voltage is grounded to GND after passing through capacitor C14. The connection terminal of the 4.2V voltage is also connected to the fifth pin of chip U4. The fourth pin of chip U4 is connected to the common terminal of resistors R26 and R29. The second pin of chip U4 is grounded. The third pin of chip U4 is grounded to GND after passing through capacitor C13. The fourth pin of chip U4 is grounded to GND.
[0060] For example: Chip U4 can be a switching power supply chip with the model MC33063AQDRQ1. The 1st pin of chip U4 is Switch Collector; the 2nd pin is Switch Emitter, which needs to be grounded; the 3rd pin is Timing Capacitor, which needs to be connected to a capacitor for timing; the 4th pin is GND for grounding; the 5th FB pin can stably output a voltage of 1.25V; the 6th pin is the VCC pin, which is the voltage input pin; the 7th pin is the Ipk sense pin, which is connected to the internal current oscillator of the chip; the 8th pin is Drive Collector, which is the drive collector. The function of setting the 4.2V to 5V power supply module composed of chip U4 and its peripheral circuit is to provide stable and reliable 5V power supply for the CAN communication module and ensure that the program flashing process can proceed normally.
[0061] In some embodiments, the second conversion module includes: a fifth module, a third filtering module, and a fourth filtering module. The fifth module is such as chip U5, and the third filtering module and the fourth filtering module are both resistor-capacitor filters composed of resistors and capacitors.
[0062] Among them, the power supply terminal of the battery module is connected to the input terminal of the fifth module; the output terminal of the fifth module is respectively connected to the DSP minimum system module and the reset circuit to provide 3.3V voltage; the third filtering module is connected to the input terminal of the fifth module, and the fourth filtering module is connected to the output terminal of the fifth module.
[0063] Figure 7 Schematic diagram of the structure of the 4.2V to 3.3V power supply module. As Figure 7As shown, it is a circuit for converting the battery voltage to 3.3V voltage. The 3.3V voltage is mainly supplied to the DSP minimum system module, CAN communication module, reset circuit, key function module, TF card storage module, and display module. This circuit is a switching power supply module that can stably provide 3.3V voltage with high reliability. Similar to Figure 6 the circuit shown, both convert the battery voltage into a stable output voltage to supply power to each module. And when the power supply voltage changes, this circuit can still stably output 3.3V voltage.
[0064] Among them, the connection terminal of the 3.3V voltage is connected to the first pin of chip U5 after passing through resistor R32; the first pin of chip U5 is connected to the second pin of chip U5, and the third pin of chip U5 is connected to the fourth pin of chip U5. The first pin of chip U5 is also grounded to GND after passing through capacitor C16, and the connection terminal of the 3.3V voltage is also grounded to GND after passing through capacitor C15. The connection terminal of the 4.2V voltage is connected to the fourth pin of chip U5 after passing through resistor R33; the fourth pin of chip U5 is also grounded to GND after passing through capacitor C17. The fifth pin, sixth pin, seventh pin, and eighth pin of chip U5 are all grounded to GND.
[0065] For example: The model of chip U5 can be IC TPS76633D, which is a power supply chip that can constantly output 3.3V voltage. Pins 1, 2, 3, and 4 of this chip U5 are all grounded, pins 5 and 6 input voltage, and pins 7 and 8 stably output 3.3V voltage. The function of setting the 4.2V to 3.3V power supply module composed of chip U5 and its peripheral circuit is to be able to provide stable and reliable 3.3V power supply for the DSP minimum system module and other modules, ensuring that the functions of each module can operate normally.
[0066] In some embodiments, the display module includes: a backlight circuit, a triode module, and a serial peripheral interface. The triode module is like triode Q1; the serial peripheral interface includes: a CSL interface, an SDA interface, a RES interface, a DC interface, a CS interface, and a BLK interface.
[0067] Among them, the control terminal of the backlight circuit (such as the BK terminal) is connected to the base of the triode module after passing through a current-limiting resistor module; the emitter of the triode module is grounded (such as grounded to GND); the collector of the triode module is connected to the first wiring terminal of the backlight circuit after passing through a first display resistor module, and the first display resistor module is like resistor R6; the 3.3V voltage is connected to the second wiring terminal of the backlight circuit. Among them, the current-limiting resistor module is like Figure 4 the resistor connected to the collector of triode Q1.
[0068] The CSL interface is connected to the anode of the first diode module after passing through the second display resistor module. The cathode of the first diode module is connected to the third terminal of the backlight circuit. The second display resistor module is, for example, resistor R7, and the first diode module is, for example, diode D3.
[0069] The SDA interface is connected to the anode of the second diode module after passing through the third display resistor module. The cathode of the second diode module is connected to the fourth terminal of the backlight circuit. The third display resistor module is, for example, resistor R8, and the second diode module is, for example, diode D4.
[0070] The RES interface is connected to the anode of the third diode module after passing through the fourth display resistor module. The cathode of the third diode module is connected to the fifth terminal of the backlight circuit. The fourth display resistor module is, for example, resistor R9, and the third diode module is, for example, diode D5.
[0071] The DC interface is connected to the anode of the fourth diode module after passing through the fifth display resistor module. The cathode of the fourth diode module is connected to the sixth terminal of the backlight circuit. The fifth display resistor module is, for example, resistor R10, and the fourth diode module is, for example, diode D6.
[0072] The CS interface is connected to the anode of the fifth diode module after passing through the sixth display resistor module. The cathode of the fifth diode module is connected to the seventh terminal of the backlight circuit. The sixth display resistor module is, for example, resistor R11, and the fifth diode module is, for example, diode D7.
[0073] The BLK interface is connected to the anode of the sixth diode module after passing through the seventh display resistor module. The cathode of the sixth diode module is connected to the eighth terminal of the backlight circuit. The seventh display resistor module is, for example, resistor R12, and the first diode module is, for example, diode D8.
[0074] Figure 4 It is a schematic structural diagram of the display screen module. As Figure 4The display screen module shown includes a screen display circuit. The screen display circuit mainly consists of a serial clock chip (CSL) of a Serial Peripheral Interface (SPI), an SPI data line (SDA), a display screen drive pin (RES) enabled by low level, an SPI data or instruction selection pin (DC), an SPI chip select pin (CS), and a backlight control circuit (BK). Among them, the backlight control circuit (BK) is set in the main chip and can directly control the output of high level or low level at the BK terminal through a program. The function of the screen display circuit mainly composed of the serial clock chip (CSL) of SPI, the SPI data line (SDA), the display screen drive pin (RES) enabled by low level, the SPI data or instruction selection pin (DC), the SPI chip select pin (CS), and the backlight control circuit (BK) is to control the display content of the display screen through the main chip and realize visual operation.
[0075] Figure 4 In it, Q1 is a triode, which is a current amplification component and is also called a current control type component. It has three poles: collector C, base B, and emitter E, and is divided into NPN and PNP. The base current Ib of the triode Q1 is the current flowing from the base B to the emitter E; the collector current Ic of the triode Q1 is the current flowing from the collector C to the emitter E; the collector current Ic is controlled by the base current Ib. When the base current Ib changes slightly, the collector current Ic changes greatly, and this change reaches a certain degree and a certain ratio; the backlight circuit mainly controls the backlight of the screen through the high and low levels of the triode Q1.
[0076] Among them, the wiring terminal BK is connected to the base B of the triode Q1 via a resistor. The emitter E of the triode Q1 is grounded to GND. The collector of the triode Q1 is connected to the first wiring terminal of the backlight circuit via the resistor R6. The leftmost part of the display module is the interface pin socket for connecting the display to the circuit board. The 3.3V power supply is connected to the second connection terminal of the backlight circuit. The connection end of CSL is connected to the anode of the diode D3 via the resistor R7, and the cathode of the diode D3 is connected to the third connection terminal of the backlight circuit. The connection end of SDA is connected to the anode of the diode D4 via the resistor R8, and the cathode of the diode D4 is connected to the fourth connection terminal of the backlight circuit. The connection end of RES is connected to the anode of the diode D5 via the resistor R9, and the cathode of the diode D5 is connected to the fifth connection terminal of the backlight circuit. The connection end of DC is connected to the anode of the diode D6 via the resistor R10, and the cathode of the diode D6 is connected to the sixth connection terminal of the backlight circuit. The connection end of CS is connected to the anode of the diode D7 via the resistor R11, and the cathode of the diode D7 is connected to the seventh connection terminal of the backlight circuit. The connection end of BK is connected to the anode of the diode D8 via the resistor R12, and the cathode of the diode D8 is connected to the eighth connection terminal of the backlight circuit.
[0077] In some embodiments, the button function module includes: a first button branch, a second button branch, a third button branch, a fourth button branch, a fifth button branch, and a sixth button branch. The first button is, for example, the button KEY1, the second button is, for example, the button KEY2, the third button is, for example, the button KEY3, the fourth button is, for example, the button KEY4, the fifth button is, for example, the button KEY5, and the sixth button is, for example, the button KEY6.
[0078] Among them, each of the first button branch, the second button branch, the third button branch, the fourth button branch, the fifth button branch, and the sixth button branch includes: an external button, a first button resistor module, a second button resistor module, and a button capacitor module. Taking the first button branch as an example, the external button is, for example, the button KEY1, the first button resistor module is, for example, the resistor R13, the second button resistor module is, for example, the resistor R20, and the button capacitor module is, for example, the capacitor C6.
[0079] In each button branch, the connection terminal of the external button is grounded (such as grounded to GND) via the second button resistor module and the external button; the 3.3V voltage is connected to the common terminal of the second button resistor module and the external button via the first button resistor module; the common terminal of the connection terminal of the external button and the second button resistor module is grounded (such as grounded to GND) via the button capacitor; the connection terminal of the external button is also connected to the DSP main chip in the DSP minimum system module (such as connected to the corresponding pin of the DSP main chip in the DSP minimum system module, such as the corresponding button control pin).
[0080] Figure 5 It is a schematic structural diagram of the key selection module. As Figure 5 shown in the key selection module, a total of six keys are set (such as key KEY1, key KEY2, key KEY3, key KEY4, key KEY5, and key KEY6). After being regulated by the program, it mainly selects various programs of the screen display circuit. The six keys are respectively the up, down, left, right, confirm, and cancel keys. The effect of this circuit is to realize human-computer interaction. The user can input instructions through the six keys to complete operations such as file selection and program flashing. The advantage is that the usage threshold is low, and it can be used proficiently without the guidance of professionals.
[0081] Among them, the connection terminal of key KEY1 is grounded to GND through resistor R20 and key KEY1; the connection terminal of key KEY2 is grounded to GND through resistor R21 and key KEY2; the connection terminal of key KEY3 is grounded to GND through resistor R22 and key KEY3; the connection terminal of key KEY4 is grounded to GND through resistor R23 and key KEY4; the connection terminal of key KEY5 is grounded to GND through resistor R24 and key KEY5; the connection terminal of key KEY6 is grounded to GND through resistor R25 and key KEY6; the 3.3V power supply is grounded to GND through a capacitor; the 3.3V power supply is connected to the common terminal of resistor R20 and key KEY1 after passing through resistor R13; the 3.3V power supply is connected to the common terminal of resistor R21 and key KEY2 after passing through resistor R14; the 3.3V power supply is connected to the common terminal of resistor R22 and key KEY3 after passing through resistor R15; the 3.3V power supply is connected to the common terminal of resistor R23 and key KEY4 after passing through resistor R17; the 3.3V power supply is connected to the common terminal of resistor R24 and key KEY5 after passing through resistor R18; the 3.3V power supply is connected to the common terminal of resistor R25 and key KEY6 after passing through resistor R19; the common terminal of the connection terminal of key KEY1 and resistor R20 is grounded to GND through capacitor C6; the common terminal of the connection terminal of key KEY2 and resistor R21 is grounded to GND through capacitor C7; the common terminal of the connection terminal of key KEY3 and resistor R22 is grounded to GND through capacitor C8; the common terminal of the connection terminal of key KEY4 and resistor R23 is grounded to GND through capacitor C9; the common terminal of the connection terminal of key KEY5 and resistor R24 is grounded to GND through capacitor C10; the common terminal of the connection terminal of key KEY6 and resistor R25 is grounded to GND through capacitor C11. The connection terminals of key KEY1, key KEY2, key KEY3, key KEY4, key KEY5, and key KEY6 are respectively connected to the DSP main chip of the DSP minimum system.
[0082] A handheld program flasher proposed by the solution of the present utility model is small in size and very convenient to carry. It can directly select the internal stored program for flashing without using a computer; it can directly communicate with the vehicle controller through the CAN line without using a CAN card; it can complete the program flashing through simple button interactions; non-professionals only need to simply read the instructions, solving the problem of relying on professional technicians to run back and forth for debugging in two places.
[0083] In some embodiments, the storage module includes: an SD card storage module and / or a TF card storage module.
[0084] The handheld program flasher proposed by the solution of the present utility model mainly aims to more conveniently overwrite (i.e., flash) the software program of new energy vehicles, that is, to perform various program overwrites and implement other functions such as CAN communication without carrying a computer and a CAN card, and still be able to quickly flash the program without the operation of professionals, thus greatly saving the cost and time of after-sales maintenance. In terms of external connection, the handheld program flasher proposed by the solution of the present utility model has a connection method of a Secure Digital (SD) card and a Type-C (a hardware interface specification of the Universal Serial Bus USB), which can greatly facilitate the input and storage of programs. The handheld program flasher has a series of advantages such as a small appearance, rich functions, and convenient use.
[0085] In some embodiments, the TF card storage module includes: a sixth module and a four-way storage resistor module. The sixth module is, for example, interface J2, and the four-way storage resistor module is, for example, resistors R34, R35, R36, R37, etc.
[0086] Among them, the 3.3V voltage, after passing through each storage resistor module in the four-way storage resistor module, is connected to the corresponding pin of the sixth module; the corresponding pin of the sixth module is connected to the corresponding pin of the DSP main chip in the DSP minimum system module (such as being connected to the corresponding storage control pin of the DSP main chip in the DSP minimum system module).
[0087] Specifically, the 3.3V voltage, after passing through the first storage resistor module, is connected to the ninth pin of the sixth module; the ninth pin of the sixth module is connected to the CS pin of the DSP main chip in the DSP minimum system module. The first storage resistor module is, for example, resistor R34.
[0088] The 3.3V voltage, after passing through the second storage resistor module, is connected to the eighth pin of the sixth module; the eighth pin of the sixth module is connected to the SIMO pin of the DSP main chip in the DSP minimum system module. The second storage resistor module is, for example, resistor R35.
[0089] The 3.3V voltage is connected to the seventh pin of the sixth module after passing through the third storage resistor module; the seventh pin of the sixth module is connected to the CLK pin of the DSP main chip in the DSP minimum system module. The third storage resistor module is like resistor R36.
[0090] The 3.3V voltage is connected to the sixth pin of the sixth module after passing through the fourth storage resistor module; the sixth pin of the sixth module is connected to the MOSI pin of the DSP main chip in the DSP minimum system module. The fourth storage resistor module is like resistor R37.
[0091] Figure 8 It is a schematic diagram of the structure of the TF card storage module. As Figure 8 shown, it is the TF card storage module. This TF card storage module is powered by 3.3V voltage. This TF card storage module still connects to the DSP main chip with SPI_CS, SPI_SIMO, SPI_CLK and SPI_SOMI or MISO. Its main function is to connect to external programs, import the external programs into the DSP main chip, and finally be used for program overwriting. SPI_CS (Chip Select) is the chip select signal pin, and the chip select signal is used to select the slave device; SPI_SIMO is "MOSI", which is the pin to output the data of the master device to the slave device; SPI_CLK is the pin for transmitting the clock signal; SPI_SOMI or MISO is the pin to output the data of the slave device to the master device. The effect of this circuit is that external programs can be imported into the TF memory card at any time to replace the built-in program files in the handheld program flasher, and program flashing can be performed for different types of controllers, with a wider range of applications.
[0092] Among them, the first pin, the second pin, the third pin, the fourth pin, and the fifth pin of interface J2 are all grounded. The sixth pin of interface J2 is connected to the MOSI pin of the DSP main chip, the seventh pin of interface J2 is connected to the CLK pin of the DSP main chip, the eighth pin of interface J2 is connected to the SIMO pin of the DSP main chip, and the ninth pin of interface J2 is connected to the CS pin of the DSP main chip. The connection terminal of the 3.3V voltage is connected to the ninth pin of interface J2 after passing through resistor R34; the connection terminal of the 3.3V voltage is connected to the eighth pin of interface J2 after passing through resistor R35; the connection terminal of the 3.3V voltage is connected to the seventh pin of interface J2 after passing through resistor R36; the connection terminal of the 3.3V voltage is connected to the sixth pin of interface J2 after passing through resistor R37. Interface J2 is a self-elastic TF card socket. Each pin of interface J2 is respectively connected to each signal pin of the DSP main chip, and is used to read and write the data of the TF memory card inserted therein, and the remaining pins can be grounded. MOSI (Master Out, Slave In) is a pin in the SPI (Serial Peripheral Interface) protocol and is used for the master device to send data to the slave device. In SPI communication, the function of the MOSI pin is to output the data of the master device to the slave device.
[0093] Specifically, the functions of the MOSI pin include: data transmission: during the SPI communication process, the master device sends data to the slave device through the MOSI pin; clock synchronization: the data transmission of the MOSI pin is synchronized with the clock signal to ensure that the data is sampled at the correct clock edge. The MOSI pin is an important part of the SPI interface and works together with other pins such as MISO (Slave Out, Master In), SCLK (clock signal), CS (chip select), etc. to complete the data exchange between the master and slave devices.
[0094] The volume and weight of the handheld program flasher proposed by the solution of the present utility model are slightly smaller than those of an ordinary mobile phone, and it is convenient to carry; when flashing the program, it can replace a laptop computer in terms of function, and the operation is very simple. Even non-professionals only need to simply read the instructions to complete the program flashing work; its own manufacturing cost is also very low, greatly saving the time and cost of after-sales maintenance.
[0095] By adopting the technical solution of the present utility model, by integrating and setting an activation circuit, a DSP minimum system module, a CAN communication module, a reset circuit, a key function module, a Type-C charging interface module, an SD card storage module, and a screen display module, a program flashing device is formed, which can be applied to the program flashing of the software program of an automobile; thus, by setting a program flashing device for the software program of an automobile, it can be connected to the vehicle controller of the automobile to flash the software program of the automobile, which is very convenient to use.
[0096] In summary, it is easy for those skilled in the art to understand that, on the premise of no conflict, the above-mentioned advantageous methods can be freely combined and superimposed.
[0097] The above are only embodiments of the present utility model and are not intended to limit the present utility model. For those skilled in the art, the present utility model can have various changes and modifications. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present utility model shall be included within the scope of the claims of the present utility model.
Claims
1. A program flashing device, characterized in that: A program flashing device that can be applied to a software program of an automobile; the program flashing device comprises: a housing, an activation circuit, a DSP minimum system module, a CAN communication module and a reset circuit integrated inside the housing, and an external connection module arranged on or outside the housing; the external connection module comprises: a Type-C charging interface module, a key function module, a storage module and a display screen module; wherein, The Type-C charging interface module is connected to the activation circuit; the activation circuit is respectively connected to the DSP minimum system module, the CAN communication module and the DSP minimum system module; the CAN communication module can communicate with the communication module on the vehicle controller of the car to flash the software program of the car; The key function module, the storage module and the display screen module are respectively connected to the DSP minimum system module.
2. The program flashing device according to claim 1, characterized in that: The activation circuit comprises: a battery module, a first conversion module and a second conversion module; wherein, The Type-C charging interface module is connected to the charging end of the battery module; the power supply end of the battery module is respectively connected to the input end of the first conversion module and the input end of the second conversion module; the output end of the first conversion module is connected to the CAN communication module to provide a 5V voltage; the output end of the second conversion module is respectively connected to the DSP minimum system module and the reset circuit to provide a 3.3V voltage.
3. The program flashing device according to claim 2, characterized in that: The Type-C charging interface module includes: a first module, a second module and a third module; wherein, The first module is used to input an external 5V voltage to the second module; the second module is used to perform bus switching serial port chip and is connected to the third module; the third module is connected to the battery module.
4. The program flashing device according to claim 2, characterized in that: The first conversion module includes: a fourth module, a first filtering module, a second filtering module and a voltage dividing module; wherein, The power supply end of the battery module is connected to the input end of the fourth module; the output end of the fourth module is connected to the CAN communication module after passing through the voltage divider module to provide a 5V voltage; the first filter module is connected to the input end of the fourth module, and the second filter module is connected to the output end of the fourth module.
5. The program flashing device according to claim 2, characterized in that: The second conversion module includes: a fifth module, a third filtering module and a fourth filtering module; wherein, The power supply end of the battery module is connected to the input end of the fifth module; the output end of the fifth module is respectively connected to the DSP minimum system module and the reset circuit to provide a 3.3V voltage; the third filter module is connected to the input end of the fifth module, and the fourth filter module is connected to the output end of the fifth module.
6. The program flashing device according to claim 1, characterized in that: The display screen module includes: a backlight circuit, a transistor module and a serial peripheral device interface; the serial peripheral device interface includes: a CSL interface, an SDA interface, a RES interface, a DC interface, a CS interface and a BLK interface; wherein, The control end of the backlight circuit is connected to the base of the triode module through a current limiting resistor module; the emitter of the triode module is grounded; the collector of the triode module is connected to the first wiring terminal of the backlight circuit through a first display resistor module; and the 3.3V voltage is connected to the second wiring terminal of the backlight circuit; The CSL interface is connected to the anode of the first diode module through the second display resistor module, and the cathode of the first diode module is connected to the third wiring terminal of the backlight circuit; The SDA interface is connected to the anode of the second diode module through the third display resistor module, and the cathode of the second diode module is connected to the fourth wiring terminal of the backlight circuit; The RES interface is connected to the anode of the third diode module through the fourth display resistor module, and the cathode of the third diode module is connected to the fifth connection terminal of the backlight circuit; The DC interface is connected to the anode of the fourth diode module through the fifth display resistor module, and the cathode of the fourth diode module is connected to the sixth connection terminal of the backlight circuit; The CS interface is connected to the anode of the fifth diode module through the sixth display resistor module, and the cathode of the fifth diode module is connected to the seventh connection terminal of the backlight circuit; The BLK interface is connected to the anode of the sixth diode module through the seventh display resistor module, and the cathode of the sixth diode module is connected to the eighth connection terminal of the backlight circuit.
7. The program flashing device according to claim 1, characterized in that: The key function module includes: a first key branch, a second key branch, a third key branch, a fourth key branch, a fifth key branch, and a sixth key branch; wherein, Each of the first button branch, the second button branch, the third button branch, the fourth button branch, the fifth button branch, and the sixth button branch comprises: an external button, a first button resistance module, a second button resistance module, and a button capacitance module; In each button branch, the connection terminal of the external button is grounded after passing through the second button resistance module and the external button; the 3.3V voltage is connected to the common end of the second button resistance module and the external button after passing through the first button resistance module; the connection terminal of the external button and the common end of the second button resistance module are grounded after passing through the button capacitor; the connection terminal of the external button is also connected to the DSP main chip in the DSP minimum system module.
8. The program flashing device according to any one of claims 1 to 7, characterized in that: The storage module includes: an SD card storage module and / or a TF card storage module.
9. The program flashing device according to claim 8, characterized in that: The TF card storage module includes: a sixth module and a four-way storage resistor module; wherein, The 3.3V voltage is connected to the corresponding pin of the sixth module after passing through each of the four storage resistor modules; the corresponding pin of the sixth module is connected to the corresponding pin of the DSP main chip in the DSP minimum system module.