Switching quantity detection system, control method and device thereof

By forming a switch matrix, the switch quantity detection system solves the problem of excessive port count when detecting multiple switch quantity devices by using resistor modules and port combinations, thereby achieving cost reduction and accurate detection.

CN114967546BActive Publication Date: 2026-02-24SANY TECH EQUIP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210557319.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-20
Publication Date
2026-02-24
Estimated Expiration
2042-05-20

AI Technical Summary

Technical Problem

In existing technologies, when multiple switching devices need to be detected, a large number of connection ports are required, resulting in high costs.

Method used

A switch matrix is ​​formed by m rows and n columns of switch devices. The matrix is ​​connected through input/output modules and control modules. The switch quantity is detected by a combination of resistor modules and ports, reducing the number of connection ports.

Benefits of technology

It significantly reduces the number of connection ports, lowers costs, and enables accurate detection of switching signals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114967546B_ABST
    Figure CN114967546B_ABST
Patent Text Reader

Abstract

The application relates to the technical field of data monitoring, and provides a switching value detection system and a control method and device of the switching value detection system, wherein the system comprises m rows of n-column switching value devices, a control module and an input-output module; the input-output module at least comprises n resistance modules, k first ports, n second ports corresponding to the n-column switching value devices and m third ports corresponding to the m rows of switching value devices; and the control module is used for detecting the switching value of each switching value device according to a first level signal output to each first port, a second level signal output to each third port and a third level signal collected by each second port. In this way, when the required switching value devices are relatively many, the number of required connected ports is relatively many, and the cost is relatively high; the number of required connected ports is greatly reduced, and the cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data monitoring technology, and in particular to a switch quantity detection system and a control method and apparatus for the switch quantity detection system. Background Technology

[0002] Currently, digital input / output devices are widely used in production and daily life. These devices can output digital signals to meet the needs of various application scenarios. In practical applications, the detection of digital signals is a crucial step. In existing technologies, each digital input / output device is provided with a connection port to detect the output digital signal. When a large number of digital input / output devices are needed, the number of connection ports required is large, resulting in high costs. Summary of the Invention

[0003] This invention provides a switch quantity detection system and a control method and apparatus for the switch quantity detection system, which solves the defects of the prior art that when a large number of switch quantity devices are required, the number of connection ports required is large and the cost is high. The invention reduces the number of connection interfaces and lowers the cost.

[0004] This invention provides a switch quantity detection system, comprising: an m-row n-column switch quantity device, a control module, and an input / output module;

[0005] The input / output module includes at least n resistor modules, k first ports, n second ports corresponding one-to-one with the n columns of the switching devices, and m third ports corresponding one-to-one with the m rows of the switching devices;

[0006] In this configuration, the first end of each of the switching devices in the same row is connected to the corresponding second port, and the second end of each of the switching devices in the same row is connected to the corresponding third port; the first end of each resistor module is connected to one of the first ports, and the second ends of n resistor modules are connected to n second ports in a one-to-one correspondence; k first ports, n second ports, and m third ports are also connected to the control module.

[0007] The control module is used to detect the switching quantity of each of the switching devices based on the first level signal output to each of the first ports, the second level signal output to each of the third ports, and the third level signal collected by each of the second ports.

[0008] According to a switch quantity detection system provided by the present invention, the control unit is specifically used for:

[0009] The first level signal is output to all the first ports together, and the second level signal is output to all the third ports together;

[0010] When the third level signal acquired by the second port is the same as the first level signal, the switch quantity of the switch quantity device in the column corresponding to the second port is determined to be the first switch quantity;

[0011] When the third level signal acquired by the second port is different from the first level signal, the second level signal is output to each of the third ports in turn. Under the third port that is currently in turn, if the third level signal acquired by the second port is different from the first level signal, the switch quantity of the switch device in the column corresponding to the second port and the row corresponding to the third port that is currently in turn is determined to be the second switch quantity.

[0012] According to the present invention, in a switch quantity detection system, k is 1, and the first ends of n resistor modules are connected to the same first port;

[0013] Alternatively, if the value of k is greater than 1, the n resistor modules are divided into k groups, and the first end of the resistor modules in the k groups is connected to the k first ports in a one-to-one correspondence.

