CN113805051A - Switch performance testing method and device, electronic equipment and storage medium - Google Patents

Switch performance testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113805051A
CN113805051A CN202111051682.5A CN202111051682A CN113805051A CN 113805051 A CN113805051 A CN 113805051A CN 202111051682 A CN202111051682 A CN 202111051682A CN 113805051 A CN113805051 A CN 113805051A
Authority
CN
China
Prior art keywords
load
power
current
taking
state
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111051682.5A
Other languages
Chinese (zh)
Other versions
CN113805051B (en
Inventor
麦柳桥
吴坤贤
陈煜平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Oribo Technology Co Ltd
Original Assignee
Shenzhen Oribo Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Oribo Technology Co Ltd filed Critical Shenzhen Oribo Technology Co Ltd
Priority to CN202111051682.5A priority Critical patent/CN113805051B/en
Publication of CN113805051A publication Critical patent/CN113805051A/en
Application granted granted Critical
Publication of CN113805051B publication Critical patent/CN113805051B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/327Testing of circuit interrupters, switches or circuit-breakers

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)
  • Fire Alarms (AREA)

Abstract

The application discloses switch performance test method is applied to the test circuit of single live switch equipment, and single live switch equipment is suitable for the access test circuit in order to prepare for the test, and the test circuit includes first load, second load, and single live switch equipment includes control circuit, and the second load is established ties with control circuit, inserts power supply circuit after control circuit establishes ties with first load, and the method includes: current regulation is carried out on the second load according to the power taking mode of the single live switch equipment; obtaining critical current of the second load according to the current regulation, wherein the critical current is used for representing a current value corresponding to the minimum voltage required by the normal work of the second load; and determining the power consumption range of the single-fire switch equipment according to the critical current. The method can accurately quantize the test result of the switch performance, and is favorable for the optimal design of the intelligent single-fire switch.

Description

