Slot control method and device

The routing device CPU obtains and judges the bus supported by the expansion slot, and controls the occlusion device to block the unsupported slot hole area, solving the problem of user mistakenly inserting the interface card and improving the user experience.

CN113987604BActive Publication Date: 2025-09-02NEW H3C SECURITY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111141964.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-28
Publication Date
2025-09-02
Estimated Expiration
2041-09-28

AI Technical Summary

Technical Problem

The expansion slots of the routing device have the same appearance, making it difficult for users to distinguish, resulting in the interface card being inserted into the unsupported bus slots, which has poor user experience.

Method used

After powering on, the CPU of the routing device obtains the bus supported by each expansion slot, judges the incomplete slot hole area, and controls the shading device to block these slot hole areas to avoid misinsertion of interface jams.

Benefits of technology

Improves the accuracy of user card insertion and improves user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113987604B_ABST
    Figure CN113987604B_ABST
Patent Text Reader

Abstract

The present application provides a slot control method and device, which is applied to a CPU in a routing device and includes: after the routing device is powered on, obtaining the buses supported by each expansion slot on the routing device for inserting an interface card, wherein the slot hole area on each expansion slot is composed of slot hole areas corresponding to multiple different types of buses; for each expansion slot, if it is determined that the buses supported by the obtained expansion slot are not completely identical to all the buses corresponding to the slot hole area on the expansion slot, then determining the slot hole areas corresponding to the buses other than the buses supported by the expansion slot among all the buses corresponding to the slot hole area on the expansion slot as slot hole areas that need to be blocked; and controlling a blocking device located above the determined slot hole area to block the determined slot hole area. The present application can prevent a user from mistakenly inserting an interface card into an expansion slot that does not support the bus used by the interface card.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a slot control method and device. Background Art

[0002] In addition to the interfaces on the front panel, current routers generally have expansion slots on the back to accommodate interface cards with different functions. Due to limited host system resources, it is often not possible to support all buses in all expansion slots, and only some buses can be supported. For example, a router may have four expansion slots, all of which support the LocalBus bus. The first and third expansion slots also support the Peripheral Component Interconnect Express (PCIE) bus, and the fourth slot also supports the Ethernet bus.

[0003] Because these expansion slots look identical, it's easy for a user to successfully insert an interface card into an expansion slot, only to have the router display unsupported. This means the user has inserted the interface card into an expansion slot that doesn't support the bus used by the interface card. In this case, the user has no choice but to seek a solution from the manufacturer, resulting in a poor user experience. Summary of the Invention

[0004] In order to overcome the problems existing in the related art, the present application provides a slot control method and device.

[0005] According to a first aspect of an embodiment of the present application, a slot control method is provided. The method is applied to a central processing unit (CPU) in a routing device, and the method includes:

[0006] After the routing device is powered on, obtaining buses supported by expansion slots on the routing device into which interface cards are inserted, wherein a slot hole area on each expansion slot consists of slot hole areas corresponding to multiple different types of buses;

[0007] For each expansion slot, if it is determined that the bus supported by the expansion slot is not identical to all the buses corresponding to the slot hole area on the expansion slot, then the slot hole areas corresponding to the buses other than the buses supported by the expansion slot among all the buses corresponding to the slot hole area on the expansion slot are determined as the slot hole areas that need to be blocked;

[0008] The shielding device located above the determined slot hole area is controlled to shield the determined slot hole area.

[0009] According to a second aspect of an embodiment of the present application, a slot control device is provided, the device being applied to a CPU in a routing device, the device comprising:

[0010] an acquisition module, configured to, after the routing device is powered on, acquire buses supported by expansion slots on the routing device into which interface cards are inserted, wherein a slot hole area on each expansion slot is composed of slot hole areas corresponding to a plurality of different types of buses;

[0011] a determination module configured to, for each expansion slot, determine, if it is determined that the bus supported by the expansion slot is not identical to all the buses corresponding to the slot hole area on the expansion slot, then determine, among all the buses corresponding to the slot hole area on the expansion slot, the slot hole area corresponding to the buses other than the bus supported by the expansion slot, as the slot hole area that needs to be blocked;

[0012] The control module is used to control the shielding device located above the determined slot hole area to shield the determined slot hole area.

[0013] The technical solutions provided by the embodiments of the present application may have the following beneficial effects:

[0014] In an embodiment of the present application, after the routing device is powered on, the CPU in the routing device first obtains the buses supported by each expansion slot on the routing device into which the interface card is inserted. Then, for each expansion slot, if it is determined that the buses supported by the expansion slot obtained are not identical to all the buses corresponding to the slot hole area on the expansion slot, the CPU will determine the slot hole area corresponding to the buses other than the buses supported by the expansion slot among all the buses corresponding to the slot hole area on the expansion slot as the slot hole area that needs to be blocked. Finally, the CPU will control the blocking device located above the determined slot hole area to block the determined slot hole area. This avoids the problem of users mistakenly inserting an interface card into an expansion slot that does not support the bus used by the interface card, thereby improving the user experience.

