Digital power supply online updating method based on Ethernet and CAN bus

Through the three-layer network architecture and the concurrency mechanism of Ethernet multicast and CAN bus broadcast, the problem of low online update efficiency of the array power supply in large communication antenna arrays is solved, efficient parallel updates are achieved, and the maintainability of the system is improved. .

CN118764330APending Publication Date: 2024-10-11NANJING RES INST OF ELECTRONICS TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411038222.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

In large communication antenna arrays, the traditional CAN bus network used for online updates of array power supplies is inefficient, especially when the arrays are large in size and dispersed, and cannot efficiently implement batch online updates.

Method used

Adopting a three-layer network architecture, the first layer is central control, the second layer is regional data summary, and the third layer is array power supply. Through the parallel update mechanism combining Ethernet and CAN bus, Ethernet multicast and CAN bus broadcast are used. , to achieve parallel updates of digital power programs.

Benefits of technology

It greatly improves the online update efficiency of large-scale active array power supply networks, improves the maintainability of the system, and realizes parallel updates of distributed nodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764330A_ABST
    Figure CN118764330A_ABST
Patent Text Reader

Abstract

The invention relates to a digital power supply on-line updating method based on Ethernet and a CAN bus, which is characterized in that an adopted network architecture comprises three layers, the first layer is a central control and is a source for sending a power supply control instruction and a terminal for summarizing all power supply BIT information; the second layer is regional data summarization which is a data summarization node and a control instruction protocol conversion and distribution node of the array surface power supply in one region; the third layer is the most base layer and is all array surface power supplies; the first layer and the second layer communicate with each other through the Ethernet, and the second layer and the third layer communicate with each other through a CAN bus network; through a concurrent mechanism of Ethernet multicast and CAN bus broadcast, parallel updating of a to-be-updated program of the digital power supply is realized. According to the invention, parallel transmission of all data and parallel updating of the digital power supply child nodes are realized, the online updating efficiency of the whole large-scale active array surface power supply network program is greatly improved, and the maintainability of the system is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of power supply, and in particular to an online updating method of a digital power supply based on Ethernet and CAN bus. Background Art

[0002] A large number of array power supplies are installed on the array of large communication antennas. The current array power supplies are gradually using digital controllers instead of analog controllers to improve the flexibility of array power supply adjustment and reduce power supply costs. After the array power supply is digitized, the CAN bus is used to complete the external interface. In order to realize the control of the array power supply and obtain BIT information, the central control uses the CAN network to interconnect the array power supply to form a distributed control system based on the CAN bus. However, during the power supply joint test, there is a scenario where the control software needs to be adjusted according to system requirements or actual applications, which requires all array power supplies to be able to be updated online in batches. The traditional implementation method uses each CAN bus network to realize the online update of all power supplies (up to 32 units) in the CAN bus network, but as the size of the array increases, the number of CAN networks increases greatly. The traditional update method requires each CAN network to be refreshed in turn, and the network distribution area is scattered. Therefore, in the application scenario where the number of array power supplies is large and the distribution is scattered, there are still time-consuming and labor-intensive problems, and online updates cannot be realized efficiently. Summary of the invention

[0003] In order to solve the existing technical problems, the present invention provides a digital power supply online updating method based on Ethernet and CAN bus.

[0004] The specific contents of the present invention are as follows: a method for online updating of digital power supply based on Ethernet and CAN bus, the network architecture adopted includes three layers, the first layer is central control, which is the source of power supply control instructions and the terminal for summarizing all power supply BIT information; the second layer is regional data summary, which is the data summary node and control instruction protocol conversion and distribution node of the array power supply in a region; the third layer is the lowest level, which is all the array power supplies; the first layer and the second layer use Ethernet for communication, and the second layer and the third layer use CAN bus network for communication; through the concurrent mechanism of Ethernet multicast and CAN bus broadcast, the parallel update of the digital power supply program to be updated is realized.

[0005] Furthermore, the digital power supply adopts the ARM cortex-m0 platform, and the internal program is divided into a boot part and an executable part.

[0006] Furthermore, a single digital power supply monitors the CAN bus network. When a program update instruction is received in accordance with the updated data transmission format, the program controls the MCU to restart, enter the boot program, prepare to receive data, receive and store data when there is data, and the data is stored in the on-chip program memory area. After reception, data verification is completed and the update result is reported.

