Method, device and system for determining representation state of point switch and electronic equipment

By collecting the pulse high and low levels of pulses in the switch machine representation circuit and determining the switch machine representation state, the problem that the power curve information is affected by the power grid fluctuation is solved, and the accuracy of state determination is improved.

CN120156562APending Publication Date: 2025-06-17BEIJING URBAN CONSTR INTELLIGENT CONTROL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510241196.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-03
Publication Date
2025-06-17

AI Technical Summary

Technical Problem

In the prior art, when determining the state of the switch machine through power curve information, it is susceptible to the influence of power grid fluctuations, which reduces the accuracy.

Method used

Through the pulse acquisition channel connected to the switch machine representation circuit, the pulse high and pulse low levels are determined every preset time period, the state of the pulse acquisition channel is determined based on these times, and the switch machine representation state is finally determined.

Benefits of technology

Improve the accuracy of the switch machine representation status determination and reduce the impact on power grid fluctuations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120156562A_ABST
    Figure CN120156562A_ABST
Patent Text Reader

Abstract

The invention provides a method, device and system for determining the indication state of a point switch and electronic equipment, and relates to the technical field of rail transit. Determining the pulse high level times and the pulse low level times of the point switch indication circuit every preset duration through the pulse acquisition channel; for each preset duration, determining the state of the pulse acquisition channel based on the number of pulse high levels and the number of pulse low levels in the preset duration; and determining the representation state of the switch machine based on the state of each pulse acquisition channel within the preset duration. According to the method, the indication state of the switch machine is determined based on the pulse high level times and the pulse low level times, and the pulse high level and the pulse low level are not influenced by power grid fluctuation, so that the accuracy of determining the indication state of the switch machine can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of rail transit, and particularly to a method, device, system and electronic device for determining the indication state of a switch machine. Background Art

[0002] When a train transfers from one track to another or intends to enter the track of a maintenance yard or a factory, special arrangements must be made on the track to guide the wheel flange to smoothly enter the designated track. This arrangement is called a turnout. A switch machine is a conversion device for the turnout, used to realize the conversion of the turnout, locking of the turnout, and reflecting the position of the switch rail. The indication state of the switch machine corresponds to the working state of the turnout. Therefore, the determination of the indication state of the switch machine is particularly important.

[0003] In the related art, by obtaining the real-time action power curve information within a preset time period and the curve information corresponding to the fixed value power, separating each real-time action power curve information to obtain the separated real-time action power curve information; judging the separated real-time action power curve information and the curve information corresponding to the fixed value power to obtain the judged action power curve information; performing feature processing on each judged action power curve information to obtain the switch machine state feature information; and inputting the switch machine state feature information into a preset switch machine state detection model to obtain the indication state of the switch machine.

[0004] However, in the above related art, the indication state of the switch machine is determined by using the power curve information, but the power curve information is easily affected by the power grid fluctuation, thereby reducing the accuracy of determining the indication state of the switch machine. Summary of the Invention

[0005] The present invention provides a method, device, system and electronic device for determining the indication state of a switch machine to solve the defect of reducing the accuracy of determining the indication state of the switch machine in the prior art.

[0006] The present invention provides a method for determining the indication state of a switch machine, including the following steps.

[0007] For each pulse acquisition channel connected to the switch machine indication circuit, determine the number of pulse high levels and the number of pulse low levels in the switch machine indication circuit every preset time period through the pulse acquisition channel; For each of the preset time periods, determine the state of the pulse acquisition channel based on the number of pulse high levels and the number of pulse low levels within the preset time period; Determine the indication state of the switch machine based on the states of the pulse acquisition channels within the preset time period.

[0008] A method for determining the indication state of a switch machine provided according to the present invention, determining the state of the pulse acquisition channel based on the number of pulse high levels and the number of pulse low levels within the preset duration, includes: When the number of pulse high levels within the preset duration is within a first preset range and the number of pulse low levels within the preset duration is within a second preset range, determining that the state of the pulse acquisition channel is a normal state; When the number of pulse high levels within the preset duration is not within the first preset range or the number of pulse low levels within the preset duration is not within the second preset range, determining that the state of the pulse acquisition channel is an abnormal state.

[0009] A method for determining the indication state of a switch machine provided according to the present invention, the switch machine indication circuit includes a switch machine normal indication circuit and a switch machine reverse indication circuit, and the switch machine normal indication circuit and the switch machine reverse indication circuit are respectively connected to each of the pulse acquisition channels; Determining the switch machine indication state based on the states of each of the pulse acquisition channels within the preset duration, includes: When all the pulse acquisition channels corresponding to the switch machine normal indication circuit within the preset duration are in a normal state and all the pulse acquisition channels corresponding to the switch machine reverse indication circuit within the preset duration are in an abnormal state, determining that the switch machine indication state is a normal indication state; When all the pulse acquisition channels corresponding to the switch machine normal indication circuit within the preset duration are in a normal state and at least one of the pulse acquisition channels corresponding to the switch machine reverse indication circuit within the preset duration is in a normal state, determining that the switch machine indication state is a four-open state; When all the pulse acquisition channels corresponding to the switch machine reverse indication circuit within the preset duration are in a normal state and all the pulse acquisition channels corresponding to the switch machine normal indication circuit within the preset duration are in an abnormal state, determining that the switch machine indication state is a reverse indication state; When all the pulse acquisition channels corresponding to the switch machine reverse indication circuit within the preset duration are in a normal state and at least one of the pulse acquisition channels corresponding to the switch machine normal indication circuit within the preset duration is in a normal state, determining that the switch machine indication state is a four-open state.

[0010] A method for determining the indication state of a switch machine provided according to the present invention, determining the number of pulse high levels and the number of pulse low levels within each preset duration of the switch machine indication circuit through the pulse acquisition channel, includes: For each of the preset durations, collecting the current level signal of the switch machine indication circuit within the preset duration through the pulse acquisition channel; When the current level signal is a high-level signal, accumulate the number of high-level times, and determine whether the current number of low-level times is within a third preset range, where the third preset range is determined based on the minimum duration and the maximum duration of the low-level duration; When it is determined that the current number of low-level times is within the third preset range, accumulate the number of pulsed low-level times to obtain the number of pulsed low-level times within the preset duration; When the current level signal is a low-level signal, accumulate the number of low-level times, and determine whether the current number of high-level times is within a fourth preset range, where the fourth preset range is determined based on the minimum duration and the maximum duration of the high-level duration; When it is determined that the current number of high-level times is within the fourth preset range, accumulate the number of pulsed high-level times to obtain the number of pulsed high-level times within the preset duration.

