WO2020124983A1 - Method, device and apparatus for monitoring site occupancy - Google Patents

Method, device and apparatus for monitoring site occupancy Download PDF

Info

Publication number
WO2020124983A1
WO2020124983A1 PCT/CN2019/093381 CN2019093381W WO2020124983A1 WO 2020124983 A1 WO2020124983 A1 WO 2020124983A1 CN 2019093381 W CN2019093381 W CN 2019093381W WO 2020124983 A1 WO2020124983 A1 WO 2020124983A1
Authority
WO
WIPO (PCT)
Prior art keywords
cabinet
information
network
switch
occupancy
Prior art date
Application number
PCT/CN2019/093381
Other languages
French (fr)
Chinese (zh)
Inventor
金鹰
陈煜�
杨燕明
刘铁
徐光龙
黄泽霖
李晓露
李明
郑李恒
吕苏
王伟强
Original Assignee
中国银联股份有限公司
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 中国银联股份有限公司 filed Critical 中国银联股份有限公司
Publication of WO2020124983A1 publication Critical patent/WO2020124983A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • HELECTRICITY
    • H05ELECTRIC TECHNIQUES NOT OTHERWISE PROVIDED FOR
    • H05KPRINTED CIRCUITS; CASINGS OR CONSTRUCTIONAL DETAILS OF ELECTRIC APPARATUS; MANUFACTURE OF ASSEMBLAGES OF ELECTRICAL COMPONENTS
    • H05K7/00Constructional details common to different types of electric apparatus
    • H05K7/14Mounting supporting structure in casing or on frame or rack

