CN110361673B - Power supply detection module parameter adjusting system and adjusting method thereof - Google Patents

Power supply detection module parameter adjusting system and adjusting method thereof Download PDF

Info

Publication number
CN110361673B
CN110361673B CN201910568717.9A CN201910568717A CN110361673B CN 110361673 B CN110361673 B CN 110361673B CN 201910568717 A CN201910568717 A CN 201910568717A CN 110361673 B CN110361673 B CN 110361673B
Authority
CN
China
Prior art keywords
analog quantity
parameter
digital
detection module
corresponding state
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201910568717.9A
Other languages
Chinese (zh)
Other versions
CN110361673A (en
Inventor
周杰
徐皓吉
吴良晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Leihua Electronic Technology Research Institute Aviation Industry Corp of China
Original Assignee
Leihua Electronic Technology Research Institute Aviation Industry Corp of China
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 Leihua Electronic Technology Research Institute Aviation Industry Corp of China filed Critical Leihua Electronic Technology Research Institute Aviation Industry Corp of China
Priority to CN201910568717.9A priority Critical patent/CN110361673B/en
Publication of CN110361673A publication Critical patent/CN110361673A/en
Application granted granted Critical
Publication of CN110361673B publication Critical patent/CN110361673B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/40Testing power supplies

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)
  • Testing And Monitoring For Control Systems (AREA)

Abstract

The application belongs to the technical field of power detection module parameter adjustment, and particularly relates to a power detection module parameter adjustment system, which comprises: the power supply detection module is used for acquiring analog quantity of a circuit state, converting the analog quantity into a digital parameter, and processing the digital parameter by using a preset mathematical model to obtain a corresponding state value of the analog quantity; and the upper computer is used for acquiring the digital parameters and the corresponding state values, and adjusting the conversion parameters of the preset mathematical model according to the digital parameters and the input actual values of the analog quantity so as to enable the corresponding state values to be consistent with the actual values. In addition, the invention relates to a power detection module parameter adjusting method.

Description

