Electronic device and hot-swappable storage device thereof
By introducing a wireless communication interface and controller into the storage device to detect the connection status and switch the data transmission path, the data transmission problem caused by the length and complexity of the signal cable during hot swapping is solved, and the stability of the data transmission and system are achieved. Performance improvements.
Patent Information
- Application Number
- CN202010440528.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-05-12
- Filing Date
- 2020-05-22
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2040-05-22
AI Technical Summary
During the hot-swap process of existing storage devices, the length and complexity of the signal cables result in a long data transmission path, which affects the signal quality and is prone to cable jamming during assembly and maintenance.
A wireless communication interface is used to transmit data between the host and the storage device. The controller detects the connection status and switches the data transmission path to ensure continuous data transmission during hot plugging.
The wireless communication interface maintains the stability of data transmission during hot swapping, avoiding signal quality degradation and assembly complexity, and improving the normal operation and performance of the system.
Smart Images

Figure CN113656338B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an electronic device and a hot-pluggable storage device thereof, and in particular to an electronic device capable of continuously executing data transmission and a hot-pluggable storage device thereof. Background Art
[0002] Today's storage devices are often set up in the form of drawers and have hot-swappable functions. During the hot-swappable process, when the drawer is pulled out, data transmission between the host and the hard disk can still continue without affecting the use of remote users. In the existing technical field, a signal cable (cable) with a certain length is used to connect the host (motherboard) and the storage device. When the drawer is pulled out, the signal cable can be pulled out with the drawer and maintain the connection between the host and the storage device, and maintain the data transmission action. However, the disadvantages of this architecture are: the signal cable will have a certain size, so the chassis needs to have a certain length; the signal cable is not easy to manage and assemble, and it is easy to cause the cable to get stuck during the pulling process; and the signal cable needs to have a certain length, which means that the data transmission needs to pass through a longer path of the signal cable, affecting the signal quality. Summary of the invention
[0003] The invention provides an electronic device and a hot-swappable storage device thereof, which effectively maintain the progress of data transmission action.
[0004] The hot-swappable storage device of the present invention comprises a carrier, a connector, a controller and a wireless communication interface. The carrier is used to carry a plurality of storage elements. The connector is arranged on the carrier to be electrically connected to a host end and perform data transmission. The controller is arranged in the carrier and coupled to the storage element. The controller detects the connection status between the connector and the host end. The wireless communication interface is arranged on the carrier to determine whether to perform data transmission with the host end according to the connection status.
[0005] The electronic device of the present invention includes a host end and a hot-swappable storage device. The host end includes a first connector, a first controller and a first wireless communication interface. The first controller detects the connection status of the first connector. The first wireless communication interface determines whether to start the data transmission action based on the connection status. The hot-swappable storage device includes a carrier, a second connector, a second controller and a second wireless communication interface. The carrier is used to carry multiple storage elements. The second connector is used to electrically connect to the first connector of the host end and perform data transmission actions. The second controller is arranged in the carrier and coupled to the storage element. The second controller detects the connection status of the second connector and the first connector. The second wireless communication interface is arranged on the carrier and determines whether to perform data transmission actions with the host end based on the above-mentioned connection status. Among them, the first controller detects the connection status of the first connector and the second connector.
[0006] Based on the above, the embodiment of the present invention provides a wireless communication interface in the hot-swappable storage device. After the hot-swappable storage device is separated from the host end, the wireless communication interface is used to perform data transmission between the hot-swappable storage device and the host end. In this way, even when the hot-swappable storage device is removed from the host end and the physical connection with the host end is disconnected in the maintenance state, the wireless communication interface can still be used to perform data transmission with the host end to maintain the normal operation of the system. BRIEF DESCRIPTION OF THE DRAWINGS
[0007] Figure 1 A schematic diagram of an implementation of a hot-swappable storage device according to an embodiment of the present invention.
[0008] Figure 2 The hot-swappable storage device is physically connected to a host according to an embodiment of the present invention.
[0009] Figure 3 It is a schematic diagram of an implementation of a transmission interface switching action according to an embodiment of the present invention.
[0010] Figure 4 FIG. 4 is a schematic diagram of an electronic device according to an embodiment of the present invention.
[0011] Figure 5 FIG. 4 is a schematic diagram of an electronic device according to an embodiment of the present invention.
[0012] FIG. 6A to FIG. 6C The figure is a flow chart of a control method of a data transmission action of an electronic device according to an embodiment of the present invention.
[0013] Figure 7 The figure is a schematic diagram of an operation of detecting a connection status between a host and a hot-swappable storage device according to an embodiment of the present invention.
[0014] Description of reference numerals:
[0015] 100, 420, 520, 720: hot-swappable storage devices
[0016] 101, 410, 510, 710: Host side
[0017] 102: Track
[0018] 110: Carrier
[0019] 120, 411, 421, 511, 521, 711, 721: Connectors
[0020] 130, 412, 422, 512, 522, 712, 722: Wireless communication interface
[0021] 140, 413, 423, 513: Controller
[0022] 400, 500, 700: Electronic devices
[0023] 4211, 7211: Input and output control components
[0024] 4212, 7212: Wireless signal processing components
[0025] 4213, 523, 7213: Signal expansion components
[0026] 5131: Start control element
[0027] 514, 714: Processor
[0028] 5231: Target control element
[0029] 713, 723: Detection element
[0030] CMP1, CMP2: Comparators
[0031] CR1, CR2: comparison results
[0032] DSK: Storage element
[0033] GND: reference voltage
[0034] R11~R13, R21~R23: resistor
[0035] S310~S360: Transmission interface switching steps
[0036] S610~S6180: Control steps of data transmission action
[0037] SAS1, SAS2: Data
[0038] V1: voltage
[0039] VCC: power supply voltage
[0040] VR1, VR2: reference voltage DETAILED DESCRIPTION
[0041] Please refer to Figure 1 , Figure 1Schematic diagram of an implementation of a hot-swappable storage device according to an embodiment of the present invention. The hot-swappable storage device 100 includes a carrier 110, a connector 120, a wireless communication interface 130, and a controller 140. The carrier 110 is used to carry a plurality of storage elements DSK. In this embodiment, the storage element DSK can be a hard disk in any form. The carrier 110 can also be formed into a drawer shape and can be pushed in or pulled out on the track 102. The carrier 110 is also provided with a connector 120, a wireless communication interface 130, and a controller 140. Please refer to Figure 2 , Figure 2 Schematic diagram of the physical connection between the hot-swappable storage device and the host end according to an embodiment of the present invention. When the carrier 110 is pushed in, the connector 120 can be electrically (directly) connected to the connector on the host end 101, and the host end 101 can perform data transmission with the storage element DSK through the connector 120. In this state, the wireless communication interface 130 can be turned off.
[0042] Please refer to Figure 1 When the carrier 110 is pulled out and the connector 120 is physically separated from the host end 101, the controller 140 can detect the connection status of the connector 120 and the host end 101, and when the connector 120 and the host end 101 are physically separated, the data transmission action between the host end 101 and the storage element DSK can be performed through the wireless communication interface 130. In other words, when the hot-swappable storage device 100 needs to be repaired, even if the carrier 110 is pulled out, the data transmission action between the host end 101 and the storage element DSK can continue.
[0043] Please refer to the synchronization Figure 1 as well as Figure 3 , Figure 3 Schematic diagram of the implementation of the transmission interface switching action of an embodiment of the present invention. In step S310, the controller 140 can detect the type of error information sent by the host end 101. When the type of error information is the type that requires maintenance and the carrier 110 may need to be pulled out, step S320 is executed to start the wireless communication interface 130. Then, the wireless communication interface 130 can perform a device connection action with the host end 101 (step S330), and the wireless communication interface 130 and the host end 101 are in a connected state.
[0044] It is worth mentioning that in steps S320 and S330 , the carrier 110 may still be in an unopened state, that is, at this time, the connector 120 may maintain an electrical connection with the host end 101 .
[0045] In step S340, the controller 140 can determine whether the carrier 110 (drawer) is opened by detecting whether the connector 120 is electrically connected to the host end 101. When the drawer is opened, the controller 140 performs an action of switching the data transmission path in step S350, and in step S360, the data transmission action is switched to a wireless data transmission action performed by the wireless communication interface 130.
[0046] Please note that based on the wireless communication interface 130, the device connection action can be completed between the host end 101 before the drawer (carrier 110) is opened. Therefore, once the drawer (carrier 110) is opened, the wireless communication interface 130 can immediately replace the connector 120 to maintain the data transmission action.
[0047] Please refer to Figure 4 , Figure 4 Schematic diagram of an electronic device according to an embodiment of the present invention. The electronic device 400 includes a host end 410 and a hot-swappable storage device 420. The host end 410 includes a connector 411, a wireless communication interface 412, and a controller 413. The hot-swappable storage device 420 includes a connector 421, a wireless communication interface 422, a controller 423, and a storage element DSK. The controller 423 includes an input-output control element 4211, a wireless signal processing element 4212, and a signal expansion element 4213. The input-output control element 4211 is coupled to the connector 421. The input-output control element 4211 is used to transmit transmission data of the accelerated peripheral component interconnect interface (Peripheral Component Interconnect Express, PCIe), and performs a data SAS1 transmission operation with the signal expansion element 4213. The wireless signal processing element 4212 is coupled to the wireless communication interface 422, and is used to transmit wireless transmission data, and performs a data SAS2 transmission operation with the signal expansion element 4213. The data SAS1 and SAS2 can both be transmission data of a serial attached SCSI (SAS). The signal extension element 4213 is coupled to the input / output control element 4211, the wireless signal processing element 4212 and the storage element DSK to perform the transceiver action of the data SAS1 or SAS2.
[0048] In implementation details, when the host end 410 and the hot-swappable storage device 420 are electrically connected to each other through the connectors 411 and 421, the host end 410 and the hot-swappable storage device 420 can perform data transmission operations between each other through the data transmission path formed by the connectors 411 and 421.
[0049] On the other hand, the host end 410 can send a maintenance request signal according to the working state of the hot-swappable storage device 420. The controller 413 correspondingly activates the wireless communication interface 412. When the controller 423 receives the maintenance request signal, the controller 423 can first activate the wireless communication interface 422. The wireless communication interfaces 412 and 422 can perform a device connection operation between the host end 410 and the hot-swappable storage device 420, and after the device connection operation is completed, the host end 410 and the hot-swappable storage device 420 are in a connected state.
[0050] Next, the controllers 413 and 423 can synchronously detect the electrical connection status between the connectors 411 and 421. Once the controllers 413 and 423 detect that the electrical connection between the connectors 411 and 421 is disconnected, the controllers 413 and 423 can respectively switch the data transmission path between the host end 410 and the hot-swappable storage device 420, and enable the wireless communication interfaces 412 and 422 to perform wireless data transmission operations.
[0051] Please note that the wireless communication interfaces 412 and 422 can perform data transmission via visible light communication (Light Fidelity, LiFi), wireless communication (Wireless Fidelity, WiFi) or bluetooth communication. Here, a light-proof accommodation space can be formed between the host end 410 and the hot-swappable storage device 420, and the wireless communication interfaces 412 and 422 can be accommodated in this accommodation space at the same time. Therefore, the data transmission between the wireless communication interfaces 412 and 422 via visible light communication can avoid the interference of ambient light and effectively maintain the quality of the transmitted data.
[0052] Please refer to Figure 5 , Figure 5 Schematic diagram of an electronic device according to an embodiment of the present invention. The electronic device 500 includes a host end 510 and a hot-swappable storage device 520. The host end 510 includes a processor 514, a connector 511, a wireless communication interface 512, and a controller 513. The hot-swappable storage device 520 includes a connector 521, a wireless communication interface 522, a signal extension element 523, and a storage element DSK. Figure 4According to different embodiments, the data transmission between the connectors 511 and 521 in this embodiment is performed by a serial small computer system interface (SAS). The data transmission between the processor 514 and the controller 513 can be performed by an accelerated peripheral component interconnect interface (PCIe). In addition, the controller 513 includes an initiator controller element 5131 for starting the wireless communication interface 512 and performing its data transmission and receiving operations. In this embodiment, the controller 513 can be an input and output controller of the processor 514.
[0053] In addition, the signal extension element 523 serves as a controller of the hot-swappable storage device 520 . The signal extension element 523 also includes a target controller element 5231 for controlling the operation of the wireless communication interface 522 .
[0054] In this embodiment, both the start control element 5131 and the target control element 5231 can be implemented by using hardware circuits well known in the art without any particular limitation.
[0055] Please refer to the following FIG. 6A to FIG. 6C , FIG. 6A to FIG. 6C This is a flow chart of a control method for data transmission of an electronic device according to an embodiment of the present invention. Fig. 6A In step S610, the host end and the hot-swappable storage device can perform data transmission via a first interface. Here, the first interface can be a transmission interface formed by electrically connecting connectors of the host end and the hot-swappable storage device.
[0056] In step S620, the hot-swappable storage device detects the error information sent by the host, and in step S640, determines whether the error information is an error information that requires maintenance. The hot-swappable storage device can determine whether the error information is an error information that requires maintenance by checking whether the received error information is on a white list. The white list is a pre-set list for recording error information that does not require maintenance. Therefore, when the result of step S640 is that it is on the white list, step S620 is repeated, and when the result of step S640 is that it is not on the white list, step S650 is executed.
[0057] In step S650 , the wireless communication interface may be activated and enter node A.
[0058] In another aspect, in the embodiment of the present invention, the data transmission can be manually switched from the first interface to the second interface through step S630. Here, the second interface is formed by the wireless communication interface of the host end and the hot-swappable storage device. After step S630, step S650 can be performed to start the wireless communication interface.
[0059] exist Figure 6B In the process, the node A is continued, and step S660 completes the device connection action between the host end and the wireless communication interface of the hot-swappable storage device. In step S670, it is detected whether the switching action of the communication interface is caused by manual switching. If so, step S6110 is executed, and if not, step S680 is executed.
[0060] In step S680, a detection action may be performed on the data transmission status of the first interface to determine whether the first interface is good. This determination action may be performed by the host, and when the first interface is determined to be not good, step S691 is performed to display a warning message. Alternatively, when the first interface is determined to be good, step S692 is performed.
[0061] In step S692, it is determined whether the drawer (carrier) containing the hot-swappable storage device is opened. The above-mentioned detection action can be performed simultaneously in the host side and the hot-swappable storage device. If it is detected that the drawer is not opened, step S692 can be repeated. Once it is detected that the drawer has been opened, step S6100 is executed and the host side is notified to switch the data transmission interface to the second interface. On the other hand, after the warning information display action in step S691, step S6100 can also be executed to notify the host side to switch the data transmission interface to the second interface.
[0062] In step S6110, the host and the hot-swappable storage device perform data transmission via the second interface, and in step S6120, the host and the hot-swappable storage device can detect whether the drawer is closed. If the drawer is detected to be closed in step S6120, the process proceeds to node B; conversely, if the drawer is detected to be not closed in step S6120, the process continues to execute step S6110.
[0063] exist Figure 6CIn step S6130, when the drawer is closed, the host end can be electrically connected to the hot-swappable storage device through the first interface again. In step S6140, it is determined whether the first interface is successfully connected. If it is determined that the first interface has successfully completed the connection, step S6151 can be executed; conversely, if it is determined that the first interface cannot successfully complete the connection, step S6170 is executed to display a warning message, and in step S6180, the host end and the hot-swappable storage device perform data transmission through the second interface.
[0064] On the other hand, after the first interface has successfully completed the connection, in step S6151, the host is notified to switch the data transmission operation to the first interface for execution, and in step S6152, the power of the wireless communication interface is cut off to save power consumption. In step S6160, the data transmission operation between the host and the hot-swappable storage device is performed again through the first interface.
[0065] Please refer to the following Figure 7 , Figure 7 FIG. 1 is a schematic diagram of an operation for detecting a connection status between a host end and a hot-swappable storage device according to an embodiment of the present invention. Figure 7 In the embodiment, the electronic device 700 includes a host end 710 and a hot-swappable storage device 720. The host end 710 includes a connector 711, a wireless communication interface 712, a processor 714 and a detection element 713. The detection element 713 can be set in the controller of the host end 710. The hot-swappable storage device 720 includes a connector 721, a wireless communication interface 722, a detection element 723, a wireless signal processing element 7212, an input-output control element 7211 and a signal extension element 7213. Among them, the detection element 723, the wireless signal processing element 7212, the input-output control element 7211 and the signal extension element 7213 can be set in the controller of the hot-swappable storage device 720.
[0066] In this embodiment, the detection element 713 includes a comparator CMP1, resistors R11, R12 and R13. The resistors R11 and R12 are coupled in series between the power supply voltage VCC and the reference voltage GND, and are used to divide the power supply voltage VCC to generate the reference voltage VR1. The resistor R13 is coupled between the power supply voltage VCC and the connector 711. The positive input terminal of the comparator CMP1 receives the reference voltage VR1, and the negative input terminal of the comparator CMP1 is coupled to the connector 711 and the resistor R13.
[0067] On the other hand, the detection element 723 includes a comparator CMP2, resistors R21, R22 and R23. The resistors R21 and R22 are coupled in series between the power supply voltage VCC and the reference voltage GND, and are used to divide the power supply voltage VCC to generate the reference voltage VR2. The resistor R23 is coupled between the connector 721 and the reference voltage GND. The negative input terminal of the comparator CMP2 receives the reference voltage VR2, and the positive input terminal of the comparator CMP2 is coupled to the connector 721 and the resistor R23.
[0068] When the connectors 711 and 721 are electrically connected, a voltage V1 can be generated at the connection ends of the connectors 711 and 721. The connectors 711 and 721 are electrically connected to each other, and the resistors R13 and R23 can form a resistor string, and are used to divide the power supply voltage VCC to generate the voltage V1. At the same time, the comparator CMP1 can compare the voltage V1 with the reference voltage VR1 to generate a comparison result CR1, and the comparator CMP2 can compare the voltage V1 with the reference voltage VR2 to generate a comparison result CR2. The comparison results CR1 and CR2 can be provided to the processor 714 and the wireless signal processing element 7212 respectively, and enable the host end 710 and the hot-swappable storage device 720 to perform the corresponding interface setting or switching action for data transmission.
[0069] On the other hand, when the connectors 711 and 721 are disconnected, the resistor R13 on the negative input terminal of the comparator CMP1 is a pull-up resistor, and the voltage received by the negative input terminal of the comparator CMP1 can be equal to the power supply voltage VCC. The resistor R23 on the positive input terminal of the comparator CMP2 is a pull-down resistor, and the voltage received by the positive input terminal of the comparator CMP2 can be equal to the reference voltage GND. In this way, the comparison results CR1 and CR2 generated by the comparators CMP1 and CMP2 respectively can be changed and used to notify the host end 710 and the hot-swappable storage device 720 to perform the corresponding interface switching action for data transmission.
[0070] The comparison result CR2 can be provided to the input / output control element 7211 and the signal extension element 7213. The input / output control element 7211 can determine whether to transmit the data SAS1 with the signal extension element 7213 according to the comparison result CR2. The signal extension element 7213 can also determine whether to transmit and receive the data SAS1 with the input / output control element 7211 or to transmit and receive the data SAS2 with the wireless signal processing element 7212 according to the comparison result CR2. When the comparison result CR2 indicates that the connectors 711 and 721 are connected to each other, the signal extension element 7213 and the input / output control element 7211 transmit and receive the data SAS1. Conversely, when the comparison result CR2 indicates that the connectors 711 and 721 are disconnected from each other, the signal extension element 7213 and the wireless signal processing element 7212 transmit and receive the data SAS2. The above-mentioned data SAS1 is transmitted through the connectors 711 and 721.
[0071] The details of the interface switching action performed by the host end 710 and the hot-swappable storage device 720 have been described in detail in the aforementioned multiple embodiments and implementation methods, and will not be repeated here.
[0072] In summary, the present invention provides an additional wireless communication interface between the host and the hot-swappable storage device, and when the hot-swappable storage device needs to be removed for maintenance, the wireless communication interface is used to perform data transmission operations. The stability of the data transmission operation between the host and the hot-swappable storage device can be maintained, and the working efficiency of the electronic device can be improved.
Claims
1. A hot-swappable storage device, comprising: A carrier for carrying a plurality of storage elements; A connector, disposed on the carrier, for electrically connecting to a host end and performing a data transmission operation; a controller, disposed in the carrier and coupled to the plurality of storage elements, the controller detecting the type of an error message sent by the host end through the connector, and detecting a connection state between the connector and the host end; as well as a wireless communication interface, disposed on the carrier, for performing a device connection operation with the host end before the connector is disconnected from the host end according to the type of the error information, and for performing the data transmission operation with the host end after the connector is disconnected from the host end, The controller includes: An input-output control element coupled to the connector for transmitting a transmission data of the accelerated peripheral component interconnect interface; a wireless signal processing element, coupled to the wireless communication interface, for transmitting wireless transmission data; and A signal extension element is coupled to the input / output control element, the wireless signal processing element and the plurality of storage elements, and performs the transmission data or the wireless transmission data receiving and sending action. 2 . The storage device as claimed in claim 1 , wherein the controller continuously detects the connection status between the connector and the host end after the device is connected. 3 . The storage device as claimed in claim 2 , wherein when the connector is disconnected from the host end, the wireless communication interface performs the data transmission operation with the host end. 4 . The storage device as claimed in claim 1 , wherein the connector performs the data transmission operation with the host end via a Serial Small Computer System Interface (Serial SCSI) or an Accelerated Peripheral Component Interconnect (API) interface.
5. The storage device according to claim 1, wherein the controller further comprises: A detection element is coupled to the connector and is used to detect the connection status between the connector and the host end.
6. The storage device as claimed in claim 1, wherein the signal extension element is also coupled to the connector and the wireless communication interface to transmit the transmission data as a serial small computer system interface through the connector or to transmit the wireless transmission data through a target control element and the wireless communication interface. 7 . The storage device as claimed in claim 1 , wherein the wireless communication interface performs the data transmission operation via visible light communication, wireless communication or Bluetooth communication.
8. An electronic device comprising: A host side, including: a first connector; a first controller, configured to detect a connection state of the first connector; and a first wireless communication interface, determining whether to initiate a data transmission action according to the connection status; and A hot-swappable storage device, comprising: A carrier for carrying a plurality of storage elements; a second connector, used to electrically connect to the first connector of the host end and perform the data transmission operation; a second controller, disposed in the carrier and coupled to the plurality of storage elements, the second controller receiving a maintenance request signal sent by the host end through the first connector and the second connector, and detecting the connection status of the second connector and the first connector; and a second wireless communication interface, disposed on the carrier, for performing a device connection operation with the first wireless communication interface of the host end before the second connector is disconnected from the host end according to the maintenance request signal, and for performing the data transmission operation with the host end after the second connector is disconnected from the host end, The first controller detects the connection state between the first connector and the second connector, and the second controller includes: An input-output control element coupled to the second connector for transmitting a transmission data of the accelerated peripheral component interconnect interface; a wireless signal processing element, coupled to the second wireless communication interface, for transmitting wireless transmission data; and A signal extension element is coupled to the input / output control element, the wireless signal processing element and the plurality of storage elements, and performs the transmission data or the wireless transmission data receiving and sending action.
9. The electronic device as claimed in claim 8, wherein the first controller comprises: A first detection element is coupled to the first connector and is used to detect the connection state between the first connector and the second connector.
10. The electronic device as claimed in claim 9, wherein the second controller further comprises: a second detection element, coupled to the second connector, for detecting the connection state between the first connector and the second connector, When the first connector is electrically connected to the second connector, a first voltage is generated at the endpoint where the first connector and the second connector are connected. The first detection element and the second detection element compare the first voltage with a reference voltage to determine the connection status of the first connector and the second connector.
11. The electronic device as claimed in claim 8, wherein the second controller continuously detects the connection status between the second connector and the first connector of the host after the device is connected.
12. The electronic device as claimed in claim 11, wherein when the second connector is disconnected from the first connector of the host end, the second wireless communication interface performs the data transmission operation with the host end through the first wireless communication interface. 13 . The electronic device as claimed in claim 8 , wherein the first wireless communication interface and the second wireless communication interface perform the data transmission operation via visible light communication, wireless communication or Bluetooth communication.
Citation Information
Patent Citations
Storage device carrier for high density storage system
CN103941825A
Device for storing elements
CN110199328A
Hot-pluggable wireless communication host computer for gas station cash registering system
CN201623704U
Withdrawing storage device of electronic device and electronic equipment
CN202404478U
External storage device and bridge chip
TWM445713U
