Connection control device and method applied to RAID (redundant array of independent disks) card for plugging and unplugging multiple Ukeys
By designing a connection control device including multiple Ukey, communication unit, main control unit and on-off unit, the long test cycle and interface wear caused by manual plugging and unplugging in RAID card UKey test are solved, and the automatic control of multiple Ukey is realized, and the testing efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202510259998.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-05
- Publication Date
- 2025-06-13
AI Technical Summary
In the prior art, the test of the RAID card UKey requires manual plugging and unplugging, resulting in a long test cycle and low efficiency. Frequent plugging and unplugging can easily lead to physical wear of the Ukey interface, affecting the life of the equipment.
A connection control device is designed, including a multi-channel Ukey, a communication unit, a main control unit and an on-off unit. Through the master control unit, the on-off unit is used to receive test instructions from the test platform, and the on-off unit is controlled to automatically connect or cut off the multiple Ukey, realizing automatic control of the RAID card and Ukey.
It realizes automatic control of multiple Ukeys during the testing process of RAID cards and Ukey, instead of manual plugging and unplugging operations, saves testing resources, improves testing efficiency and accuracy, and reduces wear of Ukey interfaces.
Smart Images

Figure CN120144389A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the technical field of electronic device testing, and particularly relates to a connection control device and method for a multi-channel Ukey for plugging and unplugging a RAID card. Background Art
[0002] Based on the test case scenarios of a RAID card UKey (Upgrade Key, a non-standard USB interface, a decryption and upgrade device for USB2.0), including simulating real plugging and unplugging test scenarios and short-circuit test scenarios where users use a RAID card with UKeys of different configurations.
[0003] Existing manual testing requires manual plugging and unplugging of UKeys one by one. Each single test can only verify a single UKey configuration, resulting in a long test cycle and low efficiency. In addition, frequent plugging and unplugging easily causes physical wear of the UKey interface and affects the device life. Commercial USB plugging and unplugging devices are not compatible with the special UKeys of RAID cards (non-standard USB interfaces) in terms of interface form and cannot be linked with an automated test platform, making it difficult to achieve parallel control of multi-channel UKeys and simulation of short-circuit scenarios. Summary of the Invention
[0004] The purpose of this application is to provide a connection control device and method for a multi-channel Ukey for plugging and unplugging a RAID card, aiming to solve the problem of high consumption of manpower and material resources caused by manual plugging and unplugging of multi-channel UKeys in the UKey test scenario based on a RAID card.
[0005] According to the first aspect of this application, a connection control device for a multi-channel Ukey for plugging and unplugging a RAID card is provided, including: a multi-channel Ukey, a communication unit, a main control unit, and a switching unit; where
[0006] The communication unit is used for external network communication;
[0007] The main control unit is used to receive test instructions from a test platform through the communication unit and control the switching unit to connect or disconnect the multi-channel Ukey based on the test instructions;
[0008] The switching unit is used to connect or disconnect the multi-channel Ukey from an external RAID card under the control of the main control unit.
[0009] In this way, automatic control of multi-channel UKeys can be achieved during the testing process of a RAID card and a Ukey, thus replacing manual plugging and unplugging operations, achieving the purpose of saving test resources and batch testing of UKeys, thereby improving test efficiency and accuracy, saving test time, and also reducing interface wear of UKeys.
[0010] In some alternative embodiments, it further includes: a display screen and a key unit connected to the main control unit;
[0011] The display screen is used for displaying the information transmitted by the main control unit;
[0012] The key unit is used for transmitting the received input information to the main control unit;
[0013] After receiving the network configuration parameters from the key unit, the main control unit reconfigures the network for the communication unit based on the network configuration parameters.
[0014] Through the display screen and the key unit, the user can configure the network of the communication unit in the connection control device, so that the connection control device can be recognized in the external network.
[0015] In some alternative embodiments, it further includes: a storage unit;
[0016] The main control unit is used for storing the network configuration parameters in the storage unit, so that after the connection control device is reset, the network configuration parameters are read from the storage unit, and the network is configured for the communication unit.
[0017] Since the network configuration parameters can be stored in the storage unit, the offline change of network configuration and the power-off memory function can be realized.
[0018] In some alternative embodiments, the main control unit includes a processor, and the main control unit realizes the control of the on-off unit through software running on the processor; the network configuration of the communication unit by the main control unit is realized by software developed based on the SPI protocol and running on the processor.
[0019] Through the software development of the main control unit, the connection and disconnection of multiple Ukeys can be realized, reducing the development cost.
[0020] In some alternative embodiments, the on-off unit includes an analog switch chip.
[0021] This method can realize the on-off control of multiple Ukeys from the hardware.
[0022] According to the second aspect of the present application, a connection control method applied to the insertion and extraction of multiple Ukeys of a RAID card is provided. The method is implemented by a connection control device applied to the insertion and extraction of multiple Ukeys of a RAID card, and includes:
[0023] The communication unit of the connection control device receives a test instruction from a test platform located in an external network and transmits the test instruction to the main control unit of the connection control device;
[0024] The master control unit sends a control signal for connecting or disconnecting the multiple Ukeys of the connection control device to the on-off unit of the connection control device based on the test instruction;
[0025] Based on the control signal, the on-off unit connects or disconnects the multiple Ukeys to / from an external RAID card.
[0026] In some optional embodiments, it further includes:
[0027] The key unit of the connection control device receives network configuration parameters input by a user and transmits the network configuration parameters to the master control unit;
[0028] The master control unit reconfigures the network for the communication unit based on the network configuration parameters.
[0029] In some optional embodiments, the master control unit reconfiguring the network for the communication unit based on the network configuration parameters includes:
[0030] The master control unit stores the network configuration parameters in the storage unit of the connection control device;
[0031] After the connection control device is reset, the master control unit reads the network configuration parameters from the storage unit and configures the network for the communication unit.
[0032] In some optional embodiments, the master control unit includes a processor, and the master control unit realizes the control of the on-off unit through software running on the processor; the network configuration of the communication unit by the master control unit is realized by software developed based on the SPI protocol and running on the processor.
[0033] In some optional embodiments, the on-off unit includes an analog switch chip.
[0034] In this way, automatic control of multiple Ukeys during the test process of the RAID card and the Ukey can be achieved, thereby replacing manual plugging and unplugging operations, and achieving the purpose of saving test resources and batch testing of UKeys.
[0035] Other features and advantages of the present application will be described in the subsequent specification, and will be partially obvious from the specification, or understood by implementing the present application. The objectives and other advantages of the present application can be realized and obtained through the structures and processes pointed out in the specification and the drawings. Description of the Drawings
[0036] To more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the accompanying drawings required for the description of the embodiments or related technologies. Obviously, the accompanying drawings in the following description are certain embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can also be obtained based on these drawings.
[0037] Figure 1 It is a structural block diagram of a connection control device according to an exemplary embodiment of the present application.
[0038] Figure 2 It is a schematic diagram of an implementation structure of a connection control device according to an exemplary embodiment of the present application.
[0039] Figure 3 It is a schematic flowchart of a connection control method according to an exemplary embodiment of the present application. Detailed implementation manners
[0040] In order to make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of the present application.
[0041] Currently, most of the USB plug-and-play devices available on the market are interface life testing machines, which have the following problems:
[0042] 1) The interface form does not match and cannot match the connection interfaces of RAID cards and Ukeys.
[0043] 2) It cannot be connected to an automated testing platform.
[0044] 3) It cannot achieve multi-channel controllability.
[0045] 4) It cannot simulate a short-circuit test scenario.
[0046] Based on the above analysis, as shown in Figure 1 An exemplary connection control device for plugging and unplugging multiple Ukeys of a RAID card is proposed in the present application, including: multiple Ukeys 101, a communication unit 102, a main control unit 103, and a switching unit 104; among them,
[0047] The communication unit is used for external network communication;
[0048] The main control unit is configured to receive test instructions from a test platform through the communication unit, and control the on-off unit to connect or disconnect the multiple Ukeys based on the test instructions.
[0049] The on-off unit is configured to connect or disconnect the multiple Ukeys from an external RAID card under the control of the main control unit.
[0050] Exemplarily, the multiple Ukeys are connected to one end of the on-off unit, and the other end of the on-off unit can be connected to a RAID card for testing the multiple Ukeys. The RAID card is also connected to a disk and / or a server. The on-off unit is connected to the multiple Ukeys through a one-to-multiple interface manner. Under the control of the main control unit, the on-off unit can connect the RAID card to one of the Ukeys while disconnecting the connections with other Ukeys. During the test process, the test platform sends test instructions to the communication unit based on the TCP / IP protocol, and the communication unit transmits the received test instructions to the main control unit. The main control unit can determine the Ukeys that need to be connected, disconnected, and / or opened by parsing the test instructions. Then, the main control unit sends a control signal to the on-off unit, and the control signal includes operation signals for access, removal, and / or short circuit of each Ukey; wherein, different permission configurations of the RAID card can be stored in each Ukey, and during the test process, the permission configuration in the connected Ukey takes effect.
[0051] In this way, automatic control of multiple Ukeys during the testing process of the RAID card and Ukey can be achieved, thereby replacing manual plugging and unplugging operations, achieving the purpose of saving test resources and batch testing of UKeys, thereby improving test efficiency and accuracy, and reducing interface wear and time costs caused by manual intervention.
[0052] In some optional implementation manners, the connection control device further includes: a display screen 105 and a key unit 106 connected to the main control unit;
[0053] The display screen is configured to display information transmitted by the main control unit;
[0054] The key unit is configured to transmit the received input information to the main control unit;
[0055] The main control unit is configured to reconfigure the network of the communication unit based on the network configuration parameters after receiving the network configuration parameters from the key unit.
[0056] Exemplarily, the display screen can be an OLED display screen for displaying information received from the main control unit, such as the current network configuration parameters of the connection control device, and the network configuration parameters can include but are not limited to IP address, subnet mask, and gateway address, etc.
[0057] Exemplarily, the button unit may be in the form of a matrix button. The user can input corresponding input information through the button unit, such as the network configuration parameters of the connection control device. After receiving the input information, the button unit transmits the input information to the main control unit. After receiving the input information transmitted by the button unit, the main control unit performs corresponding processing according to the previous settings. For example, when the main control unit receives the input information transmitted by the button unit as the network configuration parameters, it reconfigures the network configuration parameters to the communication unit so that after the connection control device for plugging and unplugging multiple Ukeys of the RAID card is reset, the communication unit communicates with the external network with the newly configured network configuration parameters.
[0058] Through the display screen and the button unit, the user can configure the network of the communication unit in the connection control device, so that the connection control device can be recognized in the external network.
[0059] In some alternative implementation manners, the connection control device further includes: a storage unit 107;
[0060] The main control unit is used to store the network configuration parameters in the storage unit so that after the connection control device is reset, the network configuration parameters are read from the storage unit and the network of the communication unit is configured.
[0061] Exemplarily, after the main control unit receives the network configuration parameters transmitted by the button unit, it can store the network configuration parameters in the storage unit. After the test unit is reset again, such as power-off and restart, the main control unit takes out the network configuration parameters from the storage unit and configures them to the communication unit so that the communication unit communicates with the external network with the configured network configuration parameters.
[0062] Since the network configuration parameters can be stored in the storage unit, the offline change of the network configuration and the power-off memory function can be realized.
[0063] In some alternative implementation manners, the main control unit includes a processor, and the main control unit realizes the control of the on-off unit through software running on the processor; the network configuration of the communication unit by the main control unit is realized by software developed based on the SPI protocol and running on the processor.
[0064] Exemplarily, the main control unit can be implemented by a processor, such as the STM32 chip with the ARM Cortex-M3 architecture. The functions of the main control unit can be realized by the development software running on the processor. For example, portable library functions that can run on the main control unit can be developed in advance, so as to use these library functions to realize the connection and disconnection control of multiple Ukeys. In addition, the network configuration function of the communication unit can also be realized through software. This software can be based on the SPI protocol to develop the update configuration of network configuration parameters such as IP address, subnet mask, and gateway address, and store the updated network configuration parameters in the storage unit, and re-read the network configuration parameters from the storage unit after power-off and restart to perform network configuration on the communication unit, etc.
[0065] Through the software development of the main control unit, the connection and disconnection of multiple Ukeys can be realized, reducing the development cost.
[0066] In some alternative implementation manners, the on-off unit includes an analog switch chip.
[0067] Exemplarily, as disclosed above, the on-off unit can connect or disconnect multiple Ukeys under the control of the main control unit. For this purpose, the circuit for realizing the on-off unit includes an analog switch chip, which can be a low-resistance analog switch chip with a resistance range in the ohm level. Exemplarily, the on-off unit can include chips of the TS3USB221A series, CHxxx series, and MOS transistors, etc. This way can realize the on-off control of multiple Ukeys from the hardware level.
[0068] Exemplarily, an implementation example of the connection control device for plugging and unplugging multiple Ukeys applied to the RAID card proposed in this application is as follows Figure 2As shown, a connection control device for a RAID card and a 15-channel Ukey (only 12 channels are shown in the figure) is shown in this example. Among them, the 15-channel Ukey, communication chip (i.e., communication unit), on-off chip (i.e., on-off unit), main control chip (i.e., main control unit), storage chip (i.e., storage unit), key matrix, and display screen are all integrated on this connection control device. Users can set network configuration parameters, etc. through the key matrix, and can also view the set network configuration parameters through the display screen. Among them, the communication chip can be exemplarily implemented by a w5500 / CH395L chip, which includes protocol stack, MAC, and PHY functions. The storage chip can be exemplarily implemented by a W25Qxx series chip. The RAID card is located outside this connection control device and is connected to this connection control device through the on-off unit. This connection control device can communicate with the external network through the communication chip, so as to receive test instructions sent by the test platform through the network. The RAID card is connected to the server, so as to communicate with the external network through the server, and further can communicate with the test platform. During the test, the test platform can send test instructions to the connection control device and collect the operation information of the RAID card through the external communication network, so as to complete the test.
[0069] Correspondingly, referring to Figure 3 As shown, this application also exemplarily provides a connection control method for a RAID card to plug and unplug multiple Ukeys. This method is implemented by a connection control device for a RAID card to plug and unplug multiple Ukeys, and includes:
[0070] Step S301: The communication unit of the connection control device receives a test instruction from a test platform located in the external network and transmits the test instruction to the main control unit of the connection control device;
[0071] Step S302: The main control unit analyzes the test instruction and sends a control signal for connecting or disconnecting multiple Ukeys to the on-off unit of the connection control device;
[0072] Step S303: Based on the control signal, the on-off unit connects or disconnects multiple Ukeys from the external RAID card.
[0073] In some optional embodiments, this method further includes:
[0074] The key unit of this connection control device receives network configuration parameters input by the user and transmits the network configuration parameters to the main control unit;
[0075] The main control unit reconfigures the network for the communication unit based on the network configuration parameters.
[0076] In some optional embodiments, the main control unit reconfiguring the network for the communication unit based on the network configuration parameters includes:
[0077] The master control unit stores the network configuration parameters in the storage unit of the connection control device;
[0078] After the connection control device is reset, the master control unit reads the network configuration parameters from the storage unit and configures the communication unit for the network.
[0079] In some alternative embodiments, the master control unit stores the network configuration parameters in the storage unit of the connection control device;
[0080] After the connection control device is reset, the master control unit reads the network configuration parameters from the storage unit and configures the communication unit for the network.
[0081] In some alternative embodiments, the on-off unit includes an analog switch chip.
[0082] The above method can be implemented by the connection control device for the RAID card pluggable multi-channel Ukey provided in the above embodiments. For the specific implementation manner, reference can be made to the description of the connection control device for the RAID card pluggable multi-channel Ukey in the above embodiments, which will not be elaborated herein.
[0083] It can be understood that the circuit structures, names, and parameters described in the above embodiments are only examples. Those skilled in the art can also easily combine and adjust the structural features of the above multiple embodiments according to the usage requirements, and should not limit the concept of the present application to the specific details of the above examples.
[0084] Although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still modify the technical solutions described in the foregoing embodiments, or perform equivalent replacements for some of the technical features; and these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A connection control device for inserting and removing multiple Ukeys of a RAID card, characterized in that: include: Multi-channel Ukey, communication unit, main control unit and on-off unit; among them, The communication unit is used for external network communication; The main control unit is used to receive a test instruction from the test platform through the communication unit, and control the on-off unit to connect or disconnect the multiple Ukeys based on the test instruction; The on-off unit is used to connect or disconnect the multi-channel Ukey with the external RAID card under the control of the main control unit.
2. The connection control device according to claim 1, characterized in that: It also includes: a display screen and a key unit connected to the main control unit; The display screen is used to display the information transmitted by the main control unit; The key unit is used to transmit the received input information to the main control unit; The main control unit is used for reconfiguring the network of the communication unit based on the network configuration parameters after receiving the network configuration parameters from the key unit.
3. The connection control device according to claim 2, characterized in that: Also includes: Storage unit; The main control unit is used to store the network configuration parameters in the storage unit, so that after the connection control device is reset, the network configuration parameters are read from the storage unit and the network configuration is performed on the communication unit.
4. The connection control device according to any one of claims 2 to 3, characterized in that: The main control unit includes a processor, and the main control unit controls the on-off unit through software running on the processor; the network configuration of the communication unit by the main control unit is implemented by software developed based on the SPI protocol and running on the processor.
5. The connection control device according to any one of claims 1 to 3, characterized in that: The on-off unit includes an analog switch chip.
6. A connection control method for inserting and removing multiple Ukeys of a RAID card, characterized in that: The method is implemented by a connection control device applied to plugging and unplugging multiple Ukeys of a RAID card, comprising: The communication unit of the connection control device receives a test instruction from a test platform located in an external network, and transmits the test instruction to the main control unit of the connection control device; The main control unit sends a control signal for connecting or disconnecting multiple Ukeys of the connection control device to the connection control device on the basis of the test instruction; The on-off unit connects or disconnects the multi-channel Ukey with the external RAID card based on the control signal.
7. The connection control method according to claim 6, characterized in that: Also includes: The key unit of the connection control device receives the network configuration parameters input by the user, and transmits the network configuration parameters to the main control unit; The main control unit reconfigures the network of the communication unit based on the network configuration parameters.
8. The connection control method according to claim 7, characterized in that: The main control unit reconfigures the communication unit based on the network configuration parameters, including: The main control unit stores the network configuration parameters in a storage unit of the connection control device; After the connection control device is reset, the main control unit reads the network configuration parameters from the storage unit and performs network configuration on the communication unit.
9. The connection control method according to any one of claims 7 to 8, characterized in that: The main control unit includes a processor, and the main control unit controls the on-off unit through software running on the processor; the network configuration of the communication unit by the main control unit is implemented by software developed based on the SPI protocol and running on the processor.
10. The connection control method according to any one of claims 6 to 8, characterized in that: The on-off unit includes an analog switch chip.
Citation Information
Patent Citations
SAS interface test device
CN101408857A
Satellite electrical interface automatic testing device
CN112834965A
Hot plug test device and system
CN117251324A
Hot plug test device and system
CN220773579U