Power supply detection module parameter adjusting system and adjusting method thereof
Technical Field
The application belongs to the technical field of power supply detection module parameter adjustment, and particularly relates to a power supply detection module parameter adjustment system and an adjustment method thereof.
Background
In the field of industrial control technology, in order to improve the reliability and maintainability of a power supply system, a power supply detection module is generally required to monitor the state of the power supply system, so as to perform rapid fault location and fault processing when the system fails. However, in the power detection module, hardware of the detection conditioning circuit is not ideal, and parameters of devices of the same model are different, which causes that when a digital parameter of an analog quantity acquired by an MCU (micro-program controller) is processed by a predetermined mathematical model and is restored to a corresponding state value of the analog quantity, a conversion parameter in the predetermined mathematical model is not an ideal calculation value, and needs to be adjusted according to an actual hardware circuit so that the corresponding state value of the analog quantity is consistent with an actual value.
In the prior art, the problems are mostly solved by manually modifying software conversion parameters, rewriting programs and repeatedly operating until an ideal effect is achieved, but nowadays when modularized and batch production is tended, the requirements of enterprises on production efficiency and production cost are higher and higher, the method is tedious to operate, consumes long time, wastes a large amount of manpower and material resources, is not suitable for the development of the times,
the present application is made in view of the above-mentioned drawbacks of the prior art.
Disclosure of Invention
The present application is directed to a power detection module parameter adjustment system and an adjustment method thereof, so as to overcome or alleviate at least one of the drawbacks of the prior art.
The technical scheme of the application is as follows:
in one aspect, a power detection module parameter adjustment system is provided, including:
the power supply detection module is used for acquiring analog quantity of a circuit state, converting the analog quantity into a digital parameter, and processing the digital parameter by using a preset mathematical model to obtain a corresponding state value of the analog quantity;
and the upper computer is used for acquiring the digital parameters and the corresponding state values, and adjusting the conversion parameters of the preset mathematical model according to the digital parameters and the input actual values of the analog quantity so as to enable the corresponding state values to be consistent with the actual values.
According to at least one embodiment of the present application, a power detection module includes:
the signal detection port is used for acquiring analog quantity;
the detection conditioning circuit is used for adjusting the voltage value of the analog quantity to a preset range;
and the MCU is used for converting the analog quantity of which the voltage value is in the preset range into a digital parameter and processing the digital parameter by using a preset mathematical model to obtain a corresponding state value of the analog quantity.
According to at least one embodiment of the present application, the MCU includes:
the A/D conversion unit is used for converting the analog quantity of which the voltage value is in a preset range into a digital parameter;
and the processing unit is used for processing the digital parameters by using a preset mathematical model to obtain the corresponding state values of the analog quantity.
According to at least one embodiment of the present application, an upper computer includes:
the display unit acquires and displays the corresponding state value of the analog quantity;
and the adjusting unit is used for acquiring the digital parameters and adjusting the conversion parameters of the preset mathematical model according to the digital parameters and the input actual values of the analog quantity.
According to at least one embodiment of the present application, the MCU further includes a first serial bus communication unit, which acquires and outputs the digital parameters and the corresponding state values;
the upper computer also comprises a second serial port bus communication unit which receives the digital parameters and the corresponding state values output by the first serial port bus communication unit.
According to at least one embodiment of the present application, the first serial bus communication unit and the second serial bus communication unit perform data interaction in a uniform data frame format through the bus communication interface.
According to at least one embodiment of the present application, the data frame format uses a sync word as a start byte for receiving and transmitting a data frame, and a check code is used to check the data frame.
According to at least one embodiment of the present application, the upper computer further includes a configuration unit configured to configure a data type transmitted by the bus communication interface.
According to at least one embodiment of the present application, the adjusting unit adjusts the type of the predetermined mathematical model according to the digital parameter and the input actual value of the analog quantity so that the corresponding state value coincides with the actual value.
In another aspect, a method for adjusting parameters of a power detection module is provided, including:
acquiring analog quantity of a circuit state through a power supply detection module, converting the analog quantity into a digital parameter, and processing the digital parameter by using a preset mathematical model to obtain a corresponding state value of the analog quantity;
and acquiring the digital parameters and the corresponding state values through an upper computer, and adjusting the conversion parameters of the preset mathematical model according to the digital parameters and the input actual values of the analog quantity so as to enable the corresponding state values to be consistent with the actual values.
Drawings
Fig. 1 is a schematic structural diagram of a power detection module parameter adjustment system according to an embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of an MCU provided in an embodiment of the present application;
fig. 3 is a schematic structural diagram of an upper computer provided in the embodiment of the present application;
wherein:
1-a power supply detection module; 11-a signal detection port; 12-a detection conditioning circuit; 13-MCU; 131-an/D conversion unit; 132-a processing unit; 133-a first serial bus communication unit;
2-an upper computer; 21-a display unit; 22-an adjustment unit; 23-a second serial bus communication unit; 24-a configuration unit;
3-serial port bus communication interface;
a-an analog quantity; b-numerical parameters; c-corresponding state values; d-a data frame; e-the actual value; f-a digital parameter reading instruction; g-a conversion parameter modification instruction.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the present application are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
It should be noted that in the description of the present application, the terms of direction or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, which are merely for convenience of description, and do not indicate or imply that the device or element must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present application. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Furthermore, it should be noted that, in the description of the present application, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as being fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present application can be understood by those skilled in the art as the case may be.
The present application is described in further detail below with reference to fig. 1 to 3.
In one aspect, a power detection module parameter adjustment system is provided, including: the power supply detection module 1 and the upper computer 2; wherein,
the power supply detection module 1 is used for acquiring an analog quantity a of a circuit state, converting the analog quantity a into a digital parameter b, and processing the digital parameter b by using a preset mathematical model to obtain a corresponding state value c of the analog quantity a;
and the upper computer 2 is used for acquiring the digital parameter b and the corresponding state value c, and adjusting the conversion parameter of the preset mathematical model according to the digital parameter b and the input actual value e of the analog quantity a so as to enable the corresponding state value c to be consistent with the actual value e.
For the power detection module parameter adjustment system disclosed in the above embodiment, it can be understood by those skilled in the art that, when the hardware detection circuit of the power module used has a drawback that the accuracy of the monitoring result is affected due to the difference of hardware parameters and needs to be solved by adjusting software conversion parameters, the power detection module parameter adjustment system can realize online parameter adjustment through the upper computer 2, and does not need manual calculation, a large amount of software modification and program burning work, so that the debugging efficiency is high, the operation is simple and convenient, and manpower and material resources can be greatly reduced.
In some optional embodiments, the power detection module 1 includes: a signal detection port 11, a detection conditioning circuit 12 and an MCU13, wherein,
the signal detection port 11 is used for acquiring an analog quantity a, which may include signals such as voltage, current and temperature of each node of the power module;
the detection conditioning circuit 12 is used for adjusting the voltage value of the analog quantity a to a preset range;
the MCU13 converts the analog quantity a with the voltage value in the preset range into a digital parameter b, and processes the digital parameter b by a preset mathematical model to obtain the corresponding state value c of the analog quantity a.
In some alternative embodiments, the MCU13 includes: an a/D conversion unit 131, a processing unit 132, and a first serial bus communication unit 133; wherein,
an a/D conversion unit 131 converting an analog quantity a having a voltage value within a predetermined range into a digital parameter b;
the processing unit 132 is used for processing the digital parameter b by using a preset mathematical model to obtain a corresponding state value c of the analog quantity a;
the first serial bus communication unit 133 obtains and outputs the digital parameter b and the corresponding state value c.
In some optional embodiments, the upper computer 2 includes: a configuration unit 24, a display unit 21, an adjustment unit 22, and a second serial bus communication unit 23.
The configuration unit 24 is responsible for completing configuration of the upper computer 2, mainly configuring serial port communication and channels, and configuring the baud rate, data bit number and parity check of the serial port so as to adapt to different communication modes; configuring a data conversion mathematical model of each sampling channel to adapt to different hardware detection types, and configuring a communication address of each channel to distinguish communication frame instructions of each channel; in addition, in order to avoid the disadvantage of long configuration time when the sampling channels are too many, the configuration unit 24 has a function of reading and writing the configuration file, so that the configuration can be completed by inputting the configuration file, and meanwhile, the current configuration content can be saved and output as the configuration file, so as to facilitate the next use.
The second serial bus communication unit 23 and the first serial bus communication unit 133 perform data interaction in a uniform data frame format through a bus communication interface to realize communication between the upper computer 2 and the MCU 13; on one hand, a data frame d from a bus communication interface is received, the reliability of the data frame is ensured in a way of step word and check code, the correct data frame is sent to a corresponding function module, if the data frame corresponding to a state value c is sent to a display unit, the data frame of a digital parameter b is sent to an adjusting unit; on the other hand, the data/instruction to be sent is packaged and sent to the bus communication interface so as to complete the corresponding function; the data frame may adopt a uniform format to ensure reliability and compatibility of the data frame, and the format is shown in the following table:
synchronous word Address Text Checksum
The data frame format comprises synchronous words, addresses, texts and checksums, wherein the synchronous words and the checksums are used for judging the accuracy of the data frame and eliminating error frames so as to ensure the reliability of data communication; the address is used for identifying the data frame type; the text is the specific content of the data frame and is determined according to actual needs.
In some alternative embodiments, the serial communication data between the host computer 2 and the MCU13 may include six data frames, as shown in table 1 below:
Figure GDA0003105841250000071
the display unit 21 of the upper computer 2 is responsible for reading the corresponding state value data frame from the MCU13, converting the data frame into a visual state parameter number, so as to compare the actual value e with the visual state parameter number and find out a sampling channel for adjusting the conversion parameter;
the adjusting unit 22 is responsible for implementing the adjustment of the conversion parameters as follows:
by sending a digital parameter reading instruction, waiting for receiving a digital parameter data frame fed back from the MCU13, combining the read digital parameter b and an actual value e input through a human-computer interface into a data set and storing the data set;
changing the actual value of the load change detection channel, and repeating the steps until the data sets are enough to meet the calculation dimension requirement (different types of mathematical models need different minimum data set numbers), taking the one-time type mathematical model as an example, and the one-time type mathematical model has 2 conversion parameters, so that the minimum data set number is 2;
processing the data set, and calculating by a corresponding algorithm to obtain conversion parameters of a preset mathematical model;
modifying the conversion parameters of a preset mathematical model in the MCU13 software through a conversion parameter modification instruction;
and if the corresponding state value c displayed by the upper computer 2 is inconsistent with the actual value e after the conversion parameters are modified, changing the load, and repeating the steps until the corresponding state value c is consistent with the actual value e.
In the above conversion parameter adjusting process, the upper computer 2 may further send a conversion parameter reading instruction through the display unit 21 to read the conversion parameter of the predetermined mathematical model in the MCU13, so as to determine whether the adjusting unit 22 successfully modifies the conversion parameter of the predetermined mathematical model in the MCU13, thereby ensuring smooth completion of the conversion parameter adjusting process.
In another aspect, a method for adjusting parameters of a power detection module is provided, including:
acquiring analog quantity of a circuit state through a power supply detection module, converting the analog quantity into a digital parameter, and processing the digital parameter by using a preset mathematical model to obtain a corresponding state value of the analog quantity;
and acquiring the digital parameters and the corresponding state values through an upper computer, and adjusting the conversion parameters of the preset mathematical model according to the digital parameters and the input actual values of the analog quantity so as to enable the corresponding state values to be consistent with the actual values.
The power detection module parameter adjusting method can simplify the power detection module parameter debugging steps and improve the debugging efficiency.
So far, the technical solutions of the present application have been described in connection with the preferred embodiments shown in the drawings, but it is easily understood by those skilled in the art that the scope of the present application is obviously not limited to these specific embodiments. Equivalent changes or substitutions of related technical features can be made by those skilled in the art without departing from the principle of the present application, and the technical scheme after the changes or substitutions will fall into the protection scope of the present application.