[0011] According to a method for determining the indication state of a switch machine provided by the present invention, the method further includes: When it is determined that the current number of low-level times is not within the third preset range, or the current number of high-level times is not within the fourth preset range, accumulate the number of third-state times; When the number of pulsed high-level times within the preset duration is within a first preset range and the number of pulsed low-level times within the preset duration is within a second preset range, determining that the state of the pulse acquisition channel is a normal state includes: when the number of pulsed high-level times within the preset duration is within the first preset range, the number of pulsed low-level times within the preset duration is within the second preset range, and the number of third-state times within the preset duration is less than a preset number, determining that the state of the pulse acquisition channel is a normal state.

[0012] The present invention further provides a system for determining the indication state of a switch machine, including a processor and a pulse acquisition circuit. The processor is configured to execute the method for determining the indication state of a switch machine according to any one of the above embodiments; The pulse acquisition circuit includes a rectification circuit, a voltage stabilization circuit, a rectification detection circuit, a first pulse isolation acquisition module, and a second pulse isolation acquisition module. The input end of the rectification circuit is connected to the output end of the switch machine indication circuit. The output end of the rectification circuit is sequentially connected to the processor through the voltage stabilization circuit and the first pulse isolation acquisition module. The output end of the rectification circuit is sequentially connected to the processor through the rectification detection circuit and the second pulse isolation acquisition module. The rectification circuit, the voltage stabilization circuit, and the first pulse isolation acquisition module form a pulse acquisition channel. The rectification circuit, the rectification detection circuit, and the second pulse isolation acquisition module form a pulse acquisition channel.

[0013] The present invention also provides a device for determining the indication state of a switch machine, including: A first determination unit, configured to determine, for each pulse acquisition channel connected to the switch machine indication circuit, the number of pulse high levels and the number of pulse low levels within each preset time period of the switch machine indication circuit through the pulse acquisition channel; A second determination unit, configured to determine, for each of the preset time periods, the state of the pulse acquisition channel based on the number of pulse high levels and the number of pulse low levels within the preset time period; A third determination unit, configured to determine the indication state of the switch machine based on the states of the pulse acquisition channels within the preset time period.

[0014] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the method for determining the indication state of the switch machine as described in any one of the above is implemented.

[0015] The present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method for determining the indication state of the switch machine as described in any one of the above is implemented.

[0016] The present invention also provides a computer program product, including a computer program. When the computer program is executed by a processor, the method for determining the indication state of the switch machine as described in any one of the above is implemented.

[0017] For the method, device, system, and electronic device for determining the indication state of the switch machine provided by the present invention, for each pulse acquisition channel connected to the switch machine indication circuit, the number of pulse high levels and the number of pulse low levels within each preset time period of the switch machine indication circuit are determined through the pulse acquisition channel. For each preset time period, the state of the pulse acquisition channel is determined based on the number of pulse high levels and the number of pulse low levels within the preset time period. The indication state of the switch machine is determined based on the states of the pulse acquisition channels within the preset time period. It can be seen that the present invention determines the indication state of the switch machine based on the number of pulse high levels and the number of pulse low levels. The pulse high level and the pulse low level are not affected by the power grid fluctuation, so as to improve the accuracy of determining the indication state of the switch machine. Description of the Drawings

[0018] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0019] Figure 1 It is one of the flow schematic diagrams of the method for determining the indication state of a switch machine provided by an embodiment of the present invention.

[0020] Figure 2 It is the second of the flow schematic diagrams of the method for determining the indication state of a switch machine provided by an embodiment of the present invention.

[0021] Figure 3 It is the third of the flow schematic diagrams of the method for determining the indication state of a switch machine provided by an embodiment of the present invention.

[0022] Figure 4 It is one of the structural schematic diagrams of the pulse acquisition circuit provided by an embodiment of the present invention.

[0023] Figure 5 It is the fourth of the flow schematic diagrams of the method for determining the indication state of a switch machine provided by an embodiment of the present invention.

[0024] Figure 6 It is the fifth of the flow schematic diagrams of the method for determining the indication state of a switch machine provided by an embodiment of the present invention.

[0025] Figure 7 It is the sixth of the flow schematic diagrams of the method for determining the indication state of a switch machine provided by an embodiment of the present invention.

[0026] Figure 8 It is the second of the structural schematic diagrams of the pulse acquisition circuit provided by an embodiment of the present invention.

[0027] Figure 9 It is the structural schematic diagram of the device for determining the indication state of a switch machine provided by an embodiment of the present invention.

[0028] Figure 10 It is the physical structural schematic diagram of the electronic device provided by an embodiment of the present invention. Detailed implementation manners

[0029] To make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings in the present invention. Obviously, the described embodiments are some but not all of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments in the present invention without making creative efforts shall fall within the protection scope of the present invention.

[0030] The indicating rod of the switch machine moves with the turnout by being connected to the indicating connecting rod of the turnout, and is used to check whether the switch rail is in close contact and feedback to the switch machine whether the switch rail is in the normal position or the reverse position.

[0031] The automatic switch of the switch machine operates randomly within the switch machine and can automatically complete the switching function. Along with the conversion of the turnout, it correctly connects and disconnects the motor circuit and the switch machine indication circuit.

[0032] For the switch machine indication circuit, it is necessary to cooperate with the switch machine indication rod and the automatic switch. By driving the switch machine indication rod to be in different positions through the rotation of the switch machine, different contacts of the automatic switch and different indication circuits are conducted and disconnected, thereby reflecting whether the switch point rail is in the normal position, reverse position or four-way open. Therefore, it is particularly important to determine the indication state of the switch machine.

