Environmental analog quantity detection device and method, electronic equipment, storage medium

CN117191115BActive Publication Date: 2026-09-01SHENZHEN CLOU ELECTRONICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311043343.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-17
Publication Date
2026-09-01
Estimated Expiration
2043-08-17

AI Technical Summary

Technical Problem

相关技术中的环境监测管理单元,针对各个信号的检测不能通用,各功能信号检测口不能扩展,以至于在进行环境模拟量检测的过程中造成不便

Benefits of technology

本发明的一种环境模拟量检测装置,包括电源模块、通信模块、中央处理模块、选择电路、并联设置的第一检测模块与第二检测模块。根据本发明的第二方面实施例的一种环境模拟量检测方法,应用于一种环境模拟量检测装置,需要先通过通信模块获取模拟量检测指令,并将模拟量检测指令发送至中央处理模块;再通过中央处理模块对模拟量检测指令进行解析处理,确定需要检测的模拟量类型与检测配置参数,并将模拟量类型发送至选择电路;当模拟量类型为第一类型,经由选择电路连通中央处理模块与第一检测模块,并由中央处理模块根据检测配置参数控制第一检测模块进行第一类型的模拟量检测,得到第一模拟量检测值;当模拟量类型为第二类型,经由选择电路连通中央处理模块与第二检测模块,并由中央处理模块根据检测配置参数控制第二检测模块进行第二类型的模拟量检测,得到第二模拟量检测值。如此一来,便能够对各个类型的环境模拟量进行通用检测。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117191115B_ABST
    Figure CN117191115B_ABST
Patent Text Reader

Abstract

This invention relates to the field of environmental parameter detection technology, and in particular to an environmental analog quantity detection device and method, electronic device, and storage medium. The present invention provides an environmental analog quantity detection method applied to an environmental analog quantity detection device. It requires first obtaining an analog quantity detection command through a communication module and sending it to a central processing module; then, the central processing module parses the analog quantity detection command to determine the analog quantity type and detection configuration parameters, and sends the analog quantity type to a selection circuit; when the analog quantity type is a first type, the central processing module controls a first detection module to perform the first type of analog quantity detection according to the detection configuration parameters, obtaining a first analog quantity detection value; when the analog quantity type is a second type, the central processing module controls a second detection module to perform the second type of analog quantity detection according to the detection configuration parameters, obtaining a second analog quantity detection value. In this way, universal detection of various types of environmental analog quantities can be performed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of environmental parameter detection technology, and in particular to an environmental analog quantity detection device and method, electronic device, and storage medium. Background Technology

[0002] A Battery Management System (BMS) is used for hierarchical and unified management of individual cells, battery packs, and battery stacks. It calculates and analyzes various parameters and operating states of batteries (cells, packs, stacks) based on the characteristics of each level. This enables effective management in areas such as balancing, alarms, and protection, ensuring equal output from each battery pack, intelligent management and maintenance of each battery unit, prevention of overcharging and over-discharging, extension of battery life, and monitoring of battery status.

[0003] The environmental monitoring and management unit (EMU) is part of the battery management system. Its main functions include collecting operational status data from environmental, power, security, and fire protection equipment; acquiring internal temperature and humidity data; calculating internal heat distribution data; controlling fans and air conditioning to regulate the internal temperature based on data from the batteries and other equipment; and recording important logs, events, and temperature data during system operation for uploading. However, current EMU technologies lack universal detection capabilities for various signals, and their signal detection ports cannot be expanded, causing inconvenience during environmental analog quantity testing. Therefore, finding a universal detection method for various types of environmental analog quantities has become a major challenge in the industry. Summary of the Invention

[0004] The present invention aims to at least solve one of the technical problems existing in the prior art. To this end, the present invention proposes an environmental analog quantity detection device and method, electronic device, and storage medium, which can perform universal detection of various types of environmental analog quantities.

[0005] An environmental analog quantity detection device according to a first aspect of the present invention includes a power supply module, a communication module, a central processing module, a selection circuit, and a first detection module and a second detection module arranged in parallel. The power module is used to supply power to the communication module, the central processing module, the selection circuit, the first detection module, and the second detection module; The communication module is used to acquire analog quantity detection instructions and send the analog quantity detection instructions to the central processing module; The central processing module is used to parse and process the analog quantity detection command, determine the type of analog quantity to be detected and the detection configuration parameters, and send the analog quantity type to the selection circuit; after the central processing module is connected to the first detection module, the central processing module controls the first detection module to perform analog quantity detection of the first type according to the detection configuration parameters to obtain a first analog quantity detection value; after the central processing module is connected to the second detection module, the central processing module controls the second detection module to perform analog quantity detection of the second type according to the detection configuration parameters to obtain a second analog quantity detection value. The selection circuit is used to connect the central processing module and the first detection module when the analog quantity type is a first type, or to connect the central processing module and the second detection module when the analog quantity type is a second type.

[0006] According to some embodiments of the present invention, the first detection module includes a first power input terminal, a first ground terminal, a first selection terminal, and a current signal detection terminal; A first resistor is provided between the first power input terminal and the first ground terminal, a first node is provided between the first power input terminal and the first resistor, the first selection terminal is connected to the first node through a second resistor, the current signal detection terminal is connected to the first node through a third resistor, a second node is provided between the current signal detection terminal and the third resistor, and a first bidirectional transient voltage suppression diode is provided between the second node and the first ground terminal.

