WO2023122886A1 - Voltage converter control apparatus, method and system - Google Patents

Voltage converter control apparatus, method and system Download PDF

Info

Publication number
WO2023122886A1
WO2023122886A1 PCT/CN2021/141647 CN2021141647W WO2023122886A1 WO 2023122886 A1 WO2023122886 A1 WO 2023122886A1 CN 2021141647 W CN2021141647 W CN 2021141647W WO 2023122886 A1 WO2023122886 A1 WO 2023122886A1
Authority
WO
WIPO (PCT)
Prior art keywords
voltage converter
instruction
code
data
module
Prior art date
Application number
PCT/CN2021/141647
Other languages
French (fr)
Chinese (zh)
Inventor
周平
王会锦
Original Assignee
西门子股份公司
西门子(中国)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 西门子股份公司, 西门子(中国)有限公司 filed Critical 西门子股份公司
Priority to PCT/CN2021/141647 priority Critical patent/WO2023122886A1/en
Publication of WO2023122886A1 publication Critical patent/WO2023122886A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02MAPPARATUS FOR CONVERSION BETWEEN AC AND AC, BETWEEN AC AND DC, OR BETWEEN DC AND DC, AND FOR USE WITH MAINS OR SIMILAR POWER SUPPLY SYSTEMS; CONVERSION OF DC OR AC INPUT POWER INTO SURGE OUTPUT POWER; CONTROL OR REGULATION THEREOF
    • H02M7/00Conversion of ac power input into dc power output; Conversion of dc power input into ac power output
    • H02M7/42Conversion of dc power input into ac power output without possibility of reversal
    • H02M7/44Conversion of dc power input into ac power output without possibility of reversal by static converters
    • H02M7/48Conversion of dc power input into ac power output without possibility of reversal by static converters using discharge tubes with control electrode or semiconductor devices with control electrode
    • H02M7/483Converters with outputs that each can have more than two voltages levels