[0014] According to the switch quantity detection system provided by the present invention, all the switch quantity devices are in the same state under normal conditions.

[0015] According to a switch quantity detection system provided by the present invention, the M-row N-column switch quantity device includes at least one switch quantity sensor.

[0016] According to a switch quantity detection system provided by the present invention, the at least one switch quantity sensor includes a temperature sensor and / or a smoke sensor.

[0017] According to the present invention, a switch quantity detection system is provided, wherein the temperature sensor is a bimetallic strip temperature sensor.

[0018] According to the present invention, a switch quantity detection system is provided in which the M rows and N columns of switch quantity devices are distributed in each storage unit.

[0019] The present invention also provides a control method for a switch quantity detection system as described above, comprising:

[0020] The switching quantity of each switching device is detected based on the first level signal output to each first port, the second level signal output to each third port, and the third level signal collected by each second port.

[0021] According to a control method for a switch quantity detection system provided by the present invention, the step of detecting the switch quantity of each switch quantity device based on a first level signal output to each first port, a second level signal output to each third port, and a third level signal acquired by each second port includes:

[0022] The first level signal is output to all the first ports together, and the second level signal is output to all the third ports together;

[0023] When the third level signal acquired by the second port is the same as the first level signal, the switch quantity of the switch quantity device in the column corresponding to the second port is determined to be the first switch quantity;

[0024] When the third level signal acquired by the second port is different from the first level signal, the second level signal is output to each of the third ports in turn. Under the third port that is currently in turn, if the third level signal acquired by the second port is different from the first level signal, the switch quantity of the switch device in the column corresponding to the second port and the row corresponding to the third port that is currently in turn is determined to be the second switch quantity.

[0025] The present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the control method of any of the above-described switch quantity detection systems.

[0026] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the control method of the switch quantity detection system as described above.

[0027] The switch quantity detection system provided by this invention comprises a switch matrix formed by m rows and n columns of switch quantity devices. Based on this, the input / output module includes at least n resistor modules, k first ports, n second ports corresponding one-to-one with the n columns of switch quantity devices, and m third ports corresponding one-to-one with the m rows of switch quantity devices, to achieve a matrix connection with the switch matrix. The control module can detect the switch quantity of each switch quantity device based on the first level signal output to each first port, the second level signal output to each third port, and the third level signal collected by each second port. In this way, the control module does not need to provide a connection port for each switch quantity device separately, which greatly reduces the number of connection ports required and lowers the cost. Attached Figure Description

[0028] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0029] Figure 1This is a schematic diagram of the switch quantity detection system provided by the present invention;

[0030] Figure 2 This is a schematic diagram of the structure of the bimetallic strip temperature sensor provided by the present invention;

[0031] Figure 3 This is a flowchart illustrating the control method of the switch quantity detection system provided by the present invention;

[0032] Figure 4 This is a schematic diagram of the structure of the electronic device provided by the present invention. Detailed Implementation

[0033] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0034] This embodiment provides a switch quantity detection system, such as Figure 1 As shown, it includes: an m-row n-column switch device, a control module 101, and an input / output module 102;

[0035] The input / output module 102 includes at least n resistor modules, k first ports, n second ports corresponding to the n columns of the switching devices, and m third ports corresponding to the m rows of the switching devices.

[0036] The first end of each of the switching devices in the same row is connected to the corresponding second port, and the second end of each of the switching devices in the same row is connected to the corresponding third port; the first ends of the n resistor modules are connected to the first port, and the second ends of the n resistor modules are connected to the n second ports in a one-to-one correspondence; the first port, the n second ports, and the m third ports are also connected to the control module 101.

[0037] The control module 101 is used to detect the switching quantity of each of the switching devices based on the first level signal output to the first port, the second level signal output to each of the third ports, and the third level signal collected by each of the second ports.

[0038] In practical applications, the switching signal of a digital input device can represent its closed and open states. All digital input devices have the same state under normal conditions; therefore, all digital input devices can be configured as normally open, or all digital input devices can be configured as normally closed, for convenient control.