[0033] The following combines Figures 1 - 7 to describe the method for determining the indication state of the switch machine of the present invention. The execution subject of the method for determining the indication state of the switch machine can be an electronic device such as a terminal, a computer, a server, etc., or a device for determining the indication state of the switch machine set in the electronic device. The device for determining the indication state of the switch machine can be implemented by software, hardware or a combination of both.

[0034] Figure 1 is one of the flow schematic diagrams of the method for determining the indication state of the switch machine provided by the embodiment of the present invention. As Figure 1 shown, the method for determining the indication state of the switch machine includes the following steps: Step 101: For each pulse acquisition channel connected to the switch machine indication circuit, determine the number of pulse high-level times and the number of pulse low-level times within each preset time period of the switch machine indication circuit through the pulse acquisition channel.

[0035] Among them, the number of pulse acquisition channels can be at least two.

[0036] Exemplarily, the switch machine indication circuit is connected to multiple pulse acquisition channels. For each pulse acquisition channel connected to the switch machine indication circuit, collect the number of pulse high-level times and the number of pulse low-level times within each preset time period of the switch machine indication circuit through the pulse acquisition channel. Among them, the preset time period can be set based on requirements. For example, the preset time period is 1 s (second).

[0037] Step 102: For each of the preset time periods, determine the state of the pulse acquisition channel based on the number of pulse high-level times and the number of pulse low-level times within the preset time period.

[0038] Exemplarily, when obtaining the number of high-level pulses and the number of low-level pulses of the switch machine indication circuit within each preset time period, for each preset time period, determine whether the number of high-level pulses and the number of low-level pulses of the switch machine indication circuit within the preset time period meet the requirements. When it is determined that both the number of high-level pulses and the number of low-level pulses of the switch machine indication circuit within the preset time period meet the requirements, determine the state of the pulse acquisition channel as the normal state; when it is determined that either the number of high-level pulses or the number of low-level pulses of the switch machine indication circuit within the preset time period does not meet the requirements, determine the state of the pulse acquisition channel as the abnormal state.

[0039] Step 103: Determine the switch machine indication state based on the states of the pulse acquisition channels within the preset time period.

[0040] Exemplarily, for each preset time period, when obtaining the states of the pulse acquisition channels within the preset time period, perform an overall analysis on the states of all the pulse acquisition channels within the preset time period, and then determine the switch machine indication state based on the result of the overall analysis.

[0041] The method for determining the switch machine indication state provided by the present invention, for each pulse acquisition channel connected to the switch machine indication circuit, determines the number of high-level pulses and the number of low-level pulses of the switch machine indication circuit within each preset time period through the pulse acquisition channel. For each preset time period, based on the number of high-level pulses and the number of low-level pulses within the preset time period, determine the state of the pulse acquisition channel, and based on the states of the pulse acquisition channels within the preset time period, determine the switch machine indication state. It can be seen that the present invention determines the switch machine indication state based on the number of high-level pulses and the number of low-level pulses. The high-level pulse and the low-level pulse are not affected by the power grid fluctuation, thereby improving the accuracy of determining the switch machine indication state. During different seasons, day or night, etc., the power consumption will change, resulting in the change of the power grid voltage and generating power grid fluctuation.

[0042] In an embodiment, the above step 102 determines the state of the pulse acquisition channel based on the number of high-level pulses and the number of low-level pulses within the preset time period, and can be specifically implemented in the following manner: When the number of high-level pulses within the preset time period is within the first preset range and the number of low-level pulses within the preset time period is within the second preset range, determine the state of the pulse acquisition channel as the normal state.

[0043] When the number of high-level pulses within the preset time period is not within the first preset range or the number of low-level pulses within the preset time period is not within the second preset range, determine the state of the pulse acquisition channel as the abnormal state.

[0044] Among them, the first preset range and the second preset range can be set based on requirements, and the first preset range and the second preset range can be the same or different. For example, both the first preset range and the second preset range are from 45 to 55.

[0045] Exemplarily, Figure 2 is the second flowchart of the method for determining the indication state of the switch machine provided by the embodiment of the present invention. As Figure 2 shown, taking both the first preset range and the second preset range as from 45 to 55 as an example, within a preset time period, the pulse high level and the pulse low level of the switch machine indication circuit are counted through the pulse acquisition channel. The timer sets an interruption based on the preset time period, and determines whether the number of counted pulse high levels is greater than or equal to 45 and less than or equal to 55. When it is determined that the number of counted pulse high levels is greater than or equal to 45 and less than or equal to 55, it is further determined whether the number of counted pulse low levels is greater than or equal to 45 and less than or equal to 55. When it is determined that the number of counted pulse low levels is greater than or equal to 45 and less than or equal to 55, it is determined that the state of the corresponding pulse acquisition channel is the normal state, and the number of counted pulse high levels and the number of counted pulse low levels are cleared to facilitate the counting in the next preset time period.

[0046] When it is determined that the number of counted pulse high levels is less than 45 or greater than 55, or it is determined that the number of counted pulse low levels is less than 45 or greater than 55, it is determined that the state of the corresponding pulse acquisition channel is the abnormal state, and the number of counted pulse high levels and the number of counted pulse low levels are cleared to facilitate the counting in the next preset time period. By using the same method, the state of each pulse acquisition channel can be obtained.

[0047] In this embodiment, based on whether the number of pulse high levels within the preset time period is within the first preset range and whether the number of pulse high and low levels within the preset time period is within the second preset range, the state of the pulse acquisition channel is automatically determined, improving the efficiency and accuracy of determining the state of the pulse acquisition channel.