Switch performance testing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of intelligent switch technologies, and in particular, to a method and an apparatus for testing switch performance, an electronic device, and a storage medium.
Background
The development of intelligent house technique promotes traditional mechanical switch to be replaced by intelligent switch gradually, and for traditional mechanical switch, intelligent switch has used relay and intelligent object to replace original mechanical control, and the switching of electric light is controlled by each work module for example. Therefore, the effect and the function of the intelligent switch on the multi-connection interactive application layer are difficult to realize by a mechanical switch. According to the uninterrupted mode of the relay, the intelligent switch can be divided into an intelligent zero-fire switch and an intelligent single-fire switch.
At present, in the process of testing the switching performance of the intelligent single-fire switch, lamps of different brands are mainly connected to the output end of the switch, the working states of the switch and the lamps are recorded, the testing scheme can only detect the adaptability condition of the switch, and the testing result cannot be quantitatively used for design optimization of the intelligent single-fire switch.
Disclosure of Invention
In view of the above problems, the present application provides a method and an apparatus for testing switch performance, an electronic device, and a storage medium, and aims to provide a reliable reference for design optimization of a switch.
In a first aspect, an embodiment of the present application provides a method for testing switch performance, which is applied to a test circuit of a single live switch device, where the single live switch device is suitable for being connected to the test circuit for testing, the test circuit includes a first load and a second load, the single live switch device includes a control circuit, the second load is connected in series with the control circuit, and the control circuit is connected to a power supply circuit after being connected in series with the first load, and the method includes: current regulation is carried out on the second load according to the power taking mode of the single live switch equipment; obtaining critical current of the second load according to the current regulation, wherein the critical current is used for representing a current value corresponding to the minimum voltage required by the normal work of the second load; and determining the power consumption range of the single-fire switch equipment according to the critical current.
In a second aspect, an embodiment of the present application provides a switching performance testing apparatus, which is applied to a test circuit of a single live switch device, where the single live switch device is suitable for being connected to the test circuit for testing, the test circuit includes a first load and a second load, the single live switch device includes a control circuit, the second load is connected in series with the control circuit, and the control circuit is connected to a power supply circuit after being connected in series with the first load, and the apparatus includes: the adjusting module is used for adjusting the current of the second load according to the power taking mode of the single-fire switch equipment; the acquisition module is used for acquiring the critical current of the second load according to the current regulation, and the critical current is used for representing the current value corresponding to the minimum voltage required by the normal work of the second load; and the determining module is used for determining the power consumption range of the single live switch equipment according to the critical current.
In a third aspect, an embodiment of the present application provides an electronic device, including: one or more processors; a memory; one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more application programs being configured to perform the switch performance testing method provided by the first aspect above.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code may be called by a processor to execute the switch performance testing method provided in the first aspect.
According to the switch performance testing method, the switch performance testing device, the electronic equipment and the storage medium, firstly, current regulation is carried out on the second load according to the power taking mode of the single-fire switch equipment, further, the critical current of the second load is obtained according to the current regulation, the critical current is used for representing the current value corresponding to the lowest voltage required by the normal work of the second load, and the power consumption range of the single-fire switch equipment is determined according to the critical current. Therefore, the working state of the single-fire switch equipment is changed by adjusting the current of the second load in the test circuit, and the power consumption range of the single-fire switch equipment is measured, so that the performance test result of the single-fire switch equipment is quantized, the test result has reliability and referential performance, and the design optimization of the intelligent single-fire switch is facilitated.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 shows a schematic structural diagram of a switch performance testing circuit provided in an embodiment of the present application.
Fig. 2 shows a schematic flowchart of a switch performance testing method provided by an embodiment of the present application.
Fig. 3 shows a schematic flowchart of another switch performance testing method provided in an embodiment of the present application.
Fig. 4 shows a flow chart of the steps of current regulation in the switch performance test method of fig. 3.
Fig. 5 shows a schematic flowchart of another switch performance testing method provided in the embodiment of the present application.
Fig. 6 shows a block diagram of a switch performance testing apparatus according to an embodiment of the present application.
Fig. 7 is a block diagram of an electronic device according to an embodiment of the present disclosure.
Fig. 8 is a block diagram of a computer-readable storage medium according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
In order to make the technical solutions of the present application better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present application and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The intelligent single-live switch is the same as a traditional mechanical switch, and can be normally used only by connecting the switch with a live wire and a lamp control line, so that the intelligent single-live switch becomes the choice of most users under the condition of not changing the previous wiring. In the development process of the intelligent single-fire switch, the compatibility of the intelligent single-fire switch needs to be tested, so that the switch can be suitable for electric lamps of various brands.
Nowadays, a method for testing the compatibility of an intelligent single-fire switch with low-power LED lamps is mainly characterized in that LED lamps of different brands are connected to the output end of the switch when the intelligent single-fire switch is in different working states, so that the working states of the single-fire switch and the LED lamps of different brands are recorded. However, the testing method can only record the adaptability of different types of LED lamps, and lacks accurate testing data, so that the testing result cannot be quantized, which is not beneficial to the design and optimization of software and hardware of the intelligent single-fire switch.
After long-term research, the inventor provides a switching performance testing method provided by the embodiment of the application, and the method adjusts the current of a second load in a testing circuit according to the power taking mode of the single live switch device so as to determine the power consumption range of the single live switch device. The working state of the single-fire switch equipment is changed by adjusting the current of the second load in the test circuit, and the power consumption range of the single-fire switch equipment is measured, so that the performance test result of the single-fire switch equipment is quantized.
The following first introduces an application environment of the switch performance testing method according to the present application.
As shown in fig. 1, the switch performance testing method provided in the embodiment of the present application can be applied to the switch performance testing circuit 100 shown in fig. 1, where the switch performance testing circuit 100 includes a first load 102 and a one-fire switch device 104, the one-fire switch device 104 includes a second load 106 and a control circuit 108, and the control circuit 108 includes a closed-state power-taking circuit 181 and an open-state power-taking circuit 182.
In the embodiment of the present application, the single live switch device 104 is connected to the neutral line N, the control circuit 108 of the single live switch device 104 is connected in series with the first load 102, and the first load 102 is electrically connected to the live line L, wherein the first load 102 may be LED lamps of different types, which is not limited herein. The second load 106 is connected in series with the control circuit 108, and optionally, when the switch is subjected to a performance test, the second load 106 is an adjustable electronic load, and any powered working module, such as a communication module, in the single fire switch device 104 can be replaced by the second load 106 according to the test requirement, which is not limited herein.
As an implementation manner, after the switch performance test circuit 100 is built, according to the power-taking mode of the one-fire switch device 104, current adjustment may be performed on the second load 106, until the voltage of the second load 106 drops to the lowest working voltage threshold of the working module to be tested, a current value of current passing through the second load 106 is recorded, and according to the current value, power consumption of the one-fire switch device is determined. Further, the first load 102 may be replaced, and the second load 106 may also be current regulated to measure the power consumption of the to-be-tested operating module of the single-fire switch device corresponding to different types of LED lamps.
For example, in order to facilitate research and development personnel to optimally design a communication module of a single-fire switch device, the communication module can be replaced by an adjustable electronic load, and in the process of adjusting the current of the adjustable electronic load, working parameters of the adjustable electronic load related to the power taking capability are recorded, so that the working parameters are used as test data for the optimal design of the communication module.
Embodiments in the present application will be described in detail below with reference to the accompanying drawings.
Referring to fig. 2, fig. 2 shows a switching performance testing method provided in an embodiment of the present application, which is applied to a testing circuit of a one-hot switching device, where the one-hot switching device is suitable to be connected to the testing circuit for testing, the testing circuit includes a first load and a second load, the one-hot switching device includes a control circuit, the second load is connected in series with the control circuit, and the control circuit is connected to a power supply circuit after being connected in series with the first load, where the switching performance testing method may include steps S110 to S150.
Step S110: and current regulation is carried out on the second load according to the power taking mode of the single live switch equipment.
In order to accurately record the test result of the switch performance test and enable the test result to have reference significance for the design of the single-live-wire switch device, the power taking capability of the single-live-wire switch device needs to be accurately measured.
The power-taking mode comprises an off-state power-taking mode and an on-state power-taking mode, and in the off-state power-taking mode, the LED lamp is turned off, and the single-fire switch device is in a standby power supply state. Under the on-state power-taking mode, the LED lamp is turned on, and the single-fire switch device is in the operating state. The current regulation refers to adjusting a current value of the second load.
As an embodiment, the second load may be current regulated in an off-state power-taking mode and an on-state power-taking mode of the one-shot switching device, respectively. Alternatively, the current of the second load may be changed by adjusting the magnitude of the impedance of the second load.
Step S130: and obtaining the critical current of the second load according to the current regulation, wherein the critical current is used for representing the current value corresponding to the minimum voltage required by the normal work of the second load.
The critical current refers to a current value corresponding to a minimum voltage required by the second load when the second load normally operates, and it should be noted that, because any powered working module in the one-fire switch device is replaced by the second load according to the test requirement, the minimum voltage required by the normal operation of the second load may represent the minimum voltage required by the normal operation of the working module, and the minimum voltage is determined by an actual working parameter of the working module, for example, a Low Dropout Regulator (LDO) in the one-fire switch device supplies 3.8V to the bluetooth communication module, and at this time, 3.8V may be used as the minimum voltage required by the normal operation of the second load.
As an embodiment, the current of the second load may be adjusted so that the voltage across the second load reaches a minimum voltage required for normal operation, and further, a current value corresponding to the minimum voltage may be calculated according to ohm's law as the critical current.
Step S150: and determining the power consumption range of the single-fire switch equipment according to the critical current.
Considering that the normal operation of the first load is affected if the power is taken too much in the working process of the single-fire switch device, for example, the current drawn by the communication module of the single-fire switch device during operation is too large, which may cause unstable phenomena such as restart of the switch system, and further affect the start of the first load. For this reason, the power consumption range of the one-shot switching device can be determined according to the result of the switching performance test, that is, the critical current, so that the one-shot switching device can be safely and reliably applied to different types of lighting devices.
As an embodiment, the first loads of different types can be replaced to obtain the critical currents of the second loads, so that the power consumption range of the single-fire switch device is determined according to the critical currents. For example, in a certain brand of LED lamps, the LED lamps with different powers are selected as the first load, and then a plurality of critical currents of the LED lamps with different powers in two power-taking modes of the single-fire switch device are respectively measured, and then the power consumption ranges of the single-fire switch device in the off-state power-taking mode and the on-state power-taking mode are respectively calculated according to the plurality of critical currents.
The application provides a switch performance test method can carry out current regulation to the second load according to the mode of getting of single live switchgear, and further, according to current regulation, obtain the critical current of second load, this critical current is used for the current value that the required minimum voltage of representation second load normal work corresponds to according to critical current, confirm the consumption scope of single live switchgear. Therefore, the working state of the single-fire switch equipment is changed by adjusting the current of the second load in the test circuit, and the power consumption range of the single-fire switch equipment is measured, so that the performance test result of the single-fire switch equipment is quantized, the test result has reliability and referential performance, and the design optimization of the intelligent single-fire switch is facilitated.
Referring to fig. 3, fig. 3 shows a switching performance testing method provided by an embodiment of the present application, which is applied to a testing circuit of a one-hot switch device, where the one-hot switch device is suitable for being connected to the testing circuit for testing, the testing circuit includes a first load and a second load, the one-hot switch device includes a control circuit, the second load is connected in series with the control circuit, and the control circuit is connected to a power supply circuit after being connected in series with the first load, where the switching performance testing method may include steps S210 to S270.
Step S210: according to the control circuit, the power-taking mode of the single-fire switch equipment is judged, and the power-taking mode comprises an off-state power-taking mode and an on-state power-taking mode.
In some embodiments, the control circuit of the one-shot switch device may include an off-state power-taking circuit and an on-state power-taking circuit, and the power-taking mode of the one-shot switch device may be determined according to a circuit type of the control circuit connected to the test circuit.
As an embodiment, if the off-state power-taking circuit is connected to the test circuit, it is determined that the one-shot switch device is in the off-state power-taking mode. At this time, the first load does not operate.
As another embodiment, if the on-state power-taking circuit is connected to the test circuit, it is determined that the one-shot switch device is in the on-state power-taking mode. At this time, the first load operates.
Step S220: and according to the power taking mode, carrying out current regulation on the second load.
In some embodiments, because the operating principles of the single live switch device are different in different power-taking modes, the current of the second load can be adjusted according to the power-taking mode of the single live switch device. Specifically, referring to fig. 4, step S220 may include:
step S221: and acquiring a preset voltage corresponding to the power-taking mode based on the determined power-taking mode, wherein the preset voltage is used for representing the lowest voltage required by the normal work of the second load when the single-fire switch equipment is in the power-taking mode.
As an embodiment, the preset voltage of the second load in the power-taking mode may be determined according to the power-taking mode in which the single live switch device is located. For example, when designing the communication module of the one-shot switchgear, the communication module may be replaced with a second load. The lowest voltage required by the communication module to normally work in different power taking modes of the switch can be used as the preset voltage.
Step S222: and adjusting the working parameters of the second load according to the preset voltage to change the current of the second load, wherein the working parameters at least comprise one of impedance and power.
As an embodiment, after the preset voltage corresponding to the power-taking mode is obtained, the operating parameter of the second load may be adjusted to change the current of the second load in different power-taking modes. In particular, the current I of the second load may be gradually changed by adjusting the magnitude of the impedance of the second load when the one-shot switching device is in the off-state power-taking mode and the on-state power-taking mode.
Step S230: and in the process of adjusting the current of the second load, acquiring the voltage value at two ends of the second load as an adjusting voltage.
As an embodiment, in the process of adjusting the operating parameter of the second load to change the current of the second load in different power-taking modes, the voltage value across the second load may be calculated according to ohm's law as the adjustment voltage based on the current passing through the second load.
Step S240: and acquiring a voltage difference value between the adjusting voltage and the preset voltage.
Step S250: and when the voltage difference value is smaller than the preset difference value, acquiring the current of the second load.
Step S260: and taking the current as the critical current of the second load.
The preset difference is used for determining whether the regulating voltage of the second load reaches the preset voltage, and the preset difference can be calculated in advance by a tester according to the model, factory configuration and the like of the switch to be tested.
As an embodiment, when the current I of the second load is gradually adjusted and changed, the adjusted voltage may be subtracted from the preset voltage to obtain a voltage difference value, and further, when the voltage difference value is smaller than the preset difference value, a current passing through the second load is obtained and is taken as the critical current.
For example, the current I of the second load may be gradually increased by adjusting the impedance of the second load, when the current I increases to a certain level, the regulated voltage U across the second load may start to drop, and further, the current I of the second load may continue to be changed by adjusting the impedance of the second load until the regulated voltage U across the second load reaches the preset voltage
Figure BDA0003253182810000071
Difference in voltage
Figure BDA0003253182810000072
When the current I is smaller than the preset difference delta, stopping adjusting the current I of the second load, and taking the current I at the moment as the critical current I0
Step S270: and determining the power consumption range of the single-fire switch equipment according to the critical current.
In this embodiment, the specific implementation of step S270 may refer to the description of step S130 provided in the above embodiments, and is not described herein again.
According to the switch performance testing method provided by the embodiment of the application, the power-taking mode of the single-fire switch device is judged according to the control circuit, the current of the second load is adjusted according to the power-taking mode, the preset voltage corresponding to the power-taking mode is obtained based on the determined power-taking mode, the working parameter of the second load is adjusted according to the preset voltage so as to change the current of the second load, in the process of adjusting the current of the second load, the voltage values at two ends of the second load are obtained to be used as the adjusting voltage, the voltage difference value between the adjusting voltage and the preset voltage is obtained, when the voltage difference value is smaller than the preset difference value, the current of the second load is obtained, the current is used as the critical current of the second load, and the power consumption range of the single-fire switch device is determined according to the critical current. Therefore, the critical current is obtained by adjusting the current of the second load in the test circuit to serve as a test result, and the power consumption range of the single-fire switch equipment is further measured, so that the test result has reliability and referential performance, and the design optimization of the intelligent single-fire switch is facilitated.
Referring to fig. 5, fig. 5 shows a switching performance testing method provided by an embodiment of the present application, which is applied to a testing circuit of a one-hot switch device, where the one-hot switch device is suitable for being connected to the testing circuit for testing, the testing circuit includes a first load and a second load, the one-hot switch device includes a control circuit, the second load is connected in series with the control circuit, and the control circuit is connected to a power supply circuit after being connected in series with the first load, where the switching performance testing method may include steps S310 to S330.
Step S310: in response to the device replacement operation, the device replacement operation is used to characterize that the first load in the test circuit is replaced by other first loads with different powers, and step S110 and step S130 are executed to obtain other critical currents corresponding to the other first loads.
In the embodiment of the application, the second load replaces a working module of the single live switch device to determine the power taking capability of the switch, namely critical current, and then the design of the single live switch working device is carried out through the power taking capability. In order to adapt a single-fire switching device to different brands of lamps, it is therefore necessary to obtain other critical currents for different first loads.
As an embodiment, the test circuit may repeatedly perform steps S110 and S130 when the first load is replaced by another first load with different power in response to the device replacement operation, so as to obtain another critical current corresponding to the other first load. For example, the first load in the test circuit is replaced with lamps of different powers under a plurality of brands, and after the first load is replaced with other first loads, other critical currents of other first loads under different power-taking modes can be respectively obtained, such as the critical currents corresponding to lamps of different brands as shown in the following table:
Figure BDA0003253182810000081
Figure BDA0003253182810000091
step S320: and determining the power-taking threshold range according to other critical currents and critical currents.
As an embodiment, after obtaining other critical currents of other first loads in different power-taking modes, the off-state power-taking threshold range corresponding to the off-state power-taking mode and the on-state power-taking threshold range corresponding to the on-state power-taking mode may be determined according to the other critical currents and the critical current of the first load.
For example, the critical current sets corresponding to the lamps with different powers in the brands 1 to N under the off-state power-taking mode are measured
Figure BDA0003253182810000092
If in the set of critical currents
Figure BDA0003253182810000093
The minimum value of the critical current is set as,
Figure BDA0003253182810000094
the maximum value of the critical current is the power-taking threshold range of the single-fire switch equipment in the power-taking mode in the closed state
Figure BDA0003253182810000095
The same method can determine the power-taking threshold range of the single-fire switch device in the on-state power-taking mode.
It should be noted that, in the process of determining the power-taking threshold range of the electric lamps with different powers in the brands 1 to N, a plurality of brands can be classified according to the process of producing lighting equipment by a brand party, the factory standards and the like, so that the corresponding power-taking threshold range can be determined for a certain type of electric lamps, and the referential property of the test result is improved.
Step S330: and determining the power consumption range of the single live switch equipment according to the power taking threshold range.
Because the single live switch device can consume certain electric energy in actual application and has adverse effect on the work of the connected lighting device/first load, the reduction of the power consumption of the single live switch device must be considered, specifically, the power consumption of each working module in the single live switch device is required to be within a power consumption range which does not affect the normal work of the lighting device/first load, and for this reason, the power consumption range of the single live switch device can be determined according to the power taking threshold range, so that the optimal design of the hard software of the single live switch device is utilized.
In some embodiments, the power consumption range of the one-fire switchgear may be calculated based on power-taking threshold ranges in different power-taking modes, optionally, a value in the power-taking threshold range is a critical current, a lowest power value corresponding to the power-taking threshold range is calculated as an extreme power consumption through a calculation formula of electric power, and the power consumption range is obtained from the extreme power consumption.
As an embodiment, the off-state extreme power consumption may be determined according to the off-state power-taking threshold range, and the off-state power consumption range of the one-fire switch device may be determined according to the off-state extreme power consumption, where the off-state extreme power consumption is a lowest power consumption value of the one-fire switch device when the one-fire switch device can normally operate in the off-state power-taking mode.
As another embodiment, the on-state extreme power consumption may be determined according to the on-state power-taking threshold range, and the on-state power consumption range of the one-shot switching device may be determined according to the on-state extreme power consumption, where the on-state extreme power consumption is a lowest power consumption value at which the one-shot switching device can normally operate in the on-state power-taking mode.
The switch performance testing method provided by the embodiment of the application responds to device replacement operation, current regulation is carried out on the second load according to the power taking mode of the single-fire switch device, other critical currents corresponding to other first loads are obtained according to the current regulation, the power taking threshold range is determined according to the other critical currents and the critical currents, and the power consumption range of the single-fire switch device is determined according to the power taking threshold range. Therefore, the power consumption range of the single-fire switch equipment is determined based on the obtained critical currents, so that the power consumption range can be used as test data to be fed back, and design optimization of the intelligent single-fire switch is facilitated.
Referring to fig. 6, a block diagram of a switch performance testing apparatus 400 according to an embodiment of the present application is shown, where the switch performance testing apparatus 400 is applied to a testing circuit of a one-hot switch device, the one-hot switch device is suitable for being connected to the testing circuit for testing, the testing circuit includes a first load and a second load, the one-hot switch device includes a control circuit, the second load and the control circuit are connected in series, the control circuit is connected to a power circuit after being connected to the first load in series, and the switch performance testing apparatus 400 includes: an adjustment module 410, an acquisition module 420, and a determination module 430. The adjusting module 410 is configured to perform current adjustment on the second load according to a power taking mode of the single live switch device; the obtaining module 420 is configured to obtain a critical current of the second load according to the current adjustment, where the critical current is used to represent a current value corresponding to a minimum voltage required by normal operation of the second load; the determining module 430 is configured to determine a power consumption range of the one-shot switching device according to the critical current.
In some embodiments, the control circuit includes an off-state power circuit and an on-state power circuit, and the adjusting module 410 may include: the judging unit is used for judging the power taking mode of the single-fire switch equipment according to the control circuit, wherein the power taking mode comprises an off-state power taking mode and an on-state power taking mode, and if the off-state power taking circuit is connected to the test circuit, the single-fire switch equipment is determined to be in the off-state power taking mode; if the on-state electricity taking circuit is connected to the test circuit, the single-fire switch equipment is determined to be in an on-state electricity taking mode; and the adjusting unit is used for adjusting the current of the second load according to the power taking mode.
In some embodiments, the adjusting unit may include: the acquisition subunit is used for acquiring a preset voltage corresponding to the power-taking mode based on the determined power-taking mode, wherein the preset voltage is used for representing the lowest voltage required by the normal work of the second load when the single-fire switch equipment is in the power-taking mode; the adjusting subunit is used for adjusting the working parameter of the second load according to the preset voltage so as to change the current of the second load, wherein the working parameter at least comprises one of impedance and power;
the obtaining module 420 may be specifically configured to: in the process of adjusting the current of the second load, acquiring voltage values at two ends of the second load as adjusting voltage; acquiring a voltage difference value between the regulated voltage and a preset voltage; when the voltage difference value is smaller than a preset difference value, the current of the second load is obtained; and taking the current as the critical current of the second load.
In some embodiments, the switch performance testing apparatus 400 may include: and the response module is used for responding to device replacement operation, the device replacement operation is used for representing that the first load in the test circuit is replaced by other first loads with different powers, carrying out current regulation on the second load according to the power-taking mode of the single-live switch equipment, and acquiring the critical current of the second load according to the current regulation so as to acquire other critical currents corresponding to the other first loads.
In some embodiments, the determining module 430 may include: the threshold determining unit is used for determining the power taking threshold range according to other critical currents and critical currents; and the power consumption determining unit is used for determining the power consumption range of the single live switch equipment according to the power taking threshold range.
In some embodiments, the power-taking mode includes an off-state power-taking mode and an on-state power-taking mode, and the threshold determination unit may be specifically configured to: and determining an off-state power-taking threshold range corresponding to the off-state power-taking mode and an on-state power-taking threshold range corresponding to the on-state power-taking mode according to the other critical currents and the critical current.
In some embodiments, the power consumption determining unit may be specifically configured to: determining the power consumption of an off-state extreme value according to the power-taking threshold range of the off-state, and determining the power consumption range of the single-fire switch equipment according to the power consumption of the off-state extreme value, wherein the power consumption of the off-state extreme value is used for representing the lowest power consumption value of the single-fire switch equipment when the single-fire switch equipment can normally work in the power-taking mode of the off-state; and determining the power consumption of the open-state extreme value according to the power-taking threshold range of the open state, and determining the power consumption range of the single-firing switch equipment according to the power consumption of the closed-state extreme value, wherein the power consumption of the open-state extreme value is used for representing the lowest power consumption value of the single-firing switch equipment when the single-firing switch equipment can normally work in the power-taking mode of the open state.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, the coupling between the modules may be electrical, mechanical or other type of coupling.
In addition, functional modules in the embodiments of the present application may be integrated into one processing module, or each of the modules may exist alone physically, or two or more modules are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
According to the switch performance testing method, the switch performance testing device, the electronic equipment and the storage medium, firstly, current regulation is carried out on the second load according to the power taking mode of the single-fire switch equipment, further, the critical current of the second load is obtained according to the current regulation, the critical current is used for representing the current value corresponding to the lowest voltage required by the normal work of the second load, and the power consumption range of the single-fire switch equipment is determined according to the critical current. Therefore, the working state of the single-fire switch equipment is changed by adjusting the current of the second load in the test circuit, and the power consumption range of the single-fire switch equipment is measured, so that the performance test result of the single-fire switch equipment is quantized, the test result has reliability and referential performance, and the design optimization of the intelligent single-fire switch is facilitated.
Referring to fig. 7, a block diagram of an electronic device according to an embodiment of the present application is shown. The electronic device 500 may include one or more of the following components: a processor 510, a memory 520, and one or more applications, wherein the one or more applications may be stored in the memory 520 and configured to be executed by the one or more processors 510, the one or more programs configured to perform a method as described in the aforementioned method embodiments.
Processor 510 may include one or more processing cores. The processor 510 connects various parts within the entire terminal device 100 using various interfaces and lines, and performs various functions of the terminal device 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 520 and calling data stored in the memory 520. Alternatively, the processor 510 may be implemented in hardware using at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA). The processor 510 may integrate one or more of a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a modem, and the like. Wherein, the CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for rendering and drawing display content; the modem is used to handle wireless communications. It is understood that the modem may not be integrated into the processor 510, but may be implemented by a communication chip.
The Memory 520 may include a Random Access Memory (RAM) or a Read-Only Memory (Read-Only Memory). The memory 520 may be used to store instructions, programs, code sets, or instruction sets. The memory 520 may include a stored program area and a stored data area, wherein the stored program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playing function, an image playing function, etc.), instructions for implementing various method embodiments described below, and the like. The storage data area may also store data created by the terminal 100 in use, such as a phonebook, audio-video data, chat log data, and the like.
Referring to fig. 8, a block diagram of a computer-readable storage medium according to an embodiment of the present application is shown. The computer-readable medium 600 has stored therein a program code that can be called by a processor to execute the method described in the above-described method embodiments.
The computer-readable storage medium 600 may be an electronic memory such as a flash memory, an EEPROM (electrically erasable programmable read only memory), an EPROM, a hard disk, or a ROM. Alternatively, the computer-readable storage medium 600 includes a non-volatile computer-readable storage medium. The computer readable storage medium 600 has storage space for program code 610 for performing any of the method steps of the method described above. The program code can be read from or written to one or more computer program products. The program code 610 may be compressed, for example, in a suitable form.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not necessarily depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. A switch performance testing method is applied to a testing circuit of a single live switch device, the single live switch device is suitable for being connected into the testing circuit for testing, the testing circuit comprises a first load and a second load, the single live switch device comprises a control circuit, the second load is connected with the control circuit in series, the control circuit is connected with a power supply circuit after being connected with the first load in series, and the method comprises the following steps:
according to the power taking mode of the single live switch equipment, current regulation is carried out on the second load;
obtaining critical current of the second load according to the current regulation, wherein the critical current is used for representing a current value corresponding to the minimum voltage required by the normal work of the second load; and
and determining the power consumption range of the single live switch equipment according to the critical current.
2. The switch performance testing method of claim 1, wherein the control circuit comprises an off-state power-taking circuit and an on-state power-taking circuit, and the current regulation of the second load according to the power-taking mode of the single-fire switch device comprises:
judging a power taking mode of the single-fire switch equipment according to the control circuit, wherein the power taking mode comprises an off-state power taking mode and an on-state power taking mode, and if the off-state power taking circuit is connected to the test circuit, determining that the single-fire switch equipment is in the off-state power taking mode; if the on-state power taking circuit is connected to the test circuit, determining that the single-fire switch equipment is in an on-state power taking mode; and
and regulating the current of the second load according to the power taking mode.
3. The switch performance testing method according to claim 2, wherein the current regulation of the second load according to the power-taking mode includes:
acquiring a preset voltage corresponding to the power-taking mode based on the determined power-taking mode, wherein the preset voltage is used for representing the lowest voltage required by the normal work of the second load when the single-fire switch equipment is in the power-taking mode; and
according to the preset voltage, adjusting the working parameters of the second load to change the current of the second load, wherein the working parameters at least comprise one of impedance and power;
the obtaining a critical current of the second load according to the current regulation includes:
in the process of adjusting the current of the second load, acquiring voltage values at two ends of the second load as adjusting voltage;
acquiring a voltage difference value between the adjusting voltage and the preset voltage;
when the voltage difference value is smaller than a preset difference value, acquiring the current of the second load;
and taking the current as the critical current of the second load.
4. The switch performance testing method of claim 1, wherein prior to said determining a power consumption range of said single hot switching device from said critical current, said method further comprises:
responding to a device replacement operation, wherein the device replacement operation is used for representing that a first load in the test circuit is replaced by other first loads with different powers, carrying out current regulation on the second load according to a power-taking mode of the single live switch device, and obtaining critical current of the second load according to the current regulation so as to obtain other critical currents corresponding to the other first loads.
5. The switch performance testing method of claim 4, wherein determining the power consumption range of the single hot switching device according to the critical current comprises:
determining a power taking threshold range according to the other critical currents and the critical current; and
and determining the power consumption range of the single live switch equipment according to the power taking threshold range.
6. The method according to claim 5, wherein the power-taking mode comprises an off-state power-taking mode and an on-state power-taking mode, and the determining the power-taking threshold range according to the other critical currents and the critical current comprises:
and determining a closed-state electricity-taking threshold range corresponding to the closed-state electricity-taking mode and determining an open-state electricity-taking threshold range corresponding to the open-state electricity-taking mode according to the other critical currents and the critical current.
7. The switch performance testing method of claim 6, wherein determining the power consumption range of the single live switch device according to the power-taking threshold range comprises:
determining closed-state extreme power consumption according to the closed-state electricity-taking threshold range, and determining the closed-state power consumption range of the single-fire switch equipment according to the closed-state extreme power consumption, wherein the closed-state extreme power consumption is used for representing the lowest power consumption value of the single-fire switch equipment when the single-fire switch equipment can normally work in the closed-state electricity-taking mode; and
and determining the power consumption of an on-state extreme value according to the on-state power-taking threshold range, and determining the power consumption range of the on-state of the one-shot switch equipment according to the power consumption of the off-state extreme value, wherein the power consumption of the on-state extreme value is used for representing the lowest power consumption value of the one-shot switch equipment when the one-shot switch equipment can normally work in the on-state power-taking mode.
8. A switch performance testing device is applied to a testing circuit of a single-live-wire switch device, the single-live-wire switch device is suitable for being connected into the testing circuit for testing, the testing circuit comprises a first load and a second load, the single-live-wire switch device comprises a control circuit, the second load is connected with the control circuit in series, the control circuit is connected into a power circuit after being connected with the first load in series, and the device comprises:
the adjusting module is used for adjusting the current of the second load according to the power taking mode of the single live switch equipment;
the obtaining module is used for obtaining the critical current of the second load according to the current regulation, wherein the critical current is used for representing the current value corresponding to the lowest voltage required by the normal work of the second load; and
and the determining module is used for determining the power consumption range of the single live switch equipment according to the critical current.
9. An electronic device, comprising:
a memory;
one or more processors coupled with the memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of any of claims 1-7.
10. A computer-readable storage medium, wherein the computer-readable storage medium has stored therein program code that is invoked by a processor to perform the method of any of claims 1 to 7.
CN202111051682.5A 2021-09-08 2021-09-08 Switch performance testing method and device, electronic equipment and storage medium Active CN113805051B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111051682.5A CN113805051B (en) 2021-09-08 2021-09-08 Switch performance testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111051682.5A CN113805051B (en) 2021-09-08 2021-09-08 Switch performance testing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113805051A true CN113805051A (en) 2021-12-17
CN113805051B CN113805051B (en) 2023-06-27