[0039] Where m, n, and k are all positive integers. For example... Figure 1 As shown, m rows and n columns of switching devices form a switching matrix 103, where the switching device Smn is the switching device in the m-th row and n-th column of the switching matrix.

[0040] A resistor module may include resistors, which may be one or more. Multiple resistors may be connected in series, in parallel, or a combination of both. Figure 1 In the diagram, n resistor modules are represented by resistor module R1, resistor module R2, ..., resistor module Rn.

[0041] The n second ports are represented by second port A1, second port A2, ..., second port An. The m third ports are represented by third port B1, third port B2, ..., third port Bm. The number of first ports, k, can be 1. In this case, the first ends of the n resistor modules are connected to the same first port, i.e., they share a single first port, which saves on the number of ports that need to be connected. This is represented by first port C in the diagram. Of course, k can also be greater than 1. In this case, the n resistor modules are divided into k groups, and the first ends of the resistor modules in each of the k groups are connected to the k first ports in a one-to-one correspondence. That is, in each group of resistor modules, the group of resistor modules shares a single first port. When k = n, the first end of each resistor module is connected to a separate first port.

[0042] Based on this, the first end of the switching device in the nth column is connected to the second port An, and the second end of the switching device in the mth row is connected to the third port Bm, thus forming a matrix connection with the switching matrix; the first end of the resistor module Rn is connected to the first port C, and the second end of the resistor module Rn is connected to the second port An; the first port C, all the second ports, and all the third ports are also connected to the control module 101.

[0043] The control module can output a first-level signal to each of the first ports as a common-level signal. The control module can also output a second-level signal to the third port. This second-level signal is different from the first-level signal; for example, the first-level signal is a high-level signal and the second-level signal is a low-level signal, or vice versa. The second port then serves as a data acquisition port, capable of acquiring the third-level signal and transmitting it to the control module.

[0044] For the digital input device Smn, the first terminal is connected to the second port An, and the second terminal is connected to the third port Bm. The closed and open state of the digital input device Smn will affect the level of the third voltage signal acquired by the second port An. Figure 1For example, when the switching device Smn is open, the second port An is at the same potential as the first port C, and the acquired third-level signal is the same as the first-level signal. When the switching device Smn is closed, the second port An and the third port Bm are closed, and the second port An and the third port Bm are at the same potential. The acquired third-level signal changes and is no longer the same as the first-level signal, but the same as the second-level signal of the third port Bm. Based on this, the control module 101 can detect the switching quantity of each switching device according to the first-level signal output to the first port, the second-level signals output to each third port, and the third-level signals acquired by each second port.

[0045] Therefore, for an m-row n-column switching device, the control module needs to connect k first ports, n second ports, and m third ports to detect the switching signals of each device. Thus, the control module only needs to provide m+n+k ports for this connection. In contrast, existing technologies provide only one port for each switching device, requiring m×n ports. For example, if there are 10,000 switching devices, existing technologies would require 10,000 ports, while the solution in this embodiment only requires 200+k ports, significantly reducing the number of ports needed and lowering costs.

[0046] In this embodiment, m rows and n columns of switching devices form a switching matrix. Based on this, the input / output module includes at least n resistor modules, k first ports, n second ports corresponding one-to-one with the n columns of switching devices, and m third ports corresponding one-to-one with the m rows of switching devices, to achieve a matrix connection with the switching matrix. The control module can detect the switching quantity of each switching device based on the first level signal output to each first port, the second level signal output to each third port, and the third level signal collected by each second port. In this way, the control module does not need to provide a connection port for each switching device separately, which greatly reduces the number of connection ports required and lowers the cost.

[0047] Based on the above embodiments, the control unit is specifically configured to: output the first level signal to all the first ports together, and output the second level signal to all the third ports together; when the third level signal collected by the second port is the same as the first level signal, determine the switching quantity of the switch device in the column corresponding to the second port as the first switching quantity; when the third level signal collected by the second port is different from the first level signal, output the second level signal to each of the third ports in turn; and under the currently turned third port, if the third level signal collected by the second port is different from the first level signal, determine the switching quantity of the switch device in the column corresponding to the second port and the row corresponding to the currently turned third port as the second switching quantity.