[0048] In one embodiment, the switch machine indication circuit includes a switch machine normal indication circuit and a switch machine reverse indication circuit, and the switch machine normal indication circuit and the switch machine reverse indication circuit are respectively connected to each of the pulse acquisition channels; step 103 above determines the switch machine indication state based on the states of each of the pulse acquisition channels within the preset time period, and can be specifically implemented in the following manner: When the states of all the pulse acquisition channels corresponding to the switch machine normal indication circuit are in the normal state and the states of all the pulse acquisition channels corresponding to the switch machine reverse indication circuit are in the abnormal state within the preset time period, it is determined that the switch machine indication state is the normal indication state; When the states of all pulse acquisition channels corresponding to the normal position indication circuit of the switch machine are in the normal state within the preset time period, and the state of at least one pulse acquisition channel corresponding to the reverse position indication circuit of the switch machine is in the normal state, it is determined that the indication state of the switch machine is the four-open state; When the states of all pulse acquisition channels corresponding to the reverse position indication circuit of the switch machine are in the normal state within the preset time period, and the states of all pulse acquisition channels corresponding to the normal position indication circuit of the switch machine are in the abnormal state, it is determined that the indication state of the switch machine is the reverse position state; When the states of all pulse acquisition channels corresponding to the reverse position indication circuit of the switch machine are in the normal state within the preset time period, and the state of at least one pulse acquisition channel corresponding to the normal position indication circuit of the switch machine is in the normal state, it is determined that the indication state of the switch machine is the four-open state.

[0049] Among them, the normal position indication circuit of the switch machine is a circuit that, when the switch is in the normal position, is used to reflect this position state and transmit the information to the indoor control console. The reverse position indication circuit of the switch machine is a circuit that, when the switch is in the reverse position, is used to reflect this position state and transmit the information to the indoor control console.

[0050] Exemplarily, Figure 3 is the third flow chart of the method for determining the indication state of the switch machine provided by the embodiment of the present invention. As Figure 3 shown, taking the number of pulse acquisition channels as four as an example, the indication state of the switch machine is default set to the four-open state; when it is determined that the states of the four pulse acquisition channels corresponding to the normal position indication circuit of the switch machine are in the normal state within the preset time period, and the states of the four pulse acquisition channels corresponding to the reverse position indication circuit of the switch machine are in the abnormal state, it is determined that the indication state of the switch machine is the normal position state.

[0051] When it is determined that the states of the four pulse acquisition channels corresponding to the reverse position indication circuit of the switch machine are in the normal state within the preset time period, and the states of the four pulse acquisition channels corresponding to the normal position indication circuit of the switch machine are in the abnormal state, it is determined that the indication state of the switch machine is the reverse position state.

[0052] When it is determined that the states of the four pulse acquisition channels corresponding to the normal position indication circuit of the switch machine are in the normal state within the preset time period, and the state of at least one pulse acquisition channel corresponding to the reverse position indication circuit of the switch machine is in the normal state, it is determined that the indication state of the switch machine is the four-open state.

[0053] When it is determined that the states of the four pulse acquisition channels corresponding to the reverse position indication circuit of the switch machine are in the normal state within the preset time period, and the state of at least one pulse acquisition channel corresponding to the normal position indication circuit of the switch machine is in the normal state, it is determined that the indication state of the switch machine is the four-open state.

[0054] It should be noted that the fixed-table state, reverse-table state, and four-open state are the position representation methods of the switch machine in different working states, corresponding to the normal positioning state, special reverse position state, and abnormal non-close state of the switch respectively. These state information are of great significance for ensuring the safety of railway operation and improving transportation efficiency.

[0055] In this embodiment, based on the states of each pulse acquisition channel corresponding to the fixed-table representation circuit of the switch machine and the states of each pulse acquisition channel corresponding to the reverse-table representation circuit of the switch machine, the representation state of the switch machine can be automatically determined, thus improving the efficiency and accuracy of determining the representation state of the switch machine.

[0056] In one embodiment, step 101 determines the number of pulse high levels and the number of pulse low levels within each preset time period of the switch machine representation circuit through the pulse acquisition channel, and can be specifically implemented in the following manner: For each preset time period, collect the current level signal of the switch machine representation circuit within the preset time period through the pulse acquisition channel; When the current level signal is a high-level signal, accumulate the number of high levels, and determine whether the current number of low levels is within a third preset range, where the third preset range is determined based on the minimum duration of low-level continuation and the maximum duration of low-level continuation; When it is determined that the current number of low levels is within the third preset range, accumulate the number of pulse low levels to obtain the number of pulse low levels within the preset time period; When the current level signal is a low-level signal, accumulate the number of low levels, and determine whether the current number of high levels is within a fourth preset range, where the fourth preset range is determined based on the minimum duration of high-level continuation and the maximum duration of high-level continuation; When it is determined that the current number of high levels is within the fourth preset range, accumulate the number of pulse high levels to obtain the number of pulse high levels within the preset time period.

[0057] Among them, Figure 4 is one of the structural schematic diagrams of the pulse acquisition circuit provided by the embodiments of the present invention, as Figure 4As shown in the figure, the pulse acquisition circuit includes a rectifier circuit, a voltage stabilizing circuit, a rectification detection circuit, a first pulse isolation acquisition module, and a second pulse isolation acquisition module. The input end of the rectifier circuit is connected to the output end of the switch machine indication circuit. The output end of the rectifier circuit is connected to the processor through the voltage stabilizing circuit and the first pulse isolation acquisition module in sequence. The output end of the rectifier circuit is connected to the processor through the rectification detection circuit and the second pulse isolation acquisition module in sequence. The rectifier circuit, the voltage stabilizing circuit, and the first pulse isolation acquisition module form a pulse acquisition channel. The rectifier circuit, the rectification detection circuit, and the second pulse isolation acquisition module form a pulse acquisition channel. The pulse acquisition channel formed by the rectifier circuit, the voltage stabilizing circuit, and the first pulse isolation acquisition module can be one or two. The pulse acquisition channel formed by the rectifier circuit, the rectification detection circuit, and the second pulse isolation acquisition module can also be one or two.

[0058] Exemplarily, Figure 4 In the example, there are two pulse acquisition channels formed by the rectifier circuit, the voltage stabilizing circuit, and the first pulse isolation acquisition module, and there are also two pulse acquisition channels formed by the rectifier circuit, the rectification detection circuit, and the second pulse isolation acquisition module. The two pulse acquisition channels formed by the rectifier circuit, the voltage stabilizing circuit, and the first pulse isolation acquisition module are called pulse acquisition channel 1 and pulse acquisition channel 2, and the two pulse acquisition channels formed by the rectifier circuit, the rectification detection circuit, and the second pulse isolation acquisition module are called pulse acquisition channel 3 and pulse acquisition channel 4.