[0015] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0017] Figure 1 A flowchart of a slot control method provided in an embodiment of the present application;

[0018] Figure 2This is one of the structural schematic diagrams of the shielding device provided in an embodiment of the present application;

[0019] Figure 3 This is a second structural diagram of the shielding device provided in an embodiment of the present application;

[0020] Figure 4 The third structural diagram of the shielding device provided in the embodiment of the present application;

[0021] Figure 5 A schematic structural diagram of a slot control device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements, unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.

[0023] The terms used in this application are for the purpose of describing specific embodiments only and are not intended to limit this application. As used in this application and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0024] Next, the embodiments of the present application are described in detail.

[0025] The embodiment of the present application provides a slot control method, which is applied to a CPU in a routing device, such as Figure 1 As shown, the method may include the following steps:

[0026] S11. After the routing device is powered on, buses supported by expansion slots on the routing device into which interface cards are inserted are obtained.

[0027] It should be noted that in this step, the slot hole area on each expansion slot is composed of slot hole areas corresponding to multiple different types of buses. For example, all buses corresponding to the slot hole area on each expansion slot may include a PCIE bus, an Ethernet bus, and a LocalBus bus.

[0028] Specifically, in this step, when the CPU obtains the buses supported by the expansion slots for the interface cards to be inserted into the routing device, it can obtain them from the memory in the routing device. For example, the buses supported by the expansion slots obtained by the CPU are as follows:

[0029] Slot (SubSlot) 1: supports PCIE bus and LocalBus bus;

[0030] SubSlot2: supports LocalBus bus;

[0031] SubSlot3: supports PCIE bus and LocalBus bus;

[0032] SubSlot4: supports LocalBus and Ethernet bus.

[0033] S12. For each expansion slot, if it is determined that the bus supported by the expansion slot is not completely identical to all the buses corresponding to the slot hole area on the expansion slot, then the slot hole areas corresponding to the buses other than the buses supported by the expansion slot among all the buses corresponding to the slot hole area on the expansion slot are determined as the slot hole areas that need to be blocked.

[0034] It should be noted that, for the CPU in the above-mentioned routing device, if it is determined that the bus supported by the obtained expansion slot is identical to all the buses corresponding to the slot hole area on the expansion slot, no operation is performed.

[0035] For example, for a CPU in a routing device, assuming that all buses corresponding to any expansion slot area on the routing device include PCIE buses, Ethernet buses, and LocalBus buses. Assuming that the buses supported by a certain expansion slot are PCIE buses and LocalBus buses, the CPU can determine that the buses supported by the expansion slot are not completely identical to all buses corresponding to the slot hole area on the expansion slot. In this case, the CPU determines the slot hole area corresponding to the Ethernet bus as the slot hole area that needs to be blocked.

[0036] S13 , controlling a shielding device located above the determined slot hole area to shield the determined slot hole area.

[0037] Specifically, in this step, the shielding device may have the following design structures:

[0038] The first design structure: the shielding device may include a relay, an electromagnet and an iron sheet electrically connected to the CPU.

[0039] The thickness of the iron sheet is not higher than the height of the slot hole area on the expansion slot, and the length of the iron sheet is not longer than the length of the slot hole area on the expansion slot.

[0040] In the first design structure, the CPU can control the shielding device located above the determined slot hole area to shield the determined slot hole area in the following manner:

[0041] The electromagnet and the iron sheet are controlled by the relay to be in a non-attracted state, so that the iron sheet blocks a part or all of the determined slot hole area.

[0042] It should be noted that, initially, the electromagnet and the iron sheet in the shielding device are in an attracted state, and the slot hole area on the expansion slot is not blocked.

[0043] When the shielding needs to be cancelled, the CPU can control the electromagnet and the iron sheet to be in an engaged state through the relay.