[0048] The first switching quantity can represent the normal state of the switching device, while the second switching quantity can represent a state different from the normal state. For example, the first switching quantity can represent the state of the switching device as open, while the second switching quantity can represent the state of the switching device as closed.

[0049] In practical applications, under normal conditions, the control module can continuously output a first-level signal to all first ports and a second-level signal to all third ports. When the third-level signal acquired by the second port is the same as the first-level signal, it indicates that each switch device in the column corresponding to the second port is in its normal state, and the switch quantity of the switch device in the column corresponding to the second port can be determined as the first switch quantity. When the third-level signal acquired by a certain second port is different from the first-level signal, it indicates that the state of some switching devices in the column corresponding to that second port has changed relative to the normal state. It is necessary to locate the switching devices to determine which specific switching device has changed relative to the normal state, resulting in the difference between the third-level signal acquired by the second port and the first-level signal. At this time, the output of the second-level signal to all third ports can be stopped. Instead, the second-level signal can be output to each third port in turn. If the third-level signal acquired by the current third port is the same as the first-level signal, it means that the state of the switching devices in the column corresponding to the second port and the row corresponding to the current third port has not changed relative to the normal state. If the third-level signal acquired by the second port is different from the first-level signal, it means that the state of the switching devices in the column corresponding to the second port and the row corresponding to the current third port has changed relative to the normal state. The switching quantity of the switching device in the column corresponding to the second port and the row corresponding to the current third port is determined to be the second switching quantity.

[0050] It should be noted that when the third level signal acquired by any second port is different from the first level signal, the output of the second level signal to all third ports will stop and the output of the second level signal to each third port will start in turn, so as to locate the switching device that caused the difference between the third level signal acquired by the second port and the first level signal.

[0051] In this embodiment, the control module outputs a first-level signal to all first ports and a second-level signal to all third ports, and monitors the third-level signal collected by the second ports. When the third-level signal collected by the second port is different from the first-level signal, it indicates that the state of some switching devices in the column corresponding to the second port has changed relative to the normal state. At this time, the output of the second-level signal to all third ports stops, and the second-level signal is output to each third port in turn. In this way, the switching device that causes the third-level signal collected by the second port to be different from the first-level signal can be accurately located, and the accurate detection of the switching quantity of the switching device is realized.

[0052] The above is just one example of how to detect the switching quantity of each switching device. Other methods can also be used for detection. For example, the relationship between the third level signal and the second level signal collected by the second port can be used to determine whether the state of some switching devices in the column corresponding to the second port has changed relative to the normal state.

[0053] In practical applications, the control module can send the switching signals of each detected switching device to the monitoring system connected in communication, which facilitates the monitoring of the switching signals of each switching device.

[0054] It should be noted that the input / output module and the control module can be integrated. Alternatively, the control module can also be integrated into the monitoring system; in implementation, the configuration can be tailored to the specific circumstances.

[0055] It should also be noted that the input / output module can include more second and third ports, which facilitates expansion when the required switching devices increase.

[0056] There are various types of switching devices, such as switching sensors and relays. For example, the M row N column switching device may include at least one switching sensor. Multiple switching sensors are used to sense multiple parameters. In this embodiment, by setting multiple switching sensors in the switching matrix, multiple parameters can be detected simultaneously.

[0057] For example, the at least one switching sensor includes a temperature sensor and / or a smoke sensor.

[0058] Smoke sensors are used to switch between closing and opening based on the detected smoke concentration.

[0059] A temperature sensor is used to open and close based on detected temperature changes. Exemplarily, the temperature sensor is a bimetallic strip temperature sensor. A bimetallic strip temperature sensor includes a bimetallic strip, which is a composite material composed of two or more metals or other materials with suitable properties. The bimetallic strip is also called a thermal bimetallic strip. The constituent layers of the bimetallic strip have different coefficients of thermal expansion. When the temperature changes, the deformation of the constituent layers with different coefficients of thermal expansion is different, causing the bimetallic strip as a whole to deform with temperature changes.