[0007] Furthermore, the data files are distributed from the central control to each regional data aggregation via Ethernet and stored in the regional data aggregation.

[0008] Furthermore, the program update process of the regional data summary itself includes: when starting to update the program, first send a multicast program update instruction to all regional summaries through the central control to ensure that all regional data summaries can receive it; after the regional data summary receives the program update instruction, first suspend the scheduled BIT query instruction and delay for a period of time; after the delay is completed, read the file to be updated stored in the regional data summary into the memory of the data summary, and obtain the size of the program file at the same time, and then send a program reset instruction to all CAN nodes through the CAN bus to ensure that the MCU of the underlying digital power supply is reset and enters the boot program to run; delay for a period of time to ensure that the MCU of all underlying digital power supplies has been restarted and entered the boot program, and then send the program update instruction and the size of the program file to be updated to the underlying digital power supply through CAN broadcast. After the instruction is sent, continue to delay for a period of time to ensure that all underlying digital power supplies receive the update instruction package; after the delay is completed, poll all CAN interfaces of the regional summary in turn to broadcast and send the CAN data packet of the program to be updated in parallel. While sending, calculate the remaining data to be sent and the check value of the sent data until the balance is zero, and send the update end instruction and the check value of all data for the underlying digital power supply to verify the received data.

[0009] Furthermore, the update process of the digital power supply includes: when updating, the central control sends an update synchronization broadcast instruction through Ethernet, and after the regional data aggregation receives the update instruction at the same time, the stored data files are read out in parallel, and according to the update requirements, the files are divided into data packets that can be recognized and reliably transmitted by the underlying digital power supply, and transmitted in parallel to each digital power supply through the CAN bus network broadcast, and the digital power supply completes the data reception and update.

[0010] Further, the update of a single digital power supply includes: the single digital power supply acts as a data receiving receptor and an execution part, receives update data and completes the update of the program memory, and after receiving a reset command sent by the regional data summary, restarts to enter the program update mode;

[0011] When receiving the program update instruction and update file size from the regional data summary, first determine the package type. After confirming that it is an update instruction, prepare the storage area and store the data file size as a basis for judging whether the data has been received. When receiving the regional data summary data subsequently, it will first be stored in the memory. When it reaches the size of a single flash page, it will be directly written to the flash space, and the checksum of the received data will be calculated at the same time. This process is repeated until the last packet of data is received. After receiving all the data, complete the calculation of the checksum value of all the data, and compare it with the data sent by the regional data summary. If it is correct, feedback the update success data packet, and jump to the starting position of the application to complete all the update procedures.

[0012] The present invention makes full use of the parallel capabilities of Ethernet and CAN bus broadcasting to achieve parallel transmission of all data and parallel update of digital power sub-nodes, greatly improving the online update efficiency of the entire large-scale active array power network program and improving the maintainability of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The specific implementation of the present invention will be further explained below in conjunction with the accompanying drawings.

[0014] Figure 1 It is a principle block diagram of the digital power supply online updating method based on Ethernet and CAN bus of the present invention;

[0015] Figure 2 A time series diagram for concurrently updating data for regional data aggregation;

[0016] Figure 3 Complete the update timing diagram for a single digital power supply boot program. DETAILED DESCRIPTION

[0017] Combination Figure 1-Figure 3 The digital power supply online update method based on Ethernet and CAN bus of the present invention mainly includes three parts: one is the network architecture of online update; the second is the update method and process of a single digital power supply node; and the third is the timing and instruction control of parallel distribution data.

[0018] The network architecture of the present invention is a distributed control system architecture. The distributed control system is divided into three layers. The first layer is the central control, which is the source of power control instructions and the terminal for summarizing all power BIT information; the second layer is the regional data summary terminal, which is the data summary node and control instruction protocol conversion and distribution node of the array power in a region; the third layer is the most basic layer, which is all the array power supplies. The first and second layers use Ethernet for communication, and the second and third layers are CAN bus networks. In the three-layer architecture, the regional data summary terminal is the hub for communication between the upper and lower layers, and as a summary device, the hardware platform has high processing power and storage capacity, and can be used as a carrier for parallel data distribution.

[0019] A single digital power supply is a data receiving receptor and execution part. The digital power supply adopts the ARM cortex-m0 platform, and the internal program is divided into the boot part and the executable part. A single digital power supply monitors the CAN bus network. When receiving the program update instruction issued according to the updated data transmission format, the program controls the MCU to restart, enter the boot program, prepare to receive data, receive and store data when there is data, and the data is stored in the on-chip program memory area. After receiving, complete the data verification and report the update result.