Definitions

  • the present application relates to the technical field of equipment management, and in particular, to a method, device, and equipment for space occupation monitoring.
  • the present application provides a method, device, and device for occupying space monitoring to determine the occupying information in the cabinet, so as to realize more efficient management of the occupying space in the cabinet.
  • the present application provides a cabinet including a cabinet body and a placeholder module installed inside the cabinet body.
  • the occupancy module is used to detect the occupancy information of the equipment racked to the cabinet and send the occupancy information to the control system connected to the cabinet.
  • the occupancy information is used to indicate the location information of the equipment occupying the cabinet.
  • the occupancy module in the cabinet can detect the occupancy information of the equipment racked to the cabinet, and after sending the occupancy information to the control system, the control system can determine the allocation of the occupancy space in the cabinet according to the occupancy information Situation, so that the system can effectively manage the space occupied by the cabinet.
  • the above-mentioned placeholder module includes a placeholder controller and a camera.
  • the above placeholder module is used to detect the placeholder information of the equipment racked to the cabinet and send the placeholder information to the control system connected to the cabinet , which specifically includes: a placeholder module, which detects the placeholder information of the equipment racked to the cabinet through the placeholder controller, scans the equipment's identification information through the camera to obtain the equipment's identity, and sends the equipment's identity and to the control system connected to the cabinet Placeholder information.
  • the control system can obtain the occupation information corresponding to each device. This scheme can not only quickly find the location of the equipment to be found through the control system, but also make a system for the shelf position of each equipment ⁇ Management.
  • the above cabinet includes N slots
  • the above-mentioned occupancy module further includes N occupancy indicators, one occupancy indicator is installed in one slot, and one occupancy indicator is used to indicate Whether the slot corresponding to the place indicator is occupied, N is a positive integer.
  • the space in the cabinet is divided into N slots in units of slots.
  • One shelf device occupies one or more slots, and the indicator corresponding to the occupied slot can indicate the slot. It has been occupied, and the status of the slot in the cabinet can be obtained more quickly through the indicator light for systematic management.
  • the above cabinet may further include a power connection module, which is used to provide power to the equipment racked up to the cabinet, and obtain the power occupancy information of the cabinet, and then send the power occupancy to the control system Information, where the power occupancy information is used to indicate the power interface and power consumption of the power-on module used by the equipment racked to the cabinet.
  • the power connection module in the cabinet can detect the power occupancy information of the equipment racked to the cabinet, and after sending the power occupancy information to the control system, the control system can determine the power interface and power distribution in the cabinet according to the power occupancy information Information, so that the power interface and power in the cabinet can be more effectively managed systematically.
  • the above cabinet further includes a network port module, the network port module is used to provide a network to the equipment racked to the cabinet, and obtain network status information of the equipment, and then send the network status to the control system information.
  • the network port module in the cabinet can detect the network status information of the equipment racked to the cabinet, and after sending the network status information to the control system, the control system can determine the network usage status of the equipment in the cabinet based on the network status information In this way, the network of equipment in the cabinet can be managed more effectively.
  • the network port includes a switch, and the switch is used to connect the network port module to the first network switch or the second network switch.
  • the first network switch and the second network switch are different network switches, and at a moment, the network port module is connected to one network switch.
  • the outside of the cabinet includes a cabinet indicator light
  • the cabinet indicator light is used to indicate that a device racked to the cabinet has a failure.
  • the indicator light of the cabinet is used to indicate that the failure of the equipment racked to the cabinet has been repaired.
  • the indicator light of the cabinet is used to indicate that the searched device exists in the cabinet.
  • the outside of the cabinet may further include cabinet identification information, and the cabinet identification information is used to indicate information of equipment racked to the cabinet.
  • the cabinet identification information may be a two-dimensional code. By scanning the two-dimensional code, the information of the equipment in the cabinet can be obtained. With this solution, the detailed information of the equipment racked into the cabinet can be quickly obtained through the cabinet identification information outside the cabinet.
  • the present application provides a cabinet system including a control system and the cabinet in any embodiment of the first aspect described above.
  • the control system is used to receive and present the information sent by the cabinet.
  • the information sent by the cabinet may be occupancy information, and/or, power occupancy information, and/or, network status information.
  • the above solution receives and presents the information sent by the cabinet through the control system, and can quickly obtain the information of the equipment in each cabinet from the control system, so as to more efficiently realize the systematic management of the equipment in the cabinet.
  • the present application provides a placeholder monitoring method, which includes generating placeholder information when it is detected that the status of the M placeholder switches of the cabinet has changed.
  • the cabinet includes N slots, one slot is installed with a placeholder switch, the status of a placeholder switch is used to indicate whether a device is installed in the slot corresponding to the placeholder switch, and the placeholder information is used to indicate
  • the equipment racked up to the cabinet occupies the position information of the cabinet, N is a positive integer, and M is a positive integer not greater than N. Then, send the occupancy information to the control system connected to the cabinet.
  • the status of the occupancy switch will be changed accordingly according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
  • the above method may further include: scanning the identification information of the device racked to the cabinet through a moving camera on the cabinet to obtain the device identification.
  • the camera is installed inside the cabinet, and the camera moves in the cabinet to scan the identification information of the equipment racked to different positions inside the cabinet.
  • the above-mentioned sending the occupation information to the control system connected to the cabinet includes: sending the device identification and the occupation information to the control system connected to the cabinet. This solution obtains the device ID and the corresponding occupation information of the device, and then sends it to the control system together. Therefore, the control information can obtain the occupation information corresponding to each device, so that the control system can quickly find the need to find The location of the equipment can also be systematically managed for the location of each equipment.
  • the above-mentioned occupation information includes information about the slots of the cabinet occupied by the device, that is, the number and positions of the slots of the cabinet occupied by the device.
  • the above-mentioned detection of the status change of the M placeholder switches of the cabinet includes: when the equipment of the cabinet is removed from the rack, the state change of the M placeholder switches of the cabinet is detected. Or, when the equipment of the cabinet is put on the shelf, it is detected that the status of the M occupancy switches of the cabinet changes. In this solution, when the equipment in the cabinet is put on or off the shelf, the status of the occupancy switch will change, which is used to indicate that the occupancy status of the slot corresponding to the occupancy switch has changed.
  • the present application provides a placeholder monitoring device, which includes a placeholder detection unit and a placeholder information sending unit.
  • the occupancy detection unit is used to generate occupancy information when it detects that the status of the M occupancy switches of the cabinet has changed.
  • the cabinet includes N slots, a slot switch is installed in a slot, the status of a place switch is used to indicate whether a device is installed in the slot corresponding to the place switch, and the place information is used to indicate The equipment racked up to the cabinet occupies the position information of the cabinet, N is a positive integer, and M is a positive integer not greater than N.
  • the placeholder information sending unit is used to send placeholder information to the control system connected to the cabinet.
  • the status of the occupancy switch will be changed accordingly according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
  • the above-mentioned occupation monitoring device may further include a device identification acquisition unit for controlling a movable camera on the cabinet, and scanning the identification information of the device racked to the cabinet through the camera to obtain the device identification .
  • the camera is installed inside the cabinet, and the camera moves in the cabinet to scan the identification information of the equipment racked to different positions inside the cabinet.
  • the above-mentioned placeholder information sending unit is specifically used to send the device identification and placeholder information to the control system connected to the cabinet. This solution obtains the device ID and the corresponding occupation information of the device, and then sends it to the control system together. Therefore, the control information can obtain the occupation information corresponding to each device, so that the control system can quickly find the need to find The location of the equipment can also be systematically managed for the location of each equipment.
  • the above-mentioned occupation information includes information about the slots of the cabinet occupied by the device, that is, the number and positions of the slots of the cabinet occupied by the device.
  • the above-mentioned detection of the status change of the M placeholder switches of the cabinet includes: when the equipment of the cabinet is removed from the rack, the state change of the M placeholder switches of the cabinet is detected. Or, when the equipment of the cabinet is put on the shelf, it is detected that the status of the M occupancy switches of the cabinet changes. In this solution, when the equipment in the cabinet is put on or off the shelf, the status of the occupancy switch will change, which is used to indicate that the occupancy status of the slot corresponding to the occupancy switch has changed.
  • the present application provides a network switching method.
  • the method includes: receiving a network switching command sent by a control system, and then, according to the network switching command, controlling a switch in the cabinet to switch the connected network switch.
  • This solution uses network switching commands to switch the connected network switches. When a network switch fails, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
  • the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching.
  • the above-mentioned switching of the connected network switch by controlling the switch in the cabinet according to the network switching command may specifically include: controlling the switch to switch from being connected to the first network switch to being connected to the second network switch according to the network switching command.
  • This solution uses two network switches. When a network failure occurs in the currently connected first network switch, the switch can be quickly switched to the second network switch without network failure through the network switch command to quickly solve the equipment in the cabinet. Network connection problem.
  • the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet.
  • the control system obtains the network status information of the cabinet, and when it is determined that the network switch currently used by the cabinet has a network failure according to the network status information of the cabinet, a network switching command is generated so that the cabinet switches the connected network switch, which can quickly To solve the problem of network connection failure of equipment in the cabinet.
  • the method before receiving the network switching command sent by the control system, the method further includes: reporting the network status information of the cabinet to the control system.
  • the control system can determine the timing of the need to generate a network switching command based on the network status information.
  • the network switching command can be generated in time to quickly solve the problem of network connection failure of the equipment in the cabinet.
  • the method further includes: controlling the lighting of the cabinet indicator, which is used to indicate the equipment racked to the cabinet Has been repaired.
  • the present application provides a network switching device, which includes a receiving unit and a switching unit.
  • the receiving unit is used to receive the network switching command sent by the control system.
  • the switching unit is used to control the switch in the cabinet to switch the connected network switch according to the network switching command.
  • This solution uses network switching commands to switch the connected network switches. When a network switch fails, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
  • the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching.
  • the above-mentioned switching unit is specifically used to control the switching switch from connecting to the first network switch to connecting to the second network switch according to the network switching command.
  • This solution uses two network switches. When a network failure occurs in the currently connected first network switch, the switch can be quickly switched to the second network switch without network failure through the network switch command to quickly solve the equipment in the cabinet. Network connection problem.
  • the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet.
  • the control system obtains the network status information of the cabinet, and when it is determined that the network switch currently used by the cabinet has a network failure according to the network status information of the cabinet, a network switching command is generated so that the cabinet switches the connected network switch, which can quickly To solve the problem of network connection failure of equipment in the cabinet.
  • the above device may further include a network state information sending unit, which is used to report the network state information of the cabinet to the control system.
  • the control system can determine the timing of the need to generate a network switching command based on the network status information.
  • the network switching command can be generated in time to quickly solve the problem of network connection failure of the equipment in the cabinet.
  • the above-mentioned device may further include an indicator light control unit for controlling the lighting of the cabinet indicator light, and the cabinet indicator light is used to indicate that the failure of the equipment racked to the cabinet has been repaired.
  • an embodiment of the present invention provides a computer-readable storage medium that stores computer-executable instructions that are used to cause the computer to perform the first aspect or the fifth aspect Aspect of the method.
  • an embodiment of the present invention provides a computer device, including: a memory for storing program instructions; a processor for invoking program instructions stored in the memory, and performing the first aspect or the above according to the obtained program The method described in five aspects.
  • an embodiment of the present invention provides a occupancy monitoring device, including:
  • At least one processor and,
  • a memory communicatively connected to the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the first aspect or the fifth aspect method.
  • Figure 1 is a schematic diagram of an existing cabinet
  • FIG. 2 is a schematic diagram of a cabinet system architecture provided by this application.
  • FIG. 3 is a schematic diagram of a cabinet provided by this application.
  • FIG. 4 is a schematic structural diagram of a placeholder module provided by this application.
  • FIG. 5 is a schematic structural diagram of a power receiving module provided by this application.
  • FIG. 6 is a schematic flow chart of a method for occupancy monitoring provided by this application.
  • FIG. 7 is a schematic flowchart of a network switching method provided by this application.
  • FIG. 8 is a schematic diagram of a occupancy monitoring device provided by the application.
  • FIG. 9 is a schematic diagram of a network switching device provided by this application.
  • FIG. 10 is a schematic structural diagram of a occupancy monitoring device provided by the present application.
  • the cabinet has the properties of anti-vibration, anti-impact, anti-corrosion, anti-radiation and the like.
  • the cabinet includes an electrical connection module and a network port module.
  • the electrical connection module is installed on a side inside the cabinet, usually a row of electrical sockets, used to provide power to the equipment in the cabinet .
  • the network port module is installed on the top or bottom of the cabinet, usually a row of network sockets, used to provide network to the equipment in the cabinet.
  • Such traditional cabinets may have the following problems in use:
  • this application provides a cabinet system, as shown in FIG. 2, which is a cabinet system provided by this application.
  • the cabinet system includes a control system and a cabinet.
  • the control system may be a computer or other control equipment.
  • the control system is used to receive and present the information sent by the cabinet.
  • the information sent by the cabinet is used to indicate the information of the equipment in the cabinet.
  • the debugger can realize the systematic management of the equipment in the cabinet through the control system.
  • the information sent by the cabinet may be occupancy information of the device, and/or, power occupancy information, and/or, network status information.
  • the occupation information is used to indicate the position information occupied by the equipment in the cabinet in the cabinet.
  • the power occupancy information is used to indicate the power interface and power consumption of the power receiving module used by the equipment racked to the cabinet.
  • the network status information is used to indicate whether the cabinet currently has a network fault.
  • the control system receives the information sent by the cabinet and presents the information, so that the debugger can more efficiently complete the systematic management of the equipment in the cabinet according to the information presented by the control system. And, you can get the specific information of the equipment inside the cabinet. Solved the above problem 1, problem 2, problem 3.
  • the cabinet includes a cabinet body and a placeholder module 100 installed inside the cabinet body.
  • the occupancy module 100 is used to detect the occupancy information of the equipment racked to the cabinet and send the occupancy information to the control system connected to the cabinet.
  • the occupancy module in the cabinet can detect the occupancy information of the equipment racked to the cabinet, and after sending the occupancy information to the control system, the control system can determine the allocation of the occupancy space in the cabinet according to the occupancy information Situation, so that the system can effectively manage the space occupied by the cabinet.
  • the above-mentioned placeholder module 100 is installed on one side inside the cabinet, and the placeholder module includes a placeholder controller and a camera, as shown in FIG. 4, which is a schematic diagram of a placeholder module provided by the present application , Including occupancy controller 101 and camera 102.
  • the occupancy controller 101 has a bar shape and is vertically installed in the cabinet.
  • the occupancy module 100 detects the occupancy information of the equipment racked to the cabinet through the occupancy controller 101.
  • the camera 102 is installed on a vertical rail and can move up and down, and is used to scan the identification information of the device to obtain the device identification.
  • the above occupancy module 100 is specifically used to detect the occupancy information of the device racked to the cabinet through the occupancy controller 101, scan the identification information of the device through the camera 102 to obtain the identification of the device, and send the device to the control system connected to the cabinet Logo and placeholder information.
  • the above cabinet includes N slots, one slot refers to the space size of a unit inside the cabinet, and the specific occupied volume of a unit space size can be set according to actual needs, There are no restrictions on this application.
  • the above occupancy module 100 further includes N occupancy indicators, one occupancy indicator is installed in one slot, one occupancy indicator is used to indicate whether the slot corresponding to the occupancy indicator is occupied, and N is a positive integer .
  • the occupancy information of the equipment inside the cabinet can be obtained, and according to the occupancy information of the equipment inside the cabinet, the occupancy space inside the cabinet can be known, and then the space in the cabinet can be systematically managed .
  • the cabinet shown in FIG. 3 may further include a power connection module 200, which is used to provide power to the equipment racked to the cabinet, and obtain power occupancy information of the cabinet, and then send the power to the control system Occupancy information, where the power supply occupancy information is used to indicate the power interface and power consumption of the power receiving module used by the equipment racked to the cabinet.
  • the power receiving module 200 may be, for example, a smart socket.
  • the socket When a device racked into a cabinet is connected to the smart socket, the socket may provide power to the device, and may generate power consumption information of the device and send it to the control At the same time, the smart socket can also detect which power interface of the smart socket is occupied by each device, and send the detected information about the power interface of the device to the control system.
  • the power receiving module 200 may be two independent sockets. As shown in FIG. 5, when a piece of equipment is racked into the cabinet, the first socket 201 and the second socket 202 are simultaneously connected. Among them, the first socket 201 is the main socket, which provides power for the device, and the second socket 202 is the spare socket. Under normal circumstances, the device does not provide power. When the first socket 201 fails, the second socket 202 is enabled as the device Provide power.
  • the position of the power interface connected to each device in the cabinet can be obtained, that is, the device corresponding to each power cord and the position of the power interface connected can be obtained, and then the cabinet can be The power cord of the device is managed, which solves the problem that the power cord is too chaotic and difficult to manage.
  • the cabinet shown in FIG. 3 may further include a network port module 300, which is used to provide a network to the equipment racked up to the cabinet, obtain network status information of the equipment, and then send the control system Network status information.
  • the network status information of a device can reflect the network usage status of the device, for example, whether the device has a network failure, the network speed of the device, and the total amount of traffic of the device. According to the network status information, it can be determined whether the device is still working. For example, if the total amount of traffic of the device in a period of time is less than the preset flow threshold, it is determined that the device is not working, or it can be said that the device is not needed. You can choose to remove such equipment to save space in the cabinet, and then add other equipment.
  • the network port module 300 may include a switch, and the network port module 300 may be connected to the first network switch or the second network switch through the switch.
  • the first network switch and the second network switch are different network switches, and the network port module is connected to one network switch at a time.
  • After the network port module 300 is connected to the network switch it can provide a network for devices connected to the network port module 300.
  • the switch can switch the connection between the first network switch and the second network switch, and will switch when a network failure of the currently connected network switch occurs.
  • This solution realizes the switch connection between the network port module between the first network switch and the second network switch through a switch. When a network switch fails, it can be quickly switched to another network switch to quickly solve the cabinet The problem of network connection failure within the device. That is, this solution can solve the above problem 4.
  • the outside of the cabinet includes a cabinet indicator light 400.
  • the cabinet indicator light may be provided at the top of the outside of the cabinet (as shown in FIG. 3, for example), or may be provided on the outside side of the cabinet.
  • the application location is not limited in this application, and can be adjusted according to actual needs.
  • the cabinet indicator light is used to indicate that the equipment racked up to the cabinet is faulty.
  • the indicator light of the cabinet is used to indicate that the failure of the equipment racked to the cabinet has been repaired.
  • the indicator light of the cabinet is used to indicate that the searched device exists in the cabinet.
  • the indicator light of the cabinet may be, for example, a light that can change color, indicating different information through different colors, or a plurality of different lights, and one light is responsible for indicating the corresponding information.
  • the outside of the cabinet may further include cabinet identification information 500 (the cabinet identification information 500 in FIG. 3 is a two-dimensional code as an example), and the cabinet identification information is used to indicate the equipment racked to the cabinet. Information and some information of the cabinet.
  • the device occupying information in the cabinet can be acquired, and the occupying space allocation information in the cabinet can be determined, thereby solving the above problem 1.
  • the distribution information of the power supply interface is determined, thereby solving the above problem 2.
  • the switch of the network port module 300 By using the switch of the network port module 300 to switch between the first network switch and the second network switch, the network port module 300 can be quickly connected to the network switch without network failure, thereby solving the above problem 4.
  • the information sent by the cabinet is received and presented through the control system, and the device information inside the cabinet can be quickly obtained through the cabinet indicator 400 and the cabinet identification information 500 on the control system or the cabinet. That solves the above problem 3.
  • the function of the occupancy module 100 in the cabinet mentioned above will be specifically described below with reference to FIG. 6, that is, the occupancy monitoring method shown in FIG. 6 may be applied to the above cabinet, and specifically, may be used for the occupancy of the above cabinet Module 100. It should be noted that this method can also be used in other cabinets. This method can solve the above problem 1.
  • the method includes:
  • Step 601 when it is detected that the status of the M placeholder switches of the cabinet changes, placeholder information is generated.
  • the cabinet includes N slots, one slot is installed with a placeholder switch, the status of a placeholder switch is used to indicate whether a device is installed in the slot corresponding to the placeholder switch, and the placeholder information is used to indicate
  • N is a positive integer
  • M is a positive integer not greater than N.
  • Step 602 Send the occupancy information to the control system connected to the cabinet.
  • the state of the occupancy switch when the device is racked into the cabinet, the state of the occupancy switch will be changed according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
  • the state of the above-mentioned placeholder switch is changed by the device through physical contact.
  • the volume of the equipment rack-mounted to the cabinet matches that of the rack.
  • the placeholder switch is touched to change the state of the placeholder switch.
  • the cabinet sometimes needs to put some relatively small equipment, such equipment can not change the status of the occupancy switch through physical contact.
  • the debugger needs to manually change the status of the occupancy switch.
  • the above-mentioned occupation information is generated according to the position and number of M occupation switches that change state.
  • the occupancy information generated according to the number of occupancy switches is used to indicate the number of slots in the cabinet occupied by the device, that is, the space occupied by the cabinet, or the size of the device.
  • the occupancy information generated according to the position of the occupancy switch is used to indicate the space position occupied by the device in the cabinet, that is, where the device is in the cabinet.
  • the above method may further include: scanning the identification information of the device racked to the cabinet through a moving camera on the cabinet to obtain the device identification.
  • the camera is installed inside the cabinet, and the camera moves in the cabinet to scan the identification information of the equipment racked to different positions inside the cabinet.
  • the above step 602 may specifically include: sending the device identification and occupation information to the control system connected to the cabinet.
  • the identification information of the device may be affixed to the outer surface of the device in the form of a two-dimensional code, and of course, it may also be affixed to the guide rail for racking the device. The position of the two-dimensional code is determined according to the position of the camera.
  • the control information Before the above equipment is put on the cabinet, the information needs to be entered in the control system, and the control information generates the equipment identification information according to the entered information. For example, based on the information entered by the device, a two-dimensional code is generated. The two-dimensional code can indicate the information of the device. The two-dimensional code is pasted at a position that can be scanned by the camera. After the camera scans the two-dimensional code, the device is acquired. The device's logo indicates the device. Then send the device identification and occupation information to the control system connected to the cabinet. This solution obtains the device ID and the corresponding occupation information of the device, and then sends it to the control system together. Therefore, the control information can obtain the occupation information corresponding to each device, so that the control system can quickly find the need to find The location of the equipment can also be systematically managed for the location of each equipment.
  • the above-mentioned occupation monitoring method when the equipment is racked into the cabinet, according to the cabinet space occupied by the equipment, the status of the occupation switch will be changed accordingly, and the occupation information will be generated, and then the occupation information will be sent to the control system.
  • the occupation information determines the allocation of the occupation space in the cabinet, so that the systematic management of the occupation space in the cabinet can be performed more effectively.
  • the function of the network port module 300 in the above-mentioned cabinet will be specifically described below with reference to FIG. 7, that is, the network switching method shown in FIG. 7 may be applied to the above-mentioned cabinet, and specifically, may be used for the network port module of the above-mentioned cabinet 300. It should be noted that this method can also be used in other cabinets. This method can solve the above problem 4.
  • the method includes:
  • Step 701 Receive a network switching command sent by the control system.
  • Step 702 Control the switch in the cabinet to switch the connected network switch according to the network switching command.
  • the network switch is a device that provides a network for the cabinet.
  • the cabinet connected to the network switch may also experience a network failure.
  • the above scheme switches the connected network switches through network switching commands.
  • a network switch fails, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
  • the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching.
  • the above step 702 may specifically include: according to the network switching command, controlling the switching switch to switch from connecting to the first network switch to connecting to the second network switch.
  • the first network switch currently connected to the cabinet has a network failure, that is, the cabinet has a network failure problem
  • it will receive a network switching command sent by the control system.
  • the switching control switch is connected to the second Network switch to connect the cabinet to the second network switch to achieve normal networking, and solve the problem of network failure in the cabinet.
  • replace and repair the first network switch connected to the cabinet In order to repair the network when a network failure occurs in the second network switch connected to the current cabinet.
  • the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet.
  • the cabinet detects its own network status information in real time and sends it to the control system.
  • the control system determines whether the cabinet has a network failure according to the network status information of the cabinet. After determining that the cabinet has a network failure, it generates a network switching command and sends it.
  • the control system obtains the network status information of the cabinet, and when it is determined that the network switch currently used by the cabinet has a network failure based on the network status information of the cabinet, a network switching command is generated so that the cabinet switches the connected network switch, which can quickly To solve the problem of network connection failure of equipment in the cabinet.
  • step 702 it may further include: controlling the lighting of the cabinet indicator, which is used to indicate that the failure of the equipment racked to the cabinet has been repaired.
  • the cabinet indicator light may be, for example, the cabinet indicator light 400 shown in FIG. 3.
  • the above network switching method switches the connected network switches through the network switching command.
  • a network switch When a network switch has a network failure, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
  • the present application also provides a device for occupying monitoring, as shown in FIG. 8, the device includes:
  • the occupancy detection unit 801 is configured to generate occupancy information when it is detected that the status of the M occupancy switches of the cabinet has changed.
  • the placeholder information sending unit 802 is used to send placeholder information to the control system connected to the cabinet.
  • the state of the occupancy switch when the device is racked into the cabinet, the state of the occupancy switch will be changed according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
  • the above-mentioned occupation monitoring device may further include a device identification acquisition unit 803 for controlling a movable camera on the cabinet, and scanning the identification information of the device racked to the cabinet through the camera to obtain the device Logo.
  • the camera is installed inside the cabinet, and the camera moves in the cabinet to scan the identification information of the equipment racked to different positions inside the cabinet.
  • the above-mentioned placeholder information sending unit 802 is specifically used to send the device identification and placeholder information to the control system connected to the cabinet.
  • the above-mentioned occupation information includes information about the slots of the cabinet occupied by the device, that is, the number and positions of the slots of the cabinet occupied by the device.
  • the above-mentioned detection of the status change of the M placeholder switches of the cabinet includes: when the equipment of the cabinet is removed from the rack, the state change of the M placeholder switches of the cabinet is detected. Or, when the equipment of the cabinet is put on the shelf, it is detected that the status of the M occupancy switches of the cabinet changes.
  • the present application also provides a network switching device.
  • the device includes:
  • the receiving unit 901 is configured to receive a network switching command sent by the control system.
  • the switching unit 902 is configured to control the switch in the cabinet to switch the connected network switch according to the network switching command.
  • the above scheme switches the connected network switches through network switching commands.
  • a network switch fails, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
  • the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching.
  • the above-mentioned switching unit is specifically used to control the switching switch from connecting to the first network switch to connecting to the second network switch according to the network switching command.
  • the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet.
  • the above device may further include a network status information sending unit 903, which is used to report the network status information of the cabinet to the control system.
  • the above-mentioned device may further include an indicator light control unit 904 for controlling the lighting of the cabinet indicator light, and the cabinet indicator light is used to indicate that the failure of the equipment racked to the cabinet has been repaired.
  • embodiments of the present invention provide a occupancy monitoring device. At least one processor; and a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor, so that The at least one processor can execute the occupancy monitoring method in the above embodiment.
  • FIG. 10 is a structure of a occupancy monitoring device provided by an embodiment of the present invention.
  • the occupancy monitoring device 1000 includes: a transceiver 1001, a processor 1002, a memory 1003, and a bus system 1004;
  • the memory 1003 is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions.
  • the memory 1003 may be a random access memory (random access memory, RAM for short), or may be a non-volatile memory (non-volatile memory), such as at least one disk memory. Only one memory is shown in the figure, and of course, the memory may be set as multiple as needed.
  • the memory 1003 may also be a memory in the processor 1002.
  • the memory 1003 stores the following elements, executable modules or data structures, or their subsets, or their extended sets:
  • Operation instructions including various operation instructions, used to realize various operations.
  • Operating system includes various system programs for implementing various basic services and processing hardware-based tasks.
  • the above-mentioned method for occupying space monitoring in the embodiment of the present invention may be applied to the processor 1002, or implemented by the processor 1002.
  • the processor 1002 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above-mentioned occupation monitoring method may be completed by an integrated logic circuit of hardware in the processor 1002 or an instruction in the form of software.
  • the above-mentioned processor 1002 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware Components.
  • DSP digital signal processor
  • ASIC application specific integrated circuit
  • FPGA field programmable gate array
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • the steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied and executed by a hardware decoding processor, or may be executed and completed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, and registers.
  • the storage medium is located in the memory 1003.
  • the processor 1002 reads the information in the memory 1003, and performs the following steps in conjunction with its hardware:
  • the processor 1002 is configured to generate occupancy information when the status of the M occupancy switches of the cabinet is changed.
  • the cabinet includes N slots, and one occupancy switch is installed in one slot.
  • the status of the position switch is used to indicate whether a device is installed in the slot corresponding to the placeholder switch, the placeholder information is used to indicate that the equipment racked to the cabinet occupies the position information of the cabinet, N is a positive integer, M is a positive integer not greater than N;
  • the transceiver 1001 is configured to send the occupation information to a control system connected to the cabinet.
  • the processor 1002 controls the movable camera on the cabinet, and scans the identification information of the device racked to the cabinet through the camera to obtain the identification of the device; the camera is installed in the cabinet internal.
  • the transceiver 1001 sends the device identification and the occupation information to the control system connected to the cabinet.
  • the occupancy information includes information about slots of the cabinet occupied by the device.
  • the processor 1002 is configured to detect a change in the status of the M occupancy switches of the cabinet when the equipment of the cabinet is put on or off the shelf, and generate occupancy information.
  • the program is stored in a storage medium and includes several instructions to make a device (which may be a single chip microcomputer) , A chip, etc.) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .
  • the present invention also provides a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium storing computer instructions, the computer instructions for causing the computer to perform any of the above Bit monitoring method.
  • the present invention also provides a computer program product including a calculation program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer To enable the computer to execute the occupancy monitoring method described in any one of the above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Small-Scale Networks (AREA)
  • Selective Calling Equipment (AREA)