[0007] According to some embodiments of the present invention, the second detection module further includes a second power input terminal, a second ground terminal, a second selection terminal, and a voltage signal detection terminal; A fourth resistor is provided between the second power input terminal and the second ground terminal, a third node is provided between the second power input terminal and the fourth resistor, the second selection terminal is connected to the third node through a fifth resistor, the voltage signal detection terminal is connected to the third node through a sixth resistor, a fourth node is provided between the voltage signal detection terminal and the sixth resistor, and a second bidirectional transient voltage suppression diode is provided between the fourth node and the second ground terminal.

[0008] According to some embodiments of the present invention, the environmental simulation quantity detection device further includes a third detection module arranged in parallel with the first detection module and the second detection module; The third detection module also includes a third power input terminal, a third ground terminal, a third selection terminal, and a temperature signal detection terminal; A seventh resistor is provided between the third power input terminal and the third ground terminal. A fifth node is provided between the seventh resistor and the third ground terminal. The third selection terminal is connected to the fifth node through an eighth resistor. The temperature signal detection terminal is connected to the fifth node through a ninth resistor. A sixth node is provided between the temperature signal detection terminal and the ninth resistor. A third bidirectional transient voltage suppression diode is provided between the sixth node and the third ground terminal.

[0009] According to some embodiments of the present invention, the power supply module includes a switching power supply, a first isolated power supply, and a second isolated power supply; The switching power supply is connected to a first isolation power supply and a second isolation power supply; wherein, the first isolation power supply is used to supply power to the central processing module, the selection circuit, the first detection module and the second detection module, and the second isolation power supply is used to supply power to the communication module.

[0010] An environmental analog quantity detection method according to a second aspect of the present invention is applied to an environmental analog quantity detection device, the method comprising: The analog quantity detection command is obtained through the communication module and sent to the central processing module. The central processing module parses and processes the analog quantity detection command to determine the type of analog quantity to be detected and the detection configuration parameters, and sends the analog quantity type to the selection circuit. When the analog quantity type is the first type, the central processing module and the first detection module are connected via the selection circuit, and the central processing module controls the first detection module to perform analog quantity detection of the first type according to the detection configuration parameters to obtain the first analog quantity detection value. When the analog quantity type is the second type, the central processing module and the second detection module are connected via the selection circuit, and the central processing module controls the second detection module to perform analog quantity detection of the second type according to the detection configuration parameters to obtain the second analog quantity detection value.

[0011] According to some embodiments of the present invention, the second type of analog quantity detection is a temperature-type analog quantity detection, and the central processing module includes an operational amplifier; The step of the central processing module controlling the second detection module to perform the second type of analog quantity detection according to the detection configuration parameters, and obtaining the second analog quantity detection value, includes: The central processing module controls the second detection module to perform analog quantity detection of the temperature type according to the detection configuration parameters, and obtains the temperature detection value. The temperature detection value is buffered by the operational amplifier to obtain the second analog detection value.

[0012] According to some embodiments of the present invention, the first type of analog quantity detection is a current type analog quantity detection, and the central processing module includes an operational amplifier and a built-in feedback resistor, wherein the operational amplifier cooperates with the built-in feedback resistor to perform the detection of the first type of analog quantity; The step of the central processing module controlling the first detection module to perform the first type of analog quantity detection according to the detection configuration parameters to obtain the first analog quantity detection value includes: The central processing module adjusts the resistance value of the built-in feedback resistor based on the detection configuration parameters to determine the current signal amplification gain. The analog quantity of the current type is detected based on the current signal amplification gain to obtain the first analog quantity detection value.

[0013] Thirdly, embodiments of the present invention provide an electronic device, including: a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the environmental analog quantity detection method as described in any one of the embodiments of the first aspect of the present invention.

[0014] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing a program that is executed by a processor to implement the environmental analog quantity detection method as described in any one of the embodiments of the first aspect of the present invention.

[0015] The environmental analog quantity detection device, method, electronic device, and storage medium according to embodiments of the present invention have at least the following beneficial effects: An environmental analog quantity detection device according to the present invention includes a power supply module, a communication module, a central processing module, a selection circuit, and a first detection module and a second detection module connected in parallel. An environmental analog quantity detection method according to a second aspect of the present invention, applied to an environmental analog quantity detection device, requires first obtaining an analog quantity detection command through the communication module and sending the command to the central processing module; then, the central processing module parses the command to determine the type of analog quantity to be detected and the detection configuration parameters, and sends the analog quantity type to the selection circuit; when the analog quantity type is a first type, the central processing module and the first detection module are connected via the selection circuit, and the central processing module controls the first detection module to perform the first type of analog quantity detection according to the detection configuration parameters, obtaining a first analog quantity detection value; when the analog quantity type is a second type, the central processing module and the second detection module are connected via the selection circuit, and the central processing module controls the second detection module to perform the second type of analog quantity detection according to the detection configuration parameters, obtaining a second analog quantity detection value. In this way, universal detection of various types of environmental analog quantities can be performed.