[0060] like Figure 2 As shown in the diagram, when the temperature changes, the bimetallic strip 201 changes from the upper state to the lower state. In the upper state, the first terminal 202 and the second terminal 203 of the bimetallic temperature sensor are not connected, and the switch signal is open. When the bimetallic strip 201 changes to the lower state, the first terminal 202 and the second terminal 203 of the bimetallic temperature sensor are connected, and the switch signal is closed. It should be noted that the temperature change can be either an increase or a decrease. The desired deformation state can be achieved by setting the thermal expansion coefficients of the various component layers in the bimetallic strip.

[0061] In practice, a bimetallic strip temperature sensor can be set to sense a specific temperature. At that specific temperature, the switching quantity of the bimetallic strip temperature sensor changes. In this way, bimetallic strip temperature sensors that meet different temperature monitoring needs can be flexibly selected.

[0062] In practical applications, temperature sensors and smoke sensors can be installed in scenarios requiring fire monitoring to improve safety. For example, in warehouses storing large quantities of goods, temperature sensors and / or smoke sensors are needed to monitor the warehouse to ensure its safety. Automated storage and retrieval systems (AS / RS), also known as high-bay warehouses, can use multi-level storage units to store goods. In this case, a large number of temperature and smoke sensors are required. The M-row N-column switch device provided in this embodiment can meet this requirement. The M-row N-column switch device is distributed in each storage unit. This allows for comprehensive monitoring of each storage unit. In warehouse fire monitoring scenarios, for example, a bimetallic strip temperature sensor can be set to sense a specific temperature between 60 and 70°C.

[0063] Traditional temperature monitoring solutions employ a distributed fiber optic temperature measurement-based linkage system. Temperature monitoring is achieved by connecting a single temperature-sensing fiber optic cable to each storage unit in a series according to specific rules, and then connecting to a temperature acquisition and analysis module for processing. However, connecting the temperature-sensing fiber optic cable requires specialized tools and personnel; if it burns out, maintenance is inconvenient; and the temperature-sensing fiber optic cable and its corresponding analysis system are relatively expensive, resulting in high costs.

[0064] In this embodiment, the bimetallic strip temperature sensor undergoes deformation under high temperatures during a fire, causing changes in closure and opening, thereby enabling fire monitoring. The use of a simpler bimetallic strip temperature sensor simplifies wiring, requiring no specialized tools or personnel, and simplifies maintenance. When detecting switch signals, it can accurately detect one or more storage units with abnormal temperatures, significantly reducing the number of connection interfaces and lowering costs considerably. Furthermore, due to its simple structure, the bimetallic strip temperature sensor is readily available and inexpensive, making its implementation cost very low even with high demand.

[0065] Actual calculations show that the cost of a single storage unit using traditional temperature-sensing optical fiber is 40-50 RMB, while the cost of a single storage unit using the bimetallic strip temperature sensor of this invention is only 1-2 RMB, resulting in a cost reduction of over 2500% and extremely significant market economic benefits.

[0066] The following section provides a more detailed introduction to the application scenarios of warehouses.

[0067] In an automated storage and retrieval system (AS / RS), each storage unit can be equipped with two switching devices: a smoke sensor and a temperature sensor, thus achieving a distributed configuration of the switching devices. The temperature sensor includes a bimetallic strip temperature sensor. According to... Figure 1 Wiring should be done according to the structure shown. All switching devices can be in the normally open state; under normal circumstances, none of the switching devices are closed.

[0068] Under normal circumstances, the control module continuously inputs a first-level signal (high-level signal) to the first port C and a second-level signal (low-level signal) to all the third ports.

[0069] If all the third-level signals collected by the second port are high-level signals, it indicates that there are no abnormalities in the distributed switching devices.

[0070] If the third-level signal acquired by the second port of a certain column of digital quantity sensors is low, it indicates that there is an anomaly in that column of digital quantity sensors when a low-level signal is input to the third port, i.e., the sensor is closed. This causes the third-level signal acquired by the second port of that column of digital quantity sensors to be pulled low. At this time, the third ports of each row of digital quantity sensors will input low-level signals in staggered shifts, i.e., they will input low-level signals in turn. When a row of digital quantity sensors receives a low-level signal, the third-level signal acquired by the second port of that column of digital quantity sensors will also be low, indicating that there is an anomaly in the row of digital quantity sensors that is in turn, i.e., the sensor is closed. When a digital quantity sensor is closed, it may indicate a fire in the storage unit where it is located, requiring immediate action.