[0020] The central control and regional data collection are interconnected via Ethernet, so data files can be distributed from the central control to each regional data collection via Ethernet and stored in the regional data collection. When updating, the central control sends an update synchronization broadcast instruction via Ethernet. After the regional collection device receives the update instruction at the same time, it reads out the stored data files in parallel, and according to the update requirements, the files are divided into data packets that can be recognized and reliably transmitted by the underlying digital power supply, and transmitted to each digital power supply in parallel via CAN bus network broadcast, and then the digital power supply completes data reception and update.

[0021] The present invention is described in detail below with reference to specific embodiments.

[0022] like Figure 1 As shown, the architecture of the present invention is composed of a central control, a network switch, a regional data collection and a digital power supply. The central control is the source of power control instructions and the terminal for collecting all power BIT information, and is responsible for completing the first-level storage and transmission of update data files and issuing update instructions. That is, the program to be updated is first imported into the central control computer, and then the file to be updated is transmitted to each regional data collection through file transmission methods such as FTP by means of Ethernet and network interconnection switches.

[0023] like Figure 1 , Figure 2As shown, when the program is updated, the central control first sends a multicast program update instruction to all regional summaries to ensure that all regional data summaries can receive it. After the regional data summary receives the program update instruction, it first suspends the scheduled BIT query instruction to ensure that the program update is not affected by non-update data packets. Wait for 2 seconds to ensure that the digital power supply BIT feedback data of the query package before the update can be processed and does not affect the program update; after the delay is completed, the file to be updated stored in the regional data summary is read into the memory of the data summary in the format of a bin file, and the program file size is obtained at the same time. Then send a program reset instruction to all CAN nodes through the CAN bus to ensure that the MCU of the underlying digital power supply is reset and enters the boot program. Delay for 2 seconds to ensure that the MCU of all underlying digital power supplies has been restarted and entered the boot program, and then send the program update instruction and the size of the program file to be updated to the underlying digital power supply through CAN broadcast. After the instruction is sent, continue to delay for 2 seconds to ensure that all underlying digital power supplies receive the update instruction package. After the delay is completed, all CAN interfaces of the regional summary are polled in turn to broadcast and send the CAN data packets of the program to be updated in parallel. While sending, the remaining data to be sent and the check value of the sent data are calculated. When the balance is zero, the update end instruction and the check value of all data are sent to allow the underlying digital power supply to check the received data. At this point, the regional data summary completes its own program update process.

[0024] A single digital power supply acts as a data receiver and execution part, receives update data and completes the update of the program memory. After receiving the reset command sent by the regional data summary, it restarts and enters the boot program, that is, enters the program update mode. At this time, the program update process is as follows: Figure 3 As shown. When receiving the program update instruction and update file size from the regional data summary, the package type is first determined. After confirming that it is an update instruction, the storage area will be prepared and the data file size will be stored as a basis for determining whether the data has been received. When the regional data summary data is received later, it will first be stored in the memory. When it reaches the size of a single flash page, it will be directly written to the flash space, and the checksum of the received data will be calculated at the same time. This process is repeated until the last packet of data is received. After all the data is received, the checksum value calculation of all the data is completed, and the checksum is compared with the data sent by the regional data summary. If it is correct, the update success data packet is fed back, and the application is jumped to the starting position at the same time to complete all the update procedures.

[0025] In order to improve the efficiency of online updating of large-scale digital power supplies for large active arrays, it is necessary to change the update method of each serial CAN network to a parallel update method of multiple CAN networks, and the higher the number of parallel networks, the higher the efficiency. In order to improve the convenience of distributed nodes, it is necessary to send data or instructions at the final terminal of the distributed control system to realize the parallel update of all distributed nodes. The central control, regional data aggregation and underlying digital power supply of the present invention form a layered distributed architecture through the Ethernet network and the CAN bus network, and adopt the concurrent mechanism of Ethernet multicast and CAN bus broadcast to realize the parallel update method of the digital power supply program to be updated, which meets the online update efficiency of large-scale digital power supplies for large-scale communication active antennas, thereby improving the application scenario requirements of the system joint test efficiency.