Claims (8)

1. A power detection module parameter adjustment system, comprising:
the power supply detection module (1) is used for acquiring an analog quantity (a) of a circuit state, converting the analog quantity (a) into a digital parameter (b), and processing the digital parameter (b) by using a preset mathematical model to obtain a corresponding state value (c) of the analog quantity (a);
the upper computer (2) is used for acquiring the digital parameter (b) and the corresponding state value (c), and adjusting the conversion parameter of the preset mathematical model according to the digital parameter (b) and the input actual value (e) of the analog quantity (a) so as to enable the corresponding state value (c) to be consistent with the actual value (e);
the upper computer (2) comprises:
a display unit (21) for acquiring and displaying a corresponding state value (c) of the analog quantity (a);
an adjusting unit (22) for acquiring the digital parameter (b) and adjusting the conversion parameter of the predetermined mathematical model according to the digital parameter (b) and the input actual value (e) of the analog quantity (a);
the configuration unit (24) is used for configuring the data type transmitted by the bus communication interface.
2. The power detection module parameter adjustment system of claim 1,
the power detection module (1) comprises:
the signal detection port (11) is used for acquiring the analog quantity (a);
a detection conditioning circuit (12) for adjusting the voltage value of the analog quantity (a) to a predetermined range;
and the MCU (13) is used for converting the analog quantity (a) with the voltage value in a preset range into a digital parameter (b), and processing the digital parameter (b) by using the preset mathematical model to obtain a corresponding state value (c) of the analog quantity (a).
3. The power detection module parameter adjustment system of claim 2,
the MCU (13) comprises:
an A/D conversion unit (131) that converts an analog quantity (a) having a voltage value within a predetermined range into a digital parameter (b);
and the processing unit (132) is used for processing the digital parameters (b) by the preset mathematical model to obtain corresponding state values (c) of the analog quantity (a).
4. The power detection module parameter adjustment system of claim 3,
the MCU (13) also comprises a first serial port bus communication unit (133) which acquires and outputs the digital parameters (b) and the corresponding state values (c);
the upper computer (2) further comprises a second serial bus communication unit (23) which receives the digital parameters (b) and the corresponding state values (c) output by the first serial bus communication unit (133).
5. The power detection module parameter adjustment system of claim 4,
the first serial bus communication unit (133) and the second serial bus communication unit (23) perform data interaction in a uniform data frame format through a bus communication interface.
6. The power detection module parameter adjustment system of claim 5,
the data frame format uses the synchronization word as the starting byte for receiving and sending the data frame, and uses the check code to check the data frame.
7. The power detection module parameter adjustment system of claim 6,
the adjusting unit (22) adjusts the type of the predetermined mathematical model according to the digital parameter (b) and the input actual value (e) of the analog quantity (a) so that the corresponding state value (c) coincides with the actual value (e).
8. A power detection module parameter adjustment method is characterized by comprising the following steps:
acquiring an analog quantity (a) of a circuit state through a power supply detection module (1), converting the analog quantity (a) into a digital parameter (b), and processing the digital parameter (b) by using a preset mathematical model to obtain a corresponding state value (c) of the analog quantity (a);
acquiring the digital parameter (b) and the corresponding state value (c) through an upper computer (2), and adjusting the conversion parameter of the preset mathematical model according to the digital parameter (b) and the input actual value (e) of the analog quantity (a) so as to enable the corresponding state value (c) to be consistent with the actual value (e);
in the upper computer (2), the corresponding state value (c) of the analog quantity (a) is obtained and displayed through a display unit (21); acquiring the digital parameter (b) through an adjusting unit (22), and adjusting the conversion parameter of the preset mathematical model according to the digital parameter (b) and the input actual value (e) of the analog quantity (a); and configuring the type of data transmitted by the bus communication interface through a configuration unit (24).
CN201910568717.9A 2019-06-27 2019-06-27 Power supply detection module parameter adjusting system and adjusting method thereof Active CN110361673B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910568717.9A CN110361673B (en) 2019-06-27 2019-06-27 Power supply detection module parameter adjusting system and adjusting method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910568717.9A CN110361673B (en) 2019-06-27 2019-06-27 Power supply detection module parameter adjusting system and adjusting method thereof