[0016] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description

[0017] The above and / or additional aspects and advantages of the present invention will become apparent and readily understood from the description of the embodiments taken in conjunction with the following drawings, in which: Figure 1A , Figure 1B , Figure 1C This is a schematic diagram of an optional structure of the environmental simulation quantity detection device provided in an embodiment of the present invention; Figure 2 This is a schematic diagram of the structure of the first detection module provided in an embodiment of the present invention; Figure 3 This is a schematic diagram of the structure of the second detection module provided in an embodiment of the present invention; Figure 4 This is a schematic diagram of the third detection module structure provided in an embodiment of the present invention; Figure 5 This is a schematic diagram of the environmental simulation quantity detection method provided in an embodiment of the present invention; Figure 6 This is another schematic diagram of the environmental simulation quantity detection method provided in an embodiment of the present invention; Figure 7 This is another schematic diagram of the environmental simulation quantity detection method provided in an embodiment of the present invention; Figure 8 This is a schematic diagram of the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0018] Embodiments of the present invention are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and should not be construed as limiting the present invention.

[0019] In the description of this invention, "several" means one or more, "more than" means two or more, "greater than," "less than," and "exceeding" are understood to exclude the stated number, while "above," "below," and "within" are understood to include the stated number. The use of "first" and "second" in the description is merely for distinguishing technical features and should not be construed as indicating or implying relative importance, or implicitly indicating the number of indicated technical features, or implicitly indicating the order of the indicated technical features.

[0020] In the description of this invention, it should be understood that the orientation descriptions, such as up, down, left, right, front, back, etc., are based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limiting this invention.

[0021] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "illustrative embodiment," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0022] In the description of this invention, it should be noted that, unless otherwise explicitly defined, terms such as "setting," "installing," and "connecting" should be interpreted broadly. Those skilled in the art can reasonably determine the specific meaning of these terms in this invention in conjunction with the specific content of the technical solution. Furthermore, the identification of specific steps in the following text does not imply a limitation on the order of steps or execution logic. The execution order and logic between each step should be understood and inferred from the content described in the embodiments.

[0023] A Battery Management System (BMS) is used for hierarchical and unified management of individual cells, battery packs, and battery stacks. It calculates and analyzes various parameters and operating states of batteries (cells, packs, stacks) based on the characteristics of each level. This enables effective management in areas such as balancing, alarms, and protection, ensuring equal output from each battery pack, intelligent management and maintenance of each battery unit, prevention of overcharging and over-discharging, extension of battery life, and monitoring of battery status.

[0024] The environmental monitoring and management unit (EMU) is part of the battery management system. Its main functions include collecting operational status data from environmental, power, security, and fire protection equipment; acquiring internal temperature and humidity data; calculating internal heat distribution data; controlling fans and air conditioning to regulate the internal temperature based on data from the batteries and other equipment; and recording important logs, events, and temperature data during system operation for uploading. However, current EMU technologies lack universal detection capabilities for various signals, and their signal detection ports cannot be expanded, causing inconvenience during environmental analog quantity testing. Therefore, finding a universal detection method for various types of environmental analog quantities has become a major challenge in the industry.

[0025] The present invention aims to at least solve one of the technical problems existing in the prior art. To this end, the present invention proposes an environmental analog quantity detection device and method, electronic device, and storage medium, which can perform universal detection of various types of environmental analog quantities.

[0026] Reference Figure 1A An environmental analog quantity detection device 100 according to a first aspect embodiment of the present invention includes a power supply module 110, a communication module 120, a central processing module 130, a selection circuit 140, and a first detection module 150 and a second detection module 160 arranged in parallel.

[0027] Reference Figure 1B In some embodiments, the environmental simulation quantity detection device 100 may include, in addition to the first detection module 150 and the second detection module 160 arranged in parallel, a third detection module, a fourth detection module, ..., an Nth detection module arranged in parallel with the first detection module 150 and the second detection module 160.

[0028] The power supply module 110 supplies power to the communication module 120, the central processing module 130, the selection circuit 140, the first detection module 150, and the second detection module 160. In some embodiments, the communication module 120, the central processing module 130, the selection circuit 140, or the first detection module 150 and the second detection module 160 need to operate normally when powered on, and therefore require power supply from the power supply module 110.

[0029] Reference Figure 1C In some embodiments, the power supply module 110 of the environmental analog quantity detection device 100 includes a switching power supply 111, a first isolation power supply 112, and a second isolation power supply 113. The switching power supply 111 is connected to the first isolation power supply 112 and the second isolation power supply 113. The first isolation power supply 112 supplies power to the central processing module 130, the selection circuit 140, the first detection module 150, and the second detection module 160, while the second isolation power supply 113 supplies power to the communication module 120. It should be noted that because the central processing module 130, the selection circuit 140, the first detection module 150, and the second detection module 160 are interconnected and closely linked, they are all powered by the first isolation power supply 112. The communication module 120 is more independent than the other components within the environmental analog quantity detection device 100, therefore it is powered by the second isolation power supply 113. In this way, when the central processing module 130, selection circuit 140, first detection module 150 and second detection module 160 experience line faults and power outages, the communication module 120 can still maintain normal communication with the outside world, which improves safety performance and facilitates the execution of operation and maintenance tasks.

