J-link simulator SWD mode multi-CPU board card on-line simulation upgrading device and J-link simulator SWD mode multi-CPU board card on-line simulation upgrading system
Through the J-link emulator SWD mode multi-CPU board online simulation upgrade device, the inconvenience of software upgrade and problem positioning in the joint control of multi-CPU board in distribution network automation control equipment is solved, online simulation and upgrade are realized, and efficiency is improved .
Patent Information
- Application Number
- CN202420671107.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-02
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2034-04-02
AI Technical Summary
In the joint control of multi-CPU boards, there are inconveniences in software upgrades and problem positioning, and the machine and power need to be disassembled for simulation and upgraded, resulting in inefficiency.
The J-link emulator SWD mode multi-CPU board online simulation upgrade device is adopted, and the signal is realized through interface module, J-link emulator, SWD mode network port and hardware selection components, network port docking circuit and 16-channel gate switch components. Data interaction between transmission and board cards, supporting online simulation and upgrade.
It realizes online simulation and firmware upgrades of multiple boards without disassembling or power outage, improving problem positioning efficiency and convenience of on-site maintenance.
Smart Images

Figure CN221960427U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical fields of board online simulation technology and download upgrade program, and in particular to a J-link simulator SWD mode multi-CPU board online simulation upgrade device and system. Background Art
[0002] With the development of technology, the current distribution network automation control equipment needs to process more data and has heavy CPU tasks. A single board cannot effectively process signal data, and multiple boards need to communicate with each other to exchange data. When a problem occurs on a board, it is inconvenient to find the problem and upgrade the firmware. It is often necessary to simulate the board in real time, and the boards exchange data with each other. To simulate a single board or upgrade the firmware, the machine needs to be disassembled and the power needs to be turned off. That is, many of the existing distribution network automation control equipment are coordinated and controlled by multiple boards. When a board is abnormal, it is necessary to upgrade the firmware or perform simulation to find the problem. When simulating to find the problem, the device needs to be disassembled and the circuit board needs to be taken out, which is not convenient for finding the problem and on-site simulation procedures.
[0003] Simply put, there are two problems when multiple CPU boards are jointly controlled in the power industry. First, there is currently a problem with software upgrades, and when problems arise during software upgrades, the machine can only be dismantled for upgrades. Second, online simulation cannot be performed when looking for problems. During the production process, multiple boards are assembled and the upgrade program is upgraded. The communication between multiple CPU boards is not convenient for online problem finding, and the problem cannot be located through a single board. When problems arise during on-site software upgrades, the machine needs to be dismantled and powered off. When looking for problems, a separate circuit board needs to be removed for single-board simulation. Data from other boards is lacking, and simulation to find problems is inconvenient, requiring dismantling of the machine.
[0004] In view of this, this application is filed. Utility Model Content
[0005] The utility model discloses a J-link simulator SWD mode multi-CPU board online simulation upgrade device and system, which can effectively solve a series of inconvenient operation problems in the research and development, production and on-site maintenance of distribution network automation control equipment in the prior art, the problem of being unable to quickly locate the problem, and the problem of low efficiency in on-site problem solving.
[0006] The utility model discloses a J-link simulator SWD mode multi-CPU board online simulation upgrade device, comprising: an interface module, a J-link simulator, a SWD mode network port and hardware selection component, a network port docking circuit, a network port conversion 16-way selection switch component, and multiple online simulation card boards;
[0007] Wherein, the J-link emulator is connected to the preset computer terminal through the interface module, the J-link emulator is electrically connected to the SWD mode network port and the hardware selection component, the SWD mode network port and the hardware selection component are connected to the network port conversion 16-way selection switch component through the network port docking circuit, and the network port conversion 16-way selection switch component is connected to each of the online simulation card boards;
[0008] Among them, the SWD mode network port and hardware selection component is configured to turn on one of the 16-way selection switch components of the network port conversion, and transmit the TRST signal, TCK signal, TMS signal, and the shared 3.3V signal and GND signal output by the preset computer end through the selection circuit to the corresponding online simulation card board.
[0009] Preferably, the interface module is a USB interface.
[0010] Preferably, the SWD mode network port and hardware selection component include a JTAG interface to SWD network port 1, and an 8-bit selection switch circuit control network port 2, wherein the SWD download mode interface of the JTAG interface to SWD network port 1 is connected to the JTAG interface of the J-link emulator, and the 8-bit selection switch circuit control network port 2 is connected to the J-link emulator.
[0011] Preferably, the network port docking circuit includes a docking SWD network port 1 and a docking selection network port 2, wherein the first end of the docking SWD network port 1 is connected to the JTAG interface to SWD network port 1, the first end of the docking selection network port 2 is connected to the 8-bit selection switch circuit control network port 2, and the second end of the docking SWD network port 1 and the second end of the docking selection network port 2 are connected to the network port conversion 16-way selection switch component.
[0012] Preferably, the network port conversion 16-way selection switch component includes a first 16-way selection signal switch, a second 16-way selection signal switch, and a third 16-way selection signal switch, wherein the input end of the first 16-way selection signal switch, the input end of the second 16-way selection signal switch and the input end of the third 16-way selection signal switch are connected to the SWD mode network port and hardware selection component, and the output end of the first 16-way selection signal switch, the output end of the second 16-way selection signal switch and the output end of the third 16-way selection signal switch are respectively connected to each of the online simulation card boards.
[0013] The utility model also discloses a J-link emulator SWD mode multi-CPU board online simulation upgrade system, comprising a preset computer terminal and a J-link emulator SWD mode multi-CPU board online simulation upgrade device as described above, wherein the J-link emulator is connected to the preset computer terminal via the interface module.
[0014] Preferably, it further comprises a remote control terminal, wherein the remote control terminal is communicatively connected with the preset computer terminal to perform data exchange.
[0015] In summary, the J-link simulator SWD mode multi-CPU board online simulation upgrade device and system provided in this embodiment adopts J-link transfer, SWD mode, network port transfer, 3 16-way single-to-multiple strobe switches, 8-channel hardware strobe switches, and multi-board matching circuit interface; SWD (8-wire) interface (3.3V, GND, RESET, SWCLK, SWDIO) connects to strobe (SWDIO, SWCLK, RESET), and then connects to 3 16-way strobe switches through A, B, C, D, Z selection, 8-channel hardware strobe switch controls 16-way output by controlling the level output of A, B, C, D, Z, and then 1-16-way board upgrade and online simulation. Thereby solving the problems of inconvenient operation, inability to quickly locate problems, and low efficiency in solving problems on site in the research and development, production, and on-site maintenance of distribution network automation control equipment in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a schematic diagram of the overall hardware implementation of a J-link simulator SWD mode multi-CPU board online simulation upgrade device provided by the first aspect of the utility model;
[0017] Figure 2 It is a schematic diagram of the overall hardware implementation of a J-link simulator SWD mode multi-CPU board online simulation upgrade device provided by the second aspect of the utility model;
[0018] Figure 3 This is a schematic diagram of a J-LINK emulator interface of a J-LINK emulator SWD mode multi-CPU board online emulation upgrade device provided by an embodiment of the utility model;
[0019] Figure 4 This is a schematic diagram of an SWD download mode interface of a J-link simulator SWD mode multi-CPU board online simulation upgrade device provided by an embodiment of the utility model;
[0020] Figure 5It is a schematic diagram for explaining the conduction of the XL4067 gate switch of a J-link simulator SWD mode multi-CPU board online simulation upgrade device provided by an embodiment of the utility model;
[0021] Figure 6 It is a schematic diagram of a J-link emulator externally converting to dual network ports and selecting a conduction hardware switch interface circuit of a J-link emulator SWD mode multi-CPU board online emulation upgrade device provided by an embodiment of the utility model;
[0022] Figure 7 The present invention provides a schematic diagram of a device matching and selecting 16-way board docking circuit of a J-link emulator SWD mode multi-CPU board online emulation upgrade device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0023] In order to make the purpose, technical scheme and advantages of the embodiments of the utility model clearer, the technical scheme in the embodiments of the utility model will be clearly and completely described below in conjunction with the drawings in the embodiments of the utility model. Obviously, the described embodiments are part of the embodiments of the utility model, not all of the embodiments. Based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the utility model. Therefore, the following detailed description of the embodiments of the utility model provided in the drawings is not intended to limit the scope of the utility model for which protection is sought, but merely represents the selected embodiments of the utility model. Based on the embodiments in the utility model, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the utility model.
[0024] The specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0025] See also Figure 1 to Figure 2 The first embodiment of the utility model provides a J-link simulator SWD mode multi-CPU board online simulation upgrade device, including: an interface module, a J-link simulator, a SWD mode network port and hardware selection component, a network port docking circuit, a network port conversion 16-way selection switch component, and multiple online simulation card boards;
[0026] Wherein, the J-link emulator is connected to the preset computer terminal through the interface module, the J-link emulator is electrically connected to the SWD mode network port and the hardware selection component, the SWD mode network port and the hardware selection component are connected to the network port conversion 16-way selection switch component through the network port docking circuit, and the network port conversion 16-way selection switch component is connected to each of the online simulation card boards;
[0027] Among them, the SWD mode network port and hardware selection component is configured to turn on one of the 16-way selection switch components of the network port conversion, and transmit the TRST signal, TCK signal, TMS signal, and the shared 3.3V signal and GND signal output by the preset computer end through the selection circuit to the corresponding online simulation card board.
[0028] Preferably, the interface module is a USB interface.
[0029] Specifically, in this embodiment, the J-link emulator is connected to a computer via USB, the dual network ports are interconnected through the network ports, and the 8-way selection switch manually selects one of the 1-16 routes, so that the five wires of 3V3, GND, TMS, TCK, and TRST, from the USB interface emulator to the last one of the simulation board signals (3.3V, GND, SWDIO, SWCLK, RESET) are in the on state, and the instructions for simulation or firmware upgrade are issued by the computer end, and after the special circuit and interface processing in the middle, the online simulation board program or firmware upgrade can be synchronized.
[0030] Preferably, the SWD mode network port and hardware selection component include a JTAG interface to SWD network port 1, and an 8-bit selection switch circuit control network port 2, wherein the SWD download mode interface of the JTAG interface to SWD network port 1 is connected to the JTAG interface of the J-link emulator, and the 8-bit selection switch circuit control network port 2 is connected to the J-link emulator.
[0031] Specifically, in this embodiment, the SWD download simulation program effective interface introduces VCC, GND, SWDIO, SWCLK, RESET; JTAG download simulation effective interface: VCC, TRST, TDI, TMS, TCLK, RTCK, TDO, RESET, GND, and the operation in the utility model is performed through this mode. The J-link simulator SWD mode multi-CPU board online simulation upgrade device contains a JTAG to SWD conversion part, a SWD conversion to a network port part, a network port conversion to 3 16-way selection conduction switch parts, a selection circuit pull-up and pull-down part; five signal lines (3.3V, GND, RESET, SWCLK, SWDIO) to a 16-way board simulation interface part.
[0032] In this embodiment, Figure 3 The JTAG interface of the J-link emulator is shown in the figure. Figure 4 The interface in the figure is SWD. Figure 6 JP4 in the figure is the external SWD interface of the drawing circuit, which mainly requires 3V3, GND, TMS, TCK, TRST; Figure 6J5 in the figure is the external dual-port interface hardware, where the first port is connected to 3V3, GND, TMS, TCK, TRST; the second port is connected to the 8-way selection hardware switch SW1. When pins 7 and 8 of the 8-way selection hardware switch SW1 are turned on, 3.3V and GND are turned on to port 1, and one end of pins 1, 2, 3, 4, and 5 of SW1 is grounded, and the other end is all 3.3V connected to a 10K resistor for pull-up. By turning on pins 1, 2, 3, 4, and 5, A1, B1, C1, D1, and Z1 output a low level; by disconnecting pins 1, 2, 3, 4, and 5, A1, B1, C1, D1, and Z1 output a high level; the five signal lines A1, B1, C1, D1, and Z1 and Figure 5 The XL4067 in the circuit is connected, and finally the output of XL4067 is controlled by the five signal lines of SW1. The control table is as follows Figure 5 .in, Figure 5 For the XL4067 strobe switch conduction description, Figure 5 The X represents high or low level, 1 represents high level, 0 represents low level, None represents no output, 0 / 1 represents output low level or high level; Y0, Y1, Y2, Y3, Y4, Y5, Y6, Y7, Y8, Y9, Y10, Y11, Y12, Y13, Y14, Y15 represent 16 channels.
[0033] Preferably, the network port docking circuit includes a docking SWD network port 1 and a docking selection network port 2, wherein the first end of the docking SWD network port 1 is connected to the JTAG interface to SWD network port 1, the first end of the docking selection network port 2 is connected to the 8-bit selection switch circuit control network port 2, and the second end of the docking SWD network port 1 and the second end of the docking selection network port 2 are connected to the network port conversion 16-way selection switch component.
[0034] Preferably, the network port conversion 16-way selection switch component includes a first 16-way selection signal switch, a second 16-way selection signal switch, and a third 16-way selection signal switch, wherein the input end of the first 16-way selection signal switch, the input end of the second 16-way selection signal switch and the input end of the third 16-way selection signal switch are connected to the SWD mode network port and hardware selection component, and the output end of the first 16-way selection signal switch, the output end of the second 16-way selection signal switch and the output end of the third 16-way selection signal switch are respectively connected to each of the online simulation card boards.
[0035] Specifically, in this embodiment, the above steps are implemented Figure 5 A, B, C, D, Z are combinations of 0 and 1, where 0 represents a low level and 1 represents a high level. Figure 7 J6 (pins 1-8) in the interface is the first network port. Figure 5 J5 (pins 1-8) is the first network port; J6 (pins 9-16) is the second network port. Figure 5 The second network port of J5 (pins 9-16) in the . Figure 7 The TRST, TCK, and TMS of the J6 network port are respectively connected to the IN ports of U1, U2, and U3 of the 16-way selection switch.
[0036] pass Figure 6 In the 8-way hardware switch SW1, when Z1 is turned on, the output of Z1 is low level, and U1, U2, and U3 are all turned on and enabled, corresponding to Figure 5 Z in is 0; further through Figure 6 When the 8-way hardware switches SW1, A, B, C, and D in the Figure 5 Y0 in the output is turned on; Y0 of the three selection switches U1, U2, and U3 output TRST1, TCK1, and TMS1 respectively, and the other Y1, Y2...Y16 have no output signal; the five signal lines of 3.3V, GND, TRST1, TCK1, and TMS1 of CPU board 1 are all turned on to ensure the normal operation of the board simulation port 1. Further, through the J-link simulator connected to the corresponding CPU development software, online simulation, downloading, and burning of firmware can be achieved, thereby realizing online simulation of CPU board 1 to find problems.
[0037] In this embodiment, according to Figure 5 Repeat the above operation, disconnect A, turn on B, C, D, Z, and meet the output of Y1 port, and select Y1 in U1, U2, and U3, corresponding to TRST2, TCK2, and TMS2; further, turn on the 3.3V, GND, TRST2, TCK2, and TMS2 signal lines of CPU board 2 to ensure the normal operation of board simulation port 2. Figure 5 In the Y2 table, B is disconnected, A, C, D, and Z are connected, and the corresponding board simulation port 3 works normally; Figure 5 In the Y3 table, A and B are disconnected, C, D, and Z are connected, and the corresponding board simulation port 3 works normally; repeat the above operation and compare Figure 5 The table in the figure realizes different selection operations of board simulation port 4 to board simulation port 16 respectively.
[0038] In this embodiment, by switching the SWD mode, sharing the 3.3V and GND signals, and using the 8-bit hardware selection switch SW1, in conjunction with the unique design circuits of A, B, C, D, and Z, the conversion of high and low levels is achieved, and the TRST, TCK, and TMS signals enter the 16-way selection switch. Through the selection of the front end, online simulation of different boards is achieved, and problems are quickly located without disassembling the machine. Online maintenance of multiple boards in power distribution automation is achieved, helping R&D and on-site personnel to quickly solve problems.
[0039] In summary, the J-link simulator SWD mode multi-CPU board online simulation upgrade device is an effective solution to the problems of multi-board operation in distribution network automation, difficult maintenance, inconvenient production debugging, and inconvenient R&D testing. Through the present invention, different boards among the 16 boards can be effectively simulated without disassembling the machine or shutting down the power supply, and the problem can be found. The firmware can be upgraded with power on, which is convenient for accurate positioning of the problem and improves efficiency.
[0040] In simple terms, the J-link simulator SWD mode multi-CPU board online simulation upgrade device is used in the environment where multiple CPU boards of the distribution network automation control equipment, FTU (feeder terminal), DTU (station terminal), TTU (distribution transformer terminal) devices are jointly operated. Through the SWD transfer method of this device, online simulation to find problems can effectively solve the difficulties of disassembly and complex maintenance. This device can effectively solve the problem of online simulation of multiple boards. Often multiple boards work together and communicate with each other. If you disassemble the machine alone to find the problem of a certain board, it will greatly increase the difficulty of the on-site staff, and it is not easy to solve the problem. When the machine is not disassembled, the communication between other boards and this board can be effectively monitored through online simulation, so as to effectively locate the problem and solve the problem.
[0041] The second embodiment of the utility model provides a J-link emulator SWD mode multi-CPU board online simulation upgrade system, including a preset computer terminal and a J-link emulator SWD mode multi-CPU board online simulation upgrade device as described above, wherein the J-link emulator is connected to the preset computer terminal through the interface module.
[0042] Preferably, it further comprises a remote control terminal, wherein the remote control terminal is communicatively connected with the preset computer terminal to perform data exchange.
[0043] The above are only preferred implementations of the present utility model. The protection scope of the present utility model is not limited to the above embodiments. All technical solutions under the concept of the present utility model belong to the protection scope of the present utility model.
Claims
1. A J-link simulator SWD mode multi-CPU board online simulation upgrade device, It is characterized in that include: Interface module, J-link emulator, SWD mode network port and hardware selection components, network port docking circuit, network port conversion 16-way selection switch component, and multiple online simulation card boards; Wherein, the J-link emulator is connected to the preset computer terminal through the interface module, the Jl ink emulator is electrically connected to the SWD mode network port and hardware selection component, the SWD mode network port and hardware selection component are connected to the network port conversion 16-way selection switch component through the network port docking circuit, and the network port conversion 16-way selection switch component is connected to each of the online simulation card boards; Among them, the SWD mode network port and hardware selection component is configured to turn on one of the 16-way selection switch components of the network port conversion, and transmit the TRST signal, TCK signal, TMS signal, and the shared 3.3V signal and GND signal output by the preset computer end through the selection circuit to the corresponding online simulation card board.
2. A J-link simulator SWD mode multi-CPU board online simulation upgrade device according to claim 1, It is characterized in that The interface module is a USB interface.
3. A J-link simulator SWD mode multi-CPU board online simulation upgrade device according to claim 1, It is characterized in that The SWD mode network port and hardware selection component includes a JTAG interface to SWD network port 1 and an 8-bit selection switch circuit control network port 2, wherein the SWD download mode interface of the JTAG interface to SWD network port 1 is connected to the JTAG interface of the Jl ink emulator, and the 8-bit selection switch circuit control network port 2 is connected to the J-link emulator.
4. A J-link simulator SWD mode multi-CPU board online simulation upgrade device according to claim 2, It is characterized in that The network port docking circuit includes a docking SWD network port 1 and a docking selection network port 2, wherein the first end of the docking SWD network port 1 is connected to the JTAG interface to SWD network port 1, the first end of the docking selection network port 2 is connected to the 8-bit selection switch circuit control network port 2, and the second end of the docking SWD network port 1 and the second end of the docking selection network port 2 are connected to the network port conversion 16-way selection switch component.
5. A J-link simulator SWD mode multi-CPU board online simulation upgrade device according to claim 1, It is characterized in that The network port conversion 16-way selection switch component includes a first 16-way selection signal switch, a second 16-way selection signal switch, and a third 16-way selection signal switch, wherein the input end of the first 16-way selection signal switch, the input end of the second 16-way selection signal switch, and the input end of the third 16-way selection signal switch are connected to the SWD mode network port and hardware selection component, and the output end of the first 16-way selection signal switch, the output end of the second 16-way selection signal switch, and the output end of the third 16-way selection signal switch are respectively connected to each of the online simulation card boards.
6. A J-link emulator SWD mode multi-CPU board online emulation upgrade system, It is characterized in that It comprises a preset computer terminal and a J-link simulator SWD mode multi-CPU board online simulation upgrade device as described in any one of claims 1 to 5, wherein the J-link simulator is connected to the preset computer terminal through the interface module.
7. A J-link simulator SWD mode multi-CPU board online simulation upgrade system according to claim 6, It is characterized in that It also includes a remote control terminal, wherein the remote control terminal is communicatively connected with the preset computer terminal to perform data exchange.