Publications (2)

Publication Number Publication Date
CN110361673A CN110361673A (en) 2019-10-22
CN110361673B true CN110361673B (en) 2021-08-03

Family

ID=68215940

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910568717.9A Active CN110361673B (en) 2019-06-27 2019-06-27 Power supply detection module parameter adjusting system and adjusting method thereof

Country Status (1)

Country Link
CN (1) CN110361673B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111930437B (en) * 2020-07-15 2024-03-22 上海沪振物联技术有限公司 Parameter configuration method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202975142U (en) * 2012-12-17 2013-06-05 武汉华中数控股份有限公司 Measuring system based on analog to digital converter
CN105334474A (en) * 2015-11-30 2016-02-17 国网浙江省电力公司宁波供电公司 Distributed on-line power supply monitoring system
CN105974331A (en) * 2016-04-08 2016-09-28 江门职业技术学院 LED driving power supply detection system
CN107634641A (en) * 2017-09-11 2018-01-26 郑州云海信息技术有限公司 A kind of automatic debugging system and method based on Switching Power Supply automatic test platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6681354B2 (en) * 2017-02-13 2020-04-15 矢崎総業株式会社 Power supply device and A / D converter abnormality determination method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN202975142U (en) * 2012-12-17 2013-06-05 武汉华中数控股份有限公司 Measuring system based on analog to digital converter
CN105334474A (en) * 2015-11-30 2016-02-17 国网浙江省电力公司宁波供电公司 Distributed on-line power supply monitoring system
CN105974331A (en) * 2016-04-08 2016-09-28 江门职业技术学院 LED driving power supply detection system
CN107634641A (en) * 2017-09-11 2018-01-26 郑州云海信息技术有限公司 A kind of automatic debugging system and method based on Switching Power Supply automatic test platform

