CN111190367B - Control method and device for slot position of cabinet machine - Google Patents

Control method and device for slot position of cabinet machine Download PDF

Info

Publication number
CN111190367B
CN111190367B CN201911419897.0A CN201911419897A CN111190367B CN 111190367 B CN111190367 B CN 111190367B CN 201911419897 A CN201911419897 A CN 201911419897A CN 111190367 B CN111190367 B CN 111190367B
Authority
CN
China
Prior art keywords
interrupt event
level signal
target
control module
slot
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911419897.0A
Other languages
Chinese (zh)
Other versions
CN111190367A (en
Inventor
周浑华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Longxin Lianjing Technology Beijing Co ltd
Original Assignee
Longxin Lianjing Technology Beijing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Longxin Lianjing Technology Beijing Co ltd filed Critical Longxin Lianjing Technology Beijing Co ltd
Priority to CN201911419897.0A priority Critical patent/CN111190367B/en
Publication of CN111190367A publication Critical patent/CN111190367A/en
Application granted granted Critical
Publication of CN111190367B publication Critical patent/CN111190367B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/042Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
    • G05B19/0423Input/output

Abstract

The invention discloses a control method and a control device for a tank machine slot position. Wherein, the method comprises the following steps: when an interrupt event is detected, generating a level signal of the analog switch corresponding to the interrupt event in response to the interrupt event, and sending the level signal to the main control module; when the main control module receives the level signal, controlling the main control module to inquire the preset number of slot positions corresponding to the analog switch based on the level signal, and determining a target slot position in the preset number of slot positions corresponding to the interrupt event according to an inquiry result; and sending control information to the target slot position to control the target slot position in the cabinet machine to act to pop up the target equipment or lock the target equipment. The invention solves the technical problem that the management mode of peripheral equipment by the cabinet machine is complex in the related technology.

Description

Control method and device for slot position of cabinet machine
Technical Field
The invention relates to the technical field of cabinet machine control, in particular to a control method and device for a cabinet machine slot position.
Background
Currently, including but not limited to shared devices, a master often needs to manage a large number of peripheral devices (e.g., slots) simultaneously. Moreover, when a large number of peripheral devices are managed simultaneously through one master controller, communication modes such as RS485, RS233, CAN bus and the like are usually used for real-time and effective management, but the modes often have the defects of complex hardware circuit, complex software architecture, high cost and the like.
Aiming at the problem that the mode of managing the peripheral equipment through the cabinet machine in the related technology is complex, an effective solution is not provided at present.
Disclosure of Invention
The embodiment of the invention provides a method and a device for controlling a slot position of a cabinet machine, which are used for at least solving the technical problem that the mode of managing peripheral equipment by the cabinet machine is complex in the related art.
According to an aspect of an embodiment of the present invention, there is provided a method for controlling a slot of a cabinet machine, including: when an interrupt event is detected, generating a level signal of an analog switch corresponding to the interrupt event in response to the interrupt event, and sending the level signal to a main control module; when the master control module receives the level signal, controlling the master control module to inquire the slot positions corresponding to the analog switch in a preset number based on the level signal, and determining a target slot position in the slot positions in the preset number corresponding to the interrupt event according to an inquiry result; and sending control information to the target slot position to control the target slot position in the cabinet machine to act to pop up the target equipment or lock the target equipment.
Optionally, before generating a level signal of an analog switch corresponding to an interrupt event in response to the interrupt event and sending the level signal to a main control module when the interrupt event is detected, the method for controlling the cabinet slot further includes: determining the number of analog switches of a cabinet, wherein the cabinet is used for storing the target equipment and other equipment which is the same as the target equipment; determining a plurality of slot positions controlled by a main control module of the cabinet machine; and grouping the plurality of slot positions controlled by the main control module according to the number of the analog switches of the cabinet machine, so that each analog switch controls a preset number of slot positions.
Optionally, when the target slot is controlled to be popped out of the target device, and when an interrupt event is detected, a level signal of an analog switch corresponding to the interrupt event is generated in response to the interrupt event, and before the level signal is sent to a main control module, the control method of the cabinet slot includes: detecting a plurality of devices stored in the cabinet machine according to the interrupt signal to obtain the current state of each device in the plurality of devices; determining the target device according to the current state of each of the plurality of devices; and triggering the interrupt event according to the identification information of the target equipment.
Optionally, the interruption event carries identification information of a target slot, and when the interruption event is detected, before generating a level signal of an analog switch corresponding to the interruption event in response to the interruption event and sending the level signal to a main control module, the control method of the cabinet slot further includes: and the main control module for controlling the cabinet machine determines the analog switch corresponding to the interrupt event according to the identification information carried in the interrupt event.
Optionally, when the target slot is controlled to be locked by the target device, and when an interrupt event is detected, before generating a level signal of an analog switch corresponding to the interrupt event in response to the interrupt event and sending the level signal to a main control module, the method for controlling the cabinet slot includes: detecting a plurality of slot positions in the cabinet machine according to the interrupt signal to obtain a slot position state of each slot position in the plurality of slot positions for detection; determining the target slot position according to the slot position state of each slot position in the plurality of slot positions; and triggering the interrupt event according to the identification information of the target slot position.
Optionally, the interruption event carries identification information of a target slot, and when the interruption event is detected, before generating a level signal of an analog switch corresponding to the interruption event in response to the interruption event and sending the level signal to a main control module, the control method of the cabinet slot further includes: and the main control module for controlling the cabinet machine determines the analog switch corresponding to the interrupt event according to the identification information carried in the interrupt event.
According to another aspect of the embodiments of the present invention, there is provided a control device for a cabinet slot, including: the device comprises a sending unit, a main control module and a switching unit, wherein the sending unit is used for responding to an interrupt event to generate a level signal of an analog switch corresponding to the interrupt event and sending the level signal to the main control module when the interrupt event is detected; the first determining unit is used for controlling the main control module to inquire the preset number of slot positions corresponding to the analog switch based on the level signal when the main control module receives the level signal, and determining a target slot position in the preset number of slot positions corresponding to the interrupt event according to an inquiry result; and the control unit is used for sending control information to the target slot position so as to control the target slot position in the cabinet machine to act to eject the target equipment or lock the target equipment.
Optionally, the control device of the cabinet slot further includes: the second determining unit is used for responding to the interrupt event to generate a level signal of an analog switch corresponding to the interrupt event when the interrupt event is detected, and determining the number of the analog switches of the cabinet machine before the level signal is sent to the main control module, wherein the cabinet machine is used for storing the target equipment and other equipment same as the target equipment; the third determining unit is used for determining a plurality of slot positions controlled by the main control module of the cabinet machine; and the grouping unit is used for grouping the plurality of slot positions controlled by the main control module according to the number of the analog switches of the cabinet machine, so that each analog switch controls a preset number of slot positions.
Optionally, the control device of the cabinet slot includes: the first detection unit is used for responding to an interrupt event to generate a level signal of an analog switch corresponding to the interrupt event when the interrupt event is detected when the target slot position is controlled to pop up the target equipment, and detecting a plurality of pieces of equipment stored in the cabinet machine according to the interrupt signal before the level signal is sent to a main control module to obtain the current state of each piece of equipment; a fourth determining unit, configured to determine the target device according to a current state of each of the plurality of devices; and the first triggering unit is used for triggering the interrupt event according to the identification information of the target equipment.
Optionally, the control device of the cabinet slot further includes: and a fifth determining unit, configured to, when an interrupt event is detected, generate a level signal of an analog switch corresponding to the interrupt event in response to the interrupt event, and control the main control module of the cabinet according to the identifier information carried in the interrupt event to determine the analog switch corresponding to the interrupt event before sending the level signal to the main control module.
Optionally, the control device of the cabinet slot includes: the second detection unit is used for responding to the interrupt event to generate a level signal of an analog switch corresponding to the interrupt event when the target slot is controlled to act to lock the target equipment and detecting a plurality of slots in the cabinet machine according to the interrupt signal before the level signal is sent to the main control module when the interrupt event is detected, so that the slot state of each slot in the plurality of slots is detected; a sixth determining unit, configured to determine the target slot according to a slot state of each of the plurality of slots; and the second triggering unit is used for triggering the interrupt event according to the identification information of the target slot position.
Optionally, the control device of the cabinet slot further includes: and a seventh determining unit, configured to, when an interrupt event is detected, generate a level signal of an analog switch corresponding to the interrupt event in response to the interrupt event, and control the main control module of the cabinet to determine, according to the identification information carried in the interrupt event, the analog switch corresponding to the interrupt event before sending the level signal to the main control module.
In the embodiment of the invention, when an interrupt event is detected, a level signal of an analog switch corresponding to the interrupt event is generated in response to the interrupt event, and the level signal is sent to a main control module; when the main control module receives the level signal, controlling the main control module to inquire the preset number of slot positions corresponding to the analog switch based on the level signal, and determining a target slot position in the preset number of slot positions corresponding to the interrupt event according to an inquiry result; the control method of the slot position of the cabinet machine achieves the purpose of grouping a plurality of slot positions in the cabinet machine to determine the target slot position needing to be acted based on each group, improves the technical effect of controlling the cabinet machine, and further solves the technical problem that the mode of managing peripheral equipment by the cabinet machine in the related technology is complex.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a flow chart of a method of controlling a cabinet slot according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a control device of a cabinet slot according to an embodiment of the invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided a method embodiment of a cabinet slot control method, it is noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flowchart of a control method of a cabinet slot according to an embodiment of the present invention, and as shown in fig. 1, the control method of the cabinet slot includes the following steps:
and step S102, when an interrupt event is detected, generating a level signal of the analog switch corresponding to the interrupt event in response to the interrupt event, and sending the level signal to the main control module.
And step S104, when the main control module receives the level signal, controlling the main control module to inquire the preset number of slot positions corresponding to the analog switch based on the level signal, and determining a target slot position in the preset number of slot positions corresponding to the interrupt event according to an inquiry result.
Wherein the predetermined number of slots is a portion of all slots controlled by the master control module.
And step S106, sending control information to the target slot position to control the target slot position in the cabinet machine to act to pop up the target equipment or lock the target equipment.
As can be seen from the above, in the embodiment of the present invention, when an interrupt event is detected, a level signal of the analog switch corresponding to the interrupt event is generated in response to the interrupt event, and the level signal is sent to the main control module; when the main control module receives the level signal, controlling the main control module to inquire the preset number of slot positions corresponding to the analog switch based on the level signal, and determining a target slot position in the preset number of slot positions corresponding to the interrupt event according to an inquiry result; and sending control information to the target slot position to control the target slot position in the cabinet machine to act to pop up the target equipment or lock the target equipment, so that the aim of grouping a plurality of slot positions in the cabinet machine to determine the target slot position needing to act based on each group is fulfilled.
It is easy to note that in the embodiment of the present invention, when an interrupt event is detected, a level signal of the analog switch corresponding to the interrupt event is generated in response to the interrupt event, and the level signal is sent to the main control module, so that the main control module queries a predetermined number of slots controlled by the analog switch according to the level signal to obtain a target slot, thereby effectively avoiding the disadvantage that a long time is required to query all slots of the cabinet, achieving the purpose of grouping a plurality of slots in the cabinet to determine a target slot to be operated based on each group, and improving the technical effect of controlling the cabinet.
Therefore, the control method for the slot position of the cabinet machine solves the technical problem that the mode of managing peripheral equipment by the cabinet machine in the related art is complex.
In an optional embodiment, before generating a level signal of an analog switch corresponding to the interrupt event in response to the interrupt event and transmitting the level signal to the main control module when the interrupt event is detected, the method for controlling the cabinet slot further includes: determining the number of analog switches of the cabinet, wherein the cabinet is used for storing target equipment and other equipment same as the target equipment; determining a plurality of slot positions controlled by a main control module of the cabinet machine; and grouping the plurality of slot positions controlled by the main control module according to the number of the analog switches of the cabinet machine, so that each analog switch controls a preset number of slot positions.
For example, the cabinet may be a cabinet that manages a mobile charging device, a main control module MCU of the cabinet may control 72 sharing slots, and in the related art, generally, the main control module turns back the 72 sharing slots one by one, which may take a long time and easily cause errors. In the embodiment of the present invention, the 72 sharing slots are grouped, specifically, 18 analog switches are set, so that each analog switch can carry 4 sharing slots, and when a trigger event is detected, one analog switch can be determined first, and then the sharing slots in the analog switches are queried, so as to obtain a target slot.
In the embodiment of the invention, all the slot positions controlled by the main control module are grouped, and each group corresponds to one analog switch, so that one analog switch is triggered after an interrupt event is detected, and in such a case, only the slot position under the analog switch needs to be queried to obtain the target slot position, so that the query time of the target slot position is reduced, and the response speed of a signal is improved.
In an optional embodiment, when the target slot is controlled to act to eject the target device, when an interrupt event is detected, a level signal of an analog switch corresponding to the interrupt event is generated in response to the interrupt event, and before the level signal is sent to the main control module, the method for controlling the slot of the cabinet machine includes: detecting a plurality of devices stored in the cabinet according to the interrupt signal to obtain the current state of each device in the plurality of devices; determining a target device according to a current state of each of a plurality of devices; and triggering an interrupt event according to the identification information of the target equipment.
For example, when lease information of the mobile charging device is received, the plurality of devices in the cabinet machine may be detected to obtain a current state of each of the plurality of devices, for example, a remaining power, whether a fault occurs, or the like; and determining the target equipment according to the current state of each of the plurality of equipment, and further triggering an interrupt event according to the identification information of the target equipment.
In an optional embodiment, the interruption event carries identification information of the target slot, and when the interruption event is detected, before generating a level signal of the analog switch corresponding to the interruption event in response to the interruption event and sending the level signal to the main control module, the method for controlling the slot of the cabinet machine may further include: and the main control module of the control cabinet machine determines the analog switch corresponding to the interrupt event according to the identification information carried in the interrupt event.
In an alternative embodiment, when the target device is locked by controlling the target slot action, when an interrupt event is detected, a level signal of an analog switch corresponding to the interrupt event is generated in response to the interrupt event, and before the level signal is sent to the master control module, the control method of the cabinet slot may include: detecting a plurality of slot positions in the cabinet machine according to the interrupt signal to obtain a slot position state of each slot position in the plurality of slot positions for detection; determining a target slot position according to the slot position state of each slot position in the plurality of slot positions; and triggering an interrupt event according to the identification information of the target slot position. In this embodiment, when the user returns the target device, the multiple slot positions in the cabinet machine are detected according to the interrupt signal, the slot position state of each slot position in the multiple slot positions is obtained, and the slot position with an empty slot position is determined as the target slot position, so that the target slot position can be triggered to act on the target device already placed therein to be locked.
It should be noted that, after the target device is locked in the target slot, the identification information of the target slot and the identification information of the target device are associated, so that when a trigger event is subsequently generated based on the identification information of the target device, the target slot may be determined based on the identification information of the target device carried in the trigger event.
For example, after an interrupt event is detected, the main control module finds an analog switch for controlling the slot corresponding to the identification information according to the slot identification information carried in the interrupt event, and then queries several slots under the analog switch to obtain a target slot. That is, in the embodiment of the present invention, the identification information of the slot position is also associated with the analog switch that controls the slot position, and the analog switch that controls the slot position can be determined only by knowing the identification information of the slot position.
In an optional embodiment, the interruption event carries identification information of the target slot, and when the interruption event is detected, before generating a level signal of an analog switch corresponding to the interruption event in response to the interruption event and sending the level signal to the main control module, the method for controlling the slot of the cabinet machine further includes: and the main control module of the control cabinet machine determines the analog switch corresponding to the interrupt event according to the identification information carried in the interrupt event.
The control method of the tank positions of the cabinet machine provided by the embodiment of the invention groups a plurality of tank positions (namely, sharing tank positions) controlled by the main control module by setting the number of the analog switches, so that each analog switch controls a preset number of tank positions respectively, the preset number of tank positions generate an interrupt event at the same time, each interrupt event corresponds to one analog switch, and when the interrupt event generated by a certain group of tank positions is received, the interrupt event triggered by which tank position is the preset number of tank positions is inquired, the control of the tank position corresponding to the interrupt event can be completed to control equipment corresponding to the tank position, and the technical effect of controlling the cabinet machine is provided.
Example 2
According to another aspect of the embodiment of the present invention, there is also provided a control apparatus for a cabinet slot, and fig. 2 is a schematic view of the control apparatus for a cabinet slot according to the embodiment of the present invention, as shown in fig. 2, the control apparatus for a cabinet slot includes: a transmitting unit 21, a first determining unit 23 and a control unit 25. The control device for the cabinet slot will be described in detail below.
And the sending unit 21 is configured to generate a level signal of the analog switch corresponding to the interrupt event in response to the interrupt event when the interrupt event is detected, and send the level signal to the main control module.
The first determining unit 23 is configured to, when the main control module receives the level signal, control the main control module to query the predetermined number of slot positions corresponding to the analog switch based on the level signal, and determine, according to a query result, a target slot position in the predetermined number of slot positions corresponding to the interrupt event.
And the control unit 25 is configured to send control information to the target slot to control the target slot in the cabinet to act to eject the target device or lock the target device.
It should be noted here that the transmitting unit 21, the first determining unit 23, and the control unit 25 correspond to steps S102 to S106 in embodiment 1, and the units are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the disclosure in embodiment 1. It should be noted that the above-described elements as part of an apparatus may be implemented in a computer system, such as a set of computer-executable instructions.
As can be seen from the above, in the above embodiments of the present application, the sending unit is configured to, when an interrupt event is detected, generate a level signal of the analog switch corresponding to the interrupt event in response to the interrupt event, and send the level signal to the main control module; the first determining unit is used for controlling the main control module to inquire the preset number of slot positions corresponding to the analog switch based on the level signal when the main control module receives the level signal, and determining a target slot position in the preset number of slot positions corresponding to the interrupt event according to an inquiry result; and the control unit is used for sending control information to the target slot position so as to control the target slot position in the cabinet machine to act to pop up the target equipment or lock the target equipment. By the control device of the slot position of the cabinet, the purpose of grouping the slot positions in the cabinet to determine the target slot position needing to be acted based on each group is achieved, the technical effect of controlling the cabinet is improved, and the technical problem that the mode of managing peripheral equipment by the cabinet in the related technology is complex is solved.
In an alternative embodiment, the control device of the cabinet slot further comprises: the second determining unit is used for responding to the interrupt event to generate level signals of the analog switches corresponding to the interrupt event when the interrupt event is detected, and determining the number of the analog switches of the cabinet machine before the level signals are sent to the main control module, wherein the cabinet machine is used for storing target equipment and other equipment which is the same as the target equipment; the third determining unit is used for determining a plurality of slot positions controlled by the main control module of the cabinet machine; and the grouping unit is used for grouping the plurality of slot positions controlled by the main control module according to the number of the analog switches of the cabinet machine, so that each analog switch controls a preset number of slot positions.
In an alternative embodiment, the control device of the cabinet slot comprises: the first detection unit is used for responding to an interrupt event to generate a level signal of an analog switch corresponding to the interrupt event when the interrupt event is detected when the target slot position is controlled to move to pop up the target equipment, and detecting a plurality of pieces of equipment stored in the cabinet machine according to the interrupt signal before the level signal is sent to the main control module to obtain the current state of each piece of equipment; a fourth determination unit configured to determine a target device according to a current state of each of the plurality of devices; and the first trigger unit is used for triggering the interrupt event according to the identification information of the target equipment.
In an alternative embodiment, the control device of the cabinet slot further comprises: and the fifth determining unit is used for carrying the identification information of the target slot position in the interrupt event, generating a level signal of the analog switch corresponding to the interrupt event in response to the interrupt event when the interrupt event is detected, and determining the analog switch corresponding to the interrupt event by the main control module of the control cabinet machine according to the identification information carried in the interrupt event before the level signal is sent to the main control module.
In an alternative embodiment, the control device of the cabinet slot comprises: the second detection unit is used for responding to the interrupt event to generate a level signal of an analog switch corresponding to the interrupt event when the target equipment is locked by controlling the action of the target slot position and detecting the slot position state of each slot position in the plurality of slot positions before the level signal is sent to the main control module; a sixth determining unit, configured to determine a target slot position according to a slot position state of each of the plurality of slot positions; and the second triggering unit is used for triggering the interrupt event according to the identification information of the target slot position.
In an alternative embodiment, the control device of the cabinet slot further comprises: and the seventh determining unit is used for carrying the identification information of the target slot position in the interrupt event, generating a level signal of the analog switch corresponding to the interrupt event in response to the interrupt event when the interrupt event is detected, and determining the analog switch corresponding to the interrupt event by the main control module of the control cabinet machine according to the identification information carried in the interrupt event before the level signal is sent to the main control module.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (8)

1. A control method of a cabinet slot is characterized by comprising the following steps:
when an interrupt event is detected, generating a level signal of an analog switch corresponding to the interrupt event in response to the interrupt event, and sending the level signal to a main control module;
when the master control module receives the level signal, controlling the master control module to inquire a preset number of slot positions corresponding to the analog switch based on the level signal, and determining a target slot position in the preset number of slot positions corresponding to the interrupt event according to an inquiry result, wherein the target slot position is a slot position in a cabinet air conditioner;
sending control information to the target slot position to control the target slot position in the cabinet machine to act to pop up target equipment or lock the target equipment;
when an interrupt event is detected, before generating a level signal of an analog switch corresponding to the interrupt event in response to the interrupt event and sending the level signal to a main control module, the method further includes:
determining the number of analog switches of a cabinet, wherein the cabinet is used for storing the target equipment and other equipment which is the same as the target equipment;
determining a plurality of slot positions controlled by a main control module of the cabinet machine;
and grouping the plurality of slot positions controlled by the main control module according to the number of the analog switches of the cabinet machine, so that each analog switch controls a preset number of slot positions.
2. The method of claim 1, wherein before generating a level signal of an analog switch corresponding to an interrupt event in response to the interrupt event and sending the level signal to a master control module when the target slot action is controlled to eject the target device, the method comprises:
detecting a plurality of devices stored in the cabinet according to the interrupt event to obtain the current state of each device in the plurality of devices;
determining the target device according to the current state of each of the plurality of devices;
and triggering the interrupt event according to the identification information of the target equipment.
3. The method according to claim 2, wherein the interruption event carries identification information of a target slot, and when an interruption event is detected, before generating a level signal of an analog switch corresponding to the interruption event in response to the interruption event and sending the level signal to a master control module, the method further comprises:
and the main control module for controlling the cabinet machine determines the analog switch corresponding to the interrupt event according to the identification information carried in the interrupt event.
4. The method of claim 1, wherein prior to generating a level signal for an analog switch corresponding to an interrupt event in response to the interrupt event and sending the level signal to a master module when controlling the target slot action to lock the target device when the interrupt event is detected, the method comprises:
detecting a plurality of slot positions in the cabinet machine according to the interrupt event to obtain a slot position state of each slot position in the plurality of slot positions for detection;
determining the target slot position according to the slot position state of each slot position in the plurality of slot positions;
and triggering the interrupt event according to the identification information of the target slot position.
5. The method according to claim 4, wherein the interruption event carries identification information of a target slot, and when an interruption event is detected, before generating a level signal of an analog switch corresponding to the interruption event in response to the interruption event and sending the level signal to a master control module, the method further comprises:
and the main control module for controlling the cabinet machine determines the analog switch corresponding to the interrupt event according to the identification information carried in the interrupt event.
6. A control device of a cabinet slot, comprising:
the device comprises a sending unit, a main control module and a switching unit, wherein the sending unit is used for responding to an interrupt event to generate a level signal of an analog switch corresponding to the interrupt event and sending the level signal to the main control module when the interrupt event is detected;
the first determining unit is used for controlling the main control module to inquire the preset number of slot positions corresponding to the analog switch based on the level signal when the main control module receives the level signal, and determining a target slot position in the preset number of slot positions corresponding to the interrupt event according to an inquiry result;
the control unit is used for sending control information to the target slot position so as to control the target slot position in the cabinet machine to act to pop up target equipment or lock the target equipment;
wherein, still include:
the second determining unit is used for responding to the interrupt event to generate a level signal of an analog switch corresponding to the interrupt event when the interrupt event is detected, and determining the number of the analog switches of the cabinet machine before the level signal is sent to the main control module, wherein the cabinet machine is used for storing the target equipment and other equipment same as the target equipment;
the third determining unit is used for determining a plurality of slot positions controlled by the main control module of the cabinet machine;
and the grouping unit is used for grouping the plurality of slot positions controlled by the main control module according to the number of the analog switches of the cabinet machine, so that each analog switch controls a preset number of slot positions.
7. The apparatus of claim 6, wherein the apparatus comprises:
the first detection unit is used for responding to an interrupt event to generate a level signal of an analog switch corresponding to the interrupt event when the interrupt event is detected when the target slot position is controlled to pop up the target equipment, and detecting a plurality of pieces of equipment stored in the cabinet machine according to the interrupt event before the level signal is sent to a main control module to obtain the current state of each piece of equipment;
a fourth determining unit, configured to determine the target device according to a current state of each of the plurality of devices;
and the first triggering unit is used for triggering the interrupt event according to the identification information of the target equipment.
8. The apparatus of claim 7, further comprising:
and a fifth determining unit, configured to, when an interrupt event is detected, generate a level signal of an analog switch corresponding to the interrupt event in response to the interrupt event, and control the main control module of the cabinet according to the identifier information carried in the interrupt event to determine the analog switch corresponding to the interrupt event before sending the level signal to the main control module.
CN201911419897.0A 2019-12-31 2019-12-31 Control method and device for slot position of cabinet machine Active CN111190367B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911419897.0A CN111190367B (en) 2019-12-31 2019-12-31 Control method and device for slot position of cabinet machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911419897.0A CN111190367B (en) 2019-12-31 2019-12-31 Control method and device for slot position of cabinet machine

Publications (2)

Publication Number Publication Date
CN111190367A CN111190367A (en) 2020-05-22
CN111190367B true CN111190367B (en) 2020-12-08

Family

ID=70709811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911419897.0A Active CN111190367B (en) 2019-12-31 2019-12-31 Control method and device for slot position of cabinet machine

Country Status (1)

Country Link
CN (1) CN111190367B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641555B (en) * 2021-08-17 2023-11-24 中国联合网络通信集团有限公司 Fault equipment positioning method, device, equipment and readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1299213C (en) * 2002-09-19 2007-02-07 华为技术有限公司 Method for making centralized control processing by utilizing CPU on system board
CN100471128C (en) * 2005-12-30 2009-03-18 华为技术有限公司 Method and device for realizing equipment state polling
CN201397503Y (en) * 2008-11-21 2010-02-03 冶金自动化研究设计院 Interrupt expander circuit
KR101958902B1 (en) * 2011-09-30 2019-07-03 삼성전자주식회사 Method for group controlling of electronic devices and electronic device management system therefor
CN102662889B (en) * 2012-04-24 2016-12-14 华为技术有限公司 Interruption processing method, interrupt control unit and processor
WO2018133242A1 (en) * 2017-01-19 2018-07-26 华为技术有限公司 Terminal, debugging system, and debugging method

Also Published As

Publication number Publication date
CN111190367A (en) 2020-05-22

Similar Documents

Publication Publication Date Title
CN106130972B (en) resource access control method and device
CN102917426A (en) Operator network switching method and device for IOT (Internal of Things) terminal
CN101197855A (en) Equipment node address code distribution method and distributing system, and address configuration node
CN102833632A (en) Multi-screen interactive master-slave control equipment management method, intelligent television and control equipment
CN111190367B (en) Control method and device for slot position of cabinet machine
CN112131196A (en) Distributed log processing method and device, terminal equipment and storage medium
CN101873232A (en) Judgment method of equipment uniqueness and IP network discovery server
US11108588B2 (en) Configuration information to an internet of things multiplexer
CN109614354B (en) Interface distribution method, board card, equipment and storage medium
CN114205178B (en) Equipment linkage method and device, storage medium and electronic equipment
CN107547382B (en) Neighbor relation discovery method and device
CN113819587B (en) Air conditioner control method and device and air conditioner
CN110266574A (en) Method of adjustment, relevant device and the storage medium of Conflict solving dispatch list
CN106933509B (en) A kind of processing method and electronic equipment of disk number
CN105183373A (en) Data processing method and network device
CN106789304B (en) Network equipment configuration synchronization method and device
CN113452763B (en) Smart home business registration method and device and smart home system
CN109344573B (en) Activation method and device
CN103686694A (en) Status information acquiring method, service control point and server
CN112311736A (en) Remote control device, household appliance and communication protocol configuration method and device thereof
CN115709666A (en) Battery replacement control method and device for charging cabinet
CN108874553B (en) Message pushing method, device and system, storage medium and processor
CN106021520B (en) Method for storing and inquiring blacklist of user card
CN111708288A (en) Data processing method and device, electronic equipment and storage medium
CN115183380B (en) Method, device, controller and storage medium for multi-terminal control of air conditioning system

Legal Events

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