[0059] Taking the processor using a 500 - microsecond timer interrupt as an example, the level signals of the switch machine indication circuit are continuously acquired through pulse acquisition channel 1, pulse acquisition channel 2, pulse acquisition channel 3, and pulse acquisition channel 4 respectively, and the number of times is recorded. The level duration is determined by cumulative addition of the number of times.

[0060] Specifically, for pulse acquisition channel 1 and pulse acquisition channel 2, the minimum high - level duration, the maximum high - level duration, the minimum low - level duration, and the maximum low - level duration are preset based on requirements. Taking the minimum high - level duration as 3.5 milliseconds, the maximum high - level duration as 8 milliseconds, the minimum low - level duration as 12 milliseconds, and the maximum low - level duration as 16.5 milliseconds as an example, the cumulative high - level count corresponding to the minimum high - level duration is 7 times, the cumulative high - level count corresponding to the maximum high - level duration is 16 times. When the high - level count accumulates between 7 times and 16 times, a pulse high - level is recorded. The cumulative low - level count corresponding to the minimum low - level duration is 24 times, the cumulative low - level count corresponding to the maximum low - level duration is 33 times. When the low - level count accumulates between 24 times and 33 times, a pulse low - level is recorded.

[0061] It should be noted that in Figure 4Taking the four pulse acquisition channels corresponding to the normal position indication circuit of the switch machine as the four-channel normal position indication and the four pulse acquisition channels corresponding to the reverse position indication circuit of the switch machine as the four-channel reverse position indication as an example for illustration.

[0062] Figure 5 It is the fourth schematic flow chart of the method for determining the indication state of the switch machine provided by the embodiment of the present invention. As Figure 5 shown, for pulse acquisition channel 1 and pulse acquisition channel 2, taking the minimum high-level duration as 3.5 milliseconds, the maximum high-level duration as 8 milliseconds, the minimum low-level duration as 12 milliseconds, and the maximum low-level duration as 16.5 milliseconds as an example, when it is determined that the current level signal is a high-level signal, it indicates that the low-level acquisition has been completed. At this time, the high-level count is accumulated, and it is determined whether the current low-level count is greater than or equal to 24 and less than or equal to 33. When it is determined that the current low-level count is greater than or equal to 24 and less than or equal to 33, the pulse low-level count is accumulated to obtain the pulse low-level count within the preset duration, and the low-level count accumulation is cleared.

[0063] When it is determined that the current level signal is a low-level signal, it indicates that the high-level acquisition has been completed. At this time, the low-level count is accumulated, and it is determined whether the current high-level count is greater than or equal to 7 and less than or equal to 16. When it is determined that the current high-level count is greater than or equal to 7 and less than or equal to 16, the pulse high-level count is accumulated to obtain the pulse high-level count within the preset duration, and the high-level count accumulation is cleared.

[0064] Specifically, for pulse acquisition channel 3 and pulse acquisition channel 4, the minimum high-level duration, the maximum high-level duration, the minimum low-level duration, and the maximum low-level duration are preset based on requirements. Taking the minimum high-level duration as 1 millisecond, the maximum high-level duration as 8.5 milliseconds, the minimum low-level duration as 11.5 milliseconds, and the maximum low-level duration as 19 milliseconds as an example, the high-level accumulation count corresponding to the minimum high-level duration is 2 times, and the high-level accumulation count corresponding to the maximum high-level duration is 17 times. When the high-level count accumulates between 2 times and 17 times, a pulse high-level is recorded; the low-level accumulation count corresponding to the minimum low-level duration is 23 times, and the low-level accumulation count corresponding to the maximum low-level duration is 38 times. When the low-level count accumulates between 23 times and 38 times, a pulse low-level is recorded.

[0065] Figure 6 It is the fifth schematic flow chart of the method for determining the indication state of the switch machine provided by the embodiment of the present invention. As Figure 6As shown, for pulse acquisition channel 3 and pulse acquisition channel 4, taking the minimum high-level duration of 1 millisecond, the maximum high-level duration of 8.5 milliseconds, the minimum low-level duration of 11.5 milliseconds, and the maximum low-level duration of 19 milliseconds as examples, when it is determined that the current level signal is a high-level signal, it indicates that the low-level acquisition has been completed. At this time, the high-level count is incremented, and it is determined whether the current low-level count is greater than or equal to 23 and less than or equal to 38. When it is determined that the current low-level count is greater than or equal to 23 and less than or equal to 38, the pulse low-level count is incremented to obtain the pulse low-level count within the preset duration, and the low-level count is cleared.

[0066] When it is determined that the current level signal is a low-level signal, it indicates that the high-level acquisition has been completed. At this time, the low-level count is incremented, and it is determined whether the current high-level count is greater than or equal to 2 and less than or equal to 17. When it is determined that the current high-level count is greater than or equal to 2 and less than or equal to 17, the pulse high-level count is incremented to obtain the pulse high-level count within the preset duration, and the high-level count is cleared.

[0067] In this embodiment, the current level signal of the switch machine indication circuit within the preset duration is acquired through the pulse acquisition channel, and the pulse high-level count and the pulse low-level count are determined based on the type of the current level signal, so as to improve the accuracy of counting the pulse high-level count and the pulse low-level count, and further improve the accuracy of determining the switch machine indication state.

[0068] In one embodiment, the method for determining the switch machine indication state further includes the following steps: In the case where it is determined that the current low-level count is not within the third preset range, or the current high-level count is not within the fourth preset range, the third-state count is incremented.

[0069] Correspondingly, in the case where the pulse high-level count within the preset duration is within the first preset range and the pulse low-level count within the preset duration is within the second preset range, the state of the pulse acquisition channel is determined to be the normal state, which can be specifically implemented in the following manner: In the case where the pulse high-level count within the preset duration is within the first preset range, the pulse low-level count within the preset duration is within the second preset range, and the third-state count within the preset duration is less than the preset number, the state of the pulse acquisition channel is determined to be the normal state.

[0070] Among them, the preset number can be set based on requirements. For example, the preset number is 4.