[0030] The communication module 120 is used to acquire analog signal detection commands and send them to the central processing module 130. It should be noted that the communication module 120 can be used not only to acquire analog signal detection commands but also for other types of communication interactions with external devices, such as data uploading and fault alarms. In some exemplary embodiments, after the environmental analog signal detection device 100 obtains the analog signal detection value, it can upload it using the communication module 120. The communication module 120 may include hardware circuitry based on RS422 communication, RS485 communication, or RS232 communication. It should be understood that the optional implementations of the communication module 120 are diverse and may include, but are not limited to, the specific embodiments described above.

[0031] The central processing module 130 parses and processes analog signal detection commands, determines the type of analog signal to be detected and the detection configuration parameters, and sends the analog signal type to the selection circuit 140. After the central processing module 130 is connected to the first detection module 150, it controls the first detection module 150 to perform analog signal detection of the first type according to the detection configuration parameters, and obtains the first analog signal detection value. After the central processing module 130 is connected to the second detection module 160, it controls the second detection module 160 to perform analog signal detection of the second type according to the detection configuration parameters, and obtains the second analog signal detection value. In some more specific embodiments, the central processing module 130 may include a microcontroller.

[0032] The selection circuit 140 is used to connect the central processing module 130 and the first detection module 150 when the analog signal type is type 1, or to connect the central processing module 130 and the second detection module 160 when the analog signal type is type 2. In some more specific embodiments, the selection circuit 140 may include an 8-to-1 analog switch chip connected to the positive terminal of the operational amplifier in the central processing module 130, while the negative terminal of the operational amplifier has two voltage divider resistors reserved. The analog switch chip may have three configurable selection channels, H1, H2, and H3, which can be selected by software configuration. For example, H1H2H3=001 corresponds to channel 1, H1H2H3=010 corresponds to channel 2, H1H2H3=011 corresponds to channel 3, ..., H1H2H3=111 corresponds to channel 8.

[0033] It should be noted that different types of analog quantities require different detection modules for acquisition. For example, the first detection module 150 can be a current detection module, the second detection module 160 can be a voltage detection module, and some embodiments may also include a third detection module for temperature detection. Therefore, with the cooperation of the central processing module 130 and the selection circuit 140, the central processing module 130 can parse the type of analog quantity to be detected and the corresponding detection configuration parameters. The selection circuit 140 establishes a connection between the central processing module 130 and the detection module according to the analog quantity type, and then the central processing module 130 controls the detection module to perform analog quantity detection based on the corresponding detection configuration parameters. In this way, universal detection of various types of environmental analog quantities can be achieved.

[0034] Reference Figure 2 According to some embodiments of the present invention, the first detection module 150 includes a first power input terminal 151, a first ground terminal 152, a first selection terminal 155 and a current signal detection terminal 157; A first resistor 153 is provided between the first power input terminal 151 and the first ground terminal 152. A first node 154 is provided between the first power input terminal 151 and the first resistor 153. A first selection terminal 155 is connected to the first node 154 through a second resistor 156. A current signal detection terminal 157 is connected to the first node 154 through a third resistor 158. A second node 159 is provided between the current signal detection terminal 157 and the third resistor 158. A first bidirectional transient voltage suppression diode 1510 is provided between the second node 159 and the first ground terminal 152. It should be noted that when measuring the current signal, the first resistor 153 and the third resistor 158 form a voltage divider circuit, wherein the first bidirectional transient voltage suppression diode 1510 is a protective device, and the second resistor 156 can be used to protect the selection circuit 140 connected to the first selection terminal 155. Specifically, the voltage divider circuit composed of the first resistor 153 and the third resistor 158 in the first detection module 150 can generate a first analog detection value based on the current value input to the current signal detection terminal 157. In some more specific embodiments, a first capacitor 1511 may be provided between the first selection terminal 155 and the first ground terminal 152. The first capacitor 1511 and the second resistor 156 form an RC filter circuit, which can better protect the selection circuit 140 connected to the first selection terminal 155. It should be understood that the first capacitor 1511 is used to filter the signal input to the selection circuit 140, and may be omitted in some embodiments.

[0035] Reference Figure 3 According to some embodiments of the present invention, the second detection module 160 further includes a second power input terminal 161, a second ground terminal 162, a second selection terminal 165 and a voltage signal detection terminal 167; A fourth resistor 163 is provided between the second power input terminal 161 and the second ground terminal 162. A third node 164 is provided between the second power input terminal 161 and the fourth resistor 163. The second selection terminal 165 is connected to the third node 164 through a fifth resistor 166. The voltage signal detection terminal 167 is connected to the third node 164 through a sixth resistor 168. A fourth node 169 is provided between the voltage signal detection terminal 167 and the sixth resistor 168. A second bidirectional transient voltage suppression diode 1610 is provided between the fourth node 169 and the second ground terminal 162. It should be noted that when measuring the current signal, the fourth resistor 163 and the sixth resistor 168 form a voltage divider circuit, wherein the second bidirectional transient voltage suppression diode 1610 is a protective device, and the fifth resistor 166 can be used to protect the selection circuit 140 connected to the second selection terminal 165. Specifically, the voltage divider circuit composed of the fourth resistor 163 and the sixth resistor 168 in the second detection module 160 can generate a second analog detection value based on the voltage value input to the voltage signal detection terminal 167. In some more specific embodiments, a second capacitor 1611 may be provided between the second selection terminal 165 and the second ground terminal 162. The second capacitor 1611 and the fifth resistor 166 form an RC filter circuit, which can better protect the selection circuit 140 connected to the second selection terminal 165. It should be understood that the second capacitor 1611 is used to filter the signal input to the selection circuit 140, and may be omitted in some embodiments.

