RLC circuit detection method, device and electronic equipment
By determining the initial and target electrical components in the RLC circuit and storing them to the corresponding areas, the problem of low efficiency in search of resistors, inductances and capacitance is solved, and the complete identification and merging of devices in the circuit is achieved, reducing subsequent workload.
Patent Information
- Application Number
- CN202310439931.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-21
- Publication Date
- 2025-08-19
- Estimated Expiration
- 2043-04-21
AI Technical Summary
The efficiency of finding resistors, inductors and capacitors in RLC circuits is low, and there are often errors or miscalculations, resulting in inconvenience in subsequent work.
The initial electrical components are determined through the first detection and stored in the corresponding area, and the intermediate detection determines the target electrical components and stored in the corresponding area until all device statuses in the database are marked states, thereby realizing complete detection of the RLC circuit.
It improves the search efficiency of resistors, inductors and capacitors in RLC circuits, ensures that all devices are accurately identified, and reduces the workload of subsequent analysis and calculations.
Smart Images

Figure CN116298644B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of circuit detection technology, and in particular to a detection method, device, computer-readable storage medium, and electronic device for an RLC circuit. Background Art
[0002] New power systems contain a large number of basic loads, including resistors, inductors, capacitors, etc., as well as loads formed by the combination of resistors, inductors, and capacitors. In RLC circuits, in order to ensure that all resistors, inductors, and capacitors are found, it is usually necessary to manually search one by one, resulting in low search efficiency and frequent miscalculations or omissions, causing a lot of inconvenience for subsequent work. Summary of the Invention
[0003] The main purpose of the present application is to provide a detection method, device, computer-readable storage medium and electronic device for an RLC circuit, so as to at least solve the problem of low efficiency in finding resistance, inductance and capacitance in an RLC circuit in the prior art.
[0004] To achieve the above-mentioned purpose, according to one aspect of the present application, a method for detecting an RLC circuit is provided, the method comprising: a first detection step: detecting the RLC circuit, determining the initial electrical components in the RLC circuit, storing the initial electrical components in the corresponding target area in the detection generation sequence, and modifying the state of the initial electrical components in the database from an unmarked state to a marked state, wherein the database stores all the capacitors, resistors and inductors in the RLC circuit, the initial electrical components are one of the following: capacitors, resistors, inductors, the detection generation sequence includes a capacitor storage area, a resistor storage area and an inductor storage area, and the target area is one of the following: One: the capacitor storage area, the resistor storage area, and the inductor storage area; an intermediate detection step: detecting the RLC circuit with one end of the initial electrical component as the starting point, determining the target electrical component, storing the target electrical component in the corresponding target area in the detection generated sequence, and modifying the state of the target electrical component in the database from an unmarked state to a marked state, wherein the target electrical component is one of the following: a capacitor, a resistor, or an inductor connected in series with one end of the initial electrical component; a detection completion step: repeating the intermediate detection step, and determining that the detection work has been completed when the states of all devices in the database are marked.
[0005] Optionally, a state mapping relationship is stored in the database, and the state mapping relationship is used to characterize the mapping relationship between the names of all devices in the RLC circuit and the corresponding states. The state of the initial electrical component in the database is modified from an unmarked state to a marked state, including: according to the state mapping relationship and the name of the initial electrical component, the state of the initial electrical component in the database is modified from an unmarked state to a marked state.
[0006] Optionally, a state mapping relationship is stored in the database, and the state mapping relationship is used to characterize the mapping relationship between the names of all devices in the RLC circuit and the corresponding states. The state of the target electrical component in the database is modified from an unmarked state to a marked state, including: according to the state mapping relationship and the name of the target electrical component, the state of the target electrical component in the database is modified from an unmarked state to a marked state.
[0007] Optionally, after determining that the detection work has been completed, the method further includes: generating detection completion prompt information to prompt that the detection work has been completed.
[0008] Optionally, the storage format of the capacitor storage area is:
[0009] 1 / C 串 =1 / C1+1 / C12+1 / C13+…+1 / C1n, where n is the total number of capacitors in the RLC circuit.
[0010] Optionally, storing the target electrical component in a corresponding target area in a detection generated sequence includes: when the initial electrical component and the target electrical component are both resistors, storing the target electrical component in the corresponding target area in the detection generated sequence to modify the detection generated sequence M1={R1} to M1={R1+R11}, where M1 is the detection generated sequence, R1 is the initial electrical component, and R11 is the target electrical component; when the initial electrical component is a resistor and the target electrical component is an inductor, storing the target electrical component in the corresponding target area in the detection generated sequence to modify the detection generated sequence M1={R1} to M1={R1, L1}, where L1 is the target electrical component; when the initial electrical component is a resistor and the target electrical component is a capacitor, storing the target electrical component in the corresponding target area in the detection generated sequence to modify the detection generated sequence M1={R1} to M1={R1, C1}, where C1 is the target electrical component.
[0011] Optionally, storing the initial electrical component in a corresponding target area in a detection generation sequence includes: when the initial electrical component is a resistor, storing the initial electrical component in a corresponding target area in a detection generation sequence so that the detection generation sequence is M1={R1}, M1 is the detection generation sequence, and R1 is the initial electrical component; when the initial electrical component is an inductor, storing the initial electrical component in a corresponding target area in a detection generation sequence so that M1 is the detection generation sequence, M1={L1}, and L1 is the initial electrical component; when the initial electrical component is a capacitor, storing the initial electrical component in a corresponding target area in a detection generation sequence so that M1 is the detection generation sequence, M1={C1}, and C1 is the initial electrical component.
[0012] According to another aspect of the present application, a detection device for an RLC circuit is provided, and the detection device for the RLC circuit includes a first determination unit, a second determination unit, and a third determination unit; the first determination unit is used to perform a first detection step: detecting the RLC circuit, determining the initial electrical component in the RLC circuit, storing the initial electrical component in a corresponding target area in a detection generation sequence, and modifying the state of the initial electrical component in a database from an unmarked state to a marked state, wherein the database stores all capacitors, resistors, and inductors in the RLC circuit, the initial electrical component is one of the following: capacitor, resistor, inductor, the detection generation sequence includes a capacitor storage area, a resistor storage area, and an inductor storage area, and the target area The first determining unit is used to determine the target electrical component, the second determining unit is used to determine the target electrical component, the target electrical component is stored in the corresponding target area in the detection generated sequence, and the state of the target electrical component in the database is changed from an unmarked state to a marked state, and the target electrical component is one of the following: a capacitor, a resistor, and an inductor connected in series with one end of the initial electrical component; the third determining unit is used to execute the detection completion step: repeatedly execute the intermediate detection step, and determine that the detection work has been completed when the states of all devices in the database are marked.
[0013] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the RLC circuit detection methods.
[0014] According to another aspect of the present application, an electronic device is provided, which includes one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include a method for executing any one of the RLC circuit detection methods.
[0015] By applying the technical solution of the present application, the initial electrical component is first determined, and then other devices connected in series at both ends of the initial electrical component are determined. Each time a device is found, the device is stored in the corresponding target area in the detection generation sequence, and the state of the device in the database is modified from an unmarked state to a marked state. Finally, when the states of all devices in the database are in a marked state, it is determined that the detection work has been completed, ensuring that all devices in the RLC circuit can be determined in the end, thereby solving the problem of low efficiency in searching for resistors, inductors and capacitors in the RLC circuit in the prior art, and realizing the problem of merging more resistors, inductors and capacitors into a smaller number of combined loads to reduce the workload of subsequent analysis and calculation. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings that constitute part of this application are used to provide a further understanding of this application. The illustrative embodiments of this application and their descriptions are used to explain this application and do not constitute an improper limitation on this application. In the drawings:
[0017] Figure 1 A hardware structure block diagram of a mobile terminal for performing an RLC circuit detection method provided in an embodiment of the present application is shown;
[0018] Figure 2 A schematic flow chart of a detection method for an RLC circuit provided according to an embodiment of the present application is shown;
[0019] Figure 3 shows a schematic diagram of an RLC circuit;
[0020] Figure 4 A structural block diagram of a detection device for an RLC circuit provided according to an embodiment of the present application is shown. DETAILED DESCRIPTION
[0021] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in this application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0022] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts should fall within the scope of protection of this application.
[0023] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] As introduced in the background technology, the new power system contains a large number of basic loads including resistors, inductors, capacitors, etc., as well as loads formed by a combination of resistors, inductors, and capacitors. In the RLC circuit, in order to ensure that all resistors, inductors, and capacitors are found, it is usually necessary to manually search one by one, resulting in low search efficiency, and often miscalculations or omissions, causing many inconveniences for subsequent work. In order to solve the problem of low efficiency in searching for resistors, inductors, and capacitors in the RLC circuit in the prior art, the embodiments of the present application provide an RLC circuit detection method, device, computer-readable storage medium, and electronic device.
[0025] The technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention.
[0026] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure diagram of a mobile terminal for detecting an RLC circuit according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1Only one is shown) a processor 102 (the processor 102 may include but is not limited to a microprocessor MCU or a programmable logic device FPGA and other processing devices) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input and output device 108 for communication functions. It will be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components than shown, or with Figure 1 Different configurations shown.
[0027] Memory 104 can be used to store computer programs, such as application software programs and modules, such as the computer program corresponding to the RLC circuit detection method in the embodiment of the present invention. Processor 102 executes the computer programs stored in memory 104 to execute various functional applications and data processing, thereby implementing the above-mentioned method. Memory 104 may include high-speed random access memory (RAM) and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, memory 104 may further include memory remotely located from processor 102, and such remote memory may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. Transmission device 106 is used to receive or transmit data via a network. Specific examples of such networks may include a wireless network provided by the mobile terminal's telecommunications provider. In one example, transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to enable communication with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0028] In this embodiment, a method for detecting an RLC circuit running on a mobile terminal, a computer terminal, or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0029] Figure 2 FIG. 1 is a flow chart of a detection method for an RLC circuit according to an embodiment of the present application. Figure 2 As shown, the method includes the following steps:
[0030] Step S201, a first detection step: detecting the RLC circuit, determining the initial electrical components in the RLC circuit, storing the initial electrical components in corresponding target areas in the detection generated sequence, and modifying the status of the initial electrical components in a database from an unmarked state to a marked state, wherein the database stores all capacitors, resistors, and inductors in the RLC circuit, the initial electrical components are one of the following: capacitors, resistors, and inductors, the detection generated sequence includes a capacitor storage area, a resistor storage area, and an inductor storage area, and the target area is one of the following: the capacitor storage area, the resistor storage area, and the inductor storage area;
[0031] Specifically, when the initial electrical component is a capacitor, the initial electrical component is stored in a capacitor storage area in the detection generated sequence, and the state of the initial electrical component in the database is modified from an unmarked state to a marked state; when the initial electrical component is a resistor, the initial electrical component is stored in a resistor storage area in the detection generated sequence, and the state of the initial electrical component in the database is modified from an unmarked state to a marked state; when the initial electrical component is an inductor, the initial electrical component is stored in an inductor storage area in the detection generated sequence, and the state of the initial electrical component in the database is modified from an unmarked state to a marked state;
[0032] The process of locating components can be as follows: First, each R (resistance), L (inductance), and C (capacitance) component has two endpoints, and both endpoints can be connected to any endpoint of other components;
[0033] First, find all endpoints that are connected to 3 or more components, assuming there are M of them, and find endpoints that are only connected to 1 component, assuming there are N of them. Then there are a total of [(M+N)×(M+N-1)] / 2 branches.
[0034] Then traverse each branch, which is a string of R, L, C, and transform each branch into a set {R, L, C}.
[0035] In one embodiment of the present application, a state mapping relationship is stored in the above-mentioned database, and the above-mentioned state mapping relationship is used to characterize the mapping relationship between the names of all devices in the above-mentioned RLC circuit and the corresponding states. The state of the above-mentioned initial electrical component in the database is modified from an unmarked state to a marked state, including: according to the above-mentioned state mapping relationship and the name of the above-mentioned initial electrical component, the state of the above-mentioned initial electrical component in the database is modified from an unmarked state to a marked state.
[0036] Specifically, based on the above-mentioned state mapping relationship and the name of the above-mentioned initial electrical component, find the state corresponding to the name of the initial electrical component in the state mapping relationship, and change the state from an unmarked state to a marked state, so as to facilitate the subsequent determination that the detection work has been completed when the states of all devices in the above-mentioned database are marked states.
[0037] In one embodiment of the present application, the above-mentioned initial electrical component is stored in the corresponding target area in the detection generation sequence, including: when the above-mentioned initial electrical component is a resistor, the above-mentioned initial electrical component is stored in the corresponding target area in the detection generation sequence, so that the above-mentioned detection generation sequence is M1={R1}, M1 is the above-mentioned detection generation sequence, and R1 is the above-mentioned initial electrical component; when the above-mentioned initial electrical component is an inductor, the above-mentioned initial electrical component is stored in the corresponding target area in the detection generation sequence, so that M1 is the above-mentioned detection generation sequence, so that M1={L1}, and L1 is the above-mentioned initial electrical component; when the above-mentioned initial electrical component is a capacitor, the above-mentioned initial electrical component is stored in the corresponding target area in the detection generation sequence, so that M1 is the above-mentioned detection generation sequence, so that M1={C1}, and C1 is the above-mentioned initial electrical component.
[0038] Specifically, the three regions in M1 are used to store resistance, capacitance, and inductance respectively, so that the detection-generated sequence can intuitively display the distribution of resistance, capacitance, and inductance in the RLC circuit.
[0039] Step S202, an intermediate detection step: detecting the RLC circuit starting from one end of the initial electrical component, determining a target electrical component, storing the target electrical component in a corresponding target region in the detection generated sequence, and modifying the state of the target electrical component in the database from an unmarked state to a marked state, wherein the target electrical component is one of the following: a capacitor, a resistor, or an inductor connected in series with one end of the initial electrical component;
[0040] Specifically, other devices electrically connected to one end of the initial electrical component are detected, thereby achieving the purpose of traversal detection of the RLC circuit;
[0041] In one embodiment of the present application, a state mapping relationship is stored in the above-mentioned database, and the above-mentioned state mapping relationship is used to characterize the mapping relationship between the names of all devices in the above-mentioned RLC circuit and the corresponding states. The state of the above-mentioned target electrical component in the above-mentioned database is modified from an unmarked state to a marked state, including: according to the above-mentioned state mapping relationship and the name of the above-mentioned target electrical component, the state of the above-mentioned target electrical component in the above-mentioned database is modified from an unmarked state to a marked state.
[0042] Specifically, according to the above-mentioned state mapping relationship and the name of the above-mentioned target electrical component, the state corresponding to the name of the target electrical component in the state mapping relationship is found, and the state is changed from an unmarked state to a marked state, so as to facilitate the subsequent determination that the detection work has been completed when the states of all devices in the above-mentioned database are marked states.
[0043] In one embodiment of the present application, storing the target electrical component in a corresponding target area in a detection generation sequence includes: when the initial electrical component and the target electrical component are both resistors, storing the target electrical component in the corresponding target area in the detection generation sequence to modify the detection generation sequence M1={R1} to M1={R1+R11}, where M1 is the detection generation sequence, R1 is the initial electrical component, and R11 is the target electrical component; when the initial electrical component is a resistor and the target electrical component is an inductor, storing the target electrical component in the corresponding target area in the detection generation sequence to modify the detection generation sequence M1={R1} to M1={R1, L1}, where L1 is the target electrical component; when the initial electrical component is a resistor and the target electrical component is a capacitor, storing the target electrical component in the corresponding target area in the detection generation sequence to modify the detection generation sequence M1={R1} to M1={R1, C1}, where C1 is the target electrical component.
[0044] Specifically, the three regions in M1 are used to store resistance, capacitance, and inductance respectively, so that the detection-generated sequence can intuitively display the distribution of resistance, capacitance, and inductance in the RLC circuit.
[0045] Step S203, detection completion step: repeat the above intermediate detection steps, and determine that the detection work has been completed when the status of all devices in the above database are marked.
[0046] In the above steps, the initial electrical component is first determined, and then other devices connected in series at both ends of the initial electrical component are determined. Every time a device is found, the device is stored in the corresponding target area in the detection generation sequence, and the status of the device in the database is modified from an unmarked state to a marked state. Finally, when the status of all devices in the above database are in the marked state, it is determined that the detection work has been completed, ensuring that all devices in the RLC circuit can be finally determined, thereby solving the problem of low efficiency in searching for resistors, inductors and capacitors in the RLC circuit in the prior art, and realizing the problem of merging more resistors, inductors and capacitors into a smaller number of combined loads to reduce the workload of subsequent analysis and calculation.
[0047] In one embodiment of the present application, after determining that the inspection work has been completed, the method further includes: generating an inspection completion prompt message to prompt that the inspection work has been completed, so as to achieve the purpose of reminding the staff at any time.
[0048] In one embodiment of the present application, the storage format of the capacitor storage area is:
[0049] 1 / C 串 =1 / C1+1 / C12+1 / C13+…+1 / C1n, where n is the total number of capacitors in the above RLC circuit.
[0050] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the RLC circuit detection method of the present application will be described in detail below with reference to specific embodiments.
[0051] This embodiment relates to a specific RLC circuit detection method, including the following steps:
[0052] Step S1, a first detection step: detecting the RLC circuit, determining the initial electrical components in the RLC circuit, storing the initial electrical components in corresponding target areas in the detection generated sequence, and modifying the status of the initial electrical components in a database from an unmarked state to a marked state, wherein the database stores all capacitors, resistors, and inductors in the RLC circuit, the initial electrical components are one of the following: capacitors, resistors, and inductors, the detection generated sequence includes a capacitor storage area, a resistor storage area, and an inductor storage area, and the target area is one of the following: the capacitor storage area, the resistor storage area, and the inductor storage area;
[0053] Wherein, the database stores a state mapping relationship, which is used to characterize the mapping relationship between the names of all devices in the RLC circuit and the corresponding states. Modifying the state of the initial electrical component in the database from an unmarked state to a marked state includes: modifying the state of the initial electrical component in the database from an unmarked state to a marked state according to the state mapping relationship and the name of the initial electrical component; storing the initial electrical component in the corresponding target area in the detection generation sequence, including: when the initial electrical component is a resistor, storing the initial electrical component in the detection generation sequence. , so that the detection generation sequence is M1={R1}, M1 is the detection generation sequence, and R1 is the initial electrical component; when the initial electrical component is an inductor, the initial electrical component is stored in the corresponding target area in the detection generation sequence, so that M1 is the detection generation sequence, which is M1={L1}, and L1 is the initial electrical component; when the initial electrical component is a capacitor, the initial electrical component is stored in the corresponding target area in the detection generation sequence, so that M1 is the detection generation sequence, which is M1={C1}, and C1 is the initial electrical component;
[0054] Step S2, an intermediate detection step: detecting the RLC circuit starting from one end of the initial electrical component, determining a target electrical component, storing the target electrical component in a corresponding target area in the detection generated sequence, and modifying the state of the target electrical component in the database from an unmarked state to a marked state, wherein the target electrical component is one of the following: a capacitor, a resistor, or an inductor connected in series with one end of the initial electrical component;
[0055] Among them, modifying the state of the above-mentioned target electrical component in the above-mentioned database from an unmarked state to a marked state includes: modifying the state of the above-mentioned target electrical component in the above-mentioned database from an unmarked state to a marked state according to the above-mentioned state mapping relationship and the name of the above-mentioned target electrical component; storing the above-mentioned target electrical component in a corresponding target area in the detection generation sequence includes: when the above-mentioned initial electrical component and the above-mentioned target electrical component are both resistors, storing the above-mentioned target electrical component in a corresponding target area in the detection generation sequence, so as to modify the above-mentioned detection generation sequence M1={R1} to M1={R1+R11}, where M1 is the above-mentioned detection generation sequence and R 1 is the above-mentioned initial electrical component, and R11 is the above-mentioned target electrical component; when the above-mentioned initial electrical component is a resistor and the above-mentioned target electrical component is an inductor, the above-mentioned target electrical component is stored in the corresponding target area in the detection generation sequence, so as to modify the above-mentioned detection generation sequence M1={R1} to M1={R1, L1}, and L1 is the above-mentioned target electrical component; when the above-mentioned initial electrical component is a resistor and the above-mentioned target electrical component is a capacitor, the above-mentioned target electrical component is stored in the corresponding target area in the detection generation sequence, so as to modify the above-mentioned detection generation sequence M1={R1} to M1={R1, C1}, and C1 is the above-mentioned target electrical component.
[0056] Step S3, detection completion step: repeat the above intermediate detection steps, and determine that the detection work has been completed when the status of all devices in the above database are marked.
[0057] For example, an RLC circuit Figure 3 As shown, taking the above example as an example, we can see that there are three nodes N1, N2, and N3 with more than two branches, dividing the circuit into eight branches, among which:
[0058] Branch M1 = {R1 + R11, L1};
[0059] Branch M2 = {R2, L2, 1 / (1 / C2+1 / C21)};
[0060] Branch M3 = {R3};
[0061] Branch M4 = {R4};
[0062] Branch M5 = {R5, C5};
[0063] Branch M6 = {L6, C6};
[0064] Branch M7 = {R7, L7};
[0065] Branch M8 = {C8}.
[0066] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0067] The present application also provides an RLC circuit detection device. It should be noted that the RLC circuit detection device of the present application embodiment can be used to perform the RLC circuit detection method provided in the present application embodiment. The device is used to implement the above-mentioned embodiments and preferred embodiments, and the details already described will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementation using hardware, or a combination of software and hardware, is also possible and contemplated.
[0068] The following introduces the detection device of the RLC circuit provided in the embodiment of the present application.
[0069] Figure 4 FIG. 1 is a structural block diagram of a detection device for an RLC circuit according to an embodiment of the present application. Figure 4 As shown, the device includes a first determining unit 41, a second determining unit 42 and a third determining unit 43; the first determining unit 41 is used to perform the first detection step: detect the RLC circuit, determine the initial electrical components in the RLC circuit, store the initial electrical components in the corresponding target area in the detection generation sequence, and modify the state of the initial electrical components in the database from an unmarked state to a marked state, the database stores all the capacitors, resistors and inductors in the RLC circuit, the initial electrical components are one of the following: capacitors, resistors, inductors, the detection generation sequence includes a capacitor storage area, a resistor storage area and an inductor storage area, and the target area is one of the following: the capacitor storage area , the above-mentioned resistance storage area, the above-mentioned inductance storage area; the second determination unit 42 is used to execute the intermediate detection step: detect the above-mentioned RLC circuit with one end of the above-mentioned initial electrical component as the starting point, determine the target electrical component, store the above-mentioned target electrical component in the corresponding target area in the detection generated sequence, and modify the state of the above-mentioned target electrical component in the above-mentioned database from an unmarked state to a marked state, and the above-mentioned target electrical component is one of the following: a capacitor, a resistor, and an inductor connected in series with one end of the above-mentioned initial electrical component; the third determination unit 43 is used to execute the detection completion step: repeatedly execute the above-mentioned intermediate detection step, and determine that the detection work has been completed when the states of all devices in the above-mentioned database are marked.
[0070] In the above-mentioned device, by first determining the initial electrical component and then determining other devices connected in series at both ends of the initial electrical component, each time a device is found, the device is stored in the corresponding target area in the detection generation sequence, and the status of the device in the database is modified from an unmarked state to a marked state. Finally, when the status of all devices in the above-mentioned database is a marked state, it is determined that the detection work has been completed, ensuring that all devices in the RLC circuit can be finally determined, thereby solving the problem of low efficiency in searching for resistors, inductors and capacitors in the RLC circuit in the prior art, and realizing the problem of merging more resistors, inductors and capacitors into a smaller number of combined loads to reduce the workload of subsequent analysis and calculation.
[0071] In one embodiment of the present application, a state mapping relationship is stored in the above-mentioned database, and the above-mentioned state mapping relationship is used to characterize the mapping relationship between the names of all devices in the above-mentioned RLC circuit and the corresponding states. The first determination unit includes a first processing module, and the first processing module is used to modify the state of the above-mentioned initial electrical component in the above-mentioned database from an unmarked state to a marked state according to the above-mentioned state mapping relationship and the name of the above-mentioned initial electrical component.
[0072] In one embodiment of the present application, a state mapping relationship is stored in the above-mentioned database, and the above-mentioned state mapping relationship is used to characterize the mapping relationship between the names of all devices in the above-mentioned RLC circuit and the corresponding states. The second determination unit includes a second processing module, and the second processing module is used to modify the state of the above-mentioned target electrical component in the above-mentioned database from an unmarked state to a marked state according to the above-mentioned state mapping relationship and the name of the above-mentioned target electrical component.
[0073] In one embodiment of the present application, the device further includes a generating unit, which is configured to generate detection completion prompt information after determining that the detection work has been completed, to prompt that the detection work has been completed.
[0074] In one embodiment of the present application, the storage format of the capacitor storage area is:
[0075] 1 / C 串 =1 / C1+1 / C12+1 / C13+…+1 / C1n, where n is the total number of capacitors in the above RLC circuit.
[0076] In one embodiment of the present application, the second determination unit includes a third processing module, a fourth processing module and a fifth processing module. The third processing module is used to store the target electrical component in the corresponding target area in the detection generation sequence when the initial electrical component and the target electrical component are both resistors, so as to modify the detection generation sequence M1={R1} to M1={R1+R11}, where M1 is the detection generation sequence, R1 is the initial electrical component, and R11 is the target electrical component; the fourth processing module is used to store the target electrical component in the corresponding target area in the detection generation sequence when the initial electrical component and the target electrical component are both resistors, so as to modify the detection generation sequence M1={R1} to M1={R1+R11}, where M1 is the detection generation sequence, R1 is the initial electrical component, and R11 is the target electrical component; When the target electrical component is an inductor, the target electrical component is stored in the corresponding target area in the detection generation sequence, so that the detection generation sequence M1={R1} is modified to M1={R1, L1}, where L1 is the target electrical component; the fifth processing module is used to store the target electrical component in the corresponding target area in the detection generation sequence when the initial electrical component is a resistor and the target electrical component is a capacitor, so that the detection generation sequence M1={R1} is modified to M1={R1, C1}, where C1 is the target electrical component.
[0077] In one embodiment of the present application, the first determination unit includes a sixth processing module, a seventh processing module and an eighth processing module. The sixth processing module is used to store the above-mentioned initial electrical component in the corresponding target area in the detection generation sequence when the above-mentioned initial electrical component is a resistor, so that the above-mentioned detection generation sequence is M1={R1}, M1 is the above-mentioned detection generation sequence, and R1 is the above-mentioned initial electrical component; the seventh processing module is used to store the above-mentioned initial electrical component in the corresponding target area in the detection generation sequence when the above-mentioned initial electrical component is an inductor, so that M1 is the above-mentioned detection generation sequence, M1={L1}, L1 is the above-mentioned initial electrical component; the eighth processing module is used to store the above-mentioned initial electrical component in the corresponding target area in the detection generation sequence when the above-mentioned initial electrical component is a capacitor, so that M1 is the above-mentioned detection generation sequence, M1={C1}, C1 is the above-mentioned initial electrical component.
[0078] The RLC circuit detection device includes a processor and a memory. The first determination unit, the second determination unit, and the third determination unit are all stored in the memory as program units. The processor executes the program units stored in the memory to implement corresponding functions. The modules are all located in the same processor; alternatively, the modules can be located in different processors in any combination.
[0079] The processor includes a core that retrieves the corresponding program unit from the memory. One or more cores can be provided, and the problem of low efficiency in finding resistance, inductance, and capacitance in RLC circuits in the prior art can be solved by adjusting the core parameters.
[0080] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0081] An embodiment of the present invention provides a computer-readable storage medium, which includes a stored program. When the program is executed, the device containing the computer-readable storage medium is controlled to execute the RLC circuit detection method.
[0082] An embodiment of the present invention provides a processor, which is used to run a program, wherein the program executes the RLC circuit detection method when running.
[0083] An embodiment of the present invention provides a device, comprising a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, at least the following steps are implemented: an initial detection step: detecting an RLC circuit, determining an initial electrical component in the RLC circuit, storing the initial electrical component in a corresponding target area in a detection generation sequence, and modifying the state of the initial electrical component in a database from an unmarked state to a marked state, wherein the database stores all capacitors, resistors, and inductors in the RLC circuit, wherein the initial electrical component is one of the following: a capacitor, a resistor, and an inductor, and the detection generation sequence includes a capacitor storage area, a resistor storage area, and an inductor storage area. The target area is one of the following: the capacitor storage area, the resistor storage area, and the inductor storage area; the intermediate detection step is to detect the RLC circuit starting from one end of the initial electrical component, determine the target electrical component, store the target electrical component in the corresponding target area in the detection generated sequence, and modify the state of the target electrical component in the database from an unmarked state to a marked state, and the target electrical component is one of the following: a capacitor, resistor, or inductor connected in series with one end of the initial electrical component; the detection completion step is to repeat the intermediate detection step and determine that the detection work has been completed when the states of all devices in the database are marked. The device in this article can be a server, PC, PAD, mobile phone, etc.
[0084] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program initialized with at least the following method steps: a first detection step: detecting the RLC circuit, determining the initial electrical components in the RLC circuit, storing the initial electrical components in the corresponding target area in the detection generation sequence, and modifying the state of the initial electrical components in the database from an unmarked state to a marked state, wherein the database stores all the capacitors, resistors and inductors in the RLC circuit, wherein the initial electrical components are one of the following: capacitors, resistors and inductors, wherein the detection generation sequence includes a capacitor storage area, a resistor storage area and an inductor storage area, and wherein the target area The method comprises the following steps: detecting the RLC circuit with one end of the initial electrical component as the starting point, determining the target electrical component, storing the target electrical component in the corresponding target area in the detection generated sequence, and modifying the state of the target electrical component in the database from an unmarked state to a marked state, wherein the target electrical component is one of the following: a capacitor, a resistor, or an inductor connected in series with one end of the initial electrical component; and completing the detection step: repeating the intermediate detection step, and determining that the detection work has been completed when the states of all devices in the database are marked.
[0085] The present application also provides an electronic device, which includes one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include a method for executing any of the above-mentioned RLC circuit detection methods. By first determining an initial electrical component, and then determining other devices connected in series at both ends of the initial electrical component, each time a device is found, the device is stored in a corresponding target area in the detection generation sequence, and the state of the device in the database is modified from an unmarked state to a marked state. Finally, when the states of all devices in the database are marked, it is determined that the detection work has been completed, ensuring that all devices in the RLC circuit can be determined in the end, thereby solving the problem of low efficiency in searching for resistors, inductors, and capacitors in the RLC circuit in the prior art, and realizing the problem of merging more resistors, inductors, and capacitors into a smaller number of combined loads to reduce the workload of subsequent analysis and calculation.
[0086] Obviously, those skilled in the art will appreciate that the various modules or steps of the present invention described above can be implemented using a general-purpose computing device, can be centralized on a single computing device, or can be distributed across a network of multiple computing devices. They can be implemented using program code executable by the computing device, and thus, can be stored in a storage device and executed by the computing device. In some cases, the steps shown or described herein can be performed in a different order than that shown, or can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0087] Those skilled in the art will appreciate that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application can adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0088] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0089] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0091] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0092] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0093] Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0094] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0095] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0096] 1) The detection method of the RLC circuit of the present application first determines the initial electrical component, and then determines other devices connected in series at both ends of the initial electrical component. Every time a device is found, the device is stored in the corresponding target area in the detection generation sequence, and the status of the device in the database is modified from an unmarked state to a marked state. Finally, when the status of all devices in the above database is a marked state, it is determined that the detection work has been completed, ensuring that all devices in the RLC circuit can be finally determined, thereby solving the problem of low efficiency in searching for resistors, inductors and capacitors in the RLC circuit in the prior art, and realizing the problem of merging more resistors, inductors and capacitors into a smaller number of combined loads to reduce the workload of subsequent analysis and calculation.
[0097] 2) The detection device for the RLC circuit of the present application first determines the initial electrical component and then determines other devices connected in series at both ends of the initial electrical component. Every time a device is found, the device is stored in the corresponding target area in the detection generation sequence, and the status of the device in the database is modified from an unmarked state to a marked state. Finally, when the status of all devices in the above database are in a marked state, it is determined that the detection work has been completed, ensuring that all devices in the RLC circuit can be determined in the end, thereby solving the problem of low efficiency in searching for resistors, inductors and capacitors in the RLC circuit in the prior art, and realizing the problem of merging more resistors, inductors and capacitors into a smaller number of combined loads to reduce the workload of subsequent analysis and calculation.
[0098] The above description is merely a preferred embodiment of the present application and is not intended to limit the present application. Various modifications and variations are possible for those skilled in the art. Any modifications, equivalent substitutions, or improvements made within the spirit and principles of the present application shall be included within the scope of protection of the present application.
Claims
1. A method for detecting an RLC circuit, characterized in that: include: The first detection step includes detecting the RLC circuit, determining an initial electrical component in the RLC circuit, storing the initial electrical component in a corresponding target area in the detection generated sequence, and modifying the state of the initial electrical component in a database from an unmarked state to a marked state, wherein the database stores all capacitors, resistors, and inductors in the RLC circuit, the initial electrical component is one of the following: a capacitor, a resistor, and an inductor, the detection generated sequence includes a capacitor storage area, a resistor storage area, and an inductor storage area, and the target area is one of the following: the capacitor storage area, the resistor storage area, and the inductor storage area; An intermediate detection step: detecting the RLC circuit starting from one end of the initial electrical component, determining a target electrical component, storing the target electrical component in a corresponding target area in the detection generated sequence, and modifying the state of the target electrical component in the database from an unmarked state to a marked state, wherein the target electrical component is one of the following: a capacitor, a resistor, or an inductor connected in series with one end of the initial electrical component; Detection completion step: repeatedly executing the intermediate detection step, and determining that the detection work has been completed when the status of all devices in the database are marked.
2. The method according to claim 1, characterized in that The database stores a state mapping relationship, which is used to represent a mapping relationship between the names of all components in the RLC circuit and their corresponding states. Modifying the state of the initial electrical component in the database from an unmarked state to a marked state includes: According to the state mapping relationship and the name of the initial electrical component, the state of the initial electrical component in the database is modified from an unmarked state to a marked state.
3. The method according to claim 1, characterized in that The database stores a state mapping relationship, wherein the state mapping relationship is used to represent a mapping relationship between the names of all components in the RLC circuit and corresponding states. Modifying the state of the target electrical component in the database from an unmarked state to a marked state includes: According to the state mapping relationship and the name of the target electrical component, the state of the target electrical component in the database is modified from an unmarked state to a marked state.
4. The method according to claim 1, wherein After determining that the detection work has been completed, the method further includes: Generate a detection completion prompt message to indicate that the detection work has been completed.
5. The method according to claim 1, wherein The storage format of the capacitor storage area is: 1 / C 串 =1 / C1+1 / C12+1 / C13+…+1 / C1n, where n is the total number of capacitors in the RLC circuit.
6. The method according to claim 1, characterized in that Storing the target electrical component in a corresponding target area in the detection generated sequence includes: In the case where both the initial electrical component and the target electrical component are resistors, the target electrical component is stored in the corresponding target area in the detection generated sequence, so as to modify the detection generated sequence M1={R1} to M1={R1+R11}, where M1 is the detection generated sequence, R1 is the initial electrical component, and R11 is the target electrical component; In the case where the initial electrical component is a resistor and the target electrical component is an inductor, the target electrical component is stored in a corresponding target area in the detection generated sequence, so as to modify the detection generated sequence M1={R1} to M1={R1, L1}, where L1 is the target electrical component; When the initial electrical component is a resistor and the target electrical component is a capacitor, the target electrical component is stored in the corresponding target area in the detection generation sequence, so that the detection generation sequence M1={R1} is modified to M1={R1, C1}, where C1 is the target electrical component.
7. The method according to claim 1, characterized in that Storing the initial electrical components in the corresponding target area in the detection generated sequence includes: In the case where the initial electrical component is a resistor, the initial electrical component is stored in a corresponding target area in the detection generation sequence, so that the detection generation sequence is M1={R1}, where M1 is the detection generation sequence and R1 is the initial electrical component; In the case where the initial electrical component is an inductor, the initial electrical component is stored in a corresponding target area in the detection generation sequence, so that M1 is the detection generation sequence, M1={L1}, and L1 is the initial electrical component; When the initial electrical component is a capacitor, the initial electrical component is stored in a corresponding target area in the detection generation sequence, so that M1 is the detection generation sequence, M1={C1}, and C1 is the initial electrical component.
8. A detection device for an RLC circuit, characterized in that: include: A first determining unit is configured to, in a first detection step, detect the RLC circuit, determine an initial electrical component in the RLC circuit, store the initial electrical component in a corresponding target area in a detection generated sequence, and modify a state of the initial electrical component in a database from an unmarked state to a marked state, wherein the database stores all capacitors, resistors, and inductors in the RLC circuit, the initial electrical component is one of the following: a capacitor, a resistor, and an inductor; the detection generated sequence includes a capacitor storage area, a resistor storage area, and an inductor storage area; and the target area is one of the following: the capacitor storage area, the resistor storage area, and the inductor storage area; a second determining unit, configured for an intermediate detection step, wherein: detecting the RLC circuit starting from one end of the initial electrical component, determining a target electrical component, storing the target electrical component in a corresponding target region in the detection generated sequence, and modifying the state of the target electrical component in the database from an unmarked state to a marked state, wherein the target electrical component is one of the following: a capacitor, a resistor, or an inductor connected in series with one end of the initial electrical component; The third determining unit is configured to perform a detection completion step: repeatedly executing the intermediate detection step, and determining that the detection work has been completed when the status of all devices in the database are marked.
9. A computer-readable storage medium, characterized in that The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the RLC circuit detection method according to any one of claims 1 to 7.
10. An electronic device, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing the RLC circuit detection method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and device for identifying components in system diagram
CN111814791A
Physical circuit diagram recognition method based on deep learning and application thereof
CN112528845A