[0071] Exemplarily, such as Figure 5As shown, for pulse acquisition channel 1 and pulse acquisition channel 2, when it is determined that the current number of low levels is less than 24 or greater than 33, it indicates that two consecutive pulse levels are neither within the pulse high-level duration interval nor within the pulse low-level duration interval. Then, record a third state once and clear the accumulated number of low levels to zero; when it is determined that the current number of high levels is less than 7 or greater than 16, record a third state once and clear the accumulated number of high levels to zero, and finally obtain the number of third states within the preset duration.

[0072] As Figure 6 shown, for pulse acquisition channel 3 and pulse acquisition channel 4, when it is determined that the current number of low levels is less than 23 or greater than 38, record a third state once and clear the accumulated number of low levels to zero; when it is determined that the current number of high levels is less than 2 or greater than 17, record a third state once and clear the accumulated number of high levels to zero, and finally obtain the number of third states within the preset duration.

[0073] Correspondingly, Figure 7 is the sixth flowchart of the method for determining the indication state of the switch machine provided by the embodiment of the present invention. As Figure 6 shown, taking pulse acquisition channel 1 and pulse acquisition channel 2 as an example, when it is determined that the counted number of pulse high levels is greater than or equal to 45 and less than or equal to 55, the counted number of pulse low levels is greater than or equal to 45 and less than or equal to 55, and the number of third states is less than 4, determine that the state of the corresponding pulse acquisition channel is the normal state.

[0074] It should be noted that when the number of pulse high levels within the preset duration is not within the first preset range, or the number of pulse low levels within the preset duration is not within the second preset range, or the number of third states within the preset duration is greater than or equal to the preset number, determine that the state of the pulse acquisition channel is the abnormal state. Adding the determination of the number of third states can improve the accuracy of determining the state of the pulse acquisition channel.

[0075] It should be noted that the above preset number can be adaptively adjusted based on different application environments, so that the method for determining the indication state of the switch machine of the present invention can be adapted to different application environments and can improve the accuracy of determining the indication state of the switch machine in different application environments. The present invention does not make any limitations in this regard.

[0076] In this embodiment, considering that when the switch machine is installed, for the convenience of wiring, a multi-core cable is shared by multiple switch machines. For different switch machines of the same cable, if the switch machines rotate simultaneously, they will interfere with each other. Therefore, in this embodiment, when pulse acquisition is performed, the number of third states that can characterize mutual interference is recorded, so as to effectively avoid mutual interference between switch machines and further improve the accuracy and stability of determining the indication state of the switch machine.

[0077] As shown Figure 4 in the figure, an embodiment of the present invention provides a system for determining the indication state of a switch machine, including a processor and a pulse acquisition circuit. The processor is configured to execute the method for determining the indication state of the switch machine as described in any of the above embodiments.

[0078] The pulse acquisition circuit includes a rectification circuit, a voltage stabilization circuit, a rectification detection circuit, a first pulse isolation acquisition module, and a second pulse isolation acquisition module. The input end of the rectification circuit is connected to the output end of the switch machine indication circuit. The output end of the rectification circuit is sequentially connected to the processor through the voltage stabilization circuit and the first pulse isolation acquisition module. The output end of the rectification circuit is sequentially connected to the processor through the rectification detection circuit and the second pulse isolation acquisition module. The rectification circuit, the voltage stabilization circuit, and the first pulse isolation acquisition module form a pulse acquisition channel. The rectification circuit, the rectification detection circuit, and the second pulse isolation acquisition module form a pulse acquisition channel.

[0079] Among them, the rectification circuit is a circuit that converts alternating current into direct current, and the rectification circuit can be a diode bridge rectification circuit. The voltage stabilization circuit is a circuit used to control the voltage fluctuation of the load in the circuit, and the voltage stabilization circuit can be a diode voltage stabilization circuit. The rectification detection circuit is used to detect the output of the rectification circuit to ensure that the rectification circuit works normally and outputs the correct direct current. The rectification detection circuit can be a rectifier diode detection circuit. Both the first pulse isolation acquisition module and the second pulse isolation acquisition module are used to isolate and acquire pulse signals.

[0080] The processor is configured to execute a timer interrupt with a preset target duration, continuously acquire the level signals of each pulse acquisition channel respectively, and record the number of times, and determine the level duration by accumulating the number of times.

[0081] It should be noted that Figure 8 is the second structural schematic diagram of the pulse acquisition circuit provided by the embodiment of the present invention. As shown Figure 8 in the figure, the pulse acquisition circuit further includes an anti-reverse connection circuit, and the voltage stabilization circuit is connected to the first pulse isolation acquisition module through the anti-reverse connection circuit.

[0082] Among them, the anti-reverse connection circuit can be a diode anti-reverse connection circuit. The diode anti-reverse connection circuit is used to protect the circuit from reverse voltage or current damage to improve the reliability of the pulse acquisition circuit.

[0083] It should be noted that in actual application, the pulse acquisition circuit may further include electronic devices such as resistors, capacitors, and optocouplers, and the present invention does not limit this.

[0084] The switch machine indication state determination system provided by the present invention, for each pulse acquisition channel connected to the switch machine indication circuit, determines the number of pulse high levels and the number of pulse low levels in the switch machine indication circuit every preset time period through the pulse acquisition channel. For each preset time period, based on the number of pulse high levels and the number of pulse low levels within the preset time period, determines the state of the pulse acquisition channel, and based on the states of each pulse acquisition channel within the preset time period, determines the switch machine indication state. It can be seen that the present invention determines the switch machine indication state based on the number of pulse high levels and the number of pulse low levels, and the pulse high level and the pulse low level are not affected by the power grid fluctuation, thereby being able to improve the accuracy of determining the switch machine indication state.

[0085] The following describes the switch machine indication state determination device provided by the present invention. The switch machine indication state determination device described below can be mutually corresponding and referred to the switch machine indication state determination method described above.