Abstract

The present application provides a method, device and apparatus for monitoring site occupancy. The method comprises two steps. Step 1, generating site occupancy information when detecting the status change of M site occupancy switches in a cabinet. The cabinet includes N slots, each with one site occupancy switch installed therein. The status of one site occupancy switch is used for indicating whether there is an apparatus installed in the slot corresponding to the site occupancy switch, the site occupancy information is used for indicating the information of the position that an apparatus racked onto the cabinet occupies, wherein N is a positive integer and M is a positive integer not bigger than N. Step 2, sending the site occupancy information to a control system connected with the cabinet. In the described solution, when an apparatus is racked onto a cabinet, the status of a site occupancy switch can be correspondingly changed according to the position that the apparatus occupies in the space of the cabinet, and site occupancy information is generated; then, the site occupancy information is sent to a control system, and the control system can determine, according to the site occupancy information, the distribution of the occupied space in the cabinet, thereby more effectively and systematically managing the occupied space.

Description

一种占位监控方法及装置、设备Occupation monitoring method, device and equipment
相关申请的交叉引用Cross-reference of related applications
本申请要求在2018年12月19日提交中国专利局、申请号为201811557969.3、申请名称为“一种占位监控方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of the Chinese patent application filed on December 19, 2018 in the Chinese Patent Office, with the application number 201811557969.3 and the application name as "a placeholder monitoring method and device", the entire contents of which are incorporated by reference in this application in.
技术领域Technical field
本申请涉及设备管理技术领域,尤其涉及一种占位监控方法及装置、设备。The present application relates to the technical field of equipment management, and in particular, to a method, device, and equipment for space occupation monitoring.
背景技术Background technique
随着业务不断增多,开发设备不断增加,一个机柜内上架有多台设备。而随着设备的数量不断增加,对设备的管理变得越来越复杂。As the business continues to increase, the development equipment continues to increase, and multiple devices are placed in a cabinet. As the number of devices continues to increase, the management of devices becomes more and more complex.
现有技术中,在对机柜内的设备进行管理时,需要人工检查机柜的槽位使用情况,以便后期决定新上架的设备可以放置到机柜的哪些空槽,但这种方式需要大量的人力,效率较低。In the prior art, when managing the equipment in the cabinet, it is necessary to manually check the slot usage of the cabinet, so as to later decide which empty slots of the cabinet the newly added equipment can be placed in, but this method requires a lot of manpower, The efficiency is low.
发明内容Summary of the invention
本申请提供一种占位监控方法及装置、设备,用以确定机柜内的占位信息,以实现对机柜内的占位空间进行更高效地管理。The present application provides a method, device, and device for occupying space monitoring to determine the occupying information in the cabinet, so as to realize more efficient management of the occupying space in the cabinet.
第一方面,本申请提供一种机柜,该机柜包括柜体、安装在柜体内部的占位模块。占位模块用于检测上架至机柜的设备的占位信息,并向与机柜相连的控制系统发送占位信息,占位信息用于指示设备占据机柜的位置信息。该方案中,机柜中的占位模块能检测到上架至机柜的设备的占位信息,将该占位信息发送到控制系统后,控制系统可以根据占位信息确定机柜内的占位空间的分配情况,从而可以更有效地对机柜内的占位空间进行系统化的管理。In a first aspect, the present application provides a cabinet including a cabinet body and a placeholder module installed inside the cabinet body. The occupancy module is used to detect the occupancy information of the equipment racked to the cabinet and send the occupancy information to the control system connected to the cabinet. The occupancy information is used to indicate the location information of the equipment occupying the cabinet. In this solution, the occupancy module in the cabinet can detect the occupancy information of the equipment racked to the cabinet, and after sending the occupancy information to the control system, the control system can determine the allocation of the occupancy space in the cabinet according to the occupancy information Situation, so that the system can effectively manage the space occupied by the cabinet.
在一种可能的实现方式中,上述占位模块包括占位控制器和摄像头,上述占位模块用于检测上架至机柜的设备的占位信息,并向与机柜相连的控制系统发送占位信息,具体包括:占位模块,通过占位控制器检测上架至机柜的设备的占位信息,通过摄像头扫描设备的标识信息获取到设备的标识,并向与机柜相连的控制系统发送设备的标识和占位信息。通过该方案,控制系统可以获取每一台设备对应的占位信息,该方案,既可以通过控制系统快速地查找到需要查找的设备所在的位置,也可以对每一台设备的上架位置做系统化管理。In a possible implementation, the above-mentioned placeholder module includes a placeholder controller and a camera. The above placeholder module is used to detect the placeholder information of the equipment racked to the cabinet and send the placeholder information to the control system connected to the cabinet , Which specifically includes: a placeholder module, which detects the placeholder information of the equipment racked to the cabinet through the placeholder controller, scans the equipment's identification information through the camera to obtain the equipment's identity, and sends the equipment's identity and to the control system connected to the cabinet Placeholder information. Through this scheme, the control system can obtain the occupation information corresponding to each device. This scheme can not only quickly find the location of the equipment to be found through the control system, but also make a system for the shelf position of each equipment化管理。 Management.
在一种可能的实现方式中,上述机柜内部包括N个槽位,上述占位模块还包括N个占位指示灯,一个占位指示灯安装于一个槽位,一个占位指示灯用于指示该占位指示灯对应的槽位是否被占用,N为正整数。该方案中,以槽位为单位,将机柜内的空间划分为N个槽位,一个上架的设备占用一个或多个槽位,并且,被占用的槽位对应的指示灯可以指示该槽位已被占用,通过指示灯的方式,可以更快速的获取机柜内的槽位的占用情况,以便进行系统化的管理。In a possible implementation manner, the above cabinet includes N slots, and the above-mentioned occupancy module further includes N occupancy indicators, one occupancy indicator is installed in one slot, and one occupancy indicator is used to indicate Whether the slot corresponding to the place indicator is occupied, N is a positive integer. In this solution, the space in the cabinet is divided into N slots in units of slots. One shelf device occupies one or more slots, and the indicator corresponding to the occupied slot can indicate the slot. It has been occupied, and the status of the slot in the cabinet can be obtained more quickly through the indicator light for systematic management.
在一种可能的实现方式中,上述柜体内部还可以包括接电模块,接电模块用于向上架至机柜的设备提供电源,并且获取机柜的电源占用信息,然后向控制系统发送该电源占用信息,其中,电源占用信息用于指示上架至机柜的设备所使用的接电模块的电源接口及用电量。该方案中,机柜中的接电模块能检测到上架至机柜的设备的电源占用信息,将该电源占用信息发送到控制系统后,控制系统可以根据电源占用信息确定机柜内的电源接口和电量分配信息,从而可以更有效地对机柜内的电源接口和电量进行系统化的管理。In a possible implementation, the above cabinet may further include a power connection module, which is used to provide power to the equipment racked up to the cabinet, and obtain the power occupancy information of the cabinet, and then send the power occupancy to the control system Information, where the power occupancy information is used to indicate the power interface and power consumption of the power-on module used by the equipment racked to the cabinet. In this solution, the power connection module in the cabinet can detect the power occupancy information of the equipment racked to the cabinet, and after sending the power occupancy information to the control system, the control system can determine the power interface and power distribution in the cabinet according to the power occupancy information Information, so that the power interface and power in the cabinet can be more effectively managed systematically.
在一种可能的实现方式中,上述柜体内部还包括网络端口模块,网络端口模块用于向上架至机柜的设备提供网络,并且获取设备的网络状态信息,然后向控制系统发送所述网络状态信息。该方案中,机柜中的网络端口模块能检测到上架至机柜的设备的网络状态信息,将该网络状态信息发送到控制系统后,控制系统可以根据网络状态信息确定机柜内的设备的网络使用状况, 从而可以更有效地对机柜内的设备的网络进行系统化的管理。In a possible implementation manner, the above cabinet further includes a network port module, the network port module is used to provide a network to the equipment racked to the cabinet, and obtain network status information of the equipment, and then send the network status to the control system information. In this solution, the network port module in the cabinet can detect the network status information of the equipment racked to the cabinet, and after sending the network status information to the control system, the control system can determine the network usage status of the equipment in the cabinet based on the network status information In this way, the network of equipment in the cabinet can be managed more effectively.
在一种可能的实现方式中,上述网络端口包括切换开关,该切换开关用于将网络端口模块连接至第一网络交换机或第二网络交换机。其中,第一网络交换机和第二网络交换机为不同的网络交换机,在一个时刻,网络端口模块连接在一个网络交换机上。该方案通过切换开关,实现了网络端口模块在第一网络交换机和第二网络交换机之间的切换连接,当一个网络交换机出现网络故障时,可以迅速切换至另一个网络交换机,以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation, the network port includes a switch, and the switch is used to connect the network port module to the first network switch or the second network switch. Wherein, the first network switch and the second network switch are different network switches, and at a moment, the network port module is connected to one network switch. This solution realizes the switch connection between the network port module between the first network switch and the second network switch through a switch. When a network switch fails, it can be quickly switched to another network switch to quickly solve the cabinet The problem of network connection failure within the device.
在一种可能的实现方式中,上述机柜外侧包括机柜指示灯,机柜指示灯用于指示上架至该机柜的设备出现故障。和/或,机柜指示灯用于指示上架至该机柜的设备的故障已经修复。和/或,机柜指示灯用于指示查找的设备存在于该机柜。该方案通过在机柜外侧设置机柜指示灯,通过机柜指示灯可以快速地获取到上架至该机柜内的设备的一些信息。In a possible implementation manner, the outside of the cabinet includes a cabinet indicator light, and the cabinet indicator light is used to indicate that a device racked to the cabinet has a failure. And/or, the indicator light of the cabinet is used to indicate that the failure of the equipment racked to the cabinet has been repaired. And/or, the indicator light of the cabinet is used to indicate that the searched device exists in the cabinet. In this solution, by setting cabinet indicator lights on the outside of the cabinet, the cabinet indicator lights can quickly obtain some information about the equipment racked into the cabinet.
在一种可能的实现方式中,上述机柜外侧还可以包括机柜标识信息,机柜标识信息用于指示上架至该机柜的设备的信息。该机柜标识信息可以为二维码,通过扫描该二维码,可以获取到该机柜内的设备的信息。通过该方案,可以通过机柜外侧的机柜标识信息来快速地获取上架至该机柜内的设备的详细信息。In a possible implementation manner, the outside of the cabinet may further include cabinet identification information, and the cabinet identification information is used to indicate information of equipment racked to the cabinet. The cabinet identification information may be a two-dimensional code. By scanning the two-dimensional code, the information of the equipment in the cabinet can be obtained. With this solution, the detailed information of the equipment racked into the cabinet can be quickly obtained through the cabinet identification information outside the cabinet.
第二方面,本申请提供一个机柜系统,该机柜系统包括控制系统和上述第一方面任一实施例中的机柜。其中,控制系统用于接收并呈现机柜发送的信息。In a second aspect, the present application provides a cabinet system including a control system and the cabinet in any embodiment of the first aspect described above. Among them, the control system is used to receive and present the information sent by the cabinet.
在一种可能的实现方式中,机柜发送的信息可以为占位信息,和/或,电源占用信息,和/或,网络状态信息。In a possible implementation manner, the information sent by the cabinet may be occupancy information, and/or, power occupancy information, and/or, network status information.
上述方案通过控制系统接收并呈现机柜发送的信息,可以从控制系统中快速地获取到每一台机柜内的设备的信息,以便更高效地实现对机柜内的设备进行系统化的管理。The above solution receives and presents the information sent by the cabinet through the control system, and can quickly obtain the information of the equipment in each cabinet from the control system, so as to more efficiently realize the systematic management of the equipment in the cabinet.
第三方面,本申请提供一种占位监控方法,该方法包括:在检测到机柜 的M个占位开关的状态发生改变时,生成占位信息。其中,机柜内包括N个槽位,一个槽位内安装有一个占位开关,一个占位开关的状态用于指示该占位开关对应的槽位内是否安装有设备,占位信息用于指示上架至机柜的设备占据机柜的位置信息,N为正整数,M为不大于N的正整数。然后,向与机柜相连的控制系统发送占位信息。该方案中,设备上架到机柜时,根据设备占用的机柜空间位置,会相应的改变占位开关的状态,并生成占位信息,然后向控制系统发送占位信息,控制系统可以根据占位信息确定机柜内的占位空间的分配情况,从而可以更有效地对机柜内的占位空间进行系统化的管理。In a third aspect, the present application provides a placeholder monitoring method, which includes generating placeholder information when it is detected that the status of the M placeholder switches of the cabinet has changed. Among them, the cabinet includes N slots, one slot is installed with a placeholder switch, the status of a placeholder switch is used to indicate whether a device is installed in the slot corresponding to the placeholder switch, and the placeholder information is used to indicate The equipment racked up to the cabinet occupies the position information of the cabinet, N is a positive integer, and M is a positive integer not greater than N. Then, send the occupancy information to the control system connected to the cabinet. In this solution, when a device is racked into a cabinet, the status of the occupancy switch will be changed accordingly according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
在一种可能的实现方式中,上述方法还可以包括:通过机柜上的移动的摄像头扫描上架至机柜的设备的标识信息获取到设备的标识。该摄像头安装在机柜内部,摄像头在机柜内运动以对上架至机柜内部不同位置的设备的标识信息进行扫描。上述向与机柜相连的控制系统发送占位信息,包括:向与机柜相连的控制系统发送设备的标识和占位信息。该方案获取了设备的标识和该设备对应的占位信息,然后一起发送至控制系统,因此,控制信息可以获取每一台设备对应的占位信息,从而可以通过控制系统快速地查找到需要查找的设备所在的位置,也可以对每一台设备的上架位置做系统化管理。In a possible implementation manner, the above method may further include: scanning the identification information of the device racked to the cabinet through a moving camera on the cabinet to obtain the device identification. The camera is installed inside the cabinet, and the camera moves in the cabinet to scan the identification information of the equipment racked to different positions inside the cabinet. The above-mentioned sending the occupation information to the control system connected to the cabinet includes: sending the device identification and the occupation information to the control system connected to the cabinet. This solution obtains the device ID and the corresponding occupation information of the device, and then sends it to the control system together. Therefore, the control information can obtain the occupation information corresponding to each device, so that the control system can quickly find the need to find The location of the equipment can also be systematically managed for the location of each equipment.
在一种可能的实现方式中,上述占位信息包括设备占用的机柜的槽位的信息,即设备占用的机柜的槽位的个数及位置。通过获取每一个设备在机柜中占用的槽位个数及位置,可以更高效地对机柜内的占位空间进行系统化管理。In a possible implementation manner, the above-mentioned occupation information includes information about the slots of the cabinet occupied by the device, that is, the number and positions of the slots of the cabinet occupied by the device. By obtaining the number and position of the slots occupied by each device in the cabinet, the space occupied in the cabinet can be systematically managed more efficiently.
在一种可能的实现方式中,上述检测到机柜的M个占位开关的状态发生改变,包括:当机柜的设备下架时,检测到机柜的M个占位开关的状态发生改变。或者,当机柜的设备上架时,检测到机柜的M个占位开关的状态发生改变。该方案中,在机柜内的设备上架或者下架时,其占位开关的状态会发生改变,用于指示该占位开关对应的槽位的占用状态发生改变。In a possible implementation manner, the above-mentioned detection of the status change of the M placeholder switches of the cabinet includes: when the equipment of the cabinet is removed from the rack, the state change of the M placeholder switches of the cabinet is detected. Or, when the equipment of the cabinet is put on the shelf, it is detected that the status of the M occupancy switches of the cabinet changes. In this solution, when the equipment in the cabinet is put on or off the shelf, the status of the occupancy switch will change, which is used to indicate that the occupancy status of the slot corresponding to the occupancy switch has changed.
第四方面,本申请提供一种占位监控装置,该装置包括:占位检测单元和占位信息发送单元。占位检测单元,用于在检测到机柜的M个占位开关的 状态发生改变时,生成占位信息。其中,机柜内部包括N个槽位,一个槽位内安装有一个占位开关,一个占位开关的状态用于指示该占位开关对应的槽位内是否安装有设备,占位信息用于指示上架至机柜的设备占据机柜的位置信息,N为正整数,M为不大于N的正整数。占位信息发送单元,用于向与机柜相连的控制系统发送占位信息。该方案中,设备上架到机柜时,根据设备占用的机柜空间位置,会相应的改变占位开关的状态,并生成占位信息,然后向控制系统发送占位信息,控制系统可以根据占位信息确定机柜内的占位空间的分配情况,从而可以更有效地对机柜内的占位空间进行系统化的管理。In a fourth aspect, the present application provides a placeholder monitoring device, which includes a placeholder detection unit and a placeholder information sending unit. The occupancy detection unit is used to generate occupancy information when it detects that the status of the M occupancy switches of the cabinet has changed. Among them, the cabinet includes N slots, a slot switch is installed in a slot, the status of a place switch is used to indicate whether a device is installed in the slot corresponding to the place switch, and the place information is used to indicate The equipment racked up to the cabinet occupies the position information of the cabinet, N is a positive integer, and M is a positive integer not greater than N. The placeholder information sending unit is used to send placeholder information to the control system connected to the cabinet. In this solution, when a device is racked into a cabinet, the status of the occupancy switch will be changed accordingly according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
在一种可能的实现方式中,上述占位监控装置还可以包括设备标识获取单元,用于控制机柜上的可移动的摄像头,并通过摄像头扫描上架至机柜的设备的标识信息以获取设备的标识。该摄像头安装在机柜内部,摄像头在机柜内运动以对上架至机柜内部不同位置的设备的标识信息进行扫描。上述占位信息发送单元,具体用于向与机柜相连的控制系统发送设备的标识和占位信息。该方案获取了设备的标识和该设备对应的占位信息,然后一起发送至控制系统,因此,控制信息可以获取每一台设备对应的占位信息,从而可以通过控制系统快速地查找到需要查找的设备所在的位置,也可以对每一台设备的上架位置做系统化管理。In a possible implementation, the above-mentioned occupation monitoring device may further include a device identification acquisition unit for controlling a movable camera on the cabinet, and scanning the identification information of the device racked to the cabinet through the camera to obtain the device identification . The camera is installed inside the cabinet, and the camera moves in the cabinet to scan the identification information of the equipment racked to different positions inside the cabinet. The above-mentioned placeholder information sending unit is specifically used to send the device identification and placeholder information to the control system connected to the cabinet. This solution obtains the device ID and the corresponding occupation information of the device, and then sends it to the control system together. Therefore, the control information can obtain the occupation information corresponding to each device, so that the control system can quickly find the need to find The location of the equipment can also be systematically managed for the location of each equipment.
在一种可能的实现方式中,上述占位信息包括设备占用的机柜的槽位的信息,即设备占用的机柜的槽位的个数及位置。通过获取每一个设备在机柜中占用的槽位个数及位置,可以更高效地对机柜内的占位空间进行系统化管理。In a possible implementation manner, the above-mentioned occupation information includes information about the slots of the cabinet occupied by the device, that is, the number and positions of the slots of the cabinet occupied by the device. By obtaining the number and position of the slots occupied by each device in the cabinet, the space occupied in the cabinet can be systematically managed more efficiently.
在一种可能的实现方式中,上述检测到机柜的M个占位开关的状态发生改变,包括:当机柜的设备下架时,检测到机柜的M个占位开关的状态发生改变。或者,当机柜的设备上架时,检测到机柜的M个占位开关的状态发生改变。该方案中,在机柜内的设备上架或者下架时,其占位开关的状态会发生改变,用于指示该占位开关对应的槽位的占用状态发生改变。In a possible implementation manner, the above-mentioned detection of the status change of the M placeholder switches of the cabinet includes: when the equipment of the cabinet is removed from the rack, the state change of the M placeholder switches of the cabinet is detected. Or, when the equipment of the cabinet is put on the shelf, it is detected that the status of the M occupancy switches of the cabinet changes. In this solution, when the equipment in the cabinet is put on or off the shelf, the status of the occupancy switch will change, which is used to indicate that the occupancy status of the slot corresponding to the occupancy switch has changed.
第五方面,本申请提供一种网络切换方法,该方法包括:接收控制系统发送的网络切换命令,然后根据网络切换命令,控制机柜内的切换开关切换连接的网络交换机。该方案通过网络切换命令,切换连接的网络交换机,当一个网络交换机出现网络故障时,可以迅速切换至另一个网络交换机,以快速地解决机柜内的设备的网络连接故障问题。According to a fifth aspect, the present application provides a network switching method. The method includes: receiving a network switching command sent by a control system, and then, according to the network switching command, controlling a switch in the cabinet to switch the connected network switch. This solution uses network switching commands to switch the connected network switches. When a network switch fails, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
在一种可能的实现方式中,上述网络交换机包括第一网络交换机和第二网络交换机,其中,第一网络交换机为切换前使用的网络交换机。上述根据网络切换命令,控制机柜内的切换开关切换连接的网络交换机,具体可以包括:根据网络切换命令,控制切换开关从与第一网络交换机相连切换至与第二网络交换机相连。该方案通过使用两个网络交换机,在当前连接的第一网络交换机出现网络故障时,可以通过网络切换命令控制切换开关迅速切换至没有网络故障的第二网络交换机,以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation manner, the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching. The above-mentioned switching of the connected network switch by controlling the switch in the cabinet according to the network switching command may specifically include: controlling the switch to switch from being connected to the first network switch to being connected to the second network switch according to the network switching command. This solution uses two network switches. When a network failure occurs in the currently connected first network switch, the switch can be quickly switched to the second network switch without network failure through the network switch command to quickly solve the equipment in the cabinet. Network connection problem.
在一种可能的实现方式中,上述网络切换命令是控制系统根据机柜的网络状态信息确定当前使用的网络交换机出现网络故障时生成的。该方案中,控制系统获取机柜的网络状态信息,在根据机柜的网络状态信息确定该机柜当前使用的网络交换机出现网络故障时,生成网络切换命令,以使机柜切换连接的网络交换机,从而可以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation, the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet. In this solution, the control system obtains the network status information of the cabinet, and when it is determined that the network switch currently used by the cabinet has a network failure according to the network status information of the cabinet, a network switching command is generated so that the cabinet switches the connected network switch, which can quickly To solve the problem of network connection failure of equipment in the cabinet.
在一种可能的实现方式中,上述接收控制系统发送的网络切换命令之前,还包括:向控制系统上报机柜的网络状态信息。通过该方案,可以使控制系统根据网络状态信息确定需要生成网络切换命令的时机,在需要切换网络交换机时,及时地生成网络切换命令,以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation manner, before receiving the network switching command sent by the control system, the method further includes: reporting the network status information of the cabinet to the control system. With this solution, the control system can determine the timing of the need to generate a network switching command based on the network status information. When the network switch needs to be switched, the network switching command can be generated in time to quickly solve the problem of network connection failure of the equipment in the cabinet.
在一种可能的实现方式中,上述根据网络切换命令,控制机柜内的切换开关切换连接的网络交换机之后,还包括:控制点亮机柜指示灯,该机柜指示灯用于指示上架至机柜的设备的故障已经修复。通过该方案,可以方便快捷的实现机柜的反馈,以确定机柜的网络故障问题已经通过切换网络交换机 的方式解决。In a possible implementation manner, after controlling the switch in the cabinet to switch the connected network switch according to the network switching command, the method further includes: controlling the lighting of the cabinet indicator, which is used to indicate the equipment racked to the cabinet Has been repaired. Through this solution, the feedback of the cabinet can be conveniently and quickly realized to confirm that the network fault of the cabinet has been solved by switching the network switch.
第六方面,本申请提供一种网络切换装置,该装置包括接收单元和切换单元。其中,接收单元用于接收控制系统发送的网络切换命令。切换单元,用于根据网络切换命令,控制机柜内的切换开关切换连接的网络交换机。该方案通过网络切换命令,切换连接的网络交换机,当一个网络交换机出现网络故障时,可以迅速切换至另一个网络交换机,以快速地解决机柜内的设备的网络连接故障问题。In a sixth aspect, the present application provides a network switching device, which includes a receiving unit and a switching unit. The receiving unit is used to receive the network switching command sent by the control system. The switching unit is used to control the switch in the cabinet to switch the connected network switch according to the network switching command. This solution uses network switching commands to switch the connected network switches. When a network switch fails, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
在一种可能的实现方式中,上述网络交换机包括第一网络交换机和第二网络交换机,其中,第一网络交换机为切换前使用的网络交换机。上述切换单元,具体用于根据网络切换命令,控制切换开关从与第一网络交换机相连切换至与第二网络交换机相连。该方案通过使用两个网络交换机,在当前连接的第一网络交换机出现网络故障时,可以通过网络切换命令控制切换开关迅速切换至没有网络故障的第二网络交换机,以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation manner, the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching. The above-mentioned switching unit is specifically used to control the switching switch from connecting to the first network switch to connecting to the second network switch according to the network switching command. This solution uses two network switches. When a network failure occurs in the currently connected first network switch, the switch can be quickly switched to the second network switch without network failure through the network switch command to quickly solve the equipment in the cabinet. Network connection problem.
在一种可能的实现方式中,上述网络切换命令是控制系统根据机柜的网络状态信息确定当前使用的网络交换机出现网络故障时生成的。该方案中,控制系统获取机柜的网络状态信息,在根据机柜的网络状态信息确定该机柜当前使用的网络交换机出现网络故障时,生成网络切换命令,以使机柜切换连接的网络交换机,从而可以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation, the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet. In this solution, the control system obtains the network status information of the cabinet, and when it is determined that the network switch currently used by the cabinet has a network failure according to the network status information of the cabinet, a network switching command is generated so that the cabinet switches the connected network switch, which can quickly To solve the problem of network connection failure of equipment in the cabinet.
在一种可能的实现方式中,上述装置还可以包括网络状态信息发送单元,用于向控制系统上报机柜的网络状态信息。通过该方案,可以使控制系统根据网络状态信息确定需要生成网络切换命令的时机,在需要切换网络交换机时,及时地生成网络切换命令,以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation manner, the above device may further include a network state information sending unit, which is used to report the network state information of the cabinet to the control system. With this solution, the control system can determine the timing of the need to generate a network switching command based on the network status information. When the network switch needs to be switched, the network switching command can be generated in time to quickly solve the problem of network connection failure of the equipment in the cabinet.
在一种可能的实现方式中,上述装置还可以包括指示灯控制单元,用于控制点亮机柜指示灯,该机柜指示灯用于指示上架至机柜的设备的故障已经修复。通过该方案,可以方便快捷的实现机柜的反馈,以确定机柜的网络故 障问题已经通过切换网络交换机的方式解决。In a possible implementation manner, the above-mentioned device may further include an indicator light control unit for controlling the lighting of the cabinet indicator light, and the cabinet indicator light is used to indicate that the failure of the equipment racked to the cabinet has been repaired. Through this solution, the feedback of the cabinet can be conveniently and quickly realized to confirm that the network failure of the cabinet has been solved by switching the network switch.
第七方面,本发明实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使所述计算机执行第一方面或第五方面所述的方法。According to a seventh aspect, an embodiment of the present invention provides a computer-readable storage medium that stores computer-executable instructions that are used to cause the computer to perform the first aspect or the fifth aspect Aspect of the method.
第八方面,本发明实施例提供一种计算机设备,包括:存储器,用于存储程序指令;处理器,用于调用所述存储器中存储的程序指令,按照获得的程序执行上述第一方面或第五方面所述的方法。According to an eighth aspect, an embodiment of the present invention provides a computer device, including: a memory for storing program instructions; a processor for invoking program instructions stored in the memory, and performing the first aspect or the above according to the obtained program The method described in five aspects.
第九方面,本发明实施例提供了一种占位监控设备,包括:In a ninth aspect, an embodiment of the present invention provides a occupancy monitoring device, including:
至少一个处理器;以及,At least one processor; and,
与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected to the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述第一方面或第五方面所述的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the first aspect or the fifth aspect method.
附图说明BRIEF DESCRIPTION
图1为一种现有的机柜示意图;Figure 1 is a schematic diagram of an existing cabinet;
图2为本申请提供的一种机柜系统架构示意图;2 is a schematic diagram of a cabinet system architecture provided by this application;
图3为本申请提供的一种机柜示意图;Figure 3 is a schematic diagram of a cabinet provided by this application;
图4为本申请提供的一种占位模块结构示意图;4 is a schematic structural diagram of a placeholder module provided by this application;
图5为本申请提供的一种接电模块结构示意图;5 is a schematic structural diagram of a power receiving module provided by this application;
图6为本申请提供的一种占位监控方法流程示意图;FIG. 6 is a schematic flow chart of a method for occupancy monitoring provided by this application;
图7为本申请提供的一种网络切换方法流程示意图;7 is a schematic flowchart of a network switching method provided by this application;
图8为本申请提供的一种占位监控装置示意图;8 is a schematic diagram of a occupancy monitoring device provided by the application;
图9为本申请提供的一种网络切换装置示意图;9 is a schematic diagram of a network switching device provided by this application;
图10为本申请提供的一种占位监控设备结构示意图。10 is a schematic structural diagram of a occupancy monitoring device provided by the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述。方法实施例中的具体操作方法也可以应用于装置实施例或系统实施例中。其中,在本申请的描述中,除非另有说明,“多个”的含义是两个或两个以上。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be described in further detail below with reference to the accompanying drawings. The specific operation method in the method embodiment may also be applied to the device embodiment or the system embodiment. In the description of the present application, unless otherwise stated, the meaning of "plurality" is two or more.
首先,对现有技术中的机柜作详细说明,以图1所示的一种现有的机柜为例,该机柜具有抗振动、抗冲击、耐腐蚀、防辐射等性能。而对于该机柜的内部硬件设置,该机柜包括有接电模块和网络端口模块,接电模块安装在机柜内部的一个侧面上,通常为一排接电插口,用于向机柜内的设备提供电源。网络端口模块安装在机柜内的顶面上或者底面上,通常为一排网络插口,用于向机柜内的设备提供网络。First, the cabinet in the prior art will be described in detail. Taking an existing cabinet shown in FIG. 1 as an example, the cabinet has the properties of anti-vibration, anti-impact, anti-corrosion, anti-radiation and the like. For the internal hardware settings of the cabinet, the cabinet includes an electrical connection module and a network port module. The electrical connection module is installed on a side inside the cabinet, usually a row of electrical sockets, used to provide power to the equipment in the cabinet . The network port module is installed on the top or bottom of the cabinet, usually a row of network sockets, used to provide network to the equipment in the cabinet.
这类传统机柜,在使用中,可能会存在以下问题:Such traditional cabinets may have the following problems in use:
问题1,无法清楚的获取机柜内部的空间占用情况,难以对机柜内的空间进行系统化的管理。Problem 1, the space occupation inside the cabinet cannot be obtained clearly, and it is difficult to systematically manage the space inside the cabinet.
问题2,机柜内的设备电源线较乱,难以管理。Problem 2: The power cables of the equipment in the cabinet are chaotic and difficult to manage.
问题3,无法得知机柜内部的设备的具体信息。Question 3, I cannot get the specific information of the equipment inside the cabinet.
问题4,当机柜出现网络故障问题时,无法及时修复。Question 4. When the cabinet has a network failure, it cannot be repaired in time.
针对上述问题,本申请提供一种机柜系统,如图2所示,为本申请提供的一种机柜系统。该机柜系统包括控制系统和机柜,该控制系统可以为一台电脑或者其他控制设备。控制系统用于接收并呈现机柜发送的信息,机柜发送的信息用于指示机柜内的设备的信息,调试人员可以通过控制系统来实现对机柜内的设备进行系统化管理。In response to the above problems, this application provides a cabinet system, as shown in FIG. 2, which is a cabinet system provided by this application. The cabinet system includes a control system and a cabinet. The control system may be a computer or other control equipment. The control system is used to receive and present the information sent by the cabinet. The information sent by the cabinet is used to indicate the information of the equipment in the cabinet. The debugger can realize the systematic management of the equipment in the cabinet through the control system.
在一种可能的实现方式中,机柜发送的信息可以为设备的占位信息,和/或,电源占用信息,和/或,网络状态信息。占位信息用于指示机柜内的设备在该机柜内占据的位置信息。电源占用信息用于指示上架至机柜的设备所使用的接电模块的电源接口及用电量。网络状态信息用于指示机柜当前是否存在网络故障问题。In a possible implementation manner, the information sent by the cabinet may be occupancy information of the device, and/or, power occupancy information, and/or, network status information. The occupation information is used to indicate the position information occupied by the equipment in the cabinet in the cabinet. The power occupancy information is used to indicate the power interface and power consumption of the power receiving module used by the equipment racked to the cabinet. The network status information is used to indicate whether the cabinet currently has a network fault.
通过上述机柜系统,控制系统接收机柜发送的信息,并将这些信息呈现 后,可以使得调试人员根据控制系统呈现的信息,更高效地完成对机柜内的设备进行系统化管理。并且,可以获取到机柜内部的设备的具体信息。解决了上述问题1、问题2、问题3。Through the above cabinet system, the control system receives the information sent by the cabinet and presents the information, so that the debugger can more efficiently complete the systematic management of the equipment in the cabinet according to the information presented by the control system. And, you can get the specific information of the equipment inside the cabinet. Solved the above problem 1, problem 2, problem 3.
下面对于上述机柜系统内的机柜做具体说明,如图3所示,为本申请提供的一种机柜,该机柜包括柜体、安装于柜体内部的占位模块100。占位模块100用于检测上架至机柜的设备的占位信息,并向与机柜相连的控制系统发送占位信息。该方案中,机柜中的占位模块能检测到上架至机柜的设备的占位信息,将该占位信息发送到控制系统后,控制系统可以根据占位信息确定机柜内的占位空间的分配情况,从而可以更有效地对机柜内的占位空间进行系统化的管理。The following specifically describes the cabinets in the above cabinet system. As shown in FIG. 3, this is a cabinet provided by the present application. The cabinet includes a cabinet body and a placeholder module 100 installed inside the cabinet body. The occupancy module 100 is used to detect the occupancy information of the equipment racked to the cabinet and send the occupancy information to the control system connected to the cabinet. In this solution, the occupancy module in the cabinet can detect the occupancy information of the equipment racked to the cabinet, and after sending the occupancy information to the control system, the control system can determine the allocation of the occupancy space in the cabinet according to the occupancy information Situation, so that the system can effectively manage the space occupied by the cabinet.
在一种可能的实现方式中,上述占位模块100安装在机柜内部的一个侧面,占位模块包括占位控制器和摄像头,如图4所示,为本申请提供的一种占位模块示意图,包括占位控制器101和摄像头102。占位控制器101为条形,竖直安装在机柜内,占位模块100通过占位控制器101检测上架至机柜的设备的占位信息。摄像头102安装在竖直导轨上,可以上下移动,用于扫描设备的标识信息获取设备的标识。上述占位模块100具体用于:通过占位控制器101检测上架至机柜的设备的占位信息,通过摄像头102扫描设备的标识信息获取到设备的标识,并向与机柜相连的控制系统发送设备的标识和占位信息。In a possible implementation manner, the above-mentioned placeholder module 100 is installed on one side inside the cabinet, and the placeholder module includes a placeholder controller and a camera, as shown in FIG. 4, which is a schematic diagram of a placeholder module provided by the present application , Including occupancy controller 101 and camera 102. The occupancy controller 101 has a bar shape and is vertically installed in the cabinet. The occupancy module 100 detects the occupancy information of the equipment racked to the cabinet through the occupancy controller 101. The camera 102 is installed on a vertical rail and can move up and down, and is used to scan the identification information of the device to obtain the device identification. The above occupancy module 100 is specifically used to detect the occupancy information of the device racked to the cabinet through the occupancy controller 101, scan the identification information of the device through the camera 102 to obtain the identification of the device, and send the device to the control system connected to the cabinet Logo and placeholder information.
在一种可能的实现方式中,上述机柜内部包括N个槽位,一个槽位指的是机柜内部的一个单位的空间大小,一个单位的空间大小的具体占用体积可根据实际需要进行设定,本申请不做限制。上述占位模块100还包括N个占位指示灯,一个占位指示灯安装于一个槽位,一个占位指示灯用于指示该占位指示灯对应的槽位是否被占用,N为正整数。In a possible implementation manner, the above cabinet includes N slots, one slot refers to the space size of a unit inside the cabinet, and the specific occupied volume of a unit space size can be set according to actual needs, There are no restrictions on this application. The above occupancy module 100 further includes N occupancy indicators, one occupancy indicator is installed in one slot, one occupancy indicator is used to indicate whether the slot corresponding to the occupancy indicator is occupied, and N is a positive integer .
通过上述占位模块100,可以获取得到机柜内部的设备的占位信息,根据机柜内部的设备的占位信息,可以得知机柜内部的占位空间,进而对机柜内的空间进行系统化的管理。Through the above occupancy module 100, the occupancy information of the equipment inside the cabinet can be obtained, and according to the occupancy information of the equipment inside the cabinet, the occupancy space inside the cabinet can be known, and then the space in the cabinet can be systematically managed .
在一种可能的实现方式中,上述图3所示的机柜还可以包括接电模块200,用于向上架至机柜的设备提供电源,并且获取机柜的电源占用信息,然后向控制系统发送该电源占用信息,其中,电源占用信息用于指示上架至机柜的设备所使用的接电模块的电源接口及用电量。举例来说,接电模块200例如可以为一种智能插座,当上架至机柜的设备接入该智能插座时,插座可以为设备提供电源,并且可以生成该设备的用电量信息,发送至控制系统,同时,该智能插座还可以检测得到每一台设备占用了该智能插座的哪一个电源接口,并将检测得到的关于设备的电源接口的信息发送至控制系统。In a possible implementation, the cabinet shown in FIG. 3 may further include a power connection module 200, which is used to provide power to the equipment racked to the cabinet, and obtain power occupancy information of the cabinet, and then send the power to the control system Occupancy information, where the power supply occupancy information is used to indicate the power interface and power consumption of the power receiving module used by the equipment racked to the cabinet. For example, the power receiving module 200 may be, for example, a smart socket. When a device racked into a cabinet is connected to the smart socket, the socket may provide power to the device, and may generate power consumption information of the device and send it to the control At the same time, the smart socket can also detect which power interface of the smart socket is occupied by each device, and send the detected information about the power interface of the device to the control system.
在一种可能的实现方式中,上述接电模块200可以为两个独立插座,如图5所示,当一台设备上架至机柜时,同时接入第一插座201和第二插座202。其中,第一插座201为主用插座,为设备提供电源,第二插座202备用插座,在通常情况下,不为设备提供电源,当第一插座201出现故障时,启用第二插座202为设备提供电源。In a possible implementation manner, the power receiving module 200 may be two independent sockets. As shown in FIG. 5, when a piece of equipment is racked into the cabinet, the first socket 201 and the second socket 202 are simultaneously connected. Among them, the first socket 201 is the main socket, which provides power for the device, and the second socket 202 is the spare socket. Under normal circumstances, the device does not provide power. When the first socket 201 fails, the second socket 202 is enabled as the device Provide power.
通过上述接电模块200,可以获取到机柜内的每一台设备接入的电源接口位置,即可得知每一根电源线对应的设备以及接入的电源接口的位置,进而可以对机柜内的设备的电源线进行管理,解决了电源线过乱难以管理的问题。Through the above power connection module 200, the position of the power interface connected to each device in the cabinet can be obtained, that is, the device corresponding to each power cord and the position of the power interface connected can be obtained, and then the cabinet can be The power cord of the device is managed, which solves the problem that the power cord is too chaotic and difficult to manage.
在一种可能的实现方式中,上述图3所示的机柜还可以包括网络端口模块300,用于向上架至机柜的设备提供网络,并且获取设备的网络状态信息,然后向控制系统发送所述网络状态信息。一台设备网络状态信息可以反映该设备的网络使用状况,比如,设备是否存在网络故障、设备的网速、设备的流量总量等。根据网络状态信息,可以确定设备是否还处于工作,比如,若设备在一段时间内的流量总量小于预设流量阈值,则确定该设备不处于工作,或者可以称为该设备不被需要,对于这样的设备,可以选择将其下架,以节省机柜内的空间,进而上架其他设备。In a possible implementation manner, the cabinet shown in FIG. 3 may further include a network port module 300, which is used to provide a network to the equipment racked up to the cabinet, obtain network status information of the equipment, and then send the control system Network status information. The network status information of a device can reflect the network usage status of the device, for example, whether the device has a network failure, the network speed of the device, and the total amount of traffic of the device. According to the network status information, it can be determined whether the device is still working. For example, if the total amount of traffic of the device in a period of time is less than the preset flow threshold, it is determined that the device is not working, or it can be said that the device is not needed. You can choose to remove such equipment to save space in the cabinet, and then add other equipment.
在一种可能的实现方式中,上述网络端口模块300可以包括切换开关,上述网络端口模块300可以通过切换开关连接至第一网络交换机或第二网络交换机。其中,第一网络交换机和第二网络交换机为不同的网络交换机,在 一个时刻,网络端口模块连接在一个网络交换机上。网络端口模块300连接上网络交换机后可以为连接在网络端口模块300上的设备提供网络。切换开关可以在第一网络交换机和第二网络交换机之间进行连接切换,且会在当前连接的网络交换机出现网络故障时进行切换。该方案通过切换开关,实现了网络端口模块在第一网络交换机和第二网络交换机之间的切换连接,当一个网络交换机出现网络故障时,可以迅速切换至另一个网络交换机,以快速地解决机柜内的设备的网络连接故障问题。即该方案可以解决上述问题4。In a possible implementation manner, the network port module 300 may include a switch, and the network port module 300 may be connected to the first network switch or the second network switch through the switch. The first network switch and the second network switch are different network switches, and the network port module is connected to one network switch at a time. After the network port module 300 is connected to the network switch, it can provide a network for devices connected to the network port module 300. The switch can switch the connection between the first network switch and the second network switch, and will switch when a network failure of the currently connected network switch occurs. This solution realizes the switch connection between the network port module between the first network switch and the second network switch through a switch. When a network switch fails, it can be quickly switched to another network switch to quickly solve the cabinet The problem of network connection failure within the device. That is, this solution can solve the above problem 4.
在一种可能的实现方式中,上述机柜外侧包括机柜指示灯400,机柜指示灯例如可以设置在机柜外侧顶端(如图3所示的位置),或者可以设置在机柜外侧侧面,对于机柜指示灯的设置位置本申请不做限制,可根据实际需要进行调整。机柜指示灯用于指示上架至该机柜的设备出现故障。和/或,机柜指示灯用于指示上架至该机柜的设备的故障已经修复。和/或,机柜指示灯用于指示查找的设备存在于该机柜。举个例子,机柜指示灯例如可以为一盏可以变色的灯,通过不同的颜色,来指示不同的信息,也可以为多盏不同的灯,一盏灯负责指示相应的信息。In a possible implementation manner, the outside of the cabinet includes a cabinet indicator light 400. The cabinet indicator light may be provided at the top of the outside of the cabinet (as shown in FIG. 3, for example), or may be provided on the outside side of the cabinet. The application location is not limited in this application, and can be adjusted according to actual needs. The cabinet indicator light is used to indicate that the equipment racked up to the cabinet is faulty. And/or, the indicator light of the cabinet is used to indicate that the failure of the equipment racked to the cabinet has been repaired. And/or, the indicator light of the cabinet is used to indicate that the searched device exists in the cabinet. For example, the indicator light of the cabinet may be, for example, a light that can change color, indicating different information through different colors, or a plurality of different lights, and one light is responsible for indicating the corresponding information.
在一种可能的实现方式中,上述机柜外侧还可以包括机柜标识信息500(图3中以该机柜标识信息500为二维码为例),机柜标识信息用于指示上架至该机柜的设备的信息以及机柜的一些信息。In a possible implementation manner, the outside of the cabinet may further include cabinet identification information 500 (the cabinet identification information 500 in FIG. 3 is a two-dimensional code as an example), and the cabinet identification information is used to indicate the equipment racked to the cabinet. Information and some information of the cabinet.
举例来说,通过扫描二维码,可以从机柜连接的控制系统获取到该机柜内部的占位空间信息,电源接口信息,以及上架至该机柜内部的每一台设备的设备标识、设备用电量、设备网络使用信息、设备的位置等。For example, by scanning a two-dimensional code, you can obtain the space occupation information, power interface information, and the device identification and device power consumption of each device racked inside the cabinet from the control system connected to the cabinet Volume, device network usage information, device location, etc.
通过上述占位模块100,可以获取到机柜内的设备占位信息,确定机柜内的占位空间分配信息,进而解决上述问题1。通过上述接电模块200,确定了电源接口的分配信息,进而解决了上述问题2。通过上述网络端口模块300的切换开关,在第一网络交换机和第二网络交换机之间进行切换,可以迅速将网络端口模块300连接至没有网络故障的网络交换机,进而解决了上述问题4。同时,通过控制系统接收机柜发送的信息并呈现,通过控制系统或者机柜上 的机柜指示灯400和机柜标识信息500都可以快捷地获取到机柜内部的设备信息。即解决了上述问题3。Through the above-mentioned occupying module 100, the device occupying information in the cabinet can be acquired, and the occupying space allocation information in the cabinet can be determined, thereby solving the above problem 1. Through the power connection module 200, the distribution information of the power supply interface is determined, thereby solving the above problem 2. By using the switch of the network port module 300 to switch between the first network switch and the second network switch, the network port module 300 can be quickly connected to the network switch without network failure, thereby solving the above problem 4. At the same time, the information sent by the cabinet is received and presented through the control system, and the device information inside the cabinet can be quickly obtained through the cabinet indicator 400 and the cabinet identification information 500 on the control system or the cabinet. That solves the above problem 3.
下面结合图6,对上述提到的机柜中的占位模块100的功能,进行具体说明,即图6所示的占位监控方法可应用于上述机柜,具体的,可用于上述机柜的占位模块100。需要说明的是,该方法也可以用于其他机柜。该方法可以解决上述问题1,该方法包括:The function of the occupancy module 100 in the cabinet mentioned above will be specifically described below with reference to FIG. 6, that is, the occupancy monitoring method shown in FIG. 6 may be applied to the above cabinet, and specifically, may be used for the occupancy of the above cabinet Module 100. It should be noted that this method can also be used in other cabinets. This method can solve the above problem 1. The method includes:
步骤601,在检测到机柜的M个占位开关的状态发生改变时,生成占位信息。 Step 601, when it is detected that the status of the M placeholder switches of the cabinet changes, placeholder information is generated.
其中,机柜内包括N个槽位,一个槽位内安装有一个占位开关,一个占位开关的状态用于指示该占位开关对应的槽位内是否安装有设备,占位信息用于指示上架至机柜的设备占据机柜的位置信息,N为正整数,M为不大于N的正整数。Among them, the cabinet includes N slots, one slot is installed with a placeholder switch, the status of a placeholder switch is used to indicate whether a device is installed in the slot corresponding to the placeholder switch, and the placeholder information is used to indicate The equipment racked up to the cabinet occupies the position information of the cabinet, N is a positive integer, and M is a positive integer not greater than N.
步骤602,向与机柜相连的控制系统发送占位信息。Step 602: Send the occupancy information to the control system connected to the cabinet.
上述方案中,设备上架到机柜时,根据设备占用的机柜空间位置,会相应的改变占位开关的状态,并生成占位信息,然后向控制系统发送占位信息,控制系统可以根据占位信息确定机柜内的占位空间的分配情况,从而可以更有效地对机柜内的占位空间进行系统化的管理。In the above solution, when the device is racked into the cabinet, the state of the occupancy switch will be changed according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
针对上述步骤601,在一种可能的实现方式中,上述占位开关的状态是由设备通过物理接触改变的。通常来说,上架至机柜的设备的体积与机柜匹配,在上架至机柜或者从机柜下架时,会触碰占位开关,以使占位开关的状态改变。当然,机柜有时也需要上架一些体积相对较小的设备,这种设备无法通过物理接触改变占位开关的状态。此时,需要调试人员手动去改变占位开关的状态。For the above step 601, in a possible implementation manner, the state of the above-mentioned placeholder switch is changed by the device through physical contact. Generally speaking, the volume of the equipment rack-mounted to the cabinet matches that of the rack. When rack-mounted to the rack or removed from the rack, the placeholder switch is touched to change the state of the placeholder switch. Of course, the cabinet sometimes needs to put some relatively small equipment, such equipment can not change the status of the occupancy switch through physical contact. At this time, the debugger needs to manually change the status of the occupancy switch.
在一种可能的实现方式中,上述占位信息是根据改变状态的M个占位开关的位置和个数生成的。根据占位开关的个数生成的占位信息用于表示该设备占据的机柜内的槽位的个数,即占用了机柜的空间大小,也可以表示设备的大小。根据占位开关的位置生成的占位信息用于表示设备在该机柜内占据 的空间位置,即设备在机柜内的哪个位置。In a possible implementation manner, the above-mentioned occupation information is generated according to the position and number of M occupation switches that change state. The occupancy information generated according to the number of occupancy switches is used to indicate the number of slots in the cabinet occupied by the device, that is, the space occupied by the cabinet, or the size of the device. The occupancy information generated according to the position of the occupancy switch is used to indicate the space position occupied by the device in the cabinet, that is, where the device is in the cabinet.
在一种可能的实现方式中,上述方法还可以包括:通过机柜上的移动的摄像头扫描上架至机柜的设备的标识信息获取到设备的标识。该摄像头安装在机柜内部,摄像头在机柜内运动以对上架至机柜内部不同位置的设备的标识信息进行扫描。上述步骤602,具体可以包括:向与机柜相连的控制系统发送设备的标识和占位信息。在该实现方式中,设备的标识信息可以以二维码的形式贴于设备外表面,当然也可以贴在用于上架设备的导轨上面。二维码的位置根据摄像头的位置来确定。In a possible implementation manner, the above method may further include: scanning the identification information of the device racked to the cabinet through a moving camera on the cabinet to obtain the device identification. The camera is installed inside the cabinet, and the camera moves in the cabinet to scan the identification information of the equipment racked to different positions inside the cabinet. The above step 602 may specifically include: sending the device identification and occupation information to the control system connected to the cabinet. In this implementation manner, the identification information of the device may be affixed to the outer surface of the device in the form of a two-dimensional code, and of course, it may also be affixed to the guide rail for racking the device. The position of the two-dimensional code is determined according to the position of the camera.
上述设备上架至机柜前,需要在控制系统进行信息录入,控制信息根据录入的信息,生成该设备标识信息。比如,根据设备录入的信息,生成二维码,该二维码可以指示该设备的信息,将二维码贴在摄像头可以扫描到的位置,在摄像头扫描到该二维码之后,获取该设备的标识,设备的标识指示该设备。然后向与机柜相连的控制系统发送设备的标识和占位信息。该方案获取了设备的标识和该设备对应的占位信息,然后一起发送至控制系统,因此,控制信息可以获取每一台设备对应的占位信息,从而可以通过控制系统快速地查找到需要查找的设备所在的位置,也可以对每一台设备的上架位置做系统化管理。Before the above equipment is put on the cabinet, the information needs to be entered in the control system, and the control information generates the equipment identification information according to the entered information. For example, based on the information entered by the device, a two-dimensional code is generated. The two-dimensional code can indicate the information of the device. The two-dimensional code is pasted at a position that can be scanned by the camera. After the camera scans the two-dimensional code, the device is acquired. The device's logo indicates the device. Then send the device identification and occupation information to the control system connected to the cabinet. This solution obtains the device ID and the corresponding occupation information of the device, and then sends it to the control system together. Therefore, the control information can obtain the occupation information corresponding to each device, so that the control system can quickly find the need to find The location of the equipment can also be systematically managed for the location of each equipment.
上述占位监控方法,在设备上架到机柜时,根据设备占用的机柜空间位置,会相应的改变占位开关的状态,并生成占位信息,然后向控制系统发送占位信息,控制系统可以根据占位信息确定机柜内的占位空间的分配情况,从而可以更有效地对机柜内的占位空间进行系统化的管理。The above-mentioned occupation monitoring method, when the equipment is racked into the cabinet, according to the cabinet space occupied by the equipment, the status of the occupation switch will be changed accordingly, and the occupation information will be generated, and then the occupation information will be sent to the control system. The occupation information determines the allocation of the occupation space in the cabinet, so that the systematic management of the occupation space in the cabinet can be performed more effectively.
下面结合图7,对上述提到的机柜中的网络端口模块300的功能,进行具体说明,即图7所示的网络切换方法可应用于上述机柜,具体的,可用于上述机柜的网络端口模块300。需要说明的是,该方法也可以用于其他机柜。该方法可以解决上述问题4,该方法包括:The function of the network port module 300 in the above-mentioned cabinet will be specifically described below with reference to FIG. 7, that is, the network switching method shown in FIG. 7 may be applied to the above-mentioned cabinet, and specifically, may be used for the network port module of the above-mentioned cabinet 300. It should be noted that this method can also be used in other cabinets. This method can solve the above problem 4. The method includes:
步骤701,接收控制系统发送的网络切换命令。Step 701: Receive a network switching command sent by the control system.
步骤702,根据网络切换命令,控制机柜内的切换开关切换连接的网络交 换机。Step 702: Control the switch in the cabinet to switch the connected network switch according to the network switching command.
其中,网络交换机是为机柜提供网络的设备,当网络交换机出现网络故障时,与该网络交换机相连的机柜也会出现网络故障问题。Among them, the network switch is a device that provides a network for the cabinet. When a network failure occurs in the network switch, the cabinet connected to the network switch may also experience a network failure.
上述方案通过网络切换命令,切换连接的网络交换机,当一个网络交换机出现网络故障时,可以迅速切换至另一个网络交换机,以快速地解决机柜内的设备的网络连接故障问题。The above scheme switches the connected network switches through network switching commands. When a network switch fails, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
在一种可能的实现方式中,上述网络交换机包括第一网络交换机和第二网络交换机,其中,第一网络交换机为切换前使用的网络交换机。上述步骤702,具体可以包括:根据网络切换命令,控制切换开关从与第一网络交换机相连切换至与第二网络交换机相连。In a possible implementation manner, the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching. The above step 702 may specifically include: according to the network switching command, controlling the switching switch to switch from connecting to the first network switch to connecting to the second network switch.
具体来说,当机柜当前连接的第一网络交换机出现网络故障,即机柜出现网络故障问题时,会接收到控制系统发送的网络切换命令,此时根据网络切换命令,切换控制开关连接至第二网络交换机,以使机柜连接至第二网络交换机实现正常联网,解决了机柜出现的网络故障问题。然后再将机柜之前连接的第一网络交换机进行更换维修。以便在当前机柜连接的第二网络交换机出现网络故障时用于修复网络。Specifically, when the first network switch currently connected to the cabinet has a network failure, that is, the cabinet has a network failure problem, it will receive a network switching command sent by the control system. At this time, according to the network switching command, the switching control switch is connected to the second Network switch to connect the cabinet to the second network switch to achieve normal networking, and solve the problem of network failure in the cabinet. Then, replace and repair the first network switch connected to the cabinet. In order to repair the network when a network failure occurs in the second network switch connected to the current cabinet.
在一种可能的实现方式中,上述网络切换命令是控制系统根据机柜的网络状态信息确定当前使用的网络交换机出现网络故障时生成的。机柜实时检测自身的网络状态信息,并发送至控制系统,控制系统根据机柜的网络状态信息判断机柜是否存在网络故障,在确定机柜存在网络故障后,生成网络切换命令并发送。该方案中,控制系统获取机柜的网络状态信息,在根据机柜的网络状态信息确定该机柜当前使用的网络交换机出现网络故障时,生成网络切换命令,以使机柜切换连接的网络交换机,从而可以快速地解决机柜内的设备的网络连接故障问题。In a possible implementation, the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet. The cabinet detects its own network status information in real time and sends it to the control system. The control system determines whether the cabinet has a network failure according to the network status information of the cabinet. After determining that the cabinet has a network failure, it generates a network switching command and sends it. In this solution, the control system obtains the network status information of the cabinet, and when it is determined that the network switch currently used by the cabinet has a network failure based on the network status information of the cabinet, a network switching command is generated so that the cabinet switches the connected network switch, which can quickly To solve the problem of network connection failure of equipment in the cabinet.
在一种可能的实现方式中,上述步骤702之后,还可以包括:控制点亮机柜指示灯,该机柜指示灯用于指示上架至机柜的设备的故障已经修复。通过该方案,可以方便快捷的实现机柜的反馈,以确定机柜的网络故障问题已 经通过切换网络交换机的方式解决。该机柜指示灯例如可以为图3中所示的机柜指示灯400。In a possible implementation manner, after the above step 702, it may further include: controlling the lighting of the cabinet indicator, which is used to indicate that the failure of the equipment racked to the cabinet has been repaired. Through this solution, the feedback of the cabinet can be realized quickly and easily to confirm that the network failure of the cabinet has been solved by switching the network switch. The cabinet indicator light may be, for example, the cabinet indicator light 400 shown in FIG. 3.
上述网络切换方法通过网络切换命令,切换连接的网络交换机,当一个网络交换机出现网络故障时,可以迅速切换至另一个网络交换机,以快速地解决机柜内的设备的网络连接故障问题。The above network switching method switches the connected network switches through the network switching command. When a network switch has a network failure, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
基于与上述图6所示的方法相同的构思,本申请还提供一种占位监控装置,如图8所示,该装置包括:Based on the same concept as the method shown in FIG. 6 above, the present application also provides a device for occupying monitoring, as shown in FIG. 8, the device includes:
占位检测单元801,用于在检测到机柜的M个占位开关的状态发生改变时,生成占位信息。The occupancy detection unit 801 is configured to generate occupancy information when it is detected that the status of the M occupancy switches of the cabinet has changed.
占位信息发送单元802,用于向与机柜相连的控制系统发送占位信息。The placeholder information sending unit 802 is used to send placeholder information to the control system connected to the cabinet.
上述方案中,设备上架到机柜时,根据设备占用的机柜空间位置,会相应的改变占位开关的状态,并生成占位信息,然后向控制系统发送占位信息,控制系统可以根据占位信息确定机柜内的占位空间的分配情况,从而可以更有效地对机柜内的占位空间进行系统化的管理。In the above solution, when the device is racked into the cabinet, the state of the occupancy switch will be changed according to the position of the cabinet space occupied by the device, and the occupancy information will be generated, and then the occupancy information will be sent to the control system. Determine the allocation of the space occupied by the cabinet, so that the space occupied by the cabinet can be managed more effectively.
在一种可能的实现方式中,上述占位监控装置还可以包括设备标识获取单元803,用于控制机柜上的可移动的摄像头,并通过摄像头扫描上架至机柜的设备的标识信息以获取设备的标识。该摄像头安装在机柜内部,摄像头在机柜内运动以对上架至机柜内部不同位置的设备的标识信息进行扫描。上述占位信息发送单元802,具体用于向与机柜相连的控制系统发送设备的标识和占位信息。In a possible implementation manner, the above-mentioned occupation monitoring device may further include a device identification acquisition unit 803 for controlling a movable camera on the cabinet, and scanning the identification information of the device racked to the cabinet through the camera to obtain the device Logo. The camera is installed inside the cabinet, and the camera moves in the cabinet to scan the identification information of the equipment racked to different positions inside the cabinet. The above-mentioned placeholder information sending unit 802 is specifically used to send the device identification and placeholder information to the control system connected to the cabinet.
在一种可能的实现方式中,上述占位信息包括设备占用的机柜的槽位的信息,即设备占用的机柜的槽位的个数及位置。In a possible implementation manner, the above-mentioned occupation information includes information about the slots of the cabinet occupied by the device, that is, the number and positions of the slots of the cabinet occupied by the device.
在一种可能的实现方式中,上述检测到机柜的M个占位开关的状态发生改变,包括:当机柜的设备下架时,检测到机柜的M个占位开关的状态发生改变。或者,当机柜的设备上架时,检测到机柜的M个占位开关的状态发生改变。In a possible implementation manner, the above-mentioned detection of the status change of the M placeholder switches of the cabinet includes: when the equipment of the cabinet is removed from the rack, the state change of the M placeholder switches of the cabinet is detected. Or, when the equipment of the cabinet is put on the shelf, it is detected that the status of the M occupancy switches of the cabinet changes.
上述占位监控装置的具体实施方式和有益效果,与前述图6所示的占位 监控方法中所述的相同,可参考前述描述,在此不再赘述。The specific implementation and beneficial effects of the above-mentioned occupation monitoring device are the same as those described in the foregoing occupation monitoring method shown in FIG. 6, and reference may be made to the foregoing description, which will not be repeated here.
基于与上述图7所示的方法相同的构思,本申请还提供一种网络切换装置,如图9所示,该装置包括:Based on the same concept as the method shown in FIG. 7 above, the present application also provides a network switching device. As shown in FIG. 9, the device includes:
接收单元901,用于接收控制系统发送的网络切换命令。The receiving unit 901 is configured to receive a network switching command sent by the control system.
切换单元902,用于根据网络切换命令,控制机柜内的切换开关切换连接的网络交换机。The switching unit 902 is configured to control the switch in the cabinet to switch the connected network switch according to the network switching command.
上述方案通过网络切换命令,切换连接的网络交换机,当一个网络交换机出现网络故障时,可以迅速切换至另一个网络交换机,以快速地解决机柜内的设备的网络连接故障问题。The above scheme switches the connected network switches through network switching commands. When a network switch fails, it can be quickly switched to another network switch to quickly solve the problem of network connection failure of the equipment in the cabinet.
在一种可能的实现方式中,上述网络交换机包括第一网络交换机和第二网络交换机,其中,第一网络交换机为切换前使用的网络交换机。上述切换单元,具体用于根据网络切换命令,控制切换开关从与第一网络交换机相连切换至与第二网络交换机相连。In a possible implementation manner, the foregoing network switch includes a first network switch and a second network switch, where the first network switch is a network switch used before switching. The above-mentioned switching unit is specifically used to control the switching switch from connecting to the first network switch to connecting to the second network switch according to the network switching command.
在一种可能的实现方式中,上述网络切换命令是控制系统根据机柜的网络状态信息确定当前使用的网络交换机出现网络故障时生成的。In a possible implementation, the above network switching command is generated when the control system determines that the currently used network switch has a network failure according to the network status information of the cabinet.
在一种可能的实现方式中,上述装置还可以包括网络状态信息发送单元903,用于向控制系统上报机柜的网络状态信息。In a possible implementation, the above device may further include a network status information sending unit 903, which is used to report the network status information of the cabinet to the control system.
在一种可能的实现方式中,上述装置还可以包括指示灯控制单元904,用于控制点亮机柜指示灯,该机柜指示灯用于指示上架至机柜的设备的故障已经修复。In a possible implementation manner, the above-mentioned device may further include an indicator light control unit 904 for controlling the lighting of the cabinet indicator light, and the cabinet indicator light is used to indicate that the failure of the equipment racked to the cabinet has been repaired.
上述网络切换装置的具体实施方式和有益效果,与前述图7所示的网络切换方法中所述的相同,可参考前述描述,在此不再赘述。The specific implementation and beneficial effects of the network switching device described above are the same as those described in the network switching method shown in FIG. 7 above, and reference may be made to the foregoing description, which will not be repeated here.
基于相同的技术构思,本发明实施例提供一种占位监控设备。至少一个处理器;以及,与所述至少一个处理器通信连接的存储器;所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述实施例中的占位监控方法。Based on the same technical concept, embodiments of the present invention provide a occupancy monitoring device. At least one processor; and a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, the instructions being executed by the at least one processor, so that The at least one processor can execute the occupancy monitoring method in the above embodiment.
以一个处理器为例,图10为本发明实施例提供的占位监控设备的结构, 该占位监控设备1000包括:收发器1001、处理器1002、存储器1003和总线系统1004;Taking a processor as an example, FIG. 10 is a structure of a occupancy monitoring device provided by an embodiment of the present invention. The occupancy monitoring device 1000 includes: a transceiver 1001, a processor 1002, a memory 1003, and a bus system 1004;
其中,存储器1003,用于存放程序。具体地,程序可以包括程序代码,程序代码包括计算机操作指令。存储器1003可能为随机存取存储器(random access memory,简称RAM),也可能为非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。图中仅示出了一个存储器,当然,存储器也可以根据需要,设置为多个。存储器1003也可以是处理器1002中的存储器。The memory 1003 is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory 1003 may be a random access memory (random access memory, RAM for short), or may be a non-volatile memory (non-volatile memory), such as at least one disk memory. Only one memory is shown in the figure, and of course, the memory may be set as multiple as needed. The memory 1003 may also be a memory in the processor 1002.
存储器1003存储了如下的元素,可执行模块或者数据结构,或者它们的子集,或者它们的扩展集:The memory 1003 stores the following elements, executable modules or data structures, or their subsets, or their extended sets:
操作指令:包括各种操作指令,用于实现各种操作。Operation instructions: including various operation instructions, used to realize various operations.
操作系统:包括各种系统程序,用于实现各种基础业务以及处理基于硬件的任务。Operating system: includes various system programs for implementing various basic services and processing hardware-based tasks.
上述本发明实施例占位监控方法可以应用于处理器1002中,或者说由处理器1002实现。处理器1002可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述占位监控方法的各步骤可以通过处理器1002中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器1002可以是通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器1003,处理器1002读取存储器1003中的信息,结合其硬件执行以下步骤:The above-mentioned method for occupying space monitoring in the embodiment of the present invention may be applied to the processor 1002, or implemented by the processor 1002. The processor 1002 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above-mentioned occupation monitoring method may be completed by an integrated logic circuit of hardware in the processor 1002 or an instruction in the form of software. The above-mentioned processor 1002 may be a general-purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware Components. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present invention may be directly embodied and executed by a hardware decoding processor, or may be executed and completed by a combination of hardware and software modules in the decoding processor. The software module may be located in a mature storage medium in the art, such as random access memory, flash memory, read-only memory, programmable read-only memory, or electrically erasable programmable memory, and registers. The storage medium is located in the memory 1003. The processor 1002 reads the information in the memory 1003, and performs the following steps in conjunction with its hardware:
处理器1002,用于在检测到机柜的M个占位开关的状态发生改变时,生成占位信息,所述机柜内部包括N个槽位,一个槽位内安装有一个占位开关, 一个占位开关的状态用于指示所述占位开关对应的槽位内是否安装有设备,所述占位信息用于指示上架至所述机柜的设备占据所述机柜的位置信息,N为正整数,M为不大于N的正整数;The processor 1002 is configured to generate occupancy information when the status of the M occupancy switches of the cabinet is changed. The cabinet includes N slots, and one occupancy switch is installed in one slot. The status of the position switch is used to indicate whether a device is installed in the slot corresponding to the placeholder switch, the placeholder information is used to indicate that the equipment racked to the cabinet occupies the position information of the cabinet, N is a positive integer, M is a positive integer not greater than N;
所述收发器1001,用于向与所述机柜相连的控制系统发送所述占位信息。The transceiver 1001 is configured to send the occupation information to a control system connected to the cabinet.
可选的,处理器1002控制所述机柜上的可移动的摄像头,并通过所述摄像头扫描上架至所述机柜的设备的标识信息以获取所述设备的标识;所述摄像头安装在所述机柜内部。Optionally, the processor 1002 controls the movable camera on the cabinet, and scans the identification information of the device racked to the cabinet through the camera to obtain the identification of the device; the camera is installed in the cabinet internal.
可选的,所述收发器1001向与所述机柜相连的控制系统发送所述设备的标识和所述占位信息。Optionally, the transceiver 1001 sends the device identification and the occupation information to the control system connected to the cabinet.
可选的,所述占位信息包括所述设备占用的所述机柜的槽位的信息。Optionally, the occupancy information includes information about slots of the cabinet occupied by the device.
可选的,所述处理器1002用于当所述机柜的设备上架或下架时,检测到所述机柜的M个占位开关的状态发生改变,并生成占位信息。Optionally, the processor 1002 is configured to detect a change in the status of the M occupancy switches of the cabinet when the equipment of the cabinet is put on or off the shelf, and generate occupancy information.
本领域技术人员可以理解实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that all or part of the steps in the method of the above embodiments can be completed by instructing relevant hardware through a program. The program is stored in a storage medium and includes several instructions to make a device (which may be a single chip microcomputer) , A chip, etc.) or a processor (processor) to perform all or part of the steps of the methods of the embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program code .
另外,本发明还提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行上述任一项所述的占位监控方法。In addition, the present invention also provides a non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium storing computer instructions, the computer instructions for causing the computer to perform any of the above Bit monitoring method.
另外,本发明还提供一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行上述任一项所述的占位监控方法。In addition, the present invention also provides a computer program product including a calculation program stored on a non-transitory computer-readable storage medium, the computer program including program instructions, when the program instructions are executed by a computer To enable the computer to execute the occupancy monitoring method described in any one of the above.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本 申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (13)

  1. 一种占位监控方法,其特征在于,包括:A occupancy monitoring method, characterized by including:
    检测到机柜的M个占位开关的状态发生改变,生成占位信息,所述机柜内部包括N个槽位,一个槽位内安装有一个占位开关,一个占位开关的状态用于指示所述占位开关对应的槽位内是否安装有设备,所述占位信息用于指示上架至所述机柜的设备占据所述机柜的位置信息,N为正整数,M为不大于N的正整数;Detecting that the status of the M placeholder switches in the cabinet has changed to generate placeholder information, the cabinet includes N slots, one slot switch is installed in one slot, and the status of one placeholder switch is used to indicate Whether a device is installed in the slot corresponding to the placeholder switch, and the placeholder information is used to indicate that the equipment racked to the cabinet occupies the position information of the cabinet, N is a positive integer, and M is a positive integer not greater than N ;
    向与所述机柜相连的控制系统发送所述占位信息。Sending the occupation information to a control system connected to the cabinet.
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    通过所述机柜上的移动的摄像头扫描上架至所述机柜的设备的标识信息获取到所述设备的标识;所述摄像头安装在所述机柜内部。The identification of the equipment is acquired by scanning the identification information of the equipment racked into the cabinet through a moving camera on the cabinet; the camera is installed inside the cabinet.
  3. 如权利要求2所述的方法,其特征在于,所述向与所述机柜相连的控制系统发送所述占位信息,包括:The method according to claim 2, wherein the sending the occupation information to the control system connected to the cabinet includes:
    向与所述机柜相连的控制系统发送所述设备的标识和所述占位信息。Sending the device identification and the occupation information to the control system connected to the cabinet.
  4. 如权利要求1或2所述的方法,其特征在于,所述占位信息包括所述设备占用的所述机柜的槽位的信息。The method according to claim 1 or 2, wherein the occupancy information includes information about a slot of the cabinet occupied by the device.
  5. 如权利要求1或2所述的方法,其特征在于,检测到机柜的M个占位开关的状态发生改变,包括:The method according to claim 1 or 2, wherein detecting that the status of the M placeholder switches of the cabinet has changed includes:
    当所述机柜的设备上架或下架时,检测到所述机柜的M个占位开关的状态发生改变。When the equipment of the cabinet is put on or off the shelf, it is detected that the status of the M occupancy switches of the cabinet has changed.
  6. 一种占位监控装置,其特征在于,包括:A space monitoring device, which is characterized by comprising:
    占位检测单元,用于在检测到机柜的M个占位开关的状态发生改变时,生成占位信息,所述机柜内部包括N个槽位,一个槽位内安装有一个占位开关,一个占位开关的状态用于指示所述占位开关对应的槽位内是否安装有设备,所述占位信息用于指示上架至所述机柜的设备占据所述机柜的位置信息,N为正整数,M为不大于N的正整数;Occupancy detection unit, used to generate occupancy information when the status of the M occupancy switches of the cabinet is changed, the cabinet includes N slots, one occupancy switch is installed in one slot, one The status of the placeholder switch is used to indicate whether a device is installed in the slot corresponding to the placeholder switch, the placeholder information is used to indicate that the equipment racked to the cabinet occupies the position information of the cabinet, N is a positive integer , M is a positive integer not greater than N;
    占位信息发送单元,用于向与所述机柜相连的控制系统发送所述占位信息。A placeholder information sending unit, configured to send the placeholder information to a control system connected to the cabinet.
  7. 如权利要求6所述的装置,其特征在于,所述装置还包括设备标识获取单元,用于控制所述机柜上的可移动的摄像头,并通过所述摄像头扫描上架至所述机柜的设备的标识信息以获取所述设备的标识;所述摄像头安装在所述机柜内部。The apparatus according to claim 6, wherein the apparatus further comprises an equipment identification acquisition unit for controlling a movable camera on the cabinet, and scanning the equipment racked to the cabinet through the camera Identification information to obtain the identification of the device; the camera is installed inside the cabinet.
  8. 如权利要求7所述的装置,其特征在于,所述占位信息发送单元,具体用于向与所述机柜相连的控制系统发送所述设备的标识和所述占位信息。The apparatus according to claim 7, wherein the placeholder information sending unit is specifically configured to send the device identification and the placeholder information to the control system connected to the cabinet.
  9. 如权利要求6或7所述的装置,其特征在于,所述占位信息包括所述设备占用的所述机柜的槽位的信息。The apparatus according to claim 6 or 7, wherein the occupancy information includes information on slots of the cabinet occupied by the equipment.
  10. 如权利要求6或7所述的装置,其特征在于,所述占位检测单元具体用于:当所述机柜的设备上架或下架时,检测到所述机柜的M个占位开关的状态发生改变,并生成占位信息。The device according to claim 6 or 7, wherein the occupancy detection unit is specifically configured to detect the status of the M occupancy switches of the cabinet when the equipment of the cabinet is put on or off the shelf Changes occur and placeholder information is generated.
  11. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机可执行指令,所述计算机可执行指令用于使所述计算机执行权利要求1至5任一权利要求所述的方法。A computer-readable storage medium, characterized in that the computer-readable storage medium stores computer-executable instructions for causing the computer to execute any one of claims 1 to 5 Methods.
  12. 一种计算机设备,其特征在于,包括:A computer device, characterized in that it includes:
    存储器,用于存储程序指令;Memory, used to store program instructions;
    处理器,用于调用所述存储器中存储的程序指令,按照获得的程序执行如权利要求1至5任一权利要求所述的方法。The processor is configured to call the program instructions stored in the memory and execute the method according to any one of claims 1 to 5 according to the obtained program.
  13. 一种占位监控设备,其特征在于,包括:A space monitoring device, which is characterized by comprising:
    至少一个处理器;以及,At least one processor; and,
    与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected to the at least one processor; wherein,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1至5任一权利要求所述的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any one of claims 1 to 5. Methods.
PCT/CN2019/093381 2018-12-19 2019-06-27 Method, device and apparatus for monitoring site occupancy WO2020124983A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811557969.3 2018-12-19
CN201811557969.3A CN109672561A (en) 2018-12-19 2018-12-19 A kind of occupy-place monitoring method and device

Publications (1)

Publication Number Publication Date
WO2020124983A1 true WO2020124983A1 (en) 2020-06-25

Family

ID=66144555

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/093381 WO2020124983A1 (en) 2018-12-19 2019-06-27 Method, device and apparatus for monitoring site occupancy

Country Status (3)

Country Link
CN (1) CN109672561A (en)
TW (1) TWI721502B (en)
WO (1) WO2020124983A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109672561A (en) * 2018-12-19 2019-04-23 中国银联股份有限公司 A kind of occupy-place monitoring method and device
CN111542187B (en) * 2020-05-15 2024-01-30 深圳日海智能设备有限公司 Monitoring cabinet, monitoring system and monitoring method based on cabinet space occupation detection
CN111681446A (en) * 2020-05-25 2020-09-18 中国科学院长春光学精密机械与物理研究所 Occupancy display system and method
CN114490255B (en) * 2022-01-06 2023-11-03 苏州浪潮智能科技有限公司 Position monitoring device of server
CN116017922B (en) * 2022-11-11 2024-06-14 南京艾泰克物联网科技有限公司 Intelligent U-shaped detection mechanism for managing installation space of 19-inch cabinet

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100157516A1 (en) * 2008-12-22 2010-06-24 Panduit Corp. Physical infrastructure management system
CN102313506A (en) * 2010-07-09 2012-01-11 联想(北京)有限公司 Method for detecting physical position of equipment, cabinet and equipment
CN102546309A (en) * 2012-02-22 2012-07-04 浪潮电子信息产业股份有限公司 Dynamic supervision method for in-place status of data center equipment
CN204044806U (en) * 2014-08-15 2014-12-24 深圳市腾讯计算机系统有限公司 A kind of rack and seat in the plane management system
CN204044873U (en) * 2014-08-15 2014-12-24 深圳市腾讯计算机系统有限公司 A kind of rack and host information management system
CN204515458U (en) * 2015-04-10 2015-07-29 苏州志知物联科技有限公司 Interior of equipment cabinet supervising device
CN109617730A (en) * 2018-12-19 2019-04-12 中国银联股份有限公司 A kind of method for switching network and device
CN109672561A (en) * 2018-12-19 2019-04-23 中国银联股份有限公司 A kind of occupy-place monitoring method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100201520A1 (en) * 2009-02-12 2010-08-12 Symbol Technologies, Inc. System for determining item location based on feedback from fixed radio frequency identification (rfid) readers and/or fixed rfid beacon tags
US9111466B2 (en) * 2013-01-17 2015-08-18 Mellanoy Technologies Ltd. Efficient access to connectivity information using cable identification

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100157516A1 (en) * 2008-12-22 2010-06-24 Panduit Corp. Physical infrastructure management system
CN102313506A (en) * 2010-07-09 2012-01-11 联想(北京)有限公司 Method for detecting physical position of equipment, cabinet and equipment
CN102546309A (en) * 2012-02-22 2012-07-04 浪潮电子信息产业股份有限公司 Dynamic supervision method for in-place status of data center equipment
CN204044806U (en) * 2014-08-15 2014-12-24 深圳市腾讯计算机系统有限公司 A kind of rack and seat in the plane management system
CN204044873U (en) * 2014-08-15 2014-12-24 深圳市腾讯计算机系统有限公司 A kind of rack and host information management system
CN204515458U (en) * 2015-04-10 2015-07-29 苏州志知物联科技有限公司 Interior of equipment cabinet supervising device
CN109617730A (en) * 2018-12-19 2019-04-12 中国银联股份有限公司 A kind of method for switching network and device
CN109672561A (en) * 2018-12-19 2019-04-23 中国银联股份有限公司 A kind of occupy-place monitoring method and device