[0044] For example, Figure 2 As shown, suppose that the CPU in a certain routing device obtains that a certain expansion slot supports PCIE bus and LocalBus bus, but does not support Ethernet bus. Then, the CPU uses the relay ( Figure 2 (not shown) controls the electromagnet 2 and the iron sheet 2 in the shielding device to be in an unattracted state, so that the iron sheet 2 blocks the slot hole area corresponding to the Ethernet bus, so that the user can use the interface card of the PCIE bus or LocalBus bus to accurately insert it into the expansion slot.

[0045] The second design structure: the above-mentioned shielding device includes a motor and a shielding component with a gear.

[0046] In the second design structure, the CPU can control the shielding device located above the determined slot hole area to shield the determined slot hole area in the following manner:

[0047] The motor is controlled to rotate clockwise to drive the gear on the shielding component to descend until the shielding component shields a part or all of the determined slot hole area.

[0048] It should be noted that initially, the slot hole area on the expansion slot is not blocked.

[0049] When the shielding needs to be cancelled, the CPU can control the motor to rotate counterclockwise to drive the gear on the shielding component to rise until the corresponding slot hole area is not blocked.

[0050] For example, Figure 3As shown in the figure, suppose the CPU in a routing device detects that an expansion slot only supports the LocalBus bus. Then, the CPU controls motor 1 and motor 2 to rotate clockwise, driving the gear on the corresponding shielding component to descend until the shielding component covers the corresponding slot hole area, so that the user can use the LocalBus bus interface card to accurately insert it into the expansion slot.

[0051] The third design structure: the shielding device can be a servo electrically connected to the CPU and provided with a V-shaped rocker arm.

[0052] In the third design structure, the CPU may control the shielding device located above the determined slot hole area to shield the determined slot hole area in the following manner:

[0053] Control the servo to rotate counterclockwise until it covers part of the determined slot hole area.

[0054] It should be noted that initially, the slot hole area on the expansion slot is not blocked.

[0055] When the blocking needs to be cancelled, the CPU can control the servo to rotate clockwise until the corresponding slot hole area is not blocked.

[0056] For example, Figure 4 As shown in the figure, suppose the CPU in a router device detects that a certain expansion slot only supports the PCIE bus. Then, the CPU controls servo 2 and servo 3 to rotate counterclockwise until they cover the corresponding slot hole area, so that the user can accurately insert the interface card using the PCIE bus into the expansion slot.

[0057] It should be further explained that the above-mentioned shielding device may also have other design structures, which are not listed here one by one.

[0058] As can be seen from the above technical solution, in the embodiment of the present application, after the routing device is powered on, the CPU in the routing device will first obtain the buses supported by each expansion slot on the routing device for the interface card to be inserted. Then, for each expansion slot, if it is determined that the buses supported by the expansion slot obtained are not completely identical to all the buses corresponding to the slot hole area on the expansion slot, the CPU will determine the slot hole area corresponding to the buses other than the buses supported by the expansion slot among all the buses corresponding to the slot hole area on the expansion slot as the slot hole area that needs to be blocked. Finally, the CPU will control the blocking device located above the determined slot hole area to block the determined slot hole area. In this way, the problem of the user mistakenly inserting the interface card into the expansion slot that does not support the bus used by the interface card is avoided, thereby improving the user experience.

[0059] Based on the same inventive concept, the present application also provides a slot control device, which is applied to the CPU in the routing device. The structural diagram thereof is shown in FIG. Figure 5 As shown, specifically including:

[0060] an acquisition module 51 configured to, after the routing device is powered on, acquire buses supported by expansion slots for inserting interface cards on the routing device, wherein the slot area on each expansion slot comprises slot area corresponding to multiple different types of buses;

[0061] The determination module 52 is configured to, for each expansion slot, determine, if it is determined that the bus supported by the expansion slot is not identical to all the buses corresponding to the slot hole area of ​​the expansion slot, then determine the slot hole area corresponding to the buses other than the bus supported by the expansion slot among all the buses corresponding to the slot hole area of ​​the expansion slot as the slot hole area that needs to be blocked;

[0062] The control module 53 is configured to control a shielding device located above the determined slot hole area to shield the determined slot hole area.

[0063] Preferably, the blocking device includes a relay, an electromagnet, and an iron sheet electrically connected to the CPU, wherein the thickness of the iron sheet is not higher than the height of the slot hole area on the expansion slot, and the length of the iron sheet is not longer than the length of the slot hole area on the expansion slot;

[0064] The control module is specifically used to:

[0065] The relay controls the electromagnet and the iron sheet to be in a non-engaged state, so that the iron sheet blocks a part or all of the determined slot hole area.

[0066] Preferably, the shielding device includes a motor electrically connected to the CPU and a shielding component with a gear;

[0067] The control module is specifically used to:

[0068] The motor is controlled to rotate clockwise to drive the gear on the shielding component to descend until the shielding component shields a part or all of the determined slot hole area.

[0069] Preferably, the shielding device is a steering gear electrically connected to the CPU and provided with a V-shaped rocker arm;

[0070] The control module is specifically used to:

[0071] The steering gear is controlled to rotate counterclockwise until a portion of the determined slot hole area is covered.

[0072] Preferably, all buses corresponding to the slot hole area on each expansion slot include a PCIE bus, an Ethernet bus and a LocalBus bus.

[0073] As can be seen from the above technical solution, in the embodiment of the present application, after the routing device is powered on, the CPU in the routing device will first obtain the buses supported by each expansion slot on the routing device for the interface card to be inserted; then, for each expansion slot, if it is determined that the buses supported by the expansion slot obtained are not completely identical to all the buses corresponding to the slot hole area on the expansion slot, the CPU will determine the slot hole area corresponding to the buses other than the buses supported by the expansion slot among all the buses corresponding to the slot hole area on the expansion slot as the slot hole area that needs to be blocked; finally, the CPU will control the blocking device located above the determined slot hole area to block the determined slot hole area. In this way, the problem of the user mistakenly inserting the interface card into the expansion slot that does not support the bus used by the interface card is avoided, thereby improving the user experience.

[0074] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A slot control method, characterized in that: The method is applied to a central processing unit (CPU) in a routing device, and the method includes: After the routing device is powered on, obtaining buses supported by expansion slots on the routing device into which interface cards are inserted, wherein a slot hole area on each expansion slot consists of slot hole areas corresponding to multiple different types of buses; For each expansion slot, if it is determined that the bus supported by the expansion slot is not identical to all the buses corresponding to the slot hole area on the expansion slot, then the slot hole areas corresponding to the buses other than the buses supported by the expansion slot among all the buses corresponding to the slot hole area on the expansion slot are determined as the slot hole areas that need to be blocked; Controlling a shielding device located above the determined slot hole area to shield the determined slot hole area; The blocking device includes a relay, an electromagnet, and an iron sheet electrically connected to the CPU, wherein the thickness of the iron sheet is no greater than the height of the slot hole area on the expansion slot, and the length of the iron sheet is no greater than the length of the slot hole area on the expansion slot; Controlling a shielding device located above the determined slot hole area to shield the determined slot hole area specifically includes: The electromagnet and the iron sheet are controlled by the relay to be in a non-engaged state, so that the iron sheet blocks a part or all of the determined slot hole area; or The shielding device includes a motor electrically connected to the CPU and a shielding component with a gear; Controlling a shielding device located above the determined slot hole area to shield the determined slot hole area specifically includes: Control the motor to rotate clockwise to drive the gear on the shielding component to descend until the shielding component shields part or all of the determined slot hole area; or, The shielding device is a servo electrically connected to the CPU and provided with a V-shaped rocker arm; Controlling a shielding device located above the determined slot hole area to shield the determined slot hole area specifically includes: The steering gear is controlled to rotate counterclockwise until a portion of the determined slot hole area is covered.

2. The method according to claim 1, characterized in that All buses corresponding to the slot hole area on each expansion slot include the PCIE bus, Ethernet bus, and LocalBus bus.

3. A slot control device, characterized in that: The device is applied to a central processing unit (CPU) in a routing device, and includes: an acquisition module, configured to, after the routing device is powered on, acquire buses supported by expansion slots on the routing device into which interface cards are inserted, wherein a slot hole area on each expansion slot is composed of slot hole areas corresponding to a plurality of different types of buses; a determination module configured to, for each expansion slot, determine, if it is determined that the bus supported by the expansion slot is not identical to all the buses corresponding to the slot hole area on the expansion slot, then determine, among all the buses corresponding to the slot hole area on the expansion slot, the slot hole area corresponding to the buses other than the bus supported by the expansion slot, as the slot hole area that needs to be blocked; A control module, configured to control a shielding device located above the determined slot hole area to shield the determined slot hole area; The blocking device includes a relay, an electromagnet, and an iron sheet electrically connected to the CPU, wherein the thickness of the iron sheet is no greater than the height of the slot hole area on the expansion slot, and the length of the iron sheet is no greater than the length of the slot hole area on the expansion slot; The control module is specifically used to: The electromagnet and the iron sheet are controlled by the relay to be in a non-engaged state, so that the iron sheet blocks a part or all of the determined slot hole area; or The shielding device includes a motor electrically connected to the CPU and a shielding component with a gear; The control module is specifically used to: Control the motor to rotate clockwise to drive the gear on the shielding component to descend until the shielding component shields part or all of the determined slot hole area; or, The shielding device is a servo electrically connected to the CPU and provided with a V-shaped rocker arm; The control module is specifically used to: The steering gear is controlled to rotate counterclockwise until a portion of the determined slot hole area is covered.

4. The device according to claim 3, characterized in that All buses corresponding to the slot hole area on each expansion slot include the PCIE bus, Ethernet bus, and LocalBus bus.

Citation Information

Patent Citations

  • Detecting system for board card configuration correctness

    CN104461799A

  • Method of reinforcing bus, its device and system

    CN1499390A