[0086] Figure 9 is a schematic structural diagram of the switch machine indication state determination device provided by an embodiment of the present invention. As Figure 9 described, the switch machine indication state determination device 900 includes a first determination unit 901, a second determination unit 902, and a third determination unit 903; wherein: The first determination unit 901 is configured to, for each pulse acquisition channel connected to the switch machine indication circuit, determine the number of pulse high levels and the number of pulse low levels in the switch machine indication circuit every preset time period through the pulse acquisition channel; The second determination unit 902 is configured to, for each of the preset time periods, determine the state of the pulse acquisition channel based on the number of pulse high levels and the number of pulse low levels within the preset time period; The third determination unit 903 is configured to determine the switch machine indication state based on the states of each pulse acquisition channel within the preset time period.

[0087] The switch machine indication state determination device provided by the present invention, for each pulse acquisition channel connected to the switch machine indication circuit, determines the number of pulse high levels and the number of pulse low levels in the switch machine indication circuit every preset time period through the pulse acquisition channel. For each preset time period, based on the number of pulse high levels and the number of pulse low levels within the preset time period, determines the state of the pulse acquisition channel, and based on the states of each pulse acquisition channel within the preset time period, determines the switch machine indication state. It can be seen that the present invention determines the switch machine indication state based on the number of pulse high levels and the number of pulse low levels, and the pulse high level and the pulse low level are not affected by the power grid fluctuation, thereby being able to improve the accuracy of determining the switch machine indication state.

[0088] Based on any of the above embodiments, the second determination unit 902 is specifically configured to: When the number of high-level pulses within the preset duration is within a first preset range and the number of low-level pulses within the preset duration is within a second preset range, determine that the status of the pulse acquisition channel is normal; When the number of high-level pulses within the preset duration is not within the first preset range or the number of low-level pulses within the preset duration is not within the second preset range, determine that the status of the pulse acquisition channel is abnormal.

[0089] Based on any of the above embodiments, the switch machine indication circuit includes a switch machine normal indication circuit and a switch machine reverse indication circuit, and the switch machine normal indication circuit and the switch machine reverse indication circuit are respectively connected to each of the pulse acquisition channels; The third determination unit 903 is specifically configured to: When the statuses of all pulse acquisition channels corresponding to the switch machine normal indication circuit are normal and the statuses of all pulse acquisition channels corresponding to the switch machine reverse indication circuit are abnormal within the preset duration, determine that the switch machine indication status is the normal indication status; When the statuses of all pulse acquisition channels corresponding to the switch machine normal indication circuit are normal and the status of at least one pulse acquisition channel corresponding to the switch machine reverse indication circuit is normal within the preset duration, determine that the switch machine indication status is the four-open status; When the statuses of all pulse acquisition channels corresponding to the switch machine reverse indication circuit are normal and the statuses of all pulse acquisition channels corresponding to the switch machine normal indication circuit are abnormal within the preset duration, determine that the switch machine indication status is the reverse indication status; When the statuses of all pulse acquisition channels corresponding to the switch machine reverse indication circuit are normal and the status of at least one pulse acquisition channel corresponding to the switch machine normal indication circuit is normal within the preset duration, determine that the switch machine indication status is the four-open status.

[0090] Based on any of the above embodiments, the first determination unit 901 is specifically configured to: For each preset duration, collect the current level signal of the switch machine indication circuit within the preset duration through the pulse acquisition channel; When the current level signal is a high-level signal, accumulate the number of high-level pulses, and determine whether the current number of low-level pulses is within a third preset range, where the third preset range is determined based on the minimum duration and the maximum duration of the low-level duration; When it is determined that the current number of low - level times is within the third preset range, accumulate the number of pulse low - level times to obtain the number of pulse low - level times within the preset duration; When the current level signal is a low - level signal, accumulate the number of low - level times and determine whether the current number of high - level times is within a fourth preset range, where the fourth preset range is determined based on the minimum and maximum durations of high - level persistence; When it is determined that the current number of high - level times is within the fourth preset range, accumulate the number of pulse high - level times to obtain the number of pulse high - level times within the preset duration.

[0091] Based on any of the above embodiments, the determining device 900 for the state of the switch machine representation further includes: An accumulation unit, configured to accumulate the number of third - state times when it is determined that the current number of low - level times is not within the third preset range or the current number of high - level times is not within the fourth preset range; The second determining unit 902 is further specifically configured to: When the number of pulse high - level times within the preset duration is within the first preset range, the number of pulse low - level times within the preset duration is within the second preset range, and the number of third - state times within the preset duration is less than the preset number, determine that the state of the pulse acquisition channel is a normal state.

[0092] Figure 10 It is a schematic physical structure diagram of an electronic device provided by an embodiment of the present invention. As Figure 10 shown, the electronic device may include: a processor 1010, a communication interface 1020, a memory 1030, and a communication bus 1040. Among them, the processor 1010, the communication interface 1020, and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 can call the logical instructions in the memory 1030 to execute the method for determining the state of the switch machine representation. The method includes: for each pulse acquisition channel connected to the switch machine representation circuit, determine the number of pulse high - level times and the number of pulse low - level times within each preset duration of the switch machine representation circuit through the pulse acquisition channel; for each of the preset durations, determine the state of the pulse acquisition channel based on the number of pulse high - level times and the number of pulse low - level times within the preset duration; Determine the state of the switch machine representation based on the states of the pulse acquisition channels within the preset duration.

[0093] In addition, when the logical instructions in the above-mentioned memory 1030 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0094] On the other hand, the present invention also provides a computer program product. The computer program product includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the method for determining the indication state of a switch machine provided by the above-mentioned various methods. The method includes: for each pulse acquisition channel connected to the switch machine indication circuit, determining the number of pulse high-level times and the number of pulse low-level times within each preset time period of the switch machine indication circuit through the pulse acquisition channel; For each of the preset time periods, determining the state of the pulse acquisition channel based on the number of pulse high-level times and the number of pulse low-level times within the preset time period; Based on the states of the pulse acquisition channels within the preset time period, determining the indication state of the switch machine.

[0095] On another aspect, the present invention also provides a non-transitory computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements the method for determining the indication state of a switch machine provided by the above-mentioned various methods. The method includes: for each pulse acquisition channel connected to the switch machine indication circuit, determining the number of pulse high-level times and the number of pulse low-level times within each preset time period of the switch machine indication circuit through the pulse acquisition channel; For each of the preset time periods, determining the state of the pulse acquisition channel based on the number of pulse high-level times and the number of pulse low-level times within the preset time period; Based on the states of the pulse acquisition channels within the preset time period, determining the indication state of the switch machine.