[0036] Reference Figure 4 According to some embodiments of the present invention, the environmental analog quantity detection device 100 further includes a third detection module arranged in parallel with the first detection module 150 and the second detection module 160; wherein the third detection module further includes a third power input terminal 171, a third ground terminal 172, a third selection terminal 175 and a temperature signal detection terminal 177; A seventh resistor 173 is provided between the third power input terminal 171 and the third ground terminal 172. A fifth node 174 is provided between the seventh resistor 173 and the third ground terminal 172. The third selection terminal 175 is connected to the fifth node 174 through an eighth resistor 176. The temperature signal detection terminal 177 is connected to the fifth node 174 through a ninth resistor 178. A sixth node 179 is provided between the temperature signal detection terminal 177 and the ninth resistor 178. A third bidirectional transient voltage suppression diode 1710 is provided between the sixth node 179 and the third ground terminal 172. It should be noted that when measuring the temperature signal, the seventh resistor 173 and the ninth resistor 178 form a voltage divider circuit. The temperature signal detection terminal 177 can be connected to a thermistor, whose resistance changes accordingly with the change of ambient temperature. Specifically, through the voltage divider circuit composed of the seventh resistor 173 and the ninth resistor 178 in the third detection module, combined with the resistance change of the thermistor, a third analog detection value can be generated according to the change of ambient temperature. The third bidirectional transient voltage suppressor diode 1710 is a protective device, and the eighth resistor 176 can be used to protect the selection circuit 140 connected to the third selection terminal 175. In some more specific embodiments, a third capacitor 1711 can also be provided between the third selection terminal 175 and the third ground terminal 172, wherein the third capacitor 1711 and the eighth resistor 176 form an RC filter circuit, which can provide better protection for the selection circuit 140 connected to the third selection terminal 175. It should be understood that the third capacitor 1711 is used to filter the signal input to the selection circuit 140, and can be omitted in some embodiments.

[0037] Reference Figure 5 According to a second aspect of the present invention, step S500 of an environmental analog quantity detection method is applied to an environmental analog quantity detection device 100. The environmental analog quantity detection method may include, but is not limited to: Step S501: Obtain the analog quantity detection command through the communication module and send the analog quantity detection command to the central processing module; Step S502: The central processing module parses and processes the analog quantity detection command to determine the type of analog quantity to be detected and the detection configuration parameters, and sends the analog quantity type to the selection circuit. Step S503: When the analog quantity type is the first type, the central processing module and the first detection module are connected via the selection circuit, and the central processing module controls the first detection module to perform analog quantity detection of the first type according to the detection configuration parameters to obtain the first analog quantity detection value. In step S504, when the analog quantity type is the second type, the central processing module and the second detection module are connected via the selection circuit, and the central processing module controls the second detection module to perform the second type of analog quantity detection according to the detection configuration parameters to obtain the second analog quantity detection value.

[0038] The above-described method for detecting environmental analog quantities in an environmental analog quantity detection device allows for the connection between a central processing module and a corresponding detection module via a selection circuit, based on the type of analog quantity to be detected and the detection configuration parameters. The central processing module then controls the corresponding detection module to collect environmental analog quantities according to the detection configuration parameters, thereby enabling general detection of various types of environmental analog quantities.

[0039] In step S501 of some embodiments, an analog signal detection command is obtained through the communication module and then sent to the central processing module. It should be noted that the communication module is used to obtain the analog signal detection command and send it to the central processing module. It should also be noted that the communication module can be used not only to obtain the analog signal detection command, but also for other types of communication interactions with external devices, such as data uploading and fault alarms.

[0040] In step S502 of some embodiments, the central processing module parses and processes the analog quantity detection command to determine the type of analog quantity to be detected and the detection configuration parameters, and sends the analog quantity type to the selection circuit. It should be noted that the types of analog quantities that can be detected in this application embodiment are diverse, including current signals, voltage signals, and temperature signals. The detection configuration parameters refer to the parameter information required for analog quantity detection. For example, when detecting an analog temperature signal, the detection configuration parameters can be set to adjust the central processing module to buffer mode, using the operational amplifier in the central processing module to adjust the impedance of the tested signal and buffer the signal about to be input to the analog-to-digital converter. As another example, when detecting an analog current signal, the detection configuration parameters can be set to adjust the central processing module to built-in feedback resistor mode (PGA mode), and the resistance value of the built-in feedback resistor can be set to 10K, 30K, 70K, or 150K according to the configuration of the PGA_GAIN register based on the detection configuration parameters. It should be understood that the selectable types of detection configuration parameters are diverse and may include, but are not limited to, the specific embodiments mentioned above.

