Vehicle-mounted platform analog quantity driving acquisition board card based on main and standby management
By adopting analog drive acquisition boards based on master-secure management in the secure vehicle platform, the problem of small application range of digital port data output and unreasonable configuration of driver boards in the prior art is solved, and a wider application range, higher system availability and lower maintenance costs are achieved.
Patent Information
- Application Number
- CN202510040446.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-10
- Publication Date
- 2025-05-30
AI Technical Summary
The design of driver acquisition boards in existing secure vehicle platforms has problems such as low application range of digital port data output and unreasonable configuration of driver boards, low system availability and high maintenance costs.
The on-board platform analog drive acquisition board based on main and backup management is adopted, and the voltage-current digital-to-analog conversion DAC output channel, pulse width modulation PWM output channel, voltage-current analog-to-digital ADC acquisition channel is added, and the output and read back data processing is performed through AIOB_OUTPUT and AIOB_READBACK messages, so as to realize the redundant management and centralized data processing of the analog drive acquisition board.
The application scope of data driven by secure vehicle platform has been expanded, system availability and data processing efficiency have been improved, manual maintenance costs have been reduced, and system reliability and flexibility have been improved through main and standby management.
Smart Images

Figure CN120065807A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of rail transit, and more specifically to an analog drive acquisition board for a vehicle-mounted platform based on primary and standby management. Background Art
[0002] In recent years, with the development of rail transit and the increasingly wide application of safety vehicle-mounted platforms, there are more requirements for the usage scenarios of safety vehicle-mounted platforms. Currently, among the safety vehicle-mounted platforms on the market, there is only a digital drive acquisition board for the drive acquisition board.
[0003] For the current vehicle-mounted platforms, the design of the drive acquisition board has the following defects: 1. In the existing safety vehicle-mounted platforms, the output signal quantity type generally uses digital quantity ports for data output, and the application range is small.
[0004] 2. Currently, the drive board generally adopts a two-out-of-two mode. If one of them fails, it will cause both drive boards not to output, and the upfront capital investment and later maintenance costs are relatively high.
[0005] 3. In previous designs, the acquisition data, read-back data, and output data of the vehicle-mounted platform are processed on different types of boards, and the processing efficiency is low.
[0006] In the prior art, the patent with the publication number CN117873923A discloses a method, device, and medium for driving and read-back inspection of an output board of a vehicle-mounted platform. The method includes: 1) configuring a non-safe port for the output board; 2) configuring the pairing and redundancy relationship for the output board; 3) the output board driving external data; 4) the output board receiving read-back data and performing inspection. Compared with the prior art, the present invention has the advantages of high reliability, high flexibility, comprehensive inspection, multiple application scenarios, and reduction of labor costs.
[0007] Although the method for driving and read-back inspection of the output board of the vehicle-mounted platform disclosed in the above patent configures a redundancy relationship, it is a digital drive acquisition board, and there are also problems such as a small application range for data output using digital quantity ports and low processing efficiency for output, acquisition, and read-back information on different types of boards. Summary of the Invention
[0008] In order to overcome the defects existing in the above-mentioned prior art, the present invention discloses an analog quantity drive and acquisition board card and method for a vehicle-mounted platform based on primary and standby management. The present invention adds a voltage-current digital-to-analog conversion DAC output channel, a pulse-width modulation PWM output channel, and a voltage-current analog-to-digital ADC acquisition channel to the analog quantity drive and acquisition board card. During the output drive stage, output is performed through AIOB_OUTPUT according to the configuration information and channel information provided by the application, and primary and standby management is carried out on the AIOB board card. During the drive data read-back and acquisition stage, the read-back data and input acquisition data of the AIOB analog quantity drive and acquisition board card are processed through AIOB_READBACK.
[0009] In order to achieve the above object, the technical solution adopted by the present invention is: An analog quantity drive and acquisition board card for a vehicle-mounted platform based on primary and standby management, including two redundant analog quantity drive and acquisition board cards AIOB. A voltage-current digital-to-analog conversion DAC output channel, a pulse-width modulation PWM output channel, and a voltage-current analog-to-digital ADC acquisition channel are provided in both of the two redundant analog quantity drive and acquisition board cards AIOB; The voltage-current digital-to-analog conversion DAC output channel is used to adjust the output magnitude of the voltage and current of an external device to meet the output requirements of different external devices; The pulse-width modulation PWM output channel is used to adjust the frequency and duty cycle of an external device. It is connected to a motor and a sensor, and the rotation speed is controlled by setting the frequency and duty cycle; The voltage-current analog-to-digital ADC acquisition channel is used to collect the actual voltage and current magnitude of an external device, facilitating the monitoring and control of the external device by the application; During the output drive stage, the analog quantity drive and acquisition board card AIOB performs output through AIOB_OUTPUT according to the configuration information and channel information provided by the application; during the drive data read-back and acquisition stage, both the read-back data and the input acquisition data are processed through the AIOB_READBACK message and provided to the application; among them, AIOB_OUTPUT is the drive output message of the analog quantity drive and acquisition board card; AIOB_READBACK is the acquisition read-back input message of the analog quantity drive and acquisition board card.
[0010] In the present invention, for the analog quantity drive and acquisition board card of the vehicle-mounted platform, its function is to provide an interface between the train control vehicle-mounted equipment and the vehicle, collect interface information (such as the air pressure of the locomotive) from the vehicle and output control commands (such as the magnitude of the traction force / braking force) to the vehicle. The analog quantity drive and acquisition board card in the vehicle-mounted platform provides the collected analog quantity input to the application, and receives the analog quantity drive command of the application and drives the output of the analog quantity according to the command.
[0011] I. Configuration of analog quantity drive output channel and acquisition channel: Preferably, the analog - driven acquisition board AIOB is provided with four voltage - current digital - to - analog conversion DAC output channels and two pulse - width modulation PWM output channels for outputting analog - driven values, and four voltage - current analog - to - digital ADC acquisition channels for acquiring analog - driven values.
[0012] Output channels for analog - driven values: In the design of the present invention, the output channels for analog - driven values are composed of 2 PWM channels and 4 DAC channels, and the input channels are composed of 4 ADC acquisition channels. The advantage of this setting is that it can meet more application scenarios, can control the output magnitudes such as voltage, current, frequency, duty cycle, etc. of external devices, and can monitor the voltage of external devices through the acquisition channels.
[0013] Preferably, the adjustable range of the duty cycle in the pulse - width modulation PWM output channel is 0 - 100%, configured with three frequency levels of 500Hz, 400Hz, and 1000Hz, and the default output is 500Hz.
[0014] In the present invention, the PWM channel provides settings for the duty cycle and frequency. The adjustable range of the PWM duty cycle is 0 - 100%, and the PWM frequency has three configurable levels of 500Hz, 400Hz, and 1000Hz, with the default output of 500Hz. The advantage of this setting is that it provides multiple frequency options, and the most suitable frequency can be selected according to different application requirements. For example, low frequencies are suitable for high - power applications, and high frequencies are suitable for fast - response low - power applications, ensuring that the PWM channel can be compatible with various electronic devices, including motor drivers, LED drivers, heater controllers, etc.
[0015] Preferably, the voltage - current digital - to - analog conversion DAC output channel is set to voltage output or current output according to the actual requirements of external devices. When the voltage - current digital - to - analog conversion DAC output channel is for driving voltage, the voltage output range is 0~12.5V, and when it is for driving current, the current output range is 0~24mA.
[0016] In the present invention, the DAC channel can be set to voltage output or current output according to the actual requirements of external devices. When the DAC is for driving voltage, the voltage output range is 0~12.5V, and when driving current, the current output range is 0~24mA. The advantage of this setting is that it provides great flexibility and can adapt to different types of sensors and actuators. For example, some sensors need voltage signals to work, while others may need current signals.
[0017] Second, add master - standby management to the two redundant analog - driven acquisition boards: Preferably, the two redundant analog driver acquisition board cards AIOB are arranged in a set of safety vehicle platforms. One of the analog driver acquisition board cards AIOB is used as the main board card to output and collect data, and the other analog driver acquisition board card AIOB is used as the backup board card. When the main board card fails, the backup board card replaces the original main board card to output and collect data.
[0018] In the present invention, for a set of safety vehicle platforms, two redundant analog driver acquisition board cards are used for output and collection. One of them is used as the main board card for analog output, and the other is used as the backup board card. When the main board card fails, if the backup board card is in a normal state, it can quickly replace the original main board card to output and collect data. It performs master-slave management on the analog driver acquisition board cards. If one main board card has an error, the other backup board card replaces the original main board card to continue working to reduce costs.
[0019] III. Concentrate the input acquisition data and read-back data in the AIOB_READBACK message: Preferably, the analog driver acquisition board card AIOB concentrates the acquisition data and read-back data in the AIOB_READBACK message and sends the AIOB_READBACK message to the main logic board card MPU.
[0020] In previous designs, for the acquisition data and read-back data received by the digital driver board card, two types of message packets are respectively used to send them to the MPU main logic board card. In a safety vehicle platform, since the MPU needs to process a large number of message types, the analog acquisition data and read-back data can be concentrated in the AIOB_READBACK message. In the development and implementation of the MPU main logic board card, the judgment of message types, message delays, etc. can be reduced, improving the development efficiency of developers and saving resources.
[0021] Preferably, the AIOB_READBACK message structure in the analog driver acquisition board card AIOB includes: When the serial number is 1, the data type is INT16U, and the parameter name is MasterOrStandby, indicating the actual master-slave state being executed; When the serial number is 2, the data type is INT8U, and the parameter name is AIOB_health_status, indicating the health status of AIOB; When the serial number is 3, the data type is INT8U, and the parameter name is pwm_ch1_result, indicating the feedback result of PWM channel 1; When the serial number is 4, the data type is INT8U, and the parameter name is pwm_ch1_freq_cnt, indicating the feedback frequency size of PWM channel 1; When the serial number is 5, the data type is INT8U, and the parameter name is pwm_ch1_duty_result, representing the sampled duty cycle size of PWM channel 1; When the serial number is 6, the data type is INT8U, and the parameter name is pwm_ch2_result, representing the sampled result of PWM channel 2; When the serial number is 7, the data type is INT8U, and the parameter name is pwm_ch2_freq_cnt, representing the sampled frequency size of PWM channel 2; When the serial number is 8, the data type is INT8U, and the parameter name is pwm_ch2_duty_result, representing the sampled duty cycle size of PWM channel 2; When the serial number is 9, the data type is INT16U, and the parameter name is dac_ch1_voltage, representing the sampled voltage size of DAC channel 1; When the serial number is 10, the data type is INT16U, and the parameter name is dac_ch1_current, representing the sampled current size of DAC channel 1; When the serial number is 11, the data type is INT8U, and the parameter name is dac_ch1_rd_result, representing the sampled result of DAC channel 1; When the serial number is 12, the data type is INT16U, and the parameter name is dac_ch2_voltage, representing the sampled voltage size of DAC channel 2; When the serial number is 13, the data type is INT16U, and the parameter name is dac_ch2_current, representing the sampled current size of DAC channel 2; When the serial number is 14, the data type is INT8U, and the parameter name is dac_ch2_rd_result, representing the sampled result of DAC channel 2; When the serial number is 15, the data type is INT16U, and the parameter name is dac_ch3_voltage, representing the sampled voltage size of DAC channel 3; When the serial number is 16, the data type is INT16U, and the parameter name is dac_ch3_current, representing the sampled current size of DAC channel 3; When the serial number is 17, the data type is INT8U, and the parameter name is dac_ch3_rd_result, representing the sampled result of DAC channel 3; When the serial number is 18, the data type is INT16U, and the parameter name is dac_ch4_voltage, representing the sampled voltage size of DAC channel 4; When the serial number is 19, the data type is INT16U, and the parameter name is dac_ch4_current, representing the magnitude of the feedback current of DAC channel 4; When the serial number is 20, the data type is INT8U, and the parameter name is dac_ch4_rd_result, representing the feedback result of DAC channel 4; When the serial number is 21, the data type is INT16U, and the parameter name is adc_ch1_rd_cnt, representing the acquisition magnitude of ADC channel 1; When the serial number is 22, the data type is INT8U, and the parameter name is adc_ch1_result, representing the acquisition result of ADC channel 1; When the serial number is 23, the data type is INT16U, and the parameter name is adc_ch2_rd_cnt, representing the acquisition magnitude of ADC channel 2; When the serial number is 24, the data type is INT8U, and the parameter name is adc_ch2_result, representing the acquisition result of ADC channel 2; When the serial number is 25, the data type is INT16U, and the parameter name is adc_ch3_rd_cnt, representing the acquisition magnitude of ADC channel 3; When the serial number is 26, the data type is INT8U, and the parameter name is adc_ch3_result, representing the acquisition result of ADC channel 3; When the serial number is 27, the data type is INT16U, and the parameter name is adc_ch4_rd_cnt, representing the acquisition magnitude of ADC channel 4; When the serial number is 28, the data type is INT8U, and the parameter name is adc_ch4_result, representing the acquisition result of ADC channel 4.
[0022] Among them, the data types INT8U and INT16U respectively represent the 8-bit unsigned char type and the 16-bit unsigned short type.
[0023] Preferably, the process of the vehicle-mounted platform analog drive acquisition board driving external data includes the following steps: S101. The analog drive acquisition board receives the analog output drive data transmitted from the application; S102. Determine whether the analog output drive data sent by the application is greater than 0; if so, enter steps S103 and S104, if not, enter step S107; S103. Determine whether the length of the analog pulse width modulation PWM output channel output drive data is greater than 0; if so, enter step S106, if not, enter step S105; S104. Determine whether the length of the output drive data of the analog voltage / current digital-to-analog converter (DAC) output channel is greater than 0. If it is, proceed to step S106; if not, proceed to step S105. In the present invention, the purpose of steps S103 and S104 to determine whether the length of the analog PWM / DAC output drive data is greater than 0 is to determine whether the application requires the output of PWM / DAC. If the output drive data is required, the length is not 0; if not, the length of the output drive data sent by the application to the MPU main processing logic board is 0, and the drive command sizes of the PWM channel and the DAC channel should also be set to 0.
[0024] S105. Set the drive data of the output channel to the default value, and then proceed to step S106. In the present invention, the purpose of step S105 to set the drive data of the output channel to the default value is that if the drive data of the output channel is sent to the AIOB board at a cycle of 50 ms, and if the application does not provide the drive command size for this cycle, the drive data should also be filled with an executable value.
[0025] S106. Update and record the valid output drive data transmitted by the application, and then proceed to step S108. S107. Determine whether it is within the data valid period. If it is, send the previously recorded valid output drive data and then proceed to step S108; if not, set all the output drive data transmitted by the application to 0 and then proceed to step S108. S108. According to the drive values of each channel in the output drive data sent by multiple applications, obtain the enabling of each channel according to the configuration information to integrate the analog drive data. In the present invention, the purpose of step S108 is to meet the requirements of multi-application scenarios, and different channels can be allocated to different applications for output, readback, and acquisition, making full use of the channels of the AIOB board.
[0026] S109. Set the master-slave relationship of the board according to the health status of the readback message of the analog drive acquisition board. In the present invention, the purpose of step S109 to set the master-slave relationship of the board according to the health status of the readback message is to ensure that the AIOB board is in an available state. According to the health status feedback by the AIOB board, the MPU main logic board sets which of the two AIOB boards acts as the main board for the execution and acquisition of drive commands.
[0027] S110. Combine the port output states of all analog drive acquisition boards and calculate the data CRC. S111. The main logic board sends the combined data to the analog drive acquisition board.
[0028] Preferably, the analog drive acquisition board of the vehicle-mounted platform synthesizes the acquired data and the read-back data into an AIOB_READBACK message and sends it to the main logic board MPU. The main logic board MPU processes the acquired data and the read-back data, including the following steps: S201. Determine whether the received data type is AIOB_READBACK. If so, enter steps S202 and S204; S202. Process the acquired data and determine whether a message from the main analog drive acquisition board is received. If so, enter step S203; Preferably, step S202 includes: determining whether the MasterOrStandby field in the AIOB_READBACK message is 1. If so, it indicates that a message from the main analog drive acquisition board is received, record the AIOB_health_status status in this board message, and enter step S203; if not, only record the AIOB_health_status status of this board message and do not perform other processing, where MasterOrStandby represents the actual master-slave status being executed, and AIOB_health_status represents the health status of AIOB.
[0029] S203. Calculate the acquired values of each ADC channel from the acquired sizes of each ADC channel in the AIOB_READBACK message through a conversion formula and send them to the application; Preferably, step S203 includes: calculating the voltage / current values acquired by each channel from the acquired data adc_ch1_rd_cnt, adc_ch2_rd_cnt, adc_ch3_rd_cnt, adc_ch4_rd_cnt in the AIOB_READBACK message through a conversion formula and providing them to the application, where adc_ch1_rd_cnt, adc_ch2_rd_cnt, adc_ch3_rd_cnt, adc_ch4_rd_cnt represent the acquired sizes of ADC channels 1, 2, 3, and 4.
[0030] S204. Process the read-back data, calculate the read-back voltage value and read-back current value of each DAC channel from the read-back voltage size and read-back current size of each DAC channel in the AIOB_READBACK message through a conversion formula, and record the read-back voltage and current values in the maintenance module of the main logic board MPU.
[0031] Preferably, step S204 includes: after receiving the AIOB_READBACK message, calculating the readback voltage and current values of each channel according to the conversion formula for the readback messages dac_ch1_voltage, dac_ch2_voltage, dac_ch3_voltage, dac_ch4_voltage, dac_ch1_current, dac_ch2_current, dac_ch3_current, and dac_ch4_current, and recording the readback voltage and current values through the maintenance module of the main logic board MPU; where dac_ch1_voltage, dac_ch2_voltage, dac_ch3_voltage, and dac_ch4_voltage represent the magnitudes of the readback voltages of DAC channels 1, 2, 3, and 4, and dac_ch1_current, dac_ch2_current, dac_ch3_current, and dac_ch4_current represent the magnitudes of the readback currents of DAC channels 1, 2, 3, and 4.
[0032] Advantages of the present invention: 1. The analog - quantity - driven acquisition board of the present invention includes 2 PWM - driven channels, 4 DAC voltage / current output channels, and 4 ADC voltage acquisition channels. It can flexibly set the output magnitudes of the channels and the types of drive data according to actual needs, expanding the application scope of drive data in the safe vehicle platform and improving the system availability.
[0033] 2. The present invention performs primary - backup management on the analog - quantity - driven acquisition board, improves the data availability through dual - board redundancy, and the primary - backup architecture is relatively simple and applicable to most application scenarios.
[0034] 3. The present invention centralizes the acquisition messages and readback messages of the analog - quantity - driven acquisition board in one message type, facilitating the development and testing for R & D and testing personnel and reducing the cost of on - site manual maintenance. Description of the Drawings
[0035] Figure 1 It is a channel configuration relationship diagram of the AIOB analog - quantity - driven acquisition board of the present invention; Figure 2 It is a process flow diagram of the external drive data of the analog - quantity - driven acquisition board of the vehicle platform of the present invention. Detailed Embodiments
[0036] The following will clearly and completely describe the concept, specific structure, and technical effects generated by the present invention in combination with the embodiments and the drawings to fully understand the purpose, features, and effects of the present invention.
[0037] An analog - driven acquisition board for a vehicle platform based on primary - backup management, as Figure 1 shown, includes two redundant analog - driven acquisition board AIOBs. In both of the two redundant analog - driven acquisition board AIOBs, there are voltage - current digital - to - analog conversion DAC output channels, pulse - width modulation PWM output channels, and voltage - current analog - to - digital ADC acquisition channels; The voltage - current digital - to - analog conversion DAC output channel is used to adjust the output magnitude of the voltage and current of an external device to meet the output requirements of different external devices; The pulse - width modulation PWM output channel is used to adjust the frequency and duty cycle of an external device. It is connected to a motor and a sensor, and controls the rotation speed by setting the frequency and duty cycle; The voltage - current analog - to - digital ADC acquisition channel is used to collect the actual voltage and current magnitude of an external device, facilitating the monitoring and control of the external device by an application; During the output - driving stage, the analog - driven acquisition board AIOB outputs through AIOB_OUTPUT according to the configuration information and channel information provided by the application; during the driving - data read - back and acquisition stages, it reads back data and inputs and acquires data through the AIOB_READBACK message processing and provides them to the application; among them, AIOB_OUTPUT is the driving - output message of the analog - driven acquisition board, and AIOB_READBACK is the acquisition - read - back input message of the analog - driven acquisition board.
[0038] Specifically as follows: I. Configuration of analog - driven output channels and acquisition channels: 1. Output channels of analog - driven values: In the design of the present invention, the output channels of analog - driven values are composed of 2 PWM channels and 4 DAC channels, and the input channels are composed of 4 ADC acquisition channels, as Figure 1 shown; 2. The PWM channel provides settings for the duty cycle and frequency. The adjustable range of the PWM duty cycle is 0 - 100%, and the PWM frequency has three configurable gears: 500Hz, 400Hz, and 1000Hz, with a default output of 500Hz; 3. The DAC channel can be set to voltage output or current output according to the actual requirements of the peripheral device. When the DAC is for driving voltage, the voltage output range is 0~12.5V; when the DAC is for driving current, the current is 0~24mA.
[0039] II. Add primary - backup management to the two redundant analog - driven acquisition boards 1. For a set of secure vehicle-mounted platforms, two redundant analog drive and acquisition boards are used for output and acquisition. One of them serves as the main board for analog output, and the other serves as the backup board. When the main board fails, if the backup board is in a normal state, it can quickly replace the original main board to perform the operations of output and data acquisition.
[0040] III. Concentrate both the input acquisition data and the read-back data in the AIOB_READBACK message: 1. In previous designs, for the acquisition data and read-back data received by the digital drive board, two types of message packets were respectively used to send them to the MPU main logic board. In the secure vehicle-mounted platform, since the MPU needs to process a large number of message types, the analog acquisition data and read-back data can be concentrated in the AIOB_READBACK message. In the development and implementation of the MPU main logic board, the judgment of message types, message delays, etc. can be reduced, improving the development efficiency of developers and saving resources.
[0041] As shown in Table 1, the AIOB_READBACK message structure in the analog drive and acquisition board includes: Table 1 AIOB_READBACK message structure diagram of the AIOB analog drive and acquisition board As Figure 2 shown, the process of the analog drive and acquisition board of the vehicle-mounted platform driving external data includes the following steps: S101. The analog drive and acquisition board receives the analog output drive data transmitted from the application; S102. Determine whether the analog output drive data sent by the application is greater than 0; if so, proceed to steps S103 and S104, if not, proceed to step S107; S103. Determine whether the length of the drive data output by the analog pulse width modulation (PWM) output channel is greater than 0; if so, proceed to step S106, if not, proceed to step S105; S104. Determine whether the length of the drive data output by the analog voltage-current digital-to-analog conversion (DAC) output channel is greater than 0; if so, proceed to step S106, if not, proceed to step S105; S105. Set the drive data of the output channel to the default value, and then proceed to step S106; S106. Update and record the valid output drive data transmitted from the application, and then proceed to step S108; S107. Determine whether it is within the data valid period. If so, send the previously recorded valid output drive data and then proceed to step S108; if not, set all the applied output drive data to 0 and then proceed to step S108; S108. According to the drive values of each channel in the output drive data sent by multiple applications, obtain the enable of each channel according to the configuration information to integrate the analog drive data; S109. Set the master-slave relationship of the board according to the health status of the read-back message of the analog drive acquisition board; S110. Combine the port output states on all analog drive acquisition boards and calculate the data CRC; S111. The main logic board sends the combined data to the analog drive acquisition board.
[0042] In this embodiment, the in-vehicle platform analog drive acquisition board synthesizes the acquisition data and the read-back data into an AIOB_READBACK message and sends it to the MPU main logic board. The processing of the acquisition data and the read-back data by the MPU main logic board includes the following steps: S201. Determine whether the received data type is AIOB_READBACK. If so, proceed to step S202 and step S204; S202. Processing of the acquisition message: Determine whether the MasterOrStandby field in the AIOB_READBACK message is 1. If so, it indicates that the message of the main AIOB board is received. Record the AIOB_health_status status in the board message and proceed to step S203; if not, only record the AIOB_health_status status of the board message and do not perform other processing; S203. For the acquisition data adc_ch1_rd_cnt, adc_ch2_rd_cnt, adc_ch3_rd_cnt, adc_ch4_rd_cnt in the AIOB_READBACK message, calculate the voltage / current values collected by each channel according to the conversion formula and provide them to the application; S204. Processing of read-back messages: After receiving the AIOB_READBACK message, calculate the read-back voltages and currents of each channel for the read-back messages dac_ch1_voltage, dac_ch2_voltage, dac_ch3_voltage, dac_ch4_voltage, dac_ch1_current, dac_ch2_current, dac_ch3_current, and dac_ch4_current according to the conversion formula, and record the read-back values through the maintenance module of the main logic board to facilitate subsequent analysis and maintenance of on-site problems.
[0043] The above has specifically described the embodiments of the present invention, but the present invention is not limited to the described embodiments. Those skilled in the art can make various equivalent variations or substitutions without departing from the spirit of the present invention, and these equivalents or substitutions are all included within the scope defined by the claims of the present invention.
Claims
1. An on-board platform analog quantity drive acquisition board based on master-slave management, characterized in that: It includes two redundant analog quantity drive acquisition boards AIOB, each of which is provided with a voltage and current digital-to-analog conversion DAC output channel, a pulse width modulation PWM output channel and a voltage and current analog-to-digital ADC acquisition channel; The voltage and current digital-to-analog conversion DAC output channel is used to adjust the output size of the voltage and current of the external device; the pulse width modulation PWM output channel is used to adjust the frequency and duty cycle of the external device; the voltage and current analog-to-digital ADC acquisition channel is used to acquire the actual voltage and current size of the external device; The analog quantity drive acquisition board AIOB outputs through AIOB_OUTPUT according to the configuration information and channel information provided by the application in the output drive stage; During the drive data readback and acquisition stages, the AIOB_READBACK message is used to process the readback data and input acquisition data and provide them to the application; among them, AIOB_OUTPUT is the analog drive acquisition board driver output message; AIOB_READBACK is the analog drive acquisition board acquisition readback input message.
2. The vehicle-mounted platform analog quantity drive acquisition board as claimed in claim 1, characterized in that: The analog drive acquisition board AIOB is provided with four voltage and current digital-to-analog conversion DAC output channels and two pulse width modulation PWM output channels for outputting analog drive values, and is provided with four voltage and current analog-to-digital ADC acquisition channels for acquiring analog drive values.
3. The vehicle-mounted platform analog quantity drive acquisition board as claimed in claim 1, characterized in that: The duty cycle in the pulse width modulation (PWM) output channel is adjustable in the range of 0-100%, and is configured with three frequencies of 500Hz, 400Hz, and 1000Hz, with the default output being 500Hz.
4. The vehicle-mounted platform analog quantity drive acquisition board as claimed in claim 1, characterized in that: The voltage-current digital-to-analog conversion DAC output channel is set to voltage output or current output according to the actual external device requirements. When the voltage-current digital-to-analog conversion DAC output channel is a driving voltage, the voltage output range is 0~12.5V, and when it is a driving current, the current output range is 0~24mA.
5. The vehicle-mounted platform analog quantity drive acquisition board as claimed in claim 1, characterized in that: The two redundant analog drive acquisition boards AIOB are arranged in a safe vehicle-mounted platform, wherein one analog drive acquisition board AIOB is used as the main board to perform output and data acquisition operations, and the other analog drive acquisition board AIOB is used as a spare board. When the main board fails, the spare board replaces the original main board to perform output and data acquisition operations.
6. The vehicle-mounted platform analog quantity drive acquisition board as claimed in claim 1, characterized in that: The analog quantity drive acquisition board AIOB collects the acquired data and the read-back data in an AIOB_READBACK message, and sends the AIOB_READBACK message to the main logic board MPU.
7. The vehicle-mounted platform analog quantity drive acquisition board as claimed in claim 1, characterized in that: The AIOB_READBACK message structure in the analog drive acquisition board AIOB includes: When the sequence number is 1, the data type is INT16U, and the parameter name is MasterOrStandby, which indicates the actual master-standby status; When the sequence number is 2, the data type is INT8U, the parameter name is AIOB_health_status, and it indicates the health status of AIOB; When the sequence number is 3, the data type is INT8U, the parameter name is pwm_ch1_result, which indicates the sampling result of PWM channel 1; When the sequence number is 4, the data type is INT8U, and the parameter name is pwm_ch1_freq_cnt, which indicates the sampling frequency of PWM channel 1; When the sequence number is 5, the data type is INT8U, the parameter name is pwm_ch1_duty_result, which indicates the duty cycle of PWM channel 1; When the sequence number is 6, the data type is INT8U, the parameter name is pwm_ch2_result, which indicates the sampling result of PWM channel 2; When the sequence number is 7, the data type is INT8U, the parameter name is pwm_ch2_freq_cnt, which indicates the sampling frequency of PWM channel 2; When the sequence number is 8, the data type is INT8U, and the parameter name is pwm_ch2_duty_result, which indicates the duty cycle of PWM channel 2. When the sequence number is 9, the data type is INT16U, and the parameter name is dac_ch1_voltage, which indicates the sampling voltage of DAC channel 1; When the sequence number is 10, the data type is INT16U, the parameter name is dac_ch1_current, which indicates the current size of DAC channel 1; When the sequence number is 11, the data type is INT8U, the parameter name is dac_ch1_rd_result, which indicates the sampling result of DAC channel 1; When the sequence number is 12, the data type is INT16U, the parameter name is dac_ch2_voltage, which indicates the sampling voltage of DAC channel 2; When the sequence number is 13, the data type is INT16U, the parameter name is dac_ch2_current, which indicates the current size of DAC channel 2; When the sequence number is 14, the data type is INT8U, the parameter name is dac_ch2_rd_result, which indicates the sampling result of DAC channel 2; When the sequence number is 15, the data type is INT16U, the parameter name is dac_ch3_voltage, which indicates the sampling voltage of DAC channel 3; When the sequence number is 16, the data type is INT16U, and the parameter name is dac_ch3_current, which indicates the current size of DAC channel 3; When the sequence number is 17, the data type is INT8U, the parameter name is dac_ch3_rd_result, which indicates the sampling result of DAC channel 3; When the sequence number is 18, the data type is INT16U, and the parameter name is dac_ch4_voltage, which indicates the sampling voltage of DAC channel 4; When the sequence number is 19, the data type is INT16U, and the parameter name is dac_ch4_current, which indicates the current size of DAC channel 4; When the sequence number is 20, the data type is INT8U, the parameter name is dac_ch4_rd_result, which indicates the sampling result of DAC channel 4; When the sequence number is 21, the data type is INT16U, and the parameter name is adc_ch1_rd_cnt, which indicates the acquisition size of ADC channel 1; When the sequence number is 22, the data type is INT8U, the parameter name is adc_ch1_result, which indicates the acquisition result of ADC channel 1; When the sequence number is 23, the data type is INT16U, and the parameter name is adc_ch2_rd_cnt, which indicates the acquisition size of ADC channel 2; When the sequence number is 24, the data type is INT8U, the parameter name is adc_ch2_result, which indicates the acquisition result of ADC channel 2; When the sequence number is 25, the data type is INT16U, and the parameter name is adc_ch3_rd_cnt, which indicates the acquisition size of ADC channel 3; When the sequence number is 26, the data type is INT8U, the parameter name is adc_ch3_result, which indicates the acquisition result of ADC channel 3; When the sequence number is 27, the data type is INT16U, and the parameter name is adc_ch4_rd_cnt, which indicates the acquisition size of ADC channel 4; When the sequence number is 28, the data type is INT8U, the parameter name is adc_ch4_result, which indicates the acquisition result of ADC channel 4; The data types include INT8U and INT16U, which represent 8-bit unsigned char type and 16-bit unsigned short type respectively.
8. The vehicle-mounted platform analog quantity drive acquisition board as claimed in claim 1, characterized in that: The process of the vehicle-mounted platform analog quantity driving acquisition board to drive data externally includes the following steps: S101, the analog quantity drive acquisition board receives the analog quantity output drive data transmitted by the application; S102, determine whether the analog output drive data sent by the application is greater than 0; if so, proceed to step S103 and step S104, if not, proceed to step S107; S103, determining whether the length of the analog pulse width modulation (PWM) output channel output drive data is greater than 0, if so, proceeding to step S106, if not, proceeding to step S105; S104, determining whether the length of the output drive data of the analog voltage and current digital-to-analog converter DAC output channel is greater than 0, if so, proceeding to step S106, if not, proceeding to step S105; S105, setting the drive data of the output channels to default values, and then proceeding to step S106; S106, update and record the valid output drive data transmitted by the application, and then proceed to step S108; S107, determine whether it is within the data valid period, if so, send the valid output drive data recorded last time and then enter step S108, if not, set all the output drive data sent by the application to 0 and then enter step S108; S108, according to the driving value of each channel in the output driving data sent by multiple applications, obtain the enable of each channel according to the configuration information to integrate the analog driving data; S109, setting the master-slave relationship of the board according to the health status of the read-back message of the analog quantity drive acquisition board; S110, combining the port output states on all analog drive acquisition boards and calculating data CRC; S111, the main logic board sends the combined data to the analog drive acquisition board.
9. The vehicle-mounted platform analog quantity drive acquisition board as claimed in claim 1, characterized in that: The vehicle platform analog quantity drive acquisition board combines the acquired data and the readback data into an AIOB_READBACK message and sends it to the main logic board MPU. The main logic board MPU processes the acquired data and the readback data, including the following steps: S201, determine whether the received data type is AIOB_READBACK, if yes, proceed to step S202 and step S204; S202, process the collected data to determine whether a message from the main analog quantity drive acquisition board is received, if so, proceed to step S203; S203, the acquisition size of each ADC channel in the AIOB_READBACK message is calculated by a conversion formula to obtain the acquisition value of each ADC channel and sent to the application; S204, process the readback data, calculate the recovered voltage and current of each DAC channel in the AIOB_READBACK message through a conversion formula to obtain the recovered voltage and current values of each DAC channel, and record the recovered voltage and current values in the maintenance module of the main logic board MPU.
10. The vehicle-mounted platform analog quantity drive acquisition board as claimed in claim 9, characterized in that: Step S202 includes: determining whether the MasterOrStandby field in the AIOB_READBACK message is 1, if so, indicating that a message from the main analog quantity drive acquisition board is received, recording the AIOB_health_status status in the board message, and entering step S203; if not, only recording the AIOB_health_status status of the board message without doing other processing, wherein MasterOrStandby indicates the actual master-slave status, and AIOB_health_status indicates the health status of the AIOB; Step S203 includes: using the collected data adc_ch1_rd_cnt, adc_ch2_rd_cnt, adc_ch3_rd_cnt, and adc_ch4_rd_cnt in the AIOB_READBACK message to calculate the voltage / current value collected by each channel according to the conversion formula and provide it to the application, wherein adc_ch1_rd_cnt, adc_ch2_rd_cnt, adc_ch3_rd_cnt, and adc_ch4_rd_cnt represent the collection size of ADC channels 1, 2, 3, and 4; Step S204 includes: after receiving the AIOB_READBACK message, reading back the messages dac_ch1_voltage, dac_ch2_voltage, dac_ch3_voltage, dac_ch4_voltage, dac_ch1_current, dac_ch2_current, dac_ch3_current, dac_ch4_current, calculating the sampling voltage and current values of each channel according to the conversion formula, and recording the sampling value voltage and current through the maintenance module of the main logic board MPU; wherein, dac_ch1_voltage, dac_ch2_voltage, dac_ch3_voltage, dac_ch4_voltage represent the sampling voltages of DAC channels 1, 2, 3 and 4, and dac_ch1_current, dac_ch2_current, dac_ch3_current, dac_ch4_current represent the sampling currents of DAC channels 1, 2, 3 and 4.
Citation Information
Patent Citations
Driving and read-back inspection method and device for output board card of vehicle-mounted platform and medium
CN117873923A