Family

ID=78894875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111051682.5A Active CN113805051B (en) 2021-09-08 2021-09-08 Switch performance testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113805051B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117849607A (en) * 2024-03-07 2024-04-09 温州港源电子有限公司 Automobile switch performance detection system and method based on artificial intelligence

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN205793566U (en) * 2016-05-30 2016-12-07 宁波公牛电器有限公司 A kind of single live wire switch
CN110337162A (en) * 2019-04-28 2019-10-15 天彩电子(深圳)有限公司 Single live wire power getting system and method based on intelligent switch
CN111600586A (en) * 2020-05-30 2020-08-28 广东顺德智勤科技有限公司 Single-fire switch double-control system and method
CN111638441A (en) * 2020-06-04 2020-09-08 硅谷数模(苏州)半导体有限公司 Chip power consumption test circuit and method and chip
CN111885788A (en) * 2020-07-15 2020-11-03 深圳市欧瑞博科技股份有限公司 On-state power taking circuit, intelligent single-live-wire switch module and intelligent single-live-wire switch
CN112147496A (en) * 2020-09-04 2020-12-29 深圳市欧瑞博科技股份有限公司 Electronic switch testing device and method
US20210037474A1 (en) * 2019-07-31 2021-02-04 Consumer Lighting (U.S.), Llc Power fetching system for no neutral switch and control method thereof, no neutral switch
CN112596426A (en) * 2020-11-30 2021-04-02 深圳市欧瑞博科技股份有限公司 Control and networking method and device of single-live-wire Bluetooth intelligent switch and electronic equipment
US20210190864A1 (en) * 2016-02-15 2021-06-24 Omicron Electronics Gmbh Test device for testing a control unit of a switching apparatus of a switchgear

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20210190864A1 (en) * 2016-02-15 2021-06-24 Omicron Electronics Gmbh Test device for testing a control unit of a switching apparatus of a switchgear
CN205793566U (en) * 2016-05-30 2016-12-07 宁波公牛电器有限公司 A kind of single live wire switch
CN110337162A (en) * 2019-04-28 2019-10-15 天彩电子(深圳)有限公司 Single live wire power getting system and method based on intelligent switch
US20210037474A1 (en) * 2019-07-31 2021-02-04 Consumer Lighting (U.S.), Llc Power fetching system for no neutral switch and control method thereof, no neutral switch
CN111600586A (en) * 2020-05-30 2020-08-28 广东顺德智勤科技有限公司 Single-fire switch double-control system and method
CN111638441A (en) * 2020-06-04 2020-09-08 硅谷数模(苏州)半导体有限公司 Chip power consumption test circuit and method and chip
CN111885788A (en) * 2020-07-15 2020-11-03 深圳市欧瑞博科技股份有限公司 On-state power taking circuit, intelligent single-live-wire switch module and intelligent single-live-wire switch
CN112147496A (en) * 2020-09-04 2020-12-29 深圳市欧瑞博科技股份有限公司 Electronic switch testing device and method
CN112596426A (en) * 2020-11-30 2021-04-02 深圳市欧瑞博科技股份有限公司 Control and networking method and device of single-live-wire Bluetooth intelligent switch and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨德石等: "基于ZigBee的单火线智能开关的设计与实现", 《工业控制计算机》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117849607A (en) * 2024-03-07 2024-04-09 温州港源电子有限公司 Automobile switch performance detection system and method based on artificial intelligence