Also Published As

Publication number Publication date
CN110361673A (en) 2019-10-22

Similar Documents

Publication Publication Date Title
CN102478797B (en) Monitoring system with configurable communication protocol
CN104035794B (en) A kind of method and device for realizing logical device firmware upgrade
CN102830987B (en) Burning method
TWI401593B (en) Electronic apparatus with touch panel and updating method for touch panel
CN104517554A (en) Vcom (voltage of common electrode) adjustment device and method of MIPI (mobile industry processor interface) liquid crystal module on basis of FPGA (field programmable gate array)
CN110361673B (en) Power supply detection module parameter adjusting system and adjusting method thereof
CN104104436A (en) Electricity meter data acquisition apparatus with infrared upgrade function and upgrade method thereof
CN106444657A (en) Modbus main station command processing method and master station controller
CN103763067A (en) Method and device for error correction and calibration of communication data packets
CN111181776B (en) MODBUS RTU-based data acquisition method, device and system
CN204288758U (en) Based on the MIPI liquid crystal module Vcom calibration apparatus of FPGA
CN109491362B (en) Multi-bus protocol testing device
CN103186129A (en) Method and system for control system redundancy
CN113434442A (en) Switch and data access method
CN105511442A (en) Man-machine interaction system and method, and fire fighting truck
JP5027277B2 (en) display
CN112363975B (en) Interaction method and interaction system for configuration software and FPGA
CN103905814A (en) Method and device for detecting interface displaying
CN112650133A (en) Weaving check out test set control system
US11126292B2 (en) Electronic apparatus with touch panel and method for updating touch panel
CN106919409A (en) A kind of FPGA unit updating apparatus, system and method
CN112165423A (en) Serial communication method, electronic equipment and storage medium
CN111665412A (en) Method and system for testing aging of module on/off
CN110070791B (en) Wireless technology-based designable analytic intelligent simulation device and simulation method
CN204925753U (en) Instrument monitored control system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant