# US 2013/0159606 A1 · System and method for controlling sas expander to electronically connect to a raid card

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2013/0159606 A1
- Document ID: US20130159606A1
- Status: Published application
- Kind: A1
- Application number: 13/528,843
- Filed: 2012-06-21
- Published: 2013-06-20
- Earliest claimed: 2011-12-16
- Assignees: Hon Hai Precision Industry Co., Ltd.
- Inventors: CHIH-HUANG WU
- Web page: https://patentgrep.com/patent/US20130159606A1

## CPC

- G06F 3/0605: {by facilitating the interaction with a user or administrator}
- G06F 3/0632: {by initialisation or re-initialisation of storage systems}
- G06F 3/0689: {Disk arrays, e.g. RAID, JBOD}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

In a method for controlling a SAS expander to electronically connect to a RAID card in an electronic device, a plurality of different types for RAID cards, and configuration parameters of the SAS expander corresponding to each type of the RAID cards are preset. Information of the RAID card is read if the SAS expander is electronically connected the RAID card. The method further determines whether the RAID card matches the SAS expander. If the RAID card does not match the SAS expander, the configuration parameters of the SAS expander corresponding to the RAID card is read, and the read configuration parameters and the read information of the RAID card are written into a firmware file in the storage system. The method further stores the firmware file into a flash memory of the SAS expander.

## Claims

### Claim 1

A computer-implemented method for controlling a serial attached small computer system interface (SAS) expander to electronically connect to a redundant array of independent disks (RAID) card in an electronic device, the method comprising:
establishing a plurality of different types of RAID cards according to RAID levels that the RAID cards support, and establishing configuration parameters of the SAS expander corresponding to each type of the RAID cards in a storage system of the electronic device;
reading information of the RAID card in the electronic device if the SAS expander is electronically connected to the RAID card, the read information comprising RAID levels that the RAID card supports;
determining whether the RAID card matches the SAS expander;
reading the configuration parameters of the SAS expander corresponding to the RAID card, and writing the read configuration parameters and the read information of the RAID card into a firmware file in the storage system, if the RAID card does not match the SAS expander; and
storing the firmware file into a flash memory of the SAS expander.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the firmware file comprises fixed pages that store the read information of the RAID card and the read configuration parameters of the SAS expander corresponding to the RAID card.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the firmware of the SAS expander stores the RAID levels that a previous RAID card in the electronic device that supports, the previous RAID card being electronically connected to the SAS expander correctly.

### Claim 4 (depends on 3)

The method according to claim 3, further comprising:
determining that the RAID card match the SAS expander if the RAID levels in the read information of the RAID card are the same as the stored RAID levels in the firmware of the SAS expander; or
determining that the RAID card does not match the SAS expander if the RAID levels in the read information of the RAID card are different from the stored RAID levels in the firmware of the SAS expander.

### Claim 5 (depends on 3)

The method according to claim 3, further comprising:
determining that the RAID card does not match the SAS expander, if there is no previous RAID card being electronically connected to the SAS expander correctly and no information of the RAID level is stored in the firmware of SAS expander.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the firmware of the SAS expander is updated when the firmware file is stored into the flash memory of the SAS expander.

### Claim 7

A non-transitory storage medium storing a set of instructions, when executed by at least one processor of an electronic device, cause the at least one processor to perform a method for controlling a serial attached small computer system interface (SAS) expander to electronically connect to a redundant array of independent disks (RAID) card, the method comprising:
establishing a plurality of different types of RAID cards according to RAID levels that the RAID cards support, and establishing configuration parameters of the SAS expander corresponding to each type of the RAID cards in a storage system of the electronic device;
reading information of the RAID card in the electronic device if the SAS expander is electronically connected to the RAID card, the read information comprising RAID levels that the RAID card supports;
determining whether the RAID card matches the SAS expander;
reading the configuration parameters of the SAS expander corresponding to the RAID card, and writing the read configuration parameters and the read information of the RAID card into a firmware file in the storage system, if the RAID card does not match the SAS expander; and
storing the firmware file into a flash memory of the SAS expander.

### Claim 8 (depends on 7)

The non-transitory storage medium according to claim 7, wherein the firmware file comprises fixed pages that store the read information of the RAID card and the configuration parameters of the SAS expander corresponding to the RAID card.

### Claim 9 (depends on 7)

The non-transitory storage medium according to claim 7, wherein the firmware of the SAS expander stores the RAID levels that a previous RAID card in the electronic device that supports, the previous RAID card being electronically connected to the SAS expander correctly.

### Claim 10 (depends on 9)

The non-transitory storage medium according to claim 9, further comprising:
determining that the RAID card match the SAS expander if the RAID levels in the read information of the RAID card are the same as the stored RAID levels in the firmware of the SAS expander; or
determining that the RAID card does not match the SAS expander if the RAID levels in the read information of the RAID card are different from the stored RAID levels in the firmware of the SAS expander.

### Claim 11 (depends on 9)

The non-transitory storage medium according to claim 9, further comprising:
determining that the RAID card does not match the SAS expander, if there is no previous RAID card being electronically connected to the SAS expander correctly and no information of the RAID level is stored in the firmware of SAS expander.

### Claim 12 (depends on 7)

The non-transitory storage medium according to claim 7, wherein the firmware of the SAS expander is updated when the firmware file is stored into the flash memory of the SAS expander.

### Claim 13

An electronic device, comprising:
a serial attached small computer system interface (SAS) expander,
a redundant array of independent disks (RAID) card;
a storage system;
at least one processor; and
one or more programs that are stored in the storage system and executed by the at least one processor, the one or more programs comprising:
an establishment module that establishes a plurality of different types of RAID cards according to RAID levels that the RAID cards support, and establishes configuration parameters of the SAS expander corresponding to each type of the RAID cards in the storage system;
a first reading module that reads information of the RAID card if the SAS expander is electronically connected to the RAID card, the read information comprising RAID levels that the RAID card supports;
a determination module that determines whether the RAID card matches the SAS expander;
a second reading module that reads the configuration parameters of the SAS expander corresponding to the RAID card, and writes the read configuration parameters and the read information of the RAID card into a firmware file in the storage system, if the RAID card does not match the SAS expander;
a matching module that stores the firmware file into a flash memory of the SAS expander.

### Claim 14 (depends on 13)

The electronic device according to claim 13, wherein the firmware file comprises fixed pages that store the read information of the RAID card and the configuration parameters of the SAS expander corresponding to the RAID card.

### Claim 15 (depends on 13)

The electronic device according to claim 13, wherein the firmware of the SAS expander stores the RAID levels that a previous RAID card in the electronic device that supports, the previous RAID card being electronically connected to the SAS expander correctly.

### Claim 16 (depends on 15)

The electronic device according to claim 15, wherein the determination module determines that the RAID card matches the SAS expander if the RAID levels in the read information of the RAID card are the same as the stored RAID levels in the firmware of the SAS expander, and determines that the RAID card does not match the SAS expander if the RAID levels in the read information of the RAID card are different from the stored RAID levels in the firmware of the SAS expander.

### Claim 17 (depends on 15)

The electronic device according to claim 15, wherein the determination module further determines that the RAID card does not match the SAS expander, if there is no previous RAID card being electronically connected to the SAS expander correctly and no information of the RAID level is stored in the firmware of SAS expander.

### Claim 18 (depends on 13)

The electronic device according to claim 13, wherein the firmware of the SAS expander is updated when the firmware file is stored into the flash memory of the SAS expander.