Also Published As

Publication number Publication date
CN113805051B (en) 2023-06-27

Similar Documents

Publication Publication Date Title
US8072197B2 (en) Power-managed socket
JP4980911B2 (en) Power system
CN112713650B (en) Electric power monitoring data processing system
CN104375618A (en) Power management method, power management device and electronic device
CN113805051A (en) Switch performance testing method and device, electronic equipment and storage medium
CN108806565B (en) Display screen lighting test device and method
CN106921192A (en) Terminal and electricity sharing method
CN109709373B (en) Signal self-adaptive acquisition circuit and acquisition method
CN111463891A (en) Power failure emergency method and device, electronic equipment and computer readable medium
CN115599188A (en) Server power supply control method and device, storage medium and electronic device
CN103529824B (en) Stability test method and system
CN111045506B (en) Control method and electronic equipment
CN112448447B (en) Charging method, charging device, electronic equipment and storage medium
CN112615724B (en) POE load priority power supply management system
CN112596426B (en) Control and networking method and device of single-live-wire Bluetooth intelligent switch and electronic equipment
CN113156244A (en) Method and device for testing charging device, electronic device and storage medium
CN203455685U (en) Multiport power supply monitoring device
CN112881951A (en) Interface plug-in analog circuit
CN105896662A (en) Single-port mobile power control circuit and control method thereof
TWM575622U (en) Voice control adaptor
CN115347651B (en) Energy storage method and device based on detection equipment
CN112310753A (en) Intelligent socket, control method and control device of intelligent socket
CN217820621U (en) Power failure test module and serial port relay
TWI789239B (en) Voltage monitoring system and voltage monitoring device of automatically adjusting scaling degree of input signal and related method of voltage monitoring
CN203455637U (en) Energy-saving switch

Legal Events

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