[0041] It needs to be clarified that sending the analog signal type to the selection circuit aims to enable the selection circuit to select the corresponding output channel based on the analog signal type, thereby connecting the central processing module and the corresponding detection module. The analog signal type can be represented by a binary number; for example, 001 represents a temperature signal type, 011 represents a voltage signal detection type, and 101 represents a current signal detection type. In some more specific embodiments, the selection circuit may include an 8-to-1 analog switch (CD4 step S501 chip) connected to the positive terminal of an operational amplifier in the central processing module, while the negative terminal of the operational amplifier has two reserved voltage divider resistors. The analog switch (CD4 step S501 chip) can have three configurable selection channels: H1, H2, and H3. Different channels are selected through software configuration; for example, H1H2H3=001 corresponds to channel 1, H1H2H3=010 corresponds to channel 2, H1H2H3=011 corresponds to channel 3, ..., H1H2H3=111 corresponds to channel 8. In this way, the selection circuit can connect the central processing module and the corresponding detection module by using the analog quantity type represented by binary numbers.

[0042] In step S503 of some embodiments, when the analog quantity type is the first type, the central processing module and the first detection module are connected via a selection circuit, and the central processing module controls the first detection module to perform analog quantity detection of the first type according to the detection configuration parameters to obtain the first analog quantity detection value.

[0043] Reference Figure 6 According to some embodiments of the present invention, the first type of analog quantity detection is a current-type analog quantity detection. The central processing module includes an operational amplifier and a built-in feedback resistor, wherein the operational amplifier, in conjunction with the built-in feedback resistor, performs the first type of analog quantity detection. Step S503 involves the central processing module controlling the first detection module to perform the first type of analog quantity detection according to the detection configuration parameters, obtaining the first analog quantity detection value, which may include, but is not limited to: Step S601: The central processing module adjusts the resistance value of the built-in feedback resistor based on the detection configuration parameters to determine the current signal amplification gain. Step S602: Detect the analog quantity of current type based on the current signal amplification gain to obtain the first analog quantity detection value.

[0044] It should be noted that in some embodiments, the current signal detection terminal of the first detection module is connected to the non-inverting input terminal of the operational amplifier, the output port of the operational amplifier is connected to the analog-to-digital converter, and the built-in feedback resistor is placed between the output port and the inverting input terminal of the operational amplifier. After the current signal is detected at the current signal detection terminal, it is connected to the analog-to-digital converter via the output port to convert the analog current signal into a digital signal. Since the built-in feedback resistor is placed between the output port and the inverting input terminal of the operational amplifier, by adjusting the built-in feedback resistor, a fixed gain amplification effect can be achieved on the detected current signal. For example, the gain supported by the operational amplifier in conjunction with the built-in feedback resistor can be x2, x4, x8, or x16.

[0045] In some more specific embodiments, by adjusting the central processing module to the built-in feedback resistor mode (PGA mode), a fixed gain amplification effect can be achieved by adjusting the on-chip resistor values. Supported gains are x2, x4, x8, and x16, eliminating the need for external feedback resistors. In the built-in feedback resistor mode, based on the configuration of the PGA_GAIN register, the first built-in feedback resistor Rf has a value of 10K, 30K, 70K, or 150Kohm, and the second built-in feedback resistor R1 has a fixed value of 10Kohm. Therefore, the formula for calculating the in-phase gain in the built-in feedback resistor mode can be expressed as:

[0046] In this way, we can obtain in-phase amplification factors of x2, x4, x8, and x16 to achieve the gain supported by the above operational amplifier in conjunction with the built-in feedback resistor.

[0047] In the embodiments of this application shown in steps S601 to S602, the central processing module first adjusts the value of the built-in feedback resistor based on the detection configuration parameters to determine the current signal amplification gain. Then, based on the current signal amplification gain, the analog quantity of the current type is detected to obtain a first analog quantity detection value. It should be noted that the detection configuration parameters refer to the parameter information required for analog quantity detection. For example, when performing analog quantity detection of a current signal, the detection configuration parameters can be set to adjust the central processing module to the built-in feedback resistor mode (PGA mode), and the value of the built-in feedback resistor can be 10K, 30K, 70K, or 150K according to the configuration of the PGA_GAIN register based on the detection configuration parameters. It should be understood that the selectable types of detection configuration parameters are diverse and may include, but are not limited to, the specific embodiments mentioned above. Therefore, by adjusting the value of the built-in feedback resistor to determine the current signal amplification gain, and then detecting the analog quantity of the current type based on the current signal amplification gain, a first analog quantity detection value is obtained. In this way, the detection of the current signal and the determination of the first analog quantity detection value used to characterize the strength of the current signal can be achieved.

[0048] In step S504 of some embodiments, when the analog quantity type is the second type, the central processing module and the second detection module are connected via a selection circuit, and the central processing module controls the second detection module to perform analog quantity detection of the second type according to the detection configuration parameters to obtain the second analog quantity detection value.