[0071] In this embodiment, the detection method of the switch quantity device can significantly reduce the number of connection interfaces required by the automated warehouse. Relying on the mature bimetallic strip temperature sensor, it can perform different deformations at different temperatures to meet the fire temperature detection requirements, thus forming a mature, low-cost, and easy-to-maintain distributed switch quantity device for automated warehouses.

[0072] The control method of the switch quantity detection system provided by the present invention is described below. The control method of the switch quantity detection system described below can be referred to in correspondence with the switch quantity detection system described above.

[0073] The control method for the switch quantity detection system provided in this embodiment includes:

[0074] The switching quantity of each switching device is detected based on the first level signal output to each first port, the second level signal output to each third port, and the third level signal collected by each second port.

[0075] The switch quantity detection system described herein is any of the switch quantity detection systems provided in the above embodiments, and will not be elaborated upon here. The control method of the switch quantity detection system in this embodiment can be executed by the control module of the switch quantity detection system.

[0076] In this embodiment, m rows and n columns of switching devices form a switching matrix. Based on this, the input / output module includes at least n resistor modules, k first ports, n second ports corresponding one-to-one with the n columns of switching devices, and m third ports corresponding one-to-one with the m rows of switching devices, to achieve a matrix connection with the switching matrix. Based on this, the switching quantity of each switching device can be detected according to the first level signal output to each first port, the second level signal output to each third port, and the third level signal collected by each second port. Thus, it is not necessary to provide a connection port for each switching device separately, which greatly reduces the number of connection ports required and lowers the cost.

[0077] Based on the above embodiments, the step of detecting the switching quantity of each switching device according to the first level signal output to each first port, the second level signal output to each third port, and the third level signal collected by each second port is as follows: Figure 3 As shown, its specific implementation methods may include:

[0078] Step 301: Output the first level signal to all the first ports together, and output the second level signal to all the third ports together;

[0079] Step 302: When the third level signal acquired by the second port is the same as the first level signal, determine the switch quantity of the switch quantity device in the column corresponding to the second port as the first switch quantity;

[0080] Step 303: When the third level signal collected by the second port is different from the first level signal, the second level signal is output to each of the third ports in turn. Under the third port that is currently in turn, if the third level signal collected by the second port is different from the first level signal, the switch quantity of the switch device in the column corresponding to the second port and the row corresponding to the third port that is currently in turn is determined to be the second switch quantity.

[0081] In this embodiment, by outputting a first-level signal to all first ports and a second-level signal to all third ports, and monitoring the third-level signal collected by the second ports, when the third-level signal collected by the second port is different from the first-level signal, it indicates that the state of some switching devices in the column corresponding to the second port has changed relative to the normal state. At this time, the output of the second-level signal to all third ports is stopped, and the second-level signal is output to each third port in turn. In this way, the switching device that causes the third-level signal collected by the second port to be different from the first-level signal can be accurately located, and the accurate detection of the switching quantity of the switching device is realized.

[0082] Figure 4 An example is a schematic diagram of the physical structure of an electronic device, such as... Figure 4As shown, the electronic device may include a processor 410, a communication interface 420, a memory 430, and a communication bus 440. The processor 410, communication interface 420, and memory 430 communicate with each other via the communication bus 440. The processor 410 can call logic instructions in the memory 430 to execute a control method for the switch quantity detection system. This method includes detecting the switching quantity of each switch quantity device based on a first-level signal output to each first port, a second-level signal output to each third port, and a third-level signal acquired by each second port.

[0083] Furthermore, the logical instructions in the aforementioned memory 430 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, essentially, 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. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0084] On the other hand, the present invention also provides a computer program product, the computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, and when the program instructions are executed by a computer, the computer is able to execute the control method of the switch quantity detection system provided by the above methods, the method including: detecting the switch quantity of each switch quantity device based on a first level signal output to each first port, a second level signal output to each third port, and a third level signal collected by each second port.