[0026] Many specific details are described in the above description to facilitate a full understanding of the present invention. However, the above description is only a preferred embodiment of the present invention. The present invention can be implemented in many other ways different from those described herein, so the present invention is not limited to the specific implementation disclosed above. At the same time, any person familiar with the art can make many possible changes and modifications to the technical solution of the present invention using the methods and technical contents disclosed above without departing from the scope of the technical solution of the present invention, or modify it into an equivalent embodiment of equivalent changes. Any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still falls within the scope of protection of the technical solution of the present invention.

Claims

1. A digital power supply online update method based on Ethernet and CAN bus, Features: The network architecture used includes three layers. The first layer is the central control, which is the source of power control instructions and the terminal for summarizing all power BIT information; the second layer is the regional data summary, which is the data summary node of the array power in a region and the control instruction protocol conversion and distribution node; the third layer is the lowest level, which is all the array power supplies; the first and second layers use Ethernet for communication, and the second and third layers use CAN bus network for communication; Through the concurrent mechanism of Ethernet multicast and CAN bus broadcast, the parallel update of the digital power supply program to be updated is realized.

2. According to the method for online updating of digital power supply based on Ethernet and CAN bus in claim 1, Features: The digital power supply adopts the ARM cortex-m0 platform, and the internal program is divided into the boot part and the executable part.

3. According to the method for online updating of digital power supply based on Ethernet and CAN bus in claim 2, Features: A single digital power supply monitors the CAN bus network. When receiving a program update instruction issued in accordance with the updated data transmission format, the program controls the MCU to restart, enter the boot program, prepare to receive data, receive and store data when available, and store the data in the on-chip program memory area. After receiving the data, the data is verified and the update result is reported.

4. According to the method for online updating of digital power supply based on Ethernet and CAN bus in claim 1, Features: The data files are distributed from the central control to each regional data aggregation via Ethernet and stored in the regional data aggregation.

5. According to the method for online updating of digital power supply based on Ethernet and CAN bus in claim 4, Features: The program update process of the regional data summary itself includes: when starting to update the program, first send a multicast program update instruction to all regional summaries through the central control to ensure that all regional data summaries can receive it; after the regional data summary receives the program update instruction, first suspend the scheduled BIT query instruction and delay for a period of time; after the delay is completed, the file to be updated stored in the regional data summary is read into the memory of the data summary, and the size of the program file is obtained at the same time, and then the program reset instruction is sent to all CAN nodes through the CAN bus to ensure that the MCU of the underlying digital power supply is reset and enters the boot program to run; delay for a period of time to ensure that the MCU of all underlying digital power supplies has been restarted and entered the boot program, and then send the program update instruction and the size of the program file to be updated to the underlying digital power supply through CAN broadcast. After the instruction is sent, continue to delay for a period of time to ensure that all underlying digital power supplies receive the update instruction package; after the delay is completed, all CAN interfaces of the regional summary are polled in turn to broadcast and send the CAN data packet of the program to be updated in parallel. While sending, the remaining data to be sent and the check value of the sent data are calculated. When the balance is zero, the update end instruction and the check value of all data are sent for the underlying digital power supply to verify the received data.

6. The digital power supply online update method based on Ethernet and CAN bus according to claim 4, Features: The update process of the digital power supply includes: when updating, the central control sends an update synchronization broadcast command through Ethernet. After the regional data aggregation receives the update command at the same time, the stored data files are read out in parallel, and according to the update requirements, the files are divided into data packets that can be recognized and reliably transmitted by the underlying digital power supply, and transmitted in parallel to each digital power supply through the CAN bus network broadcast, and the digital power supply completes the data reception and update.

7. The method for online updating of digital power supply based on Ethernet and CAN bus according to claim 6, Features: The update of a single digital power supply includes: the single digital power supply acts as a data receiving receptor and execution part, receives the update data and completes the update of the program memory, and after receiving the reset command sent by the regional data summary, it restarts and enters the program update mode; When receiving the program update instruction and update file size from the regional data summary, first determine the package type. After confirming that it is an update instruction, prepare the storage area and store the data file size as a basis for judging whether the data has been received. When receiving the regional data summary data subsequently, it will first be stored in the memory. When it reaches the size of a single flash page, it will be directly written to the flash space, and the checksum of the received data will be calculated at the same time. This process is repeated until the last packet of data is received. After receiving all the data, complete the calculation of the checksum value of all the data, and compare it with the data sent by the regional data summary. If it is correct, feedback the update success data packet, and jump to the starting position of the application to complete all the update procedures.