[0049] Reference Figure 7 According to some embodiments of the present invention, the second type of analog quantity detection is a temperature-type analog quantity detection, and the central processing module includes an operational amplifier. Step S504 involves the central processing module controlling the second detection module to perform the second type of analog quantity detection according to the detection configuration parameters, obtaining a second analog quantity detection value, which may include, but is not limited to: Step S701: The central processing module controls the second detection module to perform analog quantity detection of temperature type according to the detection configuration parameters, and obtains the temperature detection value. In step S702, the temperature detection value is buffered by an operational amplifier to obtain the second analog detection value.

[0050] It should be noted that in some embodiments, the temperature signal detection terminal of the second detection module is connected to the non-inverting input terminal of the operational amplifier, the output port of the operational amplifier is connected to the analog-to-digital converter, and the output port of the operational amplifier is connected to its inverting input terminal. After the temperature signal detection terminal detects the ambient temperature, it is connected to the analog-to-digital converter via the output port to convert the analog temperature signal into a digital signal. The operational amplifier positioned between the temperature signal detection terminal and the analog-to-digital converter provides impedance adjustment for the analog-to-digital converter.

[0051] In the embodiments of this application shown in steps S701 to S702, the central processing module first controls the second detection module to perform analog quantity detection of temperature type according to the detection configuration parameters to obtain the temperature detection value. Then, the temperature detection value is buffered by the operational amplifier to obtain the second analog quantity detection value. It should be noted that the detection configuration parameters refer to the parameter information required for analog quantity detection. For example, when performing analog quantity detection of temperature signals, the detection configuration parameters can be set to adjust the central processing module to buffer mode, using the operational amplifier in the central processing module to adjust the impedance of the tested signal and buffer the signal about to be input to the analog-to-digital converter. In some embodiments, when the input signal frequency is compatible with the gain-bandwidth product (GBW) of the operational amplifier, the central processing module configured in buffer mode can enhance the temperature detection value through the operational amplifier, thereby improving the driving capability of the input signal of the analog-to-digital converter. Therefore, by controlling the second detection module to perform analog quantity detection of temperature type, obtaining the temperature detection value, and then buffering the temperature detection value through the operational amplifier, the second analog quantity detection value is obtained. In this way, the ambient temperature can be detected, and the second analog quantity detection value used to characterize the ambient temperature can be determined.

[0052] Figure 8 An electronic device 800 according to an embodiment of the present invention is shown. The electronic device 800 includes: a processor 801, a memory 802, and a computer program stored in the memory 802 and executable on the processor 801. When the computer program is executed, it is used to perform the above-described environmental analog quantity detection method.

[0053] The processor 801 and the memory 802 can be connected via a bus or other means.

[0054] The memory 802, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs, such as the environmental analog quantity detection method described in this embodiment of the invention. The processor 801 implements the above-described environmental analog quantity detection method by running the non-transitory software program and instructions stored in the memory 802.

[0055] The memory 802 may include a program storage area and a data storage area. The program storage area may store the operating system and application programs required for at least one function. The data storage area may store the environmental analog quantity detection method described above. Furthermore, the memory 802 may include high-speed random access memory 802, and may also include non-transitory memory 802, such as at least one storage device, flash memory, or other non-transitory solid-state storage device. In some embodiments, the memory 802 may optionally include memory 802 remotely located relative to the processor 801, and these remote memories 802 may be connected to the electronic device 800 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0056] The non-transient software program and instructions required to implement the above-described environmental analog quantity detection method are stored in memory 802. When executed by one or more processors 801, the above-described environmental analog quantity detection method is executed, for example, executing... Figure 5 Method steps S501 to S504 in the above. Figure 6 Method steps S601 to S602, Figure 7 The method steps S701 to S702.

[0057] This invention also provides a computer-readable storage medium storing computer-executable instructions for performing the above-described environmental analog quantity detection method.

[0058] In one embodiment, the computer-readable storage medium stores computer-executable instructions that are executed by one or more control processors, for example, executing... Figure 5 Method steps S501 to S504 in the above. Figure 6 Method steps S601 to S602, Figure 7 The method steps S701 to S702.

[0059] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0060] It will be understood by those skilled in the art that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components can be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, which can include computer storage media (or non-transitory media) and communication media (or transient media). As is known to those skilled in the art, the term computer storage media includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storage, magnetic cartridges, magnetic tape, storage device storage or other magnetic storage devices, or any other medium that can be used to store desired information and is accessible to a computer. Furthermore, as is known to those skilled in the art, communication media typically include computer-readable instructions, data structures, program modules, or other data in modulated data signals such as carrier waves or other transmission mechanisms, and may include any information delivery medium. It should also be understood that the various embodiments provided in this invention can be arbitrarily combined to achieve different technical effects.

[0061] The above provides a detailed description of the preferred embodiments of the present invention. However, the present invention is not limited to the above embodiments. Those skilled in the art can make various equivalent modifications or substitutions without departing from the spirit of the present invention. All such equivalent modifications or substitutions are included within the scope defined by the claims of the present invention.

Claims

