Data acquisition system and method of aviation power distribution center based on CAN bus networking
By adopting a data acquisition system based on CAN bus networking in the aviation distribution center, the network complexity problem caused by the increase in the number of equipment is solved, efficient and reliable data transmission is achieved, system weight and cost are reduced, and flight safety is improved.
Patent Information
- Application Number
- CN202411779802.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-05
- Publication Date
- 2025-03-28
- Estimated Expiration
- 2044-12-05
AI Technical Summary
When the number of equipment increases, existing aviation power distribution centers transmit operating data information by adding RIU communication interfaces, resulting in an increase in the weight and volume of the aircraft power supply system, and the complexity of the control network and communication network, affecting the safety and reliability of flight.
A data acquisition system based on CAN bus network is adopted, and a data collector is used as the main node of the CAN bus network, and the equipment in the distribution center is connected as a child node to realize data acquisition and transmission. The system utilizes the high reliability and security of the CAN bus to simplify the topology, improve transmission distance and speed, and reduce dependence on the RIU interface.
It effectively solves the network complexity problem caused by the increase in the number of equipment in the distribution center, reduces the weight and volume of the aircraft power supply system, improves the safety and reliability of flight, and reduces manufacturing and operation costs.
Smart Images

Figure CN119728331A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of aviation power distribution technology, but is not limited to it, and in particular to a data acquisition system and method for an aviation power distribution center based on CAN bus networking. Background Art
[0002] The aviation power distribution center is an important component of the aircraft power supply system. Its main function is to supply, control, convert and monitor the 270V DC, 28V DC and 115V AC power in the aircraft, and to supply power to high-power electrical equipment, primary electrical equipment and remote secondary power distribution devices. The aviation power distribution center ensures the power supply of important electrical equipment in the aircraft and ensures the safety of aircraft operation. Therefore, it plays a pivotal role.
[0003] At present, the conventional power distribution center is mainly composed of power control protection devices such as contactors, circuit breakers, diodes, and contactor control units, power control units, and other equipment. The real-time operation status information in the distribution center is collected, monitored, and stored by the contactor control unit, power control unit, and other equipment, and the operation results are reported to the RIU (Remote Interface Unit) through the HB6096 bus. With the increasing types and number of aircraft electrical equipment, more electric aircraft and all-electric aircraft have gradually become the development trend and direction of advanced aircraft. The aircraft power supply system is becoming more and more complex, and the number of equipment in the distribution center is increasing. Limited by the number of communication interfaces with the RIU through the HB6096 bus, if only the RIU communication interface is added to ensure the transmission of operation data information in the distribution center, it will not only increase the weight and volume of the aircraft power supply system, but also make the control network and communication network of the aircraft power supply system more complicated, which will have a bad impact on the overall flight operation safety, performance, manufacturing cost, and operating cost, and reduce the reliability of aircraft operation. Summary of the invention
[0004] Purpose of the present invention: In order to solve the above technical problems, the embodiments of the present invention provide a data acquisition system and method for an aviation power distribution center based on CAN bus networking, so as to solve the problem that as the number of equipment in the existing aviation power distribution center increases, the transmission of operating data information in the power distribution center is guaranteed by adding an RIU communication interface, which not only increases the weight and volume of the aircraft power supply system, but also makes the control network and communication network of the aircraft power supply system more complicated, thereby causing adverse effects on the overall flight operation safety, performance, manufacturing cost, and operating cost, and reducing the reliability of aircraft operation.
[0005] Technical solution of the present invention: In a first aspect, an embodiment of the present invention provides a data acquisition system for an aviation power distribution center based on CAN bus networking, including: all devices in the aviation power distribution center with data transmission requirements, and a data collector;
[0006] The data collector is configured as the master node of the CAN bus network, and each device with data transmission requirements in the aviation power distribution center is configured as a sub-node of the CAN bus network. All devices with data transmission requirements in the aviation power distribution center are connected to the remote interface unit 2 through the bus respectively;
[0007] The data collector comprises: a processor chip with at least two eCAN interfaces built in, a CAN transceiver connected to each eCAN interface, and a first communication transceiver and a second communication transceiver; all equipment with data transmission requirements in the aviation power distribution center are connected to at least two CAN transceivers in the data collector through at least two CAN buses, an output interface of the processor chip is connected to the remote interface unit 1 through the first communication transceiver, and another output interface of the processor chip is connected to the ground maintenance equipment through the second communication transceiver;
[0008] In the data acquisition system, all devices with data transmission requirements in the aviation power distribution center send operating data information to the remote interface unit 2 through the bus respectively, and transmit the operating data information of all the devices to the data collector through at least two CAN buses, so that the data collector sends it to the remote interface unit 1 through the first communication transceiver; and during ground maintenance, the operating data information of each device in the power distribution center recorded by the data collector is downloaded to the ground maintenance equipment.
[0009] Optionally, in the data acquisition system of the aviation power distribution center based on CAN bus networking as described above, each device in the aviation power distribution center has data transmission requirements, each device has 1 HB6096 bus, 1 RS422 bus interface and 1 CAN bus interface, each device is connected to the remote interface unit 2 through 1 HB6096 bus interface, some devices are connected to the data collector as the communication main node through the 1st CAN bus as communication sub-nodes, and some other devices are connected to the data collector as the communication main node through the 2nd CAN bus sub-nodes as communication sub-nodes;
[0010] Under normal working conditions, each device periodically uploads its own operating data information to the remote interface unit 2 through its respective HB6096 bus interface;
[0011] When each device receives the command from the data collector through the CAN bus interface, it feeds back the relevant operating data information to the data collector through the corresponding CAN bus;
[0012] During ground maintenance, the ground maintenance equipment completes the download of the stored data of each device through the RS422 bus interface.
[0013] Optionally, in the data acquisition system of the aviation power distribution center based on CAN bus networking as described above, the data acquisition device has 2 CAN communication interfaces, 1 RS422 communication interface and 1 HB6096 bus interface; the 1st CAN communication interface is connected to the CAN bus interface of the part of the equipment in a bus topology; the 2nd CAN communication interface is connected to the CAN bus interface of the other part of the equipment in a bus topology;
[0014] The data collector is used to obtain the operating data information of each device in the distribution center from the 1st CAN communication interface and the 2nd CAN communication interface under normal working conditions, and convert it into the data format of HB6096 communication by its internal processor chip, and report it to the remote interface unit 1 through the HB6096 bus interface; it is also used for ground maintenance equipment to complete the download of the operating data information of each device in the distribution center recorded by the data collector through the RS422 bus interface during ground maintenance.
[0015] In a second aspect, an embodiment of the present invention further provides a data acquisition method for an aviation power distribution center based on CAN bus networking, wherein the data acquisition system for an aviation power distribution center based on CAN bus networking as described in any one of the above items is used to execute the data acquisition method for the aviation power distribution center, and it is assumed that there are 32 devices in the power distribution center, and the processor chip of the data collector is externally connected to NVSRAM and FLASH; the method comprises:
[0016] Step 1, set the CAN communication task completion flag to invalid, set the CAN communication task count range to 0-32, and the task count interval to 2ms; when the CAN communication task completion flag is invalid, the data collector obtains the operating data information of each device in the power distribution center through the 1st CAN bus and the 2nd CAN bus at a period of 2ms;
[0017] Step 2, when it is determined that the CAN communication task completion flag is valid, the HB6096 communication task count range is set to 0-5, and the task count interval is 14ms; when the HB6096 communication task completion flag is invalid, the data collector converts the operation data of each device in the power distribution center collected through CAN communication into the HB6096 communication format, reports it to the remote interface unit 1 through the HB6096 communication interface at a period of 14ms, and stores it in the NVSRAM connected to the processor chip through the data bus. When the HB6096 communication task count reaches 5, the HB6096 communication completion flag is set to be valid;
[0018] Step 3, when it is determined that the HB6096 communication completion flag is valid and the 350ms task cycle flag is valid, the FLASH storage flag is set to be valid, and the data in the last two HB6096 communication cycles stored in the NVSRAM is read out and sequentially transferred to the FLASH connected to the processor chip. After the storage is completed, the FLASH storage flag is set to invalid, and the 350ms task cycle flag is cleared to be invalid;
[0019] Step 4: When the 350ms task cycle flag is determined to be invalid and the 400ms task cycle flag is determined to be valid, determine whether FLASH erasure is required based on the current tail pointer stored in FLASH. If erasure is determined to be required, FLASH erasure is performed.
[0020] Optionally, in the data acquisition method of the aviation power distribution center based on CAN bus networking as described above, in the data collector, NVSRAM is used to record the data when a system operation failure occurs, and FLASH is used to periodically record the system monitoring data, and both adopt a cyclic overwriting storage method;
[0021] Among them, NVSRAM is divided into three areas, area 1 is used to store NVSRAM fault record tail pointer, FLASH record tail pointer, monitoring backup data head pointer, tail pointer; area 2 is used to cyclically store system fault data; area 3 is used to store monitoring backup data; and area 3 is used to store monitoring backup data within the 400ms period.
[0022] Optionally, in the data collection method of the aviation power distribution center based on CAN bus networking as described above, the method further includes:
[0023] The data acquisition system is queried every 2 ms to see if a fault occurs. If a fault occurs, the fault data is stored in area 2 of the NVSRAM in bytes.
[0024] Optionally, in the data collection method of the aviation power distribution center based on CAN bus networking as described above,
[0025] In step 2, during the execution of the HB6096 communication task, the data collector stores the data packet in area 3 of the NVSRAM after sending a 32×32-bit communication data packet to the HB6096 communication interface each time. The specific storage method includes:
[0026] Step 21, update the 32-bit content of the 32-bit data in the HB6096 communication format, the updating method is: sum the data bits of the HB6096 communication, that is, the contents of the 11th bit to the 29th bit, bit by bit, if the sum result is an even number, set the 32nd bit to 1; if the sum result is an odd number, clear the 32nd bit to 0;
[0027] Step 22: After the data content is updated, the 32×32-bit communication data of the package is transferred to the cache array;
[0028] Step 23: When it is determined that the task cycle flag of the first 200ms is valid, perform the following operations:
[0029] S23a, reading the monitoring backup data tail pointer from area 1 of the NVSRAM, and performing segment switching processing on the monitoring backup data tail pointer;
[0030] S23b, storing the updated monitoring backup data tail pointer as the monitoring backup data head pointer in NVSRAM area 1;
[0031] S23c, storing the contents in the cache array in sequence with the monitoring backup data tail pointer as the starting address, and after the storage is completed, storing the updated monitoring backup data tail pointer in NVSRAM area 1;
[0032] Step 24: When it is determined that the task cycle flag of the first 200ms is invalid, perform the following operations:
[0033] S24a, reading the monitoring backup data tail pointer from NVSRAM area 1, and performing segment switching processing on the monitoring backup data tail pointer;
[0034] S24b, the contents in the cache array are stored in sequence with the monitoring backup data tail pointer as the first address, and after the storage is completed, the updated monitoring backup data tail pointer is stored in NVSRAM area 1.
[0035] Optionally, in the data collection method of the aviation power distribution center based on CAN bus networking as described above, the manner of performing segment switching processing on the tail pointer is:
[0036] The maximum address in area 3 of NVSRAM is compared with the monitoring backup data tail pointer. If the difference is less than 32×32 bits, the monitoring backup data tail pointer is set to the initial address value of the monitoring backup data tail pointer, and the updated monitoring backup data tail pointer is stored in NVSRAM area 1.
[0037] Optionally, in the data acquisition method of the aviation power distribution center based on CAN bus networking as described above, in step 3, when the data collector executes the 350ms periodic task and determines that the FLASH storage flag is valid, the NVSRAM is transferred to the FLASH for 1 page of data every 2ms, and the transfer is performed 6 times in succession; the storage method includes:
[0038] Step 31, read the FLASH record tail pointer and monitoring backup data head pointer in NVSRAM area 1;
[0039] Step 32, perform segment switching processing according to the FLASH record tail pointer: compare the FLASH storage maximum address with the FLASH record tail pointer, if the difference is less than or equal to Δ1, set the FLASH record tail pointer to the FLASH record tail pointer initial address value, and store the updated FLASH record tail pointer in NVSRAM area 1, otherwise, no processing is performed, wherein Δ1 is 256 bytes;
[0040] Step 33, read area 3 of NVSRAM, take the monitoring backup data head pointer as the starting address, read out 256 bytes of data in sequence, and then store them in the FLASH with the FLASH record tail pointer as the starting address; after the storage is completed, store the updated FLASH record tail pointer in NVSRAM area 1;
[0041] Step 34, the FLASH task count is accumulated by 1; if the FLASH task count is detected to be greater than or equal to 6, the FLASH task count is cleared to 0 and the FLASH storage flag is set to invalid, and the 350ms task cycle flag is set to invalid; otherwise, no processing is performed.
[0042] Optionally, in the data acquisition method for the aviation power distribution center based on CAN bus networking as described above, in the above step 4, based on the erase time of the adopted FLASH being 300ms, the data collector executes the FLASH erase task when judging that the 350ms task cycle flag is invalid and the 400ms task cycle flag is valid, and the specific implementation method includes:
[0043] Step 41, read the FLASH record tail pointer from NVSRAM area 1;
[0044] Step 42, calculating the sector where the current FLASH record tail pointer is located according to the FLASH record tail pointer;
[0045] Step 43, compare the current sector maximum address with the FLASH record tail pointer, if the difference is less than or equal to Δ2, set the erase flag to valid, otherwise, set the erase flag to invalid, where Δ2 is 1536 bytes;
[0046] Step 44, when the erase flag is determined to be valid, if the sector where the current FLASH record tail pointer is located is the FLASH maximum number sector, the FLASH erase address is set to the FLASH record tail pointer initial address value; if the sector where the current FLASH record tail pointer is located is less than the maximum number sector, the FLASH erase address is the next sector head address; otherwise, no processing is performed;
[0047] Step 45, FLASH performs sector erasure according to the FLASH erase address.
[0048] Beneficial effects of the present invention: In view of the situation that the electronic equipment in the aviation power distribution center is affected by the complex electromagnetic environment and natural environment on the aircraft during the flight, which leads to abnormal communication or data storage of the distribution center equipment, in order to meet the redundancy design requirements of on-board communication and storage, the embodiment of the present invention provides a data acquisition system and method for the aviation power distribution center based on CAN bus networking, and specifically proposes to use the aviation power distribution center data acquisition system based on CAN bus networking as data redundancy design, making full use of the high reliability and high security of the cyclic redundancy CRC check function of the CAN bus, simple topology structure, good transmission distance and rate, etc. The aviation power distribution center provides the distribution center operation data information to the remote interface unit 1 and the remote interface unit 2 respectively. On the one hand, each device in the distribution center uploads communication data to the remote interface unit 2 through the HB6096 bus interface and receives the instructions provided by the remote interface unit 2; on the other hand, the operation data of multiple devices with data transmission requirements in the distribution center are obtained through the data acquisition system based on the CAN bus networking, and then the remote interface unit 1 is connected through the HB6096 bus interface.
[0049] Furthermore, in order to fully consider the weight and volume of the designed data acquisition system, NVSRAM and FLASH are used to store fault data in NVSRAM to ensure its speed and timeliness by taking advantage of the fact that NVSRAM has a small capacity but has fast access in bytes, and FLASH has a large capacity but needs to be erased before access. NVSRAM and FLASH are used to store backup monitoring data in NVSRAM and transfer it to FLASH periodically to avoid the reliability of monitoring data storage during FLASH erasure. This provides a strong guarantee for the reliability of aircraft flight communication and data storage, and is of great significance in the fields of aviation and aerospace. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present application, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0051] Figure 1A schematic diagram of the structure of a data acquisition system for an aviation power distribution center based on CAN bus networking provided by an embodiment of the present invention;
[0052] Figure 2 A flow chart of a data collection method for an aviation power distribution center based on CAN bus networking provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments and features in the embodiments of the present application can be combined with each other arbitrarily without conflict.
[0054] The above background technology has explained the important role of the aviation power distribution center in the aircraft power supply system. As the types and number of aircraft electrical equipment continue to increase, the number of communication interfaces with the RIU through the HB6096 bus is limited. If only the RIU communication interface is added to ensure the transmission of operating data information in the power distribution center, it will not only increase the weight and volume of the aircraft power supply system, but also make the control network and communication network of the aircraft power supply system more complicated, which will have a bad impact on the overall flight operation safety, performance, manufacturing cost, and operating cost, and reduce the reliability of aircraft operation.
[0055] In view of the above problems, the embodiments of the present invention consider using a communication networking method to collect data information in the distribution center through a high-speed bus, convert it into HB6096 communication format and report it to the RIU.
[0056] Generally, high-speed buses used for aviation communication networking include RS485 bus, CAN bus, and 1553B bus. Among them, RS485 bus is half-duplex asynchronous serial communication. The same bus generally supports up to 32 nodes, the maximum distance can reach 1200 meters, and the maximum transmission rate is 10Mb / s. However, the maximum transmission rate of 100-meter long twisted pair is 1Mb / s. However, it belongs to a single-master network without a fault-tolerant mechanism. A single-node error can easily affect the entire communication network. Therefore, it is not suitable for complex multi-sub-node communication networks; 1553B bus is also half-duplex asynchronous serial communication. The same bus generally supports up to 31 nodes, has a fault-tolerant processing mechanism, and the maximum distance is only 6.1m, which is a great test for the distance between sub-nodes in the communication network, and its cost and maintenance cost are relatively high; CAN communication has the flexibility of multi-master-multi-slave or one master-multi-slave, the maximum transmission rate of 40-meter long twisted pair is 1Mb / s, the same bus supports up to 110 nodes, has higher fault tolerance and reliability replacement, and has higher advantages in terms of cost, development difficulty and maintenance difficulty. Therefore, it is more suitable for aviation power distribution centers with multiple communication nodes.
[0057] The patent "A vehicle data acquisition and analysis system based on CAN bus" (patent number CN202311414500.5) proposes a vehicle data acquisition and analysis system based on CAN bus, which obtains vehicle status monitoring data on buses through CAN bus, and evaluates vehicle operation status record data through modules such as status fluctuation analysis, baseline determination and condition judgment, and issues early warning for abnormal parameters. This patent is mainly used for monitoring and evaluation of status data in the field of vehicle control, and can realize safety analysis, but it does not specify the specific implementation method of the CAN bus system in the acquisition process, and cannot guarantee whether this method can be applied to complex aviation power distribution centers with multiple sub-nodes.
[0058] The patent "CAN data collection and transmission method, device and vehicle-mounted terminal" (patent number CN113872840A) proposes a CAN data collection and transmission method, device and vehicle-mounted terminal suitable for automobiles, and details the steps of the CAN data collection and transmission method, but there are only 3 nodes on its bus. Since the CAN bus is a half-duplex communication mode, it cannot be guaranteed whether the method can be applied to complex aviation power distribution centers with multiple sub-nodes.
[0059] The patent "A distributed multi-channel data acquisition system based on CAN bus technology" (patent number CN205263583U) proposes a distributed data acquisition system, and realizes data transfer through the CAN to RS422 interface, and the transfer unit is connected to a FLASH memory to store and back up the collected data in a loop, which is convenient for later fault tracing. Since the patent mainly proposes a bus architecture, it fails to provide detailed implementation methods for communication between sub-nodes.
[0060] The patent "An ECU data acquisition device based on CAN bus" (patent number CN210835674U) proposes to read the device operation data on the CAN bus network, convert it into RS232 interface and transfer it to the SD card through the control unit. This method is simple and effective for large-capacity data acquisition, but fails to provide detailed specific implementation methods for communication between sub-nodes.
[0061] The patent "A data acquisition system based on CAN bus" (patent number CN214474538U) proposes a data acquisition system for vehicle power distribution technology. The patent mainly describes the main hardware design of the system, and fails to provide detailed specific implementation methods for communication between sub-nodes.
[0062] Since the data acquisition system of the aviation power distribution center is mainly used to obtain and store the operating status information and data information of each device in the distribution center and report it to the RIU through the HB6096 bus, the patent information retrieved above cannot meet the design requirements of the aviation power distribution center.
[0063] In order to solve the above problems in the prior art, an embodiment of the present invention provides a data acquisition system and method for an aviation power distribution center based on CAN bus networking.
[0064] The present invention provides the following specific embodiments which can be combined with each other. The same or similar concepts or processes may not be described in detail in some embodiments.
[0065] Figure 1 The present invention provides a structural diagram of a data acquisition system for an aviation power distribution center based on CAN bus networking. Figure 1 As shown, the data acquisition system of the aviation power distribution center based on CAN bus networking provided by the embodiment of the present invention includes: all devices with data transmission requirements in the aviation power distribution center and a data collector.
[0066] like Figure 1 In the data acquisition system of the aviation power distribution center based on CAN bus networking shown, the data collector is configured as the main node of the CAN bus network, and each device with data transmission requirements in the aviation power distribution center is configured as a sub-node of the CAN bus network. All devices with data transmission requirements in the aviation power distribution center are connected to the remote interface unit 2 through the bus.
[0067] The data collector in the embodiment of the present invention includes: a processor chip with at least two eCAN interfaces built in, a CAN transceiver connected to each eCAN interface, and a first communication transceiver and a second communication transceiver; all equipment with data transmission requirements in the aviation power distribution center are connected to at least two CAN transceivers in the data collector through at least two CAN buses, the output interface of the processor chip is connected to the remote interface unit 1 through the first communication transceiver, and the other output interface of the processor chip is connected to the ground maintenance equipment through the second communication transceiver, which is used to download the operating data information of each equipment in the power distribution center recorded by the data collector to the ground maintenance equipment.
[0068] In addition, in the data acquisition system, all equipment with data transmission requirements in the aviation power distribution center sends operating data information to the remote interface unit 2 through the bus respectively, and transmits the operating data information of all equipment to the data collector through at least two CAN buses, so that the data collector sends it to the remote interface unit 1 through the first communication transceiver; and during ground maintenance, the operating data information of each equipment in the distribution center recorded by the data collector is downloaded to the ground maintenance equipment.
[0069] like Figure 1As shown, in a specific implementation, the SPI serial bus interface inside the processor chip is connected to the remote interface unit 1 through a first communication transceiver; the SCI / UART communication interface inside the processor chip is connected to the ground maintenance equipment through a second communication transceiver, and is used to download the operating data information of each device in the distribution center recorded by the data collector to the ground maintenance equipment.
[0070] Since RIU provides the data of the power distribution center to the electromechanical integrated management computer, the superior system makes important decisions on the flight mission according to the operation of the power distribution center. Therefore, reporting the operation data information of each device in the power distribution center to RIU in real time through the HB6096 bus will greatly affect the reliability and safety of the aircraft flight mission and the operation of the aircraft power distribution center. Therefore, the redundant design of data acquisition communication and storage is indispensable. Therefore, under the condition of the limited number of HB6096 bus interfaces, in addition to the information storage of key data of each device in the power distribution center and reporting to one RIU through the HB6096 bus, the other RIU adopts the CAN bus networking form, obtains the real-time operation data information of each device in the power distribution center through the CAN bus interface, converts the CAN communication data format into the HB6096 communication data format and reports to another RIU to form a redundant communication channel of the data acquisition system; in addition, the data acquisition system can store and back up the data information in real time for later fault tracing. Therefore, if a device in the power distribution center is affected by the complex electromagnetic environment and natural environment on the aircraft during flight, resulting in abnormal communication or data storage, the technical solution provided by the embodiment of the present invention can effectively ensure the effective storage of key aircraft operation data, thereby providing a strong guarantee for the reliability and safety of the aircraft's flight mission.
[0071] The data acquisition system and method for an aviation power distribution center based on CAN bus networking provided by an embodiment of the present invention are described in detail as follows.
[0072] like Figure 1 As shown, in the data acquisition system of the aviation power distribution center based on CAN bus networking provided by the embodiment of the present invention, according to the number of devices in a certain type of power distribution center is 32, the design requirement of the data of a single device is that the capacity is not less than 12Byte and the HB6096 bus communication cycle is 200ms, the data collector is configured as the master node of the CAN bus network, and the 32 devices inside the power distribution center are the child nodes of the CAN bus network. Among them, the data collector includes: a processor chip with at least 2 eCAN interfaces built in, such as an ARM (STM32F407) chip or a DSP (TMS320F28335) chip, a 2-way bus type communication network topology is adopted, and the CAN communication baud rate is configured to be 1Mbit / s.
[0073] In order to meet the redundancy design requirements of onboard communication and storage, the data acquisition of the aviation power distribution center is required to provide the operation data information of the power distribution center to the remote interface unit 1 and the remote interface unit 2 respectively. Limited by the number of HB6096 bus interfaces, on the one hand, the 32 devices in the power distribution center upload the operation data information to the remote interface unit 2 through the HB6096 bus interface and receive the instructions provided by the remote interface unit 2 respectively; on the other hand, the operation data information of each device in the power distribution center is obtained through the data collector based on the CAN bus network, and then the operation data information is reported to the remote interface unit 1 through the HB6096 bus interface of the data collector. In the specific implementation, the baud rate of the HB6096 bus is configured to be 100Kbit / s.
[0074] The data acquisition system of the aviation power distribution center based on CAN bus networking is mainly composed of a data collector and all devices with data transmission requirements in the aviation power distribution center (i.e. the above 32 devices). Its main functions are described in detail as follows:
[0075] (1) All equipment in the aviation power distribution center that has data transmission requirements:
[0076] Figure 1 The 32 devices in the distribution center can include: contactor control protection units, power supply monitoring control protection units, etc. Figure 1 1 to 32 in the system), mainly realize the power supply and conversion control of the distribution center, real-time monitoring and protection of the contactors, circuit breakers, diodes and other equipment in the distribution center, real-time status communication reporting and key operation parameter storage. In addition, all 32 devices have 1 CAN bus interface, 1 HB6096 bus interface, and 1 RS422 bus interface. Among the 32 devices, devices 1 to 16 are connected to the data collector as the communication master node through the 1st CAN bus as communication sub-nodes; devices 17 to 32 are connected to the data collector as the communication master node through the 2nd CAN bus sub-nodes as communication sub-nodes; under normal working conditions, each device periodically uploads its own operation data information to the remote interface unit 2 through its own HB6096 bus interface; and when each device receives the instruction from the data collector through the CAN bus interface, it immediately feeds back the relevant operation data information to the data collector through the corresponding CAN bus; during ground maintenance, the ground maintenance equipment completes the download of the stored data of each device through the RS422 bus interface.
[0077] (2) Data collector:
[0078] It mainly realizes the collection and storage of the operating data of 32 devices in the distribution center through the CAN bus, and reports it to the remote interface unit 1 through the HB6096 bus, realizing the dispatching and processing function of the multi-channel communication network. In the specific implementation, the data collector has 2 CAN communication interfaces, 1 RS422 communication interface and 1 HB6096 bus interface. The 1st CAN communication interface is connected to the CAN bus interface of devices 1 to 16 according to the bus topology; the 2nd CAN communication interface is connected to the CAN bus interface of devices 17 to 32 according to the bus topology. Under normal working conditions, after the data collector obtains the operating data information of 32 devices from the 1st CAN communication interface and the 2nd CAN communication interface, it is converted into the data format of HB6096 communication by its internal processor chip and reported to the remote interface unit 1 through the HB6096 bus interface; during ground maintenance, the ground maintenance equipment completes the download of the operating data information of each device in the distribution center recorded by the data collector through the RS422 bus interface.
[0079] In the specific implementation, the data collector uses an ARM (STM32F407) chip or a DSP (TMS320F28335) chip as a processor chip, with at least two eCAN communication interfaces connected to the corresponding at least two CAN transceivers, and one SCI / UART communication interface connected to the RS422 transceiver to achieve communication signal amplification and isolation. The SPI serial bus interface built into the ARM / DSP chip and the "ARINC429 communication chip and transceiver" (i.e., the first communication transceiver) realize the control, transmission and reception functions of HB6096 communication, and the FIFO depth of the ARINC429 communication chip is 32×32bit; the ARM / DSP chip is also connected to the external memory NVSRAM, FLASH1, and FLASH2 through the data bus to realize the storage of internal data of the distribution center.
[0080] In one implementation of the embodiment of the present invention, the method of sending data to the remote interface unit 1 is: according to the HB6096 communication task cycle (200ms), the HB6096 bus baud rate is up to 100Kbit / s, the sum of the data capacity of all devices is not less than 3072bit, and the FIFO depth of the ARINC429 communication chip is 32×32bit. For the operation data information of each device collected in the data collector, a 32×32bit communication data packet is sent to the remote interface unit 1 through the HB6096 bus communication. The method of sending the communication data packet is: with a sending interval period of every 14ms, the sending of all communication data packets is completed in 6 times.
[0081] based on Figure 1The data acquisition system of the aviation power distribution center based on CAN bus networking shown in the figure mainly realizes the scheduling and data storage functions of multi-channel communication network tasks. In the specific implementation, for example, according to the timer, the 2ms task cycle mark, 14ms task cycle mark, 350ms task cycle mark, 400ms task cycle mark, and the first 200ms task cycle mark (relative to the 400ms task cycle) are realized, and the corresponding task is executed after the task cycle is reached, such as Figure 2 As shown in FIG. 1 , it is a flow chart of a data collection method for an aviation power distribution center based on CAN bus networking provided by an embodiment of the present invention, such as Figure 2 As shown, the specific implementation method of the data collection method is as follows:
[0082] Step 1: Set the CAN communication task completion flag to invalid, set the CAN communication task count range to 0-32, and the task count interval to 2ms. When the CAN communication task completion flag is invalid, the data collector obtains the operating data information of each device in the power distribution center through the 1st CAN bus and the 2nd CAN bus every 2ms. Figure 2 As shown, the specific tasks of CAN communication task counting are:
[0083] 0——The data collector sends data request instruction 1 to device No. 1 and device No. 17 using the ID number of device No. 1 and device No. 17 respectively;
[0084] 1~31——The data collector receives the Kth packet of CAN communication data information fed back by the device with ID number X and (X+16), and sends the data request instruction L to the device with ID number Y and (Y+16);
[0085] Among them, the counting range of X is 1 to 16, and it is accumulated by 1 every time it reaches an even number of task count values; the values of K and L depend on the value of the CAN communication task count. If the CAN communication task count is an odd number, K is 1 and L is 2; if the CAN communication task count is an even number, K is 2 and L is 1;
[0086] 32——The data collector receives the second packet of CAN communication data information fed back by devices with ID numbers 16 and 32, sets the CAN communication task completion flag to valid and the HB6096 communication completion flag to invalid. At this time, the reception of data from all devices is completed.
[0087] Step 2: When the CAN communication task completion flag is determined to be valid, set the HB6096 communication task count range to 0-5 and the task count interval to 14ms. When the HB6096 communication task completion flag is invalid, the data collector converts the operating data of each device in the power distribution center collected through CAN communication into the HB6096 communication format, reports it to the remote interface unit 1 through the HB6096 communication interface at a cycle of 14ms, and stores it in the external NVSRAM of the processor chip through the data bus. When the HB6096 communication task count reaches 5 (i.e., sent 6 times), the HB6096 communication completion flag is set to be valid.
[0088] Step 3: When it is determined that the HB6096 communication completion flag is valid and the 350ms task cycle flag is valid, the FLASH storage flag is set to valid, and the data in the last two HB6096 communication cycles stored in the NVSRAM are read out and transferred to the external FLASH of the processor chip in sequence. After the storage is completed, the FLASH storage flag is invalid and the 350ms task cycle flag is cleared to invalid.
[0089] Step 4: When the 350ms task cycle flag is determined to be invalid and the 400ms task cycle flag is determined to be valid, determine whether FLASH erasure is required based on the current tail pointer stored in FLASH, and if necessary, perform FLASH erasure.
[0090] It should be noted that the data storage function implemented by the data collector mainly includes fault data storage and monitoring data storage, such as Figure 1 As shown, in order to strictly control the overall weight and volume of the equipment on the machine, the data collector of the embodiment of the present invention adopts one NVSRAM storage chip to realize fault data storage with a smaller data volume, and adopts two large-capacity FLASH storage chips to realize monitoring data storage with a larger data volume.
[0091] Since both NVSRAM and FLASH memory chips are non-volatile memories, they can both keep the stored data from being lost after power failure. NVSRAM has the characteristic of fast access in bytes, while the maximum programming (writing) unit of FLASH is 256 bytes, and the minimum programming (writing) unit is 1 byte. In addition, erasure is required before writing data, and the minimum erasure unit is a sector. Therefore, according to the timeliness of data recording, NVSRAM is used to record the data when the system fails, and FLASH is used to periodically record the system monitoring data, and both adopt a cyclic overwrite storage method. In order to avoid data loss during the erasure of the FLASH memory chip, NVSRAM needs to be divided into three areas, area 1 is used to store NVSRAM fault record tail pointer, FLASH record tail pointer, monitoring backup data head pointer, tail pointer and other information; area 2 is used to cyclically store system fault data; area 3 is used to store monitoring backup data. Among them, area 3 is used to store monitoring backup data within the 400ms cycle.
[0092] In one implementation of the embodiment of the present invention, in the above step 2, during the execution of the HB6096 communication task, the data collector stores the data packet in area 3 of the NVSRAM after sending a 32×32bit communication data packet to the HB6096 communication interface each time. The specific storage method is as follows:
[0093] Step 21, update the 32-bit content of the 32-bit data in the HB6096 communication format, the updating method is: sum the data bits of the HB6096 communication, that is, the contents of the 11th bit to the 29th bit, bit by bit, if the sum result is an even number, set the 32nd bit to 1; if the sum result is an odd number, clear the 32nd bit to 0;
[0094] Step 22: After the data content is updated, the 32×32-bit communication data of the package is transferred to the cache array;
[0095] Step 23: When it is determined that the task cycle flag of the first 200ms is valid, perform the following operations:
[0096] S23a, reading the monitoring backup data tail pointer from area 1 of the NVSRAM, and performing segment switching processing on the monitoring backup data tail pointer;
[0097] S23b, storing the updated monitoring backup data tail pointer as the monitoring backup data head pointer in NVSRAM area 1;
[0098] S23c, the contents in the cache array are stored in sequence with the monitoring backup data tail pointer as the starting address. After the storage is completed, the updated monitoring backup data tail pointer is stored in NVSRAM area 1.
[0099] Step 24: When it is determined that the task cycle flag of the first 200ms is invalid, perform the following operations:
[0100] S24a, reading the monitoring backup data tail pointer from NVSRAM area 1, and performing segment switching processing on the monitoring backup data tail pointer;
[0101] S24b, the contents in the cache array are stored in sequence with the monitoring backup data tail pointer as the first address, and after the storage is completed, the updated monitoring backup data tail pointer is stored in NVSRAM area 1.
[0102] Furthermore, in this implementation, the method for segment switching the tail pointer is as follows: compare the maximum address in area 3 of NVSRAM with the monitoring backup data tail pointer. If the difference is less than 32×32 bits, set the monitoring backup data tail pointer to the initial address value of the monitoring backup data tail pointer, and store the updated monitoring backup data tail pointer in NVSRAM area 1.
[0103] In one implementation of the present invention, according to the amount of monitoring data stored in a 400ms cycle and the length of a single FLASH page of data of 256 bytes, the data within nearly two HB6096 communication cycles needs to occupy 6 pages of FLASH storage space. Therefore, in the above step 3, when the data collector executes a 350ms cycle task and determines that the FLASH storage flag is valid, it transfers 1 page of data from NVSRAM to FLASH every 2ms, and executes it 6 times in succession. The specific storage method is as follows:
[0104] Step 31, read the FLASH record tail pointer and monitoring backup data head pointer in NVSRAM area 1;
[0105] Step 32, perform segment switching processing according to the FLASH record tail pointer: compare the FLASH storage maximum address with the FLASH record tail pointer, if the difference is less than or equal to Δ1, set the FLASH record tail pointer to the FLASH record tail pointer initial address value, and store the updated FLASH record tail pointer in NVSRAM area 1, otherwise, no processing is performed, wherein Δ1 is 256 bytes;
[0106] Step 33, read area 3 of NVSRAM, take the monitoring backup data head pointer as the starting address, read out 256 bytes of data in sequence, and then store them in the FLASH with the FLASH record tail pointer as the starting address; after the storage is completed, store the updated FLASH record tail pointer in NVSRAM area 1;
[0107] Step 34, the FLASH task count is incremented by 1. If the FLASH task count is greater than or equal to 6, the FLASH task count is cleared to 0 and the FLASH storage flag is set to invalid and the 350ms task cycle flag is set to invalid; otherwise, no processing is performed.
[0108] In one implementation of the embodiment of the present invention, in the above step 4, based on the erase time of the adopted FLASH being 300ms, the data collector executes the FLASH erase task when judging that the 350ms task cycle flag is invalid and the 400ms task cycle flag is valid. The specific implementation method includes:
[0109] Step 41, read the FLASH record tail pointer from NVSRAM area 1;
[0110] Step 42, calculating the sector where the current FLASH record tail pointer is located according to the FLASH record tail pointer;
[0111] Step 43, compare the current sector maximum address with the FLASH record tail pointer, if the difference is less than or equal to Δ2, set the erase flag to valid, otherwise, set the erase flag to invalid, where Δ2 is 1536 bytes;
[0112] Step 44, when the erase flag is determined to be valid, if the sector where the current FLASH record tail pointer is located is the FLASH maximum number sector, the FLASH erase address is set to the FLASH record tail pointer initial address value; if the sector where the current FLASH record tail pointer is located is less than the maximum number sector, the FLASH erase address is the next sector head address; otherwise, no processing is performed;
[0113] Step 45, FLASH performs sector erasure according to the FLASH erase address.
[0114] In view of the situation that the electronic equipment in the aviation power distribution center is affected by the complex electromagnetic environment and natural environment on the aircraft during the flight, which leads to abnormal communication or data storage of the distribution center equipment, in order to meet the redundancy design requirements of on-board communication and storage, the embodiment of the present invention provides a data acquisition system and method for the aviation power distribution center based on CAN bus networking, and specifically proposes to use the aviation power distribution center data acquisition system based on CAN bus networking as data redundancy design, making full use of the high reliability and high security of the cyclic redundancy CRC check function of the CAN bus, simple topology structure, good transmission distance and rate, etc. The aviation power distribution center provides the distribution center operation data information to the remote interface unit 1 and the remote interface unit 2 respectively. On the one hand, each device in the distribution center uploads communication data to the remote interface unit 2 through the HB6096 bus interface and receives the instructions provided by the remote interface unit 2; on the other hand, the operation data of multiple devices with data transmission requirements in the distribution center are obtained through the data acquisition system based on the CAN bus networking, and then the remote interface unit 1 is connected through the HB6096 bus interface.
[0115] Furthermore, in order to fully consider the weight and volume of the designed data acquisition system, NVSRAM and FLASH are used to store fault data in NVSRAM to ensure its speed and timeliness by taking advantage of the fact that NVSRAM has a small capacity but has fast access in bytes, and FLASH has a large capacity but needs to be erased before access. NVSRAM and FLASH are used to store backup monitoring data in NVSRAM and transfer it to FLASH periodically to avoid the reliability of monitoring data storage during FLASH erasure. This provides a strong guarantee for the reliability of aircraft flight communication and data storage, and is of great significance in the fields of aviation and aerospace.
[0116] The following is an example of implementation to illustrate the implementation of the data acquisition system and method for the aviation power distribution center based on CAN bus networking provided by the embodiment of the present invention.
[0117] Implementation Example
[0118] like Figure 1 As shown, the data acquisition system of the aviation power distribution center provided by this implementation example mainly includes: 1 data acquisition device and 32 devices in the aviation power distribution center. On the one hand, the 32 devices in the power distribution center upload communication data to the remote interface unit 2 through the HB6096 bus interface and receive instructions provided by the remote interface unit 2; on the other hand, the operation data of each device in the power distribution center is obtained through the data acquisition system based on the CAN bus network, and then reported to the remote interface unit 1 through the HB6096 bus interface. In addition, the data acquisition device is the main node of the CAN bus network, and the 32 devices in the power distribution center are the sub-nodes of the CAN bus network. The specific implementation method of the data acquisition system to perform data acquisition is as follows:
[0119] S1. After the system is powered on, the data collector and 32 devices in the power distribution center perform the power-on initialization function respectively. The variables set by the data collector such as CAN communication task completion flag, HB6096 communication completion flag, and FLASH storage flag are all invalid;
[0120] S2. First, when the data collector determines that the CAN communication task completion flag is invalid, it sends data request instructions to the CAN communication sub-nodes in sequence according to the CAN communication task count at a 2ms interval, and feedbacks data reception at the next 2ms task completion sub-node. The CAN communication sub-node receives inquiries at a 200us period and completes the CAN communication response within 200us.
[0121] S3, after the data collector CAN communication task count reaches 32, set the CAN communication task completion flag to valid and the HB6096 communication completion flag to invalid;
[0122] S4. Secondly, when the data collector determines that the CAN communication task completion flag is valid and the HB6096 communication completion flag is invalid, it converts the received 32-way CAN communication sub-node information into the HB6096 communication data format at a 14ms interval, sends 32×32bit data packets to the remote interface unit 1 in sequence according to the HB6096 communication task count, and transfers the communication data packets to area 3 of the NVSRAM. The specific storage method is as follows:
[0123] S41, updating the 32-bit content of the 32-bit data in the HB6096 communication format, the updating method is: summing the data bits of the HB6096 communication, that is, the contents of the 11th bit to the 29th bit, bit by bit, if the sum result is an even number, then setting the 32nd bit to 1; if the sum result is an odd number, then clearing the 32nd bit to 0;
[0124] S42, after the data content is updated, the 32×32-bit communication data of the package is transferred to the cache array;
[0125] S43: When the task cycle flag of the first 200ms is determined to be valid, perform the following operations:
[0126] a) Read the monitoring backup data tail pointer from NVSRAM area 1, and perform segment switching on the monitoring backup data tail pointer: compare the maximum address of area 3 of NVSRAM with the monitoring backup data tail pointer. If the difference is less than 32×32 bits, set the monitoring backup data tail pointer to the initial address value of the monitoring backup data tail pointer, and store the updated monitoring backup data tail pointer in NVSRAM area 1;
[0127] b) storing the updated monitoring backup data tail pointer as the monitoring backup data head pointer in NVSRAM area 1;
[0128] c) The contents in the cache array are stored in sequence with the monitoring backup data tail pointer as the starting address. After the storage is completed, the updated monitoring backup data tail pointer is stored in NVSRAM area 1.
[0129] S44: When it is determined that the task cycle flag of the first 200ms is invalid, perform the following operations:
[0130] a) reading the monitoring backup data tail pointer from NVSRAM area 1 and performing segment switching processing on the monitoring backup data tail pointer;
[0131] b) The contents in the cache array are stored in sequence with the monitoring backup data tail pointer as the first address. After the storage is completed, the updated monitoring backup data tail pointer is stored in NVSRAM area 1.
[0132] S5. When the communication task count of data collector HB6096 reaches 5, the HB6096 communication completion flag is set to valid.
[0133] S6. When the data collector determines that the 350ms task cycle flag is valid, it determines that the FLASH storage flag is valid, and reads 256 bytes of monitoring data from NVSRAM area 3 once and transfers them to FLASH at a 2ms interval. The specific storage method is as follows:
[0134] S61, read the FLASH record tail pointer and the monitoring backup data head pointer in NVSRAM area 1;
[0135] S62, perform segment switching processing according to the FLASH record tail pointer: compare the FLASH storage maximum address with the FLASH record tail pointer, if the difference is less than or equal to Δ1, set the FLASH record tail pointer to the FLASH record tail pointer initial address value, and store the updated FLASH record tail pointer in NVSRAM area 1, otherwise, do not process, wherein Δ1 is 256 bytes;
[0136] S63, read area 3 of NVSRAM, use the monitoring backup data head pointer as the starting address, read out 256 bytes of data in sequence, and then store them in the FLASH with the FLASH record tail pointer as the starting address. After the storage is completed, store the updated FLASH record tail pointer in NVSRAM area 1;
[0137] S64, the FLASH task count is accumulated by 1. If the FLASH task count is detected to be greater than or equal to 6, the FLASH task count is cleared to 0 and the FLASH storage flag is set to invalid and the 350ms task cycle flag is set to invalid; otherwise, no processing is performed.
[0138] S7. When the data collector determines that the 350ms task cycle flag is invalid and the 400ms task cycle flag is valid, it executes the FLASH erase task. The specific method is as follows:
[0139] S71, read the FLASH record tail pointer from NVSRAM area 1;
[0140] S72, calculating the sector where the current FLASH record tail pointer is located according to the FLASH record tail pointer;
[0141] S73, comparing the current sector maximum address with the FLASH record tail pointer, if the difference is less than or equal to Δ2, then setting the erase flag to valid, otherwise, setting the erase flag to invalid, where Δ2 is 1536 bytes;
[0142] S74, when the erase flag is determined to be valid, if the sector where the current FLASH record tail pointer is located is the FLASH maximum number sector, the FLASH erase address is set to the FLASH record tail pointer initial address value; if the sector where the current FLASH record tail pointer is located is less than the maximum number sector, the FLASH erase address is the next sector head address; otherwise, no processing is performed;
[0143] S75. FLASH performs sector erasure according to the FLASH erase address.
[0144] Although the embodiments disclosed in the present invention are as above, the contents are only embodiments adopted to facilitate understanding of the present invention and are not intended to limit the present invention. Any technician in the field to which the present invention belongs can make any modifications and changes in the form and details of implementation without departing from the spirit and scope disclosed in the present invention, but the patent protection scope of the present invention shall still be subject to the scope defined in the attached claims.
Claims
1. A data acquisition system for an aviation power distribution center based on CAN bus networking, characterized in that: include: All equipment and data collectors in the aviation power distribution center that have data transmission requirements; The data collector is configured as the master node of the CAN bus network, and each device with data transmission requirements in the aviation power distribution center is configured as a sub-node of the CAN bus network. All devices with data transmission requirements in the aviation power distribution center are connected to the remote interface unit 2 through the bus respectively; The data collector comprises: a processor chip with at least two eCAN interfaces built in, a CAN transceiver connected to each eCAN interface, and a first communication transceiver and a second communication transceiver; all equipment with data transmission requirements in the aviation power distribution center are connected to at least two CAN transceivers in the data collector through at least two CAN buses, an output interface of the processor chip is connected to the remote interface unit 1 through the first communication transceiver, and another output interface of the processor chip is connected to the ground maintenance equipment through the second communication transceiver; In the data acquisition system, all devices with data transmission requirements in the aviation power distribution center send operating data information to the remote interface unit 2 through the bus respectively, and transmit the operating data information of all the devices to the data collector through at least two CAN buses, so that the data collector sends it to the remote interface unit 1 through the first communication transceiver; and during ground maintenance, the operating data information of each device in the power distribution center recorded by the data collector is downloaded to the ground maintenance equipment.
2. The data acquisition system of the aviation power distribution center based on CAN bus networking according to claim 1 is characterized in that: Each device in the aviation power distribution center has data transmission requirements, and each device has 1 HB6096 bus, 1 RS422 bus interface and 1 CAN bus interface. Each device is connected to the remote interface unit 2 through 1 HB6096 bus interface. Some devices are connected to the data collector as the communication main node through the 1st CAN bus as communication sub-nodes, and some other devices are connected to the data collector as the communication main node through the 2nd CAN bus sub-node as communication sub-nodes; Under normal working conditions, each device periodically uploads its own operating data information to the remote interface unit 2 through its respective HB6096 bus interface; When each device receives the command from the data collector through the CAN bus interface, it feeds back the relevant operating data information to the data collector through the corresponding CAN bus; During ground maintenance, the ground maintenance equipment completes the download of the stored data of each device through the RS422 bus interface.
3. The data acquisition system of the aviation power distribution center based on CAN bus networking according to claim 2 is characterized in that: The data collector has two CAN communication interfaces, one RS422 communication interface and one HB6096 bus interface; the first CAN communication interface is connected to the CAN bus interface of the part of the equipment in a bus topology; the second CAN communication interface is connected to the CAN bus interface of the other part of the equipment in a bus topology; The data collector is used to obtain the operating data information of each device in the distribution center from the 1st CAN communication interface and the 2nd CAN communication interface under normal working conditions, and convert it into the data format of HB6096 communication by its internal processor chip, and report it to the remote interface unit 1 through the HB6096 bus interface; it is also used for ground maintenance equipment to complete the download of the operating data information of each device in the distribution center recorded by the data collector through the RS422 bus interface during ground maintenance.
4. A data collection method for an aviation power distribution center based on CAN bus networking, characterized in that: A data acquisition method is performed on an aviation power distribution center using a data acquisition system for an aviation power distribution center based on CAN bus networking as claimed in any one of claims 1 to 3, assuming that there are 32 devices in the power distribution center, and the processor chip of the data acquisition device is externally connected to NVSRAM and FLASH; the method comprises: Step 1, set the CAN communication task completion flag to invalid, set the CAN communication task count range to 0-32, and the task count interval to 2ms; when the CAN communication task completion flag is invalid, the data collector obtains the operating data information of each device in the power distribution center through the 1st CAN bus and the 2nd CAN bus at a period of 2ms; Step 2, when it is determined that the CAN communication task completion flag is valid, the HB6096 communication task count range is set to 0-5, and the task count interval is 14ms; when the HB6096 communication task completion flag is invalid, the data collector converts the operation data of each device in the power distribution center collected through CAN communication into the HB6096 communication format, reports it to the remote interface unit 1 through the HB6096 communication interface at a period of 14ms, and stores it in the NVSRAM connected to the processor chip through the data bus. When the HB6096 communication task count reaches 5, the HB6096 communication completion flag is set to be valid; Step 3, when it is determined that the HB6096 communication completion flag is valid and the 350ms task cycle flag is valid, the FLASH storage flag is set to be valid, and the data in the last two HB6096 communication cycles stored in the NVSRAM is read out and sequentially transferred to the FLASH connected to the processor chip. After the storage is completed, the FLASH storage flag is set to invalid, and the 350ms task cycle flag is cleared to be invalid; Step 4: When the 350ms task cycle flag is determined to be invalid and the 400ms task cycle flag is determined to be valid, determine whether FLASH erasure is required based on the current tail pointer stored in FLASH. If erasure is determined to be required, FLASH erasure is performed.
5. The data collection method for aviation power distribution center based on CAN bus networking according to claim 4 is characterized in that: In the data collector, NVSRAM is used to record data when a system failure occurs, and FLASH is used to periodically record system monitoring data, and both adopt a cyclic overwriting storage method; Among them, NVSRAM is divided into three areas, area 1 is used to store NVSRAM fault record tail pointer, FLASH record tail pointer, monitoring backup data head pointer, tail pointer; area 2 is used to cyclically store system fault data; area 3 is used to store monitoring backup data; and area 3 is used to store monitoring backup data within the 400ms period.
6. The data collection method for aviation power distribution center based on CAN bus networking according to claim 5 is characterized in that: The method further comprises: The data acquisition system is queried every 2 ms to see if a fault occurs. If a fault occurs, the fault data is stored in area 2 of the NVSRAM in bytes.
7. The data collection method for aviation power distribution center based on CAN bus networking according to claim 5 is characterized in that: In step 2, during the execution of the HB6096 communication task, the data collector stores the data packet in area 3 of the NVSRAM after sending a 32×32-bit communication data packet to the HB6096 communication interface each time. The specific storage method includes: Step 21, update the 32-bit content of the 32-bit data in the HB6096 communication format, the updating method is: sum the data bits of the HB6096 communication, that is, the contents of the 11th bit to the 29th bit, bit by bit, if the sum result is an even number, set the 32nd bit to 1; if the sum result is an odd number, clear the 32nd bit to 0; Step 22: After the data content is updated, the 32×32-bit communication data of the package is transferred to the cache array; Step 23: When it is determined that the task cycle flag of the first 200ms is valid, perform the following operations: S23a, reading the monitoring backup data tail pointer from area 1 of the NVSRAM, and performing segment switching processing on the monitoring backup data tail pointer; S23b, storing the updated monitoring backup data tail pointer as the monitoring backup data head pointer in NVSRAM area 1; S23c, storing the contents in the cache array in sequence with the monitoring backup data tail pointer as the starting address, and after the storage is completed, storing the updated monitoring backup data tail pointer in NVSRAM area 1; Step 24: When it is determined that the task cycle flag of the first 200ms is invalid, perform the following operations: S24a, reading the monitoring backup data tail pointer from NVSRAM area 1, and performing segment switching processing on the monitoring backup data tail pointer; S24b, the contents in the cache array are stored in sequence with the monitoring backup data tail pointer as the first address, and after the storage is completed, the updated monitoring backup data tail pointer is stored in NVSRAM area 1.
8. The data collection method for aviation power distribution center based on CAN bus networking according to claim 7 is characterized in that: The method of performing segment switching processing on the tail pointer is: The maximum address in area 3 of NVSRAM is compared with the monitoring backup data tail pointer. If the difference is less than 32×32 bits, the monitoring backup data tail pointer is set to the initial address value of the monitoring backup data tail pointer, and the updated monitoring backup data tail pointer is stored in NVSRAM area 1.
9. The data collection method for aviation power distribution center based on CAN bus networking according to claim 8 is characterized in that: In step 3, when the data collector executes the 350ms periodic task and determines that the FLASH storage flag is valid, it transfers one page of data from NVSRAM to FLASH once every 2ms, and executes it six times in succession; the storage method includes: Step 31, read the FLASH record tail pointer and monitoring backup data head pointer in NVSRAM area 1; Step 32, perform segment switching processing according to the FLASH record tail pointer: compare the FLASH storage maximum address with the FLASH record tail pointer, if the difference is less than or equal to Δ1, set the FLASH record tail pointer to the FLASH record tail pointer initial address value, and store the updated FLASH record tail pointer in NVSRAM area 1, otherwise, no processing is performed, wherein Δ1 is 256 bytes; Step 33, read area 3 of NVSRAM, take the monitoring backup data head pointer as the starting address, read out 256 bytes of data in sequence, and then store them in the FLASH with the FLASH record tail pointer as the starting address; after the storage is completed, store the updated FLASH record tail pointer in NVSRAM area 1; Step 34, the FLASH task count is accumulated by 1; if the FLASH task count is detected to be greater than or equal to 6, the FLASH task count is cleared to 0 and the FLASH storage flag is set to invalid, and the 350ms task cycle flag is set to invalid; otherwise, no processing is performed.
10. The data collection method for aviation power distribution center based on CAN bus networking according to claim 9 is characterized in that: In the above step 4, based on the erase time of the adopted FLASH being 300ms, the data collector executes the FLASH erase task when judging that the 350ms task cycle flag is invalid and the 400ms task cycle flag is valid. The specific implementation method includes: Step 41, read the FLASH record tail pointer from NVSRAM area 1; Step 42, calculating the sector where the current FLASH record tail pointer is located according to the FLASH record tail pointer; Step 43, compare the current sector maximum address with the FLASH record tail pointer, if the difference is less than or equal to Δ2, set the erase flag to valid, otherwise, set the erase flag to invalid, where Δ2 is 1536 bytes; Step 44, when the erase flag is determined to be valid, if the sector where the current FLASH record tail pointer is located is the FLASH maximum number sector, the FLASH erase address is set to the FLASH record tail pointer initial address value; if the sector where the current FLASH record tail pointer is located is less than the maximum number sector, the FLASH erase address is the next sector head address; otherwise, no processing is performed; Step 45, FLASH performs sector erasure according to the FLASH erase address.
Citation Information
Patent Citations
CAN data acquisition and sending method and device, and vehicle-mounted terminal
CN113872840A
A vehicle data acquisition and analysis system based on CAN bus
CN117155737B
Distributing type multi -channel data acquisition system based on CAN bus technique
CN205263583U
ECU data acquisition equipment based on CAN bus
CN210835674U
Airborne fuel system remote interface unit
CN105329450A