Disassembly-free upgradable circuit board
By integrating the STM32 chip and communication port on the circuit board, the serial port can be directly upgraded, which solves the problem of too many wiring ports in the circuit board hardware configuration, improves the simplicity and cost-effectiveness of the design, and ensures the waterproof and dustproof effect of the product.
Patent Information
- Application Number
- CN202420025588.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-04
- Publication Date
- 2024-09-20
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing circuit boards require multiple wiring ports when upgrading, resulting in a large number of wiring connections and a messy layout, which affects the simplicity and cost of the overall design.
Using the main control chip STM32 fixed on the circuit board, serial communication port, data communication port, power input port and signal input/output port, the program can be upgraded directly through the serial communication port, reducing the downloader wiring port configuration and avoiding disassembly and assembly of the shell. Make an upgrade.
It achieves simplicity and cost reduction in circuit board design, avoids physical damage to the casing, and improves operating efficiency and the dustproof and waterproof performance of the product.
Smart Images

Figure CN221748649U
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic engineering technology, and in particular to a disassembly-free and upgradeable circuit board. Background Art
[0002] With the widespread application of circuit boards in various industries, how to upgrade the circuit board program is a problem of concern. At present, many manufacturers reserve wiring ports for circuit board upgrades when designing circuit boards, resulting in a large number of pins for circuit board upgrade chips, such as power line wiring ports, data signal line wiring ports, clock signal line wiring ports, reset signal line wiring ports, downloader wiring ports, etc. Due to the large number of wiring ports, the number of wiring is large and the wiring layout is messy; in order to make the overall design of the circuit board more concise and improve the user experience, a design solution that can reduce the number of wiring ports in the circuit board hardware configuration is urgently needed.
[0003] Based on this, the present application is proposed to solve the problem of a large number of wiring ports in the hardware configuration of the circuit board. Utility Model Content
[0004] The embodiments of the present specification provide a disassembly-free upgradeable circuit board, which solves the problem of a large number of connection ports in the existing circuit board hardware configuration.
[0005] To solve the above technical problems, the embodiments of this specification are implemented as follows:
[0006] The embodiment of the present specification provides a non-disassembly and upgradeable circuit board, including:
[0007] The main control chip STM32, serial communication port, data communication port, power input port, signal input port and signal output port fixed on the circuit board;
[0008] The serial communication terminal of the main control chip STM32 is electrically connected to the serial communication port;
[0009] The power input terminal of the main control chip STM32 is electrically connected to the power input port;
[0010] The signal input terminal of the main control chip STM32 is electrically connected to the signal input port;
[0011] The control signal terminal of the main control chip STM32 is electrically connected to the signal output port;
[0012] The data communication terminal of the main control chip STM32 is electrically connected to the data communication port.
[0013] At least one embodiment in the present specification can achieve the following beneficial effects: through the main control chip STM32 fixed on the circuit board, the serial communication port, the data communication port, the power input port, the signal input port and the signal output port; wherein the serial communication terminal of the main control chip STM32 is electrically connected to the serial communication port, the power input terminal of the main control chip STM32 is electrically connected to the power input port, the signal input terminal of the main control chip STM32 is electrically connected to the signal input port, and the control signal terminal of the main control chip STM32 is electrically connected to the signal output port; the data communication terminal of the main control chip STM32 is electrically connected to the data communication port; the program upgrade of the main control chip STM32 is realized by connecting the serial communication port, the configuration of the downloader wiring port in the circuit board hardware is reduced, and the configuration of the downloader port fixed on the device housing and the lead wire between the downloader port fixed on the device housing and the downloader terminal of the main control chip STM32 is avoided, so that the overall design of the circuit board is simpler and the cost is lower. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0015] Figure 1 This is a schematic diagram of a non-disassembly and upgradeable circuit board provided in the embodiment of this specification. Figure 1 .
[0016] Figure 2 This is a schematic diagram of a non-disassembly and upgradeable circuit board provided in the embodiment of this specification. Figure 2 . DETAILED DESCRIPTION
[0017] In order to make the purpose, technical solutions and advantages of one or more embodiments of this specification clearer, the technical solutions of one or more embodiments of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of one or more embodiments of this specification.
[0018] In the prior art, with the widespread application of circuit boards in various industries, circuit boards are core components, and users are increasingly eager to continuously iterate and upgrade the functions of circuit boards. The traditional STM32 bootloader first needs to manually configure the specified pins on the development board to the specified form, and then use specific host computer software to update the program. This means that developers must use specific software tools compatible with the bootloader in order to correctly send the update program to the target device. Most traditional STM32 bootloader tools are developed based on the Windows platform. If the developer is using a non-Windows operating system such as MacOS or Linux, additional configuration or the use of a virtual machine may be required to interact with the bootloader.
[0019] When updating the STM32 program, the STM32 program is updated and downloaded through ST-link or other program downloaders. During use, a special interface needs to be reserved, and the number of interface pins is large. In general products, a large amount of space will be occupied on the shell, thereby affecting the structural design and protection performance, and the system adaptability is poor. Generally, only the Windows system can be used for program updates, and an additional downloader device needs to be carried at all times. Therefore, the circuit board in the prior art has more port configurations and more wiring corresponding to the ports, resulting in an overall unsophisticated design of the circuit board and high cost.
[0020] The technical solution of the present utility model can solve the above technical problems. The technical solutions provided by the embodiments of the present specification are described in detail below in conjunction with the accompanying drawings.
[0021] In order to solve the defects in the prior art, this solution provides the following embodiments:
[0022] Figure 1 This is a schematic diagram of a non-disassembly and upgradeable circuit board provided in the embodiment of this specification. Figure 1 .
[0023] like Figure 1 As shown, a non-disassembly and upgradeable circuit board in the utility model may include: a main control chip STM32 1100 fixed on the circuit board 1000, a serial communication port 1010, a data communication port 1020, a power input port 1040, a signal input port 1050 and a signal output port 1030;
[0024] The serial communication terminal of the main control chip STM32 1100 is electrically connected to the serial communication port 1010; the power input terminal of the main control chip STM32 1100 is electrically connected to the power input port 1040; the signal input terminal of the main control chip STM32 1100 is electrically connected to the signal input port 1050; the control signal terminal of the main control chip STM32 1100 is electrically connected to the signal output port 1030; the data communication terminal of the main control chip STM321100 is electrically connected to the data communication port 1020.
[0025] Among them, the main control chip STM321100 is on the backplane inside the shell of the fixed circuit board, and the serial communication port 1010, the data communication port 1020, the power input port 1040, the signal input port 1050 and the signal output port 1030 are fixed on the circuit board shell through a card slot; therefore, after the circuit board is packaged with the shell, the external device can establish a connection with the main control chip STM321100 through the serial communication port 1010, the data communication port 1020, the power input port 1040, the signal input port 1050 and the signal output port 1030 to realize data communication.
[0026] Specifically, by electrically connecting the serial communication terminal of the main control chip STM321100 on the circuit board 1000 with the serial communication port 1010, the serial communication port 1010 is fixed on the shell that fixes the circuit board 1000; the user or maintenance personnel uses a host computer to connect to the serial communication port 1010 to burn and upgrade the program of the main control chip STM321100.
[0027] It should be noted that for the serial port on the circuit board that can be used to upgrade the main control chip STM321100, during the operation of the circuit board, that is, when the circuit board does not need to be upgraded, the serial port can also be used as a normal serial port to communicate serial data with external devices.
[0028] Preferably, the serial communication port may include multiple ones, and the serial communication port is connected to a chip outside the circuit board to establish data communication between two different circuit boards.
[0029] By electrically connecting the power input terminal of the main control chip STM321100 to the power input port 1040 , the power input port 1040 can be used to connect an external power supply to supply power to the main control chip STM321100 .
[0030] By electrically connecting the signal input terminal of the main control chip STM321100 with the signal input port 1050, the action signal of other external devices can be input to the main control chip STM321100, so that the main control chip STM321100 can read the external signal and input level based on the input port, such as a key signal or a pulse signal.
[0031] By electrically connecting the control signal terminal of the main control chip STM321100 to the signal output port 1030, the main control chip on the circuit board can output a control signal to control an external device connected to the port; for example, the output port can control electronic devices outside the circuit board.
[0032] By electrically connecting the data communication terminal of the main control chip STM321100 with the data communication port 1020, the circuit board can communicate with other circuit boards or terminal devices to transfer data.
[0033] In summary, based on the disassembly-free upgradeable circuit board in the embodiment of the present application, when upgrading the circuit board, it is not necessary to use a special downloader to connect the downloader port of the circuit board as required in the prior art, and it is also necessary to use a specified version of the host computer tool to burn the program in order to upgrade the main control chip. Using the technical solution disclosed in the present application, the user only needs to establish a connection between the host computer and the serial communication port fixed on the shell to upgrade the system of the main control chip STM321100; thereby directly using the data communication port to upgrade the main control chip STM32, reducing the downloader wiring port configuration in the circuit board hardware configuration, making the overall design of the circuit board more concise and lower in cost.
[0034] Further, in the prior art, there is also a situation where the downloader terminal in the STM32 chip on the circuit board is not connected to the wiring port fixed on the device housing. For a circuit board of this design, when upgrading the chip on its circuit board, it is necessary to disassemble the device housing where the circuit board is installed, and the STM32 chip of the circuit board can be upgraded only after the downloader terminal is connected. In this case, the packaged product is disassembled and assembled twice, resulting in a reduction in the sealing level of the device, affecting the dustproof and waterproof effects of the device. Based on the technical solution of the embodiment of the present application, this problem can also be solved. By adopting the disassembly-free upgradeable circuit board disclosed in the embodiment of the present application, it is only necessary to use the serial communication port installed on the circuit board housing to establish a connection with the host computer, and the chip on the circuit board can be upgraded; therefore, it is not necessary to disassemble and assemble the housing that encapsulates the circuit board, and the overall waterproof and dustproof effects of the product will not be affected.
[0035] In summary, the technical solution in the embodiment of the present application fully considers the convenience of users in terms of system upgrade. Directly upgrading the program through the serial port reduces the additional requirements for hardware design, making the overall design more concise and reducing costs. At the same time, there is no need to open the shell or connect an additional download port, which avoids physical damage to the shell and maintenance costs, and simplifies the system maintenance process. It not only improves the operating efficiency, but also ensures the dust and water resistance of the product, which helps to improve the stability and reliability of the equipment.
[0036] It should be noted that the disassembly-free upgradeable circuit board in the embodiment of the present application can also be combined with other circuit boards and packaged into a separate power electronic product. As long as the various circuit boards are connected through the serial communication port, and the final output communication port is fixed on the casing of the power electronic product, the user can upgrade each circuit board through the communication port fixed on the casing without disassembling the casing of the product, and therefore will not affect the overall waterproof and dustproof effect of the product.
[0037] Further, as another embodiment, Figure 2 As shown, Figure 2 This is a schematic diagram of a non-disassembly and upgradeable circuit board provided in the embodiment of this specification. Figure 2 .
[0038] Preferably, the circuit board 1000 may further include a first power module 1041 fixed on the circuit board 1000; the power input port 1040 is electrically connected to the power input terminal of the main control chip STM321100 through the first power module 1041. Specifically, the external power line is electrically connected to the first power module 1041 through the power input port 1040, and the first power module 1041 supplies power to the main control chip STM321100; wherein the first power module 1041 can provide a power supply with a voltage of 3.3V.
[0039] Preferably, a hardware start-stop switch, such as a start-stop button, may also be provided on the first power module 1041; the user may start the system at any time by triggering the button, thereby providing the user with a more convenient operating experience.
[0040] Furthermore, the first power module 1041 may also include a control signal terminal, which electrically connects the control signal terminal of the first power module 1041 to the start / stop control signal terminal of the main control chip STM321100, so that the main control chip STM321100 can issue a command through the terminal to shut down the system; this allows users to flexibly control the operating status of the product according to their needs, thereby enhancing the controllability of the system.
[0041] Preferably, the circuit board 1000 may also be fixed with a LIN module 1021 on the circuit board 1000; the data communication terminal of the main control chip STM321100 is electrically connected to the data communication port 1020 through the LIN module 1021. The LIN module 1021 can convert the ordinary TTL communication level generated by the main control chip STM321100 into a 12V electrical signal for LIN communication, and convert the received LIN data into TTL data, so that the main control chip STM321100 can communicate and identify normally, thereby ensuring data communication between the main control chip STM321100 and external devices.
[0042] Preferably, a second power module 1061 and a second power output port 1060 may also be fixed on the circuit board 1000; the control signal input terminal of the second power module 1061 is electrically connected to the first power control terminal of the main control chip STM321100, and the power output terminal A of the second power module 1061 is electrically connected to the second power output port 1060.
[0043] As an example, the second power module 1061 may be a 12V power module. After the system starts working, the main control chip STM321100 sends a control signal to control the working state of the second power module 1061; specifically, the STM321100 controls the working state of an optical coupling switch on the circuit board to control the working state of the second power module 1061, so that the second power module 1061 provides stable working power to electronic products and equipment other than the circuit board through the second power output port 1060.
[0044] Furthermore, the second power module 1060 also includes a power output terminal B, which is electrically connected to a power input terminal of the LIN module 1021 , so that the second power module 1060 provides working power for the LIN module 1021 on the circuit board.
[0045] Preferably, a third power module 1071 and a third power output port 1070 may also be fixed on the circuit board 1000, the control signal input terminal of the third power module 1071 is electrically connected to the second power control terminal of the main control chip STM321100, and the power output terminal of the third power module 1071 is electrically connected to the third power output port 1070.
[0046] As an example, the third power module 1071 can be a 5V power module. After the system starts working, the main control chip STM321100 sends a control signal to control the working state of the second power module 1071; specifically, the main control chip STM321100 controls the working state of an optical coupling switch on the circuit board to control the working state of the second power module 1071, so that the second power module 1071 provides stable working power to electronic products and equipment other than the circuit board through the second power output port 1060.
[0047] In summary, the solution of this application integrates common power modules such as 12V, 5V and 3.3V on the circuit board, providing users with more flexible power options, and the built-in LIN module enables it to directly connect to multiple LIN devices, improving the system's data communication capabilities.
[0048] It should be noted that the serial communication port, data communication port, input port and output port on the circuit board described in this application can be set to multiple according to the actual design requirements of the circuit board, and the power module can also be configured according to actual needs to achieve the corresponding function; this scheme only uses a single serial communication port, data communication port, input port and output port as an example, and should not limit the number of its ports. As long as the function or implementation method is the same as the scheme in the embodiment of this application, it belongs to the protection scope of this application.
[0049] The working principle of the utility model is as follows: when the system is used for the first time, the address space from 0x8000000 to 0x8008000 needs to be divided in the internal Flash of the main control chip STM32 on the circuit board 1000 for storing the boot loader program. The boot loader program is first downloaded to the designated divided address of the internal Flash through the downloader, and the host computer (which can be Linux or Windows) is connected to the target device through the serial port to ensure that the download software has been correctly configured and connected to the target device. Select the file to be downloaded and send the download command through the serial port software. The download command will trigger the download mode of the target device, and click the download button of the host computer to transfer the new program file to the target device.
[0050] The file transmitted by the host computer is a program that needs to run normally. First, a complete program is broken down into multiple small parts to prevent the program from being unable to process the file that is too large to be transmitted at one time. Secondly, each small part is encoded into three segments: start line, data record, and checksum. After receiving the data, the boot loader first saves the received data to RAM, uses the start line data to determine the data length of each segment, and uses the checksum segment to check and calculate a complete segment of data. If the check passes, it means that the received data has no errors or damage. Once the check verification is successful, the boot loader will start writing the program data from RAM to the next memory page area address of the boot loader storage location, that is, the address space after 0x8008000 to avoid data overwriting the boot loader. After the entire download process is completed, the space after 0x8008000 has been completely updated to the new program transmitted by the serial port.
[0051] Finally, the boot loader will restart the device. When no update command or update data is detected on the serial port, the program will jump to address 0x8008000 and start executing the updated program. The operation of the new program can be verified by observing the behavior of the device or interacting with it.
[0052] After the circuit board 1000 is packaged and put into use, if the main control chip STM32 1100 on the circuit board 1000 needs to be updated, it is only necessary to connect the host computer to the serial communication port to implement the program update. Therefore, the non-disassembly upgradeable circuit board described in this solution reduces the additional configuration of the downloader connection port in the circuit board hardware configuration, making the overall design of the circuit board simpler and lower in cost; and the program can also be upgraded without disassembling the shell, which does not affect the dustproof and waterproof effects of the overall product, and improves the reliability of the product.
[0053] The above embodiments are only used to illustrate the technical solution of the utility model, but not to limit it. The pattern filling in the drawings of the utility model does not represent the material of the structure, but only distinguishes the structure.
[0054] The directions "up", "down", "left" and "right" in the description of the utility model do not represent the actual installation directions, but are only for the convenience of description according to the drawings; although the utility model has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments can still be modified, or some of the technical features therein can be replaced by equivalents; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the various embodiments of the utility model.
Claims
1. A non-disassembly and upgradeable circuit board, characterized in that: include: The main control chip STM32, serial communication port, data communication port, power input port, signal input port and signal output port fixed on the circuit board; The serial communication terminal of the main control chip STM32 is electrically connected to the serial communication port; The power input terminal of the main control chip STM32 is electrically connected to the power input port; The signal input terminal of the main control chip STM32 is electrically connected to the signal input port; The control signal terminal of the main control chip STM32 is electrically connected to the signal output port; The data communication terminal of the main control chip STM32 is electrically connected to the data communication port.
2. The circuit board according to claim 1, characterized in that It also includes a first power module fixed on the circuit board; the power input port is electrically connected to the power input terminal of the main control chip STM32 through the first power module.
3. The circuit board according to claim 2, characterized in that: The first power module also includes a control signal terminal, and the control signal terminal of the first power module is electrically connected to the start / stop control signal terminal of the main control chip STM32.
4. The circuit board according to claim 1, characterized in that: It also includes a LIN module fixed on the circuit board; the data communication terminal of the main control chip STM32 is electrically connected to the data communication port through the LIN module.
5. The circuit board according to claim 1, wherein: It also includes a second power module and a second power output port fixed on the circuit board; the control signal input terminal of the second power module is electrically connected to the first power control terminal of the main control chip STM32, and the power output terminal A of the second power module is electrically connected to the second power output port.
6. The circuit board according to claim 5, characterized in that: The second power module further includes a power output terminal B, and the power output terminal B is electrically connected to a power input terminal of the LIN module.
7. The circuit board according to claim 1, characterized in that: It also includes a third power module and a third power output port fixed on the circuit board, the control signal input terminal of the third power module is electrically connected to the second power control terminal of the main control chip STM32, and the power output terminal of the third power module is electrically connected to the third power output port.