1. An environmental simulation quantity detection device, characterized in that, It includes a power supply module, a communication module, a central processing module, a selection circuit, and a first detection module and a second detection module connected in parallel; The power module is used to supply power to the communication module, the central processing module, the selection circuit, the first detection module, and the second detection module; The communication module is used to acquire analog quantity detection instructions and send the analog quantity detection instructions to the central processing module; The central processing module is used to parse and process the analog quantity detection command, determine the type of analog quantity to be detected and the detection configuration parameters, and send the analog quantity type to the selection circuit; The selection circuit is used to connect the central processing module and the first detection module when the analog quantity type is a first type, or to connect the central processing module and the second detection module when the analog quantity type is a second type. After the central processing module is connected to the first detection module, the central processing module controls the first detection module to perform the first type of analog quantity detection according to the detection configuration parameters to obtain the first analog quantity detection value; after the central processing module is connected to the second detection module, the central processing module controls the second detection module to perform the second type of analog quantity detection according to the detection configuration parameters to obtain the second analog quantity detection value. The first detection module includes a first power input terminal, a first ground terminal, a first selection terminal, and a current signal detection terminal. A first resistor is provided between the first power input terminal and the first ground terminal, a first node is provided between the first power input terminal and the first resistor, the first selection terminal is connected to the first node through a second resistor, the current signal detection terminal is connected to the first node through a third resistor, a second node is provided between the current signal detection terminal and the third resistor, and a first bidirectional transient voltage suppression diode is provided between the second node and the first ground terminal. The second detection module includes a second power input terminal, a second ground terminal, a second selection terminal, and a voltage signal detection terminal. A fourth resistor is provided between the second power input terminal and the second ground terminal, a third node is provided between the second power input terminal and the fourth resistor, the second selection terminal is connected to the third node through a fifth resistor, the voltage signal detection terminal is connected to the third node through a sixth resistor, a fourth node is provided between the voltage signal detection terminal and the sixth resistor, and a second bidirectional transient voltage suppression diode is provided between the fourth node and the second ground terminal.

2. The environmental simulation quantity detection device according to claim 1, characterized in that, The environmental simulation quantity detection device also includes a third detection module connected in parallel with the first detection module and the second detection module; The third detection module includes a third power input terminal, a third ground terminal, a third selection terminal, and a temperature signal detection terminal; A seventh resistor is provided between the third power input terminal and the third ground terminal. A fifth node is provided between the seventh resistor and the third ground terminal. The third selection terminal is connected to the fifth node through an eighth resistor. The temperature signal detection terminal is connected to the fifth node through a ninth resistor. A sixth node is provided between the temperature signal detection terminal and the ninth resistor. A third bidirectional transient voltage suppression diode is provided between the sixth node and the third ground terminal.

3. The environmental simulation quantity detection device according to claim 1 or 2, characterized in that, The power module includes a switching power supply, a first isolation power supply, and a second isolation power supply; The switching power supply is connected to a first isolation power supply and a second isolation power supply; wherein, the first isolation power supply is used to supply power to the central processing module, the selection circuit, the first detection module and the second detection module, and the second isolation power supply is used to supply power to the communication module.

4. A method for detecting environmental simulation quantities, characterized in that, The method, applied to the environmental simulation quantity detection device according to any one of claims 1 to 3, comprises: The analog quantity detection command is obtained through the communication module and sent to the central processing module. The central processing module parses and processes the analog quantity detection command to determine the type of analog quantity to be detected and the detection configuration parameters, and sends the analog quantity type to the selection circuit. When the analog quantity type is the first type, the central processing module and the first detection module are connected via the selection circuit, and the central processing module controls the first detection module to perform analog quantity detection of the first type according to the detection configuration parameters to obtain the first analog quantity detection value. When the analog quantity type is the second type, the central processing module and the second detection module are connected via the selection circuit, and the central processing module controls the second detection module to perform analog quantity detection of the second type according to the detection configuration parameters to obtain the second analog quantity detection value.

5. The method according to claim 4, characterized in that, The second type of analog signal detection is temperature-type analog signal detection, and the central processing module includes an operational amplifier; The step of the central processing module controlling the second detection module to perform the second type of analog quantity detection according to the detection configuration parameters, and obtaining the second analog quantity detection value, includes: The central processing module controls the second detection module to perform analog quantity detection of the temperature type according to the detection configuration parameters, and obtains the temperature detection value. The temperature detection value is buffered by the operational amplifier to obtain the second analog detection value.

6. The method according to claim 4, characterized in that, The first type of analog quantity detection is current-type analog quantity detection. The central processing module includes an operational amplifier and a built-in feedback resistor, wherein the operational amplifier works with the built-in feedback resistor to perform the first type of analog quantity detection. The step of the central processing module controlling the first detection module to perform the first type of analog quantity detection according to the detection configuration parameters to obtain the first analog quantity detection value includes: The central processing module adjusts the resistance value of the built-in feedback resistor based on the detection configuration parameters to determine the current signal amplification gain. The analog quantity of the current type is detected based on the current signal amplification gain to obtain the first analog quantity detection value.

7. An electronic device, characterized in that, include: The device includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the environmental analog quantity detection method as described in any one of claims 4 to 6.

8. A computer-readable storage medium, characterized in that, The storage medium stores a program that is executed by a processor to implement the environmental analog quantity detection method as described in any one of claims 4 to 6.

Citation Information

Patent Citations

  • Multi-type analog signal processing circuit supplied with power through single power supply

    CN104571252A

  • Multi-channel direct current analog detecting device

    CN105137234A