Definitions

  • the present application relates to the technical field of electrical engineering, in particular to a voltage converter control device, method and system.
  • AC/DC (Alternating Current/Direct Current) converters and DC/DC (Direct Current/Direct Current) converters are commonly used voltage converters, AC/DC converters are used to convert AC input to DC output, and DC/DC converters are used to convert DC In a circuit, electrical energy of one voltage value is converted into electrical energy of another voltage value.
  • the voltage converter includes multiple transistors or MOS tubes, and the control unit outputs a PWM (Pulse width modulation, pulse width modulation) signal to control the conduction time of the transistors or MOS tubes in the voltage converter, thereby changing the output voltage of the voltage converter.
  • PWM Pulse width modulation, pulse width modulation
  • the voltage converter and the control unit are integrated into one product and deployed on the industrial site.
  • the software program of the control unit needs to be reconfigured at the industrial site so that the control unit generates The corresponding PWM signal controls the voltage converter to output the required voltage or current through the PWM signal.
  • the industrial site usually requires multiple voltage converters, and it takes a lot of time to configure the software program of the control unit of each voltage converter at the industrial site, resulting in low efficiency in managing the voltage converters.
  • the voltage converter control device, method and system provided by the present application can improve the efficiency of managing the voltage converter.
  • a voltage converter control device for controlling the operation of the voltage converter.
  • the voltage converter control device includes: a transceiver module, a processing module, and a driving module;
  • the transceiver module is connected to the drive module;
  • the transceiver module is used to receive configuration instructions from an external main control module;
  • the processing module is used to configure software for generating PWM signals according to the configuration instructions
  • the operating parameters of the program are configured, and a PWM signal is generated through the software program after the configured operating parameters; the driving module is used to drive the voltage converter to run according to the PWM signal.
  • a voltage converter control system which is used to control the operation of the voltage converter, including: a main control module and the above-mentioned first aspect or any possible implementation method of the first aspect provided A voltage converter control device; the main control module is configured to send a configuration instruction to the voltage converter control device, and the configuration instruction is used to configure a software program for generating a PWM signal in the voltage converter control device The operating parameters are configured, and the PWM signal is used to control the operation of the voltage converter.
  • a voltage converter control method for controlling the operation of the voltage converter, the method comprising: receiving a configuration instruction from an external main control module; according to the configuration instruction, Configure the operating parameters of the software program used to generate the PWM signal; generate the PWM signal through the configured software program; and drive the voltage converter to run according to the PWM signal.
  • the main control module is connected to each voltage converter control device respectively, and the main control module is connected to the user terminal, and the user terminal can send instruction data to each voltage converter control device through the main control module to realize voltage conversion.
  • Configuration of the software program on the converter control device, firmware update and control of the voltage converter each voltage converter control device can send operating status information to the user terminal through the main control module to realize the feedback of the operating status of the voltage converter, so as to realize
  • the remote control of the voltage converter control device does not need to go to the industrial site to perform operations such as parameter configuration and firmware update on the voltage converter control device, so the efficiency of managing the voltage converter can be improved.
  • FIG. 1 is an internal structural diagram of a voltage converter control system according to an embodiment of the present application
  • FIG. 2 is an internal structural diagram of a voltage converter control device according to an embodiment of the present application
  • FIG. 3 is a schematic flowchart of interactive data encoding and decoding according to an embodiment of the present application
  • FIG. 4 is a schematic flowchart of interactive data encoding and decoding according to another embodiment of the present application.
  • Fig. 5 is a schematic diagram of the running state information of an embodiment of the present application.
  • Fig. 6 is a schematic diagram of an original instruction of an embodiment of the present application.
  • FIG. 7 is a flowchart of a voltage converter control method according to an embodiment of the present application.
  • Processing module 33 Driver module 311: NRZI decoder
  • the first CRC encoding unit 317 The first 4b/5b encoder 318: Preamble adding unit
  • NRZI encoder 12 The second CRC coding unit 13: The second 4b/5b encoder
  • Preamble adding unit 15 NRZI encoder 16: NRZI decoder
  • 6031 The first content field 6032: The second content field
  • Voltage Converter is a component used for voltage conversion.
  • Voltage converters can include AC/DC converters that convert AC voltage to DC voltage, and can also include AC/DC converters that convert one DC voltage value to another DC voltage value. DC/DC converter.
  • Pulse width modulation is an analog control method that modulates the bias of the transistor base or MOS transistor gate according to the change of the corresponding load to realize the change of the transistor or MOS transistor conduction time , so as to realize the change of the output of the switching regulated power supply.
  • the PWM signal controls the turn-on time of the transistor or MOS tube in the voltage converter to realize the voltage conversion function of the voltage converter.
  • the voltage converter control device used to control the operation of the voltage converter can receive the configuration instruction sent by the main control module, and use the configuration instruction to generate the PWM
  • the operating parameters of the software program of the signal are configured, and then the PWM signal is generated through the configured software program, and the voltage converter is driven to operate based on the generated PWM signal.
  • the voltage converter control device can receive configuration instructions from the main control module, when it is necessary to change the output voltage or output current of the voltage converter, the configuration command can be sent to the voltage converter control device through the main control module, so that the voltage converter control
  • the device configures the operating parameters of the software program used to generate the PWM signal based on the configuration instructions, and then generates the corresponding PWM signal to change the output voltage or output current of the voltage converter, so that there is no need to go to the industrial site to configure the voltage converter control device.
  • the efficiency of managing the voltage converter is improved.
  • FIG. 1 shows a structural block diagram of a voltage converter control system 100 according to an embodiment of the present application.
  • the voltage converter control system 100 includes a main control module 10 , a user terminal 20 and at least one voltage converter control device 30 .
  • the user terminal 20 is connected to the main control module 10, and the main control module 10 is respectively connected to each voltage converter control device 30, and each voltage converter control device 30 is connected to a voltage converter 200, and different voltage converter control devices Device 30 is connected to various voltage converters 200 .
  • the voltage converter control device 30 is used to control the connected voltage converters 200, so that the voltage converters 200 perform voltage conversion according to requirements, and output the required voltage or current.
  • the voltage converter control device 30 can obtain the operation state information of the connected voltage converter 200 , such as the output voltage, output current, temperature or waveform record of the voltage converter 200 . After acquiring the operating status information of the voltage converter 200 , the voltage converter control device 30 sends the acquired operating status information to the main control module 10 .
  • the main control module 10 can send the received running state information to the user terminal 20, and the user terminal 20 displays the running state information, so that the user can view the running state information of each voltage converter 200 through the user terminal 20, and then determine The operating state of each voltage converter 200 .
  • the user terminal 20 may send command data to the main control module 10 in response to the user's trigger, and the main control module 10 sends the received command data to the corresponding one or more voltage converter control devices 30, and the command data may be a pair of voltage converters.
  • the configuration command for configuring the software program on the converter control device 30 may also be a control command for controlling the voltage converter 200 , or an update command for updating the firmware of the software program on the voltage converter control device 30 .
  • the voltage converter control device 30 After receiving the instruction data, the voltage converter control device 30 performs corresponding operations according to the instruction data, for example, configures the software program when receiving the configuration instruction, and configures the connected voltage converter 200 when receiving the control instruction.
  • the firmware of the software program is updated when an update instruction is received.
  • the user terminal 20 provides a user interface, and the user can send instruction data to the main control module 10 through the user interface provided by the user terminal 20, and view the operation status information sent by the main control module 10 through the user interface, so that the user can check the voltage
  • the converter 200 performs control and grasps the operating state of the voltage converter 200 .
  • the user terminal 20 can communicate with the main control module 10 through a local area network. Communication between the main control module 10 and each voltage converter control device 30 can be performed through optical fibers.
  • the main control module 10 is connected to each voltage converter control device 30 through two optical fibers, one of which is used for the main control module 10 to send communication data to the voltage converter control device 30, and the other optical fiber is used for the voltage converter control device 30.
  • the converter control device 30 sends communication data to the main control module 10, so that the main control module 10 and the voltage converter control device 30 can send data to each other at the same time, ensuring the communication between the main control module 10 and the voltage converter control device 30 Timeliness.
  • the user terminal 20 is not an essential part of the voltage converter control system 100, the user can directly send instruction data to the voltage converter control device 30 through the main control module 10, and the main control module 10 can also The received running status information is displayed.
  • the main control module 10 is connected to each voltage converter control device 30 respectively, and the main control module 10 is connected to the user terminal 20, and the user terminal 20 can control each voltage converter through the main control module 10.
  • the device 30 sends instruction data to realize the configuration of the software program on the voltage converter control device 30, the firmware update and the control of the voltage converter 200, and each voltage converter control device 30 can send the operation status information to the user terminal 20 through the main control module 10 , to realize the feedback of the operating state of the voltage converter 200, so that the remote control of the voltage converter control device 30 can be realized, and it is not necessary to go to the industrial site to perform operations such as parameter configuration and firmware update of the voltage converter control device 30, so it can improve the efficiency of the voltage conversion.
  • the efficiency of the management of the device 200 is connected to each voltage converter control device 30 respectively, and the main control module 10 is connected to the user terminal 20, and the user terminal 20 can control each voltage converter through the main control module 10.
  • FIG. 2 is an internal structure diagram of a voltage converter control device according to an embodiment of the present application.
  • the voltage converter control device 30 includes a transceiver module 31 , a processing module 32 and a driving module 33 .
  • the processing module 32 is connected with the transceiver module 31 and the drive module 33 respectively, the transceiver module 31 is used to receive the configuration instruction of the main control module 10, and the processing module 32 is used to perform the operation parameters of the software program for generating the PWM signal according to the configuration instruction. configuration, and generate a PWM signal through the software program after configuring the operating parameters, and the driving module 33 is used to process the PWM signal generated by the module 32 to drive the voltage converter 200 to run.
  • a software program for generating a PWM signal is installed on the processing module 32 , and the PWM signal generated by the software program is used to control the operation of the voltage converter 200 .
  • the PWM signal generated by the software program will change accordingly, and then the driving module 33 will drive the voltage converter 200 to run according to the PWM signal, which will make the operating state of the voltage converter 200
  • Corresponding changes occur, for example, the output voltage or output current of the voltage converter 200 changes.
  • the processing module 32 can configure the operating parameters of the software program according to the configuration instructions received by the transceiver module 31, and generate a PWM signal through the software program after configuring the operating parameters
  • the driving module 33 is based on the processing module
  • the PWM signal generated by 32 drives the voltage converter 200 to run, so when it is necessary to change the operating state of the voltage converter 200, the main control module 10 can send a configuration command to the transceiver module 31, so that the processing module 32 configures the operating parameters of the software program , and then generate a corresponding PWM signal through the software program after configuring the operating parameters, so that the driving module 33 drives the voltage converter 200 to operate under the required operating state based on the PWM signal.
  • the voltage converter control device 30 receives the configuration command sent by the main control module 10 to realize remote configuration of the operating parameters of the software program without going to the industrial site to configure the software program. During configuration, configuration time can be saved, thereby improving the efficiency of managing the voltage converter 200 .
  • the transceiver module 31 receives the control instruction sent by the main control module 10, the processing module 32 generates a control signal according to the control instruction received by the transceiver module 31, and sends the generated control signal to the drive module 33,
  • the driving module 33 performs one of the following operations according to the control signal: turn on the voltage converter 200 , turn off the voltage converter 200 , put the voltage converter 200 into a sleep state, and wake up the voltage converter 200 from the sleep state.
  • the processing module 32 generates a corresponding control signal according to the control instruction received by the transceiver module 31, and sends the generated control signal to the driving module 33, and the driving module 33 controls the voltage conversion according to the received control signal
  • the controller 200 performs corresponding actions, such as turning on the voltage converter 200 , turning off the voltage converter 200 , putting the voltage converter 200 into a sleep state, or waking up the voltage converter 200 from the sleep state. Therefore, the remote control of the voltage converter 200 can be realized by the main control module 10 sending a control command to the voltage converter control device 30 , which makes the control of the voltage converter 200 more convenient and improves user experience.
  • the transceiver module 31 receives the update command sent by the main control module 10, and converts the format of the received update command, and converts the format through a UART (Universal Asynchronous Receiver/Transmitter, UART)
  • UART Universal Asynchronous Receiver/Transmitter
  • the last update instruction is sent to the processing module 32, and the processing module 32 stores the firmware file included in the update instruction received in the flash memory (Flash Memory), so as to update the firmware for the software program used to generate the PWM signal.
  • the processing module 32 may be implemented by a Microcontroller Unit (MCU).
  • MCU Microcontroller Unit
  • the transceiver module 31 converts the update instruction into the UART format, and then transmits the update instruction of the UART format to the MCU through the UART interface, and the serial communication interface (serial communication interface, SCI) in the MCU firmware
  • SCI serial communication interface
  • the firmware file that this moment update command comprises has been transferred in the random access memory (Random Access Memory, RAM) of MCU, then the flash memory interface (Flash API) in the MCU from the MCU Take out the firmware file in the RAM, and write the firmware file into the flash memory address of the MCU, so as to realize updating the firmware of the MCU.
  • the processing module 32 stores the firmware file included in the update instruction in the corresponding flash memory according to the update instruction received by the transceiver module 31 , so as to realize the firmware update of the processing module 32 .
  • the firmware update of the voltage converter control device 30 can be performed remotely, without going to the industrial site to perform firmware update on each voltage converter control device 30.
  • the firmware update of each voltage converter control device 30 can be performed in parallel, saving the time for firmware update of each voltage converter control device 30, so that the voltage conversion can be performed more conveniently.
  • the inverter control device 30 and the voltage converter 200 are managed.
  • Fig. 3 is a schematic diagram of a kind of interactive data encoding and decoding of the embodiment of the present application. As shown in Fig.
  • the transceiver module 31 at first passes the non-return-to-zero inversion coding (No Return Zero-Inverse, NRZI) decoder 311 decodes the instruction data to obtain the first instruction code, then removes the preamble in the first instruction code by the preamble detector 312, obtains the second instruction code, and then passes the first 4b/ 5b decoder 313 decodes the second instruction code to obtain the third instruction code, and then verifies that the original instruction included in the third instruction code is correct through the first cyclic redundancy check (Cyclic Redundancy Check, CRC) verification unit 314, and removes The check code in the third instruction code is used to obtain the original instruction 40 .
  • CRC Cyclic Redundancy Check
  • the NRZI decoder 311 is used to decode the instruction data through a non-return-to-zero inversion coding method to obtain the first instruction code.
  • the preamble detector 312 removes the preamble in the first instruction code to obtain the second instruction code.
  • the first 4b/5b decoder 313 is used to decode the second instruction code through the 4b/5b encoding method to obtain the third instruction code.
  • the first CRC verification unit 314 is used to calculate the check code of the original instruction in the third instruction code through the cyclic redundancy check algorithm, and verify whether the calculated verification code is the same as the check code in the third instruction code, if calculated If the check code obtained is the same as the check code included in the third instruction code, it is determined that the original instruction included in the third instruction code is correct, and then the check code in the third instruction code is removed to obtain the original instruction 40.
  • the NRZI decoder 311 decodes the instruction data to obtain a first instruction code with a length of 98 bits
  • the preamble detector 312 removes the preamble with a length of 8 bits in the first instruction code to obtain a second instruction code with a length of 90 bits
  • the first 4b The /5b decoder 313 decodes the second instruction code to obtain the third instruction code with a length of 72 bits.
  • the first CRC verification unit 314 removes the 8-bit check code in the third instruction code to obtain the original instruction 40 with a length of 64 bits.
  • the original instruction may be a configuration instruction, a control instruction or an update instruction, wherein the configuration instruction is used to configure the operating parameters of the software program in the processing module 32, the control instruction is used to control the voltage converter 200 to perform corresponding actions, and the update instruction is used to process The firmware of the software program on module 32 is updated.
  • the transceiver module 31 decodes the instruction data through the NRZI method, the 4b/5b encoding method, and the CRC algorithm to obtain the original instruction, which corresponds to the decoding process of the instruction data by the transceiver module 31.
  • the main control module 10 The original instruction is encoded by the reverse process to obtain the instruction data.
  • the main control module 10 encodes the original instruction to obtain instruction data, and after sending the instruction data to the transceiver module 31, the transceiver module 31 decodes the instruction data to obtain the original instruction.
  • the instruction decoding ensures that the transceiver module 31 can accurately obtain the original instruction to be sent by the main control module 10 , thereby ensuring the accuracy of management and control of the voltage converter control device 30 .
  • the transceiver module 31 can not only receive the instruction data sent by the main control module 10 , but also send the operation status information of the voltage converter 200 to the main control module 10 .
  • the processing module 32 obtains the operating state information of the voltage converter 200, and sends the operating state information to the transceiver module 31, wherein the operating state information may be voltage data, current data, temperature data or waveform record data of the voltage converter 200 wait.
  • the transceiver module 31 After receiving the running status information, the transceiver module 31 sends the running status information to the main control module 10 .
  • FIG. 4 is a schematic diagram of another interactive data encoding and decoding embodiment of the present application. As shown in FIG.
  • the running state information 50 is operated to obtain the check code of the running state information 50, and the obtained check code is combined with the running state information 50 to obtain the first state code, and then the first 4b/5b encoder 317 is used to convert the second A state code is encoded to obtain a second state code, and then a preamble is added to the second state code by a preamble adding unit 318 to obtain a third state code, and then the third state code is encoded by an NRZI encoder 319 to obtain Feedback information, and send the feedback information including the running status information 50 to the main control module 10 .
  • the first CRC encoding unit 316 is used to perform calculations on the running state information through a cyclic redundancy check algorithm to obtain a check code of the running state information, and to combine the running state information with the check code obtained from the operation to obtain the first state coding.
  • the first 4b/5b encoder 317 is used to encode the first state code through a 4b/5b coding method to obtain the second state code.
  • the preamble adding unit 318 is configured to add a preamble to the second state code to obtain a third state code.
  • the NRZI encoder 319 is configured to encode the third state code through a non-return-to-zero inverse coding method to obtain feedback information.
  • the running state information obtained by the processing module 32 is 64bit in length
  • the first CRC encoding unit 316 performs calculations on the running state information to obtain a check code of 8bit length, and performs a calculation of the check code of 8bit length with the running state information of 64bit length.
  • the first 4b/5b encoder 317 encodes the first state code of 72bit length to obtain the second state code of 90bit length
  • the preamble adding unit 318 is in the second state code of 90it length
  • An 8-bit preamble is added to the state code to obtain a 98-bit third state code
  • the NRZI encoder 319 is used to encode the 98-bit third state code to obtain 98-bit feedback information.
  • the transceiver module 31 can not only receive the command data of the main control module 10 to realize remote configuration, control and update of the voltage converter control device 30, but the transceiver module 31 can also send the voltage converter to the main control module 10.
  • the operating status information of the voltage converter 200 is used to realize remote monitoring of the operating status of the voltage converter 200, thereby facilitating the user to control, manage and monitor the voltage converter 200, and improving the user experience.
  • the transceiver module 31 encodes the running status information through the non-return-to-zero inverse coding method, 4b/5b coding method, and CRC algorithm to ensure that the transceiver module 31 can accurately send the running status information to the main control module 10, thereby ensuring The accuracy of the running status information received by the main control module 10 .
  • the running state information sent by the transceiver module 31 to the main control module 10 includes a data type field, a first identification field and a data content field.
  • the data type field is used to indicate that the operation state information is voltage data, current data, temperature data or waveform record data, the voltage data indicates the magnitude of the output voltage of the voltage converter 200, the current data indicates the magnitude of the output current of the voltage converter 200, and the temperature The data indicates the working temperature of the voltage converter 200 , and the waveform record data indicates the output voltage, output current and waveform changes of the temperature of each node of the voltage converter 200 .
  • the first identification field is used to indicate the voltage converter control device 30 . Since the main control module 10 is connected to a plurality of voltage converter control devices 30, each voltage converter control device 30 will send operation status information to the main control module 10, in order to facilitate the main control module 10 to distinguish between different voltage converter control devices 30.
  • the running status information includes a first identification field used to identify the voltage converter control device 30, and the running status information sent by different voltage converter control devices 30 includes different first identification fields.
  • the data content field includes the value of voltage data, current data, temperature data, or waveform record data.
  • the data type field indicates that the operation state information is voltage data
  • the data content field is the output voltage value of the voltage converter 200 .
  • the data type field indicates that the running state information is current data
  • the data content field is the output current value of the voltage converter 200 .
  • the data type field indicates that the operating status information is temperature data
  • the data content field is the temperature value of the voltage converter 200 .
  • the data type field indicates that the running state information is waveform record data
  • the data content field is the waveform record data value of the voltage converter 200 .
  • FIG. 5 is a schematic diagram of running status information according to an embodiment of the present application.
  • the length of the running status information is 64 bits, wherein bit63 to bit60 are the data type field 501 , bits59 to bit56 are the first identification field 502 , and bit55 to bit0 are the data content field 503 .
  • bit63 to bit60 When bit63 to bit60 are 0b0000, it indicates that the running state information is voltage data. When bit63 to bit60 are 0b0001, it indicates that the running status information is current data. When bit63 to bit60 are 0b0010, it indicates that the running status information is temperature information. When bit63 to bit60 are 0b0011, it indicates that the running state information is waveform record data.
  • bit59 to bit56 When bit59 to bit56 are 0b0000, the representation is the running status information sent by the first voltage converter control device. When bit59 to bit56 are 0b0001, the representation is the running status information sent by the second voltage converter control device. When bit59 to bit56 are 0b0010, the representation is the running status information sent by the third voltage converter control device.
  • bits 59 to 56 are different binary numbers, they represent operating state information sent by different voltage converter control devices.
  • bit55 to bit0 are the output voltage values of the voltage converter.
  • bit55 to bit0 is the output current value of the voltage converter.
  • bit55 to bit0 is the temperature value of the voltage converter.
  • bit55 to bit0 are the waveform record data values of the voltage converter.
  • the running status information sent by the transceiver module 31 to the main control module 10 includes a data type field, a first identification field and a data content field, the data type field indicates the status type of the running status information, and the first identification field indicates
  • the voltage converter control device that sends the operating state information, the data content field is specific state data, so the operating state of the corresponding voltage converter 200 can be accurately determined according to the operating state information, and it is convenient to monitor the operating states of multiple voltage converters 200 .
  • the transceiver module 31 can be realized by a complex programmable logic device (Complex Programmable logic device, CPLD), so that the transceiver module 31 can use the NRZI method, 4b/5b encoding method and CRC algorithm, etc. Encode and decode interaction data.
  • CPLD Complex Programmable logic device
  • the main control module 10 can send configuration instructions to the voltage converter control device 30, so that the voltage converter control device 30 configures the operating parameters of the software program used to generate the PWM signal according to the configuration instructions, and then the voltage The converter control device 30 generates a PWM signal through software configured with operating parameters, and drives the voltage converter 200 to run through the generated PWM signal.
  • the user terminal 20 sends an original instruction for any voltage converter control device 30 to the main control module 10, and the main control module 10 generates instruction data including the received original instruction, and the generated The command data is sent to the corresponding voltage converter control device 30 .
  • the original instructions include configuration instructions, control instructions or update instructions, the configuration instructions are used to configure the operating parameters of the software processing program on the voltage converter control device 30, the control instructions are used to control the voltage converter 200 to perform corresponding actions, and the update instructions are used to update The firmware of the software program on the voltage converter control device 30 is updated.
  • the main control module 10 can send original instructions to one or more voltage converter control devices 30 in response to the triggering of the user terminal 20, so as to perform software program configuration and firmware upgrade on the voltage converter control devices 30 , or control the voltage converters 200 connected to the voltage converter control device 30, so as to realize the remote management of multiple voltage converters 200, without going to the industrial site to maintain and maintain each voltage converter control device 30 separately. In this way, the efficiency of managing the voltage converter 200 can be improved, and the labor intensity and safety risks when managing the voltage converter 200 can be reduced.
  • the main control module 10 when the main control module 10 sends the original instruction to the voltage converter control device 30, it can encode the original instruction to obtain instruction data including the original instruction, and then send the instruction data to the voltage converter control device 30.
  • the converter control device 30 ensures that the original command can be sent to the voltage converter control device 30 accurately. As shown in FIG.
  • the second CRC encoding unit 12 operates the original instruction 40 to obtain the check code of the original instruction 40, and compares the obtained check code with the The original instruction 40 is combined to obtain the third instruction code, and then the second 4b/5b encoder 13 is used to encode the third instruction code to obtain the second instruction code, and then the preamble adding unit 14 is added to the second instruction code
  • the preamble is used to obtain the first instruction code, and then the first instruction code is encoded by the NRZI encoder 15 to obtain instruction data, and the instruction data including the original instruction 40 is sent to the voltage converter control device 30 .
  • the main control module 10 encodes the original instruction 40 through the CRC algorithm, the 4b/5b encoding method and the non-return-to-zero inversion encoding method, obtains the instruction data, and sends the instruction data to the voltage converter control device 30.
  • the voltage converter control device 30 decodes the instruction data through a non-return-to-zero inversion encoding method, a 4b/5b encoding method, and a CRC algorithm to obtain an original instruction.
  • the main control module 10 and the voltage converter control device 30 encode and decode the original value instruction through the corresponding encoding and decoding method, so as to ensure the accuracy of the original instruction sent to the voltage converter control device 30, thereby ensuring the accuracy of the voltage converter 200 The accuracy with which it is managed, controlled and monitored.
  • the original command sent by the main control module 10 to the voltage converter control device 30 includes a command type field, a second identification field and a command content field.
  • the command type field is used to indicate that the original command is a configuration command, a control command or an update command.
  • the second identification field is used to identify the voltage converter control device 30 , and the original instructions sent to different voltage converter control devices 30 have different values in the second identification field.
  • the command content field includes relevant data needed to execute the original command.
  • the instruction content field includes corresponding configuration information, such as the required output voltage and current of the voltage converter 200 .
  • the instruction content field is the corresponding instruction content, such as an instruction to control the voltage converter 200 to turn on, turn off, sleep or wake up.
  • the instruction content includes a firmware file of a software program on the voltage converter control device 30 .
  • Fig. 6 is a schematic diagram of an original instruction in the embodiment of the present application.
  • the length of the original instruction is 64 bits, wherein, bit63 to bit60 is the instruction type field 601 , bit59 to bit56 is the second identification field 602 , and bit55 to bit0 is the instruction content field 603 .
  • bit63 to bit60 When bit63 to bit60 are 0b0000, it indicates that the original instruction is a control instruction. When bit63 to bit60 are 0b0001, it indicates that the original command is a configuration command. When bit63 to bit60 are 0b0010, it indicates that the original instruction is an update instruction.
  • bit59 to bit56 When bit59 to bit56 are 0b0000, it indicates that the destination of the original instruction is the first voltage converter control device. When bit59 to bit56 are 0b0001, it indicates that the destination of the original instruction is the second voltage converter control device. When bit59 to bit56 are 0b0010, it indicates that the destination of the original instruction is the third voltage converter control device. By analogy, when bit59 to bit56 are different binary numbers, it represents that the original instruction is sent to different voltage converter control devices.
  • bit55 to bit24 are the first content field 6031
  • bit23 to bit0 are the second content field 6032
  • the first content field 6031 is used to store the voltage value or flash memory address
  • the second content field 6032 is used to store the current values, flash data, or simple instructions.
  • bit63 to bit60 are 0b0000
  • the second content field 6032 is the start command, close command, sleep command or wake-up command of the voltage converter
  • the first content field 6031 is empty.
  • bit63 to bit60 are 0b0001
  • the first content field 6031 is the voltage value that the voltage converter needs to output
  • the second content field 6032 is the current value that the voltage converter needs to output.
  • bit63 to bit60 are 0b0010
  • the first content field 6031 is the flash memory address of the voltage converter control device
  • the second content field 6032 is the flash memory data (firmware file) for firmware update.
  • the original instruction sent by the main control module 10 to the voltage converter control device 30 includes an instruction type field, a second identification field and an instruction content field, the instruction type field indicates the type of the instruction, and the second identification field indicates the received
  • the voltage converter control device of the original command, the command content field is the specific command data.
  • the main control module 10 can not only send instruction data to the voltage converter control device 30 , but also receive operation status information sent by the voltage converter control device 30 .
  • the main control module 10 receives the status information sent by the voltage converter control device 30, and sends the running status information to the user terminal 20, so that the user terminal 20 displays the running status information, so that it can be used to view the voltage converter 200
  • the operating state information of the voltage converter 200 determines the operating state of the voltage converter 200 .
  • the running status information includes voltage data, current data, temperature data, and waveform record data of the voltage converter 200 .
  • the main control module 10 When the main control module 10 receives the operation state information sent by the voltage converter control device 30, the process of encoding the original instruction is opposite to the process of encoding the original command. After decoding the operation state information, the main control module 10 sends the decoded operation state information to to the user terminal 20. As shown in FIG.
  • the main control module 10 after receiving the feedback data sent by the voltage converter control device 30, the main control module 10 first decodes the feedback data through the NRZI decoder 16 to obtain the third state code, and then passes the preamble detector 17 Remove the preamble in the third state code, obtain the second state code, then decode the second state code by the second 4b/5b decoder 18, obtain the first state code, then pass the second cyclic redundancy check ( After the Cyclic Redundancy Check (CRC) verification unit 19 verifies that the running state information included in the first state code is correct, the check code in the first state code is removed to obtain the running state information 50.
  • CRC Cyclic Redundancy Check
  • the NRZI decoder 16 is used to decode the feedback data through a non-return-to-zero inversion coding method to obtain the third state code.
  • the preamble detector 17 removes the preamble in the third state code to obtain the second state code.
  • the second 4b/5b decoder 18 is used to decode the second state code through the 4b/5b coding method to obtain the first state code.
  • the second CRC verification unit 19 is used to calculate the check code of the running state information in the first state code by a cyclic redundancy check algorithm, and verify whether the calculated check code is the same as the check code in the first state code, If the calculated check code is the same as the check code in the first state code, it is determined that the running state information included in the first state code is accurate, and then the check code in the first state code is removed to obtain the running state information 50.
  • the NRZI decoder 16 decodes the feedback data to obtain the third state code of 98bit length
  • the preamble detector 17 removes the preamble of 8bit length in the third state code to obtain the second state code of 90bit length
  • the second 4b The /5b decoder 18 decodes the second state code to obtain the first state code with a length of 72 bits
  • the second CRC verification unit 19 removes the check code with a length of 8 bits in the first state code to obtain the running state information 50 with a length of 64 bits.
  • the main control module 10 decodes the instruction data through the NRZI method, the 4b/5b encoding method, and the CRC algorithm to obtain the operation state information, which is similar to the process of encoding the operation state information by the voltage converter control device 30
  • the voltage converter control device 30 encodes the operating status information through a reverse process to obtain feedback data.
  • the voltage converter control device 30 encodes the operating state information to obtain feedback data, and after sending the feedback data to the main control module 10, the main control module 10 decodes the command data to obtain the operating state information, and uses the NRZI method and 4b/5b encoding method and CRC algorithm to decode the running state information to ensure that the main control module 10 can accurately obtain the running state information to be sent by the voltage converter control device 30 , thereby ensuring the accuracy of monitoring the voltage converter 200 .
  • the main control module 10 can be implemented by a system on chip (System on Chip, SOC), to ensure that the main control module 10 has sufficient data processing and forwarding capabilities, so as to be able to communicate with multiple voltages simultaneously.
  • SOC System on Chip
  • the converter control device 30 performs data interaction.
  • Fig. 7 is a flow chart of a voltage converter control method according to an embodiment of the present application. As shown in FIG. 7, a voltage converter control method 700 is used to control the operation of the voltage converter, and the method includes the following steps:
  • Step 701 receiving configuration instructions from an external main control module
  • Step 702 configure the operating parameters of the software program for generating the PWM signal according to the configuration instruction
  • Step 703 generating a PWM signal through a software program configured with operating parameters
  • Step 704 drive the voltage converter to run according to the PWM signal.
  • the hardware modules may be implemented mechanically or electrically.
  • a hardware module may include permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations.
  • the hardware modules may also include programmable logic or circuits (such as general-purpose processors or other programmable processors), which can be temporarily set by software to complete corresponding operations.
  • the specific implementation mechanical way, or a dedicated permanent circuit, or a temporary circuit

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Dc-Dc Converters (AREA)

Abstract

A voltage converter control apparatus (30), method and system (100), which are used for controlling a voltage converter (200) to operate. The voltage converter control apparatus (30) comprises: a transceiving module (31), a processing module (32) and a driving module (33), wherein the processing module (32) is respectively connected to the transceiving module (31) and the driving module (33); the transceiving module (31) is used for receiving a configuration instruction from an external master control module (10); the processing module (32) is used for configuring an operating parameter for a software program according to the configuration instruction, which software program is used for generating a PWM signal, and the processing module (32) is further used for generating a PWM signal by means of the software program for which the operating parameter has been configured; and the driving module (33) is used for driving, according to the PWM signal, the voltage converter (200) to operate. The apparatus can improve the efficiency of managing a voltage converter (200).

Description

电压转换器控制装置、方法和***Voltage converter control device, method and system 技术领域technical field
本申请涉及电气工程技术领域,尤其涉及一种电压转换器控制装置、方法和***。The present application relates to the technical field of electrical engineering, in particular to a voltage converter control device, method and system.
背景技术Background technique
AC/DC(交流/直流)转换器和DC/DC(直流/直流)转换器是常用的电压转换器,AC/DC转换器用于将交流输入转换为直流输出,DC/DC转换器用于在直流电路中将一个电压值的电能转换为另一个电压值的电能。电压转换器包括多个晶体管或MOS管,控制单元输出PWM(Pulse width modulation,脉冲宽度调制)信号对电压转换器中晶体管或MOS管的导通时间进行控制,从而改变电压转换器的输出电压。AC/DC (Alternating Current/Direct Current) converters and DC/DC (Direct Current/Direct Current) converters are commonly used voltage converters, AC/DC converters are used to convert AC input to DC output, and DC/DC converters are used to convert DC In a circuit, electrical energy of one voltage value is converted into electrical energy of another voltage value. The voltage converter includes multiple transistors or MOS tubes, and the control unit outputs a PWM (Pulse width modulation, pulse width modulation) signal to control the conduction time of the transistors or MOS tubes in the voltage converter, thereby changing the output voltage of the voltage converter.
目前,电压转换器和控制单元集成为一个产品部署在工业现场,当需要改变电压转换器的输出电压或输出电流时,需要到工业现场对控制单元的软件程序进行重新配置,以使控制单元生成对应的PWM信号,通过PWM信号控制电压转换器输出所需的电压或电流。At present, the voltage converter and the control unit are integrated into one product and deployed on the industrial site. When the output voltage or output current of the voltage converter needs to be changed, the software program of the control unit needs to be reconfigured at the industrial site so that the control unit generates The corresponding PWM signal controls the voltage converter to output the required voltage or current through the PWM signal.
然而,工业现场通常需要多个电压转换器,到工业现场配置每个电压转换器的控制单元的软件程序,需要耗费大量时间,导致对电压转换器进行管理的效率较低。However, the industrial site usually requires multiple voltage converters, and it takes a lot of time to configure the software program of the control unit of each voltage converter at the industrial site, resulting in low efficiency in managing the voltage converters.
发明内容Contents of the invention
有鉴于此,本申请提供的电压转换器控制装置、方法和***,能够提高对电压转换器进行管理的效率。In view of this, the voltage converter control device, method and system provided by the present application can improve the efficiency of managing the voltage converter.
根据本申请实施例的第一方面,提供了电压转换器控制装置,用于控制电压转换器运行,所述电压转换器控制装置包括:收发模块、处理模块和驱动模块;所述处理模块分别与所述收发模块和所述驱动模块相连接;所述收发模块,用于接收来自外部的主控模块的配置指令;所述处理模块,用于根据所述配置指令对用于生成PWM信号的软件程序的运行参数进行配置,并通过配置运行参数后的所述软件程序生成PWM信号;所述驱动模块,用于根据所述PWM信号驱动所述电压转换器运行。According to the first aspect of the embodiments of the present application, a voltage converter control device is provided for controlling the operation of the voltage converter. The voltage converter control device includes: a transceiver module, a processing module, and a driving module; The transceiver module is connected to the drive module; the transceiver module is used to receive configuration instructions from an external main control module; the processing module is used to configure software for generating PWM signals according to the configuration instructions The operating parameters of the program are configured, and a PWM signal is generated through the software program after the configured operating parameters; the driving module is used to drive the voltage converter to run according to the PWM signal.
根据本申请实施例的第二方面,提供了一种电压转换器控制***,用于控制电压转换器运行,包括:主控模块和上述第一方面或第一方面的任一可能实现方法提供的电压转换器控制装置;所述主控模块,用于向所述电压转换器控制装置发送配置指令,所述配置指令用于对所述电压转换器控制装置中用于生成PWM信号的软件程序的运行参数进行配置,所述 PWM信号用于控制所述电压转换器运行。According to the second aspect of the embodiments of the present application, a voltage converter control system is provided, which is used to control the operation of the voltage converter, including: a main control module and the above-mentioned first aspect or any possible implementation method of the first aspect provided A voltage converter control device; the main control module is configured to send a configuration instruction to the voltage converter control device, and the configuration instruction is used to configure a software program for generating a PWM signal in the voltage converter control device The operating parameters are configured, and the PWM signal is used to control the operation of the voltage converter.
根据本申请实施例的第三方面,提供了一种电压转换器控制方法,用于控制电压转换器运行,所述方法包括:接收来自外部的主控模块的配置指令;根据所述配置指令,对用于生成PWM信号的软件程序的运行参数进行配置;通过配置运行参数后的所述软件程序生成PWM信号;根据所述PWM信号驱动所述电压转换器运行。According to a third aspect of the embodiments of the present application, there is provided a voltage converter control method for controlling the operation of the voltage converter, the method comprising: receiving a configuration instruction from an external main control module; according to the configuration instruction, Configure the operating parameters of the software program used to generate the PWM signal; generate the PWM signal through the configured software program; and drive the voltage converter to run according to the PWM signal.
由上述技术方案可知,主控模块分别与各电压转换器控制装置相连接,而且主控模块与用户终端相连接,用户终端可以通过主控模块向各电压转换器控制装置发送指令数据,实现电压转换器控制装置上软件程序的配置、固件更新和电压转换器的控制,各电压转换器控制装置可以通过主控模块向用户终端发送运行状态信息,实现电压转换器运行状态的反馈,从而可以实现电压转换器控制装置的远程控制,无需到工业现场对电压转换器控制装置进行参数配置、固件更新等操作,因此可以提升对电压转换器进行管理的效率。It can be seen from the above technical solution that the main control module is connected to each voltage converter control device respectively, and the main control module is connected to the user terminal, and the user terminal can send instruction data to each voltage converter control device through the main control module to realize voltage conversion. Configuration of the software program on the converter control device, firmware update and control of the voltage converter, each voltage converter control device can send operating status information to the user terminal through the main control module to realize the feedback of the operating status of the voltage converter, so as to realize The remote control of the voltage converter control device does not need to go to the industrial site to perform operations such as parameter configuration and firmware update on the voltage converter control device, so the efficiency of managing the voltage converter can be improved.
附图说明Description of drawings
图1是本申请一个实施例的电压转换器控制***的内部结构图;FIG. 1 is an internal structural diagram of a voltage converter control system according to an embodiment of the present application;
图2是本申请一个实施例的电压转换器控制装置的内部结构图;FIG. 2 is an internal structural diagram of a voltage converter control device according to an embodiment of the present application;
图3是本申请一个实施例的交互数据编解码的流程示意图;FIG. 3 is a schematic flowchart of interactive data encoding and decoding according to an embodiment of the present application;
图4是本申请另一个实施例的交互数据编解码的流程示意图;FIG. 4 is a schematic flowchart of interactive data encoding and decoding according to another embodiment of the present application;
图5是本申请一个实施例的运行状态信息的示意图;Fig. 5 is a schematic diagram of the running state information of an embodiment of the present application;
图6是本申请一个实施例的原始指令的示意图;Fig. 6 is a schematic diagram of an original instruction of an embodiment of the present application;
图7是本申请一个实施例的电压转换器控制方法的流程图。FIG. 7 is a flowchart of a voltage converter control method according to an embodiment of the present application.
附图标记列表:List of reference signs:
100:电压转换器控制***  200:电压转换器          700:电压转换器控制方法100: Voltage Converter Control System 200: Voltage Converter 700: Voltage Converter Control Method
10:主控模块             20:用户终端             30:电压转换器控制装置10: Main control module 20: User terminal 30: Voltage converter control device
40:原始指令             50:运行状态信息         31:收发模块40: Original instruction 50: Running status information 31: Transceiver module
32:处理模块             33:驱动模块             311:NRZI解码器32: Processing module 33: Driver module 311: NRZI decoder
312:前导码检测器        313:第一4b/5b解码器     314:第一CRC验证单元312: preamble detector 313: first 4b/5b decoder 314: first CRC verification unit
316:第一CRC编码单元     317:第一4b/5b编码器     318:前导码添加单元316: The first CRC encoding unit 317: The first 4b/5b encoder 318: Preamble adding unit
319:NRZI编码器          12:第二CRC编码单元      13:第二4b/5b编码器319: NRZI encoder 12: The second CRC coding unit 13: The second 4b/5b encoder
14:前导码添加单元       15:NRZI编码器           16:NRZI解码器14: Preamble adding unit 15: NRZI encoder 16: NRZI decoder
17:前导码检测器         18:第二4b/5b解码器      19:第二CRC验证单元17: Preamble detector 18: Second 4b/5b decoder 19: Second CRC verification unit
501:数据类型字段        502:第一标识字段        503:数据内容字段501: Data type field 502: First identification field 503: Data content field
601:指令类型字段        602:第二标识字段        603:指令内容字段601: Instruction type field 602: Second identification field 603: Instruction content field
6031:第一内容字段       6032:第二内容字段6031: The first content field 6032: The second content field
701:接收来自外部的主控模块的配置指令701: Receive configuration instructions from the external main control module
702:根据配置指令,对用于生成PWM信号的软件程序的运行参数进行配置702: Configure the operating parameters of the software program used to generate the PWM signal according to the configuration instruction
703:通过配置运行参数后的软件程序生成PWM信号703: Generate a PWM signal through the software program after configuring the operating parameters
704:根据PWM信号驱动电压转换器运行704: Drive the voltage converter to run according to the PWM signal
具体实施方式Detailed ways
为了使本领域的人员更好地理解本申请实施例中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅是本申请实施例一部分实施例,而不是全部的实施例。基于本申请实施例中的实施例,本领域普通技术人员所获得的所有其他实施例,都应当属于本申请实施例保护的范围。In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the following will clearly and completely describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described The embodiments are only some of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in the embodiments of the present application shall fall within the protection scope of the embodiments of the present application.
在本文中使用以下术语。The following terms are used in this document.
电压转换器:电压转换器是用于电压转换的部件,电压转换器可以包括将交流电压转换为直流电压的AC/DC转换器,还可以包括将一个直流电压值转换为另一个直流电压值的DC/DC转换器。Voltage Converter: A voltage converter is a component used for voltage conversion. Voltage converters can include AC/DC converters that convert AC voltage to DC voltage, and can also include AC/DC converters that convert one DC voltage value to another DC voltage value. DC/DC converter.
PWM信号:脉冲宽度调制(Pulse width modulation,PWM)是一种模拟控制方式,根据相应载荷的变化来调制晶体管基极或MOS管栅极的偏置,来实现晶体管或MOS管导通时间的改变,从而实现开关稳压电源输出的改变。PWM信号控制电压转换器中晶体管或MOS管的导通时间,实现电压转换器对电压的转换功能。PWM signal: Pulse width modulation (PWM) is an analog control method that modulates the bias of the transistor base or MOS transistor gate according to the change of the corresponding load to realize the change of the transistor or MOS transistor conduction time , so as to realize the change of the output of the switching regulated power supply. The PWM signal controls the turn-on time of the transistor or MOS tube in the voltage converter to realize the voltage conversion function of the voltage converter.
在本申请实施例中,为了提高对电压转换器进行管理的效率,用于控制电压转换器运行的电压转换器控制装置可以接收主控模块发送的配置指令,并根据配置指令对用于生成PWM信号的软件程序的运行参数进行配置,进而通过配置运行参数后的软件程序生成PWM信号,并基于生成的PWM信号驱动电压转换器运行。由于电压转换器控制装置可以接收主控模块的配置指令,所以在需要改变电压转换器的输出电压或输出电流时,可以通过主控模块向电压转换器控制装置发送配置指令,使电压转换器控制装置基于配置指令对用于生成PWM信号的软件程序进行运行参数配置,进而生成相应的PWM信号来改变电压转换器的输出电压或输出电流,从而无需到工业现场对电压转换器控制装置进行配置,提高了对电压转换器进行管理的效率。In the embodiment of the present application, in order to improve the efficiency of managing the voltage converter, the voltage converter control device used to control the operation of the voltage converter can receive the configuration instruction sent by the main control module, and use the configuration instruction to generate the PWM The operating parameters of the software program of the signal are configured, and then the PWM signal is generated through the configured software program, and the voltage converter is driven to operate based on the generated PWM signal. Since the voltage converter control device can receive configuration instructions from the main control module, when it is necessary to change the output voltage or output current of the voltage converter, the configuration command can be sent to the voltage converter control device through the main control module, so that the voltage converter control The device configures the operating parameters of the software program used to generate the PWM signal based on the configuration instructions, and then generates the corresponding PWM signal to change the output voltage or output current of the voltage converter, so that there is no need to go to the industrial site to configure the voltage converter control device. The efficiency of managing the voltage converter is improved.
电压转换器控制***Voltage Converter Control System
图1示出本申请一个实施例的电压转换器控制***100内部的结构框图。如图1所示,电压转换器控制***100包括主控模块10、用户终端20和至少一个电压转换器控制装置30。用户终端20与主控模块10相连接,主控模块10分别与各电压转换器控制装置30相连接,每个电压转换器控制装置30与一个电压转换器200相连接,不同的电压转换器控制装置30与不同的电压转换器200相连接。FIG. 1 shows a structural block diagram of a voltage converter control system 100 according to an embodiment of the present application. As shown in FIG. 1 , the voltage converter control system 100 includes a main control module 10 , a user terminal 20 and at least one voltage converter control device 30 . The user terminal 20 is connected to the main control module 10, and the main control module 10 is respectively connected to each voltage converter control device 30, and each voltage converter control device 30 is connected to a voltage converter 200, and different voltage converter control devices Device 30 is connected to various voltage converters 200 .
电压转换器控制装置30用于对相连接的电压转换器200进行控制,使电压转换器200按照需求进行电压转换,输出所需的电压或电流。The voltage converter control device 30 is used to control the connected voltage converters 200, so that the voltage converters 200 perform voltage conversion according to requirements, and output the required voltage or current.
电压转换器控制装置30可以获取相连接电压转换器200的运行状态信息,比如电压转换器200的输出电压、输出电流、温度或波形记录等。电压转换器控制装置30在获取到电压转换器200的运行状态信息后,将所获取到的运行状态信息发送给主控模块10。主控模块10可以将接收到的运行状态信息发送给用户终端20,由用户终端20对运行状态信息进行展示,以使用户能够通过用户终端20查看各电压转换器200的运行状态信息,进而确定各电压转换器200的运行状态。The voltage converter control device 30 can obtain the operation state information of the connected voltage converter 200 , such as the output voltage, output current, temperature or waveform record of the voltage converter 200 . After acquiring the operating status information of the voltage converter 200 , the voltage converter control device 30 sends the acquired operating status information to the main control module 10 . The main control module 10 can send the received running state information to the user terminal 20, and the user terminal 20 displays the running state information, so that the user can view the running state information of each voltage converter 200 through the user terminal 20, and then determine The operating state of each voltage converter 200 .
用户终端20可以响应于用户的触发,向主控模块10发送指令数据,主控模块10将接收到的指令数据发送给相应的一个或多个电压转换器控制装置30,指令数据可以是对电压转换器控制装置30上软件程序进行配置的配置指令,还可以是对电压转换器200进行控制的控制指令,或者还是可以对电压转换器控制装置30上软件程序进行固件更新的更新指令。电压转换器控制装置30在接收到指令数据后,根据指令数据执行相应的操作,比如,在接收到配置指令时对软件程序进行配置,在接收到控制指令时对相连接的电压转换器200进行相应的控制,在接收到更新指令时对软件程序的固件进行更新。The user terminal 20 may send command data to the main control module 10 in response to the user's trigger, and the main control module 10 sends the received command data to the corresponding one or more voltage converter control devices 30, and the command data may be a pair of voltage converters. The configuration command for configuring the software program on the converter control device 30 may also be a control command for controlling the voltage converter 200 , or an update command for updating the firmware of the software program on the voltage converter control device 30 . After receiving the instruction data, the voltage converter control device 30 performs corresponding operations according to the instruction data, for example, configures the software program when receiving the configuration instruction, and configures the connected voltage converter 200 when receiving the control instruction. Correspondingly, the firmware of the software program is updated when an update instruction is received.
在一些例子中,用户终端20提供用户界面,用户可通过用户终端20提供的用户界面向主控模块10发送指令数据,并通过用户界面查看主控模块10发送的运行状态信息,便于用户对电压转换器200进行控制,以及掌握电压转换器200的运行状态。In some examples, the user terminal 20 provides a user interface, and the user can send instruction data to the main control module 10 through the user interface provided by the user terminal 20, and view the operation status information sent by the main control module 10 through the user interface, so that the user can check the voltage The converter 200 performs control and grasps the operating state of the voltage converter 200 .
用户终端20与主控模块10可以通过局域网进行通信。主控模块10与每个电压转换器控制装置30之间可以通过光纤进行通信。在一些例子中,主控模块10与每个电压转换器控制装置30通过两条光纤相连接,其中一条光纤用于主控模块10向电压转换器控制装置30发送通信数据,另一条光纤用户电压转换器控制装置30向主控模块10发送通信数据,使得主控模块10与电压转换器控制装置30能够同时向对方发送数据,保证主控模块10与电压转换器控制装置30之间进行通信的时效性。The user terminal 20 can communicate with the main control module 10 through a local area network. Communication between the main control module 10 and each voltage converter control device 30 can be performed through optical fibers. In some examples, the main control module 10 is connected to each voltage converter control device 30 through two optical fibers, one of which is used for the main control module 10 to send communication data to the voltage converter control device 30, and the other optical fiber is used for the voltage converter control device 30. The converter control device 30 sends communication data to the main control module 10, so that the main control module 10 and the voltage converter control device 30 can send data to each other at the same time, ensuring the communication between the main control module 10 and the voltage converter control device 30 Timeliness.
需要说明的是,在一些实施例中用户终端20并非电压转换器控制***100的必要部分,用户可以直接通过主控模块10向电压转换器控制装置30发送指令数据,主控模块10也可以 对接收到的运行状态信息进行展示。It should be noted that, in some embodiments, the user terminal 20 is not an essential part of the voltage converter control system 100, the user can directly send instruction data to the voltage converter control device 30 through the main control module 10, and the main control module 10 can also The received running status information is displayed.
在本申请实施例中,主控模块10分别与各电压转换器控制装置30相连接,而且主控模块10与用户终端20相连接,用户终端20可以通过主控模块10向各电压转换器控制装置30发送指令数据,实现电压转换器控制装置30上软件程序的配置、固件更新和电压转换器200的控制,各电压转换器控制装置30可以通过主控模块10向用户终端20发送运行状态信息,实现电压转换器200运行状态的反馈,从而可以实现电压转换器控制装置30的远程控制,无需到工业现场对电压转换器控制装置30进行参数配置、固件更新等操作,因此可以提升对电压转换器200进行管理的效率。In the embodiment of the present application, the main control module 10 is connected to each voltage converter control device 30 respectively, and the main control module 10 is connected to the user terminal 20, and the user terminal 20 can control each voltage converter through the main control module 10. The device 30 sends instruction data to realize the configuration of the software program on the voltage converter control device 30, the firmware update and the control of the voltage converter 200, and each voltage converter control device 30 can send the operation status information to the user terminal 20 through the main control module 10 , to realize the feedback of the operating state of the voltage converter 200, so that the remote control of the voltage converter control device 30 can be realized, and it is not necessary to go to the industrial site to perform operations such as parameter configuration and firmware update of the voltage converter control device 30, so it can improve the efficiency of the voltage conversion. The efficiency of the management of the device 200.
电压转换器控制装置的内部结构Internal structure of the voltage converter control unit
图2是本申请实施例的一种电压转换器控制装置的内部结构图。如图2所述,电压转换器控制装置30包括收发模块31、处理模块32和驱动模块33。处理模块32分别与收发模块31和驱动模块33相连接,收发模块31用于接收主控模块10的配置指令,处理模块32用于根据配置指令对用于生成PWM信号的软件程序的运行参数进行配置,并通过配置运行参数后的软件程序生成PWM信号,驱动模块33用于处理模块32生成的PWM信号,驱动电压转换器200运行。FIG. 2 is an internal structure diagram of a voltage converter control device according to an embodiment of the present application. As shown in FIG. 2 , the voltage converter control device 30 includes a transceiver module 31 , a processing module 32 and a driving module 33 . The processing module 32 is connected with the transceiver module 31 and the drive module 33 respectively, the transceiver module 31 is used to receive the configuration instruction of the main control module 10, and the processing module 32 is used to perform the operation parameters of the software program for generating the PWM signal according to the configuration instruction. configuration, and generate a PWM signal through the software program after configuring the operating parameters, and the driving module 33 is used to process the PWM signal generated by the module 32 to drive the voltage converter 200 to run.
处理模块32上安装有用于生成PWM信号的软件程序,该软件程序生成的PWM信号用于控制电压转换器200的运行。当处理模块32上软件程序的运行参数改变时,该软件程序所生成的PWM信号会发生相应的改变,进而驱动模块33根据PWM信号驱动电压转换器200运行,会使电压转换器200的运行状态发生相应的改变,比如会使电压转换器200的输出电压或输出电流发生改变。A software program for generating a PWM signal is installed on the processing module 32 , and the PWM signal generated by the software program is used to control the operation of the voltage converter 200 . When the operating parameters of the software program on the processing module 32 change, the PWM signal generated by the software program will change accordingly, and then the driving module 33 will drive the voltage converter 200 to run according to the PWM signal, which will make the operating state of the voltage converter 200 Corresponding changes occur, for example, the output voltage or output current of the voltage converter 200 changes.
在本申请实施例中,由于处理模块32可以根据收发模块31接收到的配置指令对软件程序的运行参数进行配置,并通过配置运行参数后的软件程序生成PWM信号,而驱动模块33基于处理模块32生成的PWM信号驱动电压转换器200运行,所以需要改变电压转换器200的运行状态时,可以通过主控模块10向收发模块31发送配置指令,使处理模块32对软件程序的运行参数进行配置,进而通过配置运行参数后的软件程序生成相应的PWM信号,使驱动模块33基于PWM信号驱动电压转换器200在所需的运行状态下运行。可见,电压转换器控制装置30接收主控模块10发送的配置指令,实现远程配置软件程序的运行参数,而无需到工业现场进行软件程序的配置,在需要对较多电压转换器200的运行状态进行配置时,可以节省配置时间,从而提高对电压转换器200进行管理的效率。In the embodiment of the present application, since the processing module 32 can configure the operating parameters of the software program according to the configuration instructions received by the transceiver module 31, and generate a PWM signal through the software program after configuring the operating parameters, the driving module 33 is based on the processing module The PWM signal generated by 32 drives the voltage converter 200 to run, so when it is necessary to change the operating state of the voltage converter 200, the main control module 10 can send a configuration command to the transceiver module 31, so that the processing module 32 configures the operating parameters of the software program , and then generate a corresponding PWM signal through the software program after configuring the operating parameters, so that the driving module 33 drives the voltage converter 200 to operate under the required operating state based on the PWM signal. It can be seen that the voltage converter control device 30 receives the configuration command sent by the main control module 10 to realize remote configuration of the operating parameters of the software program without going to the industrial site to configure the software program. During configuration, configuration time can be saved, thereby improving the efficiency of managing the voltage converter 200 .
在一种可能的实现方式中,收发模块31接收主控模块10发送的控制指令,处理模块32根据收发模块31接收到的控制指令生成控制信号,并将生成的控制信号发送给驱动模块33, 驱动模块33根据控制信号执行如下操作之一:开启电压转换器200、关闭电压转换器200、使电压转换器200进入休眠状态和将电压转换器200从休眠状态唤醒。In a possible implementation, the transceiver module 31 receives the control instruction sent by the main control module 10, the processing module 32 generates a control signal according to the control instruction received by the transceiver module 31, and sends the generated control signal to the drive module 33, The driving module 33 performs one of the following operations according to the control signal: turn on the voltage converter 200 , turn off the voltage converter 200 , put the voltage converter 200 into a sleep state, and wake up the voltage converter 200 from the sleep state.
在本申请实施例中,处理模块32根据收发模块31接收到的控制指令,生成相应的控制信号,并将生成的控制信号发送给驱动模块33,驱动模块33根据接收到的控制信号控制电压转换器200执行相应的动作,比如将电压转换器200开启、将电压转换器200关闭、使电压转换器200进入休眠状态或将电压转换器200从休眠状态唤醒等。因此,通过主控模块10向电压转换器控制装置30发送控制指令,可以实现电压转换器200的远程控制,使电压转换器200的控制更加便捷,提高用户的使用体验。In the embodiment of the present application, the processing module 32 generates a corresponding control signal according to the control instruction received by the transceiver module 31, and sends the generated control signal to the driving module 33, and the driving module 33 controls the voltage conversion according to the received control signal The controller 200 performs corresponding actions, such as turning on the voltage converter 200 , turning off the voltage converter 200 , putting the voltage converter 200 into a sleep state, or waking up the voltage converter 200 from the sleep state. Therefore, the remote control of the voltage converter 200 can be realized by the main control module 10 sending a control command to the voltage converter control device 30 , which makes the control of the voltage converter 200 more convenient and improves user experience.
在一种可能的实现方式中,收发模块31接收主控模块10发送的更新指令,并对接收到的更新指令进行格式转换,通过异步收发传输器(Universal Asynchronous Receiver/Transmitter,UART)将格式转换后的更新指令发送给处理模块32,处理模块32将接收到的更新指令包括的固件文件存储到闪存(Flash Memory)中,以对用于生成PWM信号的软件程序进行固件更新。In a possible implementation, the transceiver module 31 receives the update command sent by the main control module 10, and converts the format of the received update command, and converts the format through a UART (Universal Asynchronous Receiver/Transmitter, UART) The last update instruction is sent to the processing module 32, and the processing module 32 stores the firmware file included in the update instruction received in the flash memory (Flash Memory), so as to update the firmware for the software program used to generate the PWM signal.
可选地,处理模块32可以通过微控制单元(Microcontroller Unit,MCU)实现。收发模块31在接收到更新指令后,收发模块31将更新指令转换为UART格式,然后通过UART接口将UART格式的更新指令传输到MCU,MCU固件中的串行通信接口(serial communication interface,SCI)从收发模块31接收UART格式的更新指令,此时更新指令包括的固件文件已传输到MCU的随机存取存储器(Random Access Memory,RAM)中,然后MCU中的闪存接口(Flash API)从MCU的RAM中取出固件文件,并将固件文件写入MCU的闪存地址,实现对MCU的固件进行更新。Optionally, the processing module 32 may be implemented by a Microcontroller Unit (MCU). After the transceiver module 31 receives the update instruction, the transceiver module 31 converts the update instruction into the UART format, and then transmits the update instruction of the UART format to the MCU through the UART interface, and the serial communication interface (serial communication interface, SCI) in the MCU firmware Receive the update command of UART format from transceiver module 31, the firmware file that this moment update command comprises has been transferred in the random access memory (Random Access Memory, RAM) of MCU, then the flash memory interface (Flash API) in the MCU from the MCU Take out the firmware file in the RAM, and write the firmware file into the flash memory address of the MCU, so as to realize updating the firmware of the MCU.
在本申请实施例中,处理模块32根据收发模块31接收到的更新指令,将更新指令包括的固件文件存储到相应的闪存中,实现处理模块32的固件更新。通过主控模块10向电压转换器控制装置30发送更新指令,可以远程对电压转换器控制装置30进行固件更新,而无需到工业现场对各电压转换器控制装置30进行固件更新,在需要进行固件更新的电压转换器控制装置30的数量较多时,可以并行对各电压转换器控制装置30进行固件更新,节省对各电压转换器控制装置30进行固件更新的时间,从而可以更加方便得对电压转换器控制装置30和电压转换器200进行管理。In the embodiment of the present application, the processing module 32 stores the firmware file included in the update instruction in the corresponding flash memory according to the update instruction received by the transceiver module 31 , so as to realize the firmware update of the processing module 32 . By sending an update instruction to the voltage converter control device 30 through the main control module 10, the firmware update of the voltage converter control device 30 can be performed remotely, without going to the industrial site to perform firmware update on each voltage converter control device 30. When the number of voltage converter control devices 30 to be updated is large, the firmware update of each voltage converter control device 30 can be performed in parallel, saving the time for firmware update of each voltage converter control device 30, so that the voltage conversion can be performed more conveniently. The inverter control device 30 and the voltage converter 200 are managed.
在一种可能的实现方式中,收发模块31与主控模块10进行数据交互时,可以对交互数据进行多重编码,以保证交互数据的准确性。图3是本申请实施例的一种交互数据编解码的示意图,如图3所示,收发模块31在接收到主控模块10发送的指令数据后,首先通过非归零反相编码(No Return Zero-Inverse,NRZI)解码器311对指令数据进行解码,获得第一指 令编码,然后通过前导码检测器312去除第一指令编码中的前导码,获得第二指令编码,然后通过第一4b/5b解码器313对第二指令编码进行解码,获得第三指令编码,然后通过第一循环冗余校验(Cyclic Redundancy Check,CRC)验证单元314验证第三指令编码包括的原始指令准确后,去除第三指令编码中的校验码,获得原始指令40。In a possible implementation manner, when the transceiver module 31 performs data interaction with the main control module 10, multiple encodings may be performed on the interaction data to ensure the accuracy of the interaction data. Fig. 3 is a schematic diagram of a kind of interactive data encoding and decoding of the embodiment of the present application. As shown in Fig. 3, after receiving the command data sent by the main control module 10, the transceiver module 31 at first passes the non-return-to-zero inversion coding (No Return Zero-Inverse, NRZI) decoder 311 decodes the instruction data to obtain the first instruction code, then removes the preamble in the first instruction code by the preamble detector 312, obtains the second instruction code, and then passes the first 4b/ 5b decoder 313 decodes the second instruction code to obtain the third instruction code, and then verifies that the original instruction included in the third instruction code is correct through the first cyclic redundancy check (Cyclic Redundancy Check, CRC) verification unit 314, and removes The check code in the third instruction code is used to obtain the original instruction 40 .
NRZI解码器311用于通过非归零反相编码方法对指令数据进行解码,获得第一指令编码。前导码检测器312去除第一指令编码中的前导码,获得第二指令编码。第一4b/5b解码器313用于通过4b/5b编码方法对第二指令编码进行解码,获得第三指令编码。第一CRC验证单元314用于通过循环冗余校验算法计算第三指令编码中原始指令的校验码,并验证计算出的验证码是否与第三指令编码中的校验码相同,若计算出的校验码与第三指令编码包括的校验码相同,则确定第三指令编码包括的原始指令是准确的,进而去除第三指令编码中的校验码,获得原始指令40。The NRZI decoder 311 is used to decode the instruction data through a non-return-to-zero inversion coding method to obtain the first instruction code. The preamble detector 312 removes the preamble in the first instruction code to obtain the second instruction code. The first 4b/5b decoder 313 is used to decode the second instruction code through the 4b/5b encoding method to obtain the third instruction code. The first CRC verification unit 314 is used to calculate the check code of the original instruction in the third instruction code through the cyclic redundancy check algorithm, and verify whether the calculated verification code is the same as the check code in the third instruction code, if calculated If the check code obtained is the same as the check code included in the third instruction code, it is determined that the original instruction included in the third instruction code is correct, and then the check code in the third instruction code is removed to obtain the original instruction 40.
例如,NRZI解码器311对指令数据进行解码,获得98bit长度的第一指令编码,前导码检测器312去除第一指令编码中8bit长度的前导码,获得90bit长度的第二指令编码,第一4b/5b解码器313对第二指令编码进行解码,获得72bit长度的第三指令编码,第一CRC验证单元314去除第三指令编码中8bit长度的校验码,获得64bit长度的原始指令40。For example, the NRZI decoder 311 decodes the instruction data to obtain a first instruction code with a length of 98 bits, and the preamble detector 312 removes the preamble with a length of 8 bits in the first instruction code to obtain a second instruction code with a length of 90 bits, the first 4b The /5b decoder 313 decodes the second instruction code to obtain the third instruction code with a length of 72 bits. The first CRC verification unit 314 removes the 8-bit check code in the third instruction code to obtain the original instruction 40 with a length of 64 bits.
原始指令可以是配置指令、控制指令或更新指令,其中,配置指令用于配置处理模块32中软件程序的运行参数,控制指令用于控制电压转换器200执行相应的动作,更新指令用于对处理模块32上软件程序的固件进行更新。The original instruction may be a configuration instruction, a control instruction or an update instruction, wherein the configuration instruction is used to configure the operating parameters of the software program in the processing module 32, the control instruction is used to control the voltage converter 200 to perform corresponding actions, and the update instruction is used to process The firmware of the software program on module 32 is updated.
在本申请实施例中,收发模块31通过NRZI方法、4b/5b编码方法和CRC算法等对指令数据进行解码,获得原始指令,与收发模块31对指令数据进行解码过程相对应,主控模块10通过反向的过程对原始指令进行编码,以获得指令数据。主控模块10对原始指令进行编码获得指令数据,将指令数据发送给收发模块31后,收发模块31对指令数据进行解码获得原始指令,通过NRZI方法、4b/5b编码方法和CRC算法等对原始指令解码,保证收发模块31能够准确获得主控模块10所要发送的原始指令,从而保证对电压转换器控制装置30进行管理和控制的准确性。In the embodiment of the present application, the transceiver module 31 decodes the instruction data through the NRZI method, the 4b/5b encoding method, and the CRC algorithm to obtain the original instruction, which corresponds to the decoding process of the instruction data by the transceiver module 31. The main control module 10 The original instruction is encoded by the reverse process to obtain the instruction data. The main control module 10 encodes the original instruction to obtain instruction data, and after sending the instruction data to the transceiver module 31, the transceiver module 31 decodes the instruction data to obtain the original instruction. The instruction decoding ensures that the transceiver module 31 can accurately obtain the original instruction to be sent by the main control module 10 , thereby ensuring the accuracy of management and control of the voltage converter control device 30 .
在一种可能的实现方式中,收发模块31不仅可以接收主控模块10发送的指令数据,还可以向主控模块10发送电压转换器200的运行状态信息。具体地,处理模块32获取电压转换器200的运行状态信息,并将运行状态信息发送给收发模块31,其中运行状态信息可以是电压转换器200的电压数据、电流数据、温度数据或波形记录数据等。收发模块31在接收到运行状态信息后,将运行状态信息发送给主控模块10。In a possible implementation manner, the transceiver module 31 can not only receive the instruction data sent by the main control module 10 , but also send the operation status information of the voltage converter 200 to the main control module 10 . Specifically, the processing module 32 obtains the operating state information of the voltage converter 200, and sends the operating state information to the transceiver module 31, wherein the operating state information may be voltage data, current data, temperature data or waveform record data of the voltage converter 200 wait. After receiving the running status information, the transceiver module 31 sends the running status information to the main control module 10 .
收发模块31在向主控模块10发送运行状态信息时,与对指令数据进行解码的过程相反, 收发模块31对运行状态信息进行编码后发送给主控模块10。图4是本申请实施例的另一种交互数据编解码的示意图,如图4所示,收发模块31在接收到处理模块32发送的运行状态信息50后,首先通过第一CRC编码单元316对运行状态信息50进行运算,获得运行状态信息50的校验码,并将获得的校验码与运行状态信息50进行组合,获得第一状态编码,然后通过第一4b/5b编码器317对第一状态编码进行编码,获得第二状态编码,然后通过前导码添加单元318在第二状态编码中添加前导码,获得第三状态编码,然后通过NRZI编码器319对第三状态编码进行编码,获得反馈信息,并将包括运行状态信息50的反馈信息发送给主控模块10。When the transceiver module 31 sends the running status information to the main control module 10 , contrary to the process of decoding the instruction data, the transceiver module 31 encodes the running status information and sends it to the main control module 10 . FIG. 4 is a schematic diagram of another interactive data encoding and decoding embodiment of the present application. As shown in FIG. The running state information 50 is operated to obtain the check code of the running state information 50, and the obtained check code is combined with the running state information 50 to obtain the first state code, and then the first 4b/5b encoder 317 is used to convert the second A state code is encoded to obtain a second state code, and then a preamble is added to the second state code by a preamble adding unit 318 to obtain a third state code, and then the third state code is encoded by an NRZI encoder 319 to obtain Feedback information, and send the feedback information including the running status information 50 to the main control module 10 .
第一CRC编码单元316用于通过循环冗余校验算法对运行状态信息进行运算,获得运行状态信息的校验码,并对将运行状态信息与运算获得的校验码组合,获得第一状态编码。第一4b/5b编码器317用于通过4b/5b编码方法对第一状态编码进行编码,获得第二状态编码。前导码添加单元318用于在第二状态编码中添加前导码,获得第三状态编码。NRZI编码器319用于通过非归零反相编码方法对第三状态编码进行编码,获得反馈信息。The first CRC encoding unit 316 is used to perform calculations on the running state information through a cyclic redundancy check algorithm to obtain a check code of the running state information, and to combine the running state information with the check code obtained from the operation to obtain the first state coding. The first 4b/5b encoder 317 is used to encode the first state code through a 4b/5b coding method to obtain the second state code. The preamble adding unit 318 is configured to add a preamble to the second state code to obtain a third state code. The NRZI encoder 319 is configured to encode the third state code through a non-return-to-zero inverse coding method to obtain feedback information.
例如,处理模块32获得的运行状态信息为64bit长度,第一CRC编码单元316对运行状态信息进行运算,获得8bit长度的校验码,将8bit长度的校验码与64bit长度的运行状态信息进行组合,获得72bit长度的第一状态编码,第一4b/5b编码器317对72bit长度的第一状态编码进行编码,获得90bit长度的第二状态编码,前导码添加单元318在90it长度的第二状态编码中添加8bit长度的前导码,获得98bit长度的第三状态编码,通过NRZI编码器319对98bit长度的第三状态编码进行编码,获得98bit长度的反馈信息。For example, the running state information obtained by the processing module 32 is 64bit in length, and the first CRC encoding unit 316 performs calculations on the running state information to obtain a check code of 8bit length, and performs a calculation of the check code of 8bit length with the running state information of 64bit length. Combining to obtain the first state code of 72bit length, the first 4b/5b encoder 317 encodes the first state code of 72bit length to obtain the second state code of 90bit length, the preamble adding unit 318 is in the second state code of 90it length An 8-bit preamble is added to the state code to obtain a 98-bit third state code, and the NRZI encoder 319 is used to encode the 98-bit third state code to obtain 98-bit feedback information.
在本申请实施例中,收发模块31不仅可以接收主控模块10的指令数据,以实现远程配置、控制和更新电压转换器控制装置30,收发模块31还可以向主控模块10发送电压转换器200的运行状态信息,以实现远程监控电压转换器200的运行状态,从而方便用户对电压转换器200进行控制、管理和监测,提升用户的使用体验。另外,收发模块31通过非归零反相编码方法、4b/5b编码方法和CRC算法等对运行状态信息进行编码,保证收发模块31能够准确地将运行状态信息发送给主控模块10,从而保证主控模块10所接收到运行状态信息的准确性。In the embodiment of the present application, the transceiver module 31 can not only receive the command data of the main control module 10 to realize remote configuration, control and update of the voltage converter control device 30, but the transceiver module 31 can also send the voltage converter to the main control module 10. The operating status information of the voltage converter 200 is used to realize remote monitoring of the operating status of the voltage converter 200, thereby facilitating the user to control, manage and monitor the voltage converter 200, and improving the user experience. In addition, the transceiver module 31 encodes the running status information through the non-return-to-zero inverse coding method, 4b/5b coding method, and CRC algorithm to ensure that the transceiver module 31 can accurately send the running status information to the main control module 10, thereby ensuring The accuracy of the running status information received by the main control module 10 .
在一种可能的实现方式中,收发模块31发送给主控模块10的运行状态信息包括数据类型字段、第一标识字段和数据内容字段。In a possible implementation manner, the running state information sent by the transceiver module 31 to the main control module 10 includes a data type field, a first identification field and a data content field.
数据类型字段用于指示运行状态信息为电压数据、电流数据、温度数据或波形记录数据,电压数据指示电压转换器200所输出电压的大小,电流数据指示电压转换器200所输出电流的大小,温度数据指示电压转换器200的工作温度,波形记录数据指示电压转换器200各节 点的输出电压、输出电流和温度的波形变化。The data type field is used to indicate that the operation state information is voltage data, current data, temperature data or waveform record data, the voltage data indicates the magnitude of the output voltage of the voltage converter 200, the current data indicates the magnitude of the output current of the voltage converter 200, and the temperature The data indicates the working temperature of the voltage converter 200 , and the waveform record data indicates the output voltage, output current and waveform changes of the temperature of each node of the voltage converter 200 .
第一标识字段用于指示电压转换器控制装置30。由于主控模块10与多个电压转换器控制装置30相连接,各电压转换器控制装置30都会向主控模块10发送运行状态信息,为了便于主控模块10区分不同电压转换器控制装置30发送的运行状态信息,运行状态信息包括用于标识电压转换器控制装置30的第一标识字段,不同的电压转换器控制装置30所发送的运行状态信息包括不同的第一标识字段。The first identification field is used to indicate the voltage converter control device 30 . Since the main control module 10 is connected to a plurality of voltage converter control devices 30, each voltage converter control device 30 will send operation status information to the main control module 10, in order to facilitate the main control module 10 to distinguish between different voltage converter control devices 30. The running status information includes a first identification field used to identify the voltage converter control device 30, and the running status information sent by different voltage converter control devices 30 includes different first identification fields.
数据内容字段包括电压数据、电流数据、温度数据或波形记录数据的数值。在数据类型字段指示运行状态信息为电压数据时,数据内容字段为电压转换器200的输出电压值。在数据类型字段指示运行状态信息为电流数据时,数据内容字段为电压转换器200的输出电流值。在数据类型字段指示运行状态信息为温度数据时,数据内容字段为电压转换器200的温度值。在数据类型字段指示运行状态信息为波形记录数据时,数据内容字段为电压转换器200的波形记录数据值。The data content field includes the value of voltage data, current data, temperature data, or waveform record data. When the data type field indicates that the operation state information is voltage data, the data content field is the output voltage value of the voltage converter 200 . When the data type field indicates that the running state information is current data, the data content field is the output current value of the voltage converter 200 . When the data type field indicates that the operating status information is temperature data, the data content field is the temperature value of the voltage converter 200 . When the data type field indicates that the running state information is waveform record data, the data content field is the waveform record data value of the voltage converter 200 .
图5是本申请实施例的一种运行状态信息的示意图。如图5所示,运行状态信息的长度为64bit,其中,bit63至bit60为数据类型字段501,bit59至bit56为第一标识字段502,bit55至bit0为数据内容字段503。FIG. 5 is a schematic diagram of running status information according to an embodiment of the present application. As shown in FIG. 5 , the length of the running status information is 64 bits, wherein bit63 to bit60 are the data type field 501 , bits59 to bit56 are the first identification field 502 , and bit55 to bit0 are the data content field 503 .
当bit63至bit60为0b0000时,表征该运行状态信息为电压数据。当bit63至bit60为0b0001时,表征该运行状态信息为电流数据。当bit63至bit60为0b0010时,表征该运行状态信息为温度信息。当bit63至bit60为0b0011时,表征该运行状态信息为波形记录数据。When bit63 to bit60 are 0b0000, it indicates that the running state information is voltage data. When bit63 to bit60 are 0b0001, it indicates that the running status information is current data. When bit63 to bit60 are 0b0010, it indicates that the running status information is temperature information. When bit63 to bit60 are 0b0011, it indicates that the running state information is waveform record data.
当bit59至bit56为0b0000时,表征是由第1个电压转换器控制装置发送的运行状态信息。当bit59至bit56为0b0001时,表征是由第2个电压转换器控制装置发送的运行状态信息。当bit59至bit56为0b0010时,表征是由第3个电压转换器控制装置发送的运行状态信息。以此类推,bit59至bit56为不同的二进制数时,表征由不同的电压转换器控制装置发送的运行状态信息。When bit59 to bit56 are 0b0000, the representation is the running status information sent by the first voltage converter control device. When bit59 to bit56 are 0b0001, the representation is the running status information sent by the second voltage converter control device. When bit59 to bit56 are 0b0010, the representation is the running status information sent by the third voltage converter control device. By analogy, when bits 59 to 56 are different binary numbers, they represent operating state information sent by different voltage converter control devices.
当bit63至bit60为0b0000时,bit55至bit0为电压转换器的输出电压值。当bit63至bit60为0b0001时,bit55至bit0为电压转换器的输出电流值。当bit63至bit60为0b0010时,bit55至bit0为电压转换器的温度值。当bit63至bit60为0b0011时,bit55至bit0为电压转换器的波形记录数据值。When bit63 to bit60 are 0b0000, bit55 to bit0 are the output voltage values of the voltage converter. When bit63 to bit60 are 0b0001, bit55 to bit0 is the output current value of the voltage converter. When bit63 to bit60 are 0b0010, bit55 to bit0 is the temperature value of the voltage converter. When bit63 to bit60 are 0b0011, bit55 to bit0 are the waveform record data values of the voltage converter.
在本申请实施例中,收发模块31发送给主控模块10的运行状态信息包括数据类型字段、第一标识字段和数据内容字段,数据类型字段指示运行状态信息的状态类型,第一标识字段指示发送运行状态信息的电压转换器控制装置,数据内容字段为具体状态数据,因此根据运行状态信息能够准确地确定相应电压转换器200的运行状态,便于对多个电压转换器200的 运行状态进行监测。In this embodiment of the application, the running status information sent by the transceiver module 31 to the main control module 10 includes a data type field, a first identification field and a data content field, the data type field indicates the status type of the running status information, and the first identification field indicates The voltage converter control device that sends the operating state information, the data content field is specific state data, so the operating state of the corresponding voltage converter 200 can be accurately determined according to the operating state information, and it is convenient to monitor the operating states of multiple voltage converters 200 .
需要说明的是,在上述各实施例中,收发模块31可以通过复杂可编程逻辑器件(Complex Programmable logic device,CPLD)实现,使得收发模块31可以使用NRZI方法、4b/5b编码方法和CRC算法等对交互数据进行编码和解码。It should be noted that, in each of the above-mentioned embodiments, the transceiver module 31 can be realized by a complex programmable logic device (Complex Programmable logic device, CPLD), so that the transceiver module 31 can use the NRZI method, 4b/5b encoding method and CRC algorithm, etc. Encode and decode interaction data.
主控模块Main control module
如图1所示,主控模块10可以向电压转换器控制装置30发送配置指令,使电压转换器控制装置30根据配置指令对用于生成PWM信号的软件程序的运行参数进行配置,进而使电压转换器控制装置30通过配置运行参数后的软件生成PWM信号,并通过生成的PWM信号驱动电压转换器200运行。As shown in Figure 1, the main control module 10 can send configuration instructions to the voltage converter control device 30, so that the voltage converter control device 30 configures the operating parameters of the software program used to generate the PWM signal according to the configuration instructions, and then the voltage The converter control device 30 generates a PWM signal through software configured with operating parameters, and drives the voltage converter 200 to run through the generated PWM signal.
在一种可能的实现方式中,用户终端20向主控模块10发送针对任一电压转换器控制装置30的原始指令,主控模块10生成包括所接收到原始指令的指令数据,并将生成的指令数据发送给相应的电压转换器控制装置30。原始指令包括配置指令、控制指令或更新指令,配置指令用于配置电压转换器控制装置30上软件处理程序的运行参数,控制指令用于控制电压转换器200执行相应的动作,更新指令用于对电压转换器控制装置30上软件程序的固件进行更新。In a possible implementation, the user terminal 20 sends an original instruction for any voltage converter control device 30 to the main control module 10, and the main control module 10 generates instruction data including the received original instruction, and the generated The command data is sent to the corresponding voltage converter control device 30 . The original instructions include configuration instructions, control instructions or update instructions, the configuration instructions are used to configure the operating parameters of the software processing program on the voltage converter control device 30, the control instructions are used to control the voltage converter 200 to perform corresponding actions, and the update instructions are used to update The firmware of the software program on the voltage converter control device 30 is updated.
在本申请实施例中,主控模块10可以响应于用户终端20的触发,向一个或多个电压转换器控制装置30发送原始指令,以对电压转换器控制装置30进行软件程序配置、固件升级,或对连接在电压转换器控制装置30上的电压转换器200进行控制,从而实现了多个电压转换器200的远程管理,无需到工业现场分别对每个电压转换器控制装置30进行维护、更新,从而能够提高对电压转换器200进行管理的效率,而且可以降低对电压转换器200进行管理时的劳动强度和安全风险。In the embodiment of the present application, the main control module 10 can send original instructions to one or more voltage converter control devices 30 in response to the triggering of the user terminal 20, so as to perform software program configuration and firmware upgrade on the voltage converter control devices 30 , or control the voltage converters 200 connected to the voltage converter control device 30, so as to realize the remote management of multiple voltage converters 200, without going to the industrial site to maintain and maintain each voltage converter control device 30 separately. In this way, the efficiency of managing the voltage converter 200 can be improved, and the labor intensity and safety risks when managing the voltage converter 200 can be reduced.
在一种可能的实现方式中,主控模块10在向电压转换器控制装置30发送原始指令时,可以通过对原始指令进行编码,获得包括原始指令的指令数据,然后将指令数据发送给电压转换器控制装置30,保证能够准确地将原始指令发送给电压转换器控制装置30。如图3所示,主控模块10在获取到原始指令40后,首先通过第二CRC编码单元12对原始指令40进行运算,获得原始指令40的校验码,并将获得的校验码与原始指令40进行组合,获得第三指令编码,然后通过第二4b/5b编码器13对第三指令编码进行编码,获得第二指令编码,然后通过前导码添加单元14在第二指令编码中添加前导码,获得第一指令编码,然后通过NRZI编码器15对第一指令编码进行编码,获得指令数据,并将包括原始指令40的指令数据发送给电压转换器控制装置30。In a possible implementation manner, when the main control module 10 sends the original instruction to the voltage converter control device 30, it can encode the original instruction to obtain instruction data including the original instruction, and then send the instruction data to the voltage converter control device 30. The converter control device 30 ensures that the original command can be sent to the voltage converter control device 30 accurately. As shown in FIG. 3 , after the main control module 10 obtains the original instruction 40, firstly, the second CRC encoding unit 12 operates the original instruction 40 to obtain the check code of the original instruction 40, and compares the obtained check code with the The original instruction 40 is combined to obtain the third instruction code, and then the second 4b/5b encoder 13 is used to encode the third instruction code to obtain the second instruction code, and then the preamble adding unit 14 is added to the second instruction code The preamble is used to obtain the first instruction code, and then the first instruction code is encoded by the NRZI encoder 15 to obtain instruction data, and the instruction data including the original instruction 40 is sent to the voltage converter control device 30 .
在本申请实施例中,主控模块10通过CRC算法、4b/5b编码方法和非归零反相编码方法 对原始指令40进行编码,获得指令数据,并将指令数据发送给电压转换器控制装置30,电压转换器控制装置30通过非归零反相编码方法、4b/5b编码方法和CRC算法对指令数据进行解码,获得原始指令。主控模块10和电压转换器控制装置30通过相对应的编解码方法对原值指令进行编码和解码,保证发送给电压转换器控制装置30的原始指令的准确性,进而保证对电压转换器200进行管理、控制和监测的准确性。In the embodiment of the present application, the main control module 10 encodes the original instruction 40 through the CRC algorithm, the 4b/5b encoding method and the non-return-to-zero inversion encoding method, obtains the instruction data, and sends the instruction data to the voltage converter control device 30. The voltage converter control device 30 decodes the instruction data through a non-return-to-zero inversion encoding method, a 4b/5b encoding method, and a CRC algorithm to obtain an original instruction. The main control module 10 and the voltage converter control device 30 encode and decode the original value instruction through the corresponding encoding and decoding method, so as to ensure the accuracy of the original instruction sent to the voltage converter control device 30, thereby ensuring the accuracy of the voltage converter 200 The accuracy with which it is managed, controlled and monitored.
在一种可能的实现方式中,主控模块10发送给电压转换器控制装置30的原始指令包括指令类型字段、第二标识字段和指令内容字段。指令类型字段用于指示原始指令为配置指令、控制指令或更新指令。第二标识字段用于标识电压转换器控制装置30,发送给不同电压转换器控制装置30的原始指令,第二标识字段的值不同。指令内容字段包括执行原始指令所需的相关数据。In a possible implementation manner, the original command sent by the main control module 10 to the voltage converter control device 30 includes a command type field, a second identification field and a command content field. The command type field is used to indicate that the original command is a configuration command, a control command or an update command. The second identification field is used to identify the voltage converter control device 30 , and the original instructions sent to different voltage converter control devices 30 have different values in the second identification field. The command content field includes relevant data needed to execute the original command.
当原始指令为配置指令时,指令内容字段包括相应的配置信息,比如电压转换器200所需输出的电压、电流等。当原始指令为控制指令时,指令内容字段为相应的指令内容,比如为控制电压转换器200开启、关闭、休眠或唤醒的指令。当原始指令为更新指令时,指令内容包括电压转换器控制装置30上软件程序的固件文件。When the original instruction is a configuration instruction, the instruction content field includes corresponding configuration information, such as the required output voltage and current of the voltage converter 200 . When the original instruction is a control instruction, the instruction content field is the corresponding instruction content, such as an instruction to control the voltage converter 200 to turn on, turn off, sleep or wake up. When the original instruction is an update instruction, the instruction content includes a firmware file of a software program on the voltage converter control device 30 .
图6是本申请实施例的一种原始指令的示意图。如图6所示,原始指令的长度为64bit,其中,bit63至bit60为指令类型字段601,bit59至bit56为第二标识字段602,bit55至bit0为指令内容字段603。Fig. 6 is a schematic diagram of an original instruction in the embodiment of the present application. As shown in FIG. 6 , the length of the original instruction is 64 bits, wherein, bit63 to bit60 is the instruction type field 601 , bit59 to bit56 is the second identification field 602 , and bit55 to bit0 is the instruction content field 603 .
当bit63至bit60为0b0000时,表征该原始指令为控制指令。当bit63至bit60为0b0001时,表征该原始指令为配置指令。当bit63至bit60为0b0010时,表征该原始指令为更新指令。When bit63 to bit60 are 0b0000, it indicates that the original instruction is a control instruction. When bit63 to bit60 are 0b0001, it indicates that the original command is a configuration command. When bit63 to bit60 are 0b0010, it indicates that the original instruction is an update instruction.
当bit59至bit56为0b0000时,表征该原始指令的目的地为第1个电压转换器控制装置。当bit59至bit56为0b0001时,表征该原始指令的目的地为第2个电压转换器控制装置。当bit59至bit56为0b0010时,表征该原始指令的目的地为第3个电压转换器控制装置。以此类推,bit59至bit56为不同的二进制数时,表征原始指令发送给不同的电压转换器控制装置。When bit59 to bit56 are 0b0000, it indicates that the destination of the original instruction is the first voltage converter control device. When bit59 to bit56 are 0b0001, it indicates that the destination of the original instruction is the second voltage converter control device. When bit59 to bit56 are 0b0010, it indicates that the destination of the original instruction is the third voltage converter control device. By analogy, when bit59 to bit56 are different binary numbers, it represents that the original instruction is sent to different voltage converter control devices.
在指令内容字段603中,bit55至bit24为第一内容字段6031,bit23至bit0为第二内容字段6032,第一内容字段6031用于存放电压值或闪存地址,第二内容字段6032用于存放电流值、闪存数据或简单指令。当bit63至bit60为0b0000时,第二内容字段6032为电压转换器的开启指令、关闭指令、休眠指令或唤醒指令,第一内容字段6031为空值。当bit63至bit60为0b0001时,第一内容字段6031为电压转换器所需输出的电压值,第二内容字段6032为电压转换器所需输出的电流值。当bit63至bit60为0b0010时,第一内容字段6031为电压转换器控制装置的闪存地址,第二内容字段6032为用于固件更新的闪存数据(固件文件)。In the instruction content field 603, bit55 to bit24 are the first content field 6031, bit23 to bit0 are the second content field 6032, the first content field 6031 is used to store the voltage value or flash memory address, and the second content field 6032 is used to store the current values, flash data, or simple instructions. When bit63 to bit60 are 0b0000, the second content field 6032 is the start command, close command, sleep command or wake-up command of the voltage converter, and the first content field 6031 is empty. When bit63 to bit60 are 0b0001, the first content field 6031 is the voltage value that the voltage converter needs to output, and the second content field 6032 is the current value that the voltage converter needs to output. When bit63 to bit60 are 0b0010, the first content field 6031 is the flash memory address of the voltage converter control device, and the second content field 6032 is the flash memory data (firmware file) for firmware update.
在本申请实施例中,主控模块10发送给电压转换器控制装置30的原始指令包括指令类 型字段、第二标识字段和指令内容字段,指令类型字段指示指令的类型,第二标识字段指示接收原始指令的电压转换器控制装置,指令内容字段为具体指令数据。通过包括指令类型字段、第二标识字段和指令内容字段的原始指令,可以远程对多个电压转换器200进行不同类型的控制和管理,提高对电压转换器200进行控制和管理的方便性和灵活性。In the embodiment of the present application, the original instruction sent by the main control module 10 to the voltage converter control device 30 includes an instruction type field, a second identification field and an instruction content field, the instruction type field indicates the type of the instruction, and the second identification field indicates the received The voltage converter control device of the original command, the command content field is the specific command data. Through the original instruction including the instruction type field, the second identification field and the instruction content field, different types of control and management can be performed on multiple voltage converters 200 remotely, improving the convenience and flexibility of controlling and managing the voltage converters 200 sex.
在一种可能的实现方式中,主控模块10不仅可以向电压转换器控制装置30发送指令数据,还可以接收电压转换器控制装置30发送的运行状态信息。具体地,主控模块10接收电压转换器控制装置30发送的状态信息,并将运行状态信息发送给用户终端20,使用户终端20对运行状态信息进行展示,以便于用于查看电压转换器200的运转状态信息,确定电压转换器200的运行状态。其中,运行状态信息包括电压转换器200的电压数据、电流数据、温度数据和波形记录数据等。In a possible implementation manner, the main control module 10 can not only send instruction data to the voltage converter control device 30 , but also receive operation status information sent by the voltage converter control device 30 . Specifically, the main control module 10 receives the status information sent by the voltage converter control device 30, and sends the running status information to the user terminal 20, so that the user terminal 20 displays the running status information, so that it can be used to view the voltage converter 200 The operating state information of the voltage converter 200 determines the operating state of the voltage converter 200 . Wherein, the running status information includes voltage data, current data, temperature data, and waveform record data of the voltage converter 200 .
主控模块10在接收电压转换器控制装置30发送的运行状态信息时,与对原始指令进行编码的过程相反,主控模块10在对运行状态信息进行解码后,将解码出的运行状态信息发送给用户终端20。如图4所示,主控模块10在接收到电压转换器控制装置30发送的反馈数据后,首先通过NRZI解码器16对反馈数据进行解码,获得第三状态编码,然后通过前导码检测器17去除第三状态编码中的前导码,获得第二状态编码,然后通过第二4b/5b解码器18对第二状态编码进行解码,获得第一状态编码,然后通过第二循环冗余校验(Cyclic Redundancy Check,CRC)验证单元19验证第一状态编码包括的运行状态信息准确后,去除第一状态编码中的校验码,获得运行状态信息50。When the main control module 10 receives the operation state information sent by the voltage converter control device 30, the process of encoding the original instruction is opposite to the process of encoding the original command. After decoding the operation state information, the main control module 10 sends the decoded operation state information to to the user terminal 20. As shown in FIG. 4 , after receiving the feedback data sent by the voltage converter control device 30, the main control module 10 first decodes the feedback data through the NRZI decoder 16 to obtain the third state code, and then passes the preamble detector 17 Remove the preamble in the third state code, obtain the second state code, then decode the second state code by the second 4b/5b decoder 18, obtain the first state code, then pass the second cyclic redundancy check ( After the Cyclic Redundancy Check (CRC) verification unit 19 verifies that the running state information included in the first state code is correct, the check code in the first state code is removed to obtain the running state information 50.
NRZI解码器16用于通过非归零反相编码方法对反馈数据进行解码,获得第三状态编码。前导码检测器17去除第三状态编码中的前导码,获得第二状态编码。第二4b/5b解码器18用于通过4b/5b编码方法对第二状态编码进行解码,获得第一状态编码。第二CRC验证单元19用于通过循环冗余校验算法计算第一状态编码中运行状态信息的校验码,并验证计算出的校验码是否与第一状态编码中的校验码相同,若计算出的校验码与第一状态编码中的校验码相同,则确定第一状态编码包括的运行状态信息是准确的,进而去除第一状态编码中的校验码,获得运行状态信息50。The NRZI decoder 16 is used to decode the feedback data through a non-return-to-zero inversion coding method to obtain the third state code. The preamble detector 17 removes the preamble in the third state code to obtain the second state code. The second 4b/5b decoder 18 is used to decode the second state code through the 4b/5b coding method to obtain the first state code. The second CRC verification unit 19 is used to calculate the check code of the running state information in the first state code by a cyclic redundancy check algorithm, and verify whether the calculated check code is the same as the check code in the first state code, If the calculated check code is the same as the check code in the first state code, it is determined that the running state information included in the first state code is accurate, and then the check code in the first state code is removed to obtain the running state information 50.
例如,NRZI解码器16对反馈数据进行解码,获得98bit长度的第三状态编码,前导码检测器17去除第三状态编码中8bit长度的前导码,获得90bit长度的第二状态编码,第二4b/5b解码器18对第二状态编码进行解码,获得72bit长度的第一状态编码,第二CRC验证单元19去除第一状态编码中8bit长度的校验码,获得64bit长度的运行状态信息50。For example, the NRZI decoder 16 decodes the feedback data to obtain the third state code of 98bit length, and the preamble detector 17 removes the preamble of 8bit length in the third state code to obtain the second state code of 90bit length, and the second 4b The /5b decoder 18 decodes the second state code to obtain the first state code with a length of 72 bits, and the second CRC verification unit 19 removes the check code with a length of 8 bits in the first state code to obtain the running state information 50 with a length of 64 bits.
在本申请实施例中,主控模块10通过NRZI方法、4b/5b编码方法和CRC算法等对指令数据进行解码,获得运行状态信息,与电压转换器控制装置30对运行状态信息进行编码过程 相对应,电压转换器控制装置30通过反向的过程对运行状态信息进行编码,以获得反馈数据。电压转换器控制装置30对运行状态信息进行编码获得反馈数据,将反馈数据发送给主控模块10后,主控模块10对指令数据进行解码获得运行状态信息,通过NRZI方法、4b/5b编码方法和CRC算法等对运行状态信息解码,保证主控模块10能够准确获得电压转换器控制装置30所要发送的运行状态信息,从而保证对电压转换器200进行监测的准确性。In the embodiment of the present application, the main control module 10 decodes the instruction data through the NRZI method, the 4b/5b encoding method, and the CRC algorithm to obtain the operation state information, which is similar to the process of encoding the operation state information by the voltage converter control device 30 Correspondingly, the voltage converter control device 30 encodes the operating status information through a reverse process to obtain feedback data. The voltage converter control device 30 encodes the operating state information to obtain feedback data, and after sending the feedback data to the main control module 10, the main control module 10 decodes the command data to obtain the operating state information, and uses the NRZI method and 4b/5b encoding method and CRC algorithm to decode the running state information to ensure that the main control module 10 can accurately obtain the running state information to be sent by the voltage converter control device 30 , thereby ensuring the accuracy of monitoring the voltage converter 200 .
需要说明的是,在上述各实施例中,主控模块10可以通过片上***(System on Chip,SOC)实现,保证主控模块10具有足够的数据处理和转发能力,以能够同时与多个电压转换器控制装置30进行数据交互。It should be noted that, in the above-mentioned embodiments, the main control module 10 can be implemented by a system on chip (System on Chip, SOC), to ensure that the main control module 10 has sufficient data processing and forwarding capabilities, so as to be able to communicate with multiple voltages simultaneously. The converter control device 30 performs data interaction.
电压转换器控制方法Voltage Converter Control Method
图7是本申请实施例的一种电压转换器控制方法的流程图。如图7所示,电压转换器控制方法700用于控制电压转换器运行,该方法包括如下步骤:Fig. 7 is a flow chart of a voltage converter control method according to an embodiment of the present application. As shown in FIG. 7, a voltage converter control method 700 is used to control the operation of the voltage converter, and the method includes the following steps:
步骤701、接收来自外部的主控模块的配置指令; Step 701, receiving configuration instructions from an external main control module;
步骤702、根据配置指令,对用于生成PWM信号的软件程序的运行参数进行配置; Step 702, configure the operating parameters of the software program for generating the PWM signal according to the configuration instruction;
步骤703、通过配置运行参数后的软件程序生成PWM信号; Step 703, generating a PWM signal through a software program configured with operating parameters;
步骤704、根据PWM信号驱动电压转换器运行。 Step 704, drive the voltage converter to run according to the PWM signal.
需要说明的是,由于电压转换器控制方法的细节在上述实施例的电压转换器控制装置和电压转换器控制***部分,已经结合结构示意图进行了详细说明,具体过程可参见前述电压转换器控制装置和电压转换器控制***实施例中的描述,在此不再进行赘述。It should be noted that since the details of the voltage converter control method have been described in detail in conjunction with the structural schematic diagrams in the voltage converter control device and voltage converter control system of the above-mentioned embodiment, the specific process can be found in the aforementioned voltage converter control device and the description in the embodiments of the control system of the voltage converter will not be repeated here.
需要说明的是,上述各流程和各装置结构图中不是所有的步骤和模块都是必须的,可以根据实际的需要忽略某些步骤或模块。各步骤的执行顺序不是固定的,可以根据需要进行调整。上述各实施例中描述的***结构可以是物理结构,也可以是逻辑结构,即,有些模块可能由同一物理实体实现,或者,有些模块可能分由多个物理实体实现,或者,可以由多个独立设备中的某些部件共同实现。It should be noted that not all the steps and modules in the above flow charts and device structure diagrams are necessary, and some steps or modules can be ignored according to actual needs. The execution order of each step is not fixed and can be adjusted as required. The system structures described in the above embodiments may be physical structures or logical structures, that is, some modules may be realized by the same physical entity, or some modules may be realized by multiple physical entities, or may be realized by multiple Certain components in individual devices are implemented together.
以上各实施例中,硬件模块可以通过机械方式或电气方式实现。例如,一个硬件模块可以包括永久性专用的电路或逻辑(如专门的处理器,FPGA或ASIC)来完成相应操作。硬件模块还可以包括可编程逻辑或电路(如通用处理器或其它可编程处理器),可以由软件进行临时的设置以完成相应操作。具体的实现方式(机械方式、或专用的永久性电路、或者临时设置的电路)可以基于成本和时间上的考虑来确定。In the above embodiments, the hardware modules may be implemented mechanically or electrically. For example, a hardware module may include permanently dedicated circuitry or logic (such as a dedicated processor, FPGA or ASIC) to perform the corresponding operations. The hardware modules may also include programmable logic or circuits (such as general-purpose processors or other programmable processors), which can be temporarily set by software to complete corresponding operations. The specific implementation (mechanical way, or a dedicated permanent circuit, or a temporary circuit) can be determined based on cost and time considerations.
上文通过附图和优选实施例对本申请进行了详细展示和说明,然而本申请不限于这些已揭示的实施例,基于上述多个实施例本领域技术人员可以知晓,可以组合上述不同实施例中 的代码审核手段得到本申请更多的实施例,这些实施例也在本申请的保护范围之内。The above has shown and described the present application in detail through the accompanying drawings and preferred embodiments, but the present application is not limited to these disclosed embodiments. Based on the above-mentioned multiple embodiments, those skilled in the art can know that the above-mentioned different embodiments can be combined More embodiments of the present application can be obtained by means of code review, and these embodiments are also within the protection scope of the present application.

Claims (12)

  1. 一种电压转换器控制装置(30),用于控制电压转换器(200)运行,所述电压转换器控制装置(30)包括:收发模块(31)、处理模块(32)和驱动模块(33);A voltage converter control device (30), used to control the operation of a voltage converter (200), the voltage converter control device (30) comprising: a transceiver module (31), a processing module (32) and a drive module (33 );
    所述处理模块(32)分别与所述收发模块(31)和所述驱动模块(33)相连接;The processing module (32) is connected to the transceiver module (31) and the driving module (33) respectively;
    所述收发模块(31),用于接收来自外部的主控模块(10)的配置指令;The transceiver module (31) is configured to receive configuration instructions from an external main control module (10);
    所述处理模块(32),用于根据所述配置指令对用于生成PWM信号的软件程序的运行参数进行配置,并通过配置运行参数后的所述软件程序生成PWM信号;The processing module (32), configured to configure the operating parameters of the software program used to generate the PWM signal according to the configuration instruction, and generate the PWM signal through the software program after the configured operating parameters;
    所述驱动模块(33),用于根据所述PWM信号驱动所述电压转换器(200)运行。The driving module (33), configured to drive the voltage converter (200) to run according to the PWM signal.
  2. 根据权利要求1所述的电压转换器控制装置(30),其中,The voltage converter control device (30) according to claim 1, wherein,
    所述收发模块(31),还用于接收来自所述主控模块(10)的控制指令;The transceiver module (31) is further configured to receive control instructions from the main control module (10);
    所述处理模块(32),还用于根据所述控制指令生成控制信号,并将所述控制信号发送给所述驱动模块(33);The processing module (32) is further configured to generate a control signal according to the control instruction, and send the control signal to the driving module (33);
    所述驱动模块(33),还用于根据所述控制信号执行如下操作之一:开启所述电压转换器(200)、关闭所述电压转换器(200)、使所述电压转换器(200)进入休眠状态及将所述电压转换器(200)从休眠状态唤醒。The drive module (33) is further configured to perform one of the following operations according to the control signal: turn on the voltage converter (200), turn off the voltage converter (200), enable the voltage converter (200 ) enters a sleep state and wakes up the voltage converter (200) from the sleep state.
  3. 根据权利要求1所述的电压转换器控制装置(30),其中,The voltage converter control device (30) according to claim 1, wherein,
    所述收发模块(31),还用于接收来自所述主控模块(10)的更新指令,对所述更新指令进行格式转换后,通过通用异步收发传输器将格式转换后的所述更新指令发送给所述处理模块(32);The transceiver module (31) is also used to receive an update command from the main control module (10), convert the format of the update command, and convert the format-converted update command through a UART Send to the processing module (32);
    所述处理模块(32),还用于将所述更新指令包括的固件文件存储到闪存中,以对所述软件程序进行固件更新。The processing module (32) is further configured to store the firmware file included in the update instruction in the flash memory, so as to update the firmware of the software program.
  4. 根据权利要求1-3中任一所述的电压转换器控制装置(30),其中,所述收发模块(31)用于执行如下处理:The voltage converter control device (30) according to any one of claims 1-3, wherein the transceiver module (31) is configured to perform the following processing:
    接收来自所述主控模块(10)的指令数据;receiving instruction data from the main control module (10);
    通过非归零反相编码方法对所述指令数据进行解码,获得第一指令编码;Decoding the instruction data by using a non-return-to-zero inversion encoding method to obtain a first instruction encoding;
    去除所述第一指令编码中的前导码,获得第二指令编码;removing the preamble in the first instruction code to obtain a second instruction code;
    通过4b/5b编码方法对所述第二指令编码进行解码,获得第三指令编码;Decoding the second instruction code by using a 4b/5b encoding method to obtain a third instruction code;
    通过循环冗余校验算法验证所述第三指令编码包括的原始指令(40)准确后,去除所述第三指令编码中的校验码,获得所述原始指令(40),其中,所述原始指令(40)包括所述配置指令、控制指令或更新指令,所述控制指令用于控制所述电压转换器(200)的工作状态,所述更新指令用于更新所述软件程序的固件。After verifying that the original instruction (40) included in the third instruction code is correct through a cyclic redundancy check algorithm, remove the check code in the third instruction code to obtain the original instruction (40), wherein the The original instruction (40) includes the configuration instruction, control instruction or update instruction, the control instruction is used to control the working state of the voltage converter (200), and the update instruction is used to update the firmware of the software program.
  5. 根据权利要求1-3中任一所述的电压转换器控制装置(30),其中,The voltage converter control device (30) according to any one of claims 1-3, wherein,
    所述处理模块(32),还用于获取所述电压转换器(200)的运行状态信息(50),并将所述运行状态信息(50)发送给所述收发模块(31),所述运行状态信息(50)包括电压数据、电流数据、温度数据和波形记录数据中的至少一个;The processing module (32) is further configured to obtain the operation status information (50) of the voltage converter (200), and send the operation status information (50) to the transceiver module (31), the The operating state information (50) includes at least one of voltage data, current data, temperature data and waveform record data;
    所述收发模块(31),还用于通过循环冗余校验算法对所述运行状态信息(50)进行运算,获得所述运行状态信息(50)的校验码,将获得的校验码与所述运行状态信息(50)进行组合,获得第一状态编码;通过4b/5b编码方法对所述第一状态编码进行编码,获得第二状态编码;在所述第二状态编码中添加前导码,获得第三状态编码;通过非归零反相编码方法对所述第三状态编码进行编码,获得反馈信息;将所述反馈信息发送给所述主控模块(10)。The transceiver module (31) is also used to perform calculations on the running state information (50) through a cyclic redundancy check algorithm to obtain a check code of the running state information (50), and the obtained check code Combining with the running state information (50) to obtain a first state code; encoding the first state code by a 4b/5b coding method to obtain a second state code; adding a leader to the second state code code to obtain a third state code; encode the third state code through a non-return-to-zero inversion coding method to obtain feedback information; and send the feedback information to the main control module (10).
  6. 根据权利要求5所述的电压转换器控制装置(30),其中,所述运行状态信息(50)包括数据类型字段(501)、第一标识字段(502)和数据内容字段(503);The voltage converter control device (30) according to claim 5, wherein the operation state information (50) includes a data type field (501), a first identification field (502) and a data content field (503);
    所述数据类型字段(501)用于指示所述运行状态信息(50)为电压数据、电流数据、温度数据或波形记录数据;The data type field (501) is used to indicate that the operation state information (50) is voltage data, current data, temperature data or waveform record data;
    所述第一标识字段(502)用于标识所述电压转换器控制装置(30);The first identification field (502) is used to identify the voltage converter control device (30);
    所述数据内容字段(503)包括所述电压数据、所述电流数据、所述温度数据或所述波形记录数据的数值。The data content field (503) includes the value of the voltage data, the current data, the temperature data or the waveform record data.
  7. 一种电压转换器控制***(100),用于控制电压转换器(200)运行,包括:主控模块(10)和权利要求1-6中任一所述的电压转换器控制装置(30);A voltage converter control system (100), used to control the operation of a voltage converter (200), comprising: a main control module (10) and the voltage converter control device (30) according to any one of claims 1-6 ;
    所述主控模块(10),用于向所述电压转换器控制装置(30)发送配置指令,所述配置指令用于对所述电压转换器控制装置(30)中用于生成PWM信号的软件程序的运行参数进行配置,所述PWM信号用于控制所述电压转换器(200)运行。The main control module (10) is configured to send a configuration instruction to the voltage converter control device (30), the configuration instruction is used for generating a PWM signal in the voltage converter control device (30). The operating parameters of the software program are configured, and the PWM signal is used to control the operation of the voltage converter (200).
  8. 根据权利要求7所述的电压转换器控制***(100),其中,所述电压转换器控制***还包括用户终端(20),且所述电压转换器控制装置(30)的数量为多个;The voltage converter control system (100) according to claim 7, wherein the voltage converter control system further comprises a user terminal (20), and the number of the voltage converter control devices (30) is multiple;
    所述用户终端(20)与所述主控模块(10)相连接,所述主控模块(10)分别与每个所述电压转换器控制装置(30)相连接,每个所述电压转换器控制装置(30)与一个电压转换器(200)相连接;The user terminal (20) is connected to the main control module (10), the main control module (10) is respectively connected to each of the voltage converter control devices (30), and each of the voltage conversion The device control device (30) is connected with a voltage converter (200);
    所述用户终端(20),用于向所述主控模块(10)发送针对任一电压转换器控制装置(30)的原始指令(40),其中,所述原始指令(40)包括所述配置指令、控制指令或更新指令,所述控制指令用于控制所述电压转换器(200)的工作状态,所述更新指令用于更新所述软件程序的固件;The user terminal (20) is configured to send an original instruction (40) for any voltage converter control device (30) to the main control module (10), wherein the original instruction (40) includes the a configuration instruction, a control instruction or an update instruction, the control instruction is used to control the working state of the voltage converter (200), and the update instruction is used to update the firmware of the software program;
    所述主控模块(10),用于生成包括所述原始指令(40)的指令数据,并将所述指令数据 发送给相应的所述电压转换器控制装置(30)。The main control module (10) is configured to generate instruction data including the original instruction (40), and send the instruction data to the corresponding voltage converter control device (30).
  9. 根据权利要求8所述的电压转换器控制***(100),其中,所述主控模块(10)用于执行如下操作:The voltage converter control system (100) according to claim 8, wherein the main control module (10) is configured to perform the following operations:
    通过循环冗余校验算法计算所述原始指令(40)的校验码,将计算出的校验码与所述原始指令(40)进行组合,获得第三指令编码;calculating a check code of the original instruction (40) through a cyclic redundancy check algorithm, and combining the calculated check code with the original instruction (40) to obtain a third instruction code;
    通过4b/5b编码方法对所述第三指令编码进行编码,获得第二指令编码;Encoding the third instruction code by a 4b/5b encoding method to obtain a second instruction code;
    在所述第二指令编码中添加前导码,获得第一指令编码;Adding a preamble to the second instruction code to obtain the first instruction code;
    通过非归零反相编码方法对所述第一指令编码进行编码,获得所述指令数据。The first instruction code is encoded by using a non-return-to-zero inversion encoding method to obtain the instruction data.
  10. 根据权利要求8或9所述的电压转换器控制***(100),其中,所述原始指令(40)包括指令类型字段(601)、第二标识字段(602)和指令内容字段(603);The voltage converter control system (100) according to claim 8 or 9, wherein the original instruction (40) includes an instruction type field (601), a second identification field (602) and an instruction content field (603);
    所述指令类型字段(601)用于指示所述原始指令(40)为所述配置指令、所述控制指令或所述更新指令;The instruction type field (601) is used to indicate that the original instruction (40) is the configuration instruction, the control instruction or the update instruction;
    所述第二标识字段(602)用于标识所述电压转换器控制装置(30);The second identification field (602) is used to identify the voltage converter control device (30);
    所述指令内容字段(603)包括执行所述原始指令(40)所需的相关数据。The instruction content field (603) includes relevant data required to execute the original instruction (40).
  11. 根据权利要求8所述的电压转换器控制***(100),其中,The voltage converter control system (100) of claim 8, wherein,
    所述主控模块(10),用于接收来自任一所述电压转换器控制装置(30)的反馈数据,通过非归零反相编码方法对所述反馈数据进行解码,获得第三状态编码;去除所述第三状态编码中的前导码,获得第二状态编码;通过4b/5b编码方法对所述第二状态编码进行解码,获得第一状态编码;通过循环冗余校验算法验证所述第一状态编码包括的运行状态信息(50)准确后,去除所述第一状态编码中的校验码,获得运行状态信息(50);将所述运行状态信息(50)发送给所述用户终端(20);其中,所述运行状态信息(50)包括相应电压转换器(200)的电压数据、电流数据、温度数据和波形记录数据中的至少一个;The main control module (10) is configured to receive feedback data from any one of the voltage converter control devices (30), decode the feedback data through a non-return-to-zero inversion coding method, and obtain a third state code ; remove the preamble in the third state code to obtain the second state code; decode the second state code by the 4b/5b coding method to obtain the first state code; verify the state code by the cyclic redundancy check algorithm After the operation state information (50) included in the first state code is accurate, remove the check code in the first state code to obtain the operation state information (50); send the operation state information (50) to the A user terminal (20); wherein, the operating state information (50) includes at least one of voltage data, current data, temperature data, and waveform record data of a corresponding voltage converter (200);
    所述用户终端(20),用于对接收到的所述运行状态信息(50)进行展示。The user terminal (20) is configured to display the received running status information (50).
  12. 一种电压转换器控制方法(700),用于控制电压转换器(200)运行,所述方法包括:A voltage converter control method (700), used for controlling the operation of a voltage converter (200), the method comprising:
    接收来自外部的主控模块(10)的配置指令;receiving configuration instructions from an external main control module (10);
    根据所述配置指令,对用于生成PWM信号的软件程序的运行参数进行配置;According to the configuration instruction, the operating parameters of the software program for generating the PWM signal are configured;
    通过配置运行参数后的所述软件程序生成PWM信号;Generate a PWM signal through the software program after configuring the operating parameters;
    根据所述PWM信号驱动所述电压转换器(200)运行。The voltage converter (200) is driven to run according to the PWM signal.
PCT/CN2021/141647 2021-12-27 2021-12-27 Voltage converter control apparatus, method and system WO2023122886A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/141647 WO2023122886A1 (en) 2021-12-27 2021-12-27 Voltage converter control apparatus, method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/141647 WO2023122886A1 (en) 2021-12-27 2021-12-27 Voltage converter control apparatus, method and system

Publications (1)

Publication Number Publication Date
WO2023122886A1 true WO2023122886A1 (en) 2023-07-06

Family

ID=86996796

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/141647 WO2023122886A1 (en) 2021-12-27 2021-12-27 Voltage converter control apparatus, method and system

Country Status (1)

Country Link
WO (1) WO2023122886A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303592A (en) * 2008-06-30 2008-11-12 电子科技大学 Novel method of wind generating set remote maintenance
CN201341111Y (en) * 2009-01-21 2009-11-04 北京浩普华清电气技术有限公司 Power unit control circuit board of high-voltage frequency transformer
CN201750344U (en) * 2009-12-29 2011-02-16 深圳市威捷机电技术有限公司 Three-phase AC induction motor frequency converter for automatic expanding door
JP2011229277A (en) * 2010-04-20 2011-11-10 Koha Co Ltd Remote control one converter power supply circuit
CN103929047A (en) * 2014-04-25 2014-07-16 上海电气集团股份有限公司 PEBB modular structure for wind power converter, parallel connection structure of PEBB modular structures and appearance structure of PEBB modular structure
CN203896245U (en) * 2014-06-10 2014-10-22 重庆市科诚电机制造有限公司 AC motor frequency-variable controller
CN106787875A (en) * 2015-11-20 2017-05-31 台达电子企业管理(上海)有限公司 Pulsed drive system and pulse drive method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101303592A (en) * 2008-06-30 2008-11-12 电子科技大学 Novel method of wind generating set remote maintenance
CN201341111Y (en) * 2009-01-21 2009-11-04 北京浩普华清电气技术有限公司 Power unit control circuit board of high-voltage frequency transformer
CN201750344U (en) * 2009-12-29 2011-02-16 深圳市威捷机电技术有限公司 Three-phase AC induction motor frequency converter for automatic expanding door
JP2011229277A (en) * 2010-04-20 2011-11-10 Koha Co Ltd Remote control one converter power supply circuit
CN103929047A (en) * 2014-04-25 2014-07-16 上海电气集团股份有限公司 PEBB modular structure for wind power converter, parallel connection structure of PEBB modular structures and appearance structure of PEBB modular structure
CN203896245U (en) * 2014-06-10 2014-10-22 重庆市科诚电机制造有限公司 AC motor frequency-variable controller
CN106787875A (en) * 2015-11-20 2017-05-31 台达电子企业管理(上海)有限公司 Pulsed drive system and pulse drive method

Similar Documents

Publication Publication Date Title
CN104640330B (en) Light emitting diode driver and control method thereof
JP2010534014A (en) Remote control infrared signal generator
US9671849B2 (en) Controlling power supply unit selection based on calculated total on duration
US9658667B2 (en) Power supply system for an information handling system
CN103135731A (en) Method and device for intelligent power supply control for portable computer
CN104486885A (en) Accurate stage illumination wireless regulation and control system based on internet of things
WO2019228075A1 (en) Photodynamic electronic tag, working method thereof, and method and device for managing same
WO2023122886A1 (en) Voltage converter control apparatus, method and system
WO2022142353A1 (en) Vehicle light control device and method
CN109542419A (en) A kind of method, system and the equipment of the exploitation of CAN message processing software
JP6412698B2 (en) Power converter
JP2012509527A (en) Power saving device and system, and methods of use and manufacture thereof
CN104900191A (en) Tri-channel LED driver chip
CN110891346A (en) Bidirectional transmission control circuit and method for single-wire series connection of light emitting diodes
KR100870709B1 (en) A Programmable Logic Controller System and a Method for controlling a AC Driving Unit using the Programmable Logic Controller System
KR101971701B1 (en) Switching driving device using fpga
US11835056B2 (en) Multi-fan system and driving method thereof
CN105162594A (en) Quick signing method and signing device
JP4839769B2 (en) Lighting system
Pavangopal et al. Speech enabled home automation and motor control using Raspberry Pi
TW202016747A (en) Wireless system for setting parameters
CN109194893B (en) Power supply communication control circuit and power supply communication system
CN218768080U (en) RC control power-on time sequence power supply circuit
CN216122278U (en) Embedded rolling slats door motor controller
CN109533181B (en) Electric power-assisted bicycle control system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21969273

Country of ref document: EP

Kind code of ref document: A1