[0096] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. A person of ordinary skill in the art can understand and implement it without creative effort.

[0097] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on such an understanding, the essence of the above technical solution, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0098] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions recorded in the foregoing embodiments, or perform equivalent replacements on some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of each embodiment of the present invention.

Claims

1. A method for determining the state of a switch machine, characterized in that: include: For each pulse acquisition channel connected to the switch machine indication circuit, the number of high-level pulses and the number of low-level pulses of the switch machine indication circuit within a preset time period are determined through the pulse acquisition channel; For each of the preset time lengths, based on the number of pulse high levels and the number of pulse low levels within the preset time length, determining the state of the pulse acquisition channel; The switch machine indication state is determined based on the state of each of the pulse collection channels within the preset time period.

2. The method for determining the state of a switch machine according to claim 1, characterized in that: The determining the state of the pulse acquisition channel based on the number of high-level pulses and the number of low-level pulses within the preset time length includes: When the number of pulse high levels within the preset time length is within a first preset range, and the number of pulse low levels within the preset time length is within a second preset range, determining that the state of the pulse acquisition channel is a normal state; When the number of high-level pulses within the preset time length is not within the first preset range, or the number of low-level pulses within the preset time length is not within the second preset range, it is determined that the state of the pulse acquisition channel is an abnormal state.

3. The method for determining the state of a switch machine according to claim 1, characterized in that: The switch machine indication circuit includes a switch machine fixed meter indication circuit and a switch machine reverse meter indication circuit, and the switch machine fixed meter indication circuit and the switch machine reverse meter indication circuit are respectively connected to each of the pulse acquisition channels; The step of determining the switch machine indication state based on the state of each of the pulse acquisition channels within the preset time period includes: When the states of all pulse collection channels corresponding to the switch machine fixed meter indication circuit are in normal state within the preset time period, and the states of all pulse collection channels corresponding to the switch machine reverse meter indication circuit are in abnormal state, determining that the switch machine indication state is the fixed meter state; When the states of all pulse collection channels corresponding to the fixed meter indication circuit of the switch machine are in normal state within the preset time period, and the state of at least one pulse collection channel corresponding to the reverse meter indication circuit of the switch machine is in normal state, it is determined that the switch machine indication state is the four-open state; When the states of all pulse collection channels corresponding to the switch machine reverse meter indication circuit are in normal state within the preset time period, and the states of all pulse collection channels corresponding to the switch machine fixed meter indication circuit are in abnormal state, it is determined that the switch machine indication state is in reverse meter state; When the states of all pulse collection channels corresponding to the switch machine reverse meter indication circuit are in normal state within the preset time length, and the state of at least one pulse collection channel corresponding to the switch machine fixed meter indication circuit is in normal state, it is determined that the switch machine indication state is the four-open state.

4. The method for determining the state of a switch machine according to claim 2, characterized in that: The step of determining the number of high-level pulses and low-level pulses of the switch indicating circuit within a preset time period through the pulse acquisition channel comprises: for each preset time period, acquiring the current level signal of the switch indicating circuit within the preset time period through the pulse acquisition channel; When the current level signal is a high level signal, the number of high level times is accumulated, and it is determined whether the current number of low level times is within a third preset range, wherein the third preset range is determined based on the minimum duration of the low level and the maximum duration of the low level; When it is determined that the current low level times are within the third preset range, the pulse low level times are accumulated to obtain the pulse low level times within the preset duration; When the current level signal is a low level signal, the number of low level times is accumulated, and it is determined whether the current number of high level times is within a fourth preset range, wherein the fourth preset range is determined based on a minimum duration of a high level and a maximum duration of a high level; When it is determined that the current high level times are within the fourth preset range, the pulse high level times are accumulated to obtain the pulse high level times within the preset duration.

5. The method for determining the state of a switch machine according to claim 4, characterized in that: The method further comprises: When it is determined that the current low level number is not within the third preset range, or the current high level number is not within the fourth preset range, accumulating the third state number; When the number of pulse high levels within the preset time length is within a first preset range, and the number of pulse low levels within the preset time length is within a second preset range, determining that the state of the pulse acquisition channel is a normal state includes: When the number of high-level pulses within the preset time length is within a first preset range, the number of low-level pulses within the preset time length is within a second preset range, and the number of third states within the preset time length is less than a preset number, it is determined that the state of the pulse acquisition channel is normal.

6. A system for determining the state of a switch machine, characterized in that: It comprises a processor and a pulse acquisition circuit, wherein the processor is used to execute the method for determining the state of the switch machine according to any one of claims 1 to 5; The pulse acquisition circuit includes a rectifier circuit, a voltage stabilizing circuit, a rectifier detection circuit, a first pulse isolation acquisition module and a second pulse isolation acquisition module. The input end of the rectifier circuit is connected to the output end of the switch machine indication circuit. The output end of the rectifier circuit is connected to the processor through the voltage stabilizing circuit and the first pulse isolation acquisition module in sequence. The output end of the rectifier circuit is connected to the processor through the rectifier detection circuit and the second pulse isolation acquisition module in sequence. The rectification circuit, the voltage stabilization circuit and the first pulse isolation acquisition module form a pulse acquisition channel, and the rectification circuit, the rectification detection circuit and the second pulse isolation acquisition module form a pulse acquisition channel.

7. A device for determining the state of a switch machine, characterized in that: include: A first determining unit is used to determine the number of high-level pulses and low-level pulses of the switch machine indication circuit within a preset time period through each pulse acquisition channel connected to the switch machine indication circuit; A second determination unit is used to determine the state of the pulse acquisition channel based on the number of pulse high levels and pulse low levels within the preset time length for each preset time length; The third determination unit is used to determine the switch machine indication state based on the state of each of the pulse collection channels within the preset time period.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the method for determining the state of the switch machine according to any one of claims 1 to 5 is implemented.

9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for determining the state of a switch machine according to any one of claims 1 to 5 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for determining the state of a switch machine according to any one of claims 1 to 5 is implemented.