[0085] In another aspect, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a control method for each of the provided switch quantity detection systems, the method comprising: detecting the switch quantity of each switch quantity device based on a first level signal output to each first port, a second level signal output to each third port, and a third level signal acquired by each second port.

[0086] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0087] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence 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 cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0088] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A switch quantity detection system, characterized in that, include: m rows and n columns of digital quantity control devices, control modules, and input / output modules; The input / output module includes at least n resistor modules, k first ports, n second ports corresponding one-to-one with the n columns of the switching devices, and m third ports corresponding one-to-one with the m rows of the switching devices; In this configuration, the first end of each of the switching devices in the same row is connected to the corresponding second port, and the second end of each of the switching devices in the same row is connected to the corresponding third port; the first end of each resistor module is connected to one of the first ports, and the second ends of n resistor modules are connected to n second ports in a one-to-one correspondence; k first ports, n second ports, and m third ports are also connected to the control module. The control module is used to detect the switching quantity of each of the switching devices based on the first level signal output to each of the first ports, the second level signal output to each of the third ports, and the third level signal collected by each of the second ports; the first level signal is different from the second level signal.

2. The switch quantity detection system according to claim 1, characterized in that, The control unit is specifically used for: The first level signal is output to all the first ports together, and the second level signal is output to all the third ports together; When the third level signal acquired by the second port is the same as the first level signal, the switch quantity of the switch quantity device in the column corresponding to the second port is determined to be the first switch quantity; When the third level signal acquired by the second port is different from the first level signal, the second level signal is output to each of the third ports in turn. Under the third port that is currently in turn, if the third level signal acquired by the second port is different from the first level signal, the switch quantity of the switch device in the column corresponding to the second port and the row corresponding to the third port that is currently in turn is determined to be the second switch quantity.

3. The switch quantity detection system according to claim 1, characterized in that, The value of k is 1, and the first ends of the n resistor modules are connected to the same first port; Alternatively, if the value of k is greater than 1, the n resistor modules are divided into k groups, and the first end of the resistor modules in the k groups is connected to the k first ports in a one-to-one correspondence.

4. The switch quantity detection system according to claim 1, characterized in that, All the aforementioned switching devices are in the same state under normal conditions.

5. The switch quantity detection system according to claim 1, characterized in that, The M-row N-column switching device includes at least one switching sensor.

6. The switch quantity detection system according to claim 5, characterized in that, The at least one switching sensor includes a temperature sensor and / or a smoke sensor.

7. The switch quantity detection system according to claim 6, characterized in that, The temperature sensor is a bimetallic strip temperature sensor.

8. The switch quantity detection system according to any one of claims 1 to 7, characterized in that, The M rows and N columns of switching devices are distributed in each storage unit.

9. A control method for a switch quantity detection system as described in any one of claims 1 to 8, characterized in that, include: The switching quantity of each switching device is detected based on the first level signal output to each first port, the second level signal output to each third port, and the third level signal collected by each second port.

10. The control method for the switch quantity detection system according to claim 9, characterized in that, The step of detecting the switching quantity of each switching device based on the first level signal output to each first port, the second level signal output to each third port, and the third level signal acquired by each second port includes: The first level signal is output to all the first ports together, and the second level signal is output to all the third ports together; When the third level signal acquired by the second port is the same as the first level signal, the switch quantity of the switch quantity device in the column corresponding to the second port is determined to be the first switch quantity; When the third level signal acquired by the second port is different from the first level signal, the second level signal is output to each of the third ports in turn. Under the third port that is currently in turn, if the third level signal acquired by the second port is different from the first level signal, the switch quantity of the switch device in the column corresponding to the second port and the row corresponding to the third port that is currently in turn is determined to be the second switch quantity.

11. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the control method of the switch quantity detection system as described in claim 9 or 10.

12. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the control method of the switch quantity detection system as described in claim 9 or 10.

Citation Information

Patent Citations

  • USS protocol based multi-motor synchronous and variable frequency type speed regulating control system

    CN104617826A