Also Published As

Publication number Publication date
TW202024914A (en) 2020-07-01
TWI721502B (en) 2021-03-11
CN109672561A (en) 2019-04-23

Similar Documents

Publication Publication Date Title
WO2020124983A1 (en) Method, device and apparatus for monitoring site occupancy
WO2020125041A1 (en) Network switching method and device
CN101060412B (en) Ethernet power supply system, master control module and Ethernet power supply method
CN103135732B (en) Server cabinet system
US20140236510A1 (en) Distributed battery management system and method of identification distribution using the same
CN103425219A (en) Power supply control system and method
US20180157484A1 (en) Firmware update method and system
CN107331185B (en) Abnormal state processing method of traffic signal lamp machine, host and slave
CN103701707A (en) Network equipment
CN106502749B (en) The method and system of program are write with a brush dipped in Chinese ink based on CAN bus multimachine
CN103838698A (en) I2C bus architecture and device availability query method
CN109240967A (en) A kind of method and controller of parameter configuration
CN108845763A (en) A kind of system and method for managing disk state concentratedly
US11063467B2 (en) Power delivery monitor and control with an uninterruptible power supply
CN102281162B (en) Fusion method and system of data network and management network and devices
CN103678912A (en) Monitor data importing method and device
CN102436413B (en) Debugging system and debugging method of board power supply
CN109445975A (en) Abnormality eliminating method, logic device and member device
CN104639358A (en) Batched network port switching method and system
CN117277395A (en) Method, device, equipment and medium for generating trigger pulse of valve control equipment
CN109116238A (en) Automatic addressing method for battery management system
CN209748955U (en) Cabinet and cabinet system
CN103491459A (en) Electronic distributing frame system
CN111831341A (en) Configuration file loading method, device and system and computer readable medium
CN107948106A (en) A kind of method and apparatus of the main power board of selection for interchanger

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19900392

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19900392

Country of ref document: EP

